[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 [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]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:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18: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:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:00:58]accept exits with 7 [04:00:58]New connection [04:00:58]New thread 3066924388 created [04:00:58]Thread 3066781028 joined [04:00:58]Waiting for new connection... [04:00:58] Sock 7.Parse request [04:00:58]Sock 7.Check first char [04:00:58]Sock 7.First char is OK [04:00:58]request: POST /json_proto HTTP/1.0 [04:00:58]Method: POST [04:00:58]URL: /json_proto [04:00:58]Method is POST - this is cgi request [04:00:58]url: /json_proto [04:00:58]query_string will be loaded in cgi processing [04:00:58]execute_cgi json_proto POST (null) [04:00:58]execute_cgi path=json_proto method=POST [04:00:58]POST find Content-Length [04:00:58]Host: 172.17.96.67:8080 [04:00:58]Content-Length: 682 [04:00:58]Content-Type: application/json [04:00:58] [04:00:58]POST finish read [04:00:58]Found Content-Length = 682 [04:00:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [04:00:58]execute_script... [04:00: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)245075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [04:00:58]POST & json_proto [04:00:58]process_json_proto [04:00:58]json parsed OK: [04:00:58]protocol is kg_v1.0 [04:00:58]action value=close_receipt [04:00:58]process_action close_receipt [04:00:58]cmd_close_receipt [04:00:58]MH_GetDate [04:00:58]Write to MH i2c: F0 00 00 72 05 66 [04:00:58]Write i2c OK [04:00:58]MH_I2C_Read... [04:00:58]Read from MH i2c: F0 [04:00:58]MH_I2C_Read... [04:00:58]Read from MH i2c: F0 09 00 [04:00:58]MH_I2C_Read... [04:00:58]Read from MH i2c: F0 09 00 72 05 00 FC BA 1D 67 F7 AE 1B 67 D0 [04:00:58]GetLastDocTimeStamp 1729995651 [04:00:58]current date 1730001660 [04:00:58]FM_GetShiftState [04:00:58]SAM_PROTO_GetShiftState [04:00:58]wFMCommunicate request_size=4 [04:00:58]MH_SAM_APDU [04:00:58]CAPDU: 80 13 01 00 [04:00:58]Write to MH i2c: E2 08 00 73 05 80 13 01 00 00 00 00 00 F5 [04:00:58]Write i2c OK [04:00:58]MH_I2C_Read... [04:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:58]Read from MH i2c: E2 [04:00:58]MH_I2C_Read... [04:00:58]Read from MH i2c: E2 0E 00 [04:00:58]MH_I2C_Read... [04:00:58]Read from MH i2c: E2 0E 00 73 05 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 34 [04:00:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [04:00:58]wFMCommunicate OK [04:00:58]SAM_PROTO_GetShiftState done [04:00:58]FM_GetShiftState done [04:00:58]opened in 1729987372 [04:00:58]opened+sec_in_day 1730073772 [04:00:58]quantity*price = 150056 [04:00:58]sum+1 = 150058 [04:00:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 3 27.10.2024 04:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117303 ФПД: 72792603010296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T040100&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117303&fm=72792603010296&tin=02508201610067®Number=0000000000091782&sum=150000 [04:00:59]StoreToDocumentArchive [04:00:59]shift 542 fd 117303 [04:00:59]save to /storage/0542/doc_00117303 [04:00:59]save last doc name /storage/0542/doc_00117303 to /storage/kkm_last_doc_name [04:00:59]save OK [04:00:59]Clear old archive folders... [04:00:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:00:59]tlvbuf is 00F7C7B0 [04:00:59]SAM_PROTO_ClearQueue [04:00:59]wFMCommunicate request_size=4 [04:00:59]MH_SAM_APDU [04:00:59]CAPDU: 80 09 00 00 [04:00:59]Write to MH i2c: E2 08 00 80 05 80 09 00 00 00 00 00 00 F7 [04:00:59]Write i2c OK [04:00:59]MH_I2C_Read... [04:00:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:00:59]Read from MH i2c: E2 [04:00:59]MH_I2C_Read... [04:00:59]Read from MH i2c: E2 03 00 [04:00:59]MH_I2C_Read... [04:00:59]Read from MH i2c: E2 03 00 80 05 00 90 00 F9 [04:00:59]RAPDU: 90 00 [04:00:59]wFMCommunicate OK [04:00:59]SAM_PROTO_ClearQueue done [04:00:59]KKMCreateOFDPacket [04:00:59]OFDProtocolAddRootSTLVToBuf [04:00:59]FM_MakeSignedData [04:00:59]FM_MakeSignedData [04:00:59]SAM_PROTO_SignData [04:00:59]wFMCommunicate request_size=4 [04:00:59]MH_SAM_APDU [04:00:59]CAPDU: 80 0D 01 02 [04:00:59]Write to MH i2c: E2 08 00 81 05 80 0D 01 02 00 00 00 00 FF [04:00:59]Write i2c OK [04:00:59]MH_I2C_Read... [04:00:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:00:59]Read from MH i2c: E2 [04:00:59]MH_I2C_Read... [04:00:59]Read from MH i2c: E2 03 00 [04:00:59]MH_I2C_Read... [04:00:59]Read from MH i2c: E2 03 00 81 05 00 90 00 FA [04:00:59]RAPDU: 90 00 [04:00:59]wFMCommunicate OK [04:00:59]wFMCommunicate request_size=255 [04:00:59]MH_SAM_APDU [04:00: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 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 03 00 00 00 F4 03 04 00 FC BA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 37 CA 01 00 35 04 06 00 42 [04:00:59]Write to MH i2c: E2 02 01 82 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 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 03 00 00 00 F4 03 04 00 FC BA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 37 CA 01 00 35 04 06 00 42 00 00 7B [04:00:59]Write i2c OK [04:00:59]MH_I2C_Read... [04:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:01:00]Read from MH i2c: E2 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: E2 03 00 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [04:01:00]RAPDU: 90 00 [04:01:00]wFMCommunicate OK [04:01:00]wFMCommunicate request_size=10 [04:01:00]MH_SAM_APDU [04:01:00]CAPDU: 80 0D 02 02 05 34 59 3E A4 F8 [04:01:00]Write to MH i2c: E2 0D 00 83 05 80 0D 02 02 05 00 34 59 3E A4 F8 00 00 73 [04:01:00]Write i2c OK [04:01:00]MH_I2C_Read... [04:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:01:00]Read from MH i2c: E2 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: E2 03 00 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [04:01:00]RAPDU: 90 00 [04:01:00]wFMCommunicate OK [04:01:00]wFMCommunicate request_size=4 [04:01:00]MH_SAM_APDU [04:01:00]CAPDU: 80 0D 03 02 [04:01:00]Write to MH i2c: E2 08 00 84 05 80 0D 03 02 00 00 00 00 04 [04:01:00]Write i2c OK [04:01:00]MH_I2C_Read... [04:01:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:01:00]Read from MH i2c: E2 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: E2 0B 00 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: E2 0B 00 84 05 00 F5 8C 8D D4 18 12 36 22 90 00 69 [04:01:00]RAPDU: F5 8C 8D D4 18 12 36 22 90 00 [04:01:00]wFMCommunicate OK [04:01:00]SAM_PROTO_SignData done [04:01:00]FM_MakeSignedData done [04:01:00]CreateOFDProtocolMessage [04:01:00]wFMCommunicate request_size=4 [04:01:00]MH_SAM_APDU [04:01:00]CAPDU: 80 11 00 00 [04:01:00]Write to MH i2c: E2 08 00 85 05 80 11 00 00 00 00 00 00 04 [04:01:00]Write i2c OK [04:01:00]MH_I2C_Read... [04:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:01:00]Read from MH i2c: E2 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: E2 17 00 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: E2 17 00 85 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5B [04:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [04:01:00]wFMCommunicate OK [04:01:00]CreateOFDProtocolMessage done [04:01:00]OFDSenderStorePacket 117303 [04:01:00]StoreOFDPacket docnum=117303 [04:01:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D0 24 07 01 0A 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 03 00 00 00 F4 03 04 00 FC BA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 37 CA 01 00 35 04 06 00 42 34 59 3E A4 F8 F5 8C 8D D4 18 12 36 22 [04:01:00]CheckFolder [04:01:00]dirname=/storage/ofd_packets [04:01:00]CheckFolder done [04:01:00]ProducePacketName [04:01:00]name=ofd_packets/00117303 [04:01:00]NVStorageSaveData ofd_packets/00117303 [04:01:00]File name is /storage/ofd_packets/00117303 [04:01:00]Write 301 bytes [04:01:00]NVStorageSaveData done [04:01:00]OFDSenderStorePacket done [04:01:00]KKMCreateOFDPacket done [04:01:00]NVStorageSaveData kkm_last_timestamp [04:01:00]File name is /storage/kkm_last_timestamp [04:01:00]Write 4 bytes [04:01:00]NVStorageSaveData done [04:01:00]ExternCall_PrintAddStr [04:01:00]wPrintStart [04:01:00]Write to MH i2c: 01 00 00 86 05 8B [04:01:00]Write i2c OK [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: 01 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: 01 07 00 [04:01:00]MH_I2C_Read... [04:01:00]Read from MH i2c: 01 07 00 86 05 00 00 00 00 00 FF 0F A0 [04:01:00]RasterBufferAndPrint [04:01:00]line Счет N : (1)245075 [04:01:00]line ИНН: 02508201610067 [04:01:00]line Контрольно-Кассовый Чек [04:01:00]line ПРОДАЖА [04:01:00]line ТРК (МРК, ГНК) : 21 [04:01:00]line Товар: 2710124130 [04:01:00]line Аи-92-К-2 [04:01:00]line 22.430 * 66.90 [04:01:00]line = 1500.57 [04:01:00]line НДС 12% НСП 1% [04:01:00]line > о реализуемом товаре [04:01:00]line ОКРУГЛЕНИЕ: -0.57 [04:01:00]line ИТОГО: 1500.00 [04:01:00]line Внесено: 1500.00 [04:01:00]line СДАЧА: 0.00 [04:01:00]line НСП 1% : 13.28 [04:01:00]line НДС 12% : 159.35 [04:01:00]line Наличными: 1500.00 [04:01:00]line Безнал.: 0.00 [04:01:00]line Место: АЗС № 173 "Партнер Нефть" [04:01:00]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [04:01:00]line СНО: Общий режим [04:01:00]line Чек 3 27.10.2024 04:01 [04:01:00]line Смена: 542 ФФД: 1.0 [04:01:00]line ЗНМ: 0300000115 [04:01:00]line РНМ: 0000000000091782 [04:01:00]line Версия ККМ: 001 [04:01:00]line ФМ: 0000000000871767 [04:01:00]line ФД: 117303 [04:01:00]line ФПД: 72792603010296 [04:01:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T040100&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117303&fm=72792603010296&tin=02508201610067®Number=0000000000091782&sum=150000 [04:01:00]OFD Sender: Processing packet 117303 [packets to send 75, broken 74] [04:01:00]ProducePacketName [04:01:00]name=ofd_packets/00117303 [04:01:00]OFD Sender: To server: pG, [04:01:00]CommunicateWithHost lk.salyk.kg:30040 [04:01:00]ConnectInit lk.salyk.kg [04:01:00]written 0, free lines is 4095 [04:01:00]Connected sock=10 [04:01: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 36 37 0F 01 00 00 D0 24 07 01 0A 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 03 00 00 00 F4 03 04 00 FC BA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 37 CA 01 00 35 04 06 00 42 34 59 3E A4 F8 F5 8C 8D D4 18 12 36 22 [04:01: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 36 37 4F 00 00 00 FC 85 47 00 0B 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 36 37 10 04 04 00 37 CA 01 00 F4 03 04 00 C4 66 1D 67 B6 04 01 00 00 FC C4 11 B8 FA 40 E8 9C [04:01:00]CommunicateWithHost err = 0 [04:01:00]CheckOFDResponse [04:01:00]1017 (14) - 77093643461234 [04:01:00]1041 (16) - 0000000000871767 [04:01:00]1040 (4) - 117303 [04:01:00]1012 (4) - 26.10.2024 22:01 [04:01:00]1206 (1) - 0 [04:01:00]OFD Sender: Remove packet 117303 [04:01:00]ProducePacketName [04:01:00]name=ofd_packets/00117303 [04:01:00]NVStorageDeleteData [04:01:01]Write to MH i2c: 01 00 00 B0 05 B5 [04:01:01]Write i2c OK [04:01:01]MH_I2C_Read... [04:01:01]Read from MH i2c: 01 [04:01:01]MH_I2C_Read... [04:01:01]Read from MH i2c: 01 07 00 [04:01:01]MH_I2C_Read... [04:01:01]Read from MH i2c: 01 07 00 B0 05 00 00 00 00 00 BB 0C 83 [04:01:01]RasterBufferAndPrint [04:01:01]line [04:01:01]line [04:01:01]line [04:01:01]line [04:01:01]line [04:01:01]written 0, free lines is 3264 [04:01:01]MH_Cut [04:01:01]Write to MH i2c: D1 01 00 B7 05 01 8E [04:01:01]Write i2c OK [04:01:01]MH_I2C_Read... [04:01:01]Read from MH i2c: D1 [04:01:01]MH_I2C_Read... [04:01:01]Read from MH i2c: D1 01 00 [04:01:01]MH_I2C_Read... [04:01:01]Read from MH i2c: D1 01 00 B7 05 00 8D [04:01:01]Write to MH i2c: 01 00 00 B8 05 BD [04:01:01]Write i2c OK [04:01:01]MH_I2C_Read... [04:01:01]OFD Sender: No OFD packet to send [04:01:01]*** Cut start [04:01:01]*** Purtial cut [04:01:01]*** Stage 1: CUTSNS_PIN = 1 [04:01:02]Read from MH i2c: 01 [04:01:02]MH_I2C_Read... [04:01:02]*** Stop cut motor [04:01:02]*** Cut end [04:01:02]Read from MH i2c: 01 07 00 [04:01:02]MH_I2C_Read... [04:01:02]Read from MH i2c: 01 07 00 B8 05 00 00 00 00 00 FF 0F D2 [04:01:02]process_action close_receipt done [04:01:02]requested_data is exist [04:01:02]produce_requested_data [04:01:02]requested_item fm.sn is exist - process it [04:01:02]wFMCommunicate request_size=4 [04:01:02]MH_SAM_APDU [04:01:02]CAPDU: 80 11 00 00 [04:01:02]Write to MH i2c: E2 08 00 B9 05 80 11 00 00 00 00 00 00 38 [04:01:02]Write i2c OK [04:01:02]MH_I2C_Read... [04:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:01:02]Read from MH i2c: E2 [04:01:02]MH_I2C_Read... [04:01:02]Read from MH i2c: E2 17 00 [04:01:02]MH_I2C_Read... [04:01:02]Read from MH i2c: E2 17 00 B9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8F [04:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [04:01:02]wFMCommunicate OK [04:01:02]requested_item fd.num is exist - process it [04:01:02]SAM_PROTO_GetFieldsCounters [04:01:02]wFMCommunicate request_size=4 [04:01:02]MH_SAM_APDU [04:01:02]CAPDU: 80 13 00 00 [04:01:02]Write to MH i2c: E2 08 00 BA 05 80 13 00 00 00 00 00 00 3B [04:01:02]Write i2c OK [04:01:02]MH_I2C_Read... [04:01:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:01:02]Read from MH i2c: E2 [04:01:02]MH_I2C_Read... [04:01:02]Read from MH i2c: E2 62 00 [04:01:02]MH_I2C_Read... [04:01:02]Read from MH i2c: E2 62 00 BA 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 37 CA 01 00 0E 04 04 00 1E 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 8D [04:01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 37 CA 01 00 0E 04 04 00 1E 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 [04:01:02]wFMCommunicate OK [04:01:02]SAM_PROTO_GetFieldsCounters done [04:01:02]requested_item shift.num is exist - process it [04:01:02]requested_item shift.opened is exist - process it [04:01:02]req_shift_opened [04:01:02]FM_GetShiftState [04:01:02]SAM_PROTO_GetShiftState [04:01:02]wFMCommunicate request_size=4 [04:01:02]MH_SAM_APDU [04:01:02]CAPDU: 80 13 01 00 [04:01:02]Write to MH i2c: E2 08 00 BB 05 80 13 01 00 00 00 00 00 3D [04:01:02]Write i2c OK [04:01:02]MH_I2C_Read... [04:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:01:02]Read from MH i2c: E2 [04:01:02]MH_I2C_Read... [04:01:02]Read from MH i2c: E2 0E 00 [04:01:02]MH_I2C_Read... [04:01:02]Read from MH i2c: E2 0E 00 BB 05 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 7C [04:01:02]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [04:01:02]wFMCommunicate OK [04:01:02]SAM_PROTO_GetShiftState done [04:01:02]FM_GetShiftState done [04:01:02]req_shift_opened done [04:01:02]requested_item shift.open_date is exist - process it [04:01:02]req_shift_open_date [04:01:02]req_shift_open_date done [04:01:02]produce_requested_data done [04:01:02]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117303,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [04:01:02]process_action_free close_receipt [04:01:02]json_value_free [04:01:02]json_value_free done [04:01:02]process_json_proto returns [04:01:02]Send response to host [04:01:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117303,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [04:01:02]free response buf [04:01:02]execute_script done [04:01:02]execute_script returns [04:01:02]free content buf [04:01:02]Sock 7.Close socket [04:01:02]Sock 7.Thread stoped [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:05]ConnectInit Can't connect to host [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:35]ConnectInit Can't connect to host [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59: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:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:43]accept exits with 9 [05:05:43]New connection [05:05:43]New thread 3066781028 created [05:05:43]Thread 3066924388 joined [05:05:43]Waiting for new connection... [05:05:43] Sock 9.Parse request [05:05:43]Sock 9.Check first char [05:05:43]Sock 9.First char is OK [05:05:43]request: POST /json_proto HTTP/1.0 [05:05:43]Method: POST [05:05:43]URL: /json_proto [05:05:43]Method is POST - this is cgi request [05:05:43]url: /json_proto [05:05:43]query_string will be loaded in cgi processing [05:05:43]execute_cgi json_proto POST (null) [05:05:43]execute_cgi path=json_proto method=POST [05:05:43]POST find Content-Length [05:05:43]Host: 172.17.96.67:8080 [05:05:43]Content-Length: 677 [05:05:43]Content-Type: application/json [05:05:43] [05:05:43]POST finish read [05:05:43]Found Content-Length = 677 [05:05:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [05:05:43]execute_script... [05:05: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)245076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [05:05:43]POST & json_proto [05:05:43]process_json_proto [05:05:43]json parsed OK: [05:05:43]protocol is kg_v1.0 [05:05:43]action value=close_receipt [05:05:43]process_action close_receipt [05:05:43]cmd_close_receipt [05:05:43]MH_GetDate [05:05:43]Write to MH i2c: F0 00 00 BC 05 B0 [05:05:43]Write i2c OK [05:05:43]MH_I2C_Read... [05:05:43]Read from MH i2c: F0 [05:05:43]MH_I2C_Read... [05:05:43]Read from MH i2c: F0 09 00 [05:05:43]MH_I2C_Read... [05:05:43]Read from MH i2c: F0 09 00 BC 05 00 29 CA 1D 67 F7 AE 1B 67 57 [05:05:43]GetLastDocTimeStamp 1730001660 [05:05:43]current date 1730005545 [05:05:43]FM_GetShiftState [05:05:43]SAM_PROTO_GetShiftState [05:05:43]wFMCommunicate request_size=4 [05:05:43]MH_SAM_APDU [05:05:43]CAPDU: 80 13 01 00 [05:05:43]Write to MH i2c: E2 08 00 BD 05 80 13 01 00 00 00 00 00 3F [05:05:43]Write i2c OK [05:05:43]MH_I2C_Read... [05:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:43]Read from MH i2c: E2 [05:05:43]MH_I2C_Read... [05:05:43]Read from MH i2c: E2 0E 00 [05:05:43]MH_I2C_Read... [05:05:43]Read from MH i2c: E2 0E 00 BD 05 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 7E [05:05:43]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [05:05:43]wFMCommunicate OK [05:05:43]SAM_PROTO_GetShiftState done [05:05:43]FM_GetShiftState done [05:05:43]opened in 1729987372 [05:05:43]opened+sec_in_day 1730073772 [05:05:43]quantity*price = 10035 [05:05:43]sum+1 = 10036 [05:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 4 27.10.2024 05:05 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117304 ФПД: 35352307892820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T050545&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117304&fm=35352307892820&tin=02508201610067®Number=0000000000091782&sum=10000 [05:05:44]StoreToDocumentArchive [05:05:44]shift 542 fd 117304 [05:05:44]save to /storage/0542/doc_00117304 [05:05:44]save last doc name /storage/0542/doc_00117304 to /storage/kkm_last_doc_name [05:05:44]save OK [05:05:44]Clear old archive folders... [05:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:05:44]tlvbuf is 00FC1AE0 [05:05:44]SAM_PROTO_ClearQueue [05:05:44]wFMCommunicate request_size=4 [05:05:44]MH_SAM_APDU [05:05:44]CAPDU: 80 09 00 00 [05:05:44]Write to MH i2c: E2 08 00 CA 05 80 09 00 00 00 00 00 00 41 [05:05:44]Write i2c OK [05:05:44]MH_I2C_Read... [05:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:05:44]Read from MH i2c: E2 [05:05:44]MH_I2C_Read... [05:05:44]Read from MH i2c: E2 03 00 [05:05:44]MH_I2C_Read... [05:05:44]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [05:05:44]RAPDU: 90 00 [05:05:44]wFMCommunicate OK [05:05:44]SAM_PROTO_ClearQueue done [05:05:44]KKMCreateOFDPacket [05:05:44]OFDProtocolAddRootSTLVToBuf [05:05:44]FM_MakeSignedData [05:05:44]FM_MakeSignedData [05:05:44]SAM_PROTO_SignData [05:05:44]wFMCommunicate request_size=4 [05:05:44]MH_SAM_APDU [05:05:44]CAPDU: 80 0D 01 02 [05:05:44]Write to MH i2c: E2 08 00 CB 05 80 0D 01 02 00 00 00 00 49 [05:05:44]Write i2c OK [05:05:44]MH_I2C_Read... [05:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:05:44]Read from MH i2c: E2 [05:05:44]MH_I2C_Read... [05:05:44]Read from MH i2c: E2 03 00 [05:05:44]MH_I2C_Read... [05:05:44]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [05:05:44]RAPDU: 90 00 [05:05:44]wFMCommunicate OK [05:05:44]wFMCommunicate request_size=255 [05:05:44]MH_SAM_APDU [05:05: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 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 29 CA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 38 CA 01 00 35 04 06 00 20 [05:05:44]Write to MH i2c: E2 02 01 CC 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 29 CA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 38 CA 01 00 35 04 06 00 20 00 00 80 [05:05:44]Write i2c OK [05:05:44]MH_I2C_Read... [05:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:44]Read from MH i2c: E2 [05:05:44]MH_I2C_Read... [05:05:44]Read from MH i2c: E2 03 00 [05:05:44]MH_I2C_Read... [05:05:44]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [05:05:44]RAPDU: 90 00 [05:05:44]wFMCommunicate OK [05:05:44]wFMCommunicate request_size=10 [05:05:44]MH_SAM_APDU [05:05:44]CAPDU: 80 0D 02 02 05 27 19 C1 02 54 [05:05:44]Write to MH i2c: E2 0D 00 CD 05 80 0D 02 02 05 00 27 19 C1 02 54 00 00 AD [05:05:44]Write i2c OK [05:05:44]MH_I2C_Read... [05:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:44]Read from MH i2c: E2 [05:05:44]MH_I2C_Read... [05:05:44]Read from MH i2c: E2 03 00 [05:05:44]MH_I2C_Read... [05:05:44]Read from MH i2c: E2 03 00 CD 05 00 90 00 46 [05:05:44]RAPDU: 90 00 [05:05:44]wFMCommunicate OK [05:05:44]wFMCommunicate request_size=4 [05:05:44]MH_SAM_APDU [05:05:44]CAPDU: 80 0D 03 02 [05:05:44]Write to MH i2c: E2 08 00 CE 05 80 0D 03 02 00 00 00 00 4E [05:05:44]Write i2c OK [05:05:44]MH_I2C_Read... [05:05:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:05:45]Read from MH i2c: E2 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: E2 0B 00 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: E2 0B 00 CE 05 00 5C 35 D6 46 35 73 83 58 90 00 7F [05:05:45]RAPDU: 5C 35 D6 46 35 73 83 58 90 00 [05:05:45]wFMCommunicate OK [05:05:45]SAM_PROTO_SignData done [05:05:45]FM_MakeSignedData done [05:05:45]CreateOFDProtocolMessage [05:05:45]wFMCommunicate request_size=4 [05:05:45]MH_SAM_APDU [05:05:45]CAPDU: 80 11 00 00 [05:05:45]Write to MH i2c: E2 08 00 CF 05 80 11 00 00 00 00 00 00 4E [05:05:45]Write i2c OK [05:05:45]MH_I2C_Read... [05:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:45]Read from MH i2c: E2 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: E2 17 00 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: E2 17 00 CF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A5 [05:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [05:05:45]wFMCommunicate OK [05:05:45]CreateOFDProtocolMessage done [05:05:45]OFDSenderStorePacket 117304 [05:05:45]StoreOFDPacket docnum=117304 [05:05:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D3 77 07 01 55 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 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 29 CA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 38 CA 01 00 35 04 06 00 20 27 19 C1 02 54 5C 35 D6 46 35 73 83 58 [05:05:45]CheckFolder [05:05:45]dirname=/storage/ofd_packets [05:05:45]CheckFolder done [05:05:45]ProducePacketName [05:05:45]name=ofd_packets/00117304 [05:05:45]NVStorageSaveData ofd_packets/00117304 [05:05:45]File name is /storage/ofd_packets/00117304 [05:05:45]Write 301 bytes [05:05:45]NVStorageSaveData done [05:05:45]OFDSenderStorePacket done [05:05:45]KKMCreateOFDPacket done [05:05:45]NVStorageSaveData kkm_last_timestamp [05:05:45]File name is /storage/kkm_last_timestamp [05:05:45]Write 4 bytes [05:05:45]NVStorageSaveData done [05:05:45]ExternCall_PrintAddStr [05:05:45]wPrintStart [05:05:45]Write to MH i2c: 01 00 00 D0 05 D5 [05:05:45]Write i2c OK [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: 01 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: 01 07 00 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: 01 07 00 D0 05 00 00 00 00 00 FF 0F EA [05:05:45]RasterBufferAndPrint [05:05:45]line Счет N : (1)245076 [05:05:45]line ИНН: 02508201610067 [05:05:45]line Контрольно-Кассовый Чек [05:05:45]line ПРОДАЖА [05:05:45]line ТРК (МРК, ГНК) : 21 [05:05:45]line Товар: 2710124130 [05:05:45]line Аи-92-К-2 [05:05:45]line 1.500 * 66.90 [05:05:45]line = 100.35 [05:05:45]line НДС 12% НСП 1% [05:05:45]line > о реализуемом товаре [05:05:45]line ОКРУГЛЕНИЕ: -0.35 [05:05:45]line ИТОГО: 100.00 [05:05:45]line Внесено: 100.00 [05:05:45]line СДАЧА: 0.00 [05:05:45]line НСП 1% : 0.89 [05:05:45]line НДС 12% : 10.66 [05:05:45]line Наличными: 100.00 [05:05:45]line Безнал.: 0.00 [05:05:45]line Место: АЗС № 173 "Партнер Нефть" [05:05:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [05:05:45]line СНО: Общий режим [05:05:45]line Чек 4 27.10.2024 05:05 [05:05:45]line Смена: 542 ФФД: 1.0 [05:05:45]line ЗНМ: 0300000115 [05:05:45]line РНМ: 0000000000091782 [05:05:45]line Версия ККМ: 001 [05:05:45]line ФМ: 0000000000871767 [05:05:45]line ФД: 117304 [05:05:45]line ФПД: 35352307892820 [05:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T050545&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117304&fm=35352307892820&tin=02508201610067®Number=0000000000091782&sum=10000 [05:05:45]written 0, free lines is 4095 [05:05:45]OFD Sender: Processing packet 117304 [packets to send 75, broken 74] [05:05:45]ProducePacketName [05:05:45]name=ofd_packets/00117304 [05:05:45]OFD Sender: To server: pG, [05:05:45]CommunicateWithHost lk.salyk.kg:30040 [05:05:45]ConnectInit lk.salyk.kg [05:05:45]Write to MH i2c: 01 00 00 FA 05 FF [05:05:45]Write i2c OK [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: 01 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: 01 07 00 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: 01 07 00 FA 05 00 00 00 00 00 AB 0C BD [05:05:45]RasterBufferAndPrint [05:05:45]line [05:05:45]line [05:05:45]line [05:05:45]line [05:05:45]line [05:05:45]Connected sock=10 [05:05: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 36 37 0F 01 00 00 D3 77 07 01 55 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 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 29 CA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 38 CA 01 00 35 04 06 00 20 27 19 C1 02 54 5C 35 D6 46 35 73 83 58 [05:05:45]written 0, free lines is 3249 [05:05:45]MH_Cut [05:05:45]Write to MH i2c: D1 01 00 01 06 01 D9 [05:05:45]Write i2c OK [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: D1 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: D1 01 00 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: D1 01 00 01 06 00 D8 [05:05:45]Write to MH i2c: 01 00 00 02 06 08 [05:05:45]Write i2c OK [05:05:45]MH_I2C_Read... [05:05: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 36 37 4F 00 00 00 98 AC 47 00 13 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 36 37 10 04 04 00 38 CA 01 00 F4 03 04 00 F1 75 1D 67 B6 04 01 00 00 3E 7C A2 92 9C AE 82 E0 [05:05:45]CommunicateWithHost err = 0 [05:05:45]CheckOFDResponse [05:05:45]1017 (14) - 77093643461234 [05:05:45]1041 (16) - 0000000000871767 [05:05:45]1040 (4) - 117304 [05:05:45]1012 (4) - 26.10.2024 23:06 [05:05:45]1206 (1) - 0 [05:05:45]OFD Sender: Remove packet 117304 [05:05:45]ProducePacketName [05:05:45]name=ofd_packets/00117304 [05:05:45]NVStorageDeleteData [05:05:46]OFD Sender: No OFD packet to send [05:05:46]*** Cut start [05:05:46]*** Purtial cut [05:05:46]*** Stage 1: CUTSNS_PIN = 1 [05:05:46]Read from MH i2c: 01 [05:05:46]MH_I2C_Read... [05:05:46]*** Stop cut motor [05:05:46]*** Cut end [05:05:46]Read from MH i2c: 01 07 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: 01 07 00 02 06 00 00 00 00 00 FF 0F 1D [05:05:46]process_action close_receipt done [05:05:46]requested_data is exist [05:05:46]produce_requested_data [05:05:46]requested_item fm.sn is exist - process it [05:05:46]wFMCommunicate request_size=4 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 11 00 00 [05:05:46]Write to MH i2c: E2 08 00 03 06 80 11 00 00 00 00 00 00 83 [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 17 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 17 00 03 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DA [05:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [05:05:46]wFMCommunicate OK [05:05:46]requested_item fd.num is exist - process it [05:05:46]SAM_PROTO_GetFieldsCounters [05:05:46]wFMCommunicate request_size=4 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 13 00 00 [05:05:46]Write to MH i2c: E2 08 00 04 06 80 13 00 00 00 00 00 00 86 [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 62 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 62 00 04 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 38 CA 01 00 0E 04 04 00 1E 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 DC [05:05: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 38 CA 01 00 0E 04 04 00 1E 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 [05:05:46]wFMCommunicate OK [05:05:46]SAM_PROTO_GetFieldsCounters done [05:05:46]requested_item shift.num is exist - process it [05:05:46]requested_item shift.opened is exist - process it [05:05:46]req_shift_opened [05:05:46]FM_GetShiftState [05:05:46]SAM_PROTO_GetShiftState [05:05:46]wFMCommunicate request_size=4 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 13 01 00 [05:05:46]Write to MH i2c: E2 08 00 05 06 80 13 01 00 00 00 00 00 88 [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 0E 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 0E 00 05 06 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C7 [05:05:46]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [05:05:46]wFMCommunicate OK [05:05:46]SAM_PROTO_GetShiftState done [05:05:46]FM_GetShiftState done [05:05:46]req_shift_opened done [05:05:46]requested_item shift.open_date is exist - process it [05:05:46]req_shift_open_date [05:05:46]req_shift_open_date done [05:05:46]produce_requested_data done [05:05:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117304,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [05:05:46]process_action_free close_receipt [05:05:46]json_value_free [05:05:46]json_value_free done [05:05:46]process_json_proto returns [05:05:46]Send response to host [05:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117304,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [05:05:46]free response buf [05:05:46]execute_script done [05:05:46]execute_script returns [05:05:46]free content buf [05:05:46]Sock 9.Close socket [05:05:46]Sock 9.Thread stoped [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00: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:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:49]accept exits with 7 [06:27:49]New connection [06:27:49]New thread 3066924388 created [06:27:49]Thread 3066781028 joined [06:27:49]Waiting for new connection... [06:27:49] Sock 7.Parse request [06:27:49]Sock 7.Check first char [06:27:49]Sock 7.First char is OK [06:27:49]request: POST /json_proto HTTP/1.0 [06:27:49]Method: POST [06:27:49]URL: /json_proto [06:27:49]Method is POST - this is cgi request [06:27:49]url: /json_proto [06:27:49]query_string will be loaded in cgi processing [06:27:49]execute_cgi json_proto POST (null) [06:27:49]execute_cgi path=json_proto method=POST [06:27:49]POST find Content-Length [06:27:49]Host: 172.17.96.67:8080 [06:27:49]Content-Length: 677 [06:27:49]Content-Type: application/json [06:27:49] [06:27:49]POST finish read [06:27:49]Found Content-Length = 677 [06:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:27:49]execute_script... [06:27: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)245077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:27:49]POST & json_proto [06:27:49]process_json_proto [06:27:49]json parsed OK: [06:27:49]protocol is kg_v1.0 [06:27:49]action value=close_receipt [06:27:49]process_action close_receipt [06:27:49]cmd_close_receipt [06:27:49]MH_GetDate [06:27:49]Write to MH i2c: F0 00 00 06 06 FB [06:27:49]Write i2c OK [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: F0 [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: F0 09 00 [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: F0 09 00 06 06 00 68 DD 1D 67 F7 AE 1B 67 F4 [06:27:49]GetLastDocTimeStamp 1730005545 [06:27:49]current date 1730010472 [06:27:49]FM_GetShiftState [06:27:49]SAM_PROTO_GetShiftState [06:27:49]wFMCommunicate request_size=4 [06:27:49]MH_SAM_APDU [06:27:49]CAPDU: 80 13 01 00 [06:27:49]Write to MH i2c: E2 08 00 07 06 80 13 01 00 00 00 00 00 8A [06:27:49]Write i2c OK [06:27:49]MH_I2C_Read... [06:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:49]Read from MH i2c: E2 [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: E2 0E 00 [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: E2 0E 00 07 06 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C9 [06:27:49]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [06:27:49]wFMCommunicate OK [06:27:49]SAM_PROTO_GetShiftState done [06:27:49]FM_GetShiftState done [06:27:49]opened in 1729987372 [06:27:49]opened+sec_in_day 1730073772 [06:27:49]quantity*price = 50041 [06:27:49]sum+1 = 50042 [06:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 5 27.10.2024 06:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117305 ФПД: 104876464124396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062752&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117305&fm=104876464124396&tin=02508201610067®Number=0000000000091782&sum=50000 [06:27:50]StoreToDocumentArchive [06:27:50]shift 542 fd 117305 [06:27:50]save to /storage/0542/doc_00117305 [06:27:50]save last doc name /storage/0542/doc_00117305 to /storage/kkm_last_doc_name [06:27:50]save OK [06:27:50]Clear old archive folders... [06:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:27:51]tlvbuf is 00FC4E20 [06:27:51]SAM_PROTO_ClearQueue [06:27:51]wFMCommunicate request_size=4 [06:27:51]MH_SAM_APDU [06:27:51]CAPDU: 80 09 00 00 [06:27:51]Write to MH i2c: E2 08 00 14 06 80 09 00 00 00 00 00 00 8C [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:51]Read from MH i2c: E2 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 03 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [06:27:51]RAPDU: 90 00 [06:27:51]wFMCommunicate OK [06:27:51]SAM_PROTO_ClearQueue done [06:27:51]KKMCreateOFDPacket [06:27:51]OFDProtocolAddRootSTLVToBuf [06:27:51]FM_MakeSignedData [06:27:51]FM_MakeSignedData [06:27:51]SAM_PROTO_SignData [06:27:51]wFMCommunicate request_size=4 [06:27:51]MH_SAM_APDU [06:27:51]CAPDU: 80 0D 01 02 [06:27:51]Write to MH i2c: E2 08 00 15 06 80 0D 01 02 00 00 00 00 94 [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:51]Read from MH i2c: E2 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 03 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [06:27:51]RAPDU: 90 00 [06:27:51]wFMCommunicate OK [06:27:51]wFMCommunicate request_size=255 [06:27:51]MH_SAM_APDU [06:27: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 68 DD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 39 CA 01 00 35 04 06 00 5F [06:27:51]Write to MH i2c: E2 02 01 16 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 05 00 00 00 F4 03 04 00 68 DD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 39 CA 01 00 35 04 06 00 5F 00 00 77 [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]OFD Sender: No OFD packet to send [06:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:51]Read from MH i2c: E2 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 03 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 03 00 16 06 00 90 00 90 [06:27:51]RAPDU: 90 00 [06:27:51]wFMCommunicate OK [06:27:51]wFMCommunicate request_size=10 [06:27:51]MH_SAM_APDU [06:27:51]CAPDU: 80 0D 02 02 05 62 74 63 B1 EC [06:27:51]Write to MH i2c: E2 0D 00 17 06 80 0D 02 02 05 00 62 74 63 B1 EC 00 00 77 [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 [06:27:51]MH_I2C_Read... [06:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:51]Read from MH i2c: E2 03 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [06:27:51]RAPDU: 90 00 [06:27:51]wFMCommunicate OK [06:27:51]wFMCommunicate request_size=4 [06:27:51]MH_SAM_APDU [06:27:51]CAPDU: 80 0D 03 02 [06:27:51]Write to MH i2c: E2 08 00 18 06 80 0D 03 02 00 00 00 00 99 [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:51]Read from MH i2c: E2 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 0B 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 0B 00 18 06 00 1D 2E 32 C3 09 CA 62 65 90 00 74 [06:27:51]RAPDU: 1D 2E 32 C3 09 CA 62 65 90 00 [06:27:51]wFMCommunicate OK [06:27:51]SAM_PROTO_SignData done [06:27:51]FM_MakeSignedData done [06:27:51]CreateOFDProtocolMessage [06:27:51]wFMCommunicate request_size=4 [06:27:51]MH_SAM_APDU [06:27:51]CAPDU: 80 11 00 00 [06:27:51]Write to MH i2c: E2 08 00 19 06 80 11 00 00 00 00 00 00 99 [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:51]Read from MH i2c: E2 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 17 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: E2 17 00 19 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F0 [06:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [06:27:51]wFMCommunicate OK [06:27:51]CreateOFDProtocolMessage done [06:27:51]OFDSenderStorePacket 117305 [06:27:51]StoreOFDPacket docnum=117305 [06:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2E 1F 07 01 BB 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 68 DD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 39 CA 01 00 35 04 06 00 5F 62 74 63 B1 EC 1D 2E 32 C3 09 CA 62 65 [06:27:51]CheckFolder [06:27:51]dirname=/storage/ofd_packets [06:27:51]CheckFolder done [06:27:51]ProducePacketName [06:27:51]name=ofd_packets/00117305 [06:27:51]NVStorageSaveData ofd_packets/00117305 [06:27:51]File name is /storage/ofd_packets/00117305 [06:27:51]Write 301 bytes [06:27:51]NVStorageSaveData done [06:27:51]OFDSenderStorePacket done [06:27:51]KKMCreateOFDPacket done [06:27:51]NVStorageSaveData kkm_last_timestamp [06:27:51]File name is /storage/kkm_last_timestamp [06:27:51]Write 4 bytes [06:27:51]NVStorageSaveData done [06:27:51]ExternCall_PrintAddStr [06:27:51]wPrintStart [06:27:51]Write to MH i2c: 01 00 00 1A 06 20 [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: 01 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: 01 07 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 FF 0F 35 [06:27:51]RasterBufferAndPrint [06:27:51]line Счет N : (1)245077 [06:27:51]line ИНН: 02508201610067 [06:27:51]line Контрольно-Кассовый Чек [06:27:51]line ПРОДАЖА [06:27:51]line ТРК (МРК, ГНК) : 11 [06:27:51]line Товар: 2710124130 [06:27:51]line Аи-92-К-2 [06:27:51]line 7.480 * 66.90 [06:27:51]line = 500.41 [06:27:51]line НДС 12% НСП 1% [06:27:51]line > о реализуемом товаре [06:27:51]line ОКРУГЛЕНИЕ: -0.41 [06:27:51]line ИТОГО: 500.00 [06:27:51]line Внесено: 500.00 [06:27:51]line СДАЧА: 0.00 [06:27:51]line НСП 1% : 4.43 [06:27:51]line НДС 12% : 53.14 [06:27:51]line Наличными: 500.00 [06:27:51]line Безнал.: 0.00 [06:27:51]line Место: АЗС № 173 "Партнер Нефть" [06:27:51]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [06:27:51]line СНО: Общий режим [06:27:51]line Чек 5 27.10.2024 06:27 [06:27:51]line Смена: 542 ФФД: 1.0 [06:27:51]line ЗНМ: 0300000115 [06:27:51]line РНМ: 0000000000091782 [06:27:51]line Версия ККМ: 001 [06:27:51]line ФМ: 0000000000871767 [06:27:51]line ФД: 117305 [06:27:51]line ФПД: 104876464124396 [06:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062752&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117305&fm=104876464124396&tin=02508201610067®Number=0000000000091782&sum=50000 [06:27:51]OFD Sender: Processing packet 117305 [packets to send 75, broken 74] [06:27:51]ProducePacketName [06:27:51]name=ofd_packets/00117305 [06:27:51]OFD Sender: To server: pG, [06:27:51]CommunicateWithHost lk.salyk.kg:30040 [06:27:51]ConnectInit lk.salyk.kg [06:27:51]written 0, free lines is 4095 [06:27:51]Connected sock=10 [06:27: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 36 37 0F 01 00 00 2E 1F 07 01 BB 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 68 DD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 39 CA 01 00 35 04 06 00 5F 62 74 63 B1 EC 1D 2E 32 C3 09 CA 62 65 [06:27: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 36 37 4F 00 00 00 A3 6E 47 00 A6 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 36 37 10 04 04 00 39 CA 01 00 F4 03 04 00 2F 89 1D 67 B6 04 01 00 00 84 9C 02 81 0C CA AF CE [06:27:52]CommunicateWithHost err = 0 [06:27:52]CheckOFDResponse [06:27:52]1017 (14) - 77093643461234 [06:27:52]1041 (16) - 0000000000871767 [06:27:52]1040 (4) - 117305 [06:27:52]1012 (4) - 27.10.2024 00:28 [06:27:52]1206 (1) - 0 [06:27:52]OFD Sender: Remove packet 117305 [06:27:52]ProducePacketName [06:27:52]name=ofd_packets/00117305 [06:27:52]NVStorageDeleteData [06:27:52]Write to MH i2c: 01 00 00 44 06 4A [06:27:52]Write i2c OK [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: 01 [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: 01 07 00 [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: 01 07 00 44 06 00 00 00 00 00 A8 0C 05 [06:27:52]RasterBufferAndPrint [06:27:52]line [06:27:52]line [06:27:52]line [06:27:52]line [06:27:52]line [06:27:52]written 0, free lines is 3243 [06:27:52]MH_Cut [06:27:52]Write to MH i2c: D1 01 00 4B 06 01 23 [06:27:52]Write i2c OK [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: D1 [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: D1 01 00 [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: D1 01 00 4B 06 00 22 [06:27:52]Write to MH i2c: 01 00 00 4C 06 52 [06:27:52]Write i2c OK [06:27:52]MH_I2C_Read... [06:27:52]OFD Sender: No OFD packet to send [06:27:53]*** Cut start [06:27:53]*** Purtial cut [06:27:53]*** Stage 1: CUTSNS_PIN = 1 [06:27:53]Read from MH i2c: 01 [06:27:53]MH_I2C_Read... [06:27:53]*** Stop cut motor [06:27:53]*** Cut end [06:27:53]Read from MH i2c: 01 07 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: 01 07 00 4C 06 00 00 00 00 00 FF 0F 67 [06:27:53]process_action close_receipt done [06:27:53]requested_data is exist [06:27:53]produce_requested_data [06:27:53]requested_item fm.sn is exist - process it [06:27:53]wFMCommunicate request_size=4 [06:27:53]MH_SAM_APDU [06:27:53]CAPDU: 80 11 00 00 [06:27:53]Write to MH i2c: E2 08 00 4D 06 80 11 00 00 00 00 00 00 CD [06:27:53]Write i2c OK [06:27:53]MH_I2C_Read... [06:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:53]Read from MH i2c: E2 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 17 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 17 00 4D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 24 [06:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [06:27:53]wFMCommunicate OK [06:27:53]requested_item fd.num is exist - process it [06:27:53]SAM_PROTO_GetFieldsCounters [06:27:53]wFMCommunicate request_size=4 [06:27:53]MH_SAM_APDU [06:27:53]CAPDU: 80 13 00 00 [06:27:53]Write to MH i2c: E2 08 00 4E 06 80 13 00 00 00 00 00 00 D0 [06:27:53]Write i2c OK [06:27:53]MH_I2C_Read... [06:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:53]Read from MH i2c: E2 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 62 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 62 00 4E 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 39 CA 01 00 0E 04 04 00 1E 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 2A [06:27: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 39 CA 01 00 0E 04 04 00 1E 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 [06:27:53]wFMCommunicate OK [06:27:53]SAM_PROTO_GetFieldsCounters done [06:27:53]requested_item shift.num is exist - process it [06:27:53]requested_item shift.opened is exist - process it [06:27:53]req_shift_opened [06:27:53]FM_GetShiftState [06:27:53]SAM_PROTO_GetShiftState [06:27:53]wFMCommunicate request_size=4 [06:27:53]MH_SAM_APDU [06:27:53]CAPDU: 80 13 01 00 [06:27:53]Write to MH i2c: E2 08 00 4F 06 80 13 01 00 00 00 00 00 D2 [06:27:53]Write i2c OK [06:27:53]MH_I2C_Read... [06:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:53]Read from MH i2c: E2 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 0E 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 0E 00 4F 06 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 11 [06:27:53]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [06:27:53]wFMCommunicate OK [06:27:53]SAM_PROTO_GetShiftState done [06:27:53]FM_GetShiftState done [06:27:53]req_shift_opened done [06:27:53]requested_item shift.open_date is exist - process it [06:27:53]req_shift_open_date [06:27:53]req_shift_open_date done [06:27:53]produce_requested_data done [06:27:53]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117305,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [06:27:53]process_action_free close_receipt [06:27:53]json_value_free [06:27:53]json_value_free done [06:27:53]process_json_proto returns [06:27:53]Send response to host [06:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117305,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [06:27:53]free response buf [06:27:53]execute_script done [06:27:53]execute_script returns [06:27:53]free content buf [06:27:53]Sock 7.Close socket [06:27:53]Sock 7.Thread stoped [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]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:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:00]accept exits with 9 [06:55:00]New connection [06:55:00]New thread 3066781028 created [06:55:00]Thread 3066924388 joined [06:55:00]Waiting for new connection... [06:55:00] Sock 9.Parse request [06:55:00]Sock 9.Check first char [06:55:00]Sock 9.First char is OK [06:55:00]request: POST /json_proto HTTP/1.0 [06:55:00]Method: POST [06:55:00]URL: /json_proto [06:55:00]Method is POST - this is cgi request [06:55:00]url: /json_proto [06:55:00]query_string will be loaded in cgi processing [06:55:00]execute_cgi json_proto POST (null) [06:55:00]execute_cgi path=json_proto method=POST [06:55:00]POST find Content-Length [06:55:00]Host: 172.17.96.67:8080 [06:55:00]Content-Length: 679 [06:55:00]Content-Type: application/json [06:55:00] [06:55:00]POST finish read [06:55:00]Found Content-Length = 679 [06:55:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [06:55:00]execute_script... [06:55: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)245078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [06:55:00]POST & json_proto [06:55:00]process_json_proto [06:55:00]json parsed OK: [06:55:00]protocol is kg_v1.0 [06:55:00]action value=close_receipt [06:55:00]process_action close_receipt [06:55:00]cmd_close_receipt [06:55:00]MH_GetDate [06:55:00]Write to MH i2c: F0 00 00 50 06 45 [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: F0 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: F0 09 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: F0 09 00 50 06 00 C7 E3 1D 67 F7 AE 1B 67 A3 [06:55:00]GetLastDocTimeStamp 1730010472 [06:55:00]current date 1730012103 [06:55:00]FM_GetShiftState [06:55:00]SAM_PROTO_GetShiftState [06:55:00]wFMCommunicate request_size=4 [06:55:00]MH_SAM_APDU [06:55:00]CAPDU: 80 13 01 00 [06:55:00]Write to MH i2c: E2 08 00 51 06 80 13 01 00 00 00 00 00 D4 [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:00]Read from MH i2c: E2 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 0E 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 0E 00 51 06 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 13 [06:55:00]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [06:55:00]wFMCommunicate OK [06:55:00]SAM_PROTO_GetShiftState done [06:55:00]FM_GetShiftState done [06:55:00]opened in 1729987372 [06:55:00]opened+sec_in_day 1730073772 [06:55:00]quantity*price = 200025 [06:55:00]sum+1 = 200026 [06:55:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 6 27.10.2024 06:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117306 ФПД: 198927888676131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065503&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117306&fm=198927888676131&tin=02508201610067®Number=0000000000091782&sum=200000 [06:55:01]StoreToDocumentArchive [06:55:01]shift 542 fd 117306 [06:55:01]save to /storage/0542/doc_00117306 [06:55:01]save last doc name /storage/0542/doc_00117306 to /storage/kkm_last_doc_name [06:55:01]save OK [06:55:01]Clear old archive folders... [06:55:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:55:01]tlvbuf is 00FC3EB0 [06:55:01]SAM_PROTO_ClearQueue [06:55:01]wFMCommunicate request_size=4 [06:55:01]MH_SAM_APDU [06:55:01]CAPDU: 80 09 00 00 [06:55:01]Write to MH i2c: E2 08 00 5E 06 80 09 00 00 00 00 00 00 D6 [06:55:01]Write i2c OK [06:55:01]MH_I2C_Read... [06:55:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:55:01]Read from MH i2c: E2 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 03 00 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [06:55:01]RAPDU: 90 00 [06:55:01]wFMCommunicate OK [06:55:01]SAM_PROTO_ClearQueue done [06:55:01]KKMCreateOFDPacket [06:55:01]OFDProtocolAddRootSTLVToBuf [06:55:01]FM_MakeSignedData [06:55:01]FM_MakeSignedData [06:55:01]SAM_PROTO_SignData [06:55:01]wFMCommunicate request_size=4 [06:55:01]MH_SAM_APDU [06:55:01]CAPDU: 80 0D 01 02 [06:55:01]Write to MH i2c: E2 08 00 5F 06 80 0D 01 02 00 00 00 00 DE [06:55:01]Write i2c OK [06:55:01]MH_I2C_Read... [06:55:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:55:01]Read from MH i2c: E2 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 03 00 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [06:55:01]RAPDU: 90 00 [06:55:01]wFMCommunicate OK [06:55:01]wFMCommunicate request_size=255 [06:55:01]MH_SAM_APDU [06:55: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 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 06 00 00 00 F4 03 04 00 C7 E3 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3A CA 01 00 35 04 06 00 B4 EC 82 23 [06:55:01]Write to MH i2c: E2 02 01 60 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 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 06 00 00 00 F4 03 04 00 C7 E3 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3A CA 01 00 35 04 06 00 B4 EC 82 23 00 00 F2 [06:55:01]Write i2c OK [06:55:01]MH_I2C_Read... [06:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:02]Read from MH i2c: E2 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 03 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 03 00 60 06 00 90 00 DA [06:55:02]RAPDU: 90 00 [06:55:02]wFMCommunicate OK [06:55:02]wFMCommunicate request_size=7 [06:55:02]MH_SAM_APDU [06:55:02]CAPDU: 80 0D 02 02 02 F5 23 [06:55:02]Write to MH i2c: E2 0A 00 61 06 80 0D 02 02 02 00 F5 23 00 00 FD [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:02]Read from MH i2c: E2 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 03 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 03 00 61 06 00 90 00 DB [06:55:02]RAPDU: 90 00 [06:55:02]wFMCommunicate OK [06:55:02]wFMCommunicate request_size=4 [06:55:02]MH_SAM_APDU [06:55:02]CAPDU: 80 0D 03 02 [06:55:02]Write to MH i2c: E2 08 00 62 06 80 0D 03 02 00 00 00 00 E3 [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:02]Read from MH i2c: E2 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 0B 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 0B 00 62 06 00 E0 72 A2 51 FF BA 93 0C 90 00 81 [06:55:02]RAPDU: E0 72 A2 51 FF BA 93 0C 90 00 [06:55:02]wFMCommunicate OK [06:55:02]SAM_PROTO_SignData done [06:55:02]FM_MakeSignedData done [06:55:02]CreateOFDProtocolMessage [06:55:02]wFMCommunicate request_size=4 [06:55:02]MH_SAM_APDU [06:55:02]CAPDU: 80 11 00 00 [06:55:02]Write to MH i2c: E2 08 00 63 06 80 11 00 00 00 00 00 00 E3 [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:02]Read from MH i2c: E2 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 17 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 17 00 63 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3A [06:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [06:55:02]wFMCommunicate OK [06:55:02]CreateOFDProtocolMessage done [06:55:02]OFDSenderStorePacket 117306 [06:55:02]StoreOFDPacket docnum=117306 [06:55:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 1D 2A 04 01 88 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 06 00 00 00 F4 03 04 00 C7 E3 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3A CA 01 00 35 04 06 00 B4 EC 82 23 F5 23 E0 72 A2 51 FF BA 93 0C [06:55:02]CheckFolder [06:55:02]dirname=/storage/ofd_packets [06:55:02]CheckFolder done [06:55:02]ProducePacketName [06:55:02]name=ofd_packets/00117306 [06:55:02]NVStorageSaveData ofd_packets/00117306 [06:55:02]File name is /storage/ofd_packets/00117306 [06:55:02]Write 298 bytes [06:55:02]NVStorageSaveData done [06:55:02]OFDSenderStorePacket done [06:55:02]KKMCreateOFDPacket done [06:55:02]NVStorageSaveData kkm_last_timestamp [06:55:02]File name is /storage/kkm_last_timestamp [06:55:02]Write 4 bytes [06:55:02]NVStorageSaveData done [06:55:02]ExternCall_PrintAddStr [06:55:02]wPrintStart [06:55:02]Write to MH i2c: 01 00 00 64 06 6A [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: 01 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: 01 07 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: 01 07 00 64 06 00 00 00 00 00 FF 0F 7F [06:55:02]RasterBufferAndPrint [06:55:02]line Счет N : (1)245078 [06:55:02]line ИНН: 02508201610067 [06:55:02]line Контрольно-Кассовый Чек [06:55:02]line ПРОДАЖА [06:55:02]line ТРК (МРК, ГНК) : 23 [06:55:02]line Товар: 2710194210 [06:55:02]line ДТ-К-2 [06:55:02]line 26.250 * 76.20 [06:55:02]line = 2000.25 [06:55:02]line НДС 12% НСП 1% [06:55:02]line > о реализуемом товаре [06:55:02]line ОКРУГЛЕНИЕ: -0.25 [06:55:02]line ИТОГО: 2000.00 [06:55:02]line Внесено: 2000.00 [06:55:02]line СДАЧА: 0.00 [06:55:02]line НСП 1% : 17.70 [06:55:02]line НДС 12% : 212.42 [06:55:02]line Наличными: 2000.00 [06:55:02]line Безнал.: 0.00 [06:55:02]line Место: АЗС № 173 "Партнер Нефть" [06:55:02]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [06:55:02]line СНО: Общий режим [06:55:02]line Чек 6 27.10.2024 06:55 [06:55:02]line Смена: 542 ФФД: 1.0 [06:55:02]line ЗНМ: 0300000115 [06:55:02]line РНМ: 0000000000091782 [06:55:02]line Версия ККМ: 001 [06:55:02]line ФМ: 0000000000871767 [06:55:02]line ФД: 117306 [06:55:02]line ФПД: 198927888676131 [06:55:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065503&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117306&fm=198927888676131&tin=02508201610067®Number=0000000000091782&sum=200000 [06:55:02]OFD Sender: Processing packet 117306 [packets to send 75, broken 74] [06:55:02]ProducePacketName [06:55:02]name=ofd_packets/00117306 [06:55:02]OFD Sender: To server: pG, [06:55:02]CommunicateWithHost lk.salyk.kg:30040 [06:55:02]ConnectInit lk.salyk.kg [06:55:02]written 0, free lines is 4095 [06:55:02]Connected sock=10 [06:55: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 36 37 0C 01 00 00 1D 2A 04 01 88 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 06 00 00 00 F4 03 04 00 C7 E3 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3A CA 01 00 35 04 06 00 B4 EC 82 23 F5 23 E0 72 A2 51 FF BA 93 0C [06:55: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 36 37 4F 00 00 00 09 FD 47 00 49 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 36 37 10 04 04 00 3A CA 01 00 F4 03 04 00 8E 8F 1D 67 B6 04 01 00 00 C5 C8 CD AF 75 E6 BF 6F [06:55:02]CommunicateWithHost err = 0 [06:55:02]CheckOFDResponse [06:55:02]1017 (14) - 77093643461234 [06:55:02]1041 (16) - 0000000000871767 [06:55:02]1040 (4) - 117306 [06:55:02]1012 (4) - 27.10.2024 00:55 [06:55:02]1206 (1) - 0 [06:55:02]OFD Sender: Remove packet 117306 [06:55:02]ProducePacketName [06:55:02]name=ofd_packets/00117306 [06:55:02]NVStorageDeleteData [06:55:02]Write to MH i2c: 01 00 00 8E 06 94 [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: 01 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: 01 07 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: 01 07 00 8E 06 00 00 00 00 00 A9 0C 50 [06:55:02]RasterBufferAndPrint [06:55:02]line [06:55:02]line [06:55:02]line [06:55:02]line [06:55:02]line [06:55:02]written 0, free lines is 3246 [06:55:02]MH_Cut [06:55:02]Write to MH i2c: D1 01 00 95 06 01 6D [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: D1 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: D1 01 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: D1 01 00 95 06 00 6C [06:55:02]Write to MH i2c: 01 00 00 96 06 9C [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:03]OFD Sender: No OFD packet to send [06:55:03]*** Cut start [06:55:03]*** Purtial cut [06:55:03]*** Stage 1: CUTSNS_PIN = 1 [06:55:04]Read from MH i2c: 01 [06:55:04]MH_I2C_Read... [06:55:04]*** Stop cut motor [06:55:04]*** Cut end [06:55:04]Read from MH i2c: 01 07 00 [06:55:04]MH_I2C_Read... [06:55:04]Read from MH i2c: 01 07 00 96 06 00 00 00 00 00 FF 0F B1 [06:55:04]process_action close_receipt done [06:55:04]requested_data is exist [06:55:04]produce_requested_data [06:55:04]requested_item fm.sn is exist - process it [06:55:04]wFMCommunicate request_size=4 [06:55:04]MH_SAM_APDU [06:55:04]CAPDU: 80 11 00 00 [06:55:04]Write to MH i2c: E2 08 00 97 06 80 11 00 00 00 00 00 00 17 [06:55:04]Write i2c OK [06:55:04]MH_I2C_Read... [06:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:04]Read from MH i2c: E2 [06:55:04]MH_I2C_Read... [06:55:04]Read from MH i2c: E2 17 00 [06:55:04]MH_I2C_Read... [06:55:04]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 36 37 90 00 6E [06:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [06:55:04]wFMCommunicate OK [06:55:04]requested_item fd.num is exist - process it [06:55:04]SAM_PROTO_GetFieldsCounters [06:55:04]wFMCommunicate request_size=4 [06:55:04]MH_SAM_APDU [06:55:04]CAPDU: 80 13 00 00 [06:55:04]Write to MH i2c: E2 08 00 98 06 80 13 00 00 00 00 00 00 1A [06:55:04]Write i2c OK [06:55:04]MH_I2C_Read... [06:55:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:55:04]Read from MH i2c: E2 [06:55:04]MH_I2C_Read... [06:55:04]Read from MH i2c: E2 62 00 [06:55:04]MH_I2C_Read... [06:55:04]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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3A CA 01 00 0E 04 04 00 1E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [06:55: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3A CA 01 00 0E 04 04 00 1E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:55:04]wFMCommunicate OK [06:55:04]SAM_PROTO_GetFieldsCounters done [06:55:04]requested_item shift.num is exist - process it [06:55:04]requested_item shift.opened is exist - process it [06:55:04]req_shift_opened [06:55:04]FM_GetShiftState [06:55:04]SAM_PROTO_GetShiftState [06:55:04]wFMCommunicate request_size=4 [06:55:04]MH_SAM_APDU [06:55:04]CAPDU: 80 13 01 00 [06:55:04]Write to MH i2c: E2 08 00 99 06 80 13 01 00 00 00 00 00 1C [06:55:04]Write i2c OK [06:55:04]MH_I2C_Read... [06:55:04]Read from MH i2c: E2 [06:55:04]MH_I2C_Read... [06:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:04]Read from MH i2c: E2 0E 00 [06:55:04]MH_I2C_Read... [06:55:04]Read from MH i2c: E2 0E 00 99 06 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 5B [06:55:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [06:55:04]wFMCommunicate OK [06:55:04]SAM_PROTO_GetShiftState done [06:55:04]FM_GetShiftState done [06:55:04]req_shift_opened done [06:55:04]requested_item shift.open_date is exist - process it [06:55:04]req_shift_open_date [06:55:04]req_shift_open_date done [06:55:04]produce_requested_data done [06:55:04]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117306,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [06:55:04]process_action_free close_receipt [06:55:04]json_value_free [06:55:04]json_value_free done [06:55:04]process_json_proto returns [06:55:04]Send response to host [06:55:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117306,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [06:55:04]free response buf [06:55:04]execute_script done [06:55:04]execute_script returns [06:55:04]free content buf [06:55:04]Sock 9.Close socket [06:55:04]Sock 9.Thread stoped [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:09]accept exits with 7 [07:02:09]New connection [07:02:09]New thread 3066924388 created [07:02:09]Thread 3066781028 joined [07:02:09]Waiting for new connection... [07:02:09] Sock 7.Parse request [07:02:09]Sock 7.Check first char [07:02:09]Sock 7.First char is OK [07:02:09]request: POST /json_proto HTTP/1.0 [07:02:09]Method: POST [07:02:09]URL: /json_proto [07:02:09]Method is POST - this is cgi request [07:02:09]url: /json_proto [07:02:09]query_string will be loaded in cgi processing [07:02:09]execute_cgi json_proto POST (null) [07:02:09]execute_cgi path=json_proto method=POST [07:02:09]POST find Content-Length [07:02:09]Host: 172.17.96.67:8080 [07:02:09]Content-Length: 677 [07:02:09]Content-Type: application/json [07:02:09] [07:02:09]POST finish read [07:02:09]Found Content-Length = 677 [07:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:09]execute_script... [07:02: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)245079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:09]POST & json_proto [07:02:09]process_json_proto [07:02:09]json parsed OK: [07:02:09]protocol is kg_v1.0 [07:02:09]action value=close_receipt [07:02:09]process_action close_receipt [07:02:09]cmd_close_receipt [07:02:09]MH_GetDate [07:02:09]Write to MH i2c: F0 00 00 9A 06 8F [07:02:09]Write i2c OK [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: F0 [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: F0 09 00 [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: F0 09 00 9A 06 00 74 E5 1D 67 F7 AE 1B 67 9C [07:02:09]GetLastDocTimeStamp 1730012103 [07:02:09]current date 1730012532 [07:02:09]FM_GetShiftState [07:02:09]SAM_PROTO_GetShiftState [07:02:09]wFMCommunicate request_size=4 [07:02:09]MH_SAM_APDU [07:02:09]CAPDU: 80 13 01 00 [07:02:09]Write to MH i2c: E2 08 00 9B 06 80 13 01 00 00 00 00 00 1E [07:02:09]Write i2c OK [07:02:09]MH_I2C_Read... [07:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:09]Read from MH i2c: E2 [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: E2 0E 00 [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: E2 0E 00 9B 06 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 5D [07:02:09]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [07:02:09]wFMCommunicate OK [07:02:09]SAM_PROTO_GetShiftState done [07:02:09]FM_GetShiftState done [07:02:09]opened in 1729987372 [07:02:09]opened+sec_in_day 1730073772 [07:02:09]quantity*price = 45023 [07:02:09]sum+1 = 45025 [07:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 7 27.10.2024 07:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117307 ФПД: 214971894874977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070212&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117307&fm=214971894874977&tin=02508201610067®Number=0000000000091782&sum=45000 [07:02:10]StoreToDocumentArchive [07:02:10]shift 542 fd 117307 [07:02:10]save to /storage/0542/doc_00117307 [07:02:10]save last doc name /storage/0542/doc_00117307 to /storage/kkm_last_doc_name [07:02:10]save OK [07:02:10]Clear old archive folders... [07:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:02:10]tlvbuf is 00FEB2D0 [07:02:10]SAM_PROTO_ClearQueue [07:02:10]wFMCommunicate request_size=4 [07:02:10]MH_SAM_APDU [07:02:10]CAPDU: 80 09 00 00 [07:02:10]Write to MH i2c: E2 08 00 A8 06 80 09 00 00 00 00 00 00 20 [07:02:10]Write i2c OK [07:02:10]MH_I2C_Read... [07:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:10]Read from MH i2c: E2 [07:02:10]MH_I2C_Read... [07:02:10]Read from MH i2c: E2 03 00 [07:02:10]MH_I2C_Read... [07:02:10]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [07:02:10]RAPDU: 90 00 [07:02:10]wFMCommunicate OK [07:02:10]SAM_PROTO_ClearQueue done [07:02:10]KKMCreateOFDPacket [07:02:10]OFDProtocolAddRootSTLVToBuf [07:02:10]FM_MakeSignedData [07:02:10]FM_MakeSignedData [07:02:10]SAM_PROTO_SignData [07:02:10]wFMCommunicate request_size=4 [07:02:10]MH_SAM_APDU [07:02:10]CAPDU: 80 0D 01 02 [07:02:10]Write to MH i2c: E2 08 00 A9 06 80 0D 01 02 00 00 00 00 28 [07:02:10]Write i2c OK [07:02:10]MH_I2C_Read... [07:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:10]Read from MH i2c: E2 [07:02:10]MH_I2C_Read... [07:02:10]Read from MH i2c: E2 03 00 [07:02:10]MH_I2C_Read... [07:02:10]Read from MH i2c: E2 03 00 A9 06 00 90 00 23 [07:02:10]RAPDU: 90 00 [07:02:10]wFMCommunicate OK [07:02:10]wFMCommunicate request_size=255 [07:02:10]MH_SAM_APDU [07:02: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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 74 E5 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3B CA 01 00 35 04 06 00 C3 [07:02:10]Write to MH i2c: E2 02 01 AA 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 74 E5 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3B CA 01 00 35 04 06 00 C3 00 00 6D [07:02:10]Write i2c OK [07:02:10]MH_I2C_Read... [07:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:11]Read from MH i2c: E2 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 03 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 03 00 AA 06 00 90 00 24 [07:02:11]RAPDU: 90 00 [07:02:11]wFMCommunicate OK [07:02:11]wFMCommunicate request_size=10 [07:02:11]MH_SAM_APDU [07:02:11]CAPDU: 80 0D 02 02 05 84 0B 6E 43 61 [07:02:11]Write to MH i2c: E2 0D 00 AB 06 80 0D 02 02 05 00 84 0B 6E 43 61 00 00 D6 [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:11]Read from MH i2c: E2 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 03 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 03 00 AB 06 00 90 00 25 [07:02:11]RAPDU: 90 00 [07:02:11]wFMCommunicate OK [07:02:11]wFMCommunicate request_size=4 [07:02:11]MH_SAM_APDU [07:02:11]CAPDU: 80 0D 03 02 [07:02:11]Write to MH i2c: E2 08 00 AC 06 80 0D 03 02 00 00 00 00 2D [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:11]Read from MH i2c: E2 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 0B 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 0B 00 AC 06 00 6E 1C AA EA F9 B7 11 3B 90 00 48 [07:02:11]RAPDU: 6E 1C AA EA F9 B7 11 3B 90 00 [07:02:11]wFMCommunicate OK [07:02:11]SAM_PROTO_SignData done [07:02:11]FM_MakeSignedData done [07:02:11]CreateOFDProtocolMessage [07:02:11]wFMCommunicate request_size=4 [07:02:11]MH_SAM_APDU [07:02:11]CAPDU: 80 11 00 00 [07:02:11]Write to MH i2c: E2 08 00 AD 06 80 11 00 00 00 00 00 00 2D [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:11]Read from MH i2c: E2 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 17 00 [07:02:11]MH_I2C_Read... [07:02:11]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 36 37 90 00 84 [07:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [07:02:11]wFMCommunicate OK [07:02:11]CreateOFDProtocolMessage done [07:02:11]OFDSenderStorePacket 117307 [07:02:11]StoreOFDPacket docnum=117307 [07:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3E 59 07 01 D6 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 74 E5 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3B CA 01 00 35 04 06 00 C3 84 0B 6E 43 61 6E 1C AA EA F9 B7 11 3B [07:02:11]CheckFolder [07:02:11]dirname=/storage/ofd_packets [07:02:11]CheckFolder done [07:02:11]ProducePacketName [07:02:11]name=ofd_packets/00117307 [07:02:11]NVStorageSaveData ofd_packets/00117307 [07:02:11]File name is /storage/ofd_packets/00117307 [07:02:11]Write 301 bytes [07:02:11]NVStorageSaveData done [07:02:11]OFDSenderStorePacket done [07:02:11]KKMCreateOFDPacket done [07:02:11]NVStorageSaveData kkm_last_timestamp [07:02:11]File name is /storage/kkm_last_timestamp [07:02:11]Write 4 bytes [07:02:11]NVStorageSaveData done [07:02:11]ExternCall_PrintAddStr [07:02:11]wPrintStart [07:02:11]Write to MH i2c: 01 00 00 AE 06 B4 [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: 01 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: 01 07 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: 01 07 00 AE 06 00 00 00 00 00 FF 0F C9 [07:02:11]RasterBufferAndPrint [07:02:11]line Счет N : (1)245079 [07:02:11]line ИНН: 02508201610067 [07:02:11]line Контрольно-Кассовый Чек [07:02:11]line ПРОДАЖА [07:02:11]line ТРК (МРК, ГНК) : 11 [07:02:11]line Товар: 2710124130 [07:02:11]line Аи-92-К-2 [07:02:11]line 6.730 * 66.90 [07:02:11]line = 450.24 [07:02:11]line НДС 12% НСП 1% [07:02:11]line > о реализуемом товаре [07:02:11]line ОКРУГЛЕНИЕ: -0.24 [07:02:11]line ИТОГО: 450.00 [07:02:11]line Внесено: 450.00 [07:02:11]line СДАЧА: 0.00 [07:02:11]line НСП 1% : 3.98 [07:02:11]line НДС 12% : 47.81 [07:02:11]line Наличными: 450.00 [07:02:11]line Безнал.: 0.00 [07:02:11]line Место: АЗС № 173 "Партнер Нефть" [07:02:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [07:02:11]line СНО: Общий режим [07:02:11]line Чек 7 27.10.2024 07:02 [07:02:11]line Смена: 542 ФФД: 1.0 [07:02:11]line ЗНМ: 0300000115 [07:02:11]line РНМ: 0000000000091782 [07:02:11]line Версия ККМ: 001 [07:02:11]line ФМ: 0000000000871767 [07:02:11]line ФД: 117307 [07:02:11]line ФПД: 214971894874977 [07:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070212&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117307&fm=214971894874977&tin=02508201610067®Number=0000000000091782&sum=45000 [07:02:11]written 0, free lines is 4095 [07:02:11]OFD Sender: Processing packet 117307 [packets to send 75, broken 74] [07:02:11]ProducePacketName [07:02:11]name=ofd_packets/00117307 [07:02:11]OFD Sender: To server: pG, [07:02:11]CommunicateWithHost lk.salyk.kg:30040 [07:02:11]ConnectInit lk.salyk.kg [07:02:11]Connected sock=10 [07:02: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 36 37 0F 01 00 00 3E 59 07 01 D6 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 74 E5 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3B CA 01 00 35 04 06 00 C3 84 0B 6E 43 61 6E 1C AA EA F9 B7 11 3B [07:02: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 36 37 4F 00 00 00 BC 8B 47 00 C6 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 36 37 10 04 04 00 3B CA 01 00 F4 03 04 00 3B 91 1D 67 B6 04 01 00 00 E1 3B 16 A3 C5 FF A1 1B [07:02:11]CommunicateWithHost err = 0 [07:02:11]CheckOFDResponse [07:02:11]1017 (14) - 77093643461234 [07:02:11]1041 (16) - 0000000000871767 [07:02:11]1040 (4) - 117307 [07:02:11]1012 (4) - 27.10.2024 01:02 [07:02:11]1206 (1) - 0 [07:02:11]OFD Sender: Remove packet 117307 [07:02:11]ProducePacketName [07:02:11]name=ofd_packets/00117307 [07:02:11]NVStorageDeleteData [07:02:11]Write to MH i2c: 01 00 00 D8 06 DE [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: 01 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: 01 07 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: 01 07 00 D8 06 00 00 00 00 00 AD 0C 9E [07:02:11]RasterBufferAndPrint [07:02:11]line [07:02:11]line [07:02:11]line [07:02:11]line [07:02:11]line [07:02:11]written 0, free lines is 3251 [07:02:11]MH_Cut [07:02:11]Write to MH i2c: D1 01 00 DF 06 01 B7 [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: D1 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: D1 01 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: D1 01 00 DF 06 00 B6 [07:02:11]Write to MH i2c: 01 00 00 E0 06 E6 [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:12]OFD Sender: No OFD packet to send [07:02:12]*** Cut start [07:02:12]*** Purtial cut [07:02:12]*** Stage 1: CUTSNS_PIN = 1 [07:02:13]Read from MH i2c: 01 [07:02:13]MH_I2C_Read... [07:02:13]*** Stop cut motor [07:02:13]*** Cut end [07:02:13]Read from MH i2c: 01 07 00 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: 01 07 00 E0 06 00 00 00 00 00 FF 0F FB [07:02:13]process_action close_receipt done [07:02:13]requested_data is exist [07:02:13]produce_requested_data [07:02:13]requested_item fm.sn is exist - process it [07:02:13]wFMCommunicate request_size=4 [07:02:13]MH_SAM_APDU [07:02:13]CAPDU: 80 11 00 00 [07:02:13]Write to MH i2c: E2 08 00 E1 06 80 11 00 00 00 00 00 00 61 [07:02:13]Write i2c OK [07:02:13]MH_I2C_Read... [07:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:13]Read from MH i2c: E2 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: E2 17 00 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: E2 17 00 E1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B8 [07:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [07:02:13]wFMCommunicate OK [07:02:13]requested_item fd.num is exist - process it [07:02:13]SAM_PROTO_GetFieldsCounters [07:02:13]wFMCommunicate request_size=4 [07:02:13]MH_SAM_APDU [07:02:13]CAPDU: 80 13 00 00 [07:02:13]Write to MH i2c: E2 08 00 E2 06 80 13 00 00 00 00 00 00 64 [07:02:13]Write i2c OK [07:02:13]MH_I2C_Read... [07:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:13]Read from MH i2c: E2 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: E2 62 00 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: E2 62 00 E2 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3B CA 01 00 0E 04 04 00 1E 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 C6 [07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3B CA 01 00 0E 04 04 00 1E 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 [07:02:13]wFMCommunicate OK [07:02:13]SAM_PROTO_GetFieldsCounters done [07:02:13]requested_item shift.num is exist - process it [07:02:13]requested_item shift.opened is exist - process it [07:02:13]req_shift_opened [07:02:13]FM_GetShiftState [07:02:13]SAM_PROTO_GetShiftState [07:02:13]wFMCommunicate request_size=4 [07:02:13]MH_SAM_APDU [07:02:13]CAPDU: 80 13 01 00 [07:02:13]Write to MH i2c: E2 08 00 E3 06 80 13 01 00 00 00 00 00 66 [07:02:13]Write i2c OK [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: E2 [07:02:13]MH_I2C_Read... [07:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:13]Read from MH i2c: E2 0E 00 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: E2 0E 00 E3 06 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A5 [07:02:13]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [07:02:13]wFMCommunicate OK [07:02:13]SAM_PROTO_GetShiftState done [07:02:13]FM_GetShiftState done [07:02:13]req_shift_opened done [07:02:13]requested_item shift.open_date is exist - process it [07:02:13]req_shift_open_date [07:02:13]req_shift_open_date done [07:02:13]produce_requested_data done [07:02:13]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117307,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [07:02:13]process_action_free close_receipt [07:02:13]json_value_free [07:02:13]json_value_free done [07:02:13]process_json_proto returns [07:02:13]Send response to host [07:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117307,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [07:02:13]free response buf [07:02:13]execute_script done [07:02:13]execute_script returns [07:02:13]free content buf [07:02:13]Sock 7.Close socket [07:02:13]Sock 7.Thread stoped [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]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:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:32]accept exits with 9 [07:42:32]New connection [07:42:32]New thread 3066781028 created [07:42:32]Thread 3066924388 joined [07:42:32]Waiting for new connection... [07:42:32] Sock 9.Parse request [07:42:32]Sock 9.Check first char [07:42:32]Sock 9.First char is OK [07:42:32]request: POST /json_proto HTTP/1.0 [07:42:32]Method: POST [07:42:32]URL: /json_proto [07:42:32]Method is POST - this is cgi request [07:42:32]url: /json_proto [07:42:32]query_string will be loaded in cgi processing [07:42:32]execute_cgi json_proto POST (null) [07:42:32]execute_cgi path=json_proto method=POST [07:42:32]POST find Content-Length [07:42:32]Host: 172.17.96.67:8080 [07:42:32]Content-Length: 766 [07:42:32]Content-Type: application/json [07:42:32] [07:42:32]POST finish read [07:42:32]Found Content-Length = 766 [07:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [07:42:32]execute_script... [07:42: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)245080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [07:42:32]POST & json_proto [07:42:32]process_json_proto [07:42:32]json parsed OK: [07:42:32]protocol is kg_v1.0 [07:42:32]action value=close_receipt [07:42:32]process_action close_receipt [07:42:32]cmd_close_receipt [07:42:32]MH_GetDate [07:42:32]Write to MH i2c: F0 00 00 E4 06 D9 [07:42:32]Write i2c OK [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: F0 [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: F0 09 00 [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: F0 09 00 E4 06 00 EB EE 1D 67 F7 AE 1B 67 66 [07:42:32]GetLastDocTimeStamp 1730012532 [07:42:32]current date 1730014955 [07:42:32]FM_GetShiftState [07:42:32]SAM_PROTO_GetShiftState [07:42:32]wFMCommunicate request_size=4 [07:42:32]MH_SAM_APDU [07:42:32]CAPDU: 80 13 01 00 [07:42:32]Write to MH i2c: E2 08 00 E5 06 80 13 01 00 00 00 00 00 68 [07:42:32]Write i2c OK [07:42:32]MH_I2C_Read... [07:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:32]Read from MH i2c: E2 [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: E2 0E 00 [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: E2 0E 00 E5 06 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A7 [07:42:32]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [07:42:32]wFMCommunicate OK [07:42:32]SAM_PROTO_GetShiftState done [07:42:32]FM_GetShiftState done [07:42:32]opened in 1729987372 [07:42:32]opened+sec_in_day 1730073772 [07:42:32]quantity*price = 20003 [07:42:32]sum+1 = 20004 [07:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 8 27.10.2024 07:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117308 ФПД: 157064332677853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074235&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117308&fm=157064332677853&tin=02508201610067®Number=0000000000091782&sum=20003 [07:42:33]StoreToDocumentArchive [07:42:33]shift 542 fd 117308 [07:42:33]save to /storage/0542/doc_00117308 [07:42:33]save last doc name /storage/0542/doc_00117308 to /storage/kkm_last_doc_name [07:42:33]save OK [07:42:33]Clear old archive folders... [07:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:33]tlvbuf is 00FE67D0 [07:42:33]SAM_PROTO_ClearQueue [07:42:33]wFMCommunicate request_size=4 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 09 00 00 [07:42:33]Write to MH i2c: E2 08 00 F2 06 80 09 00 00 00 00 00 00 6A [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 F2 06 00 90 00 6C [07:42:33]RAPDU: 90 00 [07:42:33]wFMCommunicate OK [07:42:33]SAM_PROTO_ClearQueue done [07:42:33]KKMCreateOFDPacket [07:42:33]OFDProtocolAddRootSTLVToBuf [07:42:33]FM_MakeSignedData [07:42:33]FM_MakeSignedData [07:42:33]SAM_PROTO_SignData [07:42:33]wFMCommunicate request_size=4 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 0D 01 02 [07:42:33]Write to MH i2c: E2 08 00 F3 06 80 0D 01 02 00 00 00 00 72 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 F3 06 00 90 00 6D [07:42:33]RAPDU: 90 00 [07:42:33]wFMCommunicate OK [07:42:33]wFMCommunicate request_size=255 [07:42:33]MH_SAM_APDU [07:42: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 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 08 00 00 00 F4 03 04 00 EB EE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3C CA 01 00 35 04 06 00 8E [07:42:33]Write to MH i2c: E2 02 01 F4 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 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 08 00 00 00 F4 03 04 00 EB EE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3C CA 01 00 35 04 06 00 8E 00 00 E6 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 F4 06 00 90 00 6E [07:42:33]RAPDU: 90 00 [07:42:33]wFMCommunicate OK [07:42:33]wFMCommunicate request_size=10 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 0D 02 02 05 D9 63 C1 92 DD [07:42:33]Write to MH i2c: E2 0D 00 F5 06 80 0D 02 02 05 00 D9 63 C1 92 DD 00 00 EB [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 F5 06 00 90 00 6F [07:42:34]RAPDU: 90 00 [07:42:34]wFMCommunicate OK [07:42:34]wFMCommunicate request_size=4 [07:42:34]MH_SAM_APDU [07:42:34]CAPDU: 80 0D 03 02 [07:42:34]Write to MH i2c: E2 08 00 F6 06 80 0D 03 02 00 00 00 00 77 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 0B 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 0B 00 F6 06 00 B4 12 AB A7 14 18 B4 52 90 00 C2 [07:42:34]RAPDU: B4 12 AB A7 14 18 B4 52 90 00 [07:42:34]wFMCommunicate OK [07:42:34]SAM_PROTO_SignData done [07:42:34]FM_MakeSignedData done [07:42:34]CreateOFDProtocolMessage [07:42:34]wFMCommunicate request_size=4 [07:42:34]MH_SAM_APDU [07:42:34]CAPDU: 80 11 00 00 [07:42:34]Write to MH i2c: E2 08 00 F7 06 80 11 00 00 00 00 00 00 77 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 17 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 17 00 F7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CE [07:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [07:42:34]wFMCommunicate OK [07:42:34]CreateOFDProtocolMessage done [07:42:34]OFDSenderStorePacket 117308 [07:42:34]StoreOFDPacket docnum=117308 [07:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 59 7C 07 01 34 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 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 08 00 00 00 F4 03 04 00 EB EE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3C CA 01 00 35 04 06 00 8E D9 63 C1 92 DD B4 12 AB A7 14 18 B4 52 [07:42:34]CheckFolder [07:42:34]dirname=/storage/ofd_packets [07:42:34]CheckFolder done [07:42:34]ProducePacketName [07:42:34]name=ofd_packets/00117308 [07:42:34]NVStorageSaveData ofd_packets/00117308 [07:42:34]File name is /storage/ofd_packets/00117308 [07:42:34]Write 301 bytes [07:42:34]NVStorageSaveData done [07:42:34]OFDSenderStorePacket done [07:42:34]KKMCreateOFDPacket done [07:42:34]NVStorageSaveData kkm_last_timestamp [07:42:34]File name is /storage/kkm_last_timestamp [07:42:34]Write 4 bytes [07:42:34]NVStorageSaveData done [07:42:34]ExternCall_PrintAddStr [07:42:34]wPrintStart [07:42:34]Write to MH i2c: 01 00 00 F8 06 FE [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 07 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 07 00 F8 06 00 00 00 00 00 FF 0F 13 [07:42:34]RasterBufferAndPrint [07:42:34]line Счет N : (1)245080 [07:42:34]line ИНН: 02508201610067 [07:42:34]line Контрольно-Кассовый Чек [07:42:34]line ПРОДАЖА [07:42:34]line ТРК (МРК, ГНК) : 21 [07:42:34]line Товар: 2710124130 [07:42:34]line Аи-92-К-2 [07:42:34]line 2.990 * 66.90 [07:42:34]line = 200.03 [07:42:34]line НДС 12% НСП 1% [07:42:34]line > о реализуемом товаре [07:42:34]line ИТОГО: 200.03 [07:42:34]line НСП 1% : 1.77 [07:42:34]line НДС 12% : 21.24 [07:42:34]line Наличными: 0.00 [07:42:34]line Безнал.: 200.03 [07:42:34]line Место: АЗС № 173 "Партнер Нефть" [07:42:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [07:42:34]line СНО: Общий режим [07:42:34]line Чек 8 27.10.2024 07:42 [07:42:34]line Смена: 542 ФФД: 1.0 [07:42:34]line ЗНМ: 0300000115 [07:42:34]line РНМ: 0000000000091782 [07:42:34]line Версия ККМ: 001 [07:42:34]line Платежная система: Mbank [07:42:34]line ФМ: 0000000000871767 [07:42:34]line ФД: 117308 [07:42:34]line ФПД: 157064332677853 [07:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074235&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117308&fm=157064332677853&tin=02508201610067®Number=0000000000091782&sum=20003 [07:42:34]written 0, free lines is 4095 [07:42:34]OFD Sender: Processing packet 117308 [packets to send 75, broken 74] [07:42:34]ProducePacketName [07:42:34]name=ofd_packets/00117308 [07:42:34]OFD Sender: To server: pG, [07:42:34]CommunicateWithHost lk.salyk.kg:30040 [07:42:34]ConnectInit lk.salyk.kg [07:42:34]Write to MH i2c: 01 00 00 20 07 27 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 07 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 DC 0C 16 [07:42:34]RasterBufferAndPrint [07:42:34]line [07:42:34]line [07:42:34]line [07:42:34]line [07:42:34]line [07:42:34]written 0, free lines is 3296 [07:42:34]Connected sock=11 [07:42: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 36 37 0F 01 00 00 59 7C 07 01 34 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 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 08 00 00 00 F4 03 04 00 EB EE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3C CA 01 00 35 04 06 00 8E D9 63 C1 92 DD B4 12 AB A7 14 18 B4 52 [07:42:34]MH_Cut [07:42:34]Write to MH i2c: D1 01 00 27 07 01 00 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: D1 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: D1 01 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: D1 01 00 27 07 00 FF [07:42:34]Write to MH i2c: 01 00 00 28 07 2F [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42: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 36 37 4F 00 00 00 C2 CC 47 00 B7 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 36 37 10 04 04 00 3C CA 01 00 F4 03 04 00 B2 9A 1D 67 B6 04 01 00 00 C6 64 BE 2C 54 BB CB 1F [07:42:34]CommunicateWithHost err = 0 [07:42:34]CheckOFDResponse [07:42:34]1017 (14) - 77093643461234 [07:42:34]1041 (16) - 0000000000871767 [07:42:34]1040 (4) - 117308 [07:42:34]1012 (4) - 27.10.2024 01:43 [07:42:34]1206 (1) - 0 [07:42:34]OFD Sender: Remove packet 117308 [07:42:34]ProducePacketName [07:42:34]name=ofd_packets/00117308 [07:42:34]NVStorageDeleteData [07:42:35]OFD Sender: No OFD packet to send [07:42:35]*** Cut start [07:42:35]*** Purtial cut [07:42:35]*** Stage 1: CUTSNS_PIN = 1 [07:42:35]Read from MH i2c: 01 [07:42:35]MH_I2C_Read... [07:42:35]*** Stop cut motor [07:42:35]*** Cut end [07:42:35]Read from MH i2c: 01 07 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [07:42:35]process_action close_receipt done [07:42:35]requested_data is exist [07:42:35]produce_requested_data [07:42:35]requested_item fm.sn is exist - process it [07:42:35]wFMCommunicate request_size=4 [07:42:35]MH_SAM_APDU [07:42:35]CAPDU: 80 11 00 00 [07:42:35]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:35]Read from MH i2c: E2 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 17 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 01 [07:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [07:42:35]wFMCommunicate OK [07:42:35]requested_item fd.num is exist - process it [07:42:35]SAM_PROTO_GetFieldsCounters [07:42:35]wFMCommunicate request_size=4 [07:42:35]MH_SAM_APDU [07:42:35]CAPDU: 80 13 00 00 [07:42:35]Write to MH i2c: E2 08 00 2A 07 80 13 00 00 00 00 00 00 AD [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:35]Read from MH i2c: E2 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 62 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 62 00 2A 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3C CA 01 00 0E 04 04 00 1E 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 13 [07:42: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3C CA 01 00 0E 04 04 00 1E 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 [07:42:35]wFMCommunicate OK [07:42:35]SAM_PROTO_GetFieldsCounters done [07:42:35]requested_item shift.num is exist - process it [07:42:35]requested_item shift.opened is exist - process it [07:42:35]req_shift_opened [07:42:35]FM_GetShiftState [07:42:35]SAM_PROTO_GetShiftState [07:42:35]wFMCommunicate request_size=4 [07:42:35]MH_SAM_APDU [07:42:35]CAPDU: 80 13 01 00 [07:42:35]Write to MH i2c: E2 08 00 2B 07 80 13 01 00 00 00 00 00 AF [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:35]Read from MH i2c: E2 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 0E 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 0E 00 2B 07 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 EE [07:42:35]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [07:42:35]wFMCommunicate OK [07:42:35]SAM_PROTO_GetShiftState done [07:42:35]FM_GetShiftState done [07:42:35]req_shift_opened done [07:42:35]requested_item shift.open_date is exist - process it [07:42:35]req_shift_open_date [07:42:35]req_shift_open_date done [07:42:35]produce_requested_data done [07:42:35]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117308,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [07:42:35]process_action_free close_receipt [07:42:35]json_value_free [07:42:35]json_value_free done [07:42:35]process_json_proto returns [07:42:35]Send response to host [07:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117308,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [07:42:35]free response buf [07:42:35]execute_script done [07:42:35]execute_script returns [07:42:35]free content buf [07:42:35]Sock 9.Close socket [07:42:35]Sock 9.Thread stoped [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:30]ConnectInit Can't connect to host [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:15]accept exits with 10 [07:59:15]New connection [07:59:15]New thread 3066924388 created [07:59:15]Thread 3066781028 joined [07:59:15]Waiting for new connection... [07:59:15] Sock 10.Parse request [07:59:15]Sock 10.Check first char [07:59:15]Sock 10.First char is OK [07:59:15]request: POST /json_proto HTTP/1.0 [07:59:15]Method: POST [07:59:15]URL: /json_proto [07:59:15]Method is POST - this is cgi request [07:59:15]url: /json_proto [07:59:15]query_string will be loaded in cgi processing [07:59:15]execute_cgi json_proto POST (null) [07:59:15]execute_cgi path=json_proto method=POST [07:59:15]POST find Content-Length [07:59:15]Host: 172.17.96.67:8080 [07:59:15]Content-Length: 677 [07:59:15]Content-Type: application/json [07:59:15] [07:59:15]POST finish read [07:59:15]Found Content-Length = 677 [07:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [07:59:15]execute_script... [07:59: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)245081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [07:59:15]POST & json_proto [07:59:15]process_json_proto [07:59:15]json parsed OK: [07:59:15]protocol is kg_v1.0 [07:59:15]action value=close_receipt [07:59:15]process_action close_receipt [07:59:15]cmd_close_receipt [07:59:15]MH_GetDate [07:59:15]Write to MH i2c: F0 00 00 2C 07 22 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: F0 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: F0 09 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: F0 09 00 2C 07 00 D6 F2 1D 67 F7 AE 1B 67 9E [07:59:15]GetLastDocTimeStamp 1730014955 [07:59:15]current date 1730015958 [07:59:15]FM_GetShiftState [07:59:15]SAM_PROTO_GetShiftState [07:59:15]wFMCommunicate request_size=4 [07:59:15]MH_SAM_APDU [07:59:15]CAPDU: 80 13 01 00 [07:59:15]Write to MH i2c: E2 08 00 2D 07 80 13 01 00 00 00 00 00 B1 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:15]Read from MH i2c: E2 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 0E 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 0E 00 2D 07 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F0 [07:59:15]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [07:59:15]wFMCommunicate OK [07:59:15]SAM_PROTO_GetShiftState done [07:59:15]FM_GetShiftState done [07:59:15]opened in 1729987372 [07:59:15]opened+sec_in_day 1730073772 [07:59:15]quantity*price = 60009 [07:59:15]sum+1 = 60010 [07:59:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 9 27.10.2024 07:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117309 ФПД: 157811754405628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075918&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117309&fm=157811754405628&tin=02508201610067®Number=0000000000091782&sum=60000 [07:59:16]StoreToDocumentArchive [07:59:16]shift 542 fd 117309 [07:59:16]save to /storage/0542/doc_00117309 [07:59:16]save last doc name /storage/0542/doc_00117309 to /storage/kkm_last_doc_name [07:59:16]save OK [07:59:16]Clear old archive folders... [07:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:16]tlvbuf is 00FEB090 [07:59:16]SAM_PROTO_ClearQueue [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 09 00 00 [07:59:16]Write to MH i2c: E2 08 00 3A 07 80 09 00 00 00 00 00 00 B3 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 3A 07 00 90 00 B5 [07:59:16]RAPDU: 90 00 [07:59:16]wFMCommunicate OK [07:59:16]SAM_PROTO_ClearQueue done [07:59:16]KKMCreateOFDPacket [07:59:16]OFDProtocolAddRootSTLVToBuf [07:59:16]FM_MakeSignedData [07:59:16]FM_MakeSignedData [07:59:16]SAM_PROTO_SignData [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 0D 01 02 [07:59:16]Write to MH i2c: E2 08 00 3B 07 80 0D 01 02 00 00 00 00 BB [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [07:59:16]RAPDU: 90 00 [07:59:16]wFMCommunicate OK [07:59:16]wFMCommunicate request_size=255 [07:59:16]MH_SAM_APDU [07:59: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 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 09 00 00 00 F4 03 04 00 D6 F2 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3D CA 01 00 35 04 06 00 8F [07:59:16]Write to MH i2c: E2 02 01 3C 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 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 09 00 00 00 F4 03 04 00 D6 F2 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3D CA 01 00 35 04 06 00 8F 00 00 36 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 3C 07 00 90 00 B7 [07:59:16]RAPDU: 90 00 [07:59:16]wFMCommunicate OK [07:59:16]wFMCommunicate request_size=10 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 0D 02 02 05 87 69 90 0E FC [07:59:16]Write to MH i2c: E2 0D 00 3D 07 80 0D 02 02 05 00 87 69 90 0E FC 00 00 52 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:17]Read from MH i2c: E2 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: E2 03 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: E2 03 00 3D 07 00 90 00 B8 [07:59:17]RAPDU: 90 00 [07:59:17]wFMCommunicate OK [07:59:17]wFMCommunicate request_size=4 [07:59:17]MH_SAM_APDU [07:59:17]CAPDU: 80 0D 03 02 [07:59:17]Write to MH i2c: E2 08 00 3E 07 80 0D 03 02 00 00 00 00 C0 [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:17]Read from MH i2c: E2 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: E2 0B 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: E2 0B 00 3E 07 00 17 02 7F 00 7A AA 5B A0 90 00 78 [07:59:17]RAPDU: 17 02 7F 00 7A AA 5B A0 90 00 [07:59:17]wFMCommunicate OK [07:59:17]SAM_PROTO_SignData done [07:59:17]FM_MakeSignedData done [07:59:17]CreateOFDProtocolMessage [07:59:17]wFMCommunicate request_size=4 [07:59:17]MH_SAM_APDU [07:59:17]CAPDU: 80 11 00 00 [07:59:17]Write to MH i2c: E2 08 00 3F 07 80 11 00 00 00 00 00 00 C0 [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:17]Read from MH i2c: E2 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: E2 17 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: E2 17 00 3F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 17 [07:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [07:59:17]wFMCommunicate OK [07:59:17]CreateOFDProtocolMessage done [07:59:17]OFDSenderStorePacket 117309 [07:59:17]StoreOFDPacket docnum=117309 [07:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5D 9C 07 01 13 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 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 09 00 00 00 F4 03 04 00 D6 F2 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3D CA 01 00 35 04 06 00 8F 87 69 90 0E FC 17 02 7F 00 7A AA 5B A0 [07:59:17]CheckFolder [07:59:17]dirname=/storage/ofd_packets [07:59:17]CheckFolder done [07:59:17]ProducePacketName [07:59:17]name=ofd_packets/00117309 [07:59:17]NVStorageSaveData ofd_packets/00117309 [07:59:17]File name is /storage/ofd_packets/00117309 [07:59:17]Write 301 bytes [07:59:17]NVStorageSaveData done [07:59:17]OFDSenderStorePacket done [07:59:17]KKMCreateOFDPacket done [07:59:17]NVStorageSaveData kkm_last_timestamp [07:59:17]File name is /storage/kkm_last_timestamp [07:59:17]Write 4 bytes [07:59:17]NVStorageSaveData done [07:59:17]ExternCall_PrintAddStr [07:59:17]wPrintStart [07:59:17]Write to MH i2c: 01 00 00 40 07 47 [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 07 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 07 00 40 07 00 00 00 00 00 FF 0F 5C [07:59:17]RasterBufferAndPrint [07:59:17]line Счет N : (1)245081 [07:59:17]line ИНН: 02508201610067 [07:59:17]line Контрольно-Кассовый Чек [07:59:17]line ПРОДАЖА [07:59:17]line ТРК (МРК, ГНК) : 21 [07:59:17]line Товар: 2710124130 [07:59:17]line Аи-92-К-2 [07:59:17]line 8.970 * 66.90 [07:59:17]line = 600.09 [07:59:17]line НДС 12% НСП 1% [07:59:17]line > о реализуемом товаре [07:59:17]line ОКРУГЛЕНИЕ: -0.09 [07:59:17]line ИТОГО: 600.00 [07:59:17]line Внесено: 600.00 [07:59:17]line СДАЧА: 0.00 [07:59:17]line НСП 1% : 5.31 [07:59:17]line НДС 12% : 63.73 [07:59:17]line Наличными: 600.00 [07:59:17]line Безнал.: 0.00 [07:59:17]line Место: АЗС № 173 "Партнер Нефть" [07:59:17]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [07:59:17]line СНО: Общий режим [07:59:17]line Чек 9 27.10.2024 07:59 [07:59:17]line Смена: 542 ФФД: 1.0 [07:59:17]line ЗНМ: 0300000115 [07:59:17]line РНМ: 0000000000091782 [07:59:17]line Версия ККМ: 001 [07:59:17]line ФМ: 0000000000871767 [07:59:17]line ФД: 117309 [07:59:17]line ФПД: 157811754405628 [07:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075918&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117309&fm=157811754405628&tin=02508201610067®Number=0000000000091782&sum=60000 [07:59:17]OFD Sender: Processing packet 117309 [packets to send 75, broken 74] [07:59:17]ProducePacketName [07:59:17]name=ofd_packets/00117309 [07:59:17]OFD Sender: To server: pG, [07:59:17]CommunicateWithHost lk.salyk.kg:30040 [07:59:17]ConnectInit lk.salyk.kg [07:59:17]written 0, free lines is 4095 [07:59:17]Connected sock=9 [07:59: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 36 37 0F 01 00 00 5D 9C 07 01 13 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 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 09 00 00 00 F4 03 04 00 D6 F2 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3D CA 01 00 35 04 06 00 8F 87 69 90 0E FC 17 02 7F 00 7A AA 5B A0 [07:59: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 36 37 4F 00 00 00 46 AA 47 00 21 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 36 37 10 04 04 00 3D CA 01 00 F4 03 04 00 9D 9E 1D 67 B6 04 01 00 00 D5 93 4E 3E 7F D0 59 A2 [07:59:17]CommunicateWithHost err = 0 [07:59:17]CheckOFDResponse [07:59:17]1017 (14) - 77093643461234 [07:59:17]1041 (16) - 0000000000871767 [07:59:17]1040 (4) - 117309 [07:59:17]1012 (4) - 27.10.2024 01:59 [07:59:17]1206 (1) - 0 [07:59:17]OFD Sender: Remove packet 117309 [07:59:17]ProducePacketName [07:59:17]name=ofd_packets/00117309 [07:59:17]NVStorageDeleteData [07:59:17]Write to MH i2c: 01 00 00 6A 07 71 [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 07 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 B3 0C 37 [07:59:17]RasterBufferAndPrint [07:59:17]line [07:59:17]line [07:59:17]line [07:59:17]line [07:59:17]line [07:59:17]written 0, free lines is 3257 [07:59:17]MH_Cut [07:59:17]Write to MH i2c: D1 01 00 71 07 01 4A [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: D1 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: D1 01 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: D1 01 00 71 07 00 49 [07:59:17]Write to MH i2c: 01 00 00 72 07 79 [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:18]OFD Sender: No OFD packet to send [07:59:18]*** Cut start [07:59:18]*** Purtial cut [07:59:18]*** Stage 1: CUTSNS_PIN = 1 [07:59:19]Read from MH i2c: 01 [07:59:19]MH_I2C_Read... [07:59:19]*** Stop cut motor [07:59:19]*** Cut end [07:59:19]Read from MH i2c: 01 07 00 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: 01 07 00 72 07 00 00 00 00 00 FF 0F 8E [07:59:19]process_action close_receipt done [07:59:19]requested_data is exist [07:59:19]produce_requested_data [07:59:19]requested_item fm.sn is exist - process it [07:59:19]wFMCommunicate request_size=4 [07:59:19]MH_SAM_APDU [07:59:19]CAPDU: 80 11 00 00 [07:59:19]Write to MH i2c: E2 08 00 73 07 80 11 00 00 00 00 00 00 F4 [07:59:19]Write i2c OK [07:59:19]MH_I2C_Read... [07:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:19]Read from MH i2c: E2 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 17 00 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 17 00 73 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4B [07:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [07:59:19]wFMCommunicate OK [07:59:19]requested_item fd.num is exist - process it [07:59:19]SAM_PROTO_GetFieldsCounters [07:59:19]wFMCommunicate request_size=4 [07:59:19]MH_SAM_APDU [07:59:19]CAPDU: 80 13 00 00 [07:59:19]Write to MH i2c: E2 08 00 74 07 80 13 00 00 00 00 00 00 F7 [07:59:19]Write i2c OK [07:59:19]MH_I2C_Read... [07:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:19]Read from MH i2c: E2 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 62 00 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 62 00 74 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3D CA 01 00 0E 04 04 00 1E 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 61 [07:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3D CA 01 00 0E 04 04 00 1E 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 [07:59:19]wFMCommunicate OK [07:59:19]SAM_PROTO_GetFieldsCounters done [07:59:19]requested_item shift.num is exist - process it [07:59:19]requested_item shift.opened is exist - process it [07:59:19]req_shift_opened [07:59:19]FM_GetShiftState [07:59:19]SAM_PROTO_GetShiftState [07:59:19]wFMCommunicate request_size=4 [07:59:19]MH_SAM_APDU [07:59:19]CAPDU: 80 13 01 00 [07:59:19]Write to MH i2c: E2 08 00 75 07 80 13 01 00 00 00 00 00 F9 [07:59:19]Write i2c OK [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 [07:59:19]MH_I2C_Read... [07:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:19]Read from MH i2c: E2 0E 00 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 0E 00 75 07 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 38 [07:59:19]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [07:59:19]wFMCommunicate OK [07:59:19]SAM_PROTO_GetShiftState done [07:59:19]FM_GetShiftState done [07:59:19]req_shift_opened done [07:59:19]requested_item shift.open_date is exist - process it [07:59:19]req_shift_open_date [07:59:19]req_shift_open_date done [07:59:19]produce_requested_data done [07:59:19]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117309,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [07:59:19]process_action_free close_receipt [07:59:19]json_value_free [07:59:19]json_value_free done [07:59:19]process_json_proto returns [07:59:19]Send response to host [07:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117309,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [07:59:19]free response buf [07:59:19]execute_script done [07:59:19]execute_script returns [07:59:19]free content buf [07:59:19]Sock 10.Close socket [07:59:19]Sock 10.Thread stoped [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:36]accept exits with 7 [08:08:36]New connection [08:08:36]New thread 3066781028 created [08:08:36]Thread 3066924388 joined [08:08:36]Waiting for new connection... [08:08:36] Sock 7.Parse request [08:08:36]Sock 7.Check first char [08:08:36]Sock 7.First char is OK [08:08:36]request: POST /json_proto HTTP/1.0 [08:08:36]Method: POST [08:08:36]URL: /json_proto [08:08:36]Method is POST - this is cgi request [08:08:36]url: /json_proto [08:08:36]query_string will be loaded in cgi processing [08:08:36]execute_cgi json_proto POST (null) [08:08:36]execute_cgi path=json_proto method=POST [08:08:36]POST find Content-Length [08:08:36]Host: 172.17.96.67:8080 [08:08:36]Content-Length: 682 [08:08:36]Content-Type: application/json [08:08:36] [08:08:36]POST finish read [08:08:36]Found Content-Length = 682 [08:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [08:08:36]execute_script... [08:08: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)245082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [08:08:36]POST & json_proto [08:08:36]process_json_proto [08:08:36]json parsed OK: [08:08:36]protocol is kg_v1.0 [08:08:36]action value=close_receipt [08:08:36]process_action close_receipt [08:08:36]cmd_close_receipt [08:08:36]MH_GetDate [08:08:36]Write to MH i2c: F0 00 00 76 07 6C [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: F0 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: F0 09 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: F0 09 00 76 07 00 07 F5 1D 67 F7 AE 1B 67 1C [08:08:36]GetLastDocTimeStamp 1730015958 [08:08:36]current date 1730016519 [08:08:36]FM_GetShiftState [08:08:36]SAM_PROTO_GetShiftState [08:08:36]wFMCommunicate request_size=4 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 13 01 00 [08:08:36]Write to MH i2c: E2 08 00 77 07 80 13 01 00 00 00 00 00 FB [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 0E 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 0E 00 77 07 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 3A [08:08:36]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:08:36]wFMCommunicate OK [08:08:36]SAM_PROTO_GetShiftState done [08:08:36]FM_GetShiftState done [08:08:36]opened in 1729987372 [08:08:36]opened+sec_in_day 1730073772 [08:08:36]quantity*price = 150056 [08:08:36]sum+1 = 150058 [08:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 10 27.10.2024 08:08 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117310 ФПД: 69799825330201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080839&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117310&fm=69799825330201&tin=02508201610067®Number=0000000000091782&sum=150000 [08:08:37]StoreToDocumentArchive [08:08:37]shift 542 fd 117310 [08:08:37]save to /storage/0542/doc_00117310 [08:08:37]save last doc name /storage/0542/doc_00117310 to /storage/kkm_last_doc_name [08:08:37]save OK [08:08:37]Clear old archive folders... [08:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:37]tlvbuf is 00FD7770 [08:08:37]SAM_PROTO_ClearQueue [08:08:37]wFMCommunicate request_size=4 [08:08:37]MH_SAM_APDU [08:08:37]CAPDU: 80 09 00 00 [08:08:37]Write to MH i2c: E2 08 00 84 07 80 09 00 00 00 00 00 00 FD [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:37]Read from MH i2c: E2 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: E2 03 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [08:08:37]RAPDU: 90 00 [08:08:37]wFMCommunicate OK [08:08:37]SAM_PROTO_ClearQueue done [08:08:37]KKMCreateOFDPacket [08:08:37]OFDProtocolAddRootSTLVToBuf [08:08:37]FM_MakeSignedData [08:08:37]FM_MakeSignedData [08:08:37]SAM_PROTO_SignData [08:08:37]wFMCommunicate request_size=4 [08:08:37]MH_SAM_APDU [08:08:37]CAPDU: 80 0D 01 02 [08:08:37]Write to MH i2c: E2 08 00 85 07 80 0D 01 02 00 00 00 00 05 [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:37]Read from MH i2c: E2 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: E2 03 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: E2 03 00 85 07 00 90 00 00 [08:08:37]RAPDU: 90 00 [08:08:37]wFMCommunicate OK [08:08:37]wFMCommunicate request_size=255 [08:08:37]MH_SAM_APDU [08:08: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 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 0A 00 00 00 F4 03 04 00 07 F5 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3E CA 01 00 35 04 06 00 3F [08:08:37]Write to MH i2c: E2 02 01 86 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 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 0A 00 00 00 F4 03 04 00 07 F5 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3E CA 01 00 35 04 06 00 3F 00 00 D2 [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:38]Read from MH i2c: E2 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 03 00 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 03 00 86 07 00 90 00 01 [08:08:38]RAPDU: 90 00 [08:08:38]wFMCommunicate OK [08:08:38]wFMCommunicate request_size=10 [08:08:38]MH_SAM_APDU [08:08:38]CAPDU: 80 0D 02 02 05 7B 89 CB 50 19 [08:08:38]Write to MH i2c: E2 0D 00 87 07 80 0D 02 02 05 00 7B 89 CB 50 19 00 00 4A [08:08:38]Write i2c OK [08:08:38]MH_I2C_Read... [08:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:38]Read from MH i2c: E2 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 03 00 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 03 00 87 07 00 90 00 02 [08:08:38]RAPDU: 90 00 [08:08:38]wFMCommunicate OK [08:08:38]wFMCommunicate request_size=4 [08:08:38]MH_SAM_APDU [08:08:38]CAPDU: 80 0D 03 02 [08:08:38]Write to MH i2c: E2 08 00 88 07 80 0D 03 02 00 00 00 00 0A [08:08:38]Write i2c OK [08:08:38]MH_I2C_Read... [08:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:38]Read from MH i2c: E2 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 0B 00 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 0B 00 88 07 00 11 5D 1C 74 B0 B0 E7 0F 90 00 5F [08:08:38]RAPDU: 11 5D 1C 74 B0 B0 E7 0F 90 00 [08:08:38]wFMCommunicate OK [08:08:38]SAM_PROTO_SignData done [08:08:38]FM_MakeSignedData done [08:08:38]CreateOFDProtocolMessage [08:08:38]wFMCommunicate request_size=4 [08:08:38]MH_SAM_APDU [08:08:38]CAPDU: 80 11 00 00 [08:08:38]Write to MH i2c: E2 08 00 89 07 80 11 00 00 00 00 00 00 0A [08:08:38]Write i2c OK [08:08:38]MH_I2C_Read... [08:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:38]Read from MH i2c: E2 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 17 00 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 17 00 89 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 61 [08:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:08:38]wFMCommunicate OK [08:08:38]CreateOFDProtocolMessage done [08:08:38]OFDSenderStorePacket 117310 [08:08:38]StoreOFDPacket docnum=117310 [08:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B6 AC 07 01 FC 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 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 0A 00 00 00 F4 03 04 00 07 F5 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3E CA 01 00 35 04 06 00 3F 7B 89 CB 50 19 11 5D 1C 74 B0 B0 E7 0F [08:08:38]CheckFolder [08:08:38]dirname=/storage/ofd_packets [08:08:38]CheckFolder done [08:08:38]ProducePacketName [08:08:38]name=ofd_packets/00117310 [08:08:38]NVStorageSaveData ofd_packets/00117310 [08:08:38]File name is /storage/ofd_packets/00117310 [08:08:38]Write 301 bytes [08:08:38]NVStorageSaveData done [08:08:38]OFDSenderStorePacket done [08:08:38]KKMCreateOFDPacket done [08:08:38]NVStorageSaveData kkm_last_timestamp [08:08:38]File name is /storage/kkm_last_timestamp [08:08:38]Write 4 bytes [08:08:38]NVStorageSaveData done [08:08:38]ExternCall_PrintAddStr [08:08:38]wPrintStart [08:08:38]Write to MH i2c: 01 00 00 8A 07 91 [08:08:38]Write i2c OK [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: 01 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: 01 07 00 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: 01 07 00 8A 07 00 00 00 00 00 FF 0F A6 [08:08:38]RasterBufferAndPrint [08:08:38]line Счет N : (1)245082 [08:08:38]line ИНН: 02508201610067 [08:08:38]line Контрольно-Кассовый Чек [08:08:38]line ПРОДАЖА [08:08:38]line ТРК (МРК, ГНК) : 21 [08:08:38]line Товар: 2710124130 [08:08:38]line Аи-92-К-2 [08:08:38]line 22.430 * 66.90 [08:08:38]line = 1500.57 [08:08:38]line НДС 12% НСП 1% [08:08:38]line > о реализуемом товаре [08:08:38]line ОКРУГЛЕНИЕ: -0.57 [08:08:38]line ИТОГО: 1500.00 [08:08:38]line Внесено: 1500.00 [08:08:38]line СДАЧА: 0.00 [08:08:38]line НСП 1% : 13.28 [08:08:38]line НДС 12% : 159.35 [08:08:38]line Наличными: 1500.00 [08:08:38]line Безнал.: 0.00 [08:08:38]line Место: АЗС № 173 "Партнер Нефть" [08:08:38]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:08:38]line СНО: Общий режим [08:08:38]line Чек 10 27.10.2024 08:08 [08:08:38]line Смена: 542 ФФД: 1.0 [08:08:38]line ЗНМ: 0300000115 [08:08:38]line РНМ: 0000000000091782 [08:08:38]line Версия ККМ: 001 [08:08:38]line ФМ: 0000000000871767 [08:08:38]line ФД: 117310 [08:08:38]line ФПД: 69799825330201 [08:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080839&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117310&fm=69799825330201&tin=02508201610067®Number=0000000000091782&sum=150000 [08:08:38]written 0, free lines is 4095 [08:08:38]OFD Sender: Processing packet 117310 [packets to send 75, broken 74] [08:08:38]ProducePacketName [08:08:38]name=ofd_packets/00117310 [08:08:38]OFD Sender: To server: pG, [08:08:38]CommunicateWithHost lk.salyk.kg:30040 [08:08:38]ConnectInit lk.salyk.kg [08:08:38]Connected sock=10 [08:08: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 36 37 0F 01 00 00 B6 AC 07 01 FC 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 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 0A 00 00 00 F4 03 04 00 07 F5 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3E CA 01 00 35 04 06 00 3F 7B 89 CB 50 19 11 5D 1C 74 B0 B0 E7 0F [08:08: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 36 37 4F 00 00 00 C0 FE 47 00 BB 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 36 37 10 04 04 00 3E CA 01 00 F4 03 04 00 CE A0 1D 67 B6 04 01 00 00 78 E9 0F 99 72 A0 0A 85 [08:08:38]CommunicateWithHost err = 0 [08:08:38]CheckOFDResponse [08:08:38]1017 (14) - 77093643461234 [08:08:38]1041 (16) - 0000000000871767 [08:08:38]1040 (4) - 117310 [08:08:38]1012 (4) - 27.10.2024 02:09 [08:08:38]1206 (1) - 0 [08:08:38]OFD Sender: Remove packet 117310 [08:08:38]ProducePacketName [08:08:38]name=ofd_packets/00117310 [08:08:38]NVStorageDeleteData [08:08:38]Write to MH i2c: 01 00 00 B4 07 BB [08:08:38]Write i2c OK [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: 01 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: 01 07 00 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 B1 0C 7F [08:08:38]RasterBufferAndPrint [08:08:38]line [08:08:38]line [08:08:38]line [08:08:38]line [08:08:38]line [08:08:38]written 0, free lines is 3255 [08:08:39]MH_Cut [08:08:39]Write to MH i2c: D1 01 00 BB 07 01 94 [08:08:39]Write i2c OK [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: D1 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: D1 01 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: D1 01 00 BB 07 00 93 [08:08:39]Write to MH i2c: 01 00 00 BC 07 C3 [08:08:39]Write i2c OK [08:08:39]MH_I2C_Read... [08:08:39]OFD Sender: No OFD packet to send [08:08:39]*** Cut start [08:08:39]*** Purtial cut [08:08:39]*** Stage 1: CUTSNS_PIN = 1 [08:08:40]Read from MH i2c: 01 [08:08:40]MH_I2C_Read... [08:08:40]*** Stop cut motor [08:08:40]*** Cut end [08:08:40]Read from MH i2c: 01 07 00 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: 01 07 00 BC 07 00 00 00 00 00 FF 0F D8 [08:08:40]process_action close_receipt done [08:08:40]requested_data is exist [08:08:40]produce_requested_data [08:08:40]requested_item fm.sn is exist - process it [08:08:40]wFMCommunicate request_size=4 [08:08:40]MH_SAM_APDU [08:08:40]CAPDU: 80 11 00 00 [08:08:40]Write to MH i2c: E2 08 00 BD 07 80 11 00 00 00 00 00 00 3E [08:08:40]Write i2c OK [08:08:40]MH_I2C_Read... [08:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:40]Read from MH i2c: E2 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: E2 17 00 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: E2 17 00 BD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 95 [08:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:08:40]wFMCommunicate OK [08:08:40]requested_item fd.num is exist - process it [08:08:40]SAM_PROTO_GetFieldsCounters [08:08:40]wFMCommunicate request_size=4 [08:08:40]MH_SAM_APDU [08:08:40]CAPDU: 80 13 00 00 [08:08:40]Write to MH i2c: E2 08 00 BE 07 80 13 00 00 00 00 00 00 41 [08:08:40]Write i2c OK [08:08:40]MH_I2C_Read... [08:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:40]Read from MH i2c: E2 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: E2 62 00 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: E2 62 00 BE 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3E CA 01 00 0E 04 04 00 1E 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 AF [08:08: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3E CA 01 00 0E 04 04 00 1E 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 [08:08:40]wFMCommunicate OK [08:08:40]SAM_PROTO_GetFieldsCounters done [08:08:40]requested_item shift.num is exist - process it [08:08:40]requested_item shift.opened is exist - process it [08:08:40]req_shift_opened [08:08:40]FM_GetShiftState [08:08:40]SAM_PROTO_GetShiftState [08:08:40]wFMCommunicate request_size=4 [08:08:40]MH_SAM_APDU [08:08:40]CAPDU: 80 13 01 00 [08:08:40]Write to MH i2c: E2 08 00 BF 07 80 13 01 00 00 00 00 00 43 [08:08:40]Write i2c OK [08:08:40]MH_I2C_Read... [08:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:40]Read from MH i2c: E2 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: E2 0E 00 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: E2 0E 00 BF 07 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 82 [08:08:40]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:08:40]wFMCommunicate OK [08:08:40]SAM_PROTO_GetShiftState done [08:08:40]FM_GetShiftState done [08:08:40]req_shift_opened done [08:08:40]requested_item shift.open_date is exist - process it [08:08:40]req_shift_open_date [08:08:40]req_shift_open_date done [08:08:40]produce_requested_data done [08:08:40]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117310,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:08:40]process_action_free close_receipt [08:08:40]json_value_free [08:08:40]json_value_free done [08:08:40]process_json_proto returns [08:08:40]Send response to host [08:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117310,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:08:40]free response buf [08:08:40]execute_script done [08:08:40]execute_script returns [08:08:40]free content buf [08:08:40]Sock 7.Close socket [08:08:40]Sock 7.Thread stoped [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:52]ConnectInit Can't connect to host [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:44]accept exits with 9 [08:25:44]New connection [08:25:44]New thread 3066924388 created [08:25:44]Thread 3066781028 joined [08:25:44]Waiting for new connection... [08:25:44] Sock 9.Parse request [08:25:44]Sock 9.Check first char [08:25:44]Sock 9.First char is OK [08:25:44]request: POST /json_proto HTTP/1.0 [08:25:44]Method: POST [08:25:44]URL: /json_proto [08:25:44]Method is POST - this is cgi request [08:25:44]url: /json_proto [08:25:44]query_string will be loaded in cgi processing [08:25:44]execute_cgi json_proto POST (null) [08:25:44]execute_cgi path=json_proto method=POST [08:25:44]POST find Content-Length [08:25:44]Host: 172.17.96.67:8080 [08:25:44]Content-Length: 677 [08:25:44]Content-Type: application/json [08:25:44] [08:25:44]POST finish read [08:25:44]Found Content-Length = 677 [08:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:25:44]execute_script... [08:25: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)245083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:25:44]POST & json_proto [08:25:44]process_json_proto [08:25:44]json parsed OK: [08:25:44]protocol is kg_v1.0 [08:25:44]action value=close_receipt [08:25:44]process_action close_receipt [08:25:44]cmd_close_receipt [08:25:44]MH_GetDate [08:25:44]Write to MH i2c: F0 00 00 C0 07 B6 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: F0 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: F0 09 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: F0 09 00 C0 07 00 0B F9 1D 67 F7 AE 1B 67 6E [08:25:44]GetLastDocTimeStamp 1730016519 [08:25:44]current date 1730017547 [08:25:44]FM_GetShiftState [08:25:44]SAM_PROTO_GetShiftState [08:25:44]wFMCommunicate request_size=4 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 13 01 00 [08:25:44]Write to MH i2c: E2 08 00 C1 07 80 13 01 00 00 00 00 00 45 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:45]Read from MH i2c: E2 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: E2 0E 00 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: E2 0E 00 C1 07 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 84 [08:25:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:25:45]wFMCommunicate OK [08:25:45]SAM_PROTO_GetShiftState done [08:25:45]FM_GetShiftState done [08:25:45]opened in 1729987372 [08:25:45]opened+sec_in_day 1730073772 [08:25:45]quantity*price = 50041 [08:25:45]sum+1 = 50042 [08:25: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 11 27.10.2024 08:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117311 ФПД: 279809173859930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082547&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117311&fm=279809173859930&tin=02508201610067®Number=0000000000091782&sum=50000 [08:25:46]StoreToDocumentArchive [08:25:46]shift 542 fd 117311 [08:25:46]save to /storage/0542/doc_00117311 [08:25:46]save last doc name /storage/0542/doc_00117311 to /storage/kkm_last_doc_name [08:25:46]save OK [08:25:46]Clear old archive folders... [08:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:46]tlvbuf is 00FDBE10 [08:25:46]SAM_PROTO_ClearQueue [08:25:46]wFMCommunicate request_size=4 [08:25:46]MH_SAM_APDU [08:25:46]CAPDU: 80 09 00 00 [08:25:46]Write to MH i2c: E2 08 00 CE 07 80 09 00 00 00 00 00 00 47 [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:46]Read from MH i2c: E2 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 03 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 03 00 CE 07 00 90 00 49 [08:25:46]RAPDU: 90 00 [08:25:46]wFMCommunicate OK [08:25:46]SAM_PROTO_ClearQueue done [08:25:46]KKMCreateOFDPacket [08:25:46]OFDProtocolAddRootSTLVToBuf [08:25:46]FM_MakeSignedData [08:25:46]FM_MakeSignedData [08:25:46]SAM_PROTO_SignData [08:25:46]wFMCommunicate request_size=4 [08:25:46]MH_SAM_APDU [08:25:46]CAPDU: 80 0D 01 02 [08:25:46]Write to MH i2c: E2 08 00 CF 07 80 0D 01 02 00 00 00 00 4F [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:46]Read from MH i2c: E2 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 03 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 03 00 CF 07 00 90 00 4A [08:25:46]RAPDU: 90 00 [08:25:46]wFMCommunicate OK [08:25:46]wFMCommunicate request_size=255 [08:25:46]MH_SAM_APDU [08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3F CA 01 00 35 04 06 00 FE [08:25:46]Write to MH i2c: E2 02 01 D0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3F CA 01 00 35 04 06 00 FE 00 00 9C [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:46]Read from MH i2c: E2 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 03 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 03 00 D0 07 00 90 00 4B [08:25:46]RAPDU: 90 00 [08:25:46]wFMCommunicate OK [08:25:46]wFMCommunicate request_size=10 [08:25:46]MH_SAM_APDU [08:25:46]CAPDU: 80 0D 02 02 05 7C 26 69 AE 5A [08:25:46]Write to MH i2c: E2 0D 00 D1 07 80 0D 02 02 05 00 7C 26 69 AE 5A 00 00 6F [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:46]Read from MH i2c: E2 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 03 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 03 00 D1 07 00 90 00 4C [08:25:46]RAPDU: 90 00 [08:25:46]wFMCommunicate OK [08:25:46]wFMCommunicate request_size=4 [08:25:46]MH_SAM_APDU [08:25:46]CAPDU: 80 0D 03 02 [08:25:46]Write to MH i2c: E2 08 00 D2 07 80 0D 03 02 00 00 00 00 54 [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:46]Read from MH i2c: E2 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 0B 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 0B 00 D2 07 00 8C 76 BF B6 11 DD DC 4B 90 00 E1 [08:25:46]RAPDU: 8C 76 BF B6 11 DD DC 4B 90 00 [08:25:46]wFMCommunicate OK [08:25:46]SAM_PROTO_SignData done [08:25:46]FM_MakeSignedData done [08:25:46]CreateOFDProtocolMessage [08:25:46]wFMCommunicate request_size=4 [08:25:46]MH_SAM_APDU [08:25:46]CAPDU: 80 11 00 00 [08:25:46]Write to MH i2c: E2 08 00 D3 07 80 11 00 00 00 00 00 00 54 [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:46]Read from MH i2c: E2 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 17 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 17 00 D3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AB [08:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:25:46]wFMCommunicate OK [08:25:46]CreateOFDProtocolMessage done [08:25:46]OFDSenderStorePacket 117311 [08:25:46]StoreOFDPacket docnum=117311 [08:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 09 3E 07 01 A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3F CA 01 00 35 04 06 00 FE 7C 26 69 AE 5A 8C 76 BF B6 11 DD DC 4B [08:25:46]CheckFolder [08:25:46]dirname=/storage/ofd_packets [08:25:46]CheckFolder done [08:25:46]ProducePacketName [08:25:46]name=ofd_packets/00117311 [08:25:46]NVStorageSaveData ofd_packets/00117311 [08:25:46]File name is /storage/ofd_packets/00117311 [08:25:46]Write 301 bytes [08:25:46]NVStorageSaveData done [08:25:46]OFDSenderStorePacket done [08:25:46]KKMCreateOFDPacket done [08:25:46]NVStorageSaveData kkm_last_timestamp [08:25:46]File name is /storage/kkm_last_timestamp [08:25:46]Write 4 bytes [08:25:46]NVStorageSaveData done [08:25:46]ExternCall_PrintAddStr [08:25:46]wPrintStart [08:25:46]Write to MH i2c: 01 00 00 D4 07 DB [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: 01 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: 01 07 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 FF 0F F0 [08:25:46]RasterBufferAndPrint [08:25:46]line Счет N : (1)245083 [08:25:46]line ИНН: 02508201610067 [08:25:46]line Контрольно-Кассовый Чек [08:25:46]line ПРОДАЖА [08:25:46]line ТРК (МРК, ГНК) : 11 [08:25:46]line Товар: 2710124130 [08:25:46]line Аи-92-К-2 [08:25:46]line 7.480 * 66.90 [08:25:46]line = 500.41 [08:25:46]line НДС 12% НСП 1% [08:25:46]line > о реализуемом товаре [08:25:46]line ОКРУГЛЕНИЕ: -0.41 [08:25:46]line ИТОГО: 500.00 [08:25:46]line Внесено: 500.00 [08:25:46]line СДАЧА: 0.00 [08:25:46]line НСП 1% : 4.43 [08:25:46]line НДС 12% : 53.14 [08:25:46]line Наличными: 500.00 [08:25:46]line Безнал.: 0.00 [08:25:46]line Место: АЗС № 173 "Партнер Нефть" [08:25:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:25:46]line СНО: Общий режим [08:25:46]line Чек 11 27.10.2024 08:25 [08:25:46]line Смена: 542 ФФД: 1.0 [08:25:46]line ЗНМ: 0300000115 [08:25:46]line РНМ: 0000000000091782 [08:25:46]line Версия ККМ: 001 [08:25:46]line ФМ: 0000000000871767 [08:25:46]line ФД: 117311 [08:25:46]line ФПД: 279809173859930 [08:25:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082547&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117311&fm=279809173859930&tin=02508201610067®Number=0000000000091782&sum=50000 [08:25:47]written 0, free lines is 4095 [08:25:47]OFD Sender: Processing packet 117311 [packets to send 75, broken 74] [08:25:47]ProducePacketName [08:25:47]name=ofd_packets/00117311 [08:25:47]OFD Sender: To server: pG, [08:25:47]CommunicateWithHost lk.salyk.kg:30040 [08:25:47]ConnectInit lk.salyk.kg [08:25:47]Connected sock=10 [08: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 36 37 0F 01 00 00 09 3E 07 01 A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3F CA 01 00 35 04 06 00 FE 7C 26 69 AE 5A 8C 76 BF B6 11 DD DC 4B [08: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 36 37 4F 00 00 00 94 3F 47 00 51 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 36 37 10 04 04 00 3F CA 01 00 F4 03 04 00 D3 A4 1D 67 B6 04 01 00 00 25 53 02 B8 07 09 03 8B [08:25:47]CommunicateWithHost err = 0 [08:25:47]CheckOFDResponse [08:25:47]1017 (14) - 77093643461234 [08:25:47]1041 (16) - 0000000000871767 [08:25:47]1040 (4) - 117311 [08:25:47]1012 (4) - 27.10.2024 02:26 [08:25:47]1206 (1) - 0 [08:25:47]OFD Sender: Remove packet 117311 [08:25:47]ProducePacketName [08:25:47]name=ofd_packets/00117311 [08:25:47]NVStorageDeleteData [08:25:47]Write to MH i2c: 01 00 00 FE 07 05 [08:25:47]Write i2c OK [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: 01 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: 01 07 00 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: 01 07 00 FE 07 00 00 00 00 00 AF 0C C7 [08:25:47]RasterBufferAndPrint [08:25:47]line [08:25:47]line [08:25:47]line [08:25:47]line [08:25:47]line [08:25:47]written 0, free lines is 3253 [08:25:47]MH_Cut [08:25:47]Write to MH i2c: D1 01 00 05 08 01 DF [08:25:47]Write i2c OK [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: D1 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: D1 01 00 [08:25:47]MH_I2C_Read... [08:25:47]Read from MH i2c: D1 01 00 05 08 00 DE [08:25:47]Write to MH i2c: 01 00 00 06 08 0E [08:25:47]Write i2c OK [08:25:47]MH_I2C_Read... [08:25:47]OFD Sender: No OFD packet to send [08:25:48]*** Cut start [08:25:48]*** Purtial cut [08:25:48]*** Stage 1: CUTSNS_PIN = 1 [08:25:48]Read from MH i2c: 01 [08:25:48]MH_I2C_Read... [08:25:48]*** Stop cut motor [08:25:48]*** Cut end [08:25:48]Read from MH i2c: 01 07 00 [08:25:48]MH_I2C_Read... [08:25:48]Read from MH i2c: 01 07 00 06 08 00 00 00 00 00 FF 0F 23 [08:25:48]process_action close_receipt done [08:25:48]requested_data is exist [08:25:48]produce_requested_data [08:25:48]requested_item fm.sn is exist - process it [08:25:48]wFMCommunicate request_size=4 [08:25:48]MH_SAM_APDU [08:25:48]CAPDU: 80 11 00 00 [08:25:48]Write to MH i2c: E2 08 00 07 08 80 11 00 00 00 00 00 00 89 [08:25:48]Write i2c OK [08:25:48]MH_I2C_Read... [08:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:48]Read from MH i2c: E2 [08:25:48]MH_I2C_Read... [08:25:48]Read from MH i2c: E2 17 00 [08:25:48]MH_I2C_Read... [08:25:48]Read from MH i2c: E2 17 00 07 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E0 [08:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:25:48]wFMCommunicate OK [08:25:48]requested_item fd.num is exist - process it [08:25:48]SAM_PROTO_GetFieldsCounters [08:25:48]wFMCommunicate request_size=4 [08:25:48]MH_SAM_APDU [08:25:48]CAPDU: 80 13 00 00 [08:25:48]Write to MH i2c: E2 08 00 08 08 80 13 00 00 00 00 00 00 8C [08:25:48]Write i2c OK [08:25:48]MH_I2C_Read... [08:25:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:48]Read from MH i2c: E2 [08:25:48]MH_I2C_Read... [08:25:48]Read from MH i2c: E2 62 00 [08:25:48]MH_I2C_Read... [08:25:48]Read from MH i2c: E2 62 00 08 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3F CA 01 00 0E 04 04 00 1E 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 FE [08:25: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3F CA 01 00 0E 04 04 00 1E 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 [08:25:48]wFMCommunicate OK [08:25:48]SAM_PROTO_GetFieldsCounters done [08:25:48]requested_item shift.num is exist - process it [08:25:48]requested_item shift.opened is exist - process it [08:25:48]req_shift_opened [08:25:48]FM_GetShiftState [08:25:48]SAM_PROTO_GetShiftState [08:25:48]wFMCommunicate request_size=4 [08:25:48]MH_SAM_APDU [08:25:48]CAPDU: 80 13 01 00 [08:25:48]Write to MH i2c: E2 08 00 09 08 80 13 01 00 00 00 00 00 8E [08:25:48]Write i2c OK [08:25:48]MH_I2C_Read... [08:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:48]Read from MH i2c: E2 [08:25:48]MH_I2C_Read... [08:25:48]Read from MH i2c: E2 0E 00 [08:25:48]MH_I2C_Read... [08:25:48]Read from MH i2c: E2 0E 00 09 08 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 CD [08:25:48]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:25:48]wFMCommunicate OK [08:25:48]SAM_PROTO_GetShiftState done [08:25:48]FM_GetShiftState done [08:25:48]req_shift_opened done [08:25:48]requested_item shift.open_date is exist - process it [08:25:48]req_shift_open_date [08:25:48]req_shift_open_date done [08:25:48]produce_requested_data done [08:25:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117311,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:25:48]process_action_free close_receipt [08:25:48]json_value_free [08:25:48]json_value_free done [08:25:48]process_json_proto returns [08:25:48]Send response to host [08:25:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117311,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:25:48]free response buf [08:25:48]execute_script done [08:25:48]execute_script returns [08:25:48]free content buf [08:25:48]Sock 9.Close socket [08:25:48]Sock 9.Thread stoped [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:33]accept exits with 7 [08:27:33]New connection [08:27:33]New thread 3066781028 created [08:27:33]Thread 3066924388 joined [08:27:33]Waiting for new connection... [08:27:33] Sock 7.Parse request [08:27:33]Sock 7.Check first char [08:27:33]Sock 7.First char is OK [08:27:33]request: POST /json_proto HTTP/1.0 [08:27:33]Method: POST [08:27:33]URL: /json_proto [08:27:33]Method is POST - this is cgi request [08:27:33]url: /json_proto [08:27:33]query_string will be loaded in cgi processing [08:27:33]execute_cgi json_proto POST (null) [08:27:33]execute_cgi path=json_proto method=POST [08:27:33]POST find Content-Length [08:27:33]Host: 172.17.96.67:8080 [08:27:33]Content-Length: 677 [08:27:33]Content-Type: application/json [08:27:33] [08:27:33]POST finish read [08:27:33]Found Content-Length = 677 [08:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:27:33]execute_script... [08:27: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)245084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:27:33]POST & json_proto [08:27:33]process_json_proto [08:27:33]json parsed OK: [08:27:33]protocol is kg_v1.0 [08:27:33]action value=close_receipt [08:27:33]process_action close_receipt [08:27:33]cmd_close_receipt [08:27:33]MH_GetDate [08:27:33]Write to MH i2c: F0 00 00 0A 08 01 [08:27:33]Write i2c OK [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: F0 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: F0 09 00 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: F0 09 00 0A 08 00 78 F9 1D 67 F7 AE 1B 67 26 [08:27:33]GetLastDocTimeStamp 1730017547 [08:27:33]current date 1730017656 [08:27:33]FM_GetShiftState [08:27:33]SAM_PROTO_GetShiftState [08:27:33]wFMCommunicate request_size=4 [08:27:33]MH_SAM_APDU [08:27:33]CAPDU: 80 13 01 00 [08:27:33]Write to MH i2c: E2 08 00 0B 08 80 13 01 00 00 00 00 00 90 [08:27:33]Write i2c OK [08:27:33]MH_I2C_Read... [08:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:33]Read from MH i2c: E2 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: E2 0E 00 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: E2 0E 00 0B 08 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 CF [08:27:33]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:27:33]wFMCommunicate OK [08:27:33]SAM_PROTO_GetShiftState done [08:27:33]FM_GetShiftState done [08:27:33]opened in 1729987372 [08:27:33]opened+sec_in_day 1730073772 [08:27:33]quantity*price = 50041 [08:27:33]sum+1 = 50042 [08:27: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 12 27.10.2024 08:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117312 ФПД: 205040497201656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082736&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117312&fm=205040497201656&tin=02508201610067®Number=0000000000091782&sum=50000 [08:27:34]StoreToDocumentArchive [08:27:34]shift 542 fd 117312 [08:27:34]save to /storage/0542/doc_00117312 [08:27:34]save last doc name /storage/0542/doc_00117312 to /storage/kkm_last_doc_name [08:27:34]save OK [08:27:34]Clear old archive folders... [08:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:34]tlvbuf is 00FC08C0 [08:27:34]SAM_PROTO_ClearQueue [08:27:34]wFMCommunicate request_size=4 [08:27:34]MH_SAM_APDU [08:27:34]CAPDU: 80 09 00 00 [08:27:34]Write to MH i2c: E2 08 00 18 08 80 09 00 00 00 00 00 00 92 [08:27:34]Write i2c OK [08:27:34]MH_I2C_Read... [08:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:34]Read from MH i2c: E2 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 18 08 00 90 00 94 [08:27:34]RAPDU: 90 00 [08:27:34]wFMCommunicate OK [08:27:34]SAM_PROTO_ClearQueue done [08:27:34]KKMCreateOFDPacket [08:27:34]OFDProtocolAddRootSTLVToBuf [08:27:34]FM_MakeSignedData [08:27:34]FM_MakeSignedData [08:27:34]SAM_PROTO_SignData [08:27:34]wFMCommunicate request_size=4 [08:27:34]MH_SAM_APDU [08:27:34]CAPDU: 80 0D 01 02 [08:27:34]Write to MH i2c: E2 08 00 19 08 80 0D 01 02 00 00 00 00 9A [08:27:34]Write i2c OK [08:27:34]MH_I2C_Read... [08:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 19 08 00 90 00 95 [08:27:35]RAPDU: 90 00 [08:27:35]wFMCommunicate OK [08:27:35]wFMCommunicate request_size=255 [08:27:35]MH_SAM_APDU [08:27: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 78 F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 40 CA 01 00 35 04 06 00 BA [08:27:35]Write to MH i2c: E2 02 01 1A 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 0C 00 00 00 F4 03 04 00 78 F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 40 CA 01 00 35 04 06 00 BA 00 00 12 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 1A 08 00 90 00 96 [08:27:35]RAPDU: 90 00 [08:27:35]wFMCommunicate OK [08:27:35]wFMCommunicate request_size=10 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 0D 02 02 05 7B B6 00 11 F8 [08:27:35]Write to MH i2c: E2 0D 00 1B 08 80 0D 02 02 05 00 7B B6 00 11 F8 00 00 E1 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 1B 08 00 90 00 97 [08:27:35]RAPDU: 90 00 [08:27:35]wFMCommunicate OK [08:27:35]wFMCommunicate request_size=4 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 0D 03 02 [08:27:35]Write to MH i2c: E2 08 00 1C 08 80 0D 03 02 00 00 00 00 9F [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 0B 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 0B 00 1C 08 00 31 6E 5D CD FC D8 07 2A 90 00 6E [08:27:35]RAPDU: 31 6E 5D CD FC D8 07 2A 90 00 [08:27:35]wFMCommunicate OK [08:27:35]SAM_PROTO_SignData done [08:27:35]FM_MakeSignedData done [08:27:35]CreateOFDProtocolMessage [08:27:35]wFMCommunicate request_size=4 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 11 00 00 [08:27:35]Write to MH i2c: E2 08 00 1D 08 80 11 00 00 00 00 00 00 9F [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 17 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 17 00 1D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F6 [08:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:27:35]wFMCommunicate OK [08:27:35]CreateOFDProtocolMessage done [08:27:35]OFDSenderStorePacket 117312 [08:27:35]StoreOFDPacket docnum=117312 [08:27:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C8 E7 07 01 54 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 78 F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 40 CA 01 00 35 04 06 00 BA 7B B6 00 11 F8 31 6E 5D CD FC D8 07 2A [08:27:35]CheckFolder [08:27:35]dirname=/storage/ofd_packets [08:27:35]CheckFolder done [08:27:35]ProducePacketName [08:27:35]name=ofd_packets/00117312 [08:27:35]NVStorageSaveData ofd_packets/00117312 [08:27:35]File name is /storage/ofd_packets/00117312 [08:27:35]Write 301 bytes [08:27:35]NVStorageSaveData done [08:27:35]OFDSenderStorePacket done [08:27:35]KKMCreateOFDPacket done [08:27:35]NVStorageSaveData kkm_last_timestamp [08:27:35]File name is /storage/kkm_last_timestamp [08:27:35]Write 4 bytes [08:27:35]NVStorageSaveData done [08:27:35]ExternCall_PrintAddStr [08:27:35]wPrintStart [08:27:35]Write to MH i2c: 01 00 00 1E 08 26 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: 01 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: 01 07 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: 01 07 00 1E 08 00 00 00 00 00 FF 0F 3B [08:27:35]RasterBufferAndPrint [08:27:35]line Счет N : (1)245084 [08:27:35]line ИНН: 02508201610067 [08:27:35]line Контрольно-Кассовый Чек [08:27:35]line ПРОДАЖА [08:27:35]line ТРК (МРК, ГНК) : 11 [08:27:35]line Товар: 2710124130 [08:27:35]line Аи-92-К-2 [08:27:35]line 7.480 * 66.90 [08:27:35]line = 500.41 [08:27:35]line НДС 12% НСП 1% [08:27:35]line > о реализуемом товаре [08:27:35]line ОКРУГЛЕНИЕ: -0.41 [08:27:35]line ИТОГО: 500.00 [08:27:35]line Внесено: 500.00 [08:27:35]line СДАЧА: 0.00 [08:27:35]line НСП 1% : 4.43 [08:27:35]line НДС 12% : 53.14 [08:27:35]line Наличными: 500.00 [08:27:35]line Безнал.: 0.00 [08:27:35]line Место: АЗС № 173 "Партнер Нефть" [08:27:35]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:27:35]line СНО: Общий режим [08:27:35]line Чек 12 27.10.2024 08:27 [08:27:35]line Смена: 542 ФФД: 1.0 [08:27:35]line ЗНМ: 0300000115 [08:27:35]line РНМ: 0000000000091782 [08:27:35]line Версия ККМ: 001 [08:27:35]line ФМ: 0000000000871767 [08:27:35]line ФД: 117312 [08:27:35]line ФПД: 205040497201656 [08:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082736&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117312&fm=205040497201656&tin=02508201610067®Number=0000000000091782&sum=50000 [08:27:35]written 0, free lines is 4095 [08:27:35]OFD Sender: Processing packet 117312 [packets to send 75, broken 74] [08:27:35]ProducePacketName [08:27:35]name=ofd_packets/00117312 [08:27:35]OFD Sender: To server: pG, [08:27:35]CommunicateWithHost lk.salyk.kg:30040 [08:27:35]ConnectInit lk.salyk.kg [08:27:35]Connected sock=10 [08:27: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 36 37 0F 01 00 00 C8 E7 07 01 54 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 78 F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 40 CA 01 00 35 04 06 00 BA 7B B6 00 11 F8 31 6E 5D CD FC D8 07 2A [08:27: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 36 37 4F 00 00 00 53 4F 47 00 98 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 36 37 10 04 04 00 40 CA 01 00 F4 03 04 00 3F A5 1D 67 B6 04 01 00 00 8B 63 C2 33 AA E2 10 54 [08:27:36]CommunicateWithHost err = 0 [08:27:36]CheckOFDResponse [08:27:36]1017 (14) - 77093643461234 [08:27:36]1041 (16) - 0000000000871767 [08:27:36]1040 (4) - 117312 [08:27:36]1012 (4) - 27.10.2024 02:28 [08:27:36]1206 (1) - 0 [08:27:36]OFD Sender: Remove packet 117312 [08:27:36]ProducePacketName [08:27:36]name=ofd_packets/00117312 [08:27:36]NVStorageDeleteData [08:27:36]Write to MH i2c: 01 00 00 48 08 50 [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: 01 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: 01 07 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: 01 07 00 48 08 00 00 00 00 00 AF 0C 12 [08:27:36]RasterBufferAndPrint [08:27:36]line [08:27:36]line [08:27:36]line [08:27:36]line [08:27:36]line [08:27:36]written 0, free lines is 3253 [08:27:36]MH_Cut [08:27:36]Write to MH i2c: D1 01 00 4F 08 01 29 [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: D1 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: D1 01 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: D1 01 00 4F 08 00 28 [08:27:36]Write to MH i2c: 01 00 00 50 08 58 [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]OFD Sender: No OFD packet to send [08:27:37]*** Cut start [08:27:37]*** Purtial cut [08:27:37]*** Stage 1: CUTSNS_PIN = 1 [08:27:37]Read from MH i2c: 01 [08:27:37]MH_I2C_Read... [08:27:37]*** Stop cut motor [08:27:37]*** Cut end [08:27:37]Read from MH i2c: 01 07 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: 01 07 00 50 08 00 00 00 00 00 FF 0F 6D [08:27:37]process_action close_receipt done [08:27:37]requested_data is exist [08:27:37]produce_requested_data [08:27:37]requested_item fm.sn is exist - process it [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 11 00 00 [08:27:37]Write to MH i2c: E2 08 00 51 08 80 11 00 00 00 00 00 00 D3 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 17 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 17 00 51 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2A [08:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:27:37]wFMCommunicate OK [08:27:37]requested_item fd.num is exist - process it [08:27:37]SAM_PROTO_GetFieldsCounters [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 13 00 00 [08:27:37]Write to MH i2c: E2 08 00 52 08 80 13 00 00 00 00 00 00 D6 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 62 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 62 00 52 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 40 CA 01 00 0E 04 04 00 1E 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 4C [08:27: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 40 CA 01 00 0E 04 04 00 1E 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 [08:27:37]wFMCommunicate OK [08:27:37]SAM_PROTO_GetFieldsCounters done [08:27:37]requested_item shift.num is exist - process it [08:27:37]requested_item shift.opened is exist - process it [08:27:37]req_shift_opened [08:27:37]FM_GetShiftState [08:27:37]SAM_PROTO_GetShiftState [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 13 01 00 [08:27:37]Write to MH i2c: E2 08 00 53 08 80 13 01 00 00 00 00 00 D8 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 0E 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 0E 00 53 08 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 17 [08:27:37]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:27:37]wFMCommunicate OK [08:27:37]SAM_PROTO_GetShiftState done [08:27:37]FM_GetShiftState done [08:27:37]req_shift_opened done [08:27:37]requested_item shift.open_date is exist - process it [08:27:37]req_shift_open_date [08:27:37]req_shift_open_date done [08:27:37]produce_requested_data done [08:27:37]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117312,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:27:37]process_action_free close_receipt [08:27:37]json_value_free [08:27:37]json_value_free done [08:27:37]process_json_proto returns [08:27:37]Send response to host [08:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117312,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:27:37]free response buf [08:27:37]execute_script done [08:27:37]execute_script returns [08:27:37]free content buf [08:27:37]Sock 7.Close socket [08:27:37]Sock 7.Thread stoped [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:30]accept exits with 9 [08:29:30]New connection [08:29:30]New thread 3066924388 created [08:29:30]Thread 3066781028 joined [08:29:30]Waiting for new connection... [08:29:30] Sock 9.Parse request [08:29:30]Sock 9.Check first char [08:29:30]Sock 9.First char is OK [08:29:30]request: POST /json_proto HTTP/1.0 [08:29:30]Method: POST [08:29:30]URL: /json_proto [08:29:30]Method is POST - this is cgi request [08:29:30]url: /json_proto [08:29:30]query_string will be loaded in cgi processing [08:29:30]execute_cgi json_proto POST (null) [08:29:30]execute_cgi path=json_proto method=POST [08:29:30]POST find Content-Length [08:29:30]Host: 172.17.96.67:8080 [08:29:30]Content-Length: 677 [08:29:30]Content-Type: application/json [08:29:30] [08:29:30]POST finish read [08:29:30]Found Content-Length = 677 [08:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:29:30]execute_script... [08:29:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:29:30]POST & json_proto [08:29:30]process_json_proto [08:29:30]json parsed OK: [08:29:30]protocol is kg_v1.0 [08:29:30]action value=close_receipt [08:29:30]process_action close_receipt [08:29:30]cmd_close_receipt [08:29:30]MH_GetDate [08:29:30]Write to MH i2c: F0 00 00 54 08 4B [08:29:30]Write i2c OK [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: F0 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: F0 09 00 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: F0 09 00 54 08 00 ED F9 1D 67 F7 AE 1B 67 E5 [08:29:30]GetLastDocTimeStamp 1730017656 [08:29:30]current date 1730017773 [08:29:30]FM_GetShiftState [08:29:30]SAM_PROTO_GetShiftState [08:29:30]wFMCommunicate request_size=4 [08:29:30]MH_SAM_APDU [08:29:30]CAPDU: 80 13 01 00 [08:29:30]Write to MH i2c: E2 08 00 55 08 80 13 01 00 00 00 00 00 DA [08:29:30]Write i2c OK [08:29:30]MH_I2C_Read... [08:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:30]Read from MH i2c: E2 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 0E 00 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 0E 00 55 08 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 19 [08:29:30]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:29:30]wFMCommunicate OK [08:29:30]SAM_PROTO_GetShiftState done [08:29:30]FM_GetShiftState done [08:29:30]opened in 1729987372 [08:29:30]opened+sec_in_day 1730073772 [08:29:30]quantity*price = 30038 [08:29:30]sum+1 = 30039 [08:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 13 27.10.2024 08:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117313 ФПД: 64920230145678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082933&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117313&fm=64920230145678&tin=02508201610067®Number=0000000000091782&sum=30000 [08:29:31]StoreToDocumentArchive [08:29:31]shift 542 fd 117313 [08:29:31]save to /storage/0542/doc_00117313 [08:29:31]save last doc name /storage/0542/doc_00117313 to /storage/kkm_last_doc_name [08:29:31]save OK [08:29:31]Clear old archive folders... [08:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:31]tlvbuf is 00FEB150 [08:29:31]SAM_PROTO_ClearQueue [08:29:31]wFMCommunicate request_size=4 [08:29:31]MH_SAM_APDU [08:29:31]CAPDU: 80 09 00 00 [08:29:31]Write to MH i2c: E2 08 00 62 08 80 09 00 00 00 00 00 00 DC [08:29:31]Write i2c OK [08:29:31]MH_I2C_Read... [08:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:31]Read from MH i2c: E2 [08:29:31]MH_I2C_Read... [08:29:31]Read from MH i2c: E2 03 00 [08:29:31]MH_I2C_Read... [08:29:31]Read from MH i2c: E2 03 00 62 08 00 90 00 DE [08:29:31]RAPDU: 90 00 [08:29:31]wFMCommunicate OK [08:29:31]SAM_PROTO_ClearQueue done [08:29:31]KKMCreateOFDPacket [08:29:31]OFDProtocolAddRootSTLVToBuf [08:29:31]FM_MakeSignedData [08:29:31]FM_MakeSignedData [08:29:31]SAM_PROTO_SignData [08:29:31]wFMCommunicate request_size=4 [08:29:31]MH_SAM_APDU [08:29:31]CAPDU: 80 0D 01 02 [08:29:31]Write to MH i2c: E2 08 00 63 08 80 0D 01 02 00 00 00 00 E4 [08:29:31]Write i2c OK [08:29:31]MH_I2C_Read... [08:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:31]Read from MH i2c: E2 [08:29:31]MH_I2C_Read... [08:29:31]Read from MH i2c: E2 03 00 [08:29:31]MH_I2C_Read... [08:29:31]Read from MH i2c: E2 03 00 63 08 00 90 00 DF [08:29:31]RAPDU: 90 00 [08:29:31]wFMCommunicate OK [08:29:31]wFMCommunicate request_size=255 [08:29:31]MH_SAM_APDU [08:29:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0D 00 00 00 F4 03 04 00 ED F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 41 CA 01 00 35 04 06 00 3B [08:29:31]Write to MH i2c: E2 02 01 64 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 0D 00 00 00 F4 03 04 00 ED F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 41 CA 01 00 35 04 06 00 3B 00 00 48 [08:29:31]Write i2c OK [08:29:31]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 64 08 00 90 00 E0 [08:29:32]RAPDU: 90 00 [08:29:32]wFMCommunicate OK [08:29:32]wFMCommunicate request_size=10 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 0D 02 02 05 0B 6B 41 AE 8E [08:29:32]Write to MH i2c: E2 0D 00 65 08 80 0D 02 02 05 00 0B 6B 41 AE 8E 00 00 E4 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [08:29:32]RAPDU: 90 00 [08:29:32]wFMCommunicate OK [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 0D 03 02 [08:29:32]Write to MH i2c: E2 08 00 66 08 80 0D 03 02 00 00 00 00 E9 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0B 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0B 00 66 08 00 11 84 0A 40 B4 B1 6A 1C 90 00 B4 [08:29:32]RAPDU: 11 84 0A 40 B4 B1 6A 1C 90 00 [08:29:32]wFMCommunicate OK [08:29:32]SAM_PROTO_SignData done [08:29:32]FM_MakeSignedData done [08:29:32]CreateOFDProtocolMessage [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 11 00 00 [08:29:32]Write to MH i2c: E2 08 00 67 08 80 11 00 00 00 00 00 00 E9 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 17 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 17 00 67 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 40 [08:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:29:32]wFMCommunicate OK [08:29:32]CreateOFDProtocolMessage done [08:29:32]OFDSenderStorePacket 117313 [08:29:32]StoreOFDPacket docnum=117313 [08:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2D 2C 07 01 AB 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0D 00 00 00 F4 03 04 00 ED F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 41 CA 01 00 35 04 06 00 3B 0B 6B 41 AE 8E 11 84 0A 40 B4 B1 6A 1C [08:29:32]CheckFolder [08:29:32]dirname=/storage/ofd_packets [08:29:32]CheckFolder done [08:29:32]ProducePacketName [08:29:32]name=ofd_packets/00117313 [08:29:32]NVStorageSaveData ofd_packets/00117313 [08:29:32]File name is /storage/ofd_packets/00117313 [08:29:32]Write 301 bytes [08:29:32]NVStorageSaveData done [08:29:32]OFDSenderStorePacket done [08:29:32]KKMCreateOFDPacket done [08:29:32]NVStorageSaveData kkm_last_timestamp [08:29:32]File name is /storage/kkm_last_timestamp [08:29:32]Write 4 bytes [08:29:32]NVStorageSaveData done [08:29:32]ExternCall_PrintAddStr [08:29:32]wPrintStart [08:29:32]Write to MH i2c: 01 00 00 68 08 70 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: 01 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: 01 07 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 FF 0F 85 [08:29:32]RasterBufferAndPrint [08:29:32]line Счет N : (1)245085 [08:29:32]line ИНН: 02508201610067 [08:29:32]line Контрольно-Кассовый Чек [08:29:32]line ПРОДАЖА [08:29:32]line ТРК (МРК, ГНК) : 21 [08:29:32]line Товар: 2710124130 [08:29:32]line Аи-92-К-2 [08:29:32]line 4.490 * 66.90 [08:29:32]line = 300.38 [08:29:32]line НДС 12% НСП 1% [08:29:32]line > о реализуемом товаре [08:29:32]line ОКРУГЛЕНИЕ: -0.38 [08:29:32]line ИТОГО: 300.00 [08:29:32]line Внесено: 300.00 [08:29:32]line СДАЧА: 0.00 [08:29:32]line НСП 1% : 2.66 [08:29:32]line НДС 12% : 31.90 [08:29:32]line Наличными: 300.00 [08:29:32]line Безнал.: 0.00 [08:29:32]line Место: АЗС № 173 "Партнер Нефть" [08:29:32]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:29:32]line СНО: Общий режим [08:29:32]line Чек 13 27.10.2024 08:29 [08:29:32]line Смена: 542 ФФД: 1.0 [08:29:32]line ЗНМ: 0300000115 [08:29:32]line РНМ: 0000000000091782 [08:29:32]line Версия ККМ: 001 [08:29:32]line ФМ: 0000000000871767 [08:29:32]line ФД: 117313 [08:29:32]line ФПД: 64920230145678 [08:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082933&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117313&fm=64920230145678&tin=02508201610067®Number=0000000000091782&sum=30000 [08:29:32]written 0, free lines is 4095 [08:29:32]OFD Sender: Processing packet 117313 [packets to send 75, broken 74] [08:29:32]ProducePacketName [08:29:32]name=ofd_packets/00117313 [08:29:32]OFD Sender: To server: pG, [08:29:32]CommunicateWithHost lk.salyk.kg:30040 [08:29:32]ConnectInit lk.salyk.kg [08:29:32]Connected sock=7 [08:29: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 36 37 0F 01 00 00 2D 2C 07 01 AB 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0D 00 00 00 F4 03 04 00 ED F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 41 CA 01 00 35 04 06 00 3B 0B 6B 41 AE 8E 11 84 0A 40 B4 B1 6A 1C [08:29: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 36 37 4F 00 00 00 6A A8 47 00 9D 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 36 37 10 04 04 00 41 CA 01 00 F4 03 04 00 B4 A5 1D 67 B6 04 01 00 00 48 BD 6D A3 A7 B1 3D D2 [08:29:32]CommunicateWithHost err = 0 [08:29:32]CheckOFDResponse [08:29:32]1017 (14) - 77093643461234 [08:29:32]1041 (16) - 0000000000871767 [08:29:32]1040 (4) - 117313 [08:29:32]1012 (4) - 27.10.2024 02:30 [08:29:32]1206 (1) - 0 [08:29:32]OFD Sender: Remove packet 117313 [08:29:32]ProducePacketName [08:29:32]name=ofd_packets/00117313 [08:29:32]NVStorageDeleteData [08:29:32]Write to MH i2c: 01 00 00 92 08 9A [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: 01 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: 01 07 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: 01 07 00 92 08 00 00 00 00 00 AE 0C 5B [08:29:32]RasterBufferAndPrint [08:29:32]line [08:29:32]line [08:29:32]line [08:29:32]line [08:29:32]line [08:29:32]written 0, free lines is 3250 [08:29:32]MH_Cut [08:29:32]Write to MH i2c: D1 01 00 99 08 01 73 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: D1 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: D1 01 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: D1 01 00 99 08 00 72 [08:29:32]Write to MH i2c: 01 00 00 9A 08 A2 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:33]OFD Sender: No OFD packet to send [08:29:33]*** Cut start [08:29:33]*** Purtial cut [08:29:33]*** Stage 1: CUTSNS_PIN = 1 [08:29:33]Read from MH i2c: 01 [08:29:34]MH_I2C_Read... [08:29:34]*** Stop cut motor [08:29:34]*** Cut end [08:29:34]Read from MH i2c: 01 07 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: 01 07 00 9A 08 00 00 00 00 00 FF 0F B7 [08:29:34]process_action close_receipt done [08:29:34]requested_data is exist [08:29:34]produce_requested_data [08:29:34]requested_item fm.sn is exist - process it [08:29:34]wFMCommunicate request_size=4 [08:29:34]MH_SAM_APDU [08:29:34]CAPDU: 80 11 00 00 [08:29:34]Write to MH i2c: E2 08 00 9B 08 80 11 00 00 00 00 00 00 1D [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:34]Read from MH i2c: E2 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 17 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 17 00 9B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 74 [08:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:29:34]wFMCommunicate OK [08:29:34]requested_item fd.num is exist - process it [08:29:34]SAM_PROTO_GetFieldsCounters [08:29:34]wFMCommunicate request_size=4 [08:29:34]MH_SAM_APDU [08:29:34]CAPDU: 80 13 00 00 [08:29:34]Write to MH i2c: E2 08 00 9C 08 80 13 00 00 00 00 00 00 20 [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:34]Read from MH i2c: E2 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 62 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 62 00 9C 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 41 CA 01 00 0E 04 04 00 1E 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 9A [08:29: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 41 CA 01 00 0E 04 04 00 1E 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 [08:29:34]wFMCommunicate OK [08:29:34]SAM_PROTO_GetFieldsCounters done [08:29:34]requested_item shift.num is exist - process it [08:29:34]requested_item shift.opened is exist - process it [08:29:34]req_shift_opened [08:29:34]FM_GetShiftState [08:29:34]SAM_PROTO_GetShiftState [08:29:34]wFMCommunicate request_size=4 [08:29:34]MH_SAM_APDU [08:29:34]CAPDU: 80 13 01 00 [08:29:34]Write to MH i2c: E2 08 00 9D 08 80 13 01 00 00 00 00 00 22 [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:34]Read from MH i2c: E2 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 0E 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 0E 00 9D 08 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 61 [08:29:34]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:29:34]wFMCommunicate OK [08:29:34]SAM_PROTO_GetShiftState done [08:29:34]FM_GetShiftState done [08:29:34]req_shift_opened done [08:29:34]requested_item shift.open_date is exist - process it [08:29:34]req_shift_open_date [08:29:34]req_shift_open_date done [08:29:34]produce_requested_data done [08:29:34]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117313,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:29:34]process_action_free close_receipt [08:29:34]json_value_free [08:29:34]json_value_free done [08:29:34]process_json_proto returns [08:29:34]Send response to host [08:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117313,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:29:34]free response buf [08:29:34]execute_script done [08:29:34]execute_script returns [08:29:34]free content buf [08:29:34]Sock 9.Close socket [08:29:34]Sock 9.Thread stoped [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:18]accept exits with 10 [08:31:18]New connection [08:31:18]New thread 3066781028 created [08:31:18]Thread 3066924388 joined [08:31:18]Waiting for new connection... [08:31:18] Sock 10.Parse request [08:31:18]Sock 10.Check first char [08:31:18]Sock 10.First char is OK [08:31:18]request: POST /json_proto HTTP/1.0 [08:31:18]Method: POST [08:31:18]URL: /json_proto [08:31:18]Method is POST - this is cgi request [08:31:18]url: /json_proto [08:31:18]query_string will be loaded in cgi processing [08:31:18]execute_cgi json_proto POST (null) [08:31:18]execute_cgi path=json_proto method=POST [08:31:18]POST find Content-Length [08:31:18]Host: 172.17.96.67:8080 [08:31:18]Content-Length: 677 [08:31:18]Content-Type: application/json [08:31:18] [08:31:18]POST finish read [08:31:18]Found Content-Length = 677 [08:31:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:31:18]execute_script... [08:31: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)245087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:31:18]POST & json_proto [08:31:18]process_json_proto [08:31:18]json parsed OK: [08:31:18]protocol is kg_v1.0 [08:31:18]action value=close_receipt [08:31:18]process_action close_receipt [08:31:18]cmd_close_receipt [08:31:18]MH_GetDate [08:31:18]Write to MH i2c: F0 00 00 9E 08 95 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: F0 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: F0 09 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: F0 09 00 9E 08 00 59 FA 1D 67 F7 AE 1B 67 9C [08:31:18]GetLastDocTimeStamp 1730017773 [08:31:18]current date 1730017881 [08:31:18]FM_GetShiftState [08:31:18]SAM_PROTO_GetShiftState [08:31:18]wFMCommunicate request_size=4 [08:31:18]MH_SAM_APDU [08:31:18]CAPDU: 80 13 01 00 [08:31:18]Write to MH i2c: E2 08 00 9F 08 80 13 01 00 00 00 00 00 24 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:18]Read from MH i2c: E2 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 0E 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 0E 00 9F 08 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 63 [08:31:18]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:31:18]wFMCommunicate OK [08:31:18]SAM_PROTO_GetShiftState done [08:31:18]FM_GetShiftState done [08:31:18]opened in 1729987372 [08:31:18]opened+sec_in_day 1730073772 [08:31:18]quantity*price = 40006 [08:31:18]sum+1 = 40007 [08:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 14 27.10.2024 08:31 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117314 ФПД: 202579444824078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083121&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117314&fm=202579444824078&tin=02508201610067®Number=0000000000091782&sum=40000 [08:31:20]StoreToDocumentArchive [08:31:20]shift 542 fd 117314 [08:31:20]save to /storage/0542/doc_00117314 [08:31:20]save last doc name /storage/0542/doc_00117314 to /storage/kkm_last_doc_name [08:31:20]save OK [08:31:20]Clear old archive folders... [08:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:20]tlvbuf is 00FDAFE0 [08:31:20]SAM_PROTO_ClearQueue [08:31:20]wFMCommunicate request_size=4 [08:31:20]MH_SAM_APDU [08:31:20]CAPDU: 80 09 00 00 [08:31:20]Write to MH i2c: E2 08 00 AC 08 80 09 00 00 00 00 00 00 26 [08:31:20]Write i2c OK [08:31:20]MH_I2C_Read... [08:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:20]Read from MH i2c: E2 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 03 00 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [08:31:20]RAPDU: 90 00 [08:31:20]wFMCommunicate OK [08:31:20]SAM_PROTO_ClearQueue done [08:31:20]KKMCreateOFDPacket [08:31:20]OFDProtocolAddRootSTLVToBuf [08:31:20]FM_MakeSignedData [08:31:20]FM_MakeSignedData [08:31:20]SAM_PROTO_SignData [08:31:20]wFMCommunicate request_size=4 [08:31:20]MH_SAM_APDU [08:31:20]CAPDU: 80 0D 01 02 [08:31:20]Write to MH i2c: E2 08 00 AD 08 80 0D 01 02 00 00 00 00 2E [08:31:20]Write i2c OK [08:31:20]MH_I2C_Read... [08:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:20]Read from MH i2c: E2 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 03 00 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [08:31:20]RAPDU: 90 00 [08:31:20]wFMCommunicate OK [08:31:20]wFMCommunicate request_size=255 [08:31:20]MH_SAM_APDU [08:31: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 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 0E 00 00 00 F4 03 04 00 59 FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 42 CA 01 00 35 04 06 00 B8 [08:31:20]Write to MH i2c: E2 02 01 AE 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 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 0E 00 00 00 F4 03 04 00 59 FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 42 CA 01 00 35 04 06 00 B8 00 00 59 [08:31:20]Write i2c OK [08:31:20]MH_I2C_Read... [08:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:20]Read from MH i2c: E2 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 03 00 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [08:31:20]RAPDU: 90 00 [08:31:20]wFMCommunicate OK [08:31:20]wFMCommunicate request_size=10 [08:31:20]MH_SAM_APDU [08:31:20]CAPDU: 80 0D 02 02 05 3E B3 D8 F8 0E [08:31:20]Write to MH i2c: E2 0D 00 AF 08 80 0D 02 02 05 00 3E B3 D8 F8 0E 00 00 0A [08:31:20]Write i2c OK [08:31:20]MH_I2C_Read... [08:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:20]Read from MH i2c: E2 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 03 00 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 03 00 AF 08 00 90 00 2B [08:31:20]RAPDU: 90 00 [08:31:20]wFMCommunicate OK [08:31:20]wFMCommunicate request_size=4 [08:31:20]MH_SAM_APDU [08:31:20]CAPDU: 80 0D 03 02 [08:31:20]Write to MH i2c: E2 08 00 B0 08 80 0D 03 02 00 00 00 00 33 [08:31:20]Write i2c OK [08:31:20]MH_I2C_Read... [08:31:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:20]Read from MH i2c: E2 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 0B 00 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 0B 00 B0 08 00 DD 85 9D 49 20 2E C8 85 90 00 17 [08:31:20]RAPDU: DD 85 9D 49 20 2E C8 85 90 00 [08:31:20]wFMCommunicate OK [08:31:20]SAM_PROTO_SignData done [08:31:20]FM_MakeSignedData done [08:31:20]CreateOFDProtocolMessage [08:31:20]wFMCommunicate request_size=4 [08:31:20]MH_SAM_APDU [08:31:20]CAPDU: 80 11 00 00 [08:31:20]Write to MH i2c: E2 08 00 B1 08 80 11 00 00 00 00 00 00 33 [08:31:20]Write i2c OK [08:31:20]MH_I2C_Read... [08:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:20]Read from MH i2c: E2 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 17 00 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 17 00 B1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8A [08:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:31:20]wFMCommunicate OK [08:31:20]CreateOFDProtocolMessage done [08:31:20]OFDSenderStorePacket 117314 [08:31:20]StoreOFDPacket docnum=117314 [08:31:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4C C9 07 01 84 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 59 FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 42 CA 01 00 35 04 06 00 B8 3E B3 D8 F8 0E DD 85 9D 49 20 2E C8 85 [08:31:20]CheckFolder [08:31:20]dirname=/storage/ofd_packets [08:31:20]CheckFolder done [08:31:20]ProducePacketName [08:31:20]name=ofd_packets/00117314 [08:31:20]NVStorageSaveData ofd_packets/00117314 [08:31:20]File name is /storage/ofd_packets/00117314 [08:31:20]Write 301 bytes [08:31:20]NVStorageSaveData done [08:31:20]OFDSenderStorePacket done [08:31:20]KKMCreateOFDPacket done [08:31:20]NVStorageSaveData kkm_last_timestamp [08:31:20]File name is /storage/kkm_last_timestamp [08:31:20]Write 4 bytes [08:31:20]NVStorageSaveData done [08:31:20]ExternCall_PrintAddStr [08:31:20]wPrintStart [08:31:20]Write to MH i2c: 01 00 00 B2 08 BA [08:31:20]Write i2c OK [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: 01 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: 01 07 00 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: 01 07 00 B2 08 00 00 00 00 00 FF 0F CF [08:31:20]RasterBufferAndPrint [08:31:20]line Счет N : (1)245087 [08:31:20]line ИНН: 02508201610067 [08:31:20]line Контрольно-Кассовый Чек [08:31:20]line ПРОДАЖА [08:31:20]line ТРК (МРК, ГНК) : 21 [08:31:20]line Товар: 2710124130 [08:31:20]line Аи-92-К-2 [08:31:20]line 5.980 * 66.90 [08:31:20]line = 400.06 [08:31:20]line НДС 12% НСП 1% [08:31:20]line > о реализуемом товаре [08:31:20]line ОКРУГЛЕНИЕ: -0.06 [08:31:20]line ИТОГО: 400.00 [08:31:20]line Внесено: 400.00 [08:31:20]line СДАЧА: 0.00 [08:31:20]line НСП 1% : 3.54 [08:31:20]line НДС 12% : 42.48 [08:31:20]line Наличными: 400.00 [08:31:20]line Безнал.: 0.00 [08:31:20]line Место: АЗС № 173 "Партнер Нефть" [08:31:20]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:31:20]line СНО: Общий режим [08:31:20]line Чек 14 27.10.2024 08:31 [08:31:20]line Смена: 542 ФФД: 1.0 [08:31:20]line ЗНМ: 0300000115 [08:31:20]line РНМ: 0000000000091782 [08:31:20]line Версия ККМ: 001 [08:31:20]line ФМ: 0000000000871767 [08:31:20]line ФД: 117314 [08:31:20]line ФПД: 202579444824078 [08:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083121&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117314&fm=202579444824078&tin=02508201610067®Number=0000000000091782&sum=40000 [08:31:20]written 0, free lines is 4095 [08:31:20]OFD Sender: Processing packet 117314 [packets to send 75, broken 74] [08:31:20]ProducePacketName [08:31:20]name=ofd_packets/00117314 [08:31:20]OFD Sender: To server: pG, [08:31:20]CommunicateWithHost lk.salyk.kg:30040 [08:31:20]ConnectInit lk.salyk.kg [08:31:20]Connected sock=9 [08:31:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4C C9 07 01 84 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 59 FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 42 CA 01 00 35 04 06 00 B8 3E B3 D8 F8 0E DD 85 9D 49 20 2E C8 85 [08:31: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 36 37 4F 00 00 00 5E 44 47 00 AF 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 36 37 10 04 04 00 42 CA 01 00 F4 03 04 00 20 A6 1D 67 B6 04 01 00 00 FA AD A5 0F F5 85 06 D4 [08:31:21]CommunicateWithHost err = 0 [08:31:21]CheckOFDResponse [08:31:21]1017 (14) - 77093643461234 [08:31:21]1041 (16) - 0000000000871767 [08:31:21]1040 (4) - 117314 [08:31:21]1012 (4) - 27.10.2024 02:32 [08:31:21]1206 (1) - 0 [08:31:21]OFD Sender: Remove packet 117314 [08:31:21]ProducePacketName [08:31:21]name=ofd_packets/00117314 [08:31:21]NVStorageDeleteData [08:31:21]Write to MH i2c: 01 00 00 DC 08 E4 [08:31:21]Write i2c OK [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: 01 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: 01 07 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: 01 07 00 DC 08 00 00 00 00 00 AD 0C A4 [08:31:21]RasterBufferAndPrint [08:31:21]line [08:31:21]line [08:31:21]line [08:31:21]line [08:31:21]line [08:31:21]written 0, free lines is 3249 [08:31:21]MH_Cut [08:31:21]Write to MH i2c: D1 01 00 E3 08 01 BD [08:31:21]Write i2c OK [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: D1 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: D1 01 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: D1 01 00 E3 08 00 BC [08:31:21]Write to MH i2c: 01 00 00 E4 08 EC [08:31:21]Write i2c OK [08:31:21]MH_I2C_Read... [08:31:21]OFD Sender: No OFD packet to send [08:31:22]*** Cut start [08:31:22]*** Purtial cut [08:31:22]*** Stage 1: CUTSNS_PIN = 1 [08:31:22]Read from MH i2c: 01 [08:31:22]MH_I2C_Read... [08:31:22]*** Stop cut motor [08:31:22]*** Cut end [08:31:22]Read from MH i2c: 01 07 00 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: 01 07 00 E4 08 00 00 00 00 00 FF 0F 01 [08:31:22]process_action close_receipt done [08:31:22]requested_data is exist [08:31:22]produce_requested_data [08:31:22]requested_item fm.sn is exist - process it [08:31:22]wFMCommunicate request_size=4 [08:31:22]MH_SAM_APDU [08:31:22]CAPDU: 80 11 00 00 [08:31:22]Write to MH i2c: E2 08 00 E5 08 80 11 00 00 00 00 00 00 67 [08:31:22]Write i2c OK [08:31:22]MH_I2C_Read... [08:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:22]Read from MH i2c: E2 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: E2 17 00 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: E2 17 00 E5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BE [08:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:31:22]wFMCommunicate OK [08:31:22]requested_item fd.num is exist - process it [08:31:22]SAM_PROTO_GetFieldsCounters [08:31:22]wFMCommunicate request_size=4 [08:31:22]MH_SAM_APDU [08:31:22]CAPDU: 80 13 00 00 [08:31:22]Write to MH i2c: E2 08 00 E6 08 80 13 00 00 00 00 00 00 6A [08:31:22]Write i2c OK [08:31:22]MH_I2C_Read... [08:31:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:22]Read from MH i2c: E2 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: E2 62 00 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: E2 62 00 E6 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 42 CA 01 00 0E 04 04 00 1E 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 E8 [08:31: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 42 CA 01 00 0E 04 04 00 1E 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 [08:31:22]wFMCommunicate OK [08:31:22]SAM_PROTO_GetFieldsCounters done [08:31:22]requested_item shift.num is exist - process it [08:31:22]requested_item shift.opened is exist - process it [08:31:22]req_shift_opened [08:31:22]FM_GetShiftState [08:31:22]SAM_PROTO_GetShiftState [08:31:22]wFMCommunicate request_size=4 [08:31:22]MH_SAM_APDU [08:31:22]CAPDU: 80 13 01 00 [08:31:22]Write to MH i2c: E2 08 00 E7 08 80 13 01 00 00 00 00 00 6C [08:31:22]Write i2c OK [08:31:22]MH_I2C_Read... [08:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:22]Read from MH i2c: E2 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: E2 0E 00 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: E2 0E 00 E7 08 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AB [08:31:22]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:31:22]wFMCommunicate OK [08:31:22]SAM_PROTO_GetShiftState done [08:31:22]FM_GetShiftState done [08:31:22]req_shift_opened done [08:31:22]requested_item shift.open_date is exist - process it [08:31:22]req_shift_open_date [08:31:22]req_shift_open_date done [08:31:22]produce_requested_data done [08:31:22]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117314,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:31:22]process_action_free close_receipt [08:31:22]json_value_free [08:31:22]json_value_free done [08:31:22]process_json_proto returns [08:31:22]Send response to host [08:31:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117314,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:31:22]free response buf [08:31:22]execute_script done [08:31:22]execute_script returns [08:31:22]free content buf [08:31:22]Sock 10.Close socket [08:31:22]Sock 10.Thread stoped [08:31:23]accept exits with 7 [08:31:23]New connection [08:31:23]New thread 3066924388 created [08:31:23]Thread 3066781028 joined [08:31:23]Waiting for new connection... [08:31:23] Sock 7.Parse request [08:31:23]Sock 7.Check first char [08:31:23]Sock 7.First char is OK [08:31:23]request: POST /json_proto HTTP/1.0 [08:31:23]Method: POST [08:31:23]URL: /json_proto [08:31:23]Method is POST - this is cgi request [08:31:23]url: /json_proto [08:31:23]query_string will be loaded in cgi processing [08:31:23]execute_cgi json_proto POST (null) [08:31:23]execute_cgi path=json_proto method=POST [08:31:23]POST find Content-Length [08:31:23]Host: 172.17.96.67:8080 [08:31:23]Content-Length: 677 [08:31:23]Content-Type: application/json [08:31:23] [08:31:23]POST finish read [08:31:23]Found Content-Length = 677 [08:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:31:23]execute_script... [08:31: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)245086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:31:23]POST & json_proto [08:31:23]process_json_proto [08:31:23]json parsed OK: [08:31:23]protocol is kg_v1.0 [08:31:23]action value=close_receipt [08:31:23]process_action close_receipt [08:31:23]cmd_close_receipt [08:31:23]MH_GetDate [08:31:23]Write to MH i2c: F0 00 00 E8 08 DF [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: F0 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: F0 09 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: F0 09 00 E8 08 00 5D FA 1D 67 F7 AE 1B 67 EA [08:31:23]GetLastDocTimeStamp 1730017881 [08:31:23]current date 1730017885 [08:31:23]FM_GetShiftState [08:31:23]SAM_PROTO_GetShiftState [08:31:23]wFMCommunicate request_size=4 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 13 01 00 [08:31:23]Write to MH i2c: E2 08 00 E9 08 80 13 01 00 00 00 00 00 6E [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 0E 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 0E 00 E9 08 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AD [08:31:23]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:31:23]wFMCommunicate OK [08:31:23]SAM_PROTO_GetShiftState done [08:31:23]FM_GetShiftState done [08:31:23]opened in 1729987372 [08:31:23]opened+sec_in_day 1730073772 [08:31:23]quantity*price = 50041 [08:31:23]sum+1 = 50042 [08:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 15 27.10.2024 08:31 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117315 ФПД: 275621286557478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083125&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117315&fm=275621286557478&tin=02508201610067®Number=0000000000091782&sum=50000 [08:31:24]StoreToDocumentArchive [08:31:24]shift 542 fd 117315 [08:31:24]save to /storage/0542/doc_00117315 [08:31:24]save last doc name /storage/0542/doc_00117315 to /storage/kkm_last_doc_name [08:31:24]save OK [08:31:24]Clear old archive folders... [08:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:24]tlvbuf is 00FB9900 [08:31:24]SAM_PROTO_ClearQueue [08:31:24]wFMCommunicate request_size=4 [08:31:24]MH_SAM_APDU [08:31:24]CAPDU: 80 09 00 00 [08:31:24]Write to MH i2c: E2 08 00 F6 08 80 09 00 00 00 00 00 00 70 [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:24]Read from MH i2c: E2 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: E2 03 00 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [08:31:24]RAPDU: 90 00 [08:31:24]wFMCommunicate OK [08:31:24]SAM_PROTO_ClearQueue done [08:31:24]KKMCreateOFDPacket [08:31:24]OFDProtocolAddRootSTLVToBuf [08:31:24]FM_MakeSignedData [08:31:24]FM_MakeSignedData [08:31:24]SAM_PROTO_SignData [08:31:24]wFMCommunicate request_size=4 [08:31:24]MH_SAM_APDU [08:31:24]CAPDU: 80 0D 01 02 [08:31:24]Write to MH i2c: E2 08 00 F7 08 80 0D 01 02 00 00 00 00 78 [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:24]Read from MH i2c: E2 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: E2 03 00 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [08:31:24]RAPDU: 90 00 [08:31:24]wFMCommunicate OK [08:31:24]wFMCommunicate request_size=255 [08:31:24]MH_SAM_APDU [08:31: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5D FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 43 CA 01 00 35 04 06 00 FA [08:31:24]Write to MH i2c: E2 02 01 F8 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 0F 00 00 00 F4 03 04 00 5D FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 43 CA 01 00 35 04 06 00 FA 00 00 1C [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:24]Read from MH i2c: E2 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: E2 03 00 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [08:31:24]RAPDU: 90 00 [08:31:24]wFMCommunicate OK [08:31:24]wFMCommunicate request_size=10 [08:31:24]MH_SAM_APDU [08:31:24]CAPDU: 80 0D 02 02 05 AD 14 E0 B7 26 [08:31:24]Write to MH i2c: E2 0D 00 F9 08 80 0D 02 02 05 00 AD 14 E0 B7 26 00 00 03 [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:25]Read from MH i2c: E2 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 03 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [08:31:25]RAPDU: 90 00 [08:31:25]wFMCommunicate OK [08:31:25]wFMCommunicate request_size=4 [08:31:25]MH_SAM_APDU [08:31:25]CAPDU: 80 0D 03 02 [08:31:25]Write to MH i2c: E2 08 00 FA 08 80 0D 03 02 00 00 00 00 7D [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:25]Read from MH i2c: E2 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 0B 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 0B 00 FA 08 00 2A 4C 1E 91 18 14 D8 3F 90 00 E6 [08:31:25]RAPDU: 2A 4C 1E 91 18 14 D8 3F 90 00 [08:31:25]wFMCommunicate OK [08:31:25]SAM_PROTO_SignData done [08:31:25]FM_MakeSignedData done [08:31:25]CreateOFDProtocolMessage [08:31:25]wFMCommunicate request_size=4 [08:31:25]MH_SAM_APDU [08:31:25]CAPDU: 80 11 00 00 [08:31:25]Write to MH i2c: E2 08 00 FB 08 80 11 00 00 00 00 00 00 7D [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:25]Read from MH i2c: E2 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 17 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 17 00 FB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D4 [08:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:31:25]wFMCommunicate OK [08:31:25]CreateOFDProtocolMessage done [08:31:25]OFDSenderStorePacket 117315 [08:31:25]StoreOFDPacket docnum=117315 [08:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 23 65 07 01 86 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5D FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 43 CA 01 00 35 04 06 00 FA AD 14 E0 B7 26 2A 4C 1E 91 18 14 D8 3F [08:31:25]CheckFolder [08:31:25]dirname=/storage/ofd_packets [08:31:25]CheckFolder done [08:31:25]ProducePacketName [08:31:25]name=ofd_packets/00117315 [08:31:25]NVStorageSaveData ofd_packets/00117315 [08:31:25]File name is /storage/ofd_packets/00117315 [08:31:25]Write 301 bytes [08:31:25]NVStorageSaveData done [08:31:25]OFDSenderStorePacket done [08:31:25]KKMCreateOFDPacket done [08:31:25]NVStorageSaveData kkm_last_timestamp [08:31:25]File name is /storage/kkm_last_timestamp [08:31:25]Write 4 bytes [08:31:25]NVStorageSaveData done [08:31:25]ExternCall_PrintAddStr [08:31:25]wPrintStart [08:31:25]Write to MH i2c: 01 00 00 FC 08 04 [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: 01 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: 01 07 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: 01 07 00 FC 08 00 00 00 00 00 FF 0F 19 [08:31:25]RasterBufferAndPrint [08:31:25]line Счет N : (1)245086 [08:31:25]line ИНН: 02508201610067 [08:31:25]line Контрольно-Кассовый Чек [08:31:25]line ПРОДАЖА [08:31:25]line ТРК (МРК, ГНК) : 11 [08:31:25]line Товар: 2710124130 [08:31:25]line Аи-92-К-2 [08:31:25]line 7.480 * 66.90 [08:31:25]line = 500.41 [08:31:25]line НДС 12% НСП 1% [08:31:25]line > о реализуемом товаре [08:31:25]line ОКРУГЛЕНИЕ: -0.41 [08:31:25]line ИТОГО: 500.00 [08:31:25]line Внесено: 500.00 [08:31:25]line СДАЧА: 0.00 [08:31:25]line НСП 1% : 4.43 [08:31:25]line НДС 12% : 53.14 [08:31:25]line Наличными: 500.00 [08:31:25]line Безнал.: 0.00 [08:31:25]line Место: АЗС № 173 "Партнер Нефть" [08:31:25]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:31:25]line СНО: Общий режим [08:31:25]line Чек 15 27.10.2024 08:31 [08:31:25]line Смена: 542 ФФД: 1.0 [08:31:25]line ЗНМ: 0300000115 [08:31:25]line РНМ: 0000000000091782 [08:31:25]line Версия ККМ: 001 [08:31:25]line ФМ: 0000000000871767 [08:31:25]line ФД: 117315 [08:31:25]line ФПД: 275621286557478 [08:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083125&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117315&fm=275621286557478&tin=02508201610067®Number=0000000000091782&sum=50000 [08:31:25]OFD Sender: Processing packet 117315 [packets to send 75, broken 74] [08:31:25]ProducePacketName [08:31:25]name=ofd_packets/00117315 [08:31:25]OFD Sender: To server: pG, [08:31:25]CommunicateWithHost lk.salyk.kg:30040 [08:31:25]ConnectInit lk.salyk.kg [08:31:25]written 0, free lines is 4095 [08:31:25]Connected sock=10 [08:31: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 36 37 0F 01 00 00 23 65 07 01 86 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5D FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 43 CA 01 00 35 04 06 00 FA AD 14 E0 B7 26 2A 4C 1E 91 18 14 D8 3F [08:31: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 36 37 4F 00 00 00 F8 E2 47 00 A1 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 36 37 10 04 04 00 43 CA 01 00 F4 03 04 00 25 A6 1D 67 B6 04 01 00 00 4D E1 05 BC 21 B2 73 C8 [08:31:25]CommunicateWithHost err = 0 [08:31:25]CheckOFDResponse [08:31:25]1017 (14) - 77093643461234 [08:31:25]1041 (16) - 0000000000871767 [08:31:25]1040 (4) - 117315 [08:31:25]1012 (4) - 27.10.2024 02:32 [08:31:25]1206 (1) - 0 [08:31:25]OFD Sender: Remove packet 117315 [08:31:25]ProducePacketName [08:31:25]name=ofd_packets/00117315 [08:31:25]NVStorageDeleteData [08:31:25]Write to MH i2c: 01 00 00 26 09 2F [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: 01 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: 01 07 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: 01 07 00 26 09 00 00 00 00 00 AF 0C F1 [08:31:25]RasterBufferAndPrint [08:31:25]line [08:31:25]line [08:31:25]line [08:31:25]line [08:31:25]line [08:31:25]written 0, free lines is 3257 [08:31:25]MH_Cut [08:31:25]Write to MH i2c: D1 01 00 2D 09 01 08 [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: D1 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: D1 01 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: D1 01 00 2D 09 00 07 [08:31:25]Write to MH i2c: 01 00 00 2E 09 37 [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:26]OFD Sender: No OFD packet to send [08:31:26]*** Cut start [08:31:26]*** Purtial cut [08:31:26]*** Stage 1: CUTSNS_PIN = 1 [08:31:27]Read from MH i2c: 01 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: 01 07 00 [08:31:27]MH_I2C_Read... [08:31:27]*** Stop cut motor [08:31:27]*** Cut end [08:31:27]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 FF 0F 4C [08:31:27]process_action close_receipt done [08:31:27]requested_data is exist [08:31:27]produce_requested_data [08:31:27]requested_item fm.sn is exist - process it [08:31:27]wFMCommunicate request_size=4 [08:31:27]MH_SAM_APDU [08:31:27]CAPDU: 80 11 00 00 [08:31:27]Write to MH i2c: E2 08 00 2F 09 80 11 00 00 00 00 00 00 B2 [08:31:27]Write i2c OK [08:31:27]MH_I2C_Read... [08:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:27]Read from MH i2c: E2 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 17 00 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 17 00 2F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 09 [08:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:31:27]wFMCommunicate OK [08:31:27]requested_item fd.num is exist - process it [08:31:27]SAM_PROTO_GetFieldsCounters [08:31:27]wFMCommunicate request_size=4 [08:31:27]MH_SAM_APDU [08:31:27]CAPDU: 80 13 00 00 [08:31:27]Write to MH i2c: E2 08 00 30 09 80 13 00 00 00 00 00 00 B5 [08:31:27]Write i2c OK [08:31:27]MH_I2C_Read... [08:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:27]Read from MH i2c: E2 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 62 00 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 62 00 30 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 43 CA 01 00 0E 04 04 00 1E 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 37 [08:31: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 43 CA 01 00 0E 04 04 00 1E 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 [08:31:27]wFMCommunicate OK [08:31:27]SAM_PROTO_GetFieldsCounters done [08:31:27]requested_item shift.num is exist - process it [08:31:27]requested_item shift.opened is exist - process it [08:31:27]req_shift_opened [08:31:27]FM_GetShiftState [08:31:27]SAM_PROTO_GetShiftState [08:31:27]wFMCommunicate request_size=4 [08:31:27]MH_SAM_APDU [08:31:27]CAPDU: 80 13 01 00 [08:31:27]Write to MH i2c: E2 08 00 31 09 80 13 01 00 00 00 00 00 B7 [08:31:27]Write i2c OK [08:31:27]MH_I2C_Read... [08:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:27]Read from MH i2c: E2 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 0E 00 [08:31:27]MH_I2C_Read... [08:31:27]Read from MH i2c: E2 0E 00 31 09 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F6 [08:31:27]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:31:27]wFMCommunicate OK [08:31:27]SAM_PROTO_GetShiftState done [08:31:27]FM_GetShiftState done [08:31:27]req_shift_opened done [08:31:27]requested_item shift.open_date is exist - process it [08:31:27]req_shift_open_date [08:31:27]req_shift_open_date done [08:31:27]produce_requested_data done [08:31:27]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117315,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:31:27]process_action_free close_receipt [08:31:27]json_value_free [08:31:27]json_value_free done [08:31:27]process_json_proto returns [08:31:27]Send response to host [08:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117315,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:31:27]free response buf [08:31:27]execute_script done [08:31:27]execute_script returns [08:31:27]free content buf [08:31:27]Sock 7.Close socket [08:31:27]Sock 7.Thread stoped [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:07]accept exits with 9 [08:33:07]New connection [08:33:07]New thread 3066781028 created [08:33:07]Thread 3066924388 joined [08:33:07]Waiting for new connection... [08:33:07] Sock 9.Parse request [08:33:07]Sock 9.Check first char [08:33:07]Sock 9.First char is OK [08:33:07]request: POST /json_proto HTTP/1.0 [08:33:07]Method: POST [08:33:07]URL: /json_proto [08:33:07]Method is POST - this is cgi request [08:33:07]url: /json_proto [08:33:07]query_string will be loaded in cgi processing [08:33:07]execute_cgi json_proto POST (null) [08:33:07]execute_cgi path=json_proto method=POST [08:33:07]POST find Content-Length [08:33:07]Host: 172.17.96.67:8080 [08:33:07]Content-Length: 677 [08:33:07]Content-Type: application/json [08:33:07] [08:33:07]POST finish read [08:33:07]Found Content-Length = 677 [08:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:33:07]execute_script... [08:33: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)245089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:33:07]POST & json_proto [08:33:07]process_json_proto [08:33:07]json parsed OK: [08:33:07]protocol is kg_v1.0 [08:33:07]action value=close_receipt [08:33:07]process_action close_receipt [08:33:07]cmd_close_receipt [08:33:07]MH_GetDate [08:33:07]Write to MH i2c: F0 00 00 32 09 2A [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: F0 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: F0 09 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: F0 09 00 32 09 00 C6 FA 1D 67 F7 AE 1B 67 9E [08:33:07]GetLastDocTimeStamp 1730017885 [08:33:07]current date 1730017990 [08:33:07]FM_GetShiftState [08:33:07]SAM_PROTO_GetShiftState [08:33:07]wFMCommunicate request_size=4 [08:33:07]MH_SAM_APDU [08:33:07]CAPDU: 80 13 01 00 [08:33:07]Write to MH i2c: E2 08 00 33 09 80 13 01 00 00 00 00 00 B9 [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:07]Read from MH i2c: E2 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 0E 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 0E 00 33 09 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F8 [08:33:07]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:33:07]wFMCommunicate OK [08:33:07]SAM_PROTO_GetShiftState done [08:33:07]FM_GetShiftState done [08:33:07]opened in 1729987372 [08:33:07]opened+sec_in_day 1730073772 [08:33:07]quantity*price = 50041 [08:33:07]sum+1 = 50042 [08:33: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 16 27.10.2024 08:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117316 ФПД: 138272804847994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083310&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117316&fm=138272804847994&tin=02508201610067®Number=0000000000091782&sum=50000 [08:33:08]StoreToDocumentArchive [08:33:08]shift 542 fd 117316 [08:33:08]save to /storage/0542/doc_00117316 [08:33:08]save last doc name /storage/0542/doc_00117316 to /storage/kkm_last_doc_name [08:33:08]save OK [08:33:08]Clear old archive folders... [08:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:08]tlvbuf is 00FD7020 [08:33:08]SAM_PROTO_ClearQueue [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 09 00 00 [08:33:08]Write to MH i2c: E2 08 00 40 09 80 09 00 00 00 00 00 00 BB [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 40 09 00 90 00 BD [08:33:09]RAPDU: 90 00 [08:33:09]wFMCommunicate OK [08:33:09]SAM_PROTO_ClearQueue done [08:33:09]KKMCreateOFDPacket [08:33:09]OFDProtocolAddRootSTLVToBuf [08:33:09]FM_MakeSignedData [08:33:09]FM_MakeSignedData [08:33:09]SAM_PROTO_SignData [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 0D 01 02 [08:33:09]Write to MH i2c: E2 08 00 41 09 80 0D 01 02 00 00 00 00 C3 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [08:33:09]RAPDU: 90 00 [08:33:09]wFMCommunicate OK [08:33:09]wFMCommunicate request_size=255 [08:33:09]MH_SAM_APDU [08:33: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 10 00 00 00 F4 03 04 00 C6 FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 44 CA 01 00 35 04 06 00 7D [08:33:09]Write to MH i2c: E2 02 01 42 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 10 00 00 00 F4 03 04 00 C6 FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 44 CA 01 00 35 04 06 00 7D 00 00 55 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [08:33:09]RAPDU: 90 00 [08:33:09]wFMCommunicate OK [08:33:09]wFMCommunicate request_size=10 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 0D 02 02 05 C2 25 6A 41 7A [08:33:09]Write to MH i2c: E2 0D 00 43 09 80 0D 02 02 05 00 C2 25 6A 41 7A 00 00 DC [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [08:33:09]RAPDU: 90 00 [08:33:09]wFMCommunicate OK [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 0D 03 02 [08:33:09]Write to MH i2c: E2 08 00 44 09 80 0D 03 02 00 00 00 00 C8 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 0B 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 0B 00 44 09 00 C0 09 5A 96 94 6A E7 A8 90 00 0F [08:33:09]RAPDU: C0 09 5A 96 94 6A E7 A8 90 00 [08:33:09]wFMCommunicate OK [08:33:09]SAM_PROTO_SignData done [08:33:09]FM_MakeSignedData done [08:33:09]CreateOFDProtocolMessage [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 11 00 00 [08:33:09]Write to MH i2c: E2 08 00 45 09 80 11 00 00 00 00 00 00 C8 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 17 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 17 00 45 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1F [08:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:33:09]wFMCommunicate OK [08:33:09]CreateOFDProtocolMessage done [08:33:09]OFDSenderStorePacket 117316 [08:33:09]StoreOFDPacket docnum=117316 [08:33:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 45 12 07 01 7D 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C6 FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 44 CA 01 00 35 04 06 00 7D C2 25 6A 41 7A C0 09 5A 96 94 6A E7 A8 [08:33:09]CheckFolder [08:33:09]dirname=/storage/ofd_packets [08:33:09]CheckFolder done [08:33:09]ProducePacketName [08:33:09]name=ofd_packets/00117316 [08:33:09]NVStorageSaveData ofd_packets/00117316 [08:33:09]File name is /storage/ofd_packets/00117316 [08:33:09]Write 301 bytes [08:33:09]NVStorageSaveData done [08:33:09]OFDSenderStorePacket done [08:33:09]KKMCreateOFDPacket done [08:33:09]NVStorageSaveData kkm_last_timestamp [08:33:09]File name is /storage/kkm_last_timestamp [08:33:09]Write 4 bytes [08:33:09]NVStorageSaveData done [08:33:09]ExternCall_PrintAddStr [08:33:09]wPrintStart [08:33:09]Write to MH i2c: 01 00 00 46 09 4F [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: 01 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: 01 07 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: 01 07 00 46 09 00 00 00 00 00 FF 0F 64 [08:33:09]RasterBufferAndPrint [08:33:09]line Счет N : (1)245089 [08:33:09]line ИНН: 02508201610067 [08:33:09]line Контрольно-Кассовый Чек [08:33:09]line ПРОДАЖА [08:33:09]line ТРК (МРК, ГНК) : 21 [08:33:09]line Товар: 2710124130 [08:33:09]line Аи-92-К-2 [08:33:09]line 7.480 * 66.90 [08:33:09]line = 500.41 [08:33:09]line НДС 12% НСП 1% [08:33:09]line > о реализуемом товаре [08:33:09]line ОКРУГЛЕНИЕ: -0.41 [08:33:09]line ИТОГО: 500.00 [08:33:09]line Внесено: 500.00 [08:33:09]line СДАЧА: 0.00 [08:33:09]line НСП 1% : 4.43 [08:33:09]line НДС 12% : 53.14 [08:33:09]line Наличными: 500.00 [08:33:09]line Безнал.: 0.00 [08:33:09]line Место: АЗС № 173 "Партнер Нефть" [08:33:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:33:09]line СНО: Общий режим [08:33:09]line Чек 16 27.10.2024 08:33 [08:33:09]line Смена: 542 ФФД: 1.0 [08:33:09]line ЗНМ: 0300000115 [08:33:09]line РНМ: 0000000000091782 [08:33:09]line Версия ККМ: 001 [08:33:09]line ФМ: 0000000000871767 [08:33:09]line ФД: 117316 [08:33:09]line ФПД: 138272804847994 [08:33:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083310&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117316&fm=138272804847994&tin=02508201610067®Number=0000000000091782&sum=50000 [08:33:09]written 0, free lines is 4095 [08:33:09]OFD Sender: Processing packet 117316 [packets to send 75, broken 74] [08:33:09]ProducePacketName [08:33:09]name=ofd_packets/00117316 [08:33:09]OFD Sender: To server: pG, [08:33:09]CommunicateWithHost lk.salyk.kg:30040 [08:33:09]ConnectInit lk.salyk.kg [08:33:09]Connected sock=7 [08:33: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 36 37 0F 01 00 00 45 12 07 01 7D 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C6 FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 44 CA 01 00 35 04 06 00 7D C2 25 6A 41 7A C0 09 5A 96 94 6A E7 A8 [08: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 36 37 4F 00 00 00 9A BA 47 00 5E 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 36 37 10 04 04 00 44 CA 01 00 F4 03 04 00 8D A6 1D 67 B6 04 01 00 00 F9 12 48 3C 59 3F 62 93 [08:33:10]CommunicateWithHost err = 0 [08:33:10]CheckOFDResponse [08:33:10]1017 (14) - 77093643461234 [08:33:10]1041 (16) - 0000000000871767 [08:33:10]1040 (4) - 117316 [08:33:10]1012 (4) - 27.10.2024 02:33 [08:33:10]1206 (1) - 0 [08:33:10]OFD Sender: Remove packet 117316 [08:33:10]ProducePacketName [08:33:10]name=ofd_packets/00117316 [08:33:10]NVStorageDeleteData [08:33:10]Write to MH i2c: 01 00 00 70 09 79 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 AA 0C 36 [08:33:10]RasterBufferAndPrint [08:33:10]line [08:33:10]line [08:33:10]line [08:33:10]line [08:33:10]line [08:33:10]written 0, free lines is 3247 [08:33:10]MH_Cut [08:33:10]Write to MH i2c: D1 01 00 77 09 01 52 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: D1 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: D1 01 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: D1 01 00 77 09 00 51 [08:33:10]Write to MH i2c: 01 00 00 78 09 81 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]OFD Sender: No OFD packet to send [08:33:11]*** Cut start [08:33:11]*** Purtial cut [08:33:11]*** Stage 1: CUTSNS_PIN = 1 [08:33:11]Read from MH i2c: 01 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 07 00 [08:33:11]MH_I2C_Read... [08:33:11]*** Stop cut motor [08:33:11]*** Cut end [08:33:11]Read from MH i2c: 01 07 00 78 09 00 00 00 00 00 FF 0F 96 [08:33:11]process_action close_receipt done [08:33:11]requested_data is exist [08:33:11]produce_requested_data [08:33:11]requested_item fm.sn is exist - process it [08:33:11]wFMCommunicate request_size=4 [08:33:11]MH_SAM_APDU [08:33:11]CAPDU: 80 11 00 00 [08:33:11]Write to MH i2c: E2 08 00 79 09 80 11 00 00 00 00 00 00 FC [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:11]Read from MH i2c: E2 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 17 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 17 00 79 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 53 [08:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:33:11]wFMCommunicate OK [08:33:11]requested_item fd.num is exist - process it [08:33:11]SAM_PROTO_GetFieldsCounters [08:33:11]wFMCommunicate request_size=4 [08:33:11]MH_SAM_APDU [08:33:11]CAPDU: 80 13 00 00 [08:33:11]Write to MH i2c: E2 08 00 7A 09 80 13 00 00 00 00 00 00 FF [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:11]Read from MH i2c: E2 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 62 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 62 00 7A 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 44 CA 01 00 0E 04 04 00 1E 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 85 [08: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 44 CA 01 00 0E 04 04 00 1E 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 [08:33:11]wFMCommunicate OK [08:33:11]SAM_PROTO_GetFieldsCounters done [08:33:11]requested_item shift.num is exist - process it [08:33:11]requested_item shift.opened is exist - process it [08:33:11]req_shift_opened [08:33:11]FM_GetShiftState [08:33:11]SAM_PROTO_GetShiftState [08:33:11]wFMCommunicate request_size=4 [08:33:11]MH_SAM_APDU [08:33:11]CAPDU: 80 13 01 00 [08:33:11]Write to MH i2c: E2 08 00 7B 09 80 13 01 00 00 00 00 00 01 [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:11]Read from MH i2c: E2 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 0E 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 0E 00 7B 09 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 40 [08:33:11]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:33:11]wFMCommunicate OK [08:33:11]SAM_PROTO_GetShiftState done [08:33:11]FM_GetShiftState done [08:33:11]req_shift_opened done [08:33:11]requested_item shift.open_date is exist - process it [08:33:11]req_shift_open_date [08:33:11]req_shift_open_date done [08:33:11]produce_requested_data done [08:33:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117316,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:33:11]process_action_free close_receipt [08:33:11]json_value_free [08:33:11]json_value_free done [08:33:11]process_json_proto returns [08:33:11]Send response to host [08:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117316,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:33:11]free response buf [08:33:11]execute_script done [08:33:11]execute_script returns [08:33:11]free content buf [08:33:11]Sock 9.Close socket [08:33:11]Sock 9.Thread stoped [08:33:12]accept exits with 10 [08:33:12]New connection [08:33:12]New thread 3066924388 created [08:33:12]Thread 3066781028 joined [08:33:12]Waiting for new connection... [08:33:12] Sock 10.Parse request [08:33:12]Sock 10.Check first char [08:33:12]Sock 10.First char is OK [08:33:12]request: POST /json_proto HTTP/1.0 [08:33:12]Method: POST [08:33:12]URL: /json_proto [08:33:12]Method is POST - this is cgi request [08:33:12]url: /json_proto [08:33:12]query_string will be loaded in cgi processing [08:33:12]execute_cgi json_proto POST (null) [08:33:12]execute_cgi path=json_proto method=POST [08:33:12]POST find Content-Length [08:33:12]Host: 172.17.96.67:8080 [08:33:12]Content-Length: 677 [08:33:12]Content-Type: application/json [08:33:12] [08:33:12]POST finish read [08:33:12]Found Content-Length = 677 [08:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:33:12]execute_script... [08: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)245088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:33:12]POST & json_proto [08:33:12]process_json_proto [08:33:12]json parsed OK: [08:33:12]protocol is kg_v1.0 [08:33:12]action value=close_receipt [08:33:12]process_action close_receipt [08:33:12]cmd_close_receipt [08:33:12]MH_GetDate [08:33:12]Write to MH i2c: F0 00 00 7C 09 74 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: F0 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: F0 09 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: F0 09 00 7C 09 00 CA FA 1D 67 F7 AE 1B 67 EC [08:33:12]GetLastDocTimeStamp 1730017990 [08:33:12]current date 1730017994 [08:33:12]FM_GetShiftState [08:33:12]SAM_PROTO_GetShiftState [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 13 01 00 [08:33:12]Write to MH i2c: E2 08 00 7D 09 80 13 01 00 00 00 00 00 03 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 7D 09 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 42 [08:33:12]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_GetShiftState done [08:33:12]FM_GetShiftState done [08:33:12]opened in 1729987372 [08:33:12]opened+sec_in_day 1730073772 [08:33:12]quantity*price = 50041 [08:33:12]sum+1 = 50042 [08:33: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 17 27.10.2024 08:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117317 ФПД: 143423653658719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083314&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117317&fm=143423653658719&tin=02508201610067®Number=0000000000091782&sum=50000 [08:33:13]StoreToDocumentArchive [08:33:13]shift 542 fd 117317 [08:33:13]save to /storage/0542/doc_00117317 [08:33:13]save last doc name /storage/0542/doc_00117317 to /storage/kkm_last_doc_name [08:33:13]save OK [08:33:13]Clear old archive folders... [08:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:13]tlvbuf is 00FCD5F0 [08:33:13]SAM_PROTO_ClearQueue [08:33:13]wFMCommunicate request_size=4 [08:33:13]MH_SAM_APDU [08:33:13]CAPDU: 80 09 00 00 [08:33:13]Write to MH i2c: E2 08 00 8A 09 80 09 00 00 00 00 00 00 05 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 03 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 03 00 8A 09 00 90 00 07 [08:33:13]RAPDU: 90 00 [08:33:13]wFMCommunicate OK [08:33:13]SAM_PROTO_ClearQueue done [08:33:13]KKMCreateOFDPacket [08:33:13]OFDProtocolAddRootSTLVToBuf [08:33:13]FM_MakeSignedData [08:33:13]FM_MakeSignedData [08:33:13]SAM_PROTO_SignData [08:33:13]wFMCommunicate request_size=4 [08:33:13]MH_SAM_APDU [08:33:13]CAPDU: 80 0D 01 02 [08:33:13]Write to MH i2c: E2 08 00 8B 09 80 0D 01 02 00 00 00 00 0D [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 03 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 03 00 8B 09 00 90 00 08 [08:33:13]RAPDU: 90 00 [08:33:13]wFMCommunicate OK [08:33:13]wFMCommunicate request_size=255 [08:33:13]MH_SAM_APDU [08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CA FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 45 CA 01 00 35 04 06 00 82 [08:33:13]Write to MH i2c: E2 02 01 8C 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 11 00 00 00 F4 03 04 00 CA FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 45 CA 01 00 35 04 06 00 82 00 00 AA [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 03 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [08:33:13]RAPDU: 90 00 [08:33:13]wFMCommunicate OK [08:33:13]wFMCommunicate request_size=10 [08:33:13]MH_SAM_APDU [08:33:13]CAPDU: 80 0D 02 02 05 71 6B ED C0 5F [08:33:13]Write to MH i2c: E2 0D 00 8D 09 80 0D 02 02 05 00 71 6B ED C0 5F 00 00 02 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 03 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [08:33:13]RAPDU: 90 00 [08:33:13]wFMCommunicate OK [08:33:13]wFMCommunicate request_size=4 [08:33:13]MH_SAM_APDU [08:33:13]CAPDU: 80 0D 03 02 [08:33:13]Write to MH i2c: E2 08 00 8E 09 80 0D 03 02 00 00 00 00 12 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 0B 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 0B 00 8E 09 00 48 D0 53 4D AB BD 32 91 90 00 F6 [08:33:14]RAPDU: 48 D0 53 4D AB BD 32 91 90 00 [08:33:14]wFMCommunicate OK [08:33:14]SAM_PROTO_SignData done [08:33:14]FM_MakeSignedData done [08:33:14]CreateOFDProtocolMessage [08:33:14]wFMCommunicate request_size=4 [08:33:14]MH_SAM_APDU [08:33:14]CAPDU: 80 11 00 00 [08:33:14]Write to MH i2c: E2 08 00 8F 09 80 11 00 00 00 00 00 00 12 [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:14]Read from MH i2c: E2 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 17 00 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 17 00 8F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 69 [08:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:33:14]wFMCommunicate OK [08:33:14]CreateOFDProtocolMessage done [08:33:14]OFDSenderStorePacket 117317 [08:33:14]StoreOFDPacket docnum=117317 [08:33:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 06 15 07 01 E7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CA FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 45 CA 01 00 35 04 06 00 82 71 6B ED C0 5F 48 D0 53 4D AB BD 32 91 [08:33:14]CheckFolder [08:33:14]dirname=/storage/ofd_packets [08:33:14]CheckFolder done [08:33:14]ProducePacketName [08:33:14]name=ofd_packets/00117317 [08:33:14]NVStorageSaveData ofd_packets/00117317 [08:33:14]File name is /storage/ofd_packets/00117317 [08:33:14]Write 301 bytes [08:33:14]NVStorageSaveData done [08:33:14]OFDSenderStorePacket done [08:33:14]KKMCreateOFDPacket done [08:33:14]NVStorageSaveData kkm_last_timestamp [08:33:14]File name is /storage/kkm_last_timestamp [08:33:14]Write 4 bytes [08:33:14]NVStorageSaveData done [08:33:14]ExternCall_PrintAddStr [08:33:14]wPrintStart [08:33:14]Write to MH i2c: 01 00 00 90 09 99 [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: 01 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: 01 07 00 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: 01 07 00 90 09 00 00 00 00 00 FF 0F AE [08:33:14]RasterBufferAndPrint [08:33:14]line Счет N : (1)245088 [08:33:14]line ИНН: 02508201610067 [08:33:14]line Контрольно-Кассовый Чек [08:33:14]line ПРОДАЖА [08:33:14]line ТРК (МРК, ГНК) : 11 [08:33:14]line Товар: 2710124130 [08:33:14]line Аи-92-К-2 [08:33:14]line 7.480 * 66.90 [08:33:14]line = 500.41 [08:33:14]line НДС 12% НСП 1% [08:33:14]line > о реализуемом товаре [08:33:14]line ОКРУГЛЕНИЕ: -0.41 [08:33:14]line ИТОГО: 500.00 [08:33:14]line Внесено: 500.00 [08:33:14]line СДАЧА: 0.00 [08:33:14]line НСП 1% : 4.43 [08:33:14]line НДС 12% : 53.14 [08:33:14]line Наличными: 500.00 [08:33:14]line Безнал.: 0.00 [08:33:14]line Место: АЗС № 173 "Партнер Нефть" [08:33:14]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:33:14]line СНО: Общий режим [08:33:14]line Чек 17 27.10.2024 08:33 [08:33:14]line Смена: 542 ФФД: 1.0 [08:33:14]line ЗНМ: 0300000115 [08:33:14]line РНМ: 0000000000091782 [08:33:14]line Версия ККМ: 001 [08:33:14]line ФМ: 0000000000871767 [08:33:14]line ФД: 117317 [08:33:14]line ФПД: 143423653658719 [08:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083314&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117317&fm=143423653658719&tin=02508201610067®Number=0000000000091782&sum=50000 [08:33:14]OFD Sender: Processing packet 117317 [packets to send 75, broken 74] [08:33:14]ProducePacketName [08:33:14]name=ofd_packets/00117317 [08:33:14]OFD Sender: To server: pG, [08:33:14]CommunicateWithHost lk.salyk.kg:30040 [08:33:14]ConnectInit lk.salyk.kg [08:33:14]written 0, free lines is 4095 [08:33:14]Connected sock=9 [08: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 36 37 0F 01 00 00 06 15 07 01 E7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CA FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 45 CA 01 00 35 04 06 00 82 71 6B ED C0 5F 48 D0 53 4D AB BD 32 91 [08: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 36 37 4F 00 00 00 AE 5A 47 00 31 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 36 37 10 04 04 00 45 CA 01 00 F4 03 04 00 92 A6 1D 67 B6 04 01 00 00 A7 98 AF BE 3B D6 82 3D [08:33:14]CommunicateWithHost err = 0 [08:33:14]CheckOFDResponse [08:33:14]1017 (14) - 77093643461234 [08:33:14]1041 (16) - 0000000000871767 [08:33:14]1040 (4) - 117317 [08:33:14]1012 (4) - 27.10.2024 02:33 [08:33:14]1206 (1) - 0 [08:33:14]OFD Sender: Remove packet 117317 [08:33:14]ProducePacketName [08:33:14]name=ofd_packets/00117317 [08:33:14]NVStorageDeleteData [08:33:14]Write to MH i2c: 01 00 00 BA 09 C3 [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: 01 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: 01 07 00 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: 01 07 00 BA 09 00 00 00 00 00 C4 0C 9A [08:33:14]RasterBufferAndPrint [08:33:14]line [08:33:14]line [08:33:14]line [08:33:14]line [08:33:14]line [08:33:14]written 0, free lines is 3281 [08:33:14]MH_Cut [08:33:14]Write to MH i2c: D1 01 00 C1 09 01 9C [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: D1 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: D1 01 00 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: D1 01 00 C1 09 00 9B [08:33:14]Write to MH i2c: 01 00 00 C2 09 CB [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:15]OFD Sender: No OFD packet to send [08:33:15]*** Cut start [08:33:15]*** Purtial cut [08:33:15]*** Stage 1: CUTSNS_PIN = 1 [08:33:16]Read from MH i2c: 01 [08:33:16]MH_I2C_Read... [08:33:16]*** Stop cut motor [08:33:16]*** Cut end [08:33:16]Read from MH i2c: 01 07 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [08:33:16]process_action close_receipt done [08:33:16]requested_data is exist [08:33:16]produce_requested_data [08:33:16]requested_item fm.sn is exist - process it [08:33:16]wFMCommunicate request_size=4 [08:33:16]MH_SAM_APDU [08:33:16]CAPDU: 80 11 00 00 [08:33:16]Write to MH i2c: E2 08 00 C3 09 80 11 00 00 00 00 00 00 46 [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:16]Read from MH i2c: E2 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 17 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 17 00 C3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9D [08:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:33:16]wFMCommunicate OK [08:33:16]requested_item fd.num is exist - process it [08:33:16]SAM_PROTO_GetFieldsCounters [08:33:16]wFMCommunicate request_size=4 [08:33:16]MH_SAM_APDU [08:33:16]CAPDU: 80 13 00 00 [08:33:16]Write to MH i2c: E2 08 00 C4 09 80 13 00 00 00 00 00 00 49 [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:16]Read from MH i2c: E2 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 62 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 62 00 C4 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 45 CA 01 00 0E 04 04 00 1E 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 D3 [08:33: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 45 CA 01 00 0E 04 04 00 1E 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 [08:33:16]wFMCommunicate OK [08:33:16]SAM_PROTO_GetFieldsCounters done [08:33:16]requested_item shift.num is exist - process it [08:33:16]requested_item shift.opened is exist - process it [08:33:16]req_shift_opened [08:33:16]FM_GetShiftState [08:33:16]SAM_PROTO_GetShiftState [08:33:16]wFMCommunicate request_size=4 [08:33:16]MH_SAM_APDU [08:33:16]CAPDU: 80 13 01 00 [08:33:16]Write to MH i2c: E2 08 00 C5 09 80 13 01 00 00 00 00 00 4B [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:16]Read from MH i2c: E2 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 0E 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 0E 00 C5 09 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8A [08:33:16]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:33:16]wFMCommunicate OK [08:33:16]SAM_PROTO_GetShiftState done [08:33:16]FM_GetShiftState done [08:33:16]req_shift_opened done [08:33:16]requested_item shift.open_date is exist - process it [08:33:16]req_shift_open_date [08:33:16]req_shift_open_date done [08:33:16]produce_requested_data done [08:33:16]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117317,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:33:16]process_action_free close_receipt [08:33:16]json_value_free [08:33:16]json_value_free done [08:33:16]process_json_proto returns [08:33:16]Send response to host [08:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117317,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:33:16]free response buf [08:33:16]execute_script done [08:33:16]execute_script returns [08:33:16]free content buf [08:33:16]Sock 10.Close socket [08:33:16]Sock 10.Thread stoped [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:09]accept exits with 7 [08:34:09]New connection [08:34:09]New thread 3066781028 created [08:34:09]Thread 3066924388 joined [08:34:09]Waiting for new connection... [08:34:09] Sock 7.Parse request [08:34:09]Sock 7.Check first char [08:34:09]Sock 7.First char is OK [08:34:09]request: POST /json_proto HTTP/1.0 [08:34:09]Method: POST [08:34:09]URL: /json_proto [08:34:09]Method is POST - this is cgi request [08:34:09]url: /json_proto [08:34:09]query_string will be loaded in cgi processing [08:34:09]execute_cgi json_proto POST (null) [08:34:09]execute_cgi path=json_proto method=POST [08:34:09]POST find Content-Length [08:34:09]Host: 172.17.96.67:8080 [08:34:09]Content-Length: 677 [08:34:09]Content-Type: application/json [08:34:09] [08:34:09]POST finish read [08:34:09]Found Content-Length = 677 [08:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:34:09]execute_script... [08:34:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:34:09]POST & json_proto [08:34:09]process_json_proto [08:34:09]json parsed OK: [08:34:09]protocol is kg_v1.0 [08:34:09]action value=close_receipt [08:34:09]process_action close_receipt [08:34:09]cmd_close_receipt [08:34:09]MH_GetDate [08:34:09]Write to MH i2c: F0 00 00 C6 09 BE [08:34:09]Write i2c OK [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: F0 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: F0 09 00 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: F0 09 00 C6 09 00 04 FB 1D 67 F7 AE 1B 67 71 [08:34:09]GetLastDocTimeStamp 1730017994 [08:34:09]current date 1730018052 [08:34:09]FM_GetShiftState [08:34:09]SAM_PROTO_GetShiftState [08:34:09]wFMCommunicate request_size=4 [08:34:09]MH_SAM_APDU [08:34:09]CAPDU: 80 13 01 00 [08:34:09]Write to MH i2c: E2 08 00 C7 09 80 13 01 00 00 00 00 00 4D [08:34:09]Write i2c OK [08:34:09]MH_I2C_Read... [08:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:09]Read from MH i2c: E2 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: E2 0E 00 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: E2 0E 00 C7 09 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8C [08:34:09]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:34:09]wFMCommunicate OK [08:34:09]SAM_PROTO_GetShiftState done [08:34:09]FM_GetShiftState done [08:34:09]opened in 1729987372 [08:34:09]opened+sec_in_day 1730073772 [08:34:09]quantity*price = 40006 [08:34:09]sum+1 = 40007 [08:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 18 27.10.2024 08:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117318 ФПД: 26662004862056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083412&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117318&fm=26662004862056&tin=02508201610067®Number=0000000000091782&sum=40000 [08:34:10]StoreToDocumentArchive [08:34:10]shift 542 fd 117318 [08:34:10]save to /storage/0542/doc_00117318 [08:34:10]save last doc name /storage/0542/doc_00117318 to /storage/kkm_last_doc_name [08:34:10]save OK [08:34:10]Clear old archive folders... [08:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:10]tlvbuf is 00FC89B0 [08:34:10]SAM_PROTO_ClearQueue [08:34:10]wFMCommunicate request_size=4 [08:34:10]MH_SAM_APDU [08:34:10]CAPDU: 80 09 00 00 [08:34:10]Write to MH i2c: E2 08 00 D4 09 80 09 00 00 00 00 00 00 4F [08:34:10]Write i2c OK [08:34:10]MH_I2C_Read... [08:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:10]Read from MH i2c: E2 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 03 00 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [08:34:10]RAPDU: 90 00 [08:34:10]wFMCommunicate OK [08:34:10]SAM_PROTO_ClearQueue done [08:34:10]KKMCreateOFDPacket [08:34:10]OFDProtocolAddRootSTLVToBuf [08:34:10]FM_MakeSignedData [08:34:10]FM_MakeSignedData [08:34:10]SAM_PROTO_SignData [08:34:10]wFMCommunicate request_size=4 [08:34:10]MH_SAM_APDU [08:34:10]CAPDU: 80 0D 01 02 [08:34:10]Write to MH i2c: E2 08 00 D5 09 80 0D 01 02 00 00 00 00 57 [08:34:10]Write i2c OK [08:34:10]MH_I2C_Read... [08:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:10]Read from MH i2c: E2 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 03 00 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [08:34:10]RAPDU: 90 00 [08:34:10]wFMCommunicate OK [08:34:10]wFMCommunicate request_size=255 [08:34:10]MH_SAM_APDU [08:34:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 12 00 00 00 F4 03 04 00 04 FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 46 CA 01 00 35 04 06 00 18 [08:34:10]Write to MH i2c: E2 02 01 D6 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 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 12 00 00 00 F4 03 04 00 04 FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 46 CA 01 00 35 04 06 00 18 00 00 96 [08:34:10]Write i2c OK [08:34:10]MH_I2C_Read... [08:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:10]Read from MH i2c: E2 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 03 00 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [08:34:10]RAPDU: 90 00 [08:34:10]wFMCommunicate OK [08:34:10]wFMCommunicate request_size=10 [08:34:10]MH_SAM_APDU [08:34:10]CAPDU: 80 0D 02 02 05 3F BB 54 2C 68 [08:34:10]Write to MH i2c: E2 0D 00 D7 09 80 0D 02 02 05 00 3F BB 54 2C 68 00 00 46 [08:34:10]Write i2c OK [08:34:10]MH_I2C_Read... [08:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:10]Read from MH i2c: E2 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 03 00 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [08:34:10]RAPDU: 90 00 [08:34:10]wFMCommunicate OK [08:34:10]wFMCommunicate request_size=4 [08:34:10]MH_SAM_APDU [08:34:10]CAPDU: 80 0D 03 02 [08:34:10]Write to MH i2c: E2 08 00 D8 09 80 0D 03 02 00 00 00 00 5C [08:34:10]Write i2c OK [08:34:10]MH_I2C_Read... [08:34:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:10]Read from MH i2c: E2 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 0B 00 [08:34:10]MH_I2C_Read... [08:34:10]Read from MH i2c: E2 0B 00 D8 09 00 48 18 3E 39 06 30 0A 7D 90 00 F1 [08:34:10]RAPDU: 48 18 3E 39 06 30 0A 7D 90 00 [08:34:10]wFMCommunicate OK [08:34:10]SAM_PROTO_SignData done [08:34:10]FM_MakeSignedData done [08:34:10]CreateOFDProtocolMessage [08:34:10]wFMCommunicate request_size=4 [08:34:10]MH_SAM_APDU [08:34:10]CAPDU: 80 11 00 00 [08:34:10]Write to MH i2c: E2 08 00 D9 09 80 11 00 00 00 00 00 00 5C [08:34:10]Write i2c OK [08:34:10]MH_I2C_Read... [08:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:11]Read from MH i2c: E2 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: E2 17 00 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: E2 17 00 D9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B3 [08:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:34:11]wFMCommunicate OK [08:34:11]CreateOFDProtocolMessage done [08:34:11]OFDSenderStorePacket 117318 [08:34:11]StoreOFDPacket docnum=117318 [08:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3D 24 07 01 E8 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 12 00 00 00 F4 03 04 00 04 FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 46 CA 01 00 35 04 06 00 18 3F BB 54 2C 68 48 18 3E 39 06 30 0A 7D [08:34:11]CheckFolder [08:34:11]dirname=/storage/ofd_packets [08:34:11]CheckFolder done [08:34:11]ProducePacketName [08:34:11]name=ofd_packets/00117318 [08:34:11]NVStorageSaveData ofd_packets/00117318 [08:34:11]File name is /storage/ofd_packets/00117318 [08:34:11]Write 301 bytes [08:34:11]NVStorageSaveData done [08:34:11]OFDSenderStorePacket done [08:34:11]KKMCreateOFDPacket done [08:34:11]NVStorageSaveData kkm_last_timestamp [08:34:11]File name is /storage/kkm_last_timestamp [08:34:11]Write 4 bytes [08:34:11]NVStorageSaveData done [08:34:11]ExternCall_PrintAddStr [08:34:11]wPrintStart [08:34:11]Write to MH i2c: 01 00 00 DA 09 E3 [08:34:11]Write i2c OK [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: 01 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: 01 07 00 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: 01 07 00 DA 09 00 00 00 00 00 FF 0F F8 [08:34:11]RasterBufferAndPrint [08:34:11]line Счет N : (1)245090 [08:34:11]line ИНН: 02508201610067 [08:34:11]line Контрольно-Кассовый Чек [08:34:11]line ПРОДАЖА [08:34:11]line ТРК (МРК, ГНК) : 21 [08:34:11]line Товар: 2710124130 [08:34:11]line Аи-92-К-2 [08:34:11]line 5.980 * 66.90 [08:34:11]line = 400.06 [08:34:11]line НДС 12% НСП 1% [08:34:11]line > о реализуемом товаре [08:34:11]line ОКРУГЛЕНИЕ: -0.06 [08:34:11]line ИТОГО: 400.00 [08:34:11]line Внесено: 400.00 [08:34:11]line СДАЧА: 0.00 [08:34:11]line НСП 1% : 3.54 [08:34:11]line НДС 12% : 42.48 [08:34:11]line Наличными: 400.00 [08:34:11]line Безнал.: 0.00 [08:34:11]line Место: АЗС № 173 "Партнер Нефть" [08:34:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:34:11]line СНО: Общий режим [08:34:11]line Чек 18 27.10.2024 08:34 [08:34:11]line Смена: 542 ФФД: 1.0 [08:34:11]line ЗНМ: 0300000115 [08:34:11]line РНМ: 0000000000091782 [08:34:11]line Версия ККМ: 001 [08:34:11]line ФМ: 0000000000871767 [08:34:11]line ФД: 117318 [08:34:11]line ФПД: 26662004862056 [08:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083412&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117318&fm=26662004862056&tin=02508201610067®Number=0000000000091782&sum=40000 [08:34:11]written 0, free lines is 4095 [08:34:11]OFD Sender: Processing packet 117318 [packets to send 75, broken 74] [08:34:11]ProducePacketName [08:34:11]name=ofd_packets/00117318 [08:34:11]OFD Sender: To server: pG, [08:34:11]CommunicateWithHost lk.salyk.kg:30040 [08:34:11]ConnectInit lk.salyk.kg [08:34:11]Connected sock=10 [08:34:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3D 24 07 01 E8 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 12 00 00 00 F4 03 04 00 04 FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 46 CA 01 00 35 04 06 00 18 3F BB 54 2C 68 48 18 3E 39 06 30 0A 7D [08:34: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 36 37 4F 00 00 00 F1 63 47 00 AF 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 36 37 10 04 04 00 46 CA 01 00 F4 03 04 00 CB A6 1D 67 B6 04 01 00 00 41 9A 73 DB 6C 4D 4A 05 [08:34:11]CommunicateWithHost err = 0 [08:34:11]CheckOFDResponse [08:34:11]1017 (14) - 77093643461234 [08:34:11]1041 (16) - 0000000000871767 [08:34:11]1040 (4) - 117318 [08:34:11]1012 (4) - 27.10.2024 02:34 [08:34:11]1206 (1) - 0 [08:34:11]OFD Sender: Remove packet 117318 [08:34:11]ProducePacketName [08:34:11]name=ofd_packets/00117318 [08:34:11]NVStorageDeleteData [08:34:11]Write to MH i2c: 01 00 00 04 0A 0E [08:34:11]Write i2c OK [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: 01 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: 01 07 00 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: 01 07 00 04 0A 00 00 00 00 00 C8 0C E9 [08:34:11]RasterBufferAndPrint [08:34:11]line [08:34:11]line [08:34:11]line [08:34:11]line [08:34:11]line [08:34:11]written 0, free lines is 3278 [08:34:11]MH_Cut [08:34:11]Write to MH i2c: D1 01 00 0B 0A 01 E7 [08:34:11]Write i2c OK [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: D1 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: D1 01 00 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: D1 01 00 0B 0A 00 E6 [08:34:11]Write to MH i2c: 01 00 00 0C 0A 16 [08:34:11]Write i2c OK [08:34:11]MH_I2C_Read... [08:34:11]OFD Sender: No OFD packet to send [08:34:12]*** Cut start [08:34:12]*** Purtial cut [08:34:12]*** Stage 1: CUTSNS_PIN = 1 [08:34:12]Read from MH i2c: 01 [08:34:12]MH_I2C_Read... [08:34:12]*** Stop cut motor [08:34:12]*** Cut end [08:34:12]Read from MH i2c: 01 07 00 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: 01 07 00 0C 0A 00 00 00 00 00 FF 0F 2B [08:34:12]process_action close_receipt done [08:34:12]requested_data is exist [08:34:12]produce_requested_data [08:34:12]requested_item fm.sn is exist - process it [08:34:12]wFMCommunicate request_size=4 [08:34:12]MH_SAM_APDU [08:34:12]CAPDU: 80 11 00 00 [08:34:12]Write to MH i2c: E2 08 00 0D 0A 80 11 00 00 00 00 00 00 91 [08:34:12]Write i2c OK [08:34:12]MH_I2C_Read... [08:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:12]Read from MH i2c: E2 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 17 00 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 17 00 0D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E8 [08:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:34:12]wFMCommunicate OK [08:34:12]requested_item fd.num is exist - process it [08:34:12]SAM_PROTO_GetFieldsCounters [08:34:12]wFMCommunicate request_size=4 [08:34:12]MH_SAM_APDU [08:34:12]CAPDU: 80 13 00 00 [08:34:12]Write to MH i2c: E2 08 00 0E 0A 80 13 00 00 00 00 00 00 94 [08:34:12]Write i2c OK [08:34:12]MH_I2C_Read... [08:34:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:12]Read from MH i2c: E2 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 62 00 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 62 00 0E 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 46 CA 01 00 0E 04 04 00 1E 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 22 [08:34:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 46 CA 01 00 0E 04 04 00 1E 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 [08:34:12]wFMCommunicate OK [08:34:12]SAM_PROTO_GetFieldsCounters done [08:34:12]requested_item shift.num is exist - process it [08:34:12]requested_item shift.opened is exist - process it [08:34:12]req_shift_opened [08:34:12]FM_GetShiftState [08:34:12]SAM_PROTO_GetShiftState [08:34:12]wFMCommunicate request_size=4 [08:34:12]MH_SAM_APDU [08:34:12]CAPDU: 80 13 01 00 [08:34:12]Write to MH i2c: E2 08 00 0F 0A 80 13 01 00 00 00 00 00 96 [08:34:12]Write i2c OK [08:34:12]MH_I2C_Read... [08:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:12]Read from MH i2c: E2 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 0E 00 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 0E 00 0F 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D5 [08:34:12]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:34:12]wFMCommunicate OK [08:34:12]SAM_PROTO_GetShiftState done [08:34:12]FM_GetShiftState done [08:34:12]req_shift_opened done [08:34:12]requested_item shift.open_date is exist - process it [08:34:12]req_shift_open_date [08:34:12]req_shift_open_date done [08:34:12]produce_requested_data done [08:34:12]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117318,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:34:12]process_action_free close_receipt [08:34:12]json_value_free [08:34:12]json_value_free done [08:34:12]process_json_proto returns [08:34:12]Send response to host [08:34:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117318,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:34:12]free response buf [08:34:12]execute_script done [08:34:12]execute_script returns [08:34:12]free content buf [08:34:12]Sock 7.Close socket [08:34:12]Sock 7.Thread stoped [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:35]accept exits with 9 [08:34:35]New connection [08:34:35]New thread 3066924388 created [08:34:35]Thread 3066781028 joined [08:34:35]Waiting for new connection... [08:34:35] Sock 9.Parse request [08:34:35]Sock 9.Check first char [08:34:35]Sock 9.First char is OK [08:34:35]request: POST /json_proto HTTP/1.0 [08:34:35]Method: POST [08:34:35]URL: /json_proto [08:34:35]Method is POST - this is cgi request [08:34:35]url: /json_proto [08:34:35]query_string will be loaded in cgi processing [08:34:35]execute_cgi json_proto POST (null) [08:34:35]execute_cgi path=json_proto method=POST [08:34:35]POST find Content-Length [08:34:35]Host: 172.17.96.67:8080 [08:34:35]Content-Length: 674 [08:34:35]Content-Type: application/json [08:34:35] [08:34:35]POST finish read [08:34:35]Found Content-Length = 674 [08:34:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [08:34:35]execute_script... [08:34:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [08:34:35]POST & json_proto [08:34:35]process_json_proto [08:34:35]json parsed OK: [08:34:35]protocol is kg_v1.0 [08:34:35]action value=close_receipt [08:34:35]process_action close_receipt [08:34:35]cmd_close_receipt [08:34:35]MH_GetDate [08:34:35]Write to MH i2c: F0 00 00 10 0A 09 [08:34:35]Write i2c OK [08:34:35]MH_I2C_Read... [08:34:35]Read from MH i2c: F0 [08:34:35]MH_I2C_Read... [08:34:35]Read from MH i2c: F0 09 00 [08:34:35]MH_I2C_Read... [08:34:35]Read from MH i2c: F0 09 00 10 0A 00 1E FB 1D 67 F7 AE 1B 67 D6 [08:34:35]GetLastDocTimeStamp 1730018052 [08:34:35]current date 1730018078 [08:34:35]FM_GetShiftState [08:34:35]SAM_PROTO_GetShiftState [08:34:35]wFMCommunicate request_size=4 [08:34:35]MH_SAM_APDU [08:34:35]CAPDU: 80 13 01 00 [08:34:35]Write to MH i2c: E2 08 00 11 0A 80 13 01 00 00 00 00 00 98 [08:34:35]Write i2c OK [08:34:35]MH_I2C_Read... [08:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:35]Read from MH i2c: E2 [08:34:35]MH_I2C_Read... [08:34:35]Read from MH i2c: E2 0E 00 [08:34:35]MH_I2C_Read... [08:34:35]Read from MH i2c: E2 0E 00 11 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D7 [08:34:35]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:34:35]wFMCommunicate OK [08:34:35]SAM_PROTO_GetShiftState done [08:34:35]FM_GetShiftState done [08:34:35]opened in 1729987372 [08:34:35]opened+sec_in_day 1730073772 [08:34:35]quantity*price = 50063 [08:34:35]sum+1 = 50064 [08:34:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 19 27.10.2024 08:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117319 ФПД: 209396428144595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083438&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117319&fm=209396428144595&tin=02508201610067®Number=0000000000091782&sum=50000 [08:34:36]StoreToDocumentArchive [08:34:36]shift 542 fd 117319 [08:34:36]save to /storage/0542/doc_00117319 [08:34:36]save last doc name /storage/0542/doc_00117319 to /storage/kkm_last_doc_name [08:34:36]save OK [08:34:36]Clear old archive folders... [08:34:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:34:36]tlvbuf is 00FE94F0 [08:34:36]SAM_PROTO_ClearQueue [08:34:36]wFMCommunicate request_size=4 [08:34:36]MH_SAM_APDU [08:34:36]CAPDU: 80 09 00 00 [08:34:36]Write to MH i2c: E2 08 00 1E 0A 80 09 00 00 00 00 00 00 9A [08:34:36]Write i2c OK [08:34:36]MH_I2C_Read... [08:34:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:36]Read from MH i2c: E2 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 03 00 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [08:34:36]RAPDU: 90 00 [08:34:36]wFMCommunicate OK [08:34:36]SAM_PROTO_ClearQueue done [08:34:36]KKMCreateOFDPacket [08:34:36]OFDProtocolAddRootSTLVToBuf [08:34:36]FM_MakeSignedData [08:34:36]FM_MakeSignedData [08:34:36]SAM_PROTO_SignData [08:34:36]wFMCommunicate request_size=4 [08:34:36]MH_SAM_APDU [08:34:36]CAPDU: 80 0D 01 02 [08:34:36]Write to MH i2c: E2 08 00 1F 0A 80 0D 01 02 00 00 00 00 A2 [08:34:36]Write i2c OK [08:34:36]MH_I2C_Read... [08:34:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:36]Read from MH i2c: E2 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 03 00 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [08:34:36]RAPDU: 90 00 [08:34:36]wFMCommunicate OK [08:34:36]wFMCommunicate request_size=255 [08:34:36]MH_SAM_APDU [08:34: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 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 13 00 00 00 F4 03 04 00 1E FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 47 CA 01 00 35 04 06 00 BE 71 E7 B7 [08:34:36]Write to MH i2c: E2 02 01 20 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 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 13 00 00 00 F4 03 04 00 1E FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 47 CA 01 00 35 04 06 00 BE 71 E7 B7 00 00 61 [08:34:36]Write i2c OK [08:34:36]MH_I2C_Read... [08:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:36]Read from MH i2c: E2 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 03 00 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [08:34:36]RAPDU: 90 00 [08:34:36]wFMCommunicate OK [08:34:36]wFMCommunicate request_size=7 [08:34:36]MH_SAM_APDU [08:34:36]CAPDU: 80 0D 02 02 02 7F D3 [08:34:36]Write to MH i2c: E2 0A 00 21 0A 80 0D 02 02 02 00 7F D3 00 00 FB [08:34:36]Write i2c OK [08:34:36]MH_I2C_Read... [08:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:36]Read from MH i2c: E2 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 03 00 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 03 00 21 0A 00 90 00 9F [08:34:36]RAPDU: 90 00 [08:34:36]wFMCommunicate OK [08:34:36]wFMCommunicate request_size=4 [08:34:36]MH_SAM_APDU [08:34:36]CAPDU: 80 0D 03 02 [08:34:36]Write to MH i2c: E2 08 00 22 0A 80 0D 03 02 00 00 00 00 A7 [08:34:36]Write i2c OK [08:34:36]MH_I2C_Read... [08:34:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:36]Read from MH i2c: E2 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 0B 00 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 0B 00 22 0A 00 85 43 84 72 36 76 6E 72 90 00 F2 [08:34:36]RAPDU: 85 43 84 72 36 76 6E 72 90 00 [08:34:36]wFMCommunicate OK [08:34:36]SAM_PROTO_SignData done [08:34:36]FM_MakeSignedData done [08:34:36]CreateOFDProtocolMessage [08:34:36]wFMCommunicate request_size=4 [08:34:36]MH_SAM_APDU [08:34:36]CAPDU: 80 11 00 00 [08:34:36]Write to MH i2c: E2 08 00 23 0A 80 11 00 00 00 00 00 00 A7 [08:34:36]Write i2c OK [08:34:36]MH_I2C_Read... [08:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:36]Read from MH i2c: E2 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 17 00 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: E2 17 00 23 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FE [08:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:34:36]wFMCommunicate OK [08:34:36]CreateOFDProtocolMessage done [08:34:36]OFDSenderStorePacket 117319 [08:34:36]StoreOFDPacket docnum=117319 [08:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 75 93 04 01 B8 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 13 00 00 00 F4 03 04 00 1E FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 47 CA 01 00 35 04 06 00 BE 71 E7 B7 7F D3 85 43 84 72 36 76 6E 72 [08:34:36]CheckFolder [08:34:36]dirname=/storage/ofd_packets [08:34:36]CheckFolder done [08:34:36]ProducePacketName [08:34:36]name=ofd_packets/00117319 [08:34:36]NVStorageSaveData ofd_packets/00117319 [08:34:36]File name is /storage/ofd_packets/00117319 [08:34:36]Write 298 bytes [08:34:36]NVStorageSaveData done [08:34:36]OFDSenderStorePacket done [08:34:36]KKMCreateOFDPacket done [08:34:36]NVStorageSaveData kkm_last_timestamp [08:34:36]File name is /storage/kkm_last_timestamp [08:34:36]Write 4 bytes [08:34:36]NVStorageSaveData done [08:34:36]ExternCall_PrintAddStr [08:34:36]wPrintStart [08:34:36]Write to MH i2c: 01 00 00 24 0A 2E [08:34:36]Write i2c OK [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: 01 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: 01 07 00 [08:34:36]MH_I2C_Read... [08:34:36]Read from MH i2c: 01 07 00 24 0A 00 00 00 00 00 FF 0F 43 [08:34:36]RasterBufferAndPrint [08:34:36]line Счет N : (1)245091 [08:34:36]line ИНН: 02508201610067 [08:34:36]line Контрольно-Кассовый Чек [08:34:36]line ПРОДАЖА [08:34:36]line ТРК (МРК, ГНК) : 13 [08:34:36]line Товар: 2710194210 [08:34:36]line ДТ-К-2 [08:34:36]line 6.570 * 76.20 [08:34:36]line = 500.63 [08:34:36]line НДС 12% НСП 1% [08:34:36]line > о реализуемом товаре [08:34:36]line ОКРУГЛЕНИЕ: -0.63 [08:34:36]line ИТОГО: 500.00 [08:34:36]line Внесено: 500.00 [08:34:36]line СДАЧА: 0.00 [08:34:36]line НСП 1% : 4.43 [08:34:36]line НДС 12% : 53.16 [08:34:36]line Наличными: 500.00 [08:34:36]line Безнал.: 0.00 [08:34:36]line Место: АЗС № 173 "Партнер Нефть" [08:34:36]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:34:36]line СНО: Общий режим [08:34:36]line Чек 19 27.10.2024 08:34 [08:34:36]line Смена: 542 ФФД: 1.0 [08:34:36]line ЗНМ: 0300000115 [08:34:36]line РНМ: 0000000000091782 [08:34:36]line Версия ККМ: 001 [08:34:36]line ФМ: 0000000000871767 [08:34:36]line ФД: 117319 [08:34:36]line ФПД: 209396428144595 [08:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083438&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117319&fm=209396428144595&tin=02508201610067®Number=0000000000091782&sum=50000 [08:34:36]written 0, free lines is 4095 [08:34:36]OFD Sender: Processing packet 117319 [packets to send 75, broken 74] [08:34:36]ProducePacketName [08:34:36]name=ofd_packets/00117319 [08:34:36]OFD Sender: To server: pG, [08:34:36]CommunicateWithHost lk.salyk.kg:30040 [08:34:36]ConnectInit lk.salyk.kg [08:34:36]Connected sock=10 [08:34: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 36 37 0C 01 00 00 75 93 04 01 B8 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 13 00 00 00 F4 03 04 00 1E FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 47 CA 01 00 35 04 06 00 BE 71 E7 B7 7F D3 85 43 84 72 36 76 6E 72 [08:34: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 36 37 4F 00 00 00 CA BA 47 00 9E 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 36 37 10 04 04 00 47 CA 01 00 F4 03 04 00 E4 A6 1D 67 B6 04 01 00 00 A3 F8 E2 3A 8C 88 49 B6 [08:34:37]CommunicateWithHost err = 0 [08:34:37]CheckOFDResponse [08:34:37]1017 (14) - 77093643461234 [08:34:37]1041 (16) - 0000000000871767 [08:34:37]1040 (4) - 117319 [08:34:37]1012 (4) - 27.10.2024 02:35 [08:34:37]1206 (1) - 0 [08:34:37]OFD Sender: Remove packet 117319 [08:34:37]ProducePacketName [08:34:37]name=ofd_packets/00117319 [08:34:37]NVStorageDeleteData [08:34:37]Write to MH i2c: 01 00 00 4E 0A 58 [08:34:37]Write i2c OK [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: 01 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: 01 07 00 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: 01 07 00 4E 0A 00 00 00 00 00 BB 0C 26 [08:34:37]RasterBufferAndPrint [08:34:37]line [08:34:37]line [08:34:37]line [08:34:37]line [08:34:37]line [08:34:37]written 0, free lines is 3266 [08:34:37]MH_Cut [08:34:37]Write to MH i2c: D1 01 00 55 0A 01 31 [08:34:37]Write i2c OK [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: D1 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: D1 01 00 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: D1 01 00 55 0A 00 30 [08:34:37]Write to MH i2c: 01 00 00 56 0A 60 [08:34:37]Write i2c OK [08:34:37]MH_I2C_Read... [08:34:37]OFD Sender: No OFD packet to send [08:34:38]*** Cut start [08:34:38]*** Purtial cut [08:34:38]*** Stage 1: CUTSNS_PIN = 1 [08:34:38]Read from MH i2c: 01 [08:34:38]MH_I2C_Read... [08:34:38]*** Stop cut motor [08:34:38]*** Cut end [08:34:38]Read from MH i2c: 01 07 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: 01 07 00 56 0A 00 00 00 00 00 FF 0F 75 [08:34:38]process_action close_receipt done [08:34:38]requested_data is exist [08:34:38]produce_requested_data [08:34:38]requested_item fm.sn is exist - process it [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 11 00 00 [08:34:38]Write to MH i2c: E2 08 00 57 0A 80 11 00 00 00 00 00 00 DB [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 17 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 17 00 57 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 32 [08:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:34:38]wFMCommunicate OK [08:34:38]requested_item fd.num is exist - process it [08:34:38]SAM_PROTO_GetFieldsCounters [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 13 00 00 [08:34:38]Write to MH i2c: E2 08 00 58 0A 80 13 00 00 00 00 00 00 DE [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 62 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 62 00 58 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 47 CA 01 00 0E 04 04 00 1E 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 70 [08:34: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 47 CA 01 00 0E 04 04 00 1E 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 [08:34:38]wFMCommunicate OK [08:34:38]SAM_PROTO_GetFieldsCounters done [08:34:38]requested_item shift.num is exist - process it [08:34:38]requested_item shift.opened is exist - process it [08:34:38]req_shift_opened [08:34:38]FM_GetShiftState [08:34:38]SAM_PROTO_GetShiftState [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 13 01 00 [08:34:38]Write to MH i2c: E2 08 00 59 0A 80 13 01 00 00 00 00 00 E0 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 0E 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 0E 00 59 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1F [08:34:38]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:34:38]wFMCommunicate OK [08:34:38]SAM_PROTO_GetShiftState done [08:34:38]FM_GetShiftState done [08:34:38]req_shift_opened done [08:34:38]requested_item shift.open_date is exist - process it [08:34:38]req_shift_open_date [08:34:38]req_shift_open_date done [08:34:38]produce_requested_data done [08:34:38]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117319,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:34:38]process_action_free close_receipt [08:34:38]json_value_free [08:34:38]json_value_free done [08:34:38]process_json_proto returns [08:34:38]Send response to host [08:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117319,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:34:38]free response buf [08:34:38]execute_script done [08:34:38]execute_script returns [08:34:38]free content buf [08:34:38]Sock 9.Close socket [08:34:38]Sock 9.Thread stoped [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:55]accept exits with 7 [08:35:55]New connection [08:35:55]New thread 3066781028 created [08:35:55]Thread 3066924388 joined [08:35:55]Waiting for new connection... [08:35:55] Sock 7.Parse request [08:35:55]Sock 7.Check first char [08:35:55]Sock 7.First char is OK [08:35:55]request: POST /json_proto HTTP/1.0 [08:35:55]Method: POST [08:35:55]URL: /json_proto [08:35:55]Method is POST - this is cgi request [08:35:55]url: /json_proto [08:35:55]query_string will be loaded in cgi processing [08:35:55]execute_cgi json_proto POST (null) [08:35:55]execute_cgi path=json_proto method=POST [08:35:55]POST find Content-Length [08:35:55]Host: 172.17.96.67:8080 [08:35:55]Content-Length: 677 [08:35:55]Content-Type: application/json [08:35:55] [08:35:55]POST finish read [08:35:55]Found Content-Length = 677 [08:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:55]execute_script... [08:35: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)245092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:55]POST & json_proto [08:35:55]process_json_proto [08:35:55]json parsed OK: [08:35:55]protocol is kg_v1.0 [08:35:55]action value=close_receipt [08:35:55]process_action close_receipt [08:35:55]cmd_close_receipt [08:35:55]MH_GetDate [08:35:55]Write to MH i2c: F0 00 00 5A 0A 53 [08:35:55]Write i2c OK [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: F0 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: F0 09 00 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: F0 09 00 5A 0A 00 6E FB 1D 67 F7 AE 1B 67 70 [08:35:55]GetLastDocTimeStamp 1730018078 [08:35:55]current date 1730018158 [08:35:55]FM_GetShiftState [08:35:55]SAM_PROTO_GetShiftState [08:35:55]wFMCommunicate request_size=4 [08:35:55]MH_SAM_APDU [08:35:55]CAPDU: 80 13 01 00 [08:35:55]Write to MH i2c: E2 08 00 5B 0A 80 13 01 00 00 00 00 00 E2 [08:35:55]Write i2c OK [08:35:55]MH_I2C_Read... [08:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:55]Read from MH i2c: E2 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: E2 0E 00 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: E2 0E 00 5B 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 21 [08:35:55]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:35:55]wFMCommunicate OK [08:35:55]SAM_PROTO_GetShiftState done [08:35:55]FM_GetShiftState done [08:35:55]opened in 1729987372 [08:35:55]opened+sec_in_day 1730073772 [08:35:55]quantity*price = 20003 [08:35:55]sum+1 = 20004 [08:35:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 20 27.10.2024 08:35 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117320 ФПД: 14666676627232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083558&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117320&fm=14666676627232&tin=02508201610067®Number=0000000000091782&sum=20000 [08:35:56]StoreToDocumentArchive [08:35:56]shift 542 fd 117320 [08:35:56]save to /storage/0542/doc_00117320 [08:35:56]save last doc name /storage/0542/doc_00117320 to /storage/kkm_last_doc_name [08:35:56]save OK [08:35:56]Clear old archive folders... [08:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:56]tlvbuf is 00FE9D60 [08:35:56]SAM_PROTO_ClearQueue [08:35:56]wFMCommunicate request_size=4 [08:35:56]MH_SAM_APDU [08:35:56]CAPDU: 80 09 00 00 [08:35:56]Write to MH i2c: E2 08 00 68 0A 80 09 00 00 00 00 00 00 E4 [08:35:56]Write i2c OK [08:35:56]MH_I2C_Read... [08:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:56]Read from MH i2c: E2 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 03 00 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [08:35:56]RAPDU: 90 00 [08:35:56]wFMCommunicate OK [08:35:56]SAM_PROTO_ClearQueue done [08:35:56]KKMCreateOFDPacket [08:35:56]OFDProtocolAddRootSTLVToBuf [08:35:56]FM_MakeSignedData [08:35:56]FM_MakeSignedData [08:35:56]SAM_PROTO_SignData [08:35:56]wFMCommunicate request_size=4 [08:35:56]MH_SAM_APDU [08:35:56]CAPDU: 80 0D 01 02 [08:35:56]Write to MH i2c: E2 08 00 69 0A 80 0D 01 02 00 00 00 00 EC [08:35:56]Write i2c OK [08:35:56]MH_I2C_Read... [08:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:56]Read from MH i2c: E2 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 03 00 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [08:35:56]RAPDU: 90 00 [08:35:56]wFMCommunicate OK [08:35:56]wFMCommunicate request_size=255 [08:35:56]MH_SAM_APDU [08:35: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 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 14 00 00 00 F4 03 04 00 6E FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 48 CA 01 00 35 04 06 00 0D [08:35:56]Write to MH i2c: E2 02 01 6A 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 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 14 00 00 00 F4 03 04 00 6E FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 48 CA 01 00 35 04 06 00 0D 00 00 81 [08:35:56]Write i2c OK [08:35:56]MH_I2C_Read... [08:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:57]Read from MH i2c: E2 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 03 00 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 03 00 6A 0A 00 90 00 E8 [08:35:57]RAPDU: 90 00 [08:35:57]wFMCommunicate OK [08:35:57]wFMCommunicate request_size=10 [08:35:57]MH_SAM_APDU [08:35:57]CAPDU: 80 0D 02 02 05 56 DA 0C E7 20 [08:35:57]Write to MH i2c: E2 0D 00 6B 0A 80 0D 02 02 05 00 56 DA 0C E7 20 00 00 3C [08:35:57]Write i2c OK [08:35:57]MH_I2C_Read... [08:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:57]Read from MH i2c: E2 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 03 00 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 03 00 6B 0A 00 90 00 E9 [08:35:57]RAPDU: 90 00 [08:35:57]wFMCommunicate OK [08:35:57]wFMCommunicate request_size=4 [08:35:57]MH_SAM_APDU [08:35:57]CAPDU: 80 0D 03 02 [08:35:57]Write to MH i2c: E2 08 00 6C 0A 80 0D 03 02 00 00 00 00 F1 [08:35:57]Write i2c OK [08:35:57]MH_I2C_Read... [08:35:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:57]Read from MH i2c: E2 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 0B 00 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 0B 00 6C 0A 00 15 22 F4 E6 3A BB E0 4A 90 00 22 [08:35:57]RAPDU: 15 22 F4 E6 3A BB E0 4A 90 00 [08:35:57]wFMCommunicate OK [08:35:57]SAM_PROTO_SignData done [08:35:57]FM_MakeSignedData done [08:35:57]CreateOFDProtocolMessage [08:35:57]wFMCommunicate request_size=4 [08:35:57]MH_SAM_APDU [08:35:57]CAPDU: 80 11 00 00 [08:35:57]Write to MH i2c: E2 08 00 6D 0A 80 11 00 00 00 00 00 00 F1 [08:35:57]Write i2c OK [08:35:57]MH_I2C_Read... [08:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:57]Read from MH i2c: E2 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 17 00 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 17 00 6D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 48 [08:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:35:57]wFMCommunicate OK [08:35:57]CreateOFDProtocolMessage done [08:35:57]OFDSenderStorePacket 117320 [08:35:57]StoreOFDPacket docnum=117320 [08:35:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 39 6E 07 01 DD 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 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 14 00 00 00 F4 03 04 00 6E FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 48 CA 01 00 35 04 06 00 0D 56 DA 0C E7 20 15 22 F4 E6 3A BB E0 4A [08:35:57]CheckFolder [08:35:57]dirname=/storage/ofd_packets [08:35:57]CheckFolder done [08:35:57]ProducePacketName [08:35:57]name=ofd_packets/00117320 [08:35:57]NVStorageSaveData ofd_packets/00117320 [08:35:57]File name is /storage/ofd_packets/00117320 [08:35:57]Write 301 bytes [08:35:57]NVStorageSaveData done [08:35:57]OFDSenderStorePacket done [08:35:57]KKMCreateOFDPacket done [08:35:57]NVStorageSaveData kkm_last_timestamp [08:35:57]File name is /storage/kkm_last_timestamp [08:35:57]Write 4 bytes [08:35:57]NVStorageSaveData done [08:35:57]ExternCall_PrintAddStr [08:35:57]wPrintStart [08:35:57]Write to MH i2c: 01 00 00 6E 0A 78 [08:35:57]Write i2c OK [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: 01 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: 01 07 00 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: 01 07 00 6E 0A 00 00 00 00 00 FF 0F 8D [08:35:57]RasterBufferAndPrint [08:35:57]line Счет N : (1)245092 [08:35:57]line ИНН: 02508201610067 [08:35:57]line Контрольно-Кассовый Чек [08:35:57]line ПРОДАЖА [08:35:57]line ТРК (МРК, ГНК) : 21 [08:35:57]line Товар: 2710124130 [08:35:57]line Аи-92-К-2 [08:35:57]line 2.990 * 66.90 [08:35:57]line = 200.03 [08:35:57]line НДС 12% НСП 1% [08:35:57]line > о реализуемом товаре [08:35:57]line ОКРУГЛЕНИЕ: -0.03 [08:35:57]line ИТОГО: 200.00 [08:35:57]line Внесено: 200.00 [08:35:57]line СДАЧА: 0.00 [08:35:57]line НСП 1% : 1.77 [08:35:57]line НДС 12% : 21.24 [08:35:57]line Наличными: 200.00 [08:35:57]line Безнал.: 0.00 [08:35:57]line Место: АЗС № 173 "Партнер Нефть" [08:35:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:35:57]line СНО: Общий режим [08:35:57]line Чек 20 27.10.2024 08:35 [08:35:57]line Смена: 542 ФФД: 1.0 [08:35:57]line ЗНМ: 0300000115 [08:35:57]line РНМ: 0000000000091782 [08:35:57]line Версия ККМ: 001 [08:35:57]line ФМ: 0000000000871767 [08:35:57]line ФД: 117320 [08:35:57]line ФПД: 14666676627232 [08:35:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083558&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117320&fm=14666676627232&tin=02508201610067®Number=0000000000091782&sum=20000 [08:35:57]written 0, free lines is 4095 [08:35:57]OFD Sender: Processing packet 117320 [packets to send 75, broken 74] [08:35:57]ProducePacketName [08:35:57]name=ofd_packets/00117320 [08:35:57]OFD Sender: To server: pG, [08:35:57]CommunicateWithHost lk.salyk.kg:30040 [08:35:57]ConnectInit lk.salyk.kg [08:35:57]Connected sock=10 [08:35: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 36 37 0F 01 00 00 39 6E 07 01 DD 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 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 14 00 00 00 F4 03 04 00 6E FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 48 CA 01 00 35 04 06 00 0D 56 DA 0C E7 20 15 22 F4 E6 3A BB E0 4A [08:35: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 36 37 4F 00 00 00 0E 33 47 00 28 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 36 37 10 04 04 00 48 CA 01 00 F4 03 04 00 35 A7 1D 67 B6 04 01 00 00 25 BB E5 25 E3 A2 D8 80 [08:35:57]CommunicateWithHost err = 0 [08:35:57]CheckOFDResponse [08:35:57]1017 (14) - 77093643461234 [08:35:57]1041 (16) - 0000000000871767 [08:35:57]1040 (4) - 117320 [08:35:57]1012 (4) - 27.10.2024 02:36 [08:35:57]1206 (1) - 0 [08:35:57]OFD Sender: Remove packet 117320 [08:35:57]ProducePacketName [08:35:57]name=ofd_packets/00117320 [08:35:57]NVStorageDeleteData [08:35:57]Write to MH i2c: 01 00 00 98 0A A2 [08:35:57]Write i2c OK [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: 01 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: 01 07 00 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: 01 07 00 98 0A 00 00 00 00 00 BB 0C 70 [08:35:57]RasterBufferAndPrint [08:35:57]line [08:35:57]line [08:35:57]line [08:35:57]line [08:35:57]line [08:35:57]written 0, free lines is 3264 [08:35:57]MH_Cut [08:35:57]Write to MH i2c: D1 01 00 9F 0A 01 7B [08:35:57]Write i2c OK [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: D1 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: D1 01 00 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: D1 01 00 9F 0A 00 7A [08:35:57]Write to MH i2c: 01 00 00 A0 0A AA [08:35:57]Write i2c OK [08:35:57]MH_I2C_Read... [08:35:58]OFD Sender: No OFD packet to send [08:35:58]*** Cut start [08:35:58]*** Purtial cut [08:35:58]*** Stage 1: CUTSNS_PIN = 1 [08:35:58]Read from MH i2c: 01 [08:35:58]MH_I2C_Read... [08:35:58]*** Stop cut motor [08:35:58]*** Cut end [08:35:58]Read from MH i2c: 01 07 00 [08:35:58]MH_I2C_Read... [08:35:58]Read from MH i2c: 01 07 00 A0 0A 00 00 00 00 00 FF 0F BF [08:35:58]process_action close_receipt done [08:35:58]requested_data is exist [08:35:58]produce_requested_data [08:35:58]requested_item fm.sn is exist - process it [08:35:58]wFMCommunicate request_size=4 [08:35:58]MH_SAM_APDU [08:35:58]CAPDU: 80 11 00 00 [08:35:58]Write to MH i2c: E2 08 00 A1 0A 80 11 00 00 00 00 00 00 25 [08:35:58]Write i2c OK [08:35:58]MH_I2C_Read... [08:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:58]Read from MH i2c: E2 [08:35:58]MH_I2C_Read... [08:35:58]Read from MH i2c: E2 17 00 [08:35:58]MH_I2C_Read... [08:35:58]Read from MH i2c: E2 17 00 A1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7C [08:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:35:58]wFMCommunicate OK [08:35:58]requested_item fd.num is exist - process it [08:35:58]SAM_PROTO_GetFieldsCounters [08:35:58]wFMCommunicate request_size=4 [08:35:58]MH_SAM_APDU [08:35:58]CAPDU: 80 13 00 00 [08:35:58]Write to MH i2c: E2 08 00 A2 0A 80 13 00 00 00 00 00 00 28 [08:35:58]Write i2c OK [08:35:58]MH_I2C_Read... [08:35:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:59]Read from MH i2c: E2 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 62 00 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 62 00 A2 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 48 CA 01 00 0E 04 04 00 1E 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 BE [08:35: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 48 CA 01 00 0E 04 04 00 1E 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 [08:35:59]wFMCommunicate OK [08:35:59]SAM_PROTO_GetFieldsCounters done [08:35:59]requested_item shift.num is exist - process it [08:35:59]requested_item shift.opened is exist - process it [08:35:59]req_shift_opened [08:35:59]FM_GetShiftState [08:35:59]SAM_PROTO_GetShiftState [08:35:59]wFMCommunicate request_size=4 [08:35:59]MH_SAM_APDU [08:35:59]CAPDU: 80 13 01 00 [08:35:59]Write to MH i2c: E2 08 00 A3 0A 80 13 01 00 00 00 00 00 2A [08:35:59]Write i2c OK [08:35:59]MH_I2C_Read... [08:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:59]Read from MH i2c: E2 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 0E 00 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 0E 00 A3 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 69 [08:35:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:35:59]wFMCommunicate OK [08:35:59]SAM_PROTO_GetShiftState done [08:35:59]FM_GetShiftState done [08:35:59]req_shift_opened done [08:35:59]requested_item shift.open_date is exist - process it [08:35:59]req_shift_open_date [08:35:59]req_shift_open_date done [08:35:59]produce_requested_data done [08:35:59]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117320,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:35:59]process_action_free close_receipt [08:35:59]json_value_free [08:35:59]json_value_free done [08:35:59]process_json_proto returns [08:35:59]Send response to host [08:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117320,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:35:59]free response buf [08:35:59]execute_script done [08:35:59]execute_script returns [08:35:59]free content buf [08:35:59]Sock 7.Close socket [08:35:59]Sock 7.Thread stoped [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:05]accept exits with 9 [08:37:05]New connection [08:37:05]New thread 3066924388 created [08:37:05]Thread 3066781028 joined [08:37:05]Waiting for new connection... [08:37:05] Sock 9.Parse request [08:37:05]Sock 9.Check first char [08:37:05]Sock 9.First char is OK [08:37:05]request: POST /json_proto HTTP/1.0 [08:37:05]Method: POST [08:37:05]URL: /json_proto [08:37:05]Method is POST - this is cgi request [08:37:05]url: /json_proto [08:37:05]query_string will be loaded in cgi processing [08:37:05]execute_cgi json_proto POST (null) [08:37:05]execute_cgi path=json_proto method=POST [08:37:05]POST find Content-Length [08:37:05]Host: 172.17.96.67:8080 [08:37:05]Content-Length: 677 [08:37:05]Content-Type: application/json [08:37:05] [08:37:05]POST finish read [08:37:05]Found Content-Length = 677 [08:37:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:37:05]execute_script... [08:37:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:37:05]POST & json_proto [08:37:05]process_json_proto [08:37:05]json parsed OK: [08:37:05]protocol is kg_v1.0 [08:37:05]action value=close_receipt [08:37:05]process_action close_receipt [08:37:05]cmd_close_receipt [08:37:05]MH_GetDate [08:37:05]Write to MH i2c: F0 00 00 A4 0A 9D [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: F0 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: F0 09 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: F0 09 00 A4 0A 00 B4 FB 1D 67 F7 AE 1B 67 00 [08:37:05]GetLastDocTimeStamp 1730018158 [08:37:05]current date 1730018228 [08:37:05]FM_GetShiftState [08:37:05]SAM_PROTO_GetShiftState [08:37:05]wFMCommunicate request_size=4 [08:37:05]MH_SAM_APDU [08:37:05]CAPDU: 80 13 01 00 [08:37:05]Write to MH i2c: E2 08 00 A5 0A 80 13 01 00 00 00 00 00 2C [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:05]Read from MH i2c: E2 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 0E 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 0E 00 A5 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6B [08:37:05]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:37:05]wFMCommunicate OK [08:37:05]SAM_PROTO_GetShiftState done [08:37:05]FM_GetShiftState done [08:37:05]opened in 1729987372 [08:37:05]opened+sec_in_day 1730073772 [08:37:05]quantity*price = 50041 [08:37:05]sum+1 = 50042 [08:37: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 21 27.10.2024 08:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117321 ФПД: 38538937952298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083708&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117321&fm=38538937952298&tin=02508201610067®Number=0000000000091782&sum=50000 [08:37:06]StoreToDocumentArchive [08:37:06]shift 542 fd 117321 [08:37:06]save to /storage/0542/doc_00117321 [08:37:06]save last doc name /storage/0542/doc_00117321 to /storage/kkm_last_doc_name [08:37:06]save OK [08:37:06]Clear old archive folders... [08:37:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:06]tlvbuf is B6F4E600 [08:37:06]SAM_PROTO_ClearQueue [08:37:06]wFMCommunicate request_size=4 [08:37:06]MH_SAM_APDU [08:37:06]CAPDU: 80 09 00 00 [08:37:06]Write to MH i2c: E2 08 00 B2 0A 80 09 00 00 00 00 00 00 2E [08:37:06]Write i2c OK [08:37:06]MH_I2C_Read... [08:37:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:06]Read from MH i2c: E2 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: E2 03 00 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [08:37:06]RAPDU: 90 00 [08:37:06]wFMCommunicate OK [08:37:06]SAM_PROTO_ClearQueue done [08:37:06]KKMCreateOFDPacket [08:37:06]OFDProtocolAddRootSTLVToBuf [08:37:06]FM_MakeSignedData [08:37:06]FM_MakeSignedData [08:37:06]SAM_PROTO_SignData [08:37:06]wFMCommunicate request_size=4 [08:37:06]MH_SAM_APDU [08:37:06]CAPDU: 80 0D 01 02 [08:37:06]Write to MH i2c: E2 08 00 B3 0A 80 0D 01 02 00 00 00 00 36 [08:37:06]Write i2c OK [08:37:06]MH_I2C_Read... [08:37:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:06]Read from MH i2c: E2 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: E2 03 00 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [08:37:06]RAPDU: 90 00 [08:37:06]wFMCommunicate OK [08:37:06]wFMCommunicate request_size=255 [08:37:06]MH_SAM_APDU [08:37:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B4 FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 49 CA 01 00 35 04 06 00 23 [08:37:06]Write to MH i2c: E2 02 01 B4 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 15 00 00 00 F4 03 04 00 B4 FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 49 CA 01 00 35 04 06 00 23 00 00 67 [08:37:06]Write i2c OK [08:37:06]MH_I2C_Read... [08:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:07]Read from MH i2c: E2 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 B4 0A 00 90 00 32 [08:37:07]RAPDU: 90 00 [08:37:07]wFMCommunicate OK [08:37:07]wFMCommunicate request_size=10 [08:37:07]MH_SAM_APDU [08:37:07]CAPDU: 80 0D 02 02 05 0D 0B B4 E8 2A [08:37:07]Write to MH i2c: E2 0D 00 B5 0A 80 0D 02 02 05 00 0D 0B B4 E8 2A 00 00 21 [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:07]Read from MH i2c: E2 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 B5 0A 00 90 00 33 [08:37:07]RAPDU: 90 00 [08:37:07]wFMCommunicate OK [08:37:07]wFMCommunicate request_size=4 [08:37:07]MH_SAM_APDU [08:37:07]CAPDU: 80 0D 03 02 [08:37:07]Write to MH i2c: E2 08 00 B6 0A 80 0D 03 02 00 00 00 00 3B [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:07]Read from MH i2c: E2 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 0B 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 0B 00 B6 0A 00 C6 6D 1B C2 C9 79 E6 47 90 00 BB [08:37:07]RAPDU: C6 6D 1B C2 C9 79 E6 47 90 00 [08:37:07]wFMCommunicate OK [08:37:07]SAM_PROTO_SignData done [08:37:07]FM_MakeSignedData done [08:37:07]CreateOFDProtocolMessage [08:37:07]wFMCommunicate request_size=4 [08:37:07]MH_SAM_APDU [08:37:07]CAPDU: 80 11 00 00 [08:37:07]Write to MH i2c: E2 08 00 B7 0A 80 11 00 00 00 00 00 00 3B [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:07]Read from MH i2c: E2 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 17 00 [08:37:07]MH_I2C_Read... [08:37:07]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 36 37 90 00 92 [08:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:37:07]wFMCommunicate OK [08:37:07]CreateOFDProtocolMessage done [08:37:07]OFDSenderStorePacket 117321 [08:37:07]StoreOFDPacket docnum=117321 [08:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C5 57 07 01 34 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B4 FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 49 CA 01 00 35 04 06 00 23 0D 0B B4 E8 2A C6 6D 1B C2 C9 79 E6 47 [08:37:07]CheckFolder [08:37:07]dirname=/storage/ofd_packets [08:37:07]CheckFolder done [08:37:07]ProducePacketName [08:37:07]name=ofd_packets/00117321 [08:37:07]NVStorageSaveData ofd_packets/00117321 [08:37:07]File name is /storage/ofd_packets/00117321 [08:37:07]Write 301 bytes [08:37:07]NVStorageSaveData done [08:37:07]OFDSenderStorePacket done [08:37:07]KKMCreateOFDPacket done [08:37:07]NVStorageSaveData kkm_last_timestamp [08:37:07]File name is /storage/kkm_last_timestamp [08:37:07]Write 4 bytes [08:37:07]NVStorageSaveData done [08:37:07]ExternCall_PrintAddStr [08:37:07]wPrintStart [08:37:07]Write to MH i2c: 01 00 00 B8 0A C2 [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: 01 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: 01 07 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: 01 07 00 B8 0A 00 00 00 00 00 FF 0F D7 [08:37:07]RasterBufferAndPrint [08:37:07]line Счет N : (1)245093 [08:37:07]line ИНН: 02508201610067 [08:37:07]line Контрольно-Кассовый Чек [08:37:07]line ПРОДАЖА [08:37:07]line ТРК (МРК, ГНК) : 21 [08:37:07]line Товар: 2710124130 [08:37:07]line Аи-92-К-2 [08:37:07]line 7.480 * 66.90 [08:37:07]line = 500.41 [08:37:07]line НДС 12% НСП 1% [08:37:07]line > о реализуемом товаре [08:37:07]line ОКРУГЛЕНИЕ: -0.41 [08:37:07]line ИТОГО: 500.00 [08:37:07]line Внесено: 500.00 [08:37:07]line СДАЧА: 0.00 [08:37:07]line НСП 1% : 4.43 [08:37:07]line НДС 12% : 53.14 [08:37:07]line Наличными: 500.00 [08:37:07]line Безнал.: 0.00 [08:37:07]line Место: АЗС № 173 "Партнер Нефть" [08:37:07]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:37:07]line СНО: Общий режим [08:37:07]line Чек 21 27.10.2024 08:37 [08:37:07]line Смена: 542 ФФД: 1.0 [08:37:07]line ЗНМ: 0300000115 [08:37:07]line РНМ: 0000000000091782 [08:37:07]line Версия ККМ: 001 [08:37:07]line ФМ: 0000000000871767 [08:37:07]line ФД: 117321 [08:37:07]line ФПД: 38538937952298 [08:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083708&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117321&fm=38538937952298&tin=02508201610067®Number=0000000000091782&sum=50000 [08:37:07]OFD Sender: Processing packet 117321 [packets to send 75, broken 74] [08:37:07]ProducePacketName [08:37:07]name=ofd_packets/00117321 [08:37:07]OFD Sender: To server: pG, [08:37:07]CommunicateWithHost lk.salyk.kg:30040 [08:37:07]ConnectInit lk.salyk.kg [08:37:07]written 0, free lines is 4095 [08:37:07]Connected sock=10 [08:37: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 36 37 0F 01 00 00 C5 57 07 01 34 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B4 FB 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 49 CA 01 00 35 04 06 00 23 0D 0B B4 E8 2A C6 6D 1B C2 C9 79 E6 47 [08:37: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 36 37 4F 00 00 00 98 90 47 00 22 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 36 37 10 04 04 00 49 CA 01 00 F4 03 04 00 7B A7 1D 67 B6 04 01 00 00 51 D1 6A 23 1F 97 30 48 [08:37:07]CommunicateWithHost err = 0 [08:37:07]CheckOFDResponse [08:37:07]1017 (14) - 77093643461234 [08:37:07]1041 (16) - 0000000000871767 [08:37:07]1040 (4) - 117321 [08:37:07]1012 (4) - 27.10.2024 02:37 [08:37:07]1206 (1) - 0 [08:37:07]OFD Sender: Remove packet 117321 [08:37:07]ProducePacketName [08:37:07]name=ofd_packets/00117321 [08:37:07]NVStorageDeleteData [08:37:07]Write to MH i2c: 01 00 00 E2 0A EC [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: 01 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: 01 07 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: 01 07 00 E2 0A 00 00 00 00 00 B1 0C B0 [08:37:07]RasterBufferAndPrint [08:37:07]line [08:37:07]line [08:37:07]line [08:37:07]line [08:37:07]line [08:37:07]written 0, free lines is 3253 [08:37:07]MH_Cut [08:37:07]Write to MH i2c: D1 01 00 E9 0A 01 C5 [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: D1 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: D1 01 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: D1 01 00 E9 0A 00 C4 [08:37:07]Write to MH i2c: 01 00 00 EA 0A F4 [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:08]OFD Sender: No OFD packet to send [08:37:08]*** Cut start [08:37:08]*** Purtial cut [08:37:08]*** Stage 1: CUTSNS_PIN = 1 [08:37:09]Read from MH i2c: 01 [08:37:09]MH_I2C_Read... [08:37:09]*** Stop cut motor [08:37:09]*** Cut end [08:37:09]Read from MH i2c: 01 07 00 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: 01 07 00 EA 0A 00 00 00 00 00 FF 0F 09 [08:37:09]process_action close_receipt done [08:37:09]requested_data is exist [08:37:09]produce_requested_data [08:37:09]requested_item fm.sn is exist - process it [08:37:09]wFMCommunicate request_size=4 [08:37:09]MH_SAM_APDU [08:37:09]CAPDU: 80 11 00 00 [08:37:09]Write to MH i2c: E2 08 00 EB 0A 80 11 00 00 00 00 00 00 6F [08:37:09]Write i2c OK [08:37:09]MH_I2C_Read... [08:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:09]Read from MH i2c: E2 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 17 00 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 17 00 EB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C6 [08:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:37:09]wFMCommunicate OK [08:37:09]requested_item fd.num is exist - process it [08:37:09]SAM_PROTO_GetFieldsCounters [08:37:09]wFMCommunicate request_size=4 [08:37:09]MH_SAM_APDU [08:37:09]CAPDU: 80 13 00 00 [08:37:09]Write to MH i2c: E2 08 00 EC 0A 80 13 00 00 00 00 00 00 72 [08:37:09]Write i2c OK [08:37:09]MH_I2C_Read... [08:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:09]Read from MH i2c: E2 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 62 00 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 62 00 EC 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 49 CA 01 00 0E 04 04 00 1E 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 0C [08:37: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 49 CA 01 00 0E 04 04 00 1E 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 [08:37:09]wFMCommunicate OK [08:37:09]SAM_PROTO_GetFieldsCounters done [08:37:09]requested_item shift.num is exist - process it [08:37:09]requested_item shift.opened is exist - process it [08:37:09]req_shift_opened [08:37:09]FM_GetShiftState [08:37:09]SAM_PROTO_GetShiftState [08:37:09]wFMCommunicate request_size=4 [08:37:09]MH_SAM_APDU [08:37:09]CAPDU: 80 13 01 00 [08:37:09]Write to MH i2c: E2 08 00 ED 0A 80 13 01 00 00 00 00 00 74 [08:37:09]Write i2c OK [08:37:09]MH_I2C_Read... [08:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:09]Read from MH i2c: E2 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 0E 00 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 0E 00 ED 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B3 [08:37:09]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:37:09]wFMCommunicate OK [08:37:09]SAM_PROTO_GetShiftState done [08:37:09]FM_GetShiftState done [08:37:09]req_shift_opened done [08:37:09]requested_item shift.open_date is exist - process it [08:37:09]req_shift_open_date [08:37:09]req_shift_open_date done [08:37:09]produce_requested_data done [08:37:09]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117321,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:37:09]process_action_free close_receipt [08:37:09]json_value_free [08:37:09]json_value_free done [08:37:09]process_json_proto returns [08:37:09]Send response to host [08:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117321,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:37:09]free response buf [08:37:09]execute_script done [08:37:09]execute_script returns [08:37:09]free content buf [08:37:09]Sock 9.Close socket [08:37:09]Sock 9.Thread stoped [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:39:59]accept exits with 7 [08:39:59]New connection [08:39:59]New thread 3066781028 created [08:39:59]Thread 3066924388 joined [08:39:59]Waiting for new connection... [08:39:59] Sock 7.Parse request [08:39:59]Sock 7.Check first char [08:39:59]Sock 7.First char is OK [08:39:59]request: POST /json_proto HTTP/1.0 [08:39:59]Method: POST [08:39:59]URL: /json_proto [08:39:59]Method is POST - this is cgi request [08:39:59]url: /json_proto [08:39:59]query_string will be loaded in cgi processing [08:39:59]execute_cgi json_proto POST (null) [08:39:59]execute_cgi path=json_proto method=POST [08:39:59]POST find Content-Length [08:39:59]Host: 172.17.96.67:8080 [08:39:59]Content-Length: 769 [08:39:59]Content-Type: application/json [08:39:59] [08:39:59]POST finish read [08:39:59]Found Content-Length = 769 [08:39:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [08:39:59]execute_script... [08: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)245094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [08:39:59]POST & json_proto [08:39:59]process_json_proto [08:39:59]json parsed OK: [08:39:59]protocol is kg_v1.0 [08:39:59]action value=close_receipt [08:39:59]process_action close_receipt [08:39:59]cmd_close_receipt [08:39:59]MH_GetDate [08:39:59]Write to MH i2c: F0 00 00 EE 0A E7 [08:39:59]Write i2c OK [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: F0 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: F0 09 00 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: F0 09 00 EE 0A 00 62 FC 1D 67 F7 AE 1B 67 F9 [08:39:59]GetLastDocTimeStamp 1730018228 [08:39:59]current date 1730018402 [08:39:59]FM_GetShiftState [08:39:59]SAM_PROTO_GetShiftState [08:39:59]wFMCommunicate request_size=4 [08:39:59]MH_SAM_APDU [08:39:59]CAPDU: 80 13 01 00 [08:39:59]Write to MH i2c: E2 08 00 EF 0A 80 13 01 00 00 00 00 00 76 [08:39:59]Write i2c OK [08:39:59]MH_I2C_Read... [08:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:59]Read from MH i2c: E2 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: E2 0E 00 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: E2 0E 00 EF 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B5 [08:39:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:39:59]wFMCommunicate OK [08:39:59]SAM_PROTO_GetShiftState done [08:39:59]FM_GetShiftState done [08:39:59]opened in 1729987372 [08:39:59]opened+sec_in_day 1730073772 [08:39:59]quantity*price = 120018 [08:39:59]sum+1 = 120020 [08:39:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.19 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.19 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 22 27.10.2024 08:40 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117322 ФПД: 151809105530307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084002&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117322&fm=151809105530307&tin=02508201610067®Number=0000000000091782&sum=120019 [08:40:00]StoreToDocumentArchive [08:40:00]shift 542 fd 117322 [08:40:00]save to /storage/0542/doc_00117322 [08:40:00]save last doc name /storage/0542/doc_00117322 to /storage/kkm_last_doc_name [08:40:00]save OK [08:40:00]Clear old archive folders... [08:40:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:00]tlvbuf is 01008BF0 [08:40:00]SAM_PROTO_ClearQueue [08:40:00]wFMCommunicate request_size=4 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 09 00 00 [08:40:00]Write to MH i2c: E2 08 00 FC 0A 80 09 00 00 00 00 00 00 78 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [08:40:00]RAPDU: 90 00 [08:40:00]wFMCommunicate OK [08:40:00]SAM_PROTO_ClearQueue done [08:40:00]KKMCreateOFDPacket [08:40:00]OFDProtocolAddRootSTLVToBuf [08:40:00]FM_MakeSignedData [08:40:00]FM_MakeSignedData [08:40:00]SAM_PROTO_SignData [08:40:00]wFMCommunicate request_size=4 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 0D 01 02 [08:40:00]Write to MH i2c: E2 08 00 FD 0A 80 0D 01 02 00 00 00 00 80 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [08:40:00]RAPDU: 90 00 [08:40:00]wFMCommunicate OK [08:40:00]wFMCommunicate request_size=255 [08:40:00]MH_SAM_APDU [08:40: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 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 16 00 00 00 F4 03 04 00 62 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4A CA 01 00 35 04 06 00 8A [08:40:00]Write to MH i2c: E2 02 01 FE 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 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 16 00 00 00 F4 03 04 00 62 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4A CA 01 00 35 04 06 00 8A 00 00 F6 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 FE 0A 00 90 00 7C [08:40:01]RAPDU: 90 00 [08:40:01]wFMCommunicate OK [08:40:01]wFMCommunicate request_size=10 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 0D 02 02 05 11 CF CF 0D C3 [08:40:01]Write to MH i2c: E2 0D 00 FF 0A 80 0D 02 02 05 00 11 CF CF 0D C3 00 00 0C [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 FF 0A 00 90 00 7D [08:40:01]RAPDU: 90 00 [08:40:01]wFMCommunicate OK [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 0D 03 02 [08:40:01]Write to MH i2c: E2 08 00 00 0B 80 0D 03 02 00 00 00 00 86 [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 0B 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 0B 00 00 0B 00 5B B8 C7 9C 32 0D C7 96 90 00 99 [08:40:01]RAPDU: 5B B8 C7 9C 32 0D C7 96 90 00 [08:40:01]wFMCommunicate OK [08:40:01]SAM_PROTO_SignData done [08:40:01]FM_MakeSignedData done [08:40:01]CreateOFDProtocolMessage [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 11 00 00 [08:40:01]Write to MH i2c: E2 08 00 01 0B 80 11 00 00 00 00 00 00 86 [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 17 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 17 00 01 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DD [08:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:40:01]wFMCommunicate OK [08:40:01]CreateOFDProtocolMessage done [08:40:01]OFDSenderStorePacket 117322 [08:40:01]StoreOFDPacket docnum=117322 [08:40:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C6 37 07 01 80 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 62 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4A CA 01 00 35 04 06 00 8A 11 CF CF 0D C3 5B B8 C7 9C 32 0D C7 96 [08:40:01]CheckFolder [08:40:01]dirname=/storage/ofd_packets [08:40:01]CheckFolder done [08:40:01]ProducePacketName [08:40:01]name=ofd_packets/00117322 [08:40:01]NVStorageSaveData ofd_packets/00117322 [08:40:01]File name is /storage/ofd_packets/00117322 [08:40:01]Write 301 bytes [08:40:01]NVStorageSaveData done [08:40:01]OFDSenderStorePacket done [08:40:01]KKMCreateOFDPacket done [08:40:01]NVStorageSaveData kkm_last_timestamp [08:40:01]File name is /storage/kkm_last_timestamp [08:40:01]Write 4 bytes [08:40:01]NVStorageSaveData done [08:40:01]ExternCall_PrintAddStr [08:40:01]wPrintStart [08:40:01]Write to MH i2c: 01 00 00 02 0B 0D [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: 01 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: 01 07 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: 01 07 00 02 0B 00 00 00 00 00 FF 0F 22 [08:40:01]RasterBufferAndPrint [08:40:01]line Счет N : (1)245094 [08:40:01]line ИНН: 02508201610067 [08:40:01]line Контрольно-Кассовый Чек [08:40:01]line ПРОДАЖА [08:40:01]line ТРК (МРК, ГНК) : 11 [08:40:01]line Товар: 2710124130 [08:40:01]line Аи-92-К-2 [08:40:01]line 17.940 * 66.90 [08:40:01]line = 1200.19 [08:40:01]line НДС 12% НСП 1% [08:40:01]line > о реализуемом товаре [08:40:01]line ИТОГО: 1200.19 [08:40:01]line НСП 1% : 10.62 [08:40:01]line НДС 12% : 127.45 [08:40:01]line Наличными: 0.00 [08:40:01]line Безнал.: 1200.19 [08:40:01]line Место: АЗС № 173 "Партнер Нефть" [08:40:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:40:01]line СНО: Общий режим [08:40:01]line Чек 22 27.10.2024 08:40 [08:40:01]line Смена: 542 ФФД: 1.0 [08:40:01]line ЗНМ: 0300000115 [08:40:01]line РНМ: 0000000000091782 [08:40:01]line Версия ККМ: 001 [08:40:01]line Платежная система: Mbank [08:40:01]line ФМ: 0000000000871767 [08:40:01]line ФД: 117322 [08:40:01]line ФПД: 151809105530307 [08:40:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084002&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117322&fm=151809105530307&tin=02508201610067®Number=0000000000091782&sum=120019 [08:40:01]OFD Sender: Processing packet 117322 [packets to send 75, broken 74] [08:40:01]ProducePacketName [08:40:01]name=ofd_packets/00117322 [08:40:01]OFD Sender: To server: pG, [08:40:01]CommunicateWithHost lk.salyk.kg:30040 [08:40:01]ConnectInit lk.salyk.kg [08:40:01]written 0, free lines is 4095 [08:40:01]Connected sock=10 [08: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 36 37 0F 01 00 00 C6 37 07 01 80 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 62 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4A CA 01 00 35 04 06 00 8A 11 CF CF 0D C3 5B B8 C7 9C 32 0D C7 96 [08:40: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 36 37 4F 00 00 00 5F 94 47 00 3D 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 36 37 10 04 04 00 4A CA 01 00 F4 03 04 00 29 A8 1D 67 B6 04 01 00 00 54 21 F8 2F F7 86 78 64 [08:40:02]CommunicateWithHost err = 0 [08:40:02]CheckOFDResponse [08:40:02]1017 (14) - 77093643461234 [08:40:02]1041 (16) - 0000000000871767 [08:40:02]1040 (4) - 117322 [08:40:02]1012 (4) - 27.10.2024 02:40 [08:40:02]1206 (1) - 0 [08:40:02]OFD Sender: Remove packet 117322 [08:40:02]ProducePacketName [08:40:02]name=ofd_packets/00117322 [08:40:02]NVStorageDeleteData [08:40:02]Write to MH i2c: 01 00 00 2A 0B 35 [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: 01 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: 01 07 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: 01 07 00 2A 0B 00 00 00 00 00 E6 0C 2E [08:40:02]RasterBufferAndPrint [08:40:02]line [08:40:02]line [08:40:02]line [08:40:02]line [08:40:02]line [08:40:02]written 0, free lines is 3306 [08:40:02]MH_Cut [08:40:02]Write to MH i2c: D1 01 00 31 0B 01 0E [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: D1 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: D1 01 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: D1 01 00 31 0B 00 0D [08:40:02]Write to MH i2c: 01 00 00 32 0B 3D [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]OFD Sender: No OFD packet to send [08:40:02]*** Cut start [08:40:02]*** Purtial cut [08:40:02]*** Stage 1: CUTSNS_PIN = 1 [08:40:03]Read from MH i2c: 01 [08:40:03]MH_I2C_Read... [08:40:03]*** Stop cut motor [08:40:03]*** Cut end [08:40:03]Read from MH i2c: 01 07 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 FF 0F 52 [08:40:03]process_action close_receipt done [08:40:03]requested_data is exist [08:40:03]produce_requested_data [08:40:03]requested_item fm.sn is exist - process it [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 11 00 00 [08:40:03]Write to MH i2c: E2 08 00 33 0B 80 11 00 00 00 00 00 00 B8 [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 17 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 17 00 33 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0F [08:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:40:03]wFMCommunicate OK [08:40:03]requested_item fd.num is exist - process it [08:40:03]SAM_PROTO_GetFieldsCounters [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 13 00 00 [08:40:03]Write to MH i2c: E2 08 00 34 0B 80 13 00 00 00 00 00 00 BB [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 62 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 62 00 34 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4A CA 01 00 0E 04 04 00 1E 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 59 [08:40: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4A CA 01 00 0E 04 04 00 1E 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 [08:40:03]wFMCommunicate OK [08:40:03]SAM_PROTO_GetFieldsCounters done [08:40:03]requested_item shift.num is exist - process it [08:40:03]requested_item shift.opened is exist - process it [08:40:03]req_shift_opened [08:40:03]FM_GetShiftState [08:40:03]SAM_PROTO_GetShiftState [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 13 01 00 [08:40:03]Write to MH i2c: E2 08 00 35 0B 80 13 01 00 00 00 00 00 BD [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 0E 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 0E 00 35 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FC [08:40:03]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:40:03]wFMCommunicate OK [08:40:03]SAM_PROTO_GetShiftState done [08:40:03]FM_GetShiftState done [08:40:03]req_shift_opened done [08:40:03]requested_item shift.open_date is exist - process it [08:40:03]req_shift_open_date [08:40:03]req_shift_open_date done [08:40:03]produce_requested_data done [08:40:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117322,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:40:03]process_action_free close_receipt [08:40:03]json_value_free [08:40:03]json_value_free done [08:40:03]process_json_proto returns [08:40:03]Send response to host [08:40:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117322,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:40:03]free response buf [08:40:03]execute_script done [08:40:03]execute_script returns [08:40:03]free content buf [08:40:03]Sock 7.Close socket [08:40:03]Sock 7.Thread stoped [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:37]accept exits with 9 [08:40:37]New connection [08:40:37]New thread 3066924388 created [08:40:37]Thread 3066781028 joined [08:40:37]Waiting for new connection... [08:40:37] Sock 9.Parse request [08:40:37]Sock 9.Check first char [08:40:37]Sock 9.First char is OK [08:40:37]request: POST /json_proto HTTP/1.0 [08:40:37]Method: POST [08:40:37]URL: /json_proto [08:40:37]Method is POST - this is cgi request [08:40:37]url: /json_proto [08:40:37]query_string will be loaded in cgi processing [08:40:37]execute_cgi json_proto POST (null) [08:40:37]execute_cgi path=json_proto method=POST [08:40:37]POST find Content-Length [08:40:37]Host: 172.17.96.67:8080 [08:40:37]Content-Length: 677 [08:40:37]Content-Type: application/json [08:40:37] [08:40:37]POST finish read [08:40:37]Found Content-Length = 677 [08:40:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:40:37]execute_script... [08:40: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)245095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:40:37]POST & json_proto [08:40:37]process_json_proto [08:40:37]json parsed OK: [08:40:37]protocol is kg_v1.0 [08:40:37]action value=close_receipt [08:40:37]process_action close_receipt [08:40:37]cmd_close_receipt [08:40:37]MH_GetDate [08:40:37]Write to MH i2c: F0 00 00 36 0B 30 [08:40:37]Write i2c OK [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: F0 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: F0 09 00 [08:40:37]MH_I2C_Read... [08:40:37]Read from MH i2c: F0 09 00 36 0B 00 88 FC 1D 67 F7 AE 1B 67 68 [08:40:37]GetLastDocTimeStamp 1730018402 [08:40:37]current date 1730018440 [08:40:37]FM_GetShiftState [08:40:37]SAM_PROTO_GetShiftState [08:40:37]wFMCommunicate request_size=4 [08:40:37]MH_SAM_APDU [08:40:37]CAPDU: 80 13 01 00 [08:40:37]Write to MH i2c: E2 08 00 37 0B 80 13 01 00 00 00 00 00 BF [08:40:37]Write i2c OK [08:40:37]MH_I2C_Read... [08:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:38]Read from MH i2c: E2 [08:40:38]MH_I2C_Read... [08:40:38]Read from MH i2c: E2 0E 00 [08:40:38]MH_I2C_Read... [08:40:38]Read from MH i2c: E2 0E 00 37 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FE [08:40:38]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:40:38]wFMCommunicate OK [08:40:38]SAM_PROTO_GetShiftState done [08:40:38]FM_GetShiftState done [08:40:38]opened in 1729987372 [08:40:38]opened+sec_in_day 1730073772 [08:40:38]quantity*price = 30038 [08:40:38]sum+1 = 30039 [08:40:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 23 27.10.2024 08:40 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117323 ФПД: 265820806946730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084040&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117323&fm=265820806946730&tin=02508201610067®Number=0000000000091782&sum=30000 [08:40:39]StoreToDocumentArchive [08:40:39]shift 542 fd 117323 [08:40:39]save to /storage/0542/doc_00117323 [08:40:39]save last doc name /storage/0542/doc_00117323 to /storage/kkm_last_doc_name [08:40:39]save OK [08:40:39]Clear old archive folders... [08:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:39]tlvbuf is 00FDA740 [08:40:39]SAM_PROTO_ClearQueue [08:40:39]wFMCommunicate request_size=4 [08:40:39]MH_SAM_APDU [08:40:39]CAPDU: 80 09 00 00 [08:40:39]Write to MH i2c: E2 08 00 44 0B 80 09 00 00 00 00 00 00 C1 [08:40:39]Write i2c OK [08:40:39]MH_I2C_Read... [08:40:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:39]Read from MH i2c: E2 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 03 00 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [08:40:39]RAPDU: 90 00 [08:40:39]wFMCommunicate OK [08:40:39]SAM_PROTO_ClearQueue done [08:40:39]KKMCreateOFDPacket [08:40:39]OFDProtocolAddRootSTLVToBuf [08:40:39]FM_MakeSignedData [08:40:39]FM_MakeSignedData [08:40:39]SAM_PROTO_SignData [08:40:39]wFMCommunicate request_size=4 [08:40:39]MH_SAM_APDU [08:40:39]CAPDU: 80 0D 01 02 [08:40:39]Write to MH i2c: E2 08 00 45 0B 80 0D 01 02 00 00 00 00 C9 [08:40:39]Write i2c OK [08:40:39]MH_I2C_Read... [08:40:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:39]Read from MH i2c: E2 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 03 00 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [08:40:39]RAPDU: 90 00 [08:40:39]wFMCommunicate OK [08:40:39]wFMCommunicate request_size=255 [08:40:39]MH_SAM_APDU [08:40: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 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 17 00 00 00 F4 03 04 00 88 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4B CA 01 00 35 04 06 00 F1 [08:40:39]Write to MH i2c: E2 02 01 46 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 17 00 00 00 F4 03 04 00 88 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4B CA 01 00 35 04 06 00 F1 00 00 95 [08:40:39]Write i2c OK [08:40:39]MH_I2C_Read... [08:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:39]Read from MH i2c: E2 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 03 00 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [08:40:39]RAPDU: 90 00 [08:40:39]wFMCommunicate OK [08:40:39]wFMCommunicate request_size=10 [08:40:39]MH_SAM_APDU [08:40:39]CAPDU: 80 0D 02 02 05 C3 3A C5 9F AA [08:40:39]Write to MH i2c: E2 0D 00 47 0B 80 0D 02 02 05 00 C3 3A C5 9F AA 00 00 E1 [08:40:39]Write i2c OK [08:40:39]MH_I2C_Read... [08:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:39]Read from MH i2c: E2 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 03 00 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [08:40:39]RAPDU: 90 00 [08:40:39]wFMCommunicate OK [08:40:39]wFMCommunicate request_size=4 [08:40:39]MH_SAM_APDU [08:40:39]CAPDU: 80 0D 03 02 [08:40:39]Write to MH i2c: E2 08 00 48 0B 80 0D 03 02 00 00 00 00 CE [08:40:39]Write i2c OK [08:40:39]MH_I2C_Read... [08:40:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:39]Read from MH i2c: E2 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 0B 00 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 0B 00 48 0B 00 9E 9B 14 AD 42 3A A6 0D 90 00 F8 [08:40:39]RAPDU: 9E 9B 14 AD 42 3A A6 0D 90 00 [08:40:39]wFMCommunicate OK [08:40:39]SAM_PROTO_SignData done [08:40:39]FM_MakeSignedData done [08:40:39]CreateOFDProtocolMessage [08:40:39]wFMCommunicate request_size=4 [08:40:39]MH_SAM_APDU [08:40:39]CAPDU: 80 11 00 00 [08:40:39]Write to MH i2c: E2 08 00 49 0B 80 11 00 00 00 00 00 00 CE [08:40:39]Write i2c OK [08:40:39]MH_I2C_Read... [08:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:39]Read from MH i2c: E2 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 17 00 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 17 00 49 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 25 [08:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:40:39]wFMCommunicate OK [08:40:39]CreateOFDProtocolMessage done [08:40:39]OFDSenderStorePacket 117323 [08:40:39]StoreOFDPacket docnum=117323 [08:40:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3D B4 07 01 E0 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 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 17 00 00 00 F4 03 04 00 88 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4B CA 01 00 35 04 06 00 F1 C3 3A C5 9F AA 9E 9B 14 AD 42 3A A6 0D [08:40:39]CheckFolder [08:40:39]dirname=/storage/ofd_packets [08:40:39]CheckFolder done [08:40:39]ProducePacketName [08:40:39]name=ofd_packets/00117323 [08:40:39]NVStorageSaveData ofd_packets/00117323 [08:40:39]File name is /storage/ofd_packets/00117323 [08:40:39]Write 301 bytes [08:40:39]NVStorageSaveData done [08:40:39]OFDSenderStorePacket done [08:40:39]KKMCreateOFDPacket done [08:40:39]NVStorageSaveData kkm_last_timestamp [08:40:39]File name is /storage/kkm_last_timestamp [08:40:39]Write 4 bytes [08:40:39]NVStorageSaveData done [08:40:39]ExternCall_PrintAddStr [08:40:39]wPrintStart [08:40:39]Write to MH i2c: 01 00 00 4A 0B 55 [08:40:39]Write i2c OK [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: 01 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: 01 07 00 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: 01 07 00 4A 0B 00 00 00 00 00 FF 0F 6A [08:40:39]RasterBufferAndPrint [08:40:39]line Счет N : (1)245095 [08:40:39]line ИНН: 02508201610067 [08:40:39]line Контрольно-Кассовый Чек [08:40:39]line ПРОДАЖА [08:40:39]line ТРК (МРК, ГНК) : 21 [08:40:39]line Товар: 2710124130 [08:40:39]line Аи-92-К-2 [08:40:39]line 4.490 * 66.90 [08:40:39]line = 300.38 [08:40:39]line НДС 12% НСП 1% [08:40:39]line > о реализуемом товаре [08:40:39]line ОКРУГЛЕНИЕ: -0.38 [08:40:39]line ИТОГО: 300.00 [08:40:39]line Внесено: 300.00 [08:40:39]line СДАЧА: 0.00 [08:40:39]line НСП 1% : 2.66 [08:40:39]line НДС 12% : 31.90 [08:40:39]line Наличными: 300.00 [08:40:39]line Безнал.: 0.00 [08:40:39]line Место: АЗС № 173 "Партнер Нефть" [08:40:39]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:40:39]line СНО: Общий режим [08:40:39]line Чек 23 27.10.2024 08:40 [08:40:39]line Смена: 542 ФФД: 1.0 [08:40:39]line ЗНМ: 0300000115 [08:40:39]line РНМ: 0000000000091782 [08:40:39]line Версия ККМ: 001 [08:40:39]line ФМ: 0000000000871767 [08:40:39]line ФД: 117323 [08:40:39]line ФПД: 265820806946730 [08:40:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084040&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117323&fm=265820806946730&tin=02508201610067®Number=0000000000091782&sum=30000 [08:40:40]OFD Sender: Processing packet 117323 [packets to send 75, broken 74] [08:40:40]ProducePacketName [08:40:40]name=ofd_packets/00117323 [08:40:40]OFD Sender: To server: pG, [08:40:40]CommunicateWithHost lk.salyk.kg:30040 [08:40:40]ConnectInit lk.salyk.kg [08:40:40]written 0, free lines is 4095 [08:40:40]Connected sock=10 [08:40: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 36 37 0F 01 00 00 3D B4 07 01 E0 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 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 17 00 00 00 F4 03 04 00 88 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4B CA 01 00 35 04 06 00 F1 C3 3A C5 9F AA 9E 9B 14 AD 42 3A A6 0D [08:40: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 36 37 4F 00 00 00 34 B8 47 00 69 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 36 37 10 04 04 00 4B CA 01 00 F4 03 04 00 50 A8 1D 67 B6 04 01 00 00 4D A8 48 47 AA 0A BB 03 [08:40:40]CommunicateWithHost err = 0 [08:40:40]CheckOFDResponse [08:40:40]1017 (14) - 77093643461234 [08:40:40]1041 (16) - 0000000000871767 [08:40:40]1040 (4) - 117323 [08:40:40]1012 (4) - 27.10.2024 02:41 [08:40:40]1206 (1) - 0 [08:40:40]OFD Sender: Remove packet 117323 [08:40:40]ProducePacketName [08:40:40]name=ofd_packets/00117323 [08:40:40]NVStorageDeleteData [08:40:40]Write to MH i2c: 01 00 00 74 0B 7F [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: 01 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: 01 07 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: 01 07 00 74 0B 00 00 00 00 00 C0 0C 52 [08:40:40]RasterBufferAndPrint [08:40:40]line [08:40:40]line [08:40:40]line [08:40:40]line [08:40:40]line [08:40:40]written 0, free lines is 3270 [08:40:40]MH_Cut [08:40:40]Write to MH i2c: D1 01 00 7B 0B 01 58 [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: D1 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: D1 01 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: D1 01 00 7B 0B 00 57 [08:40:40]Write to MH i2c: 01 00 00 7C 0B 87 [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]OFD Sender: No OFD packet to send [08:40:41]*** Cut start [08:40:41]*** Purtial cut [08:40:41]*** Stage 1: CUTSNS_PIN = 1 [08:40:41]Read from MH i2c: 01 [08:40:41]MH_I2C_Read... [08:40:41]*** Stop cut motor [08:40:41]*** Cut end [08:40:41]Read from MH i2c: 01 07 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: 01 07 00 7C 0B 00 00 00 00 00 FF 0F 9C [08:40:41]process_action close_receipt done [08:40:41]requested_data is exist [08:40:41]produce_requested_data [08:40:41]requested_item fm.sn is exist - process it [08:40:41]wFMCommunicate request_size=4 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 11 00 00 [08:40:41]Write to MH i2c: E2 08 00 7D 0B 80 11 00 00 00 00 00 00 02 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 17 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 17 00 7D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 59 [08:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:40:41]wFMCommunicate OK [08:40:41]requested_item fd.num is exist - process it [08:40:41]SAM_PROTO_GetFieldsCounters [08:40:41]wFMCommunicate request_size=4 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 13 00 00 [08:40:41]Write to MH i2c: E2 08 00 7E 0B 80 13 00 00 00 00 00 00 05 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 62 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 62 00 7E 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4B CA 01 00 0E 04 04 00 1E 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 A7 [08:40: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4B CA 01 00 0E 04 04 00 1E 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 [08:40:41]wFMCommunicate OK [08:40:41]SAM_PROTO_GetFieldsCounters done [08:40:41]requested_item shift.num is exist - process it [08:40:41]requested_item shift.opened is exist - process it [08:40:41]req_shift_opened [08:40:41]FM_GetShiftState [08:40:41]SAM_PROTO_GetShiftState [08:40:41]wFMCommunicate request_size=4 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 13 01 00 [08:40:41]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 0E 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 46 [08:40:41]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:40:41]wFMCommunicate OK [08:40:41]SAM_PROTO_GetShiftState done [08:40:41]FM_GetShiftState done [08:40:41]req_shift_opened done [08:40:41]requested_item shift.open_date is exist - process it [08:40:41]req_shift_open_date [08:40:41]req_shift_open_date done [08:40:41]produce_requested_data done [08:40:41]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117323,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:40:41]process_action_free close_receipt [08:40:41]json_value_free [08:40:41]json_value_free done [08:40:41]process_json_proto returns [08:40:41]Send response to host [08:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117323,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:40:41]free response buf [08:40:41]execute_script done [08:40:41]execute_script returns [08:40:41]free content buf [08:40:41]Sock 9.Close socket [08:40:41]Sock 9.Thread stoped [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:22]accept exits with 7 [08:42:22]New connection [08:42:22]New thread 3066781028 created [08:42:22]Thread 3066924388 joined [08:42:22]Waiting for new connection... [08:42:22] Sock 7.Parse request [08:42:22]Sock 7.Check first char [08:42:22]Sock 7.First char is OK [08:42:22]request: POST /json_proto HTTP/1.0 [08:42:22]Method: POST [08:42:22]URL: /json_proto [08:42:22]Method is POST - this is cgi request [08:42:22]url: /json_proto [08:42:22]query_string will be loaded in cgi processing [08:42:22]execute_cgi json_proto POST (null) [08:42:22]execute_cgi path=json_proto method=POST [08:42:22]POST find Content-Length [08:42:22]Host: 172.17.96.67:8080 [08:42:22]Content-Length: 675 [08:42:22]Content-Type: application/json [08:42:22] [08:42:22]POST finish read [08:42:22]Found Content-Length = 675 [08:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [08:42:22]execute_script... [08:42:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [08:42:22]POST & json_proto [08:42:22]process_json_proto [08:42:22]json parsed OK: [08:42:22]protocol is kg_v1.0 [08:42:22]action value=close_receipt [08:42:22]process_action close_receipt [08:42:22]cmd_close_receipt [08:42:22]MH_GetDate [08:42:22]Write to MH i2c: F0 00 00 80 0B 7A [08:42:22]Write i2c OK [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: F0 [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: F0 09 00 [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: F0 09 00 80 0B 00 F1 FC 1D 67 F7 AE 1B 67 1B [08:42:22]GetLastDocTimeStamp 1730018440 [08:42:22]current date 1730018545 [08:42:22]FM_GetShiftState [08:42:22]SAM_PROTO_GetShiftState [08:42:22]wFMCommunicate request_size=4 [08:42:22]MH_SAM_APDU [08:42:22]CAPDU: 80 13 01 00 [08:42:22]Write to MH i2c: E2 08 00 81 0B 80 13 01 00 00 00 00 00 09 [08:42:22]Write i2c OK [08:42:22]MH_I2C_Read... [08:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:22]Read from MH i2c: E2 [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: E2 0E 00 [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: E2 0E 00 81 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 48 [08:42:22]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:42:22]wFMCommunicate OK [08:42:22]SAM_PROTO_GetShiftState done [08:42:22]FM_GetShiftState done [08:42:22]opened in 1729987372 [08:42:22]opened+sec_in_day 1730073772 [08:42:22]quantity*price = 80010 [08:42:22]sum+1 = 80011 [08:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 24 27.10.2024 08:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117324 ФПД: 108065995606506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084225&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117324&fm=108065995606506&tin=02508201610067®Number=0000000000091782&sum=80000 [08:42:23]StoreToDocumentArchive [08:42:23]shift 542 fd 117324 [08:42:23]save to /storage/0542/doc_00117324 [08:42:23]save last doc name /storage/0542/doc_00117324 to /storage/kkm_last_doc_name [08:42:23]save OK [08:42:23]Clear old archive folders... [08:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:42:23]tlvbuf is 00FC1970 [08:42:23]SAM_PROTO_ClearQueue [08:42:23]wFMCommunicate request_size=4 [08:42:23]MH_SAM_APDU [08:42:23]CAPDU: 80 09 00 00 [08:42:23]Write to MH i2c: E2 08 00 8E 0B 80 09 00 00 00 00 00 00 0B [08:42:23]Write i2c OK [08:42:23]MH_I2C_Read... [08:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:23]Read from MH i2c: E2 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: E2 03 00 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [08:42:23]RAPDU: 90 00 [08:42:23]wFMCommunicate OK [08:42:23]SAM_PROTO_ClearQueue done [08:42:23]KKMCreateOFDPacket [08:42:23]OFDProtocolAddRootSTLVToBuf [08:42:23]FM_MakeSignedData [08:42:23]FM_MakeSignedData [08:42:23]SAM_PROTO_SignData [08:42:23]wFMCommunicate request_size=4 [08:42:23]MH_SAM_APDU [08:42:23]CAPDU: 80 0D 01 02 [08:42:23]Write to MH i2c: E2 08 00 8F 0B 80 0D 01 02 00 00 00 00 13 [08:42:23]Write i2c OK [08:42:23]MH_I2C_Read... [08:42:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:24]Read from MH i2c: E2 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 03 00 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [08:42:24]RAPDU: 90 00 [08:42:24]wFMCommunicate OK [08:42:24]wFMCommunicate request_size=255 [08:42:24]MH_SAM_APDU [08:42: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 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 18 00 00 00 F4 03 04 00 F1 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4C CA 01 00 35 04 06 00 62 49 13 47 [08:42:24]Write to MH i2c: E2 02 01 90 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 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 18 00 00 00 F4 03 04 00 F1 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4C CA 01 00 35 04 06 00 62 49 13 47 00 00 93 [08:42:24]Write i2c OK [08:42:24]MH_I2C_Read... [08:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:24]Read from MH i2c: E2 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 03 00 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [08:42:24]RAPDU: 90 00 [08:42:24]wFMCommunicate OK [08:42:24]wFMCommunicate request_size=7 [08:42:24]MH_SAM_APDU [08:42:24]CAPDU: 80 0D 02 02 02 C9 EA [08:42:24]Write to MH i2c: E2 0A 00 91 0B 80 0D 02 02 02 00 C9 EA 00 00 CD [08:42:24]Write i2c OK [08:42:24]MH_I2C_Read... [08:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:24]Read from MH i2c: E2 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 03 00 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [08:42:24]RAPDU: 90 00 [08:42:24]wFMCommunicate OK [08:42:24]wFMCommunicate request_size=4 [08:42:24]MH_SAM_APDU [08:42:24]CAPDU: 80 0D 03 02 [08:42:24]Write to MH i2c: E2 08 00 92 0B 80 0D 03 02 00 00 00 00 18 [08:42:24]Write i2c OK [08:42:24]MH_I2C_Read... [08:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:24]Read from MH i2c: E2 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 0B 00 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 0B 00 92 0B 00 91 5D 43 E9 6F 3B A9 D8 90 00 5E [08:42:24]RAPDU: 91 5D 43 E9 6F 3B A9 D8 90 00 [08:42:24]wFMCommunicate OK [08:42:24]SAM_PROTO_SignData done [08:42:24]FM_MakeSignedData done [08:42:24]CreateOFDProtocolMessage [08:42:24]wFMCommunicate request_size=4 [08:42:24]MH_SAM_APDU [08:42:24]CAPDU: 80 11 00 00 [08:42:24]Write to MH i2c: E2 08 00 93 0B 80 11 00 00 00 00 00 00 18 [08:42:24]Write i2c OK [08:42:24]MH_I2C_Read... [08:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:24]Read from MH i2c: E2 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 17 00 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: E2 17 00 93 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6F [08:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:42:24]wFMCommunicate OK [08:42:24]CreateOFDProtocolMessage done [08:42:24]OFDSenderStorePacket 117324 [08:42:24]StoreOFDPacket docnum=117324 [08:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 88 E5 04 01 42 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 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 18 00 00 00 F4 03 04 00 F1 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4C CA 01 00 35 04 06 00 62 49 13 47 C9 EA 91 5D 43 E9 6F 3B A9 D8 [08:42:24]CheckFolder [08:42:24]dirname=/storage/ofd_packets [08:42:24]CheckFolder done [08:42:24]ProducePacketName [08:42:24]name=ofd_packets/00117324 [08:42:24]NVStorageSaveData ofd_packets/00117324 [08:42:24]File name is /storage/ofd_packets/00117324 [08:42:24]Write 298 bytes [08:42:24]NVStorageSaveData done [08:42:24]OFDSenderStorePacket done [08:42:24]KKMCreateOFDPacket done [08:42:24]NVStorageSaveData kkm_last_timestamp [08:42:24]File name is /storage/kkm_last_timestamp [08:42:24]Write 4 bytes [08:42:24]NVStorageSaveData done [08:42:24]ExternCall_PrintAddStr [08:42:24]wPrintStart [08:42:24]Write to MH i2c: 01 00 00 94 0B 9F [08:42:24]Write i2c OK [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: 01 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: 01 07 00 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: 01 07 00 94 0B 00 00 00 00 00 FF 0F B4 [08:42:24]RasterBufferAndPrint [08:42:24]line Счет N : (1)245096 [08:42:24]line ИНН: 02508201610067 [08:42:24]line Контрольно-Кассовый Чек [08:42:24]line ПРОДАЖА [08:42:24]line ТРК (МРК, ГНК) : 23 [08:42:24]line Товар: 2710194210 [08:42:24]line ДТ-К-2 [08:42:24]line 10.500 * 76.20 [08:42:24]line = 800.10 [08:42:24]line НДС 12% НСП 1% [08:42:24]line > о реализуемом товаре [08:42:24]line ОКРУГЛЕНИЕ: -0.10 [08:42:24]line ИТОГО: 800.00 [08:42:24]line Внесено: 800.00 [08:42:24]line СДАЧА: 0.00 [08:42:24]line НСП 1% : 7.08 [08:42:24]line НДС 12% : 84.97 [08:42:24]line Наличными: 800.00 [08:42:24]line Безнал.: 0.00 [08:42:24]line Место: АЗС № 173 "Партнер Нефть" [08:42:24]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:42:24]line СНО: Общий режим [08:42:24]line Чек 24 27.10.2024 08:42 [08:42:24]line Смена: 542 ФФД: 1.0 [08:42:24]line ЗНМ: 0300000115 [08:42:24]line РНМ: 0000000000091782 [08:42:24]line Версия ККМ: 001 [08:42:24]line ФМ: 0000000000871767 [08:42:24]line ФД: 117324 [08:42:24]line ФПД: 108065995606506 [08:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084225&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117324&fm=108065995606506&tin=02508201610067®Number=0000000000091782&sum=80000 [08:42:24]OFD Sender: Processing packet 117324 [packets to send 75, broken 74] [08:42:24]ProducePacketName [08:42:24]name=ofd_packets/00117324 [08:42:24]OFD Sender: To server: pG, [08:42:24]CommunicateWithHost lk.salyk.kg:30040 [08:42:24]ConnectInit lk.salyk.kg [08:42:24]written 0, free lines is 4095 [08:42:24]Connected sock=11 [08:42: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 36 37 0C 01 00 00 88 E5 04 01 42 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 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 18 00 00 00 F4 03 04 00 F1 FC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4C CA 01 00 35 04 06 00 62 49 13 47 C9 EA 91 5D 43 E9 6F 3B A9 D8 [08:42: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 36 37 4F 00 00 00 F4 9C 47 00 36 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 36 37 10 04 04 00 4C CA 01 00 F4 03 04 00 B8 A8 1D 67 B6 04 01 00 00 D5 CA 2E 14 27 B8 D3 EC [08:42:25]CommunicateWithHost err = 0 [08:42:25]CheckOFDResponse [08:42:25]1017 (14) - 77093643461234 [08:42:25]1041 (16) - 0000000000871767 [08:42:25]1040 (4) - 117324 [08:42:25]1012 (4) - 27.10.2024 02:43 [08:42:25]1206 (1) - 0 [08:42:25]OFD Sender: Remove packet 117324 [08:42:25]ProducePacketName [08:42:25]name=ofd_packets/00117324 [08:42:25]NVStorageDeleteData [08:42:25]Write to MH i2c: 01 00 00 BE 0B C9 [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: 01 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: 01 07 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 B7 0C 93 [08:42:25]RasterBufferAndPrint [08:42:25]line [08:42:25]line [08:42:25]line [08:42:25]line [08:42:25]line [08:42:25]written 0, free lines is 3262 [08:42:25]MH_Cut [08:42:25]Write to MH i2c: D1 01 00 C5 0B 01 A2 [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: D1 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: D1 01 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: D1 01 00 C5 0B 00 A1 [08:42:25]Write to MH i2c: 01 00 00 C6 0B D1 [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]OFD Sender: No OFD packet to send [08:42:26]*** Cut start [08:42:26]*** Purtial cut [08:42:26]*** Stage 1: CUTSNS_PIN = 1 [08:42:26]Read from MH i2c: 01 [08:42:26]MH_I2C_Read... [08:42:26]*** Stop cut motor [08:42:26]*** Cut end [08:42:26]Read from MH i2c: 01 07 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: 01 07 00 C6 0B 00 00 00 00 00 FF 0F E6 [08:42:26]process_action close_receipt done [08:42:26]requested_data is exist [08:42:26]produce_requested_data [08:42:26]requested_item fm.sn is exist - process it [08:42:26]wFMCommunicate request_size=4 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 11 00 00 [08:42:26]Write to MH i2c: E2 08 00 C7 0B 80 11 00 00 00 00 00 00 4C [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 17 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 17 00 C7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A3 [08:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:42:26]wFMCommunicate OK [08:42:26]requested_item fd.num is exist - process it [08:42:26]SAM_PROTO_GetFieldsCounters [08:42:26]wFMCommunicate request_size=4 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 13 00 00 [08:42:26]Write to MH i2c: E2 08 00 C8 0B 80 13 00 00 00 00 00 00 4F [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 62 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 62 00 C8 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4C CA 01 00 0E 04 04 00 1E 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 F5 [08:42: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4C CA 01 00 0E 04 04 00 1E 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 [08:42:26]wFMCommunicate OK [08:42:26]SAM_PROTO_GetFieldsCounters done [08:42:26]requested_item shift.num is exist - process it [08:42:26]requested_item shift.opened is exist - process it [08:42:26]req_shift_opened [08:42:26]FM_GetShiftState [08:42:26]SAM_PROTO_GetShiftState [08:42:26]wFMCommunicate request_size=4 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 13 01 00 [08:42:26]Write to MH i2c: E2 08 00 C9 0B 80 13 01 00 00 00 00 00 51 [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 0E 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 0E 00 C9 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 90 [08:42:26]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:42:26]wFMCommunicate OK [08:42:26]SAM_PROTO_GetShiftState done [08:42:26]FM_GetShiftState done [08:42:26]req_shift_opened done [08:42:26]requested_item shift.open_date is exist - process it [08:42:26]req_shift_open_date [08:42:26]req_shift_open_date done [08:42:26]produce_requested_data done [08:42:26]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117324,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:42:26]process_action_free close_receipt [08:42:26]json_value_free [08:42:26]json_value_free done [08:42:26]process_json_proto returns [08:42:26]Send response to host [08:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117324,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:42:26]free response buf [08:42:26]execute_script done [08:42:26]execute_script returns [08:42:26]free content buf [08:42:26]Sock 7.Close socket [08:42:26]Sock 7.Thread stoped [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:28]accept exits with 9 [08:43:28]New connection [08:43:28]New thread 3066924388 created [08:43:28]Thread 3066781028 joined [08:43:28]Waiting for new connection... [08:43:28] Sock 9.Parse request [08:43:28]Sock 9.Check first char [08:43:28]Sock 9.First char is OK [08:43:28]request: POST /json_proto HTTP/1.0 [08:43:28]Method: POST [08:43:28]URL: /json_proto [08:43:28]Method is POST - this is cgi request [08:43:28]url: /json_proto [08:43:28]query_string will be loaded in cgi processing [08:43:28]execute_cgi json_proto POST (null) [08:43:28]execute_cgi path=json_proto method=POST [08:43:28]POST find Content-Length [08:43:28]Host: 172.17.96.67:8080 [08:43:28]Content-Length: 677 [08:43:28]Content-Type: application/json [08:43:28] [08:43:28]POST finish read [08:43:28]Found Content-Length = 677 [08:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:28]execute_script... [08:43: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)245097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:28]POST & json_proto [08:43:28]process_json_proto [08:43:28]json parsed OK: [08:43:28]protocol is kg_v1.0 [08:43:28]action value=close_receipt [08:43:28]process_action close_receipt [08:43:28]cmd_close_receipt [08:43:28]MH_GetDate [08:43:28]Write to MH i2c: F0 00 00 CA 0B C4 [08:43:28]Write i2c OK [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: F0 [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: F0 09 00 [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: F0 09 00 CA 0B 00 33 FD 1D 67 F7 AE 1B 67 A8 [08:43:28]GetLastDocTimeStamp 1730018545 [08:43:28]current date 1730018611 [08:43:28]FM_GetShiftState [08:43:28]SAM_PROTO_GetShiftState [08:43:28]wFMCommunicate request_size=4 [08:43:28]MH_SAM_APDU [08:43:28]CAPDU: 80 13 01 00 [08:43:28]Write to MH i2c: E2 08 00 CB 0B 80 13 01 00 00 00 00 00 53 [08:43:28]Write i2c OK [08:43:28]MH_I2C_Read... [08:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:28]Read from MH i2c: E2 [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: E2 0E 00 [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: E2 0E 00 CB 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 92 [08:43:28]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:43:28]wFMCommunicate OK [08:43:28]SAM_PROTO_GetShiftState done [08:43:28]FM_GetShiftState done [08:43:28]opened in 1729987372 [08:43:28]opened+sec_in_day 1730073772 [08:43:28]quantity*price = 50041 [08:43:28]sum+1 = 50042 [08:43:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 25 27.10.2024 08:43 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117325 ФПД: 112921595858851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084331&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117325&fm=112921595858851&tin=02508201610067®Number=0000000000091782&sum=50000 [08:43:29]StoreToDocumentArchive [08:43:29]shift 542 fd 117325 [08:43:29]save to /storage/0542/doc_00117325 [08:43:29]save last doc name /storage/0542/doc_00117325 to /storage/kkm_last_doc_name [08:43:29]save OK [08:43:29]Clear old archive folders... [08:43:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:29]tlvbuf is 00FA8440 [08:43:29]SAM_PROTO_ClearQueue [08:43:29]wFMCommunicate request_size=4 [08:43:29]MH_SAM_APDU [08:43:29]CAPDU: 80 09 00 00 [08:43:29]Write to MH i2c: E2 08 00 D8 0B 80 09 00 00 00 00 00 00 55 [08:43:29]Write i2c OK [08:43:29]MH_I2C_Read... [08:43:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:29]Read from MH i2c: E2 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 03 00 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [08:43:29]RAPDU: 90 00 [08:43:29]wFMCommunicate OK [08:43:29]SAM_PROTO_ClearQueue done [08:43:29]KKMCreateOFDPacket [08:43:29]OFDProtocolAddRootSTLVToBuf [08:43:29]FM_MakeSignedData [08:43:29]FM_MakeSignedData [08:43:29]SAM_PROTO_SignData [08:43:29]wFMCommunicate request_size=4 [08:43:29]MH_SAM_APDU [08:43:29]CAPDU: 80 0D 01 02 [08:43:29]Write to MH i2c: E2 08 00 D9 0B 80 0D 01 02 00 00 00 00 5D [08:43:29]Write i2c OK [08:43:29]MH_I2C_Read... [08:43:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:29]Read from MH i2c: E2 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 03 00 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [08:43:29]RAPDU: 90 00 [08:43:29]wFMCommunicate OK [08:43:29]wFMCommunicate request_size=255 [08:43:29]MH_SAM_APDU [08:43: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 19 00 00 00 F4 03 04 00 33 FD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CA 01 00 35 04 06 00 66 [08:43:29]Write to MH i2c: E2 02 01 DA 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 19 00 00 00 F4 03 04 00 33 FD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CA 01 00 35 04 06 00 66 00 00 5A [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [08:43:30]RAPDU: 90 00 [08:43:30]wFMCommunicate OK [08:43:30]wFMCommunicate request_size=10 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 0D 02 02 05 B3 9B 9B CF A3 [08:43:30]Write to MH i2c: E2 0D 00 DB 0B 80 0D 02 02 05 00 B3 9B 9B CF A3 00 00 C5 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 DB 0B 00 90 00 5A [08:43:30]RAPDU: 90 00 [08:43:30]wFMCommunicate OK [08:43:30]wFMCommunicate request_size=4 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 0D 03 02 [08:43:30]Write to MH i2c: E2 08 00 DC 0B 80 0D 03 02 00 00 00 00 62 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 0B 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 0B 00 DC 0B 00 1D 9E 7A 47 CC 08 5C 59 90 00 68 [08:43:30]RAPDU: 1D 9E 7A 47 CC 08 5C 59 90 00 [08:43:30]wFMCommunicate OK [08:43:30]SAM_PROTO_SignData done [08:43:30]FM_MakeSignedData done [08:43:30]CreateOFDProtocolMessage [08:43:30]wFMCommunicate request_size=4 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 11 00 00 [08:43:30]Write to MH i2c: E2 08 00 DD 0B 80 11 00 00 00 00 00 00 62 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 17 00 [08:43:30]MH_I2C_Read... [08:43:30]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 36 37 90 00 B9 [08:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:43:30]wFMCommunicate OK [08:43:30]CreateOFDProtocolMessage done [08:43:30]OFDSenderStorePacket 117325 [08:43:30]StoreOFDPacket docnum=117325 [08:43:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 44 C7 07 01 8E AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 33 FD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CA 01 00 35 04 06 00 66 B3 9B 9B CF A3 1D 9E 7A 47 CC 08 5C 59 [08:43:30]CheckFolder [08:43:30]dirname=/storage/ofd_packets [08:43:30]CheckFolder done [08:43:30]ProducePacketName [08:43:30]name=ofd_packets/00117325 [08:43:30]NVStorageSaveData ofd_packets/00117325 [08:43:30]File name is /storage/ofd_packets/00117325 [08:43:30]Write 301 bytes [08:43:30]NVStorageSaveData done [08:43:30]OFDSenderStorePacket done [08:43:30]KKMCreateOFDPacket done [08:43:30]NVStorageSaveData kkm_last_timestamp [08:43:30]File name is /storage/kkm_last_timestamp [08:43:30]Write 4 bytes [08:43:30]NVStorageSaveData done [08:43:30]ExternCall_PrintAddStr [08:43:30]wPrintStart [08:43:30]Write to MH i2c: 01 00 00 DE 0B E9 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: 01 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: 01 07 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: 01 07 00 DE 0B 00 00 00 00 00 FF 0F FE [08:43:30]RasterBufferAndPrint [08:43:30]line Счет N : (1)245097 [08:43:30]line ИНН: 02508201610067 [08:43:30]line Контрольно-Кассовый Чек [08:43:30]line ПРОДАЖА [08:43:30]line ТРК (МРК, ГНК) : 11 [08:43:30]line Товар: 2710124130 [08:43:30]line Аи-92-К-2 [08:43:30]line 7.480 * 66.90 [08:43:30]line = 500.41 [08:43:30]line НДС 12% НСП 1% [08:43:30]line > о реализуемом товаре [08:43:30]line ОКРУГЛЕНИЕ: -0.41 [08:43:30]line ИТОГО: 500.00 [08:43:30]line Внесено: 500.00 [08:43:30]line СДАЧА: 0.00 [08:43:30]line НСП 1% : 4.43 [08:43:30]line НДС 12% : 53.14 [08:43:30]line Наличными: 500.00 [08:43:30]line Безнал.: 0.00 [08:43:30]line Место: АЗС № 173 "Партнер Нефть" [08:43:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:43:30]line СНО: Общий режим [08:43:30]line Чек 25 27.10.2024 08:43 [08:43:30]line Смена: 542 ФФД: 1.0 [08:43:30]line ЗНМ: 0300000115 [08:43:30]line РНМ: 0000000000091782 [08:43:30]line Версия ККМ: 001 [08:43:30]line ФМ: 0000000000871767 [08:43:30]line ФД: 117325 [08:43:30]line ФПД: 112921595858851 [08:43:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084331&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117325&fm=112921595858851&tin=02508201610067®Number=0000000000091782&sum=50000 [08:43:30]written 0, free lines is 4095 [08:43:30]OFD Sender: Processing packet 117325 [packets to send 75, broken 74] [08:43:30]ProducePacketName [08:43:30]name=ofd_packets/00117325 [08:43:30]OFD Sender: To server: pG, [08:43:30]CommunicateWithHost lk.salyk.kg:30040 [08:43:30]ConnectInit lk.salyk.kg [08:43:30]Connected sock=10 [08:43: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 36 37 0F 01 00 00 44 C7 07 01 8E AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 33 FD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CA 01 00 35 04 06 00 66 B3 9B 9B CF A3 1D 9E 7A 47 CC 08 5C 59 [08:43: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 36 37 4F 00 00 00 B7 58 47 00 5A 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CA 01 00 F4 03 04 00 FA A8 1D 67 B6 04 01 00 00 2B 0F 22 5A 4C DE AF 27 [08:43:31]CommunicateWithHost err = 0 [08:43:31]CheckOFDResponse [08:43:31]1017 (14) - 77093643461234 [08:43:31]1041 (16) - 0000000000871767 [08:43:31]1040 (4) - 117325 [08:43:31]1012 (4) - 27.10.2024 02:44 [08:43:31]1206 (1) - 0 [08:43:31]OFD Sender: Remove packet 117325 [08:43:31]ProducePacketName [08:43:31]name=ofd_packets/00117325 [08:43:31]NVStorageDeleteData [08:43:31]Write to MH i2c: 01 00 00 08 0C 14 [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: 01 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: 01 07 00 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 B7 0C DE [08:43:31]RasterBufferAndPrint [08:43:31]line [08:43:31]line [08:43:31]line [08:43:31]line [08:43:31]line [08:43:31]written 0, free lines is 3262 [08:43:31]MH_Cut [08:43:31]Write to MH i2c: D1 01 00 0F 0C 01 ED [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: D1 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: D1 01 00 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: D1 01 00 0F 0C 00 EC [08:43:31]Write to MH i2c: 01 00 00 10 0C 1C [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]OFD Sender: No OFD packet to send [08:43:32]*** Cut start [08:43:32]*** Purtial cut [08:43:32]*** Stage 1: CUTSNS_PIN = 1 [08:43:32]Read from MH i2c: 01 [08:43:32]MH_I2C_Read... [08:43:32]*** Stop cut motor [08:43:32]*** Cut end [08:43:32]Read from MH i2c: 01 07 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 FF 0F 31 [08:43:32]process_action close_receipt done [08:43:32]requested_data is exist [08:43:32]produce_requested_data [08:43:32]requested_item fm.sn is exist - process it [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 11 00 00 [08:43:32]Write to MH i2c: E2 08 00 11 0C 80 11 00 00 00 00 00 00 97 [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:32]Read from MH i2c: E2 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 17 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 17 00 11 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EE [08:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:43:32]wFMCommunicate OK [08:43:32]requested_item fd.num is exist - process it [08:43:32]SAM_PROTO_GetFieldsCounters [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 13 00 00 [08:43:32]Write to MH i2c: E2 08 00 12 0C 80 13 00 00 00 00 00 00 9A [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:32]Read from MH i2c: E2 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 62 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 62 00 12 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4D CA 01 00 0E 04 04 00 1E 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 44 [08:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4D CA 01 00 0E 04 04 00 1E 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 [08:43:32]wFMCommunicate OK [08:43:32]SAM_PROTO_GetFieldsCounters done [08:43:32]requested_item shift.num is exist - process it [08:43:32]requested_item shift.opened is exist - process it [08:43:32]req_shift_opened [08:43:32]FM_GetShiftState [08:43:32]SAM_PROTO_GetShiftState [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 13 01 00 [08:43:32]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 [08:43:32]MH_I2C_Read... [08:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:32]Read from MH i2c: E2 0E 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 DB [08:43:32]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:43:32]wFMCommunicate OK [08:43:32]SAM_PROTO_GetShiftState done [08:43:32]FM_GetShiftState done [08:43:32]req_shift_opened done [08:43:32]requested_item shift.open_date is exist - process it [08:43:32]req_shift_open_date [08:43:32]req_shift_open_date done [08:43:32]produce_requested_data done [08:43:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117325,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:43:32]process_action_free close_receipt [08:43:32]json_value_free [08:43:32]json_value_free done [08:43:32]process_json_proto returns [08:43:32]Send response to host [08:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117325,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:43:32]free response buf [08:43:32]execute_script done [08:43:32]execute_script returns [08:43:32]free content buf [08:43:32]Sock 9.Close socket [08:43:32]Sock 9.Thread stoped [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:23]accept exits with 7 [08:57:23]New connection [08:57:23]New thread 3066781028 created [08:57:23]Thread 3066924388 joined [08:57:23]Waiting for new connection... [08:57:23] Sock 7.Parse request [08:57:23]Sock 7.Check first char [08:57:23]Sock 7.First char is OK [08:57:23]request: POST /json_proto HTTP/1.0 [08:57:23]Method: POST [08:57:23]URL: /json_proto [08:57:23]Method is POST - this is cgi request [08:57:23]url: /json_proto [08:57:23]query_string will be loaded in cgi processing [08:57:23]execute_cgi json_proto POST (null) [08:57:23]execute_cgi path=json_proto method=POST [08:57:23]POST find Content-Length [08:57:23]Host: 172.17.96.67:8080 [08:57:23]Content-Length: 677 [08:57:23]Content-Type: application/json [08:57:23] [08:57:23]POST finish read [08:57:23]Found Content-Length = 677 [08:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:57:23]execute_script... [08:57: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)245098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:57:23]POST & json_proto [08:57:23]process_json_proto [08:57:23]json parsed OK: [08:57:23]protocol is kg_v1.0 [08:57:23]action value=close_receipt [08:57:23]process_action close_receipt [08:57:23]cmd_close_receipt [08:57:23]MH_GetDate [08:57:23]Write to MH i2c: F0 00 00 14 0C 0F [08:57:23]Write i2c OK [08:57:23]MH_I2C_Read... [08:57:23]Read from MH i2c: F0 [08:57:23]MH_I2C_Read... [08:57:23]Read from MH i2c: F0 09 00 [08:57:23]MH_I2C_Read... [08:57:23]Read from MH i2c: F0 09 00 14 0C 00 76 00 1E 67 F7 AE 1B 67 3A [08:57:23]GetLastDocTimeStamp 1730018611 [08:57:23]current date 1730019446 [08:57:23]FM_GetShiftState [08:57:23]SAM_PROTO_GetShiftState [08:57:23]wFMCommunicate request_size=4 [08:57:23]MH_SAM_APDU [08:57:23]CAPDU: 80 13 01 00 [08:57:23]Write to MH i2c: E2 08 00 15 0C 80 13 01 00 00 00 00 00 9E [08:57:23]Write i2c OK [08:57:23]MH_I2C_Read... [08:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:23]Read from MH i2c: E2 [08:57:23]MH_I2C_Read... [08:57:23]Read from MH i2c: E2 0E 00 [08:57:23]MH_I2C_Read... [08:57:23]Read from MH i2c: E2 0E 00 15 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 DD [08:57:23]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:57:23]wFMCommunicate OK [08:57:23]SAM_PROTO_GetShiftState done [08:57:23]FM_GetShiftState done [08:57:23]opened in 1729987372 [08:57:23]opened+sec_in_day 1730073772 [08:57:23]quantity*price = 50041 [08:57:23]sum+1 = 50042 [08:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 26 27.10.2024 08:57 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117326 ФПД: 266982656820378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085726&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117326&fm=266982656820378&tin=02508201610067®Number=0000000000091782&sum=50000 [08:57:24]StoreToDocumentArchive [08:57:24]shift 542 fd 117326 [08:57:24]save to /storage/0542/doc_00117326 [08:57:24]save last doc name /storage/0542/doc_00117326 to /storage/kkm_last_doc_name [08:57:24]save OK [08:57:24]Clear old archive folders... [08:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:25]tlvbuf is 00FC1920 [08:57:25]SAM_PROTO_ClearQueue [08:57:25]wFMCommunicate request_size=4 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 09 00 00 [08:57:25]Write to MH i2c: E2 08 00 22 0C 80 09 00 00 00 00 00 00 A0 [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [08:57:25]RAPDU: 90 00 [08:57:25]wFMCommunicate OK [08:57:25]SAM_PROTO_ClearQueue done [08:57:25]KKMCreateOFDPacket [08:57:25]OFDProtocolAddRootSTLVToBuf [08:57:25]FM_MakeSignedData [08:57:25]FM_MakeSignedData [08:57:25]SAM_PROTO_SignData [08:57:25]wFMCommunicate request_size=4 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 0D 01 02 [08:57:25]Write to MH i2c: E2 08 00 23 0C 80 0D 01 02 00 00 00 00 A8 [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [08:57:25]RAPDU: 90 00 [08:57:25]wFMCommunicate OK [08:57:25]wFMCommunicate request_size=255 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 76 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4E CA 01 00 35 04 06 00 F2 [08:57:25]Write to MH i2c: E2 02 01 24 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 1A 00 00 00 F4 03 04 00 76 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4E CA 01 00 35 04 06 00 F2 00 00 7A [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [08:57:25]RAPDU: 90 00 [08:57:25]wFMCommunicate OK [08:57:25]wFMCommunicate request_size=10 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 0D 02 02 05 D1 BE 6B C4 9A [08:57:25]Write to MH i2c: E2 0D 00 25 0C 80 0D 02 02 05 00 D1 BE 6B C4 9A 00 00 0D [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 25 0C 00 90 00 A5 [08:57:25]RAPDU: 90 00 [08:57:25]wFMCommunicate OK [08:57:25]wFMCommunicate request_size=4 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 0D 03 02 [08:57:25]Write to MH i2c: E2 08 00 26 0C 80 0D 03 02 00 00 00 00 AD [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 0B 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 0B 00 26 0C 00 87 2D C8 D6 C7 24 31 8E 90 00 AA [08:57:25]RAPDU: 87 2D C8 D6 C7 24 31 8E 90 00 [08:57:25]wFMCommunicate OK [08:57:25]SAM_PROTO_SignData done [08:57:25]FM_MakeSignedData done [08:57:25]CreateOFDProtocolMessage [08:57:25]wFMCommunicate request_size=4 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 11 00 00 [08:57:25]Write to MH i2c: E2 08 00 27 0C 80 11 00 00 00 00 00 00 AD [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 17 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 17 00 27 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 04 [08:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:57:25]wFMCommunicate OK [08:57:25]CreateOFDProtocolMessage done [08:57:25]OFDSenderStorePacket 117326 [08:57:25]StoreOFDPacket docnum=117326 [08:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2F 00 07 01 15 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 76 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4E CA 01 00 35 04 06 00 F2 D1 BE 6B C4 9A 87 2D C8 D6 C7 24 31 8E [08:57:25]CheckFolder [08:57:25]dirname=/storage/ofd_packets [08:57:25]CheckFolder done [08:57:25]ProducePacketName [08:57:25]name=ofd_packets/00117326 [08:57:25]NVStorageSaveData ofd_packets/00117326 [08:57:25]File name is /storage/ofd_packets/00117326 [08:57:25]Write 301 bytes [08:57:25]NVStorageSaveData done [08:57:25]OFDSenderStorePacket done [08:57:25]KKMCreateOFDPacket done [08:57:25]NVStorageSaveData kkm_last_timestamp [08:57:25]File name is /storage/kkm_last_timestamp [08:57:25]Write 4 bytes [08:57:25]NVStorageSaveData done [08:57:25]ExternCall_PrintAddStr [08:57:25]wPrintStart [08:57:25]Write to MH i2c: 01 00 00 28 0C 34 [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: 01 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: 01 07 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: 01 07 00 28 0C 00 00 00 00 00 FF 0F 49 [08:57:25]RasterBufferAndPrint [08:57:25]line Счет N : (1)245098 [08:57:25]line ИНН: 02508201610067 [08:57:25]line Контрольно-Кассовый Чек [08:57:25]line ПРОДАЖА [08:57:25]line ТРК (МРК, ГНК) : 21 [08:57:25]line Товар: 2710124130 [08:57:25]line Аи-92-К-2 [08:57:25]line 7.480 * 66.90 [08:57:25]line = 500.41 [08:57:25]line НДС 12% НСП 1% [08:57:25]line > о реализуемом товаре [08:57:25]line ОКРУГЛЕНИЕ: -0.41 [08:57:25]line ИТОГО: 500.00 [08:57:25]line Внесено: 500.00 [08:57:25]line СДАЧА: 0.00 [08:57:25]line НСП 1% : 4.43 [08:57:25]line НДС 12% : 53.14 [08:57:25]line Наличными: 500.00 [08:57:25]line Безнал.: 0.00 [08:57:25]line Место: АЗС № 173 "Партнер Нефть" [08:57:25]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:57:25]line СНО: Общий режим [08:57:25]line Чек 26 27.10.2024 08:57 [08:57:25]line Смена: 542 ФФД: 1.0 [08:57:25]line ЗНМ: 0300000115 [08:57:25]line РНМ: 0000000000091782 [08:57:25]line Версия ККМ: 001 [08:57:25]line ФМ: 0000000000871767 [08:57:25]line ФД: 117326 [08:57:25]line ФПД: 266982656820378 [08:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085726&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117326&fm=266982656820378&tin=02508201610067®Number=0000000000091782&sum=50000 [08:57:25]written 0, free lines is 4095 [08:57:25]OFD Sender: Processing packet 117326 [packets to send 75, broken 74] [08:57:25]ProducePacketName [08:57:25]name=ofd_packets/00117326 [08:57:25]OFD Sender: To server: pG, [08:57:25]CommunicateWithHost lk.salyk.kg:30040 [08:57:25]ConnectInit lk.salyk.kg [08:57:25]Connected sock=11 [08:57: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 36 37 0F 01 00 00 2F 00 07 01 15 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 76 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4E CA 01 00 35 04 06 00 F2 D1 BE 6B C4 9A 87 2D C8 D6 C7 24 31 8E [08:57: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 36 37 4F 00 00 00 CE B2 47 00 66 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 36 37 10 04 04 00 4E CA 01 00 F4 03 04 00 3D AC 1D 67 B6 04 01 00 00 A3 31 26 70 8B 62 7A 9C [08:57:26]CommunicateWithHost err = 0 [08:57:26]CheckOFDResponse [08:57:26]1017 (14) - 77093643461234 [08:57:26]1041 (16) - 0000000000871767 [08:57:26]1040 (4) - 117326 [08:57:26]1012 (4) - 27.10.2024 02:58 [08:57:26]1206 (1) - 0 [08:57:26]OFD Sender: Remove packet 117326 [08:57:26]ProducePacketName [08:57:26]name=ofd_packets/00117326 [08:57:26]NVStorageDeleteData [08:57:26]Write to MH i2c: 01 00 00 52 0C 5E [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 52 0C 00 00 00 00 00 B7 0C 28 [08:57:26]RasterBufferAndPrint [08:57:26]line [08:57:26]line [08:57:26]line [08:57:26]line [08:57:26]line [08:57:26]written 0, free lines is 3259 [08:57:26]MH_Cut [08:57:26]Write to MH i2c: D1 01 00 59 0C 01 37 [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: D1 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: D1 01 00 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: D1 01 00 59 0C 00 36 [08:57:26]Write to MH i2c: 01 00 00 5A 0C 66 [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]OFD Sender: No OFD packet to send [08:57:27]*** Cut start [08:57:27]*** Purtial cut [08:57:27]*** Stage 1: CUTSNS_PIN = 1 [08:57:27]Read from MH i2c: 01 [08:57:27]MH_I2C_Read... [08:57:27]*** Stop cut motor [08:57:27]*** Cut end [08:57:27]Read from MH i2c: 01 07 00 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: 01 07 00 5A 0C 00 00 00 00 00 FF 0F 7B [08:57:27]process_action close_receipt done [08:57:27]requested_data is exist [08:57:27]produce_requested_data [08:57:27]requested_item fm.sn is exist - process it [08:57:27]wFMCommunicate request_size=4 [08:57:27]MH_SAM_APDU [08:57:27]CAPDU: 80 11 00 00 [08:57:27]Write to MH i2c: E2 08 00 5B 0C 80 11 00 00 00 00 00 00 E1 [08:57:27]Write i2c OK [08:57:27]MH_I2C_Read... [08:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:27]Read from MH i2c: E2 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 17 00 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 17 00 5B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 38 [08:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:57:27]wFMCommunicate OK [08:57:27]requested_item fd.num is exist - process it [08:57:27]SAM_PROTO_GetFieldsCounters [08:57:27]wFMCommunicate request_size=4 [08:57:27]MH_SAM_APDU [08:57:27]CAPDU: 80 13 00 00 [08:57:27]Write to MH i2c: E2 08 00 5C 0C 80 13 00 00 00 00 00 00 E4 [08:57:27]Write i2c OK [08:57:27]MH_I2C_Read... [08:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:27]Read from MH i2c: E2 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 62 00 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 62 00 5C 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4E CA 01 00 0E 04 04 00 1E 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 92 [08:57: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4E CA 01 00 0E 04 04 00 1E 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 [08:57:27]wFMCommunicate OK [08:57:27]SAM_PROTO_GetFieldsCounters done [08:57:27]requested_item shift.num is exist - process it [08:57:27]requested_item shift.opened is exist - process it [08:57:27]req_shift_opened [08:57:27]FM_GetShiftState [08:57:27]SAM_PROTO_GetShiftState [08:57:27]wFMCommunicate request_size=4 [08:57:27]MH_SAM_APDU [08:57:27]CAPDU: 80 13 01 00 [08:57:27]Write to MH i2c: E2 08 00 5D 0C 80 13 01 00 00 00 00 00 E6 [08:57:27]Write i2c OK [08:57:27]MH_I2C_Read... [08:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:27]Read from MH i2c: E2 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 0E 00 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 0E 00 5D 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 25 [08:57:27]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:57:27]wFMCommunicate OK [08:57:27]SAM_PROTO_GetShiftState done [08:57:27]FM_GetShiftState done [08:57:27]req_shift_opened done [08:57:27]requested_item shift.open_date is exist - process it [08:57:27]req_shift_open_date [08:57:27]req_shift_open_date done [08:57:27]produce_requested_data done [08:57:27]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117326,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:57:27]process_action_free close_receipt [08:57:27]json_value_free [08:57:27]json_value_free done [08:57:27]process_json_proto returns [08:57:27]Send response to host [08:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117326,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:57:27]free response buf [08:57:27]execute_script done [08:57:27]execute_script returns [08:57:27]free content buf [08:57:27]Sock 7.Close socket [08:57:27]Sock 7.Thread stoped [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:40]accept exits with 9 [08:59:40]New connection [08:59:40]New thread 3066924388 created [08:59:40]Thread 3066781028 joined [08:59:40]Waiting for new connection... [08:59:40] Sock 9.Parse request [08:59:40]Sock 9.Check first char [08:59:40]Sock 9.First char is OK [08:59:40]request: POST /json_proto HTTP/1.0 [08:59:40]Method: POST [08:59:40]URL: /json_proto [08:59:40]Method is POST - this is cgi request [08:59:40]url: /json_proto [08:59:40]query_string will be loaded in cgi processing [08:59:40]execute_cgi json_proto POST (null) [08:59:40]execute_cgi path=json_proto method=POST [08:59:40]POST find Content-Length [08:59:40]Host: 172.17.96.67:8080 [08:59:40]Content-Length: 677 [08:59:40]Content-Type: application/json [08:59:40] [08:59:40]POST finish read [08:59:40]Found Content-Length = 677 [08:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:59:40]execute_script... [08:59: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)245099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:59:40]POST & json_proto [08:59:40]process_json_proto [08:59:40]json parsed OK: [08:59:40]protocol is kg_v1.0 [08:59:40]action value=close_receipt [08:59:40]process_action close_receipt [08:59:40]cmd_close_receipt [08:59:40]MH_GetDate [08:59:40]Write to MH i2c: F0 00 00 5E 0C 59 [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: F0 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: F0 09 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: F0 09 00 5E 0C 00 FF 00 1E 67 F7 AE 1B 67 0D [08:59:40]GetLastDocTimeStamp 1730019446 [08:59:40]current date 1730019583 [08:59:40]FM_GetShiftState [08:59:40]SAM_PROTO_GetShiftState [08:59:40]wFMCommunicate request_size=4 [08:59:40]MH_SAM_APDU [08:59:40]CAPDU: 80 13 01 00 [08:59:40]Write to MH i2c: E2 08 00 5F 0C 80 13 01 00 00 00 00 00 E8 [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:40]Read from MH i2c: E2 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 0E 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 0E 00 5F 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 27 [08:59:40]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:59:40]wFMCommunicate OK [08:59:40]SAM_PROTO_GetShiftState done [08:59:40]FM_GetShiftState done [08:59:40]opened in 1729987372 [08:59:40]opened+sec_in_day 1730073772 [08:59:40]quantity*price = 50041 [08:59:40]sum+1 = 50042 [08:59: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 27 27.10.2024 08:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117327 ФПД: 36115954279516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085943&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117327&fm=36115954279516&tin=02508201610067®Number=0000000000091782&sum=50000 [08:59:42]StoreToDocumentArchive [08:59:42]shift 542 fd 117327 [08:59:42]save to /storage/0542/doc_00117327 [08:59:42]save last doc name /storage/0542/doc_00117327 to /storage/kkm_last_doc_name [08:59:42]save OK [08:59:42]Clear old archive folders... [08:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:42]tlvbuf is 01002B80 [08:59:42]SAM_PROTO_ClearQueue [08:59:42]wFMCommunicate request_size=4 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 09 00 00 [08:59:42]Write to MH i2c: E2 08 00 6C 0C 80 09 00 00 00 00 00 00 EA [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 6C 0C 00 90 00 EC [08:59:42]RAPDU: 90 00 [08:59:42]wFMCommunicate OK [08:59:42]SAM_PROTO_ClearQueue done [08:59:42]KKMCreateOFDPacket [08:59:42]OFDProtocolAddRootSTLVToBuf [08:59:42]FM_MakeSignedData [08:59:42]FM_MakeSignedData [08:59:42]SAM_PROTO_SignData [08:59:42]wFMCommunicate request_size=4 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 0D 01 02 [08:59:42]Write to MH i2c: E2 08 00 6D 0C 80 0D 01 02 00 00 00 00 F2 [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 6D 0C 00 90 00 ED [08:59:42]RAPDU: 90 00 [08:59:42]wFMCommunicate OK [08:59:42]wFMCommunicate request_size=255 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FF 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4F CA 01 00 35 04 06 00 20 [08:59:42]Write to MH i2c: E2 02 01 6E 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 1B 00 00 00 F4 03 04 00 FF 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4F CA 01 00 35 04 06 00 20 00 00 7D [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [08:59:42]RAPDU: 90 00 [08:59:42]wFMCommunicate OK [08:59:42]wFMCommunicate request_size=10 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 0D 02 02 05 D8 E6 A0 24 5C [08:59:42]Write to MH i2c: E2 0D 00 6F 0C 80 0D 02 02 05 00 D8 E6 A0 24 5C 00 00 DD [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [08:59:42]RAPDU: 90 00 [08:59:42]wFMCommunicate OK [08:59:42]wFMCommunicate request_size=4 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 0D 03 02 [08:59:42]Write to MH i2c: E2 08 00 70 0C 80 0D 03 02 00 00 00 00 F7 [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 0B 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 0B 00 70 0C 00 2C 36 0F 4D C9 D0 CF 8B 90 00 A9 [08:59:42]RAPDU: 2C 36 0F 4D C9 D0 CF 8B 90 00 [08:59:42]wFMCommunicate OK [08:59:42]SAM_PROTO_SignData done [08:59:42]FM_MakeSignedData done [08:59:42]CreateOFDProtocolMessage [08:59:42]wFMCommunicate request_size=4 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 11 00 00 [08:59:42]Write to MH i2c: E2 08 00 71 0C 80 11 00 00 00 00 00 00 F7 [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 17 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 17 00 71 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4E [08:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:59:42]wFMCommunicate OK [08:59:42]CreateOFDProtocolMessage done [08:59:42]OFDSenderStorePacket 117327 [08:59:42]StoreOFDPacket docnum=117327 [08:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 87 34 07 01 7E 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FF 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4F CA 01 00 35 04 06 00 20 D8 E6 A0 24 5C 2C 36 0F 4D C9 D0 CF 8B [08:59:42]CheckFolder [08:59:42]dirname=/storage/ofd_packets [08:59:42]CheckFolder done [08:59:42]ProducePacketName [08:59:42]name=ofd_packets/00117327 [08:59:42]NVStorageSaveData ofd_packets/00117327 [08:59:42]File name is /storage/ofd_packets/00117327 [08:59:42]Write 301 bytes [08:59:42]NVStorageSaveData done [08:59:42]OFDSenderStorePacket done [08:59:42]KKMCreateOFDPacket done [08:59:42]NVStorageSaveData kkm_last_timestamp [08:59:42]File name is /storage/kkm_last_timestamp [08:59:42]Write 4 bytes [08:59:42]NVStorageSaveData done [08:59:42]ExternCall_PrintAddStr [08:59:42]wPrintStart [08:59:42]Write to MH i2c: 01 00 00 72 0C 7E [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: 01 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: 01 07 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: 01 07 00 72 0C 00 00 00 00 00 FF 0F 93 [08:59:42]RasterBufferAndPrint [08:59:42]line Счет N : (1)245099 [08:59:42]line ИНН: 02508201610067 [08:59:42]line Контрольно-Кассовый Чек [08:59:42]line ПРОДАЖА [08:59:42]line ТРК (МРК, ГНК) : 21 [08:59:42]line Товар: 2710124130 [08:59:42]line Аи-92-К-2 [08:59:42]line 7.480 * 66.90 [08:59:42]line = 500.41 [08:59:42]line НДС 12% НСП 1% [08:59:42]line > о реализуемом товаре [08:59:42]line ОКРУГЛЕНИЕ: -0.41 [08:59:42]line ИТОГО: 500.00 [08:59:42]line Внесено: 500.00 [08:59:42]line СДАЧА: 0.00 [08:59:42]line НСП 1% : 4.43 [08:59:42]line НДС 12% : 53.14 [08:59:42]line Наличными: 500.00 [08:59:42]line Безнал.: 0.00 [08:59:42]line Место: АЗС № 173 "Партнер Нефть" [08:59:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:59:42]line СНО: Общий режим [08:59:42]line Чек 27 27.10.2024 08:59 [08:59:42]line Смена: 542 ФФД: 1.0 [08:59:42]line ЗНМ: 0300000115 [08:59:42]line РНМ: 0000000000091782 [08:59:42]line Версия ККМ: 001 [08:59:42]line ФМ: 0000000000871767 [08:59:42]line ФД: 117327 [08:59:42]line ФПД: 36115954279516 [08:59:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085943&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117327&fm=36115954279516&tin=02508201610067®Number=0000000000091782&sum=50000 [08:59:42]written 0, free lines is 4095 [08:59:42]OFD Sender: Processing packet 117327 [packets to send 75, broken 74] [08:59:42]ProducePacketName [08:59:42]name=ofd_packets/00117327 [08:59:42]OFD Sender: To server: pG, [08:59:42]CommunicateWithHost lk.salyk.kg:30040 [08:59:42]ConnectInit lk.salyk.kg [08:59:42]Connected sock=10 [08:59: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 36 37 0F 01 00 00 87 34 07 01 7E 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FF 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4F CA 01 00 35 04 06 00 20 D8 E6 A0 24 5C 2C 36 0F 4D C9 D0 CF 8B [08:59: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 36 37 4F 00 00 00 4E 52 47 00 D2 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 36 37 10 04 04 00 4F CA 01 00 F4 03 04 00 C6 AC 1D 67 B6 04 01 00 00 74 DF 0C 70 43 97 03 15 [08:59:43]CommunicateWithHost err = 0 [08:59:43]CheckOFDResponse [08:59:43]1017 (14) - 77093643461234 [08:59:43]1041 (16) - 0000000000871767 [08:59:43]1040 (4) - 117327 [08:59:43]1012 (4) - 27.10.2024 03:00 [08:59:43]1206 (1) - 0 [08:59:43]OFD Sender: Remove packet 117327 [08:59:43]ProducePacketName [08:59:43]name=ofd_packets/00117327 [08:59:43]NVStorageDeleteData [08:59:43]Write to MH i2c: 01 00 00 9C 0C A8 [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: 01 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: 01 07 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: 01 07 00 9C 0C 00 00 00 00 00 B9 0C 74 [08:59:43]RasterBufferAndPrint [08:59:43]line [08:59:43]line [08:59:43]line [08:59:43]line [08:59:43]line [08:59:43]written 0, free lines is 3264 [08:59:43]MH_Cut [08:59:43]Write to MH i2c: D1 01 00 A3 0C 01 81 [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: D1 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: D1 01 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: D1 01 00 A3 0C 00 80 [08:59:43]Write to MH i2c: 01 00 00 A4 0C B0 [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]OFD Sender: No OFD packet to send [08:59:43]*** Cut start [08:59:43]*** Purtial cut [08:59:43]*** Stage 1: CUTSNS_PIN = 1 [08:59:44]Read from MH i2c: 01 [08:59:44]MH_I2C_Read... [08:59:44]*** Stop cut motor [08:59:44]*** Cut end [08:59:44]Read from MH i2c: 01 07 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: 01 07 00 A4 0C 00 00 00 00 00 FF 0F C5 [08:59:44]process_action close_receipt done [08:59:44]requested_data is exist [08:59:44]produce_requested_data [08:59:44]requested_item fm.sn is exist - process it [08:59:44]wFMCommunicate request_size=4 [08:59:44]MH_SAM_APDU [08:59:44]CAPDU: 80 11 00 00 [08:59:44]Write to MH i2c: E2 08 00 A5 0C 80 11 00 00 00 00 00 00 2B [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:44]Read from MH i2c: E2 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: E2 17 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: E2 17 00 A5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 82 [08:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:59:44]wFMCommunicate OK [08:59:44]requested_item fd.num is exist - process it [08:59:44]SAM_PROTO_GetFieldsCounters [08:59:44]wFMCommunicate request_size=4 [08:59:44]MH_SAM_APDU [08:59:44]CAPDU: 80 13 00 00 [08:59:44]Write to MH i2c: E2 08 00 A6 0C 80 13 00 00 00 00 00 00 2E [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:44]Read from MH i2c: E2 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: E2 62 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: E2 62 00 A6 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4F CA 01 00 0E 04 04 00 1E 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 E0 [08:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4F CA 01 00 0E 04 04 00 1E 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 [08:59:44]wFMCommunicate OK [08:59:44]SAM_PROTO_GetFieldsCounters done [08:59:44]requested_item shift.num is exist - process it [08:59:44]requested_item shift.opened is exist - process it [08:59:44]req_shift_opened [08:59:44]FM_GetShiftState [08:59:44]SAM_PROTO_GetShiftState [08:59:44]wFMCommunicate request_size=4 [08:59:44]MH_SAM_APDU [08:59:44]CAPDU: 80 13 01 00 [08:59:44]Write to MH i2c: E2 08 00 A7 0C 80 13 01 00 00 00 00 00 30 [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:44]Read from MH i2c: E2 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: E2 0E 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: E2 0E 00 A7 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6F [08:59:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [08:59:44]wFMCommunicate OK [08:59:44]SAM_PROTO_GetShiftState done [08:59:44]FM_GetShiftState done [08:59:44]req_shift_opened done [08:59:44]requested_item shift.open_date is exist - process it [08:59:44]req_shift_open_date [08:59:44]req_shift_open_date done [08:59:44]produce_requested_data done [08:59:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117327,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [08:59:44]process_action_free close_receipt [08:59:44]json_value_free [08:59:44]json_value_free done [08:59:44]process_json_proto returns [08:59:44]Send response to host [08:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117327,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [08:59:44]free response buf [08:59:44]execute_script done [08:59:44]execute_script returns [08:59:44]free content buf [08:59:44]Sock 9.Close socket [08:59:44]Sock 9.Thread stoped [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:12]accept exits with 7 [09:01:12]New connection [09:01:12]New thread 3066781028 created [09:01:12]Thread 3066924388 joined [09:01:12]Waiting for new connection... [09:01:12] Sock 7.Parse request [09:01:12]Sock 7.Check first char [09:01:12]Sock 7.First char is OK [09:01:12]request: POST /json_proto HTTP/1.0 [09:01:12]Method: POST [09:01:12]URL: /json_proto [09:01:12]Method is POST - this is cgi request [09:01:12]url: /json_proto [09:01:12]query_string will be loaded in cgi processing [09:01:12]execute_cgi json_proto POST (null) [09:01:12]execute_cgi path=json_proto method=POST [09:01:12]POST find Content-Length [09:01:12]Host: 172.17.96.67:8080 [09:01:12]Content-Length: 677 [09:01:12]Content-Type: application/json [09:01:12] [09:01:12]POST finish read [09:01:12]Found Content-Length = 677 [09:01:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:01:12]execute_script... [09:01: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)245100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:01:12]POST & json_proto [09:01:12]process_json_proto [09:01:12]json parsed OK: [09:01:12]protocol is kg_v1.0 [09:01:12]action value=close_receipt [09:01:12]process_action close_receipt [09:01:12]cmd_close_receipt [09:01:12]MH_GetDate [09:01:12]Write to MH i2c: F0 00 00 A8 0C A3 [09:01:12]Write i2c OK [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: F0 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: F0 09 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: F0 09 00 A8 0C 00 5B 01 1E 67 F7 AE 1B 67 B4 [09:01:12]GetLastDocTimeStamp 1730019583 [09:01:12]current date 1730019675 [09:01:12]FM_GetShiftState [09:01:12]SAM_PROTO_GetShiftState [09:01:12]wFMCommunicate request_size=4 [09:01:12]MH_SAM_APDU [09:01:12]CAPDU: 80 13 01 00 [09:01:12]Write to MH i2c: E2 08 00 A9 0C 80 13 01 00 00 00 00 00 32 [09:01:12]Write i2c OK [09:01:12]MH_I2C_Read... [09:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:12]Read from MH i2c: E2 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 0E 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 0E 00 A9 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 71 [09:01:12]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:01:12]wFMCommunicate OK [09:01:12]SAM_PROTO_GetShiftState done [09:01:12]FM_GetShiftState done [09:01:12]opened in 1729987372 [09:01:12]opened+sec_in_day 1730073772 [09:01:12]quantity*price = 40006 [09:01:12]sum+1 = 40007 [09:01:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 28 27.10.2024 09:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117328 ФПД: 35923675212481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090115&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117328&fm=35923675212481&tin=02508201610067®Number=0000000000091782&sum=40000 [09:01:14]StoreToDocumentArchive [09:01:14]shift 542 fd 117328 [09:01:14]save to /storage/0542/doc_00117328 [09:01:14]save last doc name /storage/0542/doc_00117328 to /storage/kkm_last_doc_name [09:01:14]save OK [09:01:14]Clear old archive folders... [09:01:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:14]tlvbuf is 00F9B2B0 [09:01:14]SAM_PROTO_ClearQueue [09:01:14]wFMCommunicate request_size=4 [09:01:14]MH_SAM_APDU [09:01:14]CAPDU: 80 09 00 00 [09:01:14]Write to MH i2c: E2 08 00 B6 0C 80 09 00 00 00 00 00 00 34 [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:14]Read from MH i2c: E2 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 03 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 03 00 B6 0C 00 90 00 36 [09:01:14]RAPDU: 90 00 [09:01:14]wFMCommunicate OK [09:01:14]SAM_PROTO_ClearQueue done [09:01:14]KKMCreateOFDPacket [09:01:14]OFDProtocolAddRootSTLVToBuf [09:01:14]FM_MakeSignedData [09:01:14]FM_MakeSignedData [09:01:14]SAM_PROTO_SignData [09:01:14]wFMCommunicate request_size=4 [09:01:14]MH_SAM_APDU [09:01:14]CAPDU: 80 0D 01 02 [09:01:14]Write to MH i2c: E2 08 00 B7 0C 80 0D 01 02 00 00 00 00 3C [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:14]Read from MH i2c: E2 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 03 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [09:01:14]RAPDU: 90 00 [09:01:14]wFMCommunicate OK [09:01:14]wFMCommunicate request_size=255 [09:01:14]MH_SAM_APDU [09:01: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 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 1C 00 00 00 F4 03 04 00 5B 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 50 CA 01 00 35 04 06 00 20 [09:01:14]Write to MH i2c: E2 02 01 B8 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 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 1C 00 00 00 F4 03 04 00 5B 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 50 CA 01 00 35 04 06 00 20 00 00 F5 [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:14]Read from MH i2c: E2 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 03 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [09:01:14]RAPDU: 90 00 [09:01:14]wFMCommunicate OK [09:01:14]wFMCommunicate request_size=10 [09:01:14]MH_SAM_APDU [09:01:14]CAPDU: 80 0D 02 02 05 AC 21 E6 6A C1 [09:01:14]Write to MH i2c: E2 0D 00 B9 0C 80 0D 02 02 05 00 AC 21 E6 6A C1 00 00 27 [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:14]Read from MH i2c: E2 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 03 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [09:01:14]RAPDU: 90 00 [09:01:14]wFMCommunicate OK [09:01:14]wFMCommunicate request_size=4 [09:01:14]MH_SAM_APDU [09:01:14]CAPDU: 80 0D 03 02 [09:01:14]Write to MH i2c: E2 08 00 BA 0C 80 0D 03 02 00 00 00 00 41 [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:14]Read from MH i2c: E2 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 0B 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 0B 00 BA 0C 00 BF 55 8D 0B FC E9 35 71 90 00 79 [09:01:14]RAPDU: BF 55 8D 0B FC E9 35 71 90 00 [09:01:14]wFMCommunicate OK [09:01:14]SAM_PROTO_SignData done [09:01:14]FM_MakeSignedData done [09:01:14]CreateOFDProtocolMessage [09:01:14]wFMCommunicate request_size=4 [09:01:14]MH_SAM_APDU [09:01:14]CAPDU: 80 11 00 00 [09:01:14]Write to MH i2c: E2 08 00 BB 0C 80 11 00 00 00 00 00 00 41 [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:14]Read from MH i2c: E2 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 17 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 17 00 BB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 98 [09:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:01:14]wFMCommunicate OK [09:01:14]CreateOFDProtocolMessage done [09:01:14]OFDSenderStorePacket 117328 [09:01:14]StoreOFDPacket docnum=117328 [09:01:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A5 AE 07 01 2C 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 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 1C 00 00 00 F4 03 04 00 5B 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 50 CA 01 00 35 04 06 00 20 AC 21 E6 6A C1 BF 55 8D 0B FC E9 35 71 [09:01:14]CheckFolder [09:01:14]dirname=/storage/ofd_packets [09:01:14]CheckFolder done [09:01:14]ProducePacketName [09:01:14]name=ofd_packets/00117328 [09:01:14]NVStorageSaveData ofd_packets/00117328 [09:01:14]File name is /storage/ofd_packets/00117328 [09:01:14]Write 301 bytes [09:01:14]NVStorageSaveData done [09:01:14]OFDSenderStorePacket done [09:01:14]KKMCreateOFDPacket done [09:01:14]NVStorageSaveData kkm_last_timestamp [09:01:14]File name is /storage/kkm_last_timestamp [09:01:14]Write 4 bytes [09:01:14]NVStorageSaveData done [09:01:14]ExternCall_PrintAddStr [09:01:14]wPrintStart [09:01:14]Write to MH i2c: 01 00 00 BC 0C C8 [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: 01 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: 01 07 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: 01 07 00 BC 0C 00 00 00 00 00 FF 0F DD [09:01:14]RasterBufferAndPrint [09:01:14]line Счет N : (1)245100 [09:01:14]line ИНН: 02508201610067 [09:01:14]line Контрольно-Кассовый Чек [09:01:14]line ПРОДАЖА [09:01:14]line ТРК (МРК, ГНК) : 11 [09:01:14]line Товар: 2710124130 [09:01:14]line Аи-92-К-2 [09:01:14]line 5.980 * 66.90 [09:01:14]line = 400.06 [09:01:14]line НДС 12% НСП 1% [09:01:14]line > о реализуемом товаре [09:01:14]line ОКРУГЛЕНИЕ: -0.06 [09:01:14]line ИТОГО: 400.00 [09:01:14]line Внесено: 400.00 [09:01:14]line СДАЧА: 0.00 [09:01:14]line НСП 1% : 3.54 [09:01:14]line НДС 12% : 42.48 [09:01:14]line Наличными: 400.00 [09:01:14]line Безнал.: 0.00 [09:01:14]line Место: АЗС № 173 "Партнер Нефть" [09:01:14]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:01:14]line СНО: Общий режим [09:01:14]line Чек 28 27.10.2024 09:01 [09:01:14]line Смена: 542 ФФД: 1.0 [09:01:14]line ЗНМ: 0300000115 [09:01:14]line РНМ: 0000000000091782 [09:01:14]line Версия ККМ: 001 [09:01:14]line ФМ: 0000000000871767 [09:01:14]line ФД: 117328 [09:01:14]line ФПД: 35923675212481 [09:01:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090115&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117328&fm=35923675212481&tin=02508201610067®Number=0000000000091782&sum=40000 [09:01:14]OFD Sender: Processing packet 117328 [packets to send 75, broken 74] [09:01:14]ProducePacketName [09:01:14]name=ofd_packets/00117328 [09:01:14]OFD Sender: To server: pG, [09:01:14]CommunicateWithHost lk.salyk.kg:30040 [09:01:14]ConnectInit lk.salyk.kg [09:01:14]written 0, free lines is 4095 [09:01:15]Connected sock=10 [09:01: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 36 37 0F 01 00 00 A5 AE 07 01 2C 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 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 1C 00 00 00 F4 03 04 00 5B 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 50 CA 01 00 35 04 06 00 20 AC 21 E6 6A C1 BF 55 8D 0B FC E9 35 71 [09:01: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 36 37 4F 00 00 00 A2 BD 47 00 A5 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 36 37 10 04 04 00 50 CA 01 00 F4 03 04 00 23 AD 1D 67 B6 04 01 00 00 7A F5 E3 96 87 27 8A 3A [09:01:15]CommunicateWithHost err = 0 [09:01:15]CheckOFDResponse [09:01:15]1017 (14) - 77093643461234 [09:01:15]1041 (16) - 0000000000871767 [09:01:15]1040 (4) - 117328 [09:01:15]1012 (4) - 27.10.2024 03:01 [09:01:15]1206 (1) - 0 [09:01:15]OFD Sender: Remove packet 117328 [09:01:15]ProducePacketName [09:01:15]name=ofd_packets/00117328 [09:01:15]NVStorageDeleteData [09:01:15]Write to MH i2c: 01 00 00 E6 0C F2 [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: 01 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: 01 07 00 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: 01 07 00 E6 0C 00 00 00 00 00 B9 0C BE [09:01:15]RasterBufferAndPrint [09:01:15]line [09:01:15]line [09:01:15]line [09:01:15]line [09:01:15]line [09:01:15]written 0, free lines is 3262 [09:01:15]MH_Cut [09:01:15]Write to MH i2c: D1 01 00 ED 0C 01 CB [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: D1 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: D1 01 00 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: D1 01 00 ED 0C 00 CA [09:01:15]Write to MH i2c: 01 00 00 EE 0C FA [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:15]OFD Sender: No OFD packet to send [09:01:16]*** Cut start [09:01:16]*** Purtial cut [09:01:16]*** Stage 1: CUTSNS_PIN = 1 [09:01:16]Read from MH i2c: 01 [09:01:16]MH_I2C_Read... [09:01:16]*** Stop cut motor [09:01:16]*** Cut end [09:01:16]Read from MH i2c: 01 07 00 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: 01 07 00 EE 0C 00 00 00 00 00 FF 0F 0F [09:01:16]process_action close_receipt done [09:01:16]requested_data is exist [09:01:16]produce_requested_data [09:01:16]requested_item fm.sn is exist - process it [09:01:16]wFMCommunicate request_size=4 [09:01:16]MH_SAM_APDU [09:01:16]CAPDU: 80 11 00 00 [09:01:16]Write to MH i2c: E2 08 00 EF 0C 80 11 00 00 00 00 00 00 75 [09:01:16]Write i2c OK [09:01:16]MH_I2C_Read... [09:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:16]Read from MH i2c: E2 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 17 00 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 17 00 EF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CC [09:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:01:16]wFMCommunicate OK [09:01:16]requested_item fd.num is exist - process it [09:01:16]SAM_PROTO_GetFieldsCounters [09:01:16]wFMCommunicate request_size=4 [09:01:16]MH_SAM_APDU [09:01:16]CAPDU: 80 13 00 00 [09:01:16]Write to MH i2c: E2 08 00 F0 0C 80 13 00 00 00 00 00 00 78 [09:01:16]Write i2c OK [09:01:16]MH_I2C_Read... [09:01:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:16]Read from MH i2c: E2 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 62 00 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 62 00 F0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 50 CA 01 00 0E 04 04 00 1E 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 2E [09:01:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 50 CA 01 00 0E 04 04 00 1E 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 [09:01:16]wFMCommunicate OK [09:01:16]SAM_PROTO_GetFieldsCounters done [09:01:16]requested_item shift.num is exist - process it [09:01:16]requested_item shift.opened is exist - process it [09:01:16]req_shift_opened [09:01:16]FM_GetShiftState [09:01:16]SAM_PROTO_GetShiftState [09:01:16]wFMCommunicate request_size=4 [09:01:16]MH_SAM_APDU [09:01:16]CAPDU: 80 13 01 00 [09:01:16]Write to MH i2c: E2 08 00 F1 0C 80 13 01 00 00 00 00 00 7A [09:01:16]Write i2c OK [09:01:16]MH_I2C_Read... [09:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:16]Read from MH i2c: E2 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 0E 00 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 0E 00 F1 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B9 [09:01:16]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:01:16]wFMCommunicate OK [09:01:16]SAM_PROTO_GetShiftState done [09:01:16]FM_GetShiftState done [09:01:16]req_shift_opened done [09:01:16]requested_item shift.open_date is exist - process it [09:01:16]req_shift_open_date [09:01:16]req_shift_open_date done [09:01:16]produce_requested_data done [09:01:16]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117328,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [09:01:16]process_action_free close_receipt [09:01:16]json_value_free [09:01:16]json_value_free done [09:01:16]process_json_proto returns [09:01:16]Send response to host [09:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117328,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [09:01:16]free response buf [09:01:16]execute_script done [09:01:16]execute_script returns [09:01:16]free content buf [09:01:16]Sock 7.Close socket [09:01:16]Sock 7.Thread stoped [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:28]accept exits with 9 [09:02:28]New connection [09:02:28]New thread 3066924388 created [09:02:28]Thread 3066781028 joined [09:02:28]Waiting for new connection... [09:02:28] Sock 9.Parse request [09:02:28]Sock 9.Check first char [09:02:28]Sock 9.First char is OK [09:02:28]request: POST /json_proto HTTP/1.0 [09:02:28]Method: POST [09:02:28]URL: /json_proto [09:02:28]Method is POST - this is cgi request [09:02:28]url: /json_proto [09:02:28]query_string will be loaded in cgi processing [09:02:28]execute_cgi json_proto POST (null) [09:02:28]execute_cgi path=json_proto method=POST [09:02:28]POST find Content-Length [09:02:28]Host: 172.17.96.67:8080 [09:02:28]Content-Length: 677 [09:02:28]Content-Type: application/json [09:02:28] [09:02:28]POST finish read [09:02:28]Found Content-Length = 677 [09:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:28]execute_script... [09:02: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)245102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:28]POST & json_proto [09:02:28]process_json_proto [09:02:28]json parsed OK: [09:02:28]protocol is kg_v1.0 [09:02:28]action value=close_receipt [09:02:28]process_action close_receipt [09:02:28]cmd_close_receipt [09:02:28]MH_GetDate [09:02:28]Write to MH i2c: F0 00 00 F2 0C ED [09:02:28]Write i2c OK [09:02:28]MH_I2C_Read... [09:02:28]Read from MH i2c: F0 [09:02:28]MH_I2C_Read... [09:02:28]Read from MH i2c: F0 09 00 [09:02:28]MH_I2C_Read... [09:02:28]Read from MH i2c: F0 09 00 F2 0C 00 A7 01 1E 67 F7 AE 1B 67 4A [09:02:28]GetLastDocTimeStamp 1730019675 [09:02:28]current date 1730019751 [09:02:28]FM_GetShiftState [09:02:28]SAM_PROTO_GetShiftState [09:02:28]wFMCommunicate request_size=4 [09:02:28]MH_SAM_APDU [09:02:28]CAPDU: 80 13 01 00 [09:02:28]Write to MH i2c: E2 08 00 F3 0C 80 13 01 00 00 00 00 00 7C [09:02:28]Write i2c OK [09:02:28]MH_I2C_Read... [09:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:28]Read from MH i2c: E2 [09:02:28]MH_I2C_Read... [09:02:28]Read from MH i2c: E2 0E 00 [09:02:28]MH_I2C_Read... [09:02:28]Read from MH i2c: E2 0E 00 F3 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 BB [09:02:28]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:02:28]wFMCommunicate OK [09:02:28]SAM_PROTO_GetShiftState done [09:02:28]FM_GetShiftState done [09:02:28]opened in 1729987372 [09:02:28]opened+sec_in_day 1730073772 [09:02:28]quantity*price = 30038 [09:02:28]sum+1 = 30039 [09:02:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 29 27.10.2024 09:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117329 ФПД: 117496586034628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090231&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117329&fm=117496586034628&tin=02508201610067®Number=0000000000091782&sum=30000 [09:02:29]StoreToDocumentArchive [09:02:29]shift 542 fd 117329 [09:02:29]save to /storage/0542/doc_00117329 [09:02:29]save last doc name /storage/0542/doc_00117329 to /storage/kkm_last_doc_name [09:02:29]save OK [09:02:29]Clear old archive folders... [09:02:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:29]tlvbuf is 010034F0 [09:02:29]SAM_PROTO_ClearQueue [09:02:29]wFMCommunicate request_size=4 [09:02:29]MH_SAM_APDU [09:02:29]CAPDU: 80 09 00 00 [09:02:29]Write to MH i2c: E2 08 00 00 0D 80 09 00 00 00 00 00 00 7F [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [09:02:29]RAPDU: 90 00 [09:02:29]wFMCommunicate OK [09:02:29]SAM_PROTO_ClearQueue done [09:02:29]KKMCreateOFDPacket [09:02:29]OFDProtocolAddRootSTLVToBuf [09:02:29]FM_MakeSignedData [09:02:29]FM_MakeSignedData [09:02:29]SAM_PROTO_SignData [09:02:29]wFMCommunicate request_size=4 [09:02:29]MH_SAM_APDU [09:02:29]CAPDU: 80 0D 01 02 [09:02:29]Write to MH i2c: E2 08 00 01 0D 80 0D 01 02 00 00 00 00 87 [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [09:02:29]RAPDU: 90 00 [09:02:29]wFMCommunicate OK [09:02:29]wFMCommunicate request_size=255 [09:02:29]MH_SAM_APDU [09:02: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 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 1D 00 00 00 F4 03 04 00 A7 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 51 CA 01 00 35 04 06 00 6A [09:02:29]Write to MH i2c: E2 02 01 02 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 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 1D 00 00 00 F4 03 04 00 A7 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 51 CA 01 00 35 04 06 00 6A 00 00 FD [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [09:02:29]RAPDU: 90 00 [09:02:29]wFMCommunicate OK [09:02:29]wFMCommunicate request_size=10 [09:02:29]MH_SAM_APDU [09:02:29]CAPDU: 80 0D 02 02 05 DC CE 45 DD C4 [09:02:29]Write to MH i2c: E2 0D 00 03 0D 80 0D 02 02 05 00 DC CE 45 DD C4 00 00 24 [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 03 0D 00 90 00 84 [09:02:29]RAPDU: 90 00 [09:02:29]wFMCommunicate OK [09:02:29]wFMCommunicate request_size=4 [09:02:29]MH_SAM_APDU [09:02:29]CAPDU: 80 0D 03 02 [09:02:29]Write to MH i2c: E2 08 00 04 0D 80 0D 03 02 00 00 00 00 8C [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 0B 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 0B 00 04 0D 00 04 D7 3C 5B AE D8 26 FA 90 00 A5 [09:02:29]RAPDU: 04 D7 3C 5B AE D8 26 FA 90 00 [09:02:29]wFMCommunicate OK [09:02:29]SAM_PROTO_SignData done [09:02:29]FM_MakeSignedData done [09:02:29]CreateOFDProtocolMessage [09:02:29]wFMCommunicate request_size=4 [09:02:29]MH_SAM_APDU [09:02:29]CAPDU: 80 11 00 00 [09:02:29]Write to MH i2c: E2 08 00 05 0D 80 11 00 00 00 00 00 00 8C [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:30]Read from MH i2c: E2 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 17 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 17 00 05 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E3 [09:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:02:30]wFMCommunicate OK [09:02:30]CreateOFDProtocolMessage done [09:02:30]OFDSenderStorePacket 117329 [09:02:30]StoreOFDPacket docnum=117329 [09:02:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 38 3C 07 01 C4 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 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 1D 00 00 00 F4 03 04 00 A7 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 51 CA 01 00 35 04 06 00 6A DC CE 45 DD C4 04 D7 3C 5B AE D8 26 FA [09:02:30]CheckFolder [09:02:30]dirname=/storage/ofd_packets [09:02:30]CheckFolder done [09:02:30]ProducePacketName [09:02:30]name=ofd_packets/00117329 [09:02:30]NVStorageSaveData ofd_packets/00117329 [09:02:30]File name is /storage/ofd_packets/00117329 [09:02:30]Write 301 bytes [09:02:30]NVStorageSaveData done [09:02:30]OFDSenderStorePacket done [09:02:30]KKMCreateOFDPacket done [09:02:30]NVStorageSaveData kkm_last_timestamp [09:02:30]File name is /storage/kkm_last_timestamp [09:02:30]Write 4 bytes [09:02:30]NVStorageSaveData done [09:02:30]ExternCall_PrintAddStr [09:02:30]wPrintStart [09:02:30]Write to MH i2c: 01 00 00 06 0D 13 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: 01 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: 01 07 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: 01 07 00 06 0D 00 00 00 00 00 FF 0F 28 [09:02:30]RasterBufferAndPrint [09:02:30]line Счет N : (1)245102 [09:02:30]line ИНН: 02508201610067 [09:02:30]line Контрольно-Кассовый Чек [09:02:30]line ПРОДАЖА [09:02:30]line ТРК (МРК, ГНК) : 21 [09:02:30]line Товар: 2710124130 [09:02:30]line Аи-92-К-2 [09:02:30]line 4.490 * 66.90 [09:02:30]line = 300.38 [09:02:30]line НДС 12% НСП 1% [09:02:30]line > о реализуемом товаре [09:02:30]line ОКРУГЛЕНИЕ: -0.38 [09:02:30]line ИТОГО: 300.00 [09:02:30]line Внесено: 300.00 [09:02:30]line СДАЧА: 0.00 [09:02:30]line НСП 1% : 2.66 [09:02:30]line НДС 12% : 31.90 [09:02:30]line Наличными: 300.00 [09:02:30]line Безнал.: 0.00 [09:02:30]line Место: АЗС № 173 "Партнер Нефть" [09:02:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:02:30]line СНО: Общий режим [09:02:30]line Чек 29 27.10.2024 09:02 [09:02:30]line Смена: 542 ФФД: 1.0 [09:02:30]line ЗНМ: 0300000115 [09:02:30]line РНМ: 0000000000091782 [09:02:30]line Версия ККМ: 001 [09:02:30]line ФМ: 0000000000871767 [09:02:30]line ФД: 117329 [09:02:30]line ФПД: 117496586034628 [09:02:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090231&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117329&fm=117496586034628&tin=02508201610067®Number=0000000000091782&sum=30000 [09:02:30]written 0, free lines is 4095 [09:02:30]OFD Sender: Processing packet 117329 [packets to send 75, broken 74] [09:02:30]ProducePacketName [09:02:30]name=ofd_packets/00117329 [09:02:30]OFD Sender: To server: pG, [09:02:30]CommunicateWithHost lk.salyk.kg:30040 [09:02:30]ConnectInit lk.salyk.kg [09:02:30]Connected sock=10 [09:02: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 36 37 0F 01 00 00 38 3C 07 01 C4 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 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 1D 00 00 00 F4 03 04 00 A7 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 51 CA 01 00 35 04 06 00 6A DC CE 45 DD C4 04 D7 3C 5B AE D8 26 FA [09:02: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 36 37 4F 00 00 00 10 88 47 00 23 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 36 37 10 04 04 00 51 CA 01 00 F4 03 04 00 6E AD 1D 67 B6 04 01 00 00 CF 0F 48 C6 A3 5E D1 D6 [09:02:30]CommunicateWithHost err = 0 [09:02:30]CheckOFDResponse [09:02:30]1017 (14) - 77093643461234 [09:02:30]1041 (16) - 0000000000871767 [09:02:30]1040 (4) - 117329 [09:02:30]1012 (4) - 27.10.2024 03:03 [09:02:30]1206 (1) - 0 [09:02:30]OFD Sender: Remove packet 117329 [09:02:30]ProducePacketName [09:02:30]name=ofd_packets/00117329 [09:02:30]NVStorageDeleteData [09:02:30]Write to MH i2c: 01 00 00 30 0D 3D [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: 01 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: 01 07 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 C0 0C 10 [09:02:30]RasterBufferAndPrint [09:02:30]line [09:02:30]line [09:02:30]line [09:02:30]line [09:02:30]line [09:02:30]written 0, free lines is 3270 [09:02:30]MH_Cut [09:02:30]Write to MH i2c: D1 01 00 37 0D 01 16 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: D1 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: D1 01 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: D1 01 00 37 0D 00 15 [09:02:30]Write to MH i2c: 01 00 00 38 0D 45 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:31]OFD Sender: No OFD packet to send [09:02:31]*** Cut start [09:02:31]*** Purtial cut [09:02:31]*** Stage 1: CUTSNS_PIN = 1 [09:02:31]Read from MH i2c: 01 [09:02:31]MH_I2C_Read... [09:02:31]*** Stop cut motor [09:02:31]*** Cut end [09:02:31]Read from MH i2c: 01 07 00 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 FF 0F 5A [09:02:31]process_action close_receipt done [09:02:31]requested_data is exist [09:02:31]produce_requested_data [09:02:31]requested_item fm.sn is exist - process it [09:02:31]wFMCommunicate request_size=4 [09:02:31]MH_SAM_APDU [09:02:31]CAPDU: 80 11 00 00 [09:02:31]Write to MH i2c: E2 08 00 39 0D 80 11 00 00 00 00 00 00 C0 [09:02:31]Write i2c OK [09:02:31]MH_I2C_Read... [09:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:32]Read from MH i2c: E2 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 17 00 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 17 00 39 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 17 [09:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:02:32]wFMCommunicate OK [09:02:32]requested_item fd.num is exist - process it [09:02:32]SAM_PROTO_GetFieldsCounters [09:02:32]wFMCommunicate request_size=4 [09:02:32]MH_SAM_APDU [09:02:32]CAPDU: 80 13 00 00 [09:02:32]Write to MH i2c: E2 08 00 3A 0D 80 13 00 00 00 00 00 00 C3 [09:02:32]Write i2c OK [09:02:32]MH_I2C_Read... [09:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:32]Read from MH i2c: E2 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 62 00 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 62 00 3A 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 51 CA 01 00 0E 04 04 00 1E 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 7D [09:02: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 51 CA 01 00 0E 04 04 00 1E 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 [09:02:32]wFMCommunicate OK [09:02:32]SAM_PROTO_GetFieldsCounters done [09:02:32]requested_item shift.num is exist - process it [09:02:32]requested_item shift.opened is exist - process it [09:02:32]req_shift_opened [09:02:32]FM_GetShiftState [09:02:32]SAM_PROTO_GetShiftState [09:02:32]wFMCommunicate request_size=4 [09:02:32]MH_SAM_APDU [09:02:32]CAPDU: 80 13 01 00 [09:02:32]Write to MH i2c: E2 08 00 3B 0D 80 13 01 00 00 00 00 00 C5 [09:02:32]Write i2c OK [09:02:32]MH_I2C_Read... [09:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:32]Read from MH i2c: E2 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 0E 00 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 0E 00 3B 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 04 [09:02:32]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:02:32]wFMCommunicate OK [09:02:32]SAM_PROTO_GetShiftState done [09:02:32]FM_GetShiftState done [09:02:32]req_shift_opened done [09:02:32]requested_item shift.open_date is exist - process it [09:02:32]req_shift_open_date [09:02:32]req_shift_open_date done [09:02:32]produce_requested_data done [09:02:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117329,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [09:02:32]process_action_free close_receipt [09:02:32]json_value_free [09:02:32]json_value_free done [09:02:32]process_json_proto returns [09:02:32]Send response to host [09:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117329,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [09:02:32]free response buf [09:02:32]execute_script done [09:02:32]execute_script returns [09:02:32]free content buf [09:02:32]Sock 9.Close socket [09:02:32]Sock 9.Thread stoped [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:15]accept exits with 7 [09:03:15]New connection [09:03:15]New thread 3066781028 created [09:03:15]Thread 3066924388 joined [09:03:15]Waiting for new connection... [09:03:15] Sock 7.Parse request [09:03:15]Sock 7.Check first char [09:03:15]Sock 7.First char is OK [09:03:15]request: POST /json_proto HTTP/1.0 [09:03:15]Method: POST [09:03:15]URL: /json_proto [09:03:15]Method is POST - this is cgi request [09:03:15]url: /json_proto [09:03:15]query_string will be loaded in cgi processing [09:03:15]execute_cgi json_proto POST (null) [09:03:15]execute_cgi path=json_proto method=POST [09:03:15]POST find Content-Length [09:03:15]Host: 172.17.96.67:8080 [09:03:15]Content-Length: 682 [09:03:15]Content-Type: application/json [09:03:15] [09:03:15]POST finish read [09:03:15]Found Content-Length = 682 [09:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:03:15]execute_script... [09:03: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)245101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:03:15]POST & json_proto [09:03:15]process_json_proto [09:03:15]json parsed OK: [09:03:15]protocol is kg_v1.0 [09:03:15]action value=close_receipt [09:03:15]process_action close_receipt [09:03:15]cmd_close_receipt [09:03:15]MH_GetDate [09:03:15]Write to MH i2c: F0 00 00 3C 0D 38 [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: F0 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: F0 09 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: F0 09 00 3C 0D 00 D6 01 1E 67 F7 AE 1B 67 C4 [09:03:15]GetLastDocTimeStamp 1730019751 [09:03:15]current date 1730019798 [09:03:15]FM_GetShiftState [09:03:15]SAM_PROTO_GetShiftState [09:03:15]wFMCommunicate request_size=4 [09:03:15]MH_SAM_APDU [09:03:15]CAPDU: 80 13 01 00 [09:03:15]Write to MH i2c: E2 08 00 3D 0D 80 13 01 00 00 00 00 00 C7 [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:15]Read from MH i2c: E2 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 0E 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 0E 00 3D 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 06 [09:03:15]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:03:15]wFMCommunicate OK [09:03:15]SAM_PROTO_GetShiftState done [09:03:15]FM_GetShiftState done [09:03:15]opened in 1729987372 [09:03:15]opened+sec_in_day 1730073772 [09:03:15]quantity*price = 100015 [09:03:15]sum+1 = 100017 [09:03: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 30 27.10.2024 09:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117330 ФПД: 233647699615494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090318&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117330&fm=233647699615494&tin=02508201610067®Number=0000000000091782&sum=100000 [09:03:16]StoreToDocumentArchive [09:03:16]shift 542 fd 117330 [09:03:16]save to /storage/0542/doc_00117330 [09:03:16]save last doc name /storage/0542/doc_00117330 to /storage/kkm_last_doc_name [09:03:16]save OK [09:03:16]Clear old archive folders... [09:03:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:16]tlvbuf is 00F7CA40 [09:03:16]SAM_PROTO_ClearQueue [09:03:16]wFMCommunicate request_size=4 [09:03:16]MH_SAM_APDU [09:03:16]CAPDU: 80 09 00 00 [09:03:16]Write to MH i2c: E2 08 00 4A 0D 80 09 00 00 00 00 00 00 C9 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:16]Read from MH i2c: E2 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [09:03:16]RAPDU: 90 00 [09:03:16]wFMCommunicate OK [09:03:16]SAM_PROTO_ClearQueue done [09:03:16]KKMCreateOFDPacket [09:03:16]OFDProtocolAddRootSTLVToBuf [09:03:16]FM_MakeSignedData [09:03:16]FM_MakeSignedData [09:03:16]SAM_PROTO_SignData [09:03:16]wFMCommunicate request_size=4 [09:03:16]MH_SAM_APDU [09:03:16]CAPDU: 80 0D 01 02 [09:03:16]Write to MH i2c: E2 08 00 4B 0D 80 0D 01 02 00 00 00 00 D1 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [09:03:17]RAPDU: 90 00 [09:03:17]wFMCommunicate OK [09:03:17]wFMCommunicate request_size=255 [09:03:17]MH_SAM_APDU [09:03: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 1E 00 00 00 F4 03 04 00 D6 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 52 CA 01 00 35 04 06 00 D4 [09:03:17]Write to MH i2c: E2 02 01 4C 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 1E 00 00 00 F4 03 04 00 D6 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 52 CA 01 00 35 04 06 00 D4 00 00 E8 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [09:03:17]RAPDU: 90 00 [09:03:17]wFMCommunicate OK [09:03:17]wFMCommunicate request_size=10 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 0D 02 02 05 80 58 23 5F 06 [09:03:17]Write to MH i2c: E2 0D 00 4D 0D 80 0D 02 02 05 00 80 58 23 5F 06 00 00 3E [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [09:03:17]RAPDU: 90 00 [09:03:17]wFMCommunicate OK [09:03:17]wFMCommunicate request_size=4 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 0D 03 02 [09:03:17]Write to MH i2c: E2 08 00 4E 0D 80 0D 03 02 00 00 00 00 D6 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 0B 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 0B 00 4E 0D 00 0A 97 AA 3C 27 69 10 59 90 00 57 [09:03:17]RAPDU: 0A 97 AA 3C 27 69 10 59 90 00 [09:03:17]wFMCommunicate OK [09:03:17]SAM_PROTO_SignData done [09:03:17]FM_MakeSignedData done [09:03:17]CreateOFDProtocolMessage [09:03:17]wFMCommunicate request_size=4 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 11 00 00 [09:03:17]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 17 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2D [09:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:03:17]wFMCommunicate OK [09:03:17]CreateOFDProtocolMessage done [09:03:17]OFDSenderStorePacket 117330 [09:03:17]StoreOFDPacket docnum=117330 [09:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4F 21 07 01 90 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 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 1E 00 00 00 F4 03 04 00 D6 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 52 CA 01 00 35 04 06 00 D4 80 58 23 5F 06 0A 97 AA 3C 27 69 10 59 [09:03:17]CheckFolder [09:03:17]dirname=/storage/ofd_packets [09:03:17]CheckFolder done [09:03:17]ProducePacketName [09:03:17]name=ofd_packets/00117330 [09:03:17]NVStorageSaveData ofd_packets/00117330 [09:03:17]File name is /storage/ofd_packets/00117330 [09:03:17]Write 301 bytes [09:03:17]NVStorageSaveData done [09:03:17]OFDSenderStorePacket done [09:03:17]KKMCreateOFDPacket done [09:03:17]NVStorageSaveData kkm_last_timestamp [09:03:17]File name is /storage/kkm_last_timestamp [09:03:17]Write 4 bytes [09:03:17]NVStorageSaveData done [09:03:17]ExternCall_PrintAddStr [09:03:17]wPrintStart [09:03:17]Write to MH i2c: 01 00 00 50 0D 5D [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 50 0D 00 00 00 00 00 FF 0F 72 [09:03:17]RasterBufferAndPrint [09:03:17]line Счет N : (1)245101 [09:03:17]line ИНН: 02508201610067 [09:03:17]line Контрольно-Кассовый Чек [09:03:17]line ПРОДАЖА [09:03:17]line ТРК (МРК, ГНК) : 11 [09:03:17]line Товар: 2710124130 [09:03:17]line Аи-92-К-2 [09:03:17]line 14.950 * 66.90 [09:03:17]line = 1000.16 [09:03:17]line НДС 12% НСП 1% [09:03:17]line > о реализуемом товаре [09:03:17]line ОКРУГЛЕНИЕ: -0.16 [09:03:17]line ИТОГО: 1000.00 [09:03:17]line Внесено: 1000.00 [09:03:17]line СДАЧА: 0.00 [09:03:17]line НСП 1% : 8.85 [09:03:17]line НДС 12% : 106.21 [09:03:17]line Наличными: 1000.00 [09:03:17]line Безнал.: 0.00 [09:03:17]line Место: АЗС № 173 "Партнер Нефть" [09:03:17]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:03:17]line СНО: Общий режим [09:03:17]line Чек 30 27.10.2024 09:03 [09:03:17]line Смена: 542 ФФД: 1.0 [09:03:17]line ЗНМ: 0300000115 [09:03:17]line РНМ: 0000000000091782 [09:03:17]line Версия ККМ: 001 [09:03:17]line ФМ: 0000000000871767 [09:03:17]line ФД: 117330 [09:03:17]line ФПД: 233647699615494 [09:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090318&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117330&fm=233647699615494&tin=02508201610067®Number=0000000000091782&sum=100000 [09:03:17]OFD Sender: Processing packet 117330 [packets to send 75, broken 74] [09:03:17]ProducePacketName [09:03:17]name=ofd_packets/00117330 [09:03:17]OFD Sender: To server: pG, [09:03:17]CommunicateWithHost lk.salyk.kg:30040 [09:03:17]ConnectInit lk.salyk.kg [09:03:17]written 0, free lines is 4095 [09:03:17]Connected sock=9 [09:03: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 36 37 0F 01 00 00 4F 21 07 01 90 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 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 1E 00 00 00 F4 03 04 00 D6 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 52 CA 01 00 35 04 06 00 D4 80 58 23 5F 06 0A 97 AA 3C 27 69 10 59 [09:03: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 36 37 4F 00 00 00 8A BB 47 00 FA 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 36 37 10 04 04 00 52 CA 01 00 F4 03 04 00 9D AD 1D 67 B6 04 01 00 00 44 A3 88 B5 62 7C F0 D5 [09:03:18]CommunicateWithHost err = 0 [09:03:18]CheckOFDResponse [09:03:18]1017 (14) - 77093643461234 [09:03:18]1041 (16) - 0000000000871767 [09:03:18]1040 (4) - 117330 [09:03:18]1012 (4) - 27.10.2024 03:03 [09:03:18]1206 (1) - 0 [09:03:18]OFD Sender: Remove packet 117330 [09:03:18]ProducePacketName [09:03:18]name=ofd_packets/00117330 [09:03:18]NVStorageDeleteData [09:03:18]Write to MH i2c: 01 00 00 7A 0D 87 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 07 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 C7 0C 61 [09:03:18]RasterBufferAndPrint [09:03:18]line [09:03:18]line [09:03:18]line [09:03:18]line [09:03:18]line [09:03:18]written 0, free lines is 3279 [09:03:18]MH_Cut [09:03:18]Write to MH i2c: D1 01 00 81 0D 01 60 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: D1 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: D1 01 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: D1 01 00 81 0D 00 5F [09:03:18]Write to MH i2c: 01 00 00 82 0D 8F [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]OFD Sender: No OFD packet to send [09:03:19]*** Cut start [09:03:19]*** Purtial cut [09:03:19]*** Stage 1: CUTSNS_PIN = 1 [09:03:19]Read from MH i2c: 01 [09:03:19]MH_I2C_Read... [09:03:19]*** Stop cut motor [09:03:19]*** Cut end [09:03:19]Read from MH i2c: 01 07 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 FF 0F A4 [09:03:19]process_action close_receipt done [09:03:19]requested_data is exist [09:03:19]produce_requested_data [09:03:19]requested_item fm.sn is exist - process it [09:03:19]wFMCommunicate request_size=4 [09:03:19]MH_SAM_APDU [09:03:19]CAPDU: 80 11 00 00 [09:03:19]Write to MH i2c: E2 08 00 83 0D 80 11 00 00 00 00 00 00 0A [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:19]Read from MH i2c: E2 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 17 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 17 00 83 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 61 [09:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:03:19]wFMCommunicate OK [09:03:19]requested_item fd.num is exist - process it [09:03:19]SAM_PROTO_GetFieldsCounters [09:03:19]wFMCommunicate request_size=4 [09:03:19]MH_SAM_APDU [09:03:19]CAPDU: 80 13 00 00 [09:03:19]Write to MH i2c: E2 08 00 84 0D 80 13 00 00 00 00 00 00 0D [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:19]Read from MH i2c: E2 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 62 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 62 00 84 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 52 CA 01 00 0E 04 04 00 1E 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 CB [09:03: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 52 CA 01 00 0E 04 04 00 1E 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 [09:03:19]wFMCommunicate OK [09:03:19]SAM_PROTO_GetFieldsCounters done [09:03:19]requested_item shift.num is exist - process it [09:03:19]requested_item shift.opened is exist - process it [09:03:19]req_shift_opened [09:03:19]FM_GetShiftState [09:03:19]SAM_PROTO_GetShiftState [09:03:19]wFMCommunicate request_size=4 [09:03:19]MH_SAM_APDU [09:03:19]CAPDU: 80 13 01 00 [09:03:19]Write to MH i2c: E2 08 00 85 0D 80 13 01 00 00 00 00 00 0F [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:19]Read from MH i2c: E2 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 0E 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 0E 00 85 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 4E [09:03:19]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:03:19]wFMCommunicate OK [09:03:19]SAM_PROTO_GetShiftState done [09:03:19]FM_GetShiftState done [09:03:19]req_shift_opened done [09:03:19]requested_item shift.open_date is exist - process it [09:03:19]req_shift_open_date [09:03:19]req_shift_open_date done [09:03:19]produce_requested_data done [09:03:19]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117330,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [09:03:19]process_action_free close_receipt [09:03:19]json_value_free [09:03:19]json_value_free done [09:03:19]process_json_proto returns [09:03:19]Send response to host [09:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117330,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [09:03:19]free response buf [09:03:19]execute_script done [09:03:19]execute_script returns [09:03:19]free content buf [09:03:19]Sock 7.Close socket [09:03:19]Sock 7.Thread stoped [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:19]accept exits with 10 [09:05:19]New connection [09:05:19]New thread 3066924388 created [09:05:19]Thread 3066781028 joined [09:05:19]Waiting for new connection... [09:05:19] Sock 10.Parse request [09:05:19]Sock 10.Check first char [09:05:19]Sock 10.First char is OK [09:05:19]request: POST /json_proto HTTP/1.0 [09:05:19]Method: POST [09:05:19]URL: /json_proto [09:05:19]Method is POST - this is cgi request [09:05:19]url: /json_proto [09:05:19]query_string will be loaded in cgi processing [09:05:19]execute_cgi json_proto POST (null) [09:05:19]execute_cgi path=json_proto method=POST [09:05:19]POST find Content-Length [09:05:19]Host: 172.17.96.67:8080 [09:05:19]Content-Length: 677 [09:05:19]Content-Type: application/json [09:05:19] [09:05:19]POST finish read [09:05:19]Found Content-Length = 677 [09:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:05:19]execute_script... [09:05: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)245103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:05:19]POST & json_proto [09:05:19]process_json_proto [09:05:19]json parsed OK: [09:05:19]protocol is kg_v1.0 [09:05:19]action value=close_receipt [09:05:19]process_action close_receipt [09:05:19]cmd_close_receipt [09:05:19]MH_GetDate [09:05:19]Write to MH i2c: F0 00 00 86 0D 82 [09:05:19]Write i2c OK [09:05:19]MH_I2C_Read... [09:05:19]Read from MH i2c: F0 [09:05:19]MH_I2C_Read... [09:05:19]Read from MH i2c: F0 09 00 [09:05:19]MH_I2C_Read... [09:05:19]Read from MH i2c: F0 09 00 86 0D 00 52 02 1E 67 F7 AE 1B 67 8B [09:05:19]GetLastDocTimeStamp 1730019798 [09:05:19]current date 1730019922 [09:05:19]FM_GetShiftState [09:05:19]SAM_PROTO_GetShiftState [09:05:19]wFMCommunicate request_size=4 [09:05:19]MH_SAM_APDU [09:05:19]CAPDU: 80 13 01 00 [09:05:19]Write to MH i2c: E2 08 00 87 0D 80 13 01 00 00 00 00 00 11 [09:05:19]Write i2c OK [09:05:19]MH_I2C_Read... [09:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:19]Read from MH i2c: E2 [09:05:19]MH_I2C_Read... [09:05:19]Read from MH i2c: E2 0E 00 [09:05:19]MH_I2C_Read... [09:05:19]Read from MH i2c: E2 0E 00 87 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 50 [09:05:19]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:05:19]wFMCommunicate OK [09:05:19]SAM_PROTO_GetShiftState done [09:05:19]FM_GetShiftState done [09:05:19]opened in 1729987372 [09:05:19]opened+sec_in_day 1730073772 [09:05:19]quantity*price = 40006 [09:05:19]sum+1 = 40007 [09:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 31 27.10.2024 09:05 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117331 ФПД: 5155473682915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090522&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117331&fm=5155473682915&tin=02508201610067®Number=0000000000091782&sum=40000 [09:05:20]StoreToDocumentArchive [09:05:20]shift 542 fd 117331 [09:05:20]save to /storage/0542/doc_00117331 [09:05:20]save last doc name /storage/0542/doc_00117331 to /storage/kkm_last_doc_name [09:05:20]save OK [09:05:20]Clear old archive folders... [09:05:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:20]tlvbuf is 00F7C4F0 [09:05:20]SAM_PROTO_ClearQueue [09:05:20]wFMCommunicate request_size=4 [09:05:20]MH_SAM_APDU [09:05:20]CAPDU: 80 09 00 00 [09:05:20]Write to MH i2c: E2 08 00 94 0D 80 09 00 00 00 00 00 00 13 [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:20]Read from MH i2c: E2 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 03 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [09:05:20]RAPDU: 90 00 [09:05:20]wFMCommunicate OK [09:05:20]SAM_PROTO_ClearQueue done [09:05:20]KKMCreateOFDPacket [09:05:20]OFDProtocolAddRootSTLVToBuf [09:05:20]FM_MakeSignedData [09:05:20]FM_MakeSignedData [09:05:20]SAM_PROTO_SignData [09:05:20]wFMCommunicate request_size=4 [09:05:20]MH_SAM_APDU [09:05:20]CAPDU: 80 0D 01 02 [09:05:20]Write to MH i2c: E2 08 00 95 0D 80 0D 01 02 00 00 00 00 1B [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:20]Read from MH i2c: E2 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 03 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [09:05:20]RAPDU: 90 00 [09:05:20]wFMCommunicate OK [09:05:20]wFMCommunicate request_size=255 [09:05:20]MH_SAM_APDU [09:05: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 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 1F 00 00 00 F4 03 04 00 52 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 53 CA 01 00 35 04 06 00 04 [09:05:20]Write to MH i2c: E2 02 01 96 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 1F 00 00 00 F4 03 04 00 52 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 53 CA 01 00 35 04 06 00 04 00 00 B6 [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:20]Read from MH i2c: E2 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 03 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 03 00 96 0D 00 90 00 17 [09:05:20]RAPDU: 90 00 [09:05:20]wFMCommunicate OK [09:05:20]wFMCommunicate request_size=10 [09:05:20]MH_SAM_APDU [09:05:20]CAPDU: 80 0D 02 02 05 B0 5A 2D 71 E3 [09:05:20]Write to MH i2c: E2 0D 00 97 0D 80 0D 02 02 05 00 B0 5A 2D 71 E3 00 00 B3 [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:20]Read from MH i2c: E2 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 03 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 03 00 97 0D 00 90 00 18 [09:05:20]RAPDU: 90 00 [09:05:20]wFMCommunicate OK [09:05:20]wFMCommunicate request_size=4 [09:05:20]MH_SAM_APDU [09:05:20]CAPDU: 80 0D 03 02 [09:05:20]Write to MH i2c: E2 08 00 98 0D 80 0D 03 02 00 00 00 00 20 [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:20]Read from MH i2c: E2 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 0B 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 0B 00 98 0D 00 D8 4F EE 68 92 1F C4 63 90 00 76 [09:05:20]RAPDU: D8 4F EE 68 92 1F C4 63 90 00 [09:05:20]wFMCommunicate OK [09:05:20]SAM_PROTO_SignData done [09:05:20]FM_MakeSignedData done [09:05:20]CreateOFDProtocolMessage [09:05:20]wFMCommunicate request_size=4 [09:05:20]MH_SAM_APDU [09:05:20]CAPDU: 80 11 00 00 [09:05:20]Write to MH i2c: E2 08 00 99 0D 80 11 00 00 00 00 00 00 20 [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:20]Read from MH i2c: E2 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 17 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 17 00 99 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 77 [09:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:05:20]wFMCommunicate OK [09:05:20]CreateOFDProtocolMessage done [09:05:20]OFDSenderStorePacket 117331 [09:05:20]StoreOFDPacket docnum=117331 [09:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 23 A0 07 01 91 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 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 1F 00 00 00 F4 03 04 00 52 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 53 CA 01 00 35 04 06 00 04 B0 5A 2D 71 E3 D8 4F EE 68 92 1F C4 63 [09:05:20]CheckFolder [09:05:20]dirname=/storage/ofd_packets [09:05:20]CheckFolder done [09:05:20]ProducePacketName [09:05:20]name=ofd_packets/00117331 [09:05:20]NVStorageSaveData ofd_packets/00117331 [09:05:20]File name is /storage/ofd_packets/00117331 [09:05:20]Write 301 bytes [09:05:20]NVStorageSaveData done [09:05:20]OFDSenderStorePacket done [09:05:20]KKMCreateOFDPacket done [09:05:20]NVStorageSaveData kkm_last_timestamp [09:05:20]File name is /storage/kkm_last_timestamp [09:05:20]Write 4 bytes [09:05:20]NVStorageSaveData done [09:05:20]ExternCall_PrintAddStr [09:05:20]wPrintStart [09:05:20]Write to MH i2c: 01 00 00 9A 0D A7 [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: 01 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: 01 07 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: 01 07 00 9A 0D 00 00 00 00 00 FF 0F BC [09:05:20]RasterBufferAndPrint [09:05:20]line Счет N : (1)245103 [09:05:20]line ИНН: 02508201610067 [09:05:20]line Контрольно-Кассовый Чек [09:05:20]line ПРОДАЖА [09:05:20]line ТРК (МРК, ГНК) : 11 [09:05:20]line Товар: 2710124130 [09:05:20]line Аи-92-К-2 [09:05:20]line 5.980 * 66.90 [09:05:20]line = 400.06 [09:05:20]line НДС 12% НСП 1% [09:05:20]line > о реализуемом товаре [09:05:20]line ОКРУГЛЕНИЕ: -0.06 [09:05:20]line ИТОГО: 400.00 [09:05:20]line Внесено: 400.00 [09:05:20]line СДАЧА: 0.00 [09:05:20]line НСП 1% : 3.54 [09:05:20]line НДС 12% : 42.48 [09:05:20]line Наличными: 400.00 [09:05:20]line Безнал.: 0.00 [09:05:20]line Место: АЗС № 173 "Партнер Нефть" [09:05:20]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:05:20]line СНО: Общий режим [09:05:20]line Чек 31 27.10.2024 09:05 [09:05:20]line Смена: 542 ФФД: 1.0 [09:05:20]line ЗНМ: 0300000115 [09:05:20]line РНМ: 0000000000091782 [09:05:20]line Версия ККМ: 001 [09:05:20]line ФМ: 0000000000871767 [09:05:20]line ФД: 117331 [09:05:20]line ФПД: 5155473682915 [09:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090522&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117331&fm=5155473682915&tin=02508201610067®Number=0000000000091782&sum=40000 [09:05:20]written 0, free lines is 4095 [09:05:21]OFD Sender: Processing packet 117331 [packets to send 75, broken 74] [09:05:21]ProducePacketName [09:05:21]name=ofd_packets/00117331 [09:05:21]OFD Sender: To server: pG, [09:05:21]CommunicateWithHost lk.salyk.kg:30040 [09:05:21]ConnectInit lk.salyk.kg [09:05:21]Connected sock=9 [09:05: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 36 37 0F 01 00 00 23 A0 07 01 91 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 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 1F 00 00 00 F4 03 04 00 52 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 53 CA 01 00 35 04 06 00 04 B0 5A 2D 71 E3 D8 4F EE 68 92 1F C4 63 [09:05: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 36 37 4F 00 00 00 87 25 47 00 D5 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 36 37 10 04 04 00 53 CA 01 00 F4 03 04 00 19 AE 1D 67 B6 04 01 00 00 B3 93 8C 8F 57 C6 7F 21 [09:05:21]CommunicateWithHost err = 0 [09:05:21]CheckOFDResponse [09:05:21]1017 (14) - 77093643461234 [09:05:21]1041 (16) - 0000000000871767 [09:05:21]1040 (4) - 117331 [09:05:21]1012 (4) - 27.10.2024 03:06 [09:05:21]1206 (1) - 0 [09:05:21]OFD Sender: Remove packet 117331 [09:05:21]ProducePacketName [09:05:21]name=ofd_packets/00117331 [09:05:21]NVStorageDeleteData [09:05:21]Write to MH i2c: 01 00 00 C4 0D D1 [09:05:21]Write i2c OK [09:05:21]MH_I2C_Read... [09:05:21]Read from MH i2c: 01 [09:05:21]MH_I2C_Read... [09:05:21]Read from MH i2c: 01 07 00 [09:05:21]MH_I2C_Read... [09:05:21]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 B5 0C 99 [09:05:21]RasterBufferAndPrint [09:05:21]line [09:05:21]line [09:05:21]line [09:05:21]line [09:05:21]line [09:05:21]written 0, free lines is 3259 [09:05:21]MH_Cut [09:05:21]Write to MH i2c: D1 01 00 CB 0D 01 AA [09:05:21]Write i2c OK [09:05:21]MH_I2C_Read... [09:05:21]Read from MH i2c: D1 [09:05:21]MH_I2C_Read... [09:05:21]Read from MH i2c: D1 01 00 [09:05:21]MH_I2C_Read... [09:05:21]Read from MH i2c: D1 01 00 CB 0D 00 A9 [09:05:21]Write to MH i2c: 01 00 00 CC 0D D9 [09:05:21]Write i2c OK [09:05:21]MH_I2C_Read... [09:05:21]OFD Sender: No OFD packet to send [09:05:22]*** Cut start [09:05:22]*** Purtial cut [09:05:22]*** Stage 1: CUTSNS_PIN = 1 [09:05:22]Read from MH i2c: 01 [09:05:22]MH_I2C_Read... [09:05:22]*** Stop cut motor [09:05:22]*** Cut end [09:05:22]Read from MH i2c: 01 07 00 [09:05:22]MH_I2C_Read... [09:05:22]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 FF 0F EE [09:05:22]process_action close_receipt done [09:05:22]requested_data is exist [09:05:22]produce_requested_data [09:05:22]requested_item fm.sn is exist - process it [09:05:22]wFMCommunicate request_size=4 [09:05:22]MH_SAM_APDU [09:05:22]CAPDU: 80 11 00 00 [09:05:22]Write to MH i2c: E2 08 00 CD 0D 80 11 00 00 00 00 00 00 54 [09:05:22]Write i2c OK [09:05:22]MH_I2C_Read... [09:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:22]Read from MH i2c: E2 [09:05:22]MH_I2C_Read... [09:05:22]Read from MH i2c: E2 17 00 [09:05:22]MH_I2C_Read... [09:05:22]Read from MH i2c: E2 17 00 CD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AB [09:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:05:22]wFMCommunicate OK [09:05:22]requested_item fd.num is exist - process it [09:05:22]SAM_PROTO_GetFieldsCounters [09:05:22]wFMCommunicate request_size=4 [09:05:22]MH_SAM_APDU [09:05:22]CAPDU: 80 13 00 00 [09:05:22]Write to MH i2c: E2 08 00 CE 0D 80 13 00 00 00 00 00 00 57 [09:05:22]Write i2c OK [09:05:22]MH_I2C_Read... [09:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:22]Read from MH i2c: E2 [09:05:22]MH_I2C_Read... [09:05:22]Read from MH i2c: E2 62 00 [09:05:22]MH_I2C_Read... [09:05:22]Read from MH i2c: E2 62 00 CE 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 53 CA 01 00 0E 04 04 00 1E 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 19 [09:05: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 53 CA 01 00 0E 04 04 00 1E 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 [09:05:22]wFMCommunicate OK [09:05:22]SAM_PROTO_GetFieldsCounters done [09:05:22]requested_item shift.num is exist - process it [09:05:22]requested_item shift.opened is exist - process it [09:05:22]req_shift_opened [09:05:22]FM_GetShiftState [09:05:22]SAM_PROTO_GetShiftState [09:05:22]wFMCommunicate request_size=4 [09:05:22]MH_SAM_APDU [09:05:22]CAPDU: 80 13 01 00 [09:05:22]Write to MH i2c: E2 08 00 CF 0D 80 13 01 00 00 00 00 00 59 [09:05:22]Write i2c OK [09:05:22]MH_I2C_Read... [09:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:22]Read from MH i2c: E2 [09:05:22]MH_I2C_Read... [09:05:22]Read from MH i2c: E2 0E 00 [09:05:22]MH_I2C_Read... [09:05:22]Read from MH i2c: E2 0E 00 CF 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 98 [09:05:22]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:05:22]wFMCommunicate OK [09:05:22]SAM_PROTO_GetShiftState done [09:05:22]FM_GetShiftState done [09:05:22]req_shift_opened done [09:05:22]requested_item shift.open_date is exist - process it [09:05:22]req_shift_open_date [09:05:22]req_shift_open_date done [09:05:22]produce_requested_data done [09:05:22]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117331,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [09:05:22]process_action_free close_receipt [09:05:22]json_value_free [09:05:22]json_value_free done [09:05:22]process_json_proto returns [09:05:22]Send response to host [09:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117331,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [09:05:22]free response buf [09:05:22]execute_script done [09:05:22]execute_script returns [09:05:22]free content buf [09:05:22]Sock 10.Close socket [09:05:22]Sock 10.Thread stoped [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]accept exits with 7 [09:07:06]New connection [09:07:06]New thread 3066781028 created [09:07:06]Thread 3066924388 joined [09:07:06]Waiting for new connection... [09:07:06] Sock 7.Parse request [09:07:06]Sock 7.Check first char [09:07:06]Sock 7.First char is OK [09:07:06]request: POST /json_proto HTTP/1.0 [09:07:06]Method: POST [09:07:06]URL: /json_proto [09:07:06]Method is POST - this is cgi request [09:07:06]url: /json_proto [09:07:06]query_string will be loaded in cgi processing [09:07:06]execute_cgi json_proto POST (null) [09:07:06]execute_cgi path=json_proto method=POST [09:07:06]POST find Content-Length [09:07:06]Host: 172.17.96.67:8080 [09:07:06]Content-Length: 677 [09:07:06]Content-Type: application/json [09:07:06] [09:07:06]POST finish read [09:07:06]Found Content-Length = 677 [09:07:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:07:06]execute_script... [09:07: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)245104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:07:06]POST & json_proto [09:07:06]process_json_proto [09:07:06]json parsed OK: [09:07:06]protocol is kg_v1.0 [09:07:06]action value=close_receipt [09:07:06]process_action close_receipt [09:07:06]cmd_close_receipt [09:07:06]MH_GetDate [09:07:06]Write to MH i2c: F0 00 00 D0 0D CC [09:07:06]Write i2c OK [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: F0 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: F0 09 00 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: F0 09 00 D0 0D 00 BD 02 1E 67 F7 AE 1B 67 40 [09:07:06]GetLastDocTimeStamp 1730019922 [09:07:06]current date 1730020029 [09:07:06]FM_GetShiftState [09:07:06]SAM_PROTO_GetShiftState [09:07:06]wFMCommunicate request_size=4 [09:07:06]MH_SAM_APDU [09:07:06]CAPDU: 80 13 01 00 [09:07:06]Write to MH i2c: E2 08 00 D1 0D 80 13 01 00 00 00 00 00 5B [09:07:06]Write i2c OK [09:07:06]MH_I2C_Read... [09:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:06]Read from MH i2c: E2 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 0E 00 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 0E 00 D1 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 9A [09:07:06]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:07:06]wFMCommunicate OK [09:07:06]SAM_PROTO_GetShiftState done [09:07:06]FM_GetShiftState done [09:07:06]opened in 1729987372 [09:07:06]opened+sec_in_day 1730073772 [09:07:06]quantity*price = 50041 [09:07:06]sum+1 = 50042 [09:07: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 32 27.10.2024 09:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117332 ФПД: 47482427033467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090709&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117332&fm=47482427033467&tin=02508201610067®Number=0000000000091782&sum=50000 [09:07:07]StoreToDocumentArchive [09:07:07]shift 542 fd 117332 [09:07:07]save to /storage/0542/doc_00117332 [09:07:07]save last doc name /storage/0542/doc_00117332 to /storage/kkm_last_doc_name [09:07:07]save OK [09:07:07]Clear old archive folders... [09:07:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:07]tlvbuf is 01008F90 [09:07:07]SAM_PROTO_ClearQueue [09:07:07]wFMCommunicate request_size=4 [09:07:07]MH_SAM_APDU [09:07:07]CAPDU: 80 09 00 00 [09:07:07]Write to MH i2c: E2 08 00 DE 0D 80 09 00 00 00 00 00 00 5D [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:07]Read from MH i2c: E2 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 03 00 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [09:07:07]RAPDU: 90 00 [09:07:07]wFMCommunicate OK [09:07:07]SAM_PROTO_ClearQueue done [09:07:07]KKMCreateOFDPacket [09:07:07]OFDProtocolAddRootSTLVToBuf [09:07:07]FM_MakeSignedData [09:07:07]FM_MakeSignedData [09:07:07]SAM_PROTO_SignData [09:07:07]wFMCommunicate request_size=4 [09:07:07]MH_SAM_APDU [09:07:07]CAPDU: 80 0D 01 02 [09:07:07]Write to MH i2c: E2 08 00 DF 0D 80 0D 01 02 00 00 00 00 65 [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:07]Read from MH i2c: E2 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 03 00 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [09:07:07]RAPDU: 90 00 [09:07:07]wFMCommunicate OK [09:07:07]wFMCommunicate request_size=255 [09:07:07]MH_SAM_APDU [09:07: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 20 00 00 00 F4 03 04 00 BD 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 54 CA 01 00 35 04 06 00 2B [09:07:07]Write to MH i2c: E2 02 01 E0 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 20 00 00 00 F4 03 04 00 BD 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 54 CA 01 00 35 04 06 00 2B 00 00 C5 [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:07]Read from MH i2c: E2 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 03 00 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [09:07:07]RAPDU: 90 00 [09:07:07]wFMCommunicate OK [09:07:07]wFMCommunicate request_size=10 [09:07:07]MH_SAM_APDU [09:07:07]CAPDU: 80 0D 02 02 05 2F 5D 32 47 7B [09:07:07]Write to MH i2c: E2 0D 00 E1 0D 80 0D 02 02 05 00 2F 5D 32 47 7B 00 00 F2 [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:07]Read from MH i2c: E2 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 03 00 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 03 00 E1 0D 00 90 00 62 [09:07:07]RAPDU: 90 00 [09:07:07]wFMCommunicate OK [09:07:07]wFMCommunicate request_size=4 [09:07:07]MH_SAM_APDU [09:07:07]CAPDU: 80 0D 03 02 [09:07:07]Write to MH i2c: E2 08 00 E2 0D 80 0D 03 02 00 00 00 00 6A [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:07]Read from MH i2c: E2 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 0B 00 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: E2 0B 00 E2 0D 00 1A 85 7B E3 66 CC 0E 38 90 00 E0 [09:07:07]RAPDU: 1A 85 7B E3 66 CC 0E 38 90 00 [09:07:07]wFMCommunicate OK [09:07:07]SAM_PROTO_SignData done [09:07:07]FM_MakeSignedData done [09:07:07]CreateOFDProtocolMessage [09:07:07]wFMCommunicate request_size=4 [09:07:07]MH_SAM_APDU [09:07:07]CAPDU: 80 11 00 00 [09:07:07]Write to MH i2c: E2 08 00 E3 0D 80 11 00 00 00 00 00 00 6A [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 17 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 17 00 E3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C1 [09:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:07:08]wFMCommunicate OK [09:07:08]CreateOFDProtocolMessage done [09:07:08]OFDSenderStorePacket 117332 [09:07:08]StoreOFDPacket docnum=117332 [09:07:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EB 1C 07 01 F4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BD 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 54 CA 01 00 35 04 06 00 2B 2F 5D 32 47 7B 1A 85 7B E3 66 CC 0E 38 [09:07:08]CheckFolder [09:07:08]dirname=/storage/ofd_packets [09:07:08]CheckFolder done [09:07:08]ProducePacketName [09:07:08]name=ofd_packets/00117332 [09:07:08]NVStorageSaveData ofd_packets/00117332 [09:07:08]File name is /storage/ofd_packets/00117332 [09:07:08]Write 301 bytes [09:07:08]NVStorageSaveData done [09:07:08]OFDSenderStorePacket done [09:07:08]KKMCreateOFDPacket done [09:07:08]NVStorageSaveData kkm_last_timestamp [09:07:08]File name is /storage/kkm_last_timestamp [09:07:08]Write 4 bytes [09:07:08]NVStorageSaveData done [09:07:08]ExternCall_PrintAddStr [09:07:08]wPrintStart [09:07:08]Write to MH i2c: 01 00 00 E4 0D F1 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 07 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 07 00 E4 0D 00 00 00 00 00 FF 0F 06 [09:07:08]RasterBufferAndPrint [09:07:08]line Счет N : (1)245104 [09:07:08]line ИНН: 02508201610067 [09:07:08]line Контрольно-Кассовый Чек [09:07:08]line ПРОДАЖА [09:07:08]line ТРК (МРК, ГНК) : 11 [09:07:08]line Товар: 2710124130 [09:07:08]line Аи-92-К-2 [09:07:08]line 7.480 * 66.90 [09:07:08]line = 500.41 [09:07:08]line НДС 12% НСП 1% [09:07:08]line > о реализуемом товаре [09:07:08]line ОКРУГЛЕНИЕ: -0.41 [09:07:08]line ИТОГО: 500.00 [09:07:08]line Внесено: 500.00 [09:07:08]line СДАЧА: 0.00 [09:07:08]line НСП 1% : 4.43 [09:07:08]line НДС 12% : 53.14 [09:07:08]line Наличными: 500.00 [09:07:08]line Безнал.: 0.00 [09:07:08]line Место: АЗС № 173 "Партнер Нефть" [09:07:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:07:08]line СНО: Общий режим [09:07:08]line Чек 32 27.10.2024 09:07 [09:07:08]line Смена: 542 ФФД: 1.0 [09:07:08]line ЗНМ: 0300000115 [09:07:08]line РНМ: 0000000000091782 [09:07:08]line Версия ККМ: 001 [09:07:08]line ФМ: 0000000000871767 [09:07:08]line ФД: 117332 [09:07:08]line ФПД: 47482427033467 [09:07:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090709&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117332&fm=47482427033467&tin=02508201610067®Number=0000000000091782&sum=50000 [09:07:08]written 0, free lines is 4095 [09:07:08]OFD Sender: Processing packet 117332 [packets to send 75, broken 74] [09:07:08]ProducePacketName [09:07:08]name=ofd_packets/00117332 [09:07:08]OFD Sender: To server: pG, [09:07:08]CommunicateWithHost lk.salyk.kg:30040 [09:07:08]ConnectInit lk.salyk.kg [09:07:08]Connected sock=10 [09:07: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 36 37 0F 01 00 00 EB 1C 07 01 F4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BD 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 54 CA 01 00 35 04 06 00 2B 2F 5D 32 47 7B 1A 85 7B E3 66 CC 0E 38 [09:07: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 36 37 4F 00 00 00 4C 27 47 00 90 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 36 37 10 04 04 00 54 CA 01 00 F4 03 04 00 84 AE 1D 67 B6 04 01 00 00 E8 C1 F7 EF 77 A5 A5 1D [09:07:08]CommunicateWithHost err = 0 [09:07:08]CheckOFDResponse [09:07:08]1017 (14) - 77093643461234 [09:07:08]1041 (16) - 0000000000871767 [09:07:08]1040 (4) - 117332 [09:07:08]1012 (4) - 27.10.2024 03:07 [09:07:08]1206 (1) - 0 [09:07:08]OFD Sender: Remove packet 117332 [09:07:08]ProducePacketName [09:07:08]name=ofd_packets/00117332 [09:07:08]NVStorageDeleteData [09:07:08]Write to MH i2c: 01 00 00 0E 0E 1C [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 07 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 07 00 0E 0E 00 00 00 00 00 B7 0C E6 [09:07:08]RasterBufferAndPrint [09:07:08]line [09:07:08]line [09:07:08]line [09:07:08]line [09:07:08]line [09:07:08]written 0, free lines is 3262 [09:07:08]MH_Cut [09:07:08]Write to MH i2c: D1 01 00 15 0E 01 F5 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: D1 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: D1 01 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: D1 01 00 15 0E 00 F4 [09:07:08]Write to MH i2c: 01 00 00 16 0E 24 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]OFD Sender: No OFD packet to send [09:07:09]*** Cut start [09:07:09]*** Purtial cut [09:07:09]*** Stage 1: CUTSNS_PIN = 1 [09:07:09]Read from MH i2c: 01 [09:07:09]MH_I2C_Read... [09:07:09]*** Stop cut motor [09:07:09]*** Cut end [09:07:09]Read from MH i2c: 01 07 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: 01 07 00 16 0E 00 00 00 00 00 FF 0F 39 [09:07:09]process_action close_receipt done [09:07:09]requested_data is exist [09:07:09]produce_requested_data [09:07:09]requested_item fm.sn is exist - process it [09:07:09]wFMCommunicate request_size=4 [09:07:09]MH_SAM_APDU [09:07:09]CAPDU: 80 11 00 00 [09:07:09]Write to MH i2c: E2 08 00 17 0E 80 11 00 00 00 00 00 00 9F [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:09]Read from MH i2c: E2 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 17 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 17 00 17 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F6 [09:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:07:09]wFMCommunicate OK [09:07:09]requested_item fd.num is exist - process it [09:07:09]SAM_PROTO_GetFieldsCounters [09:07:09]wFMCommunicate request_size=4 [09:07:09]MH_SAM_APDU [09:07:09]CAPDU: 80 13 00 00 [09:07:09]Write to MH i2c: E2 08 00 18 0E 80 13 00 00 00 00 00 00 A2 [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:09]Read from MH i2c: E2 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 62 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 62 00 18 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 54 CA 01 00 0E 04 04 00 1E 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 68 [09:07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 54 CA 01 00 0E 04 04 00 1E 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 [09:07:09]wFMCommunicate OK [09:07:09]SAM_PROTO_GetFieldsCounters done [09:07:09]requested_item shift.num is exist - process it [09:07:09]requested_item shift.opened is exist - process it [09:07:09]req_shift_opened [09:07:09]FM_GetShiftState [09:07:09]SAM_PROTO_GetShiftState [09:07:09]wFMCommunicate request_size=4 [09:07:09]MH_SAM_APDU [09:07:09]CAPDU: 80 13 01 00 [09:07:09]Write to MH i2c: E2 08 00 19 0E 80 13 01 00 00 00 00 00 A4 [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:09]Read from MH i2c: E2 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 0E 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 0E 00 19 0E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E3 [09:07:09]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:07:09]wFMCommunicate OK [09:07:09]SAM_PROTO_GetShiftState done [09:07:09]FM_GetShiftState done [09:07:09]req_shift_opened done [09:07:09]requested_item shift.open_date is exist - process it [09:07:09]req_shift_open_date [09:07:09]req_shift_open_date done [09:07:09]produce_requested_data done [09:07:09]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117332,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [09:07:09]process_action_free close_receipt [09:07:09]json_value_free [09:07:09]json_value_free done [09:07:09]process_json_proto returns [09:07:09]Send response to host [09:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117332,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [09:07:09]free response buf [09:07:09]execute_script done [09:07:09]execute_script returns [09:07:09]free content buf [09:07:09]Sock 7.Close socket [09:07:09]Sock 7.Thread stoped [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:55]accept exits with 9 [09:12:55]New connection [09:12:55]New thread 3066924388 created [09:12:55]Thread 3066781028 joined [09:12:55]Waiting for new connection... [09:12:55] Sock 9.Parse request [09:12:55]Sock 9.Check first char [09:12:55]Sock 9.First char is OK [09:12:55]request: POST /json_proto HTTP/1.0 [09:12:55]Method: POST [09:12:55]URL: /json_proto [09:12:55]Method is POST - this is cgi request [09:12:55]url: /json_proto [09:12:55]query_string will be loaded in cgi processing [09:12:55]execute_cgi json_proto POST (null) [09:12:55]execute_cgi path=json_proto method=POST [09:12:55]POST find Content-Length [09:12:55]Host: 172.17.96.67:8080 [09:12:55]Content-Length: 677 [09:12:55]Content-Type: application/json [09:12:55] [09:12:55]POST finish read [09:12:55]Found Content-Length = 677 [09:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:12:55]execute_script... [09:12: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)245105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:12:55]POST & json_proto [09:12:55]process_json_proto [09:12:55]json parsed OK: [09:12:55]protocol is kg_v1.0 [09:12:55]action value=close_receipt [09:12:55]process_action close_receipt [09:12:55]cmd_close_receipt [09:12:55]MH_GetDate [09:12:55]Write to MH i2c: F0 00 00 1A 0E 17 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: F0 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: F0 09 00 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: F0 09 00 1A 0E 00 1A 04 1E 67 F7 AE 1B 67 EA [09:12:55]GetLastDocTimeStamp 1730020029 [09:12:55]current date 1730020378 [09:12:55]FM_GetShiftState [09:12:55]SAM_PROTO_GetShiftState [09:12:55]wFMCommunicate request_size=4 [09:12:55]MH_SAM_APDU [09:12:55]CAPDU: 80 13 01 00 [09:12:55]Write to MH i2c: E2 08 00 1B 0E 80 13 01 00 00 00 00 00 A6 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:55]Read from MH i2c: E2 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: E2 0E 00 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: E2 0E 00 1B 0E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E5 [09:12:55]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:12:55]wFMCommunicate OK [09:12:55]SAM_PROTO_GetShiftState done [09:12:55]FM_GetShiftState done [09:12:55]opened in 1729987372 [09:12:55]opened+sec_in_day 1730073772 [09:12:55]quantity*price = 50041 [09:12:55]sum+1 = 50042 [09:12: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 33 27.10.2024 09:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117333 ФПД: 3235628575501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091258&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117333&fm=3235628575501&tin=02508201610067®Number=0000000000091782&sum=50000 [09:12:56]StoreToDocumentArchive [09:12:56]shift 542 fd 117333 [09:12:56]save to /storage/0542/doc_00117333 [09:12:56]save last doc name /storage/0542/doc_00117333 to /storage/kkm_last_doc_name [09:12:56]save OK [09:12:56]Clear old archive folders... [09:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:56]tlvbuf is 00FEE350 [09:12:56]SAM_PROTO_ClearQueue [09:12:56]wFMCommunicate request_size=4 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 09 00 00 [09:12:56]Write to MH i2c: E2 08 00 28 0E 80 09 00 00 00 00 00 00 A8 [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 03 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [09:12:56]RAPDU: 90 00 [09:12:56]wFMCommunicate OK [09:12:56]SAM_PROTO_ClearQueue done [09:12:56]KKMCreateOFDPacket [09:12:56]OFDProtocolAddRootSTLVToBuf [09:12:56]FM_MakeSignedData [09:12:56]FM_MakeSignedData [09:12:56]SAM_PROTO_SignData [09:12:56]wFMCommunicate request_size=4 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 0D 01 02 [09:12:56]Write to MH i2c: E2 08 00 29 0E 80 0D 01 02 00 00 00 00 B0 [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 03 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [09:12:56]RAPDU: 90 00 [09:12:56]wFMCommunicate OK [09:12:56]wFMCommunicate request_size=255 [09:12:56]MH_SAM_APDU [09:12: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 21 00 00 00 F4 03 04 00 1A 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 55 CA 01 00 35 04 06 00 02 [09:12:56]Write to MH i2c: E2 02 01 2A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1A 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 55 CA 01 00 35 04 06 00 02 00 00 48 [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 03 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [09:12:56]RAPDU: 90 00 [09:12:56]wFMCommunicate OK [09:12:56]wFMCommunicate request_size=10 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 0D 02 02 05 F1 5A 7D EB 0D [09:12:56]Write to MH i2c: E2 0D 00 2B 0E 80 0D 02 02 05 00 F1 5A 7D EB 0D 00 00 7D [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 03 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [09:12:56]RAPDU: 90 00 [09:12:56]wFMCommunicate OK [09:12:56]wFMCommunicate request_size=4 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 0D 03 02 [09:12:56]Write to MH i2c: E2 08 00 2C 0E 80 0D 03 02 00 00 00 00 B5 [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 0B 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 0B 00 2C 0E 00 BA 1D 27 C0 21 FC 24 05 90 00 BA [09:12:56]RAPDU: BA 1D 27 C0 21 FC 24 05 90 00 [09:12:56]wFMCommunicate OK [09:12:56]SAM_PROTO_SignData done [09:12:56]FM_MakeSignedData done [09:12:56]CreateOFDProtocolMessage [09:12:56]wFMCommunicate request_size=4 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 11 00 00 [09:12:56]Write to MH i2c: E2 08 00 2D 0E 80 11 00 00 00 00 00 00 B5 [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 17 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 17 00 2D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0C [09:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:12:57]wFMCommunicate OK [09:12:57]CreateOFDProtocolMessage done [09:12:57]OFDSenderStorePacket 117333 [09:12:57]StoreOFDPacket docnum=117333 [09:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 60 89 07 01 ED 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 21 00 00 00 F4 03 04 00 1A 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 55 CA 01 00 35 04 06 00 02 F1 5A 7D EB 0D BA 1D 27 C0 21 FC 24 05 [09:12:57]CheckFolder [09:12:57]dirname=/storage/ofd_packets [09:12:57]CheckFolder done [09:12:57]ProducePacketName [09:12:57]name=ofd_packets/00117333 [09:12:57]NVStorageSaveData ofd_packets/00117333 [09:12:57]File name is /storage/ofd_packets/00117333 [09:12:57]Write 301 bytes [09:12:57]NVStorageSaveData done [09:12:57]OFDSenderStorePacket done [09:12:57]KKMCreateOFDPacket done [09:12:57]NVStorageSaveData kkm_last_timestamp [09:12:57]File name is /storage/kkm_last_timestamp [09:12:57]Write 4 bytes [09:12:57]NVStorageSaveData done [09:12:57]ExternCall_PrintAddStr [09:12:57]wPrintStart [09:12:57]Write to MH i2c: 01 00 00 2E 0E 3C [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 07 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 07 00 2E 0E 00 00 00 00 00 FF 0F 51 [09:12:57]RasterBufferAndPrint [09:12:57]line Счет N : (1)245105 [09:12:57]line ИНН: 02508201610067 [09:12:57]line Контрольно-Кассовый Чек [09:12:57]line ПРОДАЖА [09:12:57]line ТРК (МРК, ГНК) : 11 [09:12:57]line Товар: 2710124130 [09:12:57]line Аи-92-К-2 [09:12:57]line 7.480 * 66.90 [09:12:57]line = 500.41 [09:12:57]line НДС 12% НСП 1% [09:12:57]line > о реализуемом товаре [09:12:57]line ОКРУГЛЕНИЕ: -0.41 [09:12:57]line ИТОГО: 500.00 [09:12:57]line Внесено: 500.00 [09:12:57]line СДАЧА: 0.00 [09:12:57]line НСП 1% : 4.43 [09:12:57]line НДС 12% : 53.14 [09:12:57]line Наличными: 500.00 [09:12:57]line Безнал.: 0.00 [09:12:57]line Место: АЗС № 173 "Партнер Нефть" [09:12:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:12:57]line СНО: Общий режим [09:12:57]line Чек 33 27.10.2024 09:12 [09:12:57]line Смена: 542 ФФД: 1.0 [09:12:57]line ЗНМ: 0300000115 [09:12:57]line РНМ: 0000000000091782 [09:12:57]line Версия ККМ: 001 [09:12:57]line ФМ: 0000000000871767 [09:12:57]line ФД: 117333 [09:12:57]line ФПД: 3235628575501 [09:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091258&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117333&fm=3235628575501&tin=02508201610067®Number=0000000000091782&sum=50000 [09:12:57]written 0, free lines is 4095 [09:12:57]OFD Sender: Processing packet 117333 [packets to send 75, broken 74] [09:12:57]ProducePacketName [09:12:57]name=ofd_packets/00117333 [09:12:57]OFD Sender: To server: pG, [09:12:57]CommunicateWithHost lk.salyk.kg:30040 [09:12:57]ConnectInit lk.salyk.kg [09:12:57]Connected sock=11 [09:12: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 36 37 0F 01 00 00 60 89 07 01 ED 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 21 00 00 00 F4 03 04 00 1A 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 55 CA 01 00 35 04 06 00 02 F1 5A 7D EB 0D BA 1D 27 C0 21 FC 24 05 [09:12:57]Write to MH i2c: 01 00 00 58 0E 66 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 07 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 BA 0C 33 [09:12:57]RasterBufferAndPrint [09:12:57]line [09:12:57]line [09:12:57]line [09:12:57]line [09:12:57]line [09:12:57]written 0, free lines is 3263 [09:12:57]MH_Cut [09:12:57]Write to MH i2c: D1 01 00 5F 0E 01 3F [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: D1 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: D1 01 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: D1 01 00 5F 0E 00 3E [09:12:57]Write to MH i2c: 01 00 00 60 0E 6E [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12: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 36 37 4F 00 00 00 D8 B6 47 00 D0 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 36 37 10 04 04 00 55 CA 01 00 F4 03 04 00 E1 AF 1D 67 B6 04 01 00 00 D9 53 B1 6A 0B A8 DE 2F [09:12:57]CommunicateWithHost err = 0 [09:12:57]CheckOFDResponse [09:12:57]1017 (14) - 77093643461234 [09:12:57]1041 (16) - 0000000000871767 [09:12:57]1040 (4) - 117333 [09:12:57]1012 (4) - 27.10.2024 03:13 [09:12:57]1206 (1) - 0 [09:12:57]OFD Sender: Remove packet 117333 [09:12:57]ProducePacketName [09:12:57]name=ofd_packets/00117333 [09:12:57]NVStorageDeleteData [09:12:58]OFD Sender: No OFD packet to send [09:12:58]*** Cut start [09:12:58]*** Purtial cut [09:12:58]*** Stage 1: CUTSNS_PIN = 1 [09:12:58]Read from MH i2c: 01 [09:12:58]MH_I2C_Read... [09:12:58]*** Stop cut motor [09:12:58]*** Cut end [09:12:58]Read from MH i2c: 01 07 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: 01 07 00 60 0E 00 00 00 00 00 FF 0F 83 [09:12:58]process_action close_receipt done [09:12:58]requested_data is exist [09:12:58]produce_requested_data [09:12:58]requested_item fm.sn is exist - process it [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 11 00 00 [09:12:58]Write to MH i2c: E2 08 00 61 0E 80 11 00 00 00 00 00 00 E9 [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 17 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 17 00 61 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 40 [09:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:12:58]wFMCommunicate OK [09:12:58]requested_item fd.num is exist - process it [09:12:58]SAM_PROTO_GetFieldsCounters [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 13 00 00 [09:12:58]Write to MH i2c: E2 08 00 62 0E 80 13 00 00 00 00 00 00 EC [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 62 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 62 00 62 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 55 CA 01 00 0E 04 04 00 1E 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 B6 [09:12: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 55 CA 01 00 0E 04 04 00 1E 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 [09:12:58]wFMCommunicate OK [09:12:58]SAM_PROTO_GetFieldsCounters done [09:12:58]requested_item shift.num is exist - process it [09:12:58]requested_item shift.opened is exist - process it [09:12:58]req_shift_opened [09:12:58]FM_GetShiftState [09:12:58]SAM_PROTO_GetShiftState [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 13 01 00 [09:12:58]Write to MH i2c: E2 08 00 63 0E 80 13 01 00 00 00 00 00 EE [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 0E 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 0E 00 63 0E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2D [09:12:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [09:12:58]wFMCommunicate OK [09:12:58]SAM_PROTO_GetShiftState done [09:12:58]FM_GetShiftState done [09:12:58]req_shift_opened done [09:12:58]requested_item shift.open_date is exist - process it [09:12:58]req_shift_open_date [09:12:58]req_shift_open_date done [09:12:58]produce_requested_data done [09:12:58]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117333,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [09:12:58]process_action_free close_receipt [09:12:58]json_value_free [09:12:58]json_value_free done [09:12:58]process_json_proto returns [09:12:58]Send response to host [09:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117333,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [09:12:58]free response buf [09:12:58]execute_script done [09:12:58]execute_script returns [09:12:58]free content buf [09:12:58]Sock 9.Close socket [09:12:58]Sock 9.Thread stoped [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [10:44:55]ConnectInit Can't connect to host [10:44:57]accept exits with 10 [10:44:57]New connection [10:44:57]New thread 3067600228 created [10:44:57]Thread 3067456868 joined [10:44:57]Waiting for new connection... [10:44:57] Sock 10.Parse request [10:44:57]Sock 10.Check first char [10:44:57]Sock 10.First char is OK [10:44:57]request: POST /json_proto HTTP/1.0 [10:44:57]Method: POST [10:44:57]URL: /json_proto [10:44:57]Method is POST - this is cgi request [10:44:57]url: /json_proto [10:44:57]query_string will be loaded in cgi processing QlQl[10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 15 02 00 08 F4 03 04 00 AA 19 1E 67 [10:44:58]Write to MH i2c: E2 10 00 A9 09 80 15 02 00 08 00 F4 03 04 00 AA 19 1E 67 00 00 85 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 A9 09 00 90 00 26 [10:44:58]RAPDU: 90 00 [10:44:58]wFMCommunicate OK [10:44:58]wFMCommunicate request_size=25 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 [10:44:58]Write to MH i2c: E2 1C 00 AA 09 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 00 00 97 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 AA 09 00 90 00 27 [10:44:58]RAPDU: 90 00 [10:44:58]wFMCommunicate OK [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 15 03 00 [10:44:58]Write to MH i2c: E2 08 00 AB 09 80 15 03 00 00 00 00 00 35 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 40 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 40 00 AB 09 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 36 37 10 04 04 00 7D CA 01 00 0E 04 04 00 1E 02 00 00 12 04 04 00 49 00 00 00 35 04 06 00 5C 89 D8 56 B1 0D 90 00 B1 [10:44:58]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 36 37 10 04 04 00 7D CA 01 00 0E 04 04 00 1E 02 00 00 12 04 04 00 49 00 00 00 35 04 06 00 5C 89 D8 56 B1 0D 90 00 [10:44:58]wFMCommunicate OK [10:44:58]SAM_PROTO_ProcessDocument answer len = 59 [10:44:58]SAM_PROTO_ProcessDocument done [10:44:58]SetTLVBufToDocument [10:44:58]Processing tag 1209 (04B9) [10:44:58]Malloc new data [10:44:58]Processing tag 1041 (0411) [10:44:58]Processing tag 1040 (0410) [10:44:58]Malloc new data [10:44:58]Processing tag 1038 (040E) [10:44:58]Malloc new data [10:44:58]Processing tag 1042 (0412) [10:44:58]Malloc new data [10:44:58]Processing tag 1077 (0435) [10:44:58]Malloc new data [10:44:58]SetTLVBufToDocument err=0 [10:44:58]KKMLoadAndSignReceiptData store KKM data [10:44:58]KKMLoadAndSignReceiptData err=0 [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 11 00 00 [10:44:58]Write to MH i2c: E2 08 00 AC 09 80 11 00 00 00 00 00 00 2F [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 AC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 86 [10:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:44:58]wFMCommunicate OK [10:44:58]Счет N : (1)245149 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 11 Товар: 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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 73 27.10.2024 10:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117373 ФПД: 101747109835021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104458&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117373&fm=101747109835021&tin=02508201610067®Number=0000000000091782&sum=30000 [10:44:58]StoreToDocumentArchive [10:44:58]shift 542 fd 117373 [10:44:58]save to /storage/0542/doc_00117373 [10:44:58]save last doc name /storage/0542/doc_00117373 to /storage/kkm_last_doc_name [10:44:58]save OK [10:44:58]Clear old archive folders... [10:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:58]tlvbuf is 01721780 [10:44:58]SAM_PROTO_ClearQueue [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 09 00 00 [10:44:58]Write to MH i2c: E2 08 00 AD 09 80 09 00 00 00 00 00 00 28 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 AD 09 00 90 00 2A [10:44:58]RAPDU: 90 00 [10:44:58]wFMCommunicate OK [10:44:58]SAM_PROTO_ClearQueue done [10:44:58]KKMCreateOFDPacket [10:44:58]OFDProtocolAddRootSTLVToBuf [10:44:58]FM_MakeSignedData [10:44:58]FM_MakeSignedData [10:44:58]SAM_PROTO_SignData [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 0D 01 02 [10:44:58]Write to MH i2c: E2 08 00 AE 09 80 0D 01 02 00 00 00 00 30 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 AE 09 00 90 00 2B [10:44:58]RAPDU: 90 00 [10:44:58]wFMCommunicate OK [10:44:58]wFMCommunicate request_size=255 [10:44:58]MH_SAM_APDU [10:44: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 49 00 00 00 F4 03 04 00 AA 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7D CA 01 00 35 04 06 00 5C [10:44:58]Write to MH i2c: E2 02 01 AF 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 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 49 00 00 00 F4 03 04 00 AA 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7D CA 01 00 35 04 06 00 5C 00 00 0B [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 AF 09 00 90 00 2C [10:44:58]RAPDU: 90 00 [10:44:58]wFMCommunicate OK [10:44:58]wFMCommunicate request_size=10 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 0D 02 02 05 89 D8 56 B1 0D [10:44:58]Write to MH i2c: E2 0D 00 B0 09 80 0D 02 02 05 00 89 D8 56 B1 0D 00 00 B2 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [10:44:58]RAPDU: 90 00 [10:44:58]wFMCommunicate OK [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 0D 03 02 [10:44:58]Write to MH i2c: E2 08 00 B1 09 80 0D 03 02 00 00 00 00 35 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 0B 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 0B 00 B1 09 00 7E F0 0D F2 6C B3 25 0D 90 00 F4 [10:44:58]RAPDU: 7E F0 0D F2 6C B3 25 0D 90 00 [10:44:58]wFMCommunicate OK [10:44:58]SAM_PROTO_SignData done [10:44:58]FM_MakeSignedData done [10:44:58]CreateOFDProtocolMessage [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 11 00 00 [10:44:58]Write to MH i2c: E2 08 00 B2 09 80 11 00 00 00 00 00 00 35 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 B2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8C [10:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:44:58]wFMCommunicate OK [10:44:58]CreateOFDProtocolMessage done [10:44:58]OFDSenderStorePacket 117373 [10:44:58]StoreOFDPacket docnum=117373 [10:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2F 77 07 01 B8 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 49 00 00 00 F4 03 04 00 AA 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7D CA 01 00 35 04 06 00 5C 89 D8 56 B1 0D 7E F0 0D F2 6C B3 25 0D [10:44:58]CheckFolder [10:44:58]dirname=/storage/ofd_packets [10:44:58]CheckFolder done [10:44:58]ProducePacketName [10:44:58]name=ofd_packets/00117373 [10:44:58]NVStorageSaveData ofd_packets/00117373 [10:44:58]File name is /storage/ofd_packets/00117373 [10:44:58]Write 301 bytes [10:44:58]NVStorageSaveData done [10:44:58]OFDSenderStorePacket done [10:44:58]KKMCreateOFDPacket done [10:44:58]NVStorageSaveData kkm_last_timestamp [10:44:58]File name is /storage/kkm_last_timestamp [10:44:58]Write 4 bytes [10:44:58]NVStorageSaveData done [10:44:58]ExternCall_PrintAddStr [10:44:58]wPrintStart [10:44:58]Write to MH i2c: 01 00 00 B3 09 BC [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: 01 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: 01 07 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: 01 07 00 B3 09 00 00 00 00 00 FF 0F D1 [10:44:58]RasterBufferAndPrint [10:44:58]line Счет N : (1)245149 [10:44:58]line ИНН: 02508201610067 [10:44:58]line Контрольно-Кассовый Чек [10:44:58]line ПРОДАЖА [10:44:58]line ТРК (МРК, ГНК) : 11 [10:44:58]line Товар: 2710124130 [10:44:58]line Аи-92-К-2 [10:44:58]line 4.490 * 66.90 [10:44:58]line = 300.38 [10:44:58]line НДС 12% НСП 1% [10:44:58]line > о реализуемом товаре [10:44:58]line ОКРУГЛЕНИЕ: -0.38 [10:44:58]line ИТОГО: 300.00 [10:44:58]line Внесено: 300.00 [10:44:58]line СДАЧА: 0.00 [10:44:58]line НСП 1% : 2.66 [10:44:58]line НДС 12% : 31.90 [10:44:58]line Наличными: 300.00 [10:44:58]line Безнал.: 0.00 [10:44:58]line Место: АЗС № 173 "Партнер Нефть" [10:44:58]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:44:58]line СНО: Общий режим [10:44:58]line Чек 73 27.10.2024 10:44 [10:44:58]line Смена: 542 ФФД: 1.0 [10:44:58]line ЗНМ: 0300000115 [10:44:58]line РНМ: 0000000000091782 [10:44:58]line Версия ККМ: 001 [10:44:58]line ФМ: 0000000000871767 [10:44:58]line ФД: 117373 [10:44:58]line ФПД: 101747109835021 [10:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104458&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117373&fm=101747109835021&tin=02508201610067®Number=0000000000091782&sum=30000 [10:44:59]written 0, free lines is 4095 [10:44:59]Write to MH i2c: 01 00 00 DD 09 E6 [10:44:59]Write i2c OK [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: 01 [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: 01 07 00 [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 A3 0C 9C [10:44:59]RasterBufferAndPrint [10:44:59]line [10:44:59]line [10:44:59]line [10:44:59]line [10:44:59]line [10:44:59]written 0, free lines is 3240 [10:44:59]MH_Cut [10:44:59]Write to MH i2c: D1 01 00 E4 09 01 BF [10:44:59]Write i2c OK [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: D1 [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: D1 01 00 [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: D1 01 00 E4 09 00 BE [10:44:59]Write to MH i2c: 01 00 00 E5 09 EE [10:44:59]Write i2c OK [10:44:59]MH_I2C_Read... [10:45:00]*** Cut start [10:45:00]*** Purtial cut [10:45:00]*** Stage 1: CUTSNS_PIN = 1 [10:45:00]Read from MH i2c: 01 [10:45:00]MH_I2C_Read... [10:45:00]*** Stop cut motor [10:45:00]*** Cut end [10:45:00]Read from MH i2c: 01 07 00 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: 01 07 00 E5 09 00 00 00 00 00 FF 0F 03 [10:45:00]process_action close_receipt done [10:45:00]requested_data is exist [10:45:00]produce_requested_data [10:45:00]requested_item fm.sn is exist - process it [10:45:00]wFMCommunicate request_size=4 [10:45:00]MH_SAM_APDU [10:45:00]CAPDU: 80 11 00 00 [10:45:00]Write to MH i2c: E2 08 00 E6 09 80 11 00 00 00 00 00 00 69 [10:45:00]Write i2c OK [10:45:00]MH_I2C_Read... [10:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:00]Read from MH i2c: E2 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 17 00 [10:45:00]MH_I2C_Read... [10:45:00]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 36 37 90 00 C0 [10:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:45:00]wFMCommunicate OK [10:45:00]requested_item fd.num is exist - process it [10:45:00]SAM_PROTO_GetFieldsCounters [10:45:00]wFMCommunicate request_size=4 [10:45:00]MH_SAM_APDU [10:45:00]CAPDU: 80 13 00 00 [10:45:00]Write to MH i2c: E2 08 00 E7 09 80 13 00 00 00 00 00 00 6C [10:45:00]Write i2c OK [10:45:00]MH_I2C_Read... [10:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:01]Read from MH i2c: E2 [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: E2 62 00 [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: E2 62 00 E7 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7D CA 01 00 0E 04 04 00 1E 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 D6 [10:45: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7D CA 01 00 0E 04 04 00 1E 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 [10:45:01]wFMCommunicate OK [10:45:01]SAM_PROTO_GetFieldsCounters done [10:45:01]requested_item shift.num is exist - process it [10:45:01]requested_item shift.opened is exist - process it [10:45:01]req_shift_opened [10:45:01]FM_GetShiftState [10:45:01]SAM_PROTO_GetShiftState [10:45:01]wFMCommunicate request_size=4 [10:45:01]MH_SAM_APDU [10:45:01]CAPDU: 80 13 01 00 [10:45:01]Write to MH i2c: E2 08 00 E8 09 80 13 01 00 00 00 00 00 6E [10:45:01]Write i2c OK [10:45:01]MH_I2C_Read... [10:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:01]Read from MH i2c: E2 [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: E2 0E 00 [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: E2 0E 00 E8 09 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AD [10:45:01]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [10:45:01]wFMCommunicate OK [10:45:01]SAM_PROTO_GetShiftState done [10:45:01]FM_GetShiftState done [10:45:01]req_shift_opened done [10:45:01]requested_item shift.open_date is exist - process it [10:45:01]req_shift_open_date [10:45:01]req_shift_open_date done [10:45:01]produce_requested_data done [10:45:01]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117373,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [10:45:01]process_action_free close_receipt [10:45:01]json_value_free [10:45:01]json_value_free done [10:45:01]process_json_proto returns [10:45:01]Send response to host [10:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117373,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [10:45:01]free response buf [10:45:01]execute_script done [10:45:01]execute_script returns [10:45:01]free content buf [10:45:01]Sock 10.Close socket [10:45:01]Sock 10.Thread stoped [10:45:05]recv_with_timeout no data received [10:46:28]accept exits with 11 [10:46:28]New connection [10:46:28]New thread 3067456868 created [10:46:28]Thread 3067600228 joined [10:46:28]Waiting for new connection... [10:46:28] Sock 11.Parse request [10:46:28]Sock 11.Check first char [10:46:28]Sock 11.First char is OK [10:46:28]request: POST /json_proto HTTP/1.0 [10:46:28]Method: POST [10:46:28]URL: /json_proto [10:46:28]Method is POST - this is cgi request [10:46:28]url: /json_proto [10:46:28]query_string will be loaded in cgi processing [10:46:28]execute_cgi json_proto POST (null) [10:46:28]execute_cgi path=json_proto method=POST [10:46:28]POST find Content-Length [10:46:28]Host: 172.17.96.67:8080 [10:46:28]Content-Length: 797 [10:46:28]Content-Type: application/json [10:46:28] [10:46:28]POST finish read [10:46:28]Found Content-Length = 797 [10:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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\u000A4755271", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:28]execute_script... [10:46: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)245150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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\u000A4755271", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:28]POST & json_proto [10:46:28]process_json_proto [10:46:28]json parsed OK: [10:46:28]protocol is kg_v1.0 [10:46:28]action value=close_receipt [10:46:28]process_action close_receipt [10:46:28]cmd_close_receipt [10:46:28]MH_GetDate [10:46:28]Write to MH i2c: F0 00 00 E9 09 E1 [10:46:28]Write i2c OK [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: F0 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: F0 09 00 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: F0 09 00 E9 09 00 05 1A 1E 67 2B 09 1E 67 47 [10:46:28]GetLastDocTimeStamp 1730025898 [10:46:28]current date 1730025989 [10:46:28]FM_GetShiftState [10:46:28]SAM_PROTO_GetShiftState [10:46:28]wFMCommunicate request_size=4 [10:46:28]MH_SAM_APDU [10:46:28]CAPDU: 80 13 01 00 [10:46:28]Write to MH i2c: E2 08 00 EA 09 80 13 01 00 00 00 00 00 70 [10:46:28]Write i2c OK [10:46:28]MH_I2C_Read... [10:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:28]Read from MH i2c: E2 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: E2 0E 00 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: E2 0E 00 EA 09 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AF [10:46:28]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [10:46:28]wFMCommunicate OK [10:46:28]SAM_PROTO_GetShiftState done [10:46:28]FM_GetShiftState done [10:46:28]opened in 1729987372 [10:46:28]opened+sec_in_day 1730073772 [10:46:28]quantity*price = 0 [10:46:28]sum+1 = 1 [10:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 74 27.10.2024 10:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Талоны: Топливные Талоны 4755271 ФМ: 0000000000871767 ФД: 117374 ФПД: 30726409201576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104629&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117374&fm=30726409201576&tin=02508201610067®Number=0000000000091782&sum=0 [10:46:29]StoreToDocumentArchive [10:46:29]shift 542 fd 117374 [10:46:29]save to /storage/0542/doc_00117374 [10:46:29]save last doc name /storage/0542/doc_00117374 to /storage/kkm_last_doc_name [10:46:29]save OK [10:46:29]Clear old archive folders... [10:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:46:29]tlvbuf is 0171E240 [10:46:29]SAM_PROTO_ClearQueue [10:46:29]wFMCommunicate request_size=4 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 09 00 00 [10:46:29]Write to MH i2c: E2 08 00 F7 09 80 09 00 00 00 00 00 00 72 [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 F7 09 00 90 00 74 [10:46:29]RAPDU: 90 00 [10:46:29]wFMCommunicate OK [10:46:29]SAM_PROTO_ClearQueue done [10:46:29]KKMCreateOFDPacket [10:46:29]OFDProtocolAddRootSTLVToBuf [10:46:29]FM_MakeSignedData [10:46:29]FM_MakeSignedData [10:46:29]SAM_PROTO_SignData [10:46:29]wFMCommunicate request_size=4 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 0D 01 02 [10:46:29]Write to MH i2c: E2 08 00 F8 09 80 0D 01 02 00 00 00 00 7A [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 F8 09 00 90 00 75 [10:46:29]RAPDU: 90 00 [10:46:29]wFMCommunicate OK [10:46:29]wFMCommunicate request_size=255 [10:46:29]MH_SAM_APDU [10:46: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 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 4A 00 00 00 F4 03 04 00 05 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7E CA 01 00 35 04 06 00 1B F2 0C B4 [10:46:29]Write to MH i2c: E2 02 01 F9 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 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 4A 00 00 00 F4 03 04 00 05 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7E CA 01 00 35 04 06 00 1B F2 0C B4 00 00 11 [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 F9 09 00 90 00 76 [10:46:29]RAPDU: 90 00 [10:46:29]wFMCommunicate OK [10:46:29]wFMCommunicate request_size=7 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 0D 02 02 02 A7 A8 [10:46:29]Write to MH i2c: E2 0A 00 FA 09 80 0D 02 02 02 00 A7 A8 00 00 D0 [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [10:46:29]RAPDU: 90 00 [10:46:29]wFMCommunicate OK [10:46:29]wFMCommunicate request_size=4 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 0D 03 02 [10:46:29]Write to MH i2c: E2 08 00 FB 09 80 0D 03 02 00 00 00 00 7F [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:30]Read from MH i2c: E2 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: E2 0B 00 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: E2 0B 00 FB 09 00 4E DD 04 7C B1 93 DD 89 90 00 D5 [10:46:30]RAPDU: 4E DD 04 7C B1 93 DD 89 90 00 [10:46:30]wFMCommunicate OK [10:46:30]SAM_PROTO_SignData done [10:46:30]FM_MakeSignedData done [10:46:30]CreateOFDProtocolMessage [10:46:30]wFMCommunicate request_size=4 [10:46:30]MH_SAM_APDU [10:46:30]CAPDU: 80 11 00 00 [10:46:30]Write to MH i2c: E2 08 00 FC 09 80 11 00 00 00 00 00 00 7F [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:30]Read from MH i2c: E2 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: E2 17 00 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: E2 17 00 FC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D6 [10:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:46:30]wFMCommunicate OK [10:46:30]CreateOFDProtocolMessage done [10:46:30]OFDSenderStorePacket 117374 [10:46:30]StoreOFDPacket docnum=117374 [10:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 93 CE 04 01 E6 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4A 00 00 00 F4 03 04 00 05 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7E CA 01 00 35 04 06 00 1B F2 0C B4 A7 A8 4E DD 04 7C B1 93 DD 89 [10:46:30]CheckFolder [10:46:30]dirname=/storage/ofd_packets [10:46:30]CheckFolder done [10:46:30]ProducePacketName [10:46:30]name=ofd_packets/00117374 [10:46:30]NVStorageSaveData ofd_packets/00117374 [10:46:30]File name is /storage/ofd_packets/00117374 [10:46:30]Write 298 bytes [10:46:30]NVStorageSaveData done [10:46:30]OFDSenderStorePacket done [10:46:30]KKMCreateOFDPacket done [10:46:30]NVStorageSaveData kkm_last_timestamp [10:46:30]File name is /storage/kkm_last_timestamp [10:46:30]Write 4 bytes [10:46:30]NVStorageSaveData done [10:46:30]ExternCall_PrintAddStr [10:46:30]wPrintStart [10:46:30]Write to MH i2c: 01 00 00 FD 09 06 [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: 01 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: 01 07 00 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 FF 0F 1B [10:46:30]RasterBufferAndPrint [10:46:30]line Счет N : (1)245150 [10:46:30]line ИНН: 02508201610067 [10:46:30]line Контрольно-Кассовый Чек [10:46:30]line ПРОДАЖА [10:46:30]line ТРК (МРК, ГНК) : 23 [10:46:30]line Товар: 2710194210 [10:46:30]line ДТ-К-2 [10:46:30]line 50.000 * 0.00 [10:46:30]line = 0.00 [10:46:30]line НДС 12% НСП 1% [10:46:30]line > о реализуемом товаре [10:46:30]line ИТОГО: 0.00 [10:46:30]line НСП 1% : 0.00 [10:46:30]line НДС 12% : 0.00 [10:46:30]line Наличными: 0.00 [10:46:30]line Безнал.: 0.00 [10:46:30]line Место: АЗС № 173 "Партнер Нефть" [10:46:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:46:30]line СНО: Общий режим [10:46:30]line Чек 74 27.10.2024 10:46 [10:46:30]line Смена: 542 ФФД: 1.0 [10:46:30]line ЗНМ: 0300000115 [10:46:30]line РНМ: 0000000000091782 [10:46:30]line Версия ККМ: 001 [10:46:30]line Талоны: Топливные Талоны [10:46:30]line 4755271 [10:46:30]line ФМ: 0000000000871767 [10:46:30]line ФД: 117374 [10:46:30]line ФПД: 30726409201576 [10:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104629&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117374&fm=30726409201576&tin=02508201610067®Number=0000000000091782&sum=0 [10:46:30]written 0, free lines is 4095 [10:46:30]Write to MH i2c: 01 00 00 26 0A 30 [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: 01 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: 01 07 00 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: 01 07 00 26 0A 00 00 00 00 00 BC 0C FF [10:46:30]RasterBufferAndPrint [10:46:30]line [10:46:30]line [10:46:30]line [10:46:30]line [10:46:30]line [10:46:30]written 0, free lines is 3263 [10:46:30]MH_Cut [10:46:30]Write to MH i2c: D1 01 00 2D 0A 01 09 [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: D1 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: D1 01 00 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: D1 01 00 2D 0A 00 08 [10:46:30]Write to MH i2c: 01 00 00 2E 0A 38 [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:31]*** Cut start [10:46:31]*** Purtial cut [10:46:31]*** Stage 1: CUTSNS_PIN = 1 [10:46:31]Read from MH i2c: 01 [10:46:31]MH_I2C_Read... [10:46:31]*** Stop cut motor [10:46:31]*** Cut end [10:46:31]Read from MH i2c: 01 07 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: 01 07 00 2E 0A 00 00 00 00 00 FF 0F 4D [10:46:31]process_action close_receipt done [10:46:31]requested_data is exist [10:46:31]produce_requested_data [10:46:31]requested_item fm.sn is exist - process it [10:46:31]wFMCommunicate request_size=4 [10:46:31]MH_SAM_APDU [10:46:31]CAPDU: 80 11 00 00 [10:46:31]Write to MH i2c: E2 08 00 2F 0A 80 11 00 00 00 00 00 00 B3 [10:46:32]Write i2c OK [10:46:32]MH_I2C_Read... [10:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:32]Read from MH i2c: E2 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: E2 17 00 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: E2 17 00 2F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0A [10:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:46:32]wFMCommunicate OK [10:46:32]requested_item fd.num is exist - process it [10:46:32]SAM_PROTO_GetFieldsCounters [10:46:32]wFMCommunicate request_size=4 [10:46:32]MH_SAM_APDU [10:46:32]CAPDU: 80 13 00 00 [10:46:32]Write to MH i2c: E2 08 00 30 0A 80 13 00 00 00 00 00 00 B6 [10:46:32]Write i2c OK [10:46:32]MH_I2C_Read... [10:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:32]Read from MH i2c: E2 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: E2 62 00 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: E2 62 00 30 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7E CA 01 00 0E 04 04 00 1E 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 24 [10:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7E CA 01 00 0E 04 04 00 1E 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 [10:46:32]wFMCommunicate OK [10:46:32]SAM_PROTO_GetFieldsCounters done [10:46:32]requested_item shift.num is exist - process it [10:46:32]requested_item shift.opened is exist - process it [10:46:32]req_shift_opened [10:46:32]FM_GetShiftState [10:46:32]SAM_PROTO_GetShiftState [10:46:32]wFMCommunicate request_size=4 [10:46:32]MH_SAM_APDU [10:46:32]CAPDU: 80 13 01 00 [10:46:32]Write to MH i2c: E2 08 00 31 0A 80 13 01 00 00 00 00 00 B8 [10:46:32]Write i2c OK [10:46:32]MH_I2C_Read... [10:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:32]Read from MH i2c: E2 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: E2 0E 00 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: E2 0E 00 31 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F7 [10:46:32]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [10:46:32]wFMCommunicate OK [10:46:32]SAM_PROTO_GetShiftState done [10:46:32]FM_GetShiftState done [10:46:32]req_shift_opened done [10:46:32]requested_item shift.open_date is exist - process it [10:46:32]req_shift_open_date [10:46:32]req_shift_open_date done [10:46:32]produce_requested_data done [10:46:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117374,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [10:46:32]process_action_free close_receipt [10:46:32]json_value_free [10:46:32]json_value_free done [10:46:32]process_json_proto returns [10:46:32]Send response to host [10:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117374,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [10:46:32]free response buf [10:46:32]execute_script done [10:46:32]execute_script returns [10:46:32]free content buf [10:46:32]Sock 11.Close socket [10:46:32]Sock 11.Thread stoped [10:47:07]ConnectInit Can't connect to host [10:47:07]CommunicateWithHost connect error [10:47:07]CommunicateWithHost err = -1 [10:47:07]OFD Sender: Server communicate error [10:47:07]OFD Sender: Processing packet 117334 [packets to send 115, broken 75] [10:47:07]ProducePacketName [10:47:07]name=ofd_packets/00117334 [10:47:07]OFD Sender: To server: pG, [10:47:07]CommunicateWithHost lk.salyk.kg:30040 [10:47:07]ConnectInit lk.salyk.kg [10:47:07]Connected sock=7 [10:47: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 36 37 0F 01 00 00 F6 B6 07 01 90 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 22 00 00 00 F4 03 04 00 51 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 56 CA 01 00 35 04 06 00 6C B9 68 27 24 14 D4 FF 76 98 D0 BD 69 E7 [10:47: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 36 37 4F 00 00 00 E1 3E 47 00 A4 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 36 37 10 04 04 00 56 CA 01 00 F4 03 04 00 E8 C5 1D 67 B6 04 01 00 00 E6 00 4E 39 B1 19 9F 7C [10:47:08]CommunicateWithHost err = 0 [10:47:08]CheckOFDResponse [10:47:08]1017 (14) - 77093643461234 [10:47:08]1041 (16) - 0000000000871767 [10:47:08]1040 (4) - 117334 [10:47:08]1012 (4) - 27.10.2024 04:47 [10:47:08]1206 (1) - 0 [10:47:08]OFD Sender: Remove packet 117334 [10:47:08]ProducePacketName [10:47:08]name=ofd_packets/00117334 [10:47:08]NVStorageDeleteData [10:47:08]OFD Sender: Processing packet 117335 [packets to send 114, broken 75] [10:47:08]ProducePacketName [10:47:08]name=ofd_packets/00117335 [10:47:08]OFD Sender: To server: pG, [10:47:08]CommunicateWithHost lk.salyk.kg:30040 [10:47:08]ConnectInit lk.salyk.kg [10:47:08]Connected sock=7 [10:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D7 3D 07 01 E7 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 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 23 00 00 00 F4 03 04 00 65 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 57 CA 01 00 35 04 06 00 62 23 A7 BA 24 D3 59 02 0F A2 84 9F D4 F3 [10: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 36 37 4F 00 00 00 E9 B1 47 00 10 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 36 37 10 04 04 00 57 CA 01 00 F4 03 04 00 E9 C5 1D 67 B6 04 01 00 00 FC EE 2B 15 DE 01 27 42 [10:47:09]CommunicateWithHost err = 0 [10:47:09]CheckOFDResponse [10:47:09]1017 (14) - 77093643461234 [10:47:09]1041 (16) - 0000000000871767 [10:47:09]1040 (4) - 117335 [10:47:09]1012 (4) - 27.10.2024 04:47 [10:47:09]1206 (1) - 0 [10:47:09]OFD Sender: Remove packet 117335 [10:47:09]ProducePacketName [10:47:09]name=ofd_packets/00117335 [10:47:09]NVStorageDeleteData [10:47:09]OFD Sender: Processing packet 117336 [packets to send 113, broken 75] [10:47:09]ProducePacketName [10:47:09]name=ofd_packets/00117336 [10:47:09]OFD Sender: To server: pG, [10:47:09]CommunicateWithHost lk.salyk.kg:30040 [10:47:09]ConnectInit lk.salyk.kg [10:47:09]Connected sock=7 [10: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 36 37 0F 01 00 00 D8 4C 07 01 F4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 24 00 00 00 F4 03 04 00 87 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 58 CA 01 00 35 04 06 00 85 08 FB 44 10 7E B6 B4 76 9A DE 6B EE 8E [10: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 36 37 4F 00 00 00 A8 96 47 00 B7 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 36 37 10 04 04 00 58 CA 01 00 F4 03 04 00 EA C5 1D 67 B6 04 01 00 00 AA D8 37 5A F7 23 81 B5 [10:47:09]CommunicateWithHost err = 0 [10:47:09]CheckOFDResponse [10:47:09]1017 (14) - 77093643461234 [10:47:09]1041 (16) - 0000000000871767 [10:47:09]1040 (4) - 117336 [10:47:09]1012 (4) - 27.10.2024 04:47 [10:47:09]1206 (1) - 0 [10:47:09]OFD Sender: Remove packet 117336 [10:47:09]ProducePacketName [10:47:09]name=ofd_packets/00117336 [10:47:09]NVStorageDeleteData [10:47:10]OFD Sender: Processing packet 117337 [packets to send 112, broken 75] [10:47:10]ProducePacketName [10:47:10]name=ofd_packets/00117337 [10:47:10]OFD Sender: To server: pG, [10:47:10]CommunicateWithHost lk.salyk.kg:30040 [10:47:10]ConnectInit lk.salyk.kg [10:47:10]Connected sock=7 [10:47: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 36 37 0F 01 00 00 25 FF 07 01 1E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D1 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 59 CA 01 00 35 04 06 00 86 D7 BB ED DF 7B 01 AA 8D 2B D6 46 9F 8B [10:47: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 36 37 4F 00 00 00 0A 9E 47 00 A4 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 36 37 10 04 04 00 59 CA 01 00 F4 03 04 00 EB C5 1D 67 B6 04 01 00 00 81 F9 B0 7F 5B 4D 93 17 [10:47:10]CommunicateWithHost err = 0 [10:47:10]CheckOFDResponse [10:47:10]1017 (14) - 77093643461234 [10:47:10]1041 (16) - 0000000000871767 [10:47:10]1040 (4) - 117337 [10:47:10]1012 (4) - 27.10.2024 04:47 [10:47:10]1206 (1) - 0 [10:47:10]OFD Sender: Remove packet 117337 [10:47:10]ProducePacketName [10:47:10]name=ofd_packets/00117337 [10:47:10]NVStorageDeleteData [10:47:11]OFD Sender: Processing packet 117338 [packets to send 111, broken 75] [10:47:11]ProducePacketName [10:47:11]name=ofd_packets/00117338 [10:47:11]OFD Sender: To server: pG, [10:47:11]CommunicateWithHost lk.salyk.kg:30040 [10:47:11]ConnectInit lk.salyk.kg [10:47:11]Connected sock=7 [10: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 36 37 0F 01 00 00 E1 EA 07 01 0E 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0C 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5A CA 01 00 35 04 06 00 4F DF 74 33 64 87 C7 7D 58 A0 DC C6 88 88 [10: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 36 37 4F 00 00 00 23 0F 47 00 27 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 36 37 10 04 04 00 5A CA 01 00 F4 03 04 00 EB C5 1D 67 B6 04 01 00 00 A3 E7 82 E1 6F C0 4D 45 [10:47:11]CommunicateWithHost err = 0 [10:47:11]CheckOFDResponse [10:47:11]1017 (14) - 77093643461234 [10:47:11]1041 (16) - 0000000000871767 [10:47:11]1040 (4) - 117338 [10:47:11]1012 (4) - 27.10.2024 04:47 [10:47:11]1206 (1) - 0 [10:47:11]OFD Sender: Remove packet 117338 [10:47:11]ProducePacketName [10:47:11]name=ofd_packets/00117338 [10:47:11]NVStorageDeleteData [10:47:12]OFD Sender: Processing packet 117339 [packets to send 110, broken 75] [10:47:12]ProducePacketName [10:47:12]name=ofd_packets/00117339 [10:47:12]OFD Sender: To server: pG, [10:47:12]CommunicateWithHost lk.salyk.kg:30040 [10:47:12]ConnectInit lk.salyk.kg [10:47:12]Connected sock=7 [10:47: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 36 37 0F 01 00 00 C4 3A 07 01 92 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5B CA 01 00 35 04 06 00 6A 90 62 D2 32 84 E6 04 B8 93 50 2D B6 42 [10:47: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 36 37 4F 00 00 00 71 6D 47 00 19 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 36 37 10 04 04 00 5B CA 01 00 F4 03 04 00 EC C5 1D 67 B6 04 01 00 00 14 07 D6 D2 ED B1 3D B0 [10:47:12]CommunicateWithHost err = 0 [10:47:12]CheckOFDResponse [10:47:12]1017 (14) - 77093643461234 [10:47:12]1041 (16) - 0000000000871767 [10:47:12]1040 (4) - 117339 [10:47:12]1012 (4) - 27.10.2024 04:47 [10:47:12]1206 (1) - 0 [10:47:12]OFD Sender: Remove packet 117339 [10:47:12]ProducePacketName [10:47:12]name=ofd_packets/00117339 [10:47:12]NVStorageDeleteData [10:47:12]OFD Sender: Processing packet 117341 [packets to send 109, broken 75] [10:47:12]ProducePacketName [10:47:12]name=ofd_packets/00117341 [10:47:12]OFD Sender: To server: pG, [10:47:12]CommunicateWithHost lk.salyk.kg:30040 [10:47:12]ConnectInit lk.salyk.kg [10:47:13]Connected sock=7 [10:47: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 36 37 0C 01 00 00 82 B3 04 01 33 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 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 29 00 00 00 F4 03 04 00 C4 0B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5D CA 01 00 35 04 06 00 98 FD 33 41 C3 01 7F D8 30 19 BC 11 8A AE [10:47: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 36 37 4F 00 00 00 61 74 47 00 CD 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 36 37 10 04 04 00 5D CA 01 00 F4 03 04 00 ED C5 1D 67 B6 04 01 00 00 1C C5 A1 F1 1C B4 08 C6 [10:47:13]CommunicateWithHost err = 0 [10:47:13]CheckOFDResponse [10:47:13]1017 (14) - 77093643461234 [10:47:13]1041 (16) - 0000000000871767 [10:47:13]1040 (4) - 117341 [10:47:13]1012 (4) - 27.10.2024 04:47 [10:47:13]1206 (1) - 0 [10:47:13]OFD Sender: Remove packet 117341 [10:47:13]ProducePacketName [10:47:13]name=ofd_packets/00117341 [10:47:13]NVStorageDeleteData [10:47:13]OFD Sender: Processing packet 117342 [packets to send 108, broken 75] [10:47:13]ProducePacketName [10:47:13]name=ofd_packets/00117342 [10:47:13]OFD Sender: To server: pG, [10:47:13]CommunicateWithHost lk.salyk.kg:30040 [10:47:13]ConnectInit lk.salyk.kg [10:47:13]Connected sock=7 [10:47: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 36 37 0F 01 00 00 67 D8 07 01 95 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2A 00 00 00 F4 03 04 00 FA 0B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5E CA 01 00 35 04 06 00 04 DD 66 DC 86 C3 27 49 21 D1 A3 7B 88 E4 [10:47: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 36 37 4F 00 00 00 8B 89 47 00 71 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 36 37 10 04 04 00 5E CA 01 00 F4 03 04 00 EE C5 1D 67 B6 04 01 00 00 14 08 66 8D 7B 59 02 AB [10:47:14]CommunicateWithHost err = 0 [10:47:14]CheckOFDResponse [10:47:14]1017 (14) - 77093643461234 [10:47:14]1041 (16) - 0000000000871767 [10:47:14]1040 (4) - 117342 [10:47:14]1012 (4) - 27.10.2024 04:47 [10:47:14]1206 (1) - 0 [10:47:14]OFD Sender: Remove packet 117342 [10:47:14]ProducePacketName [10:47:14]name=ofd_packets/00117342 [10:47:14]NVStorageDeleteData [10:47:14]OFD Sender: Processing packet 117343 [packets to send 107, broken 75] [10:47:14]ProducePacketName [10:47:14]name=ofd_packets/00117343 [10:47:14]OFD Sender: To server: pG, [10:47:14]CommunicateWithHost lk.salyk.kg:30040 [10:47:14]ConnectInit lk.salyk.kg [10:47:14]Connected sock=7 [10:47: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 36 37 0F 01 00 00 8A CA 07 01 30 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 2B 00 00 00 F4 03 04 00 36 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5F CA 01 00 35 04 06 00 93 96 16 04 DF B4 44 B5 2A BE 62 B1 27 0F [10:47: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 36 37 4F 00 00 00 6F 0B 47 00 CE 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 36 37 10 04 04 00 5F CA 01 00 F4 03 04 00 EF C5 1D 67 B6 04 01 00 00 72 4C A5 61 F0 46 67 E2 [10:47:14]CommunicateWithHost err = 0 [10:47:14]CheckOFDResponse [10:47:14]1017 (14) - 77093643461234 [10:47:14]1041 (16) - 0000000000871767 [10:47:14]1040 (4) - 117343 [10:47:14]1012 (4) - 27.10.2024 04:47 [10:47:14]1206 (1) - 0 [10:47:14]OFD Sender: Remove packet 117343 [10:47:14]ProducePacketName [10:47:14]name=ofd_packets/00117343 [10:47:14]NVStorageDeleteData [10:47:15]OFD Sender: Processing packet 117344 [packets to send 106, broken 75] [10:47:15]ProducePacketName [10:47:15]name=ofd_packets/00117344 [10:47:15]OFD Sender: To server: pG, [10:47:15]CommunicateWithHost lk.salyk.kg:30040 [10:47:15]ConnectInit lk.salyk.kg [10:47:15]Connected sock=7 [10:47: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 36 37 0F 01 00 00 69 7F 07 01 6B 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2C 00 00 00 F4 03 04 00 79 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 60 CA 01 00 35 04 06 00 A2 72 D9 34 55 63 5B 26 5A 9D EA 56 CC F9 [10:47: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 36 37 4F 00 00 00 04 C5 47 00 A0 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 36 37 10 04 04 00 60 CA 01 00 F4 03 04 00 F0 C5 1D 67 B6 04 01 00 00 17 87 E8 85 DC 06 BB CC [10:47:15]CommunicateWithHost err = 0 [10:47:15]CheckOFDResponse [10:47:15]1017 (14) - 77093643461234 [10:47:15]1041 (16) - 0000000000871767 [10:47:15]1040 (4) - 117344 [10:47:15]1012 (4) - 27.10.2024 04:47 [10:47:15]1206 (1) - 0 [10:47:15]OFD Sender: Remove packet 117344 [10:47:15]ProducePacketName [10:47:15]name=ofd_packets/00117344 [10:47:15]NVStorageDeleteData [10:47:16]OFD Sender: Processing packet 117345 [packets to send 105, broken 75] [10:47:16]ProducePacketName [10:47:16]name=ofd_packets/00117345 [10:47:16]OFD Sender: To server: pG, [10:47:16]CommunicateWithHost lk.salyk.kg:30040 [10:47:16]ConnectInit lk.salyk.kg [10:47:16]Connected sock=7 [10:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3B D2 07 01 6B 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 14 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 61 CA 01 00 35 04 06 00 A1 F9 38 96 E3 79 EC EE 39 F5 A0 1D B7 97 [10:47: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 36 37 4F 00 00 00 96 FB 47 00 4A 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 36 37 10 04 04 00 61 CA 01 00 F4 03 04 00 F0 C5 1D 67 B6 04 01 00 00 E1 BF 67 FE 64 BB 15 87 [10:47:16]CommunicateWithHost err = 0 [10:47:16]CheckOFDResponse [10:47:16]1017 (14) - 77093643461234 [10:47:16]1041 (16) - 0000000000871767 [10:47:16]1040 (4) - 117345 [10:47:16]1012 (4) - 27.10.2024 04:47 [10:47:16]1206 (1) - 0 [10:47:16]OFD Sender: Remove packet 117345 [10:47:16]ProducePacketName [10:47:16]name=ofd_packets/00117345 [10:47:16]NVStorageDeleteData [10:47:17]OFD Sender: Processing packet 117346 [packets to send 104, broken 75] [10:47:17]ProducePacketName [10:47:17]name=ofd_packets/00117346 [10:47:17]OFD Sender: To server: pG, [10:47:17]CommunicateWithHost lk.salyk.kg:30040 [10:47:17]ConnectInit lk.salyk.kg [10:47:17]Connected sock=7 [10:47: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 36 37 0F 01 00 00 10 1D 07 01 5C AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B6 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 62 CA 01 00 35 04 06 00 BA 5A A5 0A 9E 0D 8C 84 5B C6 DE 4E 16 51 [10:47: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 36 37 4F 00 00 00 C4 DE 47 00 5F 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 36 37 10 04 04 00 62 CA 01 00 F4 03 04 00 F1 C5 1D 67 B6 04 01 00 00 D4 83 E3 19 97 00 BC EE [10:47:17]CommunicateWithHost err = 0 [10:47:17]CheckOFDResponse [10:47:17]1017 (14) - 77093643461234 [10:47:17]1041 (16) - 0000000000871767 [10:47:17]1040 (4) - 117346 [10:47:17]1012 (4) - 27.10.2024 04:47 [10:47:17]1206 (1) - 0 [10:47:17]OFD Sender: Remove packet 117346 [10:47:17]ProducePacketName [10:47:17]name=ofd_packets/00117346 [10:47:17]NVStorageDeleteData [10:47:17]OFD Sender: Processing packet 117347 [packets to send 103, broken 75] [10:47:17]ProducePacketName [10:47:17]name=ofd_packets/00117347 [10:47:17]OFD Sender: To server: pG, [10:47:17]CommunicateWithHost lk.salyk.kg:30040 [10:47:17]ConnectInit lk.salyk.kg [10:47:17]Connected sock=10 [10:47: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 36 37 0F 01 00 00 66 6E 07 01 B0 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 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 2F 00 00 00 F4 03 04 00 88 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 63 CA 01 00 35 04 06 00 15 40 63 ED 24 CE CA 8A A4 3C 7E BF 05 5D [10:47: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 36 37 4F 00 00 00 C2 2E 47 00 E8 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 36 37 10 04 04 00 63 CA 01 00 F4 03 04 00 F2 C5 1D 67 B6 04 01 00 00 9C 1D 72 8B 1F 08 11 BB [10:47:18]CommunicateWithHost err = 0 [10:47:18]CheckOFDResponse [10:47:18]1017 (14) - 77093643461234 [10:47:18]1041 (16) - 0000000000871767 [10:47:18]1040 (4) - 117347 [10:47:18]1012 (4) - 27.10.2024 04:47 [10:47:18]1206 (1) - 0 [10:47:18]OFD Sender: Remove packet 117347 [10:47:18]ProducePacketName [10:47:18]name=ofd_packets/00117347 [10:47:18]NVStorageDeleteData [10:47:18]OFD Sender: Processing packet 117348 [packets to send 102, broken 75] [10:47:18]ProducePacketName [10:47:18]name=ofd_packets/00117348 [10:47:18]OFD Sender: To server: pG, [10:47:18]CommunicateWithHost lk.salyk.kg:30040 [10:47:18]ConnectInit lk.salyk.kg [10:47:18]Connected sock=7 [10:47:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 49 CF 07 01 BB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0D 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 64 CA 01 00 35 04 06 00 17 17 77 3E 21 26 02 3D 3D AF 0E 27 5B 09 [10:47: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 36 37 4F 00 00 00 54 3F 47 00 6C 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 36 37 10 04 04 00 64 CA 01 00 F4 03 04 00 F3 C5 1D 67 B6 04 01 00 00 F0 23 EF 48 89 DC 91 71 [10:47:18]CommunicateWithHost err = 0 [10:47:18]CheckOFDResponse [10:47:18]1017 (14) - 77093643461234 [10:47:18]1041 (16) - 0000000000871767 [10:47:18]1040 (4) - 117348 [10:47:18]1012 (4) - 27.10.2024 04:47 [10:47:18]1206 (1) - 0 [10:47:18]OFD Sender: Remove packet 117348 [10:47:18]ProducePacketName [10:47:18]name=ofd_packets/00117348 [10:47:18]NVStorageDeleteData [10:47:19]OFD Sender: Processing packet 117349 [packets to send 101, broken 75] [10:47:19]ProducePacketName [10:47:19]name=ofd_packets/00117349 [10:47:19]OFD Sender: To server: pG, [10:47:19]CommunicateWithHost lk.salyk.kg:30040 [10:47:19]ConnectInit lk.salyk.kg [10:47:19]Connected sock=7 [10:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 5E 77 04 01 13 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 31 00 00 00 F4 03 04 00 AD 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 65 CA 01 00 35 04 06 00 E0 C3 C6 F0 89 0B B4 BD 7C FF 58 74 B1 22 [10:47: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 36 37 4F 00 00 00 98 93 47 00 90 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 36 37 10 04 04 00 65 CA 01 00 F4 03 04 00 F4 C5 1D 67 B6 04 01 00 00 16 BD 6D 8D F7 0E 21 DC [10:47:19]CommunicateWithHost err = 0 [10:47:19]CheckOFDResponse [10:47:19]1017 (14) - 77093643461234 [10:47:19]1041 (16) - 0000000000871767 [10:47:19]1040 (4) - 117349 [10:47:19]1012 (4) - 27.10.2024 04:47 [10:47:19]1206 (1) - 0 [10:47:19]OFD Sender: Remove packet 117349 [10:47:19]ProducePacketName [10:47:19]name=ofd_packets/00117349 [10:47:19]NVStorageDeleteData [10:47:20]OFD Sender: Processing packet 117350 [packets to send 100, broken 75] [10:47:20]ProducePacketName [10:47:20]name=ofd_packets/00117350 [10:47:20]OFD Sender: To server: pG, [10:47:20]CommunicateWithHost lk.salyk.kg:30040 [10:47:20]ConnectInit lk.salyk.kg [10:47:20]Connected sock=7 [10:47: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 36 37 0C 01 00 00 D7 E9 04 01 C0 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 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 32 00 00 00 F4 03 04 00 2F 11 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 66 CA 01 00 35 04 06 00 AD B4 A4 3A 78 2F F2 76 95 7A 36 A9 FD A9 [10:47: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 36 37 4F 00 00 00 90 37 47 00 A9 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 66 CA 01 00 F4 03 04 00 F5 C5 1D 67 B6 04 01 00 00 3D 1E 3C 68 D5 AA 24 D1 [10:47:20]CommunicateWithHost err = 0 [10:47:20]CheckOFDResponse [10:47:20]1017 (14) - 77093643461234 [10:47:20]1041 (16) - 0000000000871767 [10:47:20]1040 (4) - 117350 [10:47:20]1012 (4) - 27.10.2024 04:47 [10:47:20]1206 (1) - 0 [10:47:20]OFD Sender: Remove packet 117350 [10:47:20]ProducePacketName [10:47:20]name=ofd_packets/00117350 [10:47:20]NVStorageDeleteData [10:47:21]OFD Sender: Processing packet 117351 [packets to send 99, broken 75] [10:47:21]ProducePacketName [10:47:21]name=ofd_packets/00117351 [10:47:21]OFD Sender: To server: pG, [10:47:21]CommunicateWithHost lk.salyk.kg:30040 [10:47:21]ConnectInit lk.salyk.kg [10:47:21]Connected sock=7 [10:47: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 36 37 0F 01 00 00 7E F7 07 01 3C E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BF 11 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 67 CA 01 00 35 04 06 00 AA 4C 08 E6 FF BB 6C C1 34 53 D2 1F F1 4B [10:47: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 36 37 4F 00 00 00 3D 42 47 00 5E 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 36 37 10 04 04 00 67 CA 01 00 F4 03 04 00 F5 C5 1D 67 B6 04 01 00 00 54 AD C5 7E 1E 21 EB CF [10:47:21]CommunicateWithHost err = 0 [10:47:21]CheckOFDResponse [10:47:21]1017 (14) - 77093643461234 [10:47:21]1041 (16) - 0000000000871767 [10:47:21]1040 (4) - 117351 [10:47:21]1012 (4) - 27.10.2024 04:47 [10:47:21]1206 (1) - 0 [10:47:21]OFD Sender: Remove packet 117351 [10:47:21]ProducePacketName [10:47:21]name=ofd_packets/00117351 [10:47:21]NVStorageDeleteData [10:47:22]OFD Sender: Processing packet 117352 [packets to send 98, broken 75] [10:47:22]ProducePacketName [10:47:22]name=ofd_packets/00117352 [10:47:22]OFD Sender: To server: pG, [10:47:22]CommunicateWithHost lk.salyk.kg:30040 [10:47:22]ConnectInit lk.salyk.kg [10:47:22]Connected sock=7 [10: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 36 37 0F 01 00 00 31 71 07 01 09 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 34 00 00 00 F4 03 04 00 C7 11 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 68 CA 01 00 35 04 06 00 F6 E0 59 64 87 D3 A5 FE 0C 1E 33 58 DF 21 [10: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 36 37 4F 00 00 00 27 DA 47 00 03 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 36 37 10 04 04 00 68 CA 01 00 F4 03 04 00 F6 C5 1D 67 B6 04 01 00 00 35 24 86 BD 3F E3 25 41 [10:47:22]CommunicateWithHost err = 0 [10:47:22]CheckOFDResponse [10:47:22]1017 (14) - 77093643461234 [10:47:22]1041 (16) - 0000000000871767 [10:47:22]1040 (4) - 117352 [10:47:22]1012 (4) - 27.10.2024 04:47 [10:47:22]1206 (1) - 0 [10:47:22]OFD Sender: Remove packet 117352 [10:47:22]ProducePacketName [10:47:22]name=ofd_packets/00117352 [10:47:22]NVStorageDeleteData [10:47:22]OFD Sender: Processing packet 117353 [packets to send 97, broken 75] [10:47:22]ProducePacketName [10:47:22]name=ofd_packets/00117353 [10:47:22]OFD Sender: To server: pG, [10:47:22]CommunicateWithHost lk.salyk.kg:30040 [10:47:22]ConnectInit lk.salyk.kg [10:47:39]accept exits with 9 [10:47:39]New connection [10:47:39]New thread 3067600228 created [10:47:39]Thread 3067456868 joined [10:47:39]Waiting for new connection... [10:47:39] Sock 9.Parse request [10:47:39]Sock 9.Check first char [10:47:39]Sock 9.First char is OK [10:47:39]request: POST /json_proto HTTP/1.0 [10:47:39]Method: POST [10:47:39]URL: /json_proto [10:47:39]Method is POST - this is cgi request [10:47:39]url: /json_proto [10:47:39]query_string will be loaded in cgi processing [10:47:39]execute_cgi json_proto POST (null) [10:47:39]execute_cgi path=json_proto method=POST [10:47:39]POST find Content-Length [10:47:39]Host: 172.17.96.67:8080 [10:47:39]Content-Length: 797 [10:47:39]Content-Type: application/json [10:47:39] [10:47:39]POST finish read [10:47:39]Found Content-Length = 797 [10:47:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\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\u000A4466946", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:39]execute_script... [10:47: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)245151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\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\u000A4466946", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:39]POST & json_proto [10:47:39]process_json_proto [10:47:39]json parsed OK: [10:47:39]protocol is kg_v1.0 [10:47:39]action value=close_receipt [10:47:39]process_action close_receipt [10:47:39]cmd_close_receipt [10:47:39]MH_GetDate [10:47:39]Write to MH i2c: F0 00 00 32 0A 2B [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: F0 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: F0 09 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: F0 09 00 32 0A 00 4C 1A 1E 67 2B 09 1E 67 D8 [10:47:39]GetLastDocTimeStamp 1730025989 [10:47:39]current date 1730026060 [10:47:39]FM_GetShiftState [10:47:39]SAM_PROTO_GetShiftState [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 13 01 00 [10:47:39]Write to MH i2c: E2 08 00 33 0A 80 13 01 00 00 00 00 00 BA [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 0E 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 0E 00 33 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F9 [10:47:39]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [10:47:39]wFMCommunicate OK [10:47:39]SAM_PROTO_GetShiftState done [10:47:39]FM_GetShiftState done [10:47:39]opened in 1729987372 [10:47:39]opened+sec_in_day 1730073772 [10:47:39]quantity*price = 0 [10:47:39]sum+1 = 1 [10:47:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 75 27.10.2024 10:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Талоны: Топливные Талоны 4466946 ФМ: 0000000000871767 ФД: 117375 ФПД: 120044117623677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104740&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117375&fm=120044117623677&tin=02508201610067®Number=0000000000091782&sum=0 [10:47:40]StoreToDocumentArchive [10:47:40]shift 542 fd 117375 [10:47:40]save to /storage/0542/doc_00117375 [10:47:40]save last doc name /storage/0542/doc_00117375 to /storage/kkm_last_doc_name [10:47:40]save OK [10:47:40]Clear old archive folders... [10:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:47:40]tlvbuf is 016E1110 [10:47:40]SAM_PROTO_ClearQueue [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 09 00 00 [10:47:40]Write to MH i2c: E2 08 00 40 0A 80 09 00 00 00 00 00 00 BC [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 40 0A 00 90 00 BE [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]SAM_PROTO_ClearQueue done [10:47:40]KKMCreateOFDPacket [10:47:40]OFDProtocolAddRootSTLVToBuf [10:47:40]FM_MakeSignedData [10:47:40]FM_MakeSignedData [10:47:40]SAM_PROTO_SignData [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 0D 01 02 [10:47:40]Write to MH i2c: E2 08 00 41 0A 80 0D 01 02 00 00 00 00 C4 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]wFMCommunicate request_size=255 [10:47:40]MH_SAM_APDU [10:47:40]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 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 4B 00 00 00 F4 03 04 00 4C 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7F CA 01 00 35 04 06 00 6D 2D F2 FD [10:47:40]Write to MH i2c: E2 02 01 42 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 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 4B 00 00 00 F4 03 04 00 4C 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7F CA 01 00 35 04 06 00 6D 2D F2 FD 00 00 84 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]wFMCommunicate request_size=7 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 0D 02 02 02 03 7D [10:47:40]Write to MH i2c: E2 0A 00 43 0A 80 0D 02 02 02 00 03 7D 00 00 4B [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 0D 03 02 [10:47:40]Write to MH i2c: E2 08 00 44 0A 80 0D 03 02 00 00 00 00 C9 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0B 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0B 00 44 0A 00 56 C9 EC 9C D2 7E CD 5A 90 00 E8 [10:47:40]RAPDU: 56 C9 EC 9C D2 7E CD 5A 90 00 [10:47:40]wFMCommunicate OK [10:47:40]SAM_PROTO_SignData done [10:47:40]FM_MakeSignedData done [10:47:40]CreateOFDProtocolMessage [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 11 00 00 [10:47:40]Write to MH i2c: E2 08 00 45 0A 80 11 00 00 00 00 00 00 C9 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:41]Read from MH i2c: E2 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 17 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 17 00 45 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 20 [10:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:47:41]wFMCommunicate OK [10:47:41]CreateOFDProtocolMessage done [10:47:41]OFDSenderStorePacket 117375 [10:47:41]StoreOFDPacket docnum=117375 [10:47:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 37 59 04 01 EB 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 4B 00 00 00 F4 03 04 00 4C 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7F CA 01 00 35 04 06 00 6D 2D F2 FD 03 7D 56 C9 EC 9C D2 7E CD 5A [10:47:41]CheckFolder [10:47:41]dirname=/storage/ofd_packets [10:47:41]CheckFolder done [10:47:41]ProducePacketName [10:47:41]name=ofd_packets/00117375 [10:47:41]NVStorageSaveData ofd_packets/00117375 [10:47:41]File name is /storage/ofd_packets/00117375 [10:47:41]Write 298 bytes [10:47:41]NVStorageSaveData done [10:47:41]OFDSenderStorePacket done [10:47:41]KKMCreateOFDPacket done [10:47:41]NVStorageSaveData kkm_last_timestamp [10:47:41]File name is /storage/kkm_last_timestamp [10:47:41]Write 4 bytes [10:47:41]NVStorageSaveData done [10:47:41]ExternCall_PrintAddStr [10:47:41]wPrintStart [10:47:41]Write to MH i2c: 01 00 00 46 0A 50 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 46 0A 00 00 00 00 00 FF 0F 65 [10:47:41]RasterBufferAndPrint [10:47:41]line Счет N : (1)245151 [10:47:41]line ИНН: 02508201610067 [10:47:41]line Контрольно-Кассовый Чек [10:47:41]line ПРОДАЖА [10:47:41]line ТРК (МРК, ГНК) : 23 [10:47:41]line Товар: 2710194210 [10:47:41]line ДТ-К-2 [10:47:41]line 10.000 * 0.00 [10:47:41]line = 0.00 [10:47:41]line НДС 12% НСП 1% [10:47:41]line > о реализуемом товаре [10:47:41]line ИТОГО: 0.00 [10:47:41]line НСП 1% : 0.00 [10:47:41]line НДС 12% : 0.00 [10:47:41]line Наличными: 0.00 [10:47:41]line Безнал.: 0.00 [10:47:41]line Место: АЗС № 173 "Партнер Нефть" [10:47:41]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:47:41]line СНО: Общий режим [10:47:41]line Чек 75 27.10.2024 10:47 [10:47:41]line Смена: 542 ФФД: 1.0 [10:47:41]line ЗНМ: 0300000115 [10:47:41]line РНМ: 0000000000091782 [10:47:41]line Версия ККМ: 001 [10:47:41]line Талоны: Топливные Талоны [10:47:41]line 4466946 [10:47:41]line ФМ: 0000000000871767 [10:47:41]line ФД: 117375 [10:47:41]line ФПД: 120044117623677 [10:47:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104740&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117375&fm=120044117623677&tin=02508201610067®Number=0000000000091782&sum=0 [10:47:41]written 0, free lines is 4095 [10:47:41]Write to MH i2c: 01 00 00 6F 0A 79 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 6F 0A 00 00 00 00 00 BA 0C 46 [10:47:41]RasterBufferAndPrint [10:47:41]line [10:47:41]line [10:47:41]line [10:47:41]line [10:47:41]line [10:47:41]written 0, free lines is 3261 [10:47:41]MH_Cut [10:47:41]Write to MH i2c: D1 01 00 76 0A 01 52 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D1 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D1 01 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D1 01 00 76 0A 00 51 [10:47:41]Write to MH i2c: 01 00 00 77 0A 81 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:42]*** Cut start [10:47:42]*** Purtial cut [10:47:42]*** Stage 1: CUTSNS_PIN = 1 [10:47:42]Read from MH i2c: 01 [10:47:42]MH_I2C_Read... [10:47:42]*** Stop cut motor [10:47:42]*** Cut end [10:47:42]Read from MH i2c: 01 07 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: 01 07 00 77 0A 00 00 00 00 00 FF 0F 96 [10:47:42]process_action close_receipt done [10:47:42]requested_data is exist [10:47:42]produce_requested_data [10:47:42]requested_item fm.sn is exist - process it [10:47:42]wFMCommunicate request_size=4 [10:47:42]MH_SAM_APDU [10:47:42]CAPDU: 80 11 00 00 [10:47:42]Write to MH i2c: E2 08 00 78 0A 80 11 00 00 00 00 00 00 FC [10:47:42]Write i2c OK [10:47:42]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 17 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 17 00 78 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 53 [10:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:47:43]wFMCommunicate OK [10:47:43]requested_item fd.num is exist - process it [10:47:43]SAM_PROTO_GetFieldsCounters [10:47:43]wFMCommunicate request_size=4 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 13 00 00 [10:47:43]Write to MH i2c: E2 08 00 79 0A 80 13 00 00 00 00 00 00 FF [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 62 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 62 00 79 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7F CA 01 00 0E 04 04 00 1E 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 71 [10:47: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7F CA 01 00 0E 04 04 00 1E 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 [10:47:43]wFMCommunicate OK [10:47:43]SAM_PROTO_GetFieldsCounters done [10:47:43]requested_item shift.num is exist - process it [10:47:43]requested_item shift.opened is exist - process it [10:47:43]req_shift_opened [10:47:43]FM_GetShiftState [10:47:43]SAM_PROTO_GetShiftState [10:47:43]wFMCommunicate request_size=4 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 13 01 00 [10:47:43]Write to MH i2c: E2 08 00 7A 0A 80 13 01 00 00 00 00 00 01 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 0E 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 0E 00 7A 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 40 [10:47:43]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [10:47:43]wFMCommunicate OK [10:47:43]SAM_PROTO_GetShiftState done [10:47:43]FM_GetShiftState done [10:47:43]req_shift_opened done [10:47:43]requested_item shift.open_date is exist - process it [10:47:43]req_shift_open_date [10:47:43]req_shift_open_date done [10:47:43]produce_requested_data done [10:47:43]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117375,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [10:47:43]process_action_free close_receipt [10:47:43]json_value_free [10:47:43]json_value_free done [10:47:43]process_json_proto returns [10:47:43]Send response to host [10:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117375,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [10:47:43]free response buf [10:47:43]execute_script done [10:47:43]execute_script returns [10:47:43]free content buf [10:47:43]Sock 9.Close socket [10:47:43]Sock 9.Thread stoped [10:49:36]ConnectInit Can't connect to host [10:49:36]CommunicateWithHost connect error [10:49:36]CommunicateWithHost err = -1 [10:49:36]OFD Sender: Server communicate error [10:49:36]OFD Sender: Processing packet 117353 [packets to send 98, broken 75] [10:49:36]ProducePacketName [10:49:36]name=ofd_packets/00117353 [10:49:36]OFD Sender: To server: pG, [10:49:36]CommunicateWithHost lk.salyk.kg:30040 [10:49:36]ConnectInit lk.salyk.kg [10:49:36]Connected sock=7 [10:49: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 36 37 0F 01 00 00 EA 7D 07 01 81 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 35 00 00 00 F4 03 04 00 30 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 69 CA 01 00 35 04 06 00 66 CA 83 F8 38 3D 53 CE 1D 64 02 92 71 B5 [10:49: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 36 37 4F 00 00 00 2F 88 47 00 48 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 36 37 10 04 04 00 69 CA 01 00 F4 03 04 00 7D C6 1D 67 B6 04 01 00 00 9D 65 16 D0 94 5D 20 52 [10:49:36]CommunicateWithHost err = 0 [10:49:36]CheckOFDResponse [10:49:36]1017 (14) - 77093643461234 [10:49:36]1041 (16) - 0000000000871767 [10:49:36]1040 (4) - 117353 [10:49:36]1012 (4) - 27.10.2024 04:50 [10:49:36]1206 (1) - 0 [10:49:36]OFD Sender: Remove packet 117353 [10:49:36]ProducePacketName [10:49:36]name=ofd_packets/00117353 [10:49:36]NVStorageDeleteData [10:49:37]OFD Sender: Processing packet 117354 [packets to send 97, broken 75] [10:49:37]ProducePacketName [10:49:37]name=ofd_packets/00117354 [10:49:37]OFD Sender: To server: pG, [10:49:37]CommunicateWithHost lk.salyk.kg:30040 [10:49:37]ConnectInit lk.salyk.kg [10:49:37]Connected sock=7 [10:49: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 36 37 0C 01 00 00 3A CB 04 01 DD 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 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 36 00 00 00 F4 03 04 00 44 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6A CA 01 00 35 04 06 00 BE D5 CB 74 AC CC D2 4A 44 AC 52 45 50 B6 [10:49: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 36 37 4F 00 00 00 A3 94 47 00 89 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 36 37 10 04 04 00 6A CA 01 00 F4 03 04 00 7D C6 1D 67 B6 04 01 00 00 8D 77 B5 69 ED E7 5C 8C [10:49:37]CommunicateWithHost err = 0 [10:49:37]CheckOFDResponse [10:49:37]1017 (14) - 77093643461234 [10:49:37]1041 (16) - 0000000000871767 [10:49:37]1040 (4) - 117354 [10:49:37]1012 (4) - 27.10.2024 04:50 [10:49:37]1206 (1) - 0 [10:49:37]OFD Sender: Remove packet 117354 [10:49:37]ProducePacketName [10:49:37]name=ofd_packets/00117354 [10:49:37]NVStorageDeleteData [10:49:38]OFD Sender: Processing packet 117355 [packets to send 96, broken 75] [10:49:38]ProducePacketName [10:49:38]name=ofd_packets/00117355 [10:49:38]OFD Sender: To server: pG, [10:49:38]CommunicateWithHost lk.salyk.kg:30040 [10:49:38]ConnectInit lk.salyk.kg [10:49:38]Connected sock=7 [10:49: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 36 37 0F 01 00 00 82 D5 07 01 E4 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 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 37 00 00 00 F4 03 04 00 B6 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6B CA 01 00 35 04 06 00 5C DA 4C C3 AF 7F 7D 76 5D EA 0C 5E ED A8 [10:49: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 36 37 4F 00 00 00 4A 0A 47 00 FB 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 36 37 10 04 04 00 6B CA 01 00 F4 03 04 00 7E C6 1D 67 B6 04 01 00 00 F9 C8 8B 8D CD C7 22 8B [10:49:38]CommunicateWithHost err = 0 [10:49:38]CheckOFDResponse [10:49:38]1017 (14) - 77093643461234 [10:49:38]1041 (16) - 0000000000871767 [10:49:38]1040 (4) - 117355 [10:49:38]1012 (4) - 27.10.2024 04:50 [10:49:38]1206 (1) - 0 [10:49:38]OFD Sender: Remove packet 117355 [10:49:38]ProducePacketName [10:49:38]name=ofd_packets/00117355 [10:49:38]NVStorageDeleteData [10:49:38]OFD Sender: Processing packet 117356 [packets to send 95, broken 75] [10:49:38]ProducePacketName [10:49:38]name=ofd_packets/00117356 [10:49:38]OFD Sender: To server: pG, [10:49:38]CommunicateWithHost lk.salyk.kg:30040 [10:49:38]ConnectInit lk.salyk.kg [10:49:38]Connected sock=7 [10:49: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 36 37 0C 01 00 00 8E 58 04 01 F8 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 38 00 00 00 F4 03 04 00 C6 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6C CA 01 00 35 04 06 00 E5 79 31 82 A6 A4 68 B4 FC 70 61 49 4A 44 [10:49: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 36 37 4F 00 00 00 C1 D7 47 00 D1 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 36 37 10 04 04 00 6C CA 01 00 F4 03 04 00 7F C6 1D 67 B6 04 01 00 00 2A E7 BF 18 2A DE 3C 33 [10:49:39]CommunicateWithHost err = 0 [10:49:39]CheckOFDResponse [10:49:39]1017 (14) - 77093643461234 [10:49:39]1041 (16) - 0000000000871767 [10:49:39]1040 (4) - 117356 [10:49:39]1012 (4) - 27.10.2024 04:50 [10:49:39]1206 (1) - 0 [10:49:39]OFD Sender: Remove packet 117356 [10:49:39]ProducePacketName [10:49:39]name=ofd_packets/00117356 [10:49:39]NVStorageDeleteData [10:49:39]OFD Sender: Processing packet 117357 [packets to send 94, broken 75] [10:49:39]ProducePacketName [10:49:39]name=ofd_packets/00117357 [10:49:39]OFD Sender: To server: pG, [10:49:39]CommunicateWithHost lk.salyk.kg:30040 [10:49:39]ConnectInit lk.salyk.kg [10:49:39]Connected sock=7 [10:49: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 36 37 0F 01 00 00 D0 B2 07 01 B9 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 39 00 00 00 F4 03 04 00 0B 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6D CA 01 00 35 04 06 00 32 D3 26 FB 54 CA 97 FB D2 49 44 F7 6E BC [10:49: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 36 37 4F 00 00 00 0B BB 47 00 B0 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 36 37 10 04 04 00 6D CA 01 00 F4 03 04 00 80 C6 1D 67 B6 04 01 00 00 88 ED 30 E5 BB 5E 02 98 [10:49:40]CommunicateWithHost err = 0 [10:49:40]CheckOFDResponse [10:49:40]1017 (14) - 77093643461234 [10:49:40]1041 (16) - 0000000000871767 [10:49:40]1040 (4) - 117357 [10:49:40]1012 (4) - 27.10.2024 04:50 [10:49:40]1206 (1) - 0 [10:49:40]OFD Sender: Remove packet 117357 [10:49:40]ProducePacketName [10:49:40]name=ofd_packets/00117357 [10:49:40]NVStorageDeleteData [10:49:40]OFD Sender: Processing packet 117358 [packets to send 93, broken 75] [10:49:40]ProducePacketName [10:49:40]name=ofd_packets/00117358 [10:49:40]OFD Sender: To server: pG, [10:49:40]CommunicateWithHost lk.salyk.kg:30040 [10:49:40]ConnectInit lk.salyk.kg [10:49:40]Connected sock=7 [10:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8A 5A 07 01 BF 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 17 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6E CA 01 00 35 04 06 00 72 75 41 D0 53 2E A3 5C D6 FA B9 A0 D4 11 [10:49: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 36 37 4F 00 00 00 6A 61 47 00 6C A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6E CA 01 00 F4 03 04 00 81 C6 1D 67 B6 04 01 00 00 D7 F1 EF 72 4B 2A 27 D7 [10:49:40]CommunicateWithHost err = 0 [10:49:40]CheckOFDResponse [10:49:40]1017 (14) - 77093643461234 [10:49:40]1041 (16) - 0000000000871767 [10:49:40]1040 (4) - 117358 [10:49:40]1012 (4) - 27.10.2024 04:50 [10:49:40]1206 (1) - 0 [10:49:40]OFD Sender: Remove packet 117358 [10:49:40]ProducePacketName [10:49:40]name=ofd_packets/00117358 [10:49:40]NVStorageDeleteData [10:49:41]OFD Sender: Processing packet 117359 [packets to send 92, broken 75] [10:49:41]ProducePacketName [10:49:41]name=ofd_packets/00117359 [10:49:41]OFD Sender: To server: pG, [10:49:41]CommunicateWithHost lk.salyk.kg:30040 [10:49:41]ConnectInit lk.salyk.kg [10:49:41]Connected sock=7 [10:49: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 36 37 0F 01 00 00 A0 8F 07 01 83 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E6 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6F CA 01 00 35 04 06 00 E6 EC D2 C3 38 49 C1 9E 29 E7 01 F3 47 77 [10:49: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 36 37 4F 00 00 00 B1 5E 47 00 BC 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 36 37 10 04 04 00 6F CA 01 00 F4 03 04 00 82 C6 1D 67 B6 04 01 00 00 D8 B7 C4 25 BF 60 0B 40 [10:49:41]CommunicateWithHost err = 0 [10:49:41]CheckOFDResponse [10:49:41]1017 (14) - 77093643461234 [10:49:41]1041 (16) - 0000000000871767 [10:49:41]1040 (4) - 117359 [10:49:41]1012 (4) - 27.10.2024 04:50 [10:49:41]1206 (1) - 0 [10:49:41]OFD Sender: Remove packet 117359 [10:49:41]ProducePacketName [10:49:41]name=ofd_packets/00117359 [10:49:41]NVStorageDeleteData [10:49:42]OFD Sender: Processing packet 117360 [packets to send 91, broken 75] [10:49:42]ProducePacketName [10:49:42]name=ofd_packets/00117360 [10:49:42]OFD Sender: To server: pG, [10:49:42]CommunicateWithHost lk.salyk.kg:30040 [10:49:42]ConnectInit lk.salyk.kg [10:49:42]Connected sock=7 [10: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 36 37 0F 01 00 00 28 20 07 01 7B 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 70 CA 01 00 35 04 06 00 1C 63 2E 7E 15 38 7B 78 52 B3 4C 9F 1F 0F [10:49: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 36 37 4F 00 00 00 84 A4 47 00 67 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 36 37 10 04 04 00 70 CA 01 00 F4 03 04 00 82 C6 1D 67 B6 04 01 00 00 71 92 21 17 07 02 DF 6D [10:49:42]CommunicateWithHost err = 0 [10:49:42]CheckOFDResponse [10:49:42]1017 (14) - 77093643461234 [10:49:42]1041 (16) - 0000000000871767 [10:49:42]1040 (4) - 117360 [10:49:42]1012 (4) - 27.10.2024 04:50 [10:49:42]1206 (1) - 0 [10:49:42]OFD Sender: Remove packet 117360 [10:49:42]ProducePacketName [10:49:42]name=ofd_packets/00117360 [10:49:42]NVStorageDeleteData [10:49:43]OFD Sender: Processing packet 117361 [packets to send 90, broken 75] [10:49:43]ProducePacketName [10:49:43]name=ofd_packets/00117361 [10:49:43]OFD Sender: To server: pG, [10:49:43]CommunicateWithHost lk.salyk.kg:30040 [10:49:43]ConnectInit lk.salyk.kg [10:49:43]Connected sock=7 [10:49: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 36 37 0F 01 00 00 3D A9 07 01 6A 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 3D 00 00 00 F4 03 04 00 C8 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 71 CA 01 00 35 04 06 00 F3 C7 6D 65 87 3B 81 D2 FE D4 B7 3F 3A 49 [10: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 36 37 4F 00 00 00 D2 D6 47 00 F2 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 36 37 10 04 04 00 71 CA 01 00 F4 03 04 00 83 C6 1D 67 B6 04 01 00 00 F9 E3 9B 76 69 7C 00 2A [10:49:43]CommunicateWithHost err = 0 [10:49:43]CheckOFDResponse [10:49:43]1017 (14) - 77093643461234 [10:49:43]1041 (16) - 0000000000871767 [10:49:43]1040 (4) - 117361 [10:49:43]1012 (4) - 27.10.2024 04:50 [10:49:43]1206 (1) - 0 [10:49:43]OFD Sender: Remove packet 117361 [10:49:43]ProducePacketName [10:49:43]name=ofd_packets/00117361 [10:49:43]NVStorageDeleteData [10:49:43]OFD Sender: Processing packet 117362 [packets to send 89, broken 75] [10:49:43]ProducePacketName [10:49:43]name=ofd_packets/00117362 [10:49:43]OFD Sender: To server: pG, [10:49:43]CommunicateWithHost lk.salyk.kg:30040 [10:49:43]ConnectInit lk.salyk.kg [10:49:43]Connected sock=7 [10:49: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 36 37 0F 01 00 00 A5 64 07 01 71 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3E 00 00 00 F4 03 04 00 16 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 72 CA 01 00 35 04 06 00 18 5E F8 B4 B2 67 F6 8B 22 A1 6C D9 26 E6 [10:49: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 36 37 4F 00 00 00 42 3B 47 00 9C 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 36 37 10 04 04 00 72 CA 01 00 F4 03 04 00 84 C6 1D 67 B6 04 01 00 00 8B F6 AC D7 A0 78 93 32 [10:49:44]CommunicateWithHost err = 0 [10:49:44]CheckOFDResponse [10:49:44]1017 (14) - 77093643461234 [10:49:44]1041 (16) - 0000000000871767 [10:49:44]1040 (4) - 117362 [10:49:44]1012 (4) - 27.10.2024 04:50 [10:49:44]1206 (1) - 0 [10:49:44]OFD Sender: Remove packet 117362 [10:49:44]ProducePacketName [10:49:44]name=ofd_packets/00117362 [10:49:44]NVStorageDeleteData [10:49:44]OFD Sender: Processing packet 117363 [packets to send 88, broken 75] [10:49:44]ProducePacketName [10:49:44]name=ofd_packets/00117363 [10:49:44]OFD Sender: To server: pG, [10:49:44]CommunicateWithHost lk.salyk.kg:30040 [10:49:44]ConnectInit lk.salyk.kg [10:49:44]Connected sock=9 [10:49: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 36 37 0C 01 00 00 9C D3 04 01 E8 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 3F 00 00 00 F4 03 04 00 56 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 73 CA 01 00 35 04 06 00 9D B3 D6 93 BF A9 C3 9A 99 B1 5F 71 41 2F [10:49: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 36 37 4F 00 00 00 FA 3E 47 00 CA 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 36 37 10 04 04 00 73 CA 01 00 F4 03 04 00 85 C6 1D 67 B6 04 01 00 00 6D D2 0D 0D 5E 00 90 B1 [10:49:45]CommunicateWithHost err = 0 [10:49:45]CheckOFDResponse [10:49:45]1017 (14) - 77093643461234 [10:49:45]1041 (16) - 0000000000871767 [10:49:45]1040 (4) - 117363 [10:49:45]1012 (4) - 27.10.2024 04:50 [10:49:45]1206 (1) - 0 [10:49:45]OFD Sender: Remove packet 117363 [10:49:45]ProducePacketName [10:49:45]name=ofd_packets/00117363 [10:49:45]NVStorageDeleteData [10:49:45]OFD Sender: Processing packet 117364 [packets to send 87, broken 75] [10:49:45]ProducePacketName [10:49:45]name=ofd_packets/00117364 [10:49:45]OFD Sender: To server: pG, [10:49:45]CommunicateWithHost lk.salyk.kg:30040 [10:49:45]ConnectInit lk.salyk.kg [10:49:45]Connected sock=7 [10:49: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 36 37 0F 01 00 00 7D FB 07 01 14 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 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 40 00 00 00 F4 03 04 00 7D 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 74 CA 01 00 35 04 06 00 02 8E BB 02 A4 D5 10 71 BB B3 FF 5D 9C FB [10:49: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 36 37 4F 00 00 00 EE 38 47 00 3F 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 36 37 10 04 04 00 74 CA 01 00 F4 03 04 00 86 C6 1D 67 B6 04 01 00 00 60 19 6C F7 EE E4 95 2D [10:49:45]CommunicateWithHost err = 0 [10:49:45]CheckOFDResponse [10:49:45]1017 (14) - 77093643461234 [10:49:45]1041 (16) - 0000000000871767 [10:49:45]1040 (4) - 117364 [10:49:45]1012 (4) - 27.10.2024 04:50 [10:49:45]1206 (1) - 0 [10:49:45]OFD Sender: Remove packet 117364 [10:49:45]ProducePacketName [10:49:45]name=ofd_packets/00117364 [10:49:45]NVStorageDeleteData [10:49:46]OFD Sender: Processing packet 117365 [packets to send 86, broken 75] [10:49:46]ProducePacketName [10:49:46]name=ofd_packets/00117365 [10:49:46]OFD Sender: To server: pG, [10:49:46]CommunicateWithHost lk.salyk.kg:30040 [10:49:46]ConnectInit lk.salyk.kg [10:49:46]Connected sock=7 [10:49: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 36 37 0F 01 00 00 E6 03 07 01 A4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 02 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 75 CA 01 00 35 04 06 00 E5 41 ED 72 6B 25 A3 EB B7 B6 22 AF 4E D6 [10:49: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 36 37 4F 00 00 00 7A 77 47 00 74 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 36 37 10 04 04 00 75 CA 01 00 F4 03 04 00 87 C6 1D 67 B6 04 01 00 00 C4 29 37 C0 59 9A 77 B9 [10:49:46]CommunicateWithHost err = 0 [10:49:46]CheckOFDResponse [10:49:46]1017 (14) - 77093643461234 [10:49:46]1041 (16) - 0000000000871767 [10:49:46]1040 (4) - 117365 [10:49:46]1012 (4) - 27.10.2024 04:50 [10:49:46]1206 (1) - 0 [10:49:46]OFD Sender: Remove packet 117365 [10:49:46]ProducePacketName [10:49:46]name=ofd_packets/00117365 [10:49:46]NVStorageDeleteData [10:49:47]OFD Sender: Processing packet 117366 [packets to send 85, broken 75] [10:49:47]ProducePacketName [10:49:47]name=ofd_packets/00117366 [10:49:47]OFD Sender: To server: pG, [10:49:47]CommunicateWithHost lk.salyk.kg:30040 [10:49:47]ConnectInit lk.salyk.kg [10:49:47]Connected sock=7 [10:49: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 36 37 0F 01 00 00 CD 12 07 01 B5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 00 00 00 F4 03 04 00 8A 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 76 CA 01 00 35 04 06 00 74 C7 A8 17 97 D8 11 85 AF 8B 06 1F D7 40 [10:49: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 36 37 4F 00 00 00 31 03 47 00 0C 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 36 37 10 04 04 00 76 CA 01 00 F4 03 04 00 87 C6 1D 67 B6 04 01 00 00 39 CB 86 6D AF D6 EA 46 [10:49:47]CommunicateWithHost err = 0 [10:49:47]CheckOFDResponse [10:49:47]1017 (14) - 77093643461234 [10:49:47]1041 (16) - 0000000000871767 [10:49:47]1040 (4) - 117366 [10:49:47]1012 (4) - 27.10.2024 04:50 [10:49:47]1206 (1) - 0 [10:49:47]OFD Sender: Remove packet 117366 [10:49:47]ProducePacketName [10:49:47]name=ofd_packets/00117366 [10:49:47]NVStorageDeleteData [10:49:48]OFD Sender: Processing packet 117367 [packets to send 84, broken 75] [10:49:48]ProducePacketName [10:49:48]name=ofd_packets/00117367 [10:49:48]OFD Sender: To server: pG, [10:49:48]CommunicateWithHost lk.salyk.kg:30040 [10:49:48]ConnectInit lk.salyk.kg [10:49:48]Connected sock=7 [10:49: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 36 37 0F 01 00 00 A0 19 07 01 30 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F7 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 77 CA 01 00 35 04 06 00 59 DC B8 C2 5E 35 9A 55 9B AA 56 9F F4 F1 [10:49: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 36 37 4F 00 00 00 3E 12 47 00 6D 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 36 37 10 04 04 00 77 CA 01 00 F4 03 04 00 88 C6 1D 67 B6 04 01 00 00 FC BC A3 33 25 A0 31 17 [10:49:48]CommunicateWithHost err = 0 [10:49:48]CheckOFDResponse [10:49:48]1017 (14) - 77093643461234 [10:49:48]1041 (16) - 0000000000871767 [10:49:48]1040 (4) - 117367 [10:49:48]1012 (4) - 27.10.2024 04:50 [10:49:48]1206 (1) - 0 [10:49:48]OFD Sender: Remove packet 117367 [10:49:48]ProducePacketName [10:49:48]name=ofd_packets/00117367 [10:49:48]NVStorageDeleteData [10:49:48]OFD Sender: Processing packet 117368 [packets to send 83, broken 75] [10:49:48]ProducePacketName [10:49:48]name=ofd_packets/00117368 [10:49:48]OFD Sender: To server: pG, [10:49:48]CommunicateWithHost lk.salyk.kg:30040 [10:49:48]ConnectInit lk.salyk.kg [10:49:48]Connected sock=7 [10:49: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 36 37 0C 01 00 00 19 B7 04 01 94 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 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 AE 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 44 00 00 00 F4 03 04 00 33 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 78 CA 01 00 35 04 06 00 4C 70 3A 93 B3 84 90 0A 6E 16 9B FD 67 6B [10: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 36 37 4F 00 00 00 0C 16 47 00 98 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 36 37 10 04 04 00 78 CA 01 00 F4 03 04 00 89 C6 1D 67 B6 04 01 00 00 E2 DE 2E 11 14 C1 60 4A [10:49:49]CommunicateWithHost err = 0 [10:49:49]CheckOFDResponse [10:49:49]1017 (14) - 77093643461234 [10:49:49]1041 (16) - 0000000000871767 [10:49:49]1040 (4) - 117368 [10:49:49]1012 (4) - 27.10.2024 04:50 [10:49:49]1206 (1) - 0 [10:49:49]OFD Sender: Remove packet 117368 [10:49:49]ProducePacketName [10:49:49]name=ofd_packets/00117368 [10:49:49]NVStorageDeleteData [10:49:49]OFD Sender: Processing packet 117369 [packets to send 82, broken 75] [10:49:49]ProducePacketName [10:49:49]name=ofd_packets/00117369 [10:49:49]OFD Sender: To server: pG, [10:49:49]CommunicateWithHost lk.salyk.kg:30040 [10:49:49]ConnectInit lk.salyk.kg [10:49:49]Connected sock=7 [10: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 36 37 0F 01 00 00 9C A7 07 01 E6 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 69 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 79 CA 01 00 35 04 06 00 D2 59 AA 6E 63 37 E6 B0 0A 26 E0 3D AC 0A [10: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 36 37 4F 00 00 00 DB 10 47 00 D7 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 36 37 10 04 04 00 79 CA 01 00 F4 03 04 00 8A C6 1D 67 B6 04 01 00 00 96 D2 57 5C E9 1E 1D 97 [10:49:50]CommunicateWithHost err = 0 [10:49:50]CheckOFDResponse [10:49:50]1017 (14) - 77093643461234 [10:49:50]1041 (16) - 0000000000871767 [10:49:50]1040 (4) - 117369 [10:49:50]1012 (4) - 27.10.2024 04:50 [10:49:50]1206 (1) - 0 [10:49:50]OFD Sender: Remove packet 117369 [10:49:50]ProducePacketName [10:49:50]name=ofd_packets/00117369 [10:49:50]NVStorageDeleteData [10:49:50]OFD Sender: Processing packet 117370 [packets to send 81, broken 75] [10:49:50]ProducePacketName [10:49:50]name=ofd_packets/00117370 [10:49:50]OFD Sender: To server: pG, [10:49:50]CommunicateWithHost lk.salyk.kg:30040 [10:49:50]ConnectInit lk.salyk.kg [10:49:50]Connected sock=7 [10: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 36 37 0F 01 00 00 2E DA 07 01 2B 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 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 46 00 00 00 F4 03 04 00 75 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7A CA 01 00 35 04 06 00 AF BA 67 80 3C E0 82 FB 61 84 B1 B6 7F 1C [10: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 36 37 4F 00 00 00 26 55 47 00 E9 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 36 37 10 04 04 00 7A CA 01 00 F4 03 04 00 8B C6 1D 67 B6 04 01 00 00 C7 46 E7 41 85 CE D6 92 [10:49:50]CommunicateWithHost err = 0 [10:49:50]CheckOFDResponse [10:49:50]1017 (14) - 77093643461234 [10:49:50]1041 (16) - 0000000000871767 [10:49:50]1040 (4) - 117370 [10:49:50]1012 (4) - 27.10.2024 04:50 [10:49:50]1206 (1) - 0 [10:49:50]OFD Sender: Remove packet 117370 [10:49:50]ProducePacketName [10:49:50]name=ofd_packets/00117370 [10:49:50]NVStorageDeleteData [10:49:51]OFD Sender: Processing packet 117371 [packets to send 80, broken 75] [10:49:51]ProducePacketName [10:49:51]name=ofd_packets/00117371 [10:49:51]OFD Sender: To server: pG, [10:49:51]CommunicateWithHost lk.salyk.kg:30040 [10:49:51]ConnectInit lk.salyk.kg [10:49:51]Connected sock=7 [10:49: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 36 37 0C 01 00 00 C2 71 04 01 C3 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 47 00 00 00 F4 03 04 00 D7 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7B CA 01 00 35 04 06 00 C2 FA 10 B9 7D 02 FD A0 EA 29 0C 72 82 AA [10: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 36 37 4F 00 00 00 84 4A 47 00 65 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 36 37 10 04 04 00 7B CA 01 00 F4 03 04 00 8C C6 1D 67 B6 04 01 00 00 FE 9A FA EE E2 67 9A 37 [10:49:51]CommunicateWithHost err = 0 [10:49:51]CheckOFDResponse [10:49:51]1017 (14) - 77093643461234 [10:49:51]1041 (16) - 0000000000871767 [10:49:51]1040 (4) - 117371 [10:49:51]1012 (4) - 27.10.2024 04:50 [10:49:51]1206 (1) - 0 [10:49:51]OFD Sender: Remove packet 117371 [10:49:51]ProducePacketName [10:49:51]name=ofd_packets/00117371 [10:49:51]NVStorageDeleteData [10:49:52]OFD Sender: Processing packet 117372 [packets to send 79, broken 75] [10:49:52]ProducePacketName [10:49:52]name=ofd_packets/00117372 [10:49:52]OFD Sender: To server: pG, [10:49:52]CommunicateWithHost lk.salyk.kg:30040 [10:49:52]ConnectInit lk.salyk.kg [10:49:52]Connected sock=7 [10:49: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 36 37 0C 01 00 00 43 DB 04 01 D7 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 9C 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B9 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 44 00 00 00 00 07 04 06 00 88 84 02 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 69 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7C CA 01 00 35 04 06 00 8D 45 B6 4F 07 60 FB 63 0F C5 8F CF D3 F5 [10:49: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 36 37 4F 00 00 00 62 E1 47 00 71 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 36 37 10 04 04 00 7C CA 01 00 F4 03 04 00 8C C6 1D 67 B6 04 01 00 00 C1 32 FC A9 94 E7 B9 87 [10:49:52]CommunicateWithHost err = 0 [10:49:52]CheckOFDResponse [10:49:52]1017 (14) - 77093643461234 [10:49:52]1041 (16) - 0000000000871767 [10:49:52]1040 (4) - 117372 [10:49:52]1012 (4) - 27.10.2024 04:50 [10:49:52]1206 (1) - 0 [10:49:52]OFD Sender: Remove packet 117372 [10:49:52]ProducePacketName [10:49:52]name=ofd_packets/00117372 [10:49:52]NVStorageDeleteData [10:49:53]OFD Sender: Processing packet 117373 [packets to send 78, broken 75] [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00117373 [10:49:53]OFD Sender: To server: pG, [10:49:53]CommunicateWithHost lk.salyk.kg:30040 [10:49:53]ConnectInit lk.salyk.kg [10:49:53]Connected sock=7 [10:49: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 36 37 0F 01 00 00 2F 77 07 01 B8 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 49 00 00 00 F4 03 04 00 AA 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7D CA 01 00 35 04 06 00 5C 89 D8 56 B1 0D 7E F0 0D F2 6C B3 25 0D [10:49: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 36 37 4F 00 00 00 82 43 47 00 09 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 36 37 10 04 04 00 7D CA 01 00 F4 03 04 00 8D C6 1D 67 B6 04 01 00 00 18 57 BF B7 B3 D1 6E 40 [10:49:53]CommunicateWithHost err = 0 [10:49:53]CheckOFDResponse [10:49:53]1017 (14) - 77093643461234 [10:49:53]1041 (16) - 0000000000871767 [10:49:53]1040 (4) - 117373 [10:49:53]1012 (4) - 27.10.2024 04:50 [10:49:53]1206 (1) - 0 [10:49:53]OFD Sender: Remove packet 117373 [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00117373 [10:49:53]NVStorageDeleteData [10:49:53]OFD Sender: Processing packet 117374 [packets to send 77, broken 75] [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00117374 [10:49:53]OFD Sender: To server: pG, [10:49:53]CommunicateWithHost lk.salyk.kg:30040 [10:49:53]ConnectInit lk.salyk.kg [10:49:54]Connected sock=7 [10: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 36 37 0C 01 00 00 93 CE 04 01 E6 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4A 00 00 00 F4 03 04 00 05 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7E CA 01 00 35 04 06 00 1B F2 0C B4 A7 A8 4E DD 04 7C B1 93 DD 89 [10: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 36 37 4F 00 00 00 1A 8B 47 00 6B 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 36 37 10 04 04 00 7E CA 01 00 F4 03 04 00 8E C6 1D 67 B6 04 01 00 00 45 53 77 33 5E 89 B7 CE [10:49:54]CommunicateWithHost err = 0 [10:49:54]CheckOFDResponse [10:49:54]1017 (14) - 77093643461234 [10:49:54]1041 (16) - 0000000000871767 [10:49:54]1040 (4) - 117374 [10:49:54]1012 (4) - 27.10.2024 04:50 [10:49:54]1206 (1) - 0 [10:49:54]OFD Sender: Remove packet 117374 [10:49:54]ProducePacketName [10:49:54]name=ofd_packets/00117374 [10:49:54]NVStorageDeleteData [10:49:54]OFD Sender: Processing packet 117375 [packets to send 76, broken 75] [10:49:54]ProducePacketName [10:49:54]name=ofd_packets/00117375 [10:49:54]OFD Sender: To server: pG, [10:49:54]CommunicateWithHost lk.salyk.kg:30040 [10:49:54]ConnectInit lk.salyk.kg [10:49:54]Connected sock=7 [10: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 36 37 0C 01 00 00 37 59 04 01 EB 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 4B 00 00 00 F4 03 04 00 4C 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7F CA 01 00 35 04 06 00 6D 2D F2 FD 03 7D 56 C9 EC 9C D2 7E CD 5A [10: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 36 37 4F 00 00 00 42 40 47 00 86 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 36 37 10 04 04 00 7F CA 01 00 F4 03 04 00 8F C6 1D 67 B6 04 01 00 00 07 A5 62 01 3C D2 C2 56 [10:49:55]CommunicateWithHost err = 0 [10:49:55]CheckOFDResponse [10:49:55]1017 (14) - 77093643461234 [10:49:55]1041 (16) - 0000000000871767 [10:49:55]1040 (4) - 117375 [10:49:55]1012 (4) - 27.10.2024 04:50 [10:49:55]1206 (1) - 0 [10:49:55]OFD Sender: Remove packet 117375 [10:49:55]ProducePacketName [10:49:55]name=ofd_packets/00117375 [10:49:55]NVStorageDeleteData [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:22]accept exits with 10 [10:50:22]New connection [10:50:22]New thread 3067456868 created [10:50:22]Thread 3067600228 joined [10:50:22]Waiting for new connection... [10:50:22] Sock 10.Parse request [10:50:22]Sock 10.Check first char [10:50:22]Sock 10.First char is OK [10:50:22]request: POST /json_proto HTTP/1.0 [10:50:22]Method: POST [10:50:22]URL: /json_proto [10:50:22]Method is POST - this is cgi request [10:50:22]url: /json_proto [10:50:22]query_string will be loaded in cgi processing [10:50:22]execute_cgi json_proto POST (null) [10:50:22]execute_cgi path=json_proto method=POST [10:50:22]POST find Content-Length [10:50:22]Host: 172.17.96.67:8080 [10:50:22]Content-Length: 682 [10:50:22]Content-Type: application/json [10:50:22] [10:50:22]POST finish read [10:50:22]Found Content-Length = 682 [10:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:50:22]execute_script... [10:50:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:50:22]POST & json_proto [10:50:22]process_json_proto [10:50:22]json parsed OK: [10:50:22]protocol is kg_v1.0 [10:50:22]action value=close_receipt [10:50:22]process_action close_receipt [10:50:22]cmd_close_receipt [10:50:22]MH_GetDate [10:50:22]Write to MH i2c: F0 00 00 7B 0A 74 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: F0 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: F0 09 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: F0 09 00 7B 0A 00 EF 1A 1E 67 2B 09 1E 67 C4 [10:50:22]GetLastDocTimeStamp 1730026060 [10:50:22]current date 1730026223 [10:50:22]FM_GetShiftState [10:50:22]SAM_PROTO_GetShiftState [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 13 01 00 [10:50:22]Write to MH i2c: E2 08 00 7C 0A 80 13 01 00 00 00 00 00 03 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 0E 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 0E 00 7C 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 42 [10:50:22]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [10:50:22]wFMCommunicate OK [10:50:22]SAM_PROTO_GetShiftState done [10:50:22]FM_GetShiftState done [10:50:22]opened in 1729987372 [10:50:22]opened+sec_in_day 1730073772 [10:50:22]quantity*price = 100015 [10:50:22]sum+1 = 100017 [10:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 76 27.10.2024 10:50 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117376 ФПД: 38320659251473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105024&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117376&fm=38320659251473&tin=02508201610067®Number=0000000000091782&sum=100000 [10:50:24]StoreToDocumentArchive [10:50:24]shift 542 fd 117376 [10:50:24]save to /storage/0542/doc_00117376 [10:50:24]save last doc name /storage/0542/doc_00117376 to /storage/kkm_last_doc_name [10:50:24]save OK [10:50:24]Clear old archive folders... [10:50:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:24]tlvbuf is 01724FE0 [10:50:24]SAM_PROTO_ClearQueue [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 09 00 00 [10:50:24]Write to MH i2c: E2 08 00 89 0A 80 09 00 00 00 00 00 00 05 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 89 0A 00 90 00 07 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]SAM_PROTO_ClearQueue done [10:50:24]KKMCreateOFDPacket [10:50:24]OFDProtocolAddRootSTLVToBuf [10:50:24]FM_MakeSignedData [10:50:24]FM_MakeSignedData [10:50:24]SAM_PROTO_SignData [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 01 02 [10:50:24]Write to MH i2c: E2 08 00 8A 0A 80 0D 01 02 00 00 00 00 0D [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 8A 0A 00 90 00 08 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]wFMCommunicate request_size=255 [10:50:24]MH_SAM_APDU [10:50: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 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 F0 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 80 CA 01 00 35 04 06 00 22 [10:50:24]Write to MH i2c: E2 02 01 8B 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 4C 00 00 00 F4 03 04 00 F0 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 80 CA 01 00 35 04 06 00 22 00 00 01 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]wFMCommunicate request_size=10 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 02 02 05 DA 39 48 41 11 [10:50:24]Write to MH i2c: E2 0D 00 8C 0A 80 0D 02 02 05 00 DA 39 48 41 11 00 00 C7 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 8C 0A 00 90 00 0A [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 03 02 [10:50:24]Write to MH i2c: E2 08 00 8D 0A 80 0D 03 02 00 00 00 00 12 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0B 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0B 00 8D 0A 00 4E 79 F6 35 DF E7 61 3E 90 00 6A [10:50:24]RAPDU: 4E 79 F6 35 DF E7 61 3E 90 00 [10:50:24]wFMCommunicate OK [10:50:24]SAM_PROTO_SignData done [10:50:24]FM_MakeSignedData done [10:50:24]CreateOFDProtocolMessage [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 11 00 00 [10:50:24]Write to MH i2c: E2 08 00 8E 0A 80 11 00 00 00 00 00 00 12 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 17 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 17 00 8E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 69 [10:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:50:24]wFMCommunicate OK [10:50:24]CreateOFDProtocolMessage done [10:50:24]OFDSenderStorePacket 117376 [10:50:24]StoreOFDPacket docnum=117376 [10:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 20 33 07 01 FB F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F0 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 80 CA 01 00 35 04 06 00 22 DA 39 48 41 11 4E 79 F6 35 DF E7 61 3E [10:50:24]CheckFolder [10:50:24]dirname=/storage/ofd_packets [10:50:24]CheckFolder done [10:50:24]ProducePacketName [10:50:24]name=ofd_packets/00117376 [10:50:24]NVStorageSaveData ofd_packets/00117376 [10:50:24]File name is /storage/ofd_packets/00117376 [10:50:24]Write 301 bytes [10:50:24]NVStorageSaveData done [10:50:24]OFDSenderStorePacket done [10:50:24]KKMCreateOFDPacket done [10:50:24]NVStorageSaveData kkm_last_timestamp [10:50:24]File name is /storage/kkm_last_timestamp [10:50:24]Write 4 bytes [10:50:24]NVStorageSaveData done [10:50:24]ExternCall_PrintAddStr [10:50:24]wPrintStart [10:50:24]Write to MH i2c: 01 00 00 8F 0A 99 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 07 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 07 00 8F 0A 00 00 00 00 00 FF 0F AE [10:50:24]RasterBufferAndPrint [10:50:24]line Счет N : (1)245152 [10:50:24]line ИНН: 02508201610067 [10:50:24]line Контрольно-Кассовый Чек [10:50:24]line ПРОДАЖА [10:50:24]line ТРК (МРК, ГНК) : 11 [10:50:24]line Товар: 2710124130 [10:50:24]line Аи-92-К-2 [10:50:24]line 14.950 * 66.90 [10:50:24]line = 1000.16 [10:50:24]line НДС 12% НСП 1% [10:50:24]line > о реализуемом товаре [10:50:24]line ОКРУГЛЕНИЕ: -0.16 [10:50:24]line ИТОГО: 1000.00 [10:50:24]line Внесено: 1000.00 [10:50:24]line СДАЧА: 0.00 [10:50:24]line НСП 1% : 8.85 [10:50:24]line НДС 12% : 106.21 [10:50:24]line Наличными: 1000.00 [10:50:24]line Безнал.: 0.00 [10:50:24]line Место: АЗС № 173 "Партнер Нефть" [10:50:24]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:50:24]line СНО: Общий режим [10:50:24]line Чек 76 27.10.2024 10:50 [10:50:24]line Смена: 542 ФФД: 1.0 [10:50:24]line ЗНМ: 0300000115 [10:50:24]line РНМ: 0000000000091782 [10:50:24]line Версия ККМ: 001 [10:50:24]line ФМ: 0000000000871767 [10:50:24]line ФД: 117376 [10:50:24]line ФПД: 38320659251473 [10:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105024&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117376&fm=38320659251473&tin=02508201610067®Number=0000000000091782&sum=100000 [10:50:24]written 0, free lines is 4095 [10:50:24]OFD Sender: Processing packet 117376 [packets to send 76, broken 75] [10:50:24]ProducePacketName [10:50:24]name=ofd_packets/00117376 [10:50:24]OFD Sender: To server: pG, [10:50:24]CommunicateWithHost lk.salyk.kg:30040 [10:50:24]ConnectInit lk.salyk.kg [10:50:25]Connected sock=9 [10:50: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 36 37 0F 01 00 00 20 33 07 01 FB F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F0 1A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 80 CA 01 00 35 04 06 00 22 DA 39 48 41 11 4E 79 F6 35 DF E7 61 3E [10:50: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 36 37 4F 00 00 00 73 74 47 00 DE 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 80 CA 01 00 F4 03 04 00 AD C6 1D 67 B6 04 01 00 00 21 D4 D1 F1 C1 14 39 00 [10:50:25]CommunicateWithHost err = 0 [10:50:25]CheckOFDResponse [10:50:25]1017 (14) - 77093643461234 [10:50:25]1041 (16) - 0000000000871767 [10:50:25]1040 (4) - 117376 [10:50:25]1012 (4) - 27.10.2024 04:50 [10:50:25]1206 (1) - 0 [10:50:25]OFD Sender: Remove packet 117376 [10:50:25]ProducePacketName [10:50:25]name=ofd_packets/00117376 [10:50:25]NVStorageDeleteData [10:50:25]Write to MH i2c: 01 00 00 B9 0A C3 [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 07 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 07 00 B9 0A 00 00 00 00 00 A3 0C 79 [10:50:25]RasterBufferAndPrint [10:50:25]line [10:50:25]line [10:50:25]line [10:50:25]line [10:50:25]line [10:50:25]written 0, free lines is 3240 [10:50:25]MH_Cut [10:50:25]Write to MH i2c: D1 01 00 C0 0A 01 9C [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: D1 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: D1 01 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: D1 01 00 C0 0A 00 9B [10:50:25]Write to MH i2c: 01 00 00 C1 0A CB [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]OFD Sender: No OFD packet to send [10:50:26]*** Cut start [10:50:26]*** Purtial cut [10:50:26]*** Stage 1: CUTSNS_PIN = 1 [10:50:26]Read from MH i2c: 01 [10:50:26]MH_I2C_Read... [10:50:26]*** Stop cut motor [10:50:26]*** Cut end [10:50:26]Read from MH i2c: 01 07 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 FF 0F E0 [10:50:26]process_action close_receipt done [10:50:26]requested_data is exist [10:50:26]produce_requested_data [10:50:26]requested_item fm.sn is exist - process it [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 11 00 00 [10:50:26]Write to MH i2c: E2 08 00 C2 0A 80 11 00 00 00 00 00 00 46 [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 17 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 17 00 C2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9D [10:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:50:26]wFMCommunicate OK [10:50:26]requested_item fd.num is exist - process it [10:50:26]SAM_PROTO_GetFieldsCounters [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 13 00 00 [10:50:26]Write to MH i2c: E2 08 00 C3 0A 80 13 00 00 00 00 00 00 49 [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 62 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 62 00 C3 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 80 CA 01 00 0E 04 04 00 1E 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 BF [10:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 80 CA 01 00 0E 04 04 00 1E 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 [10:50:26]wFMCommunicate OK [10:50:26]SAM_PROTO_GetFieldsCounters done [10:50:26]requested_item shift.num is exist - process it [10:50:26]requested_item shift.opened is exist - process it [10:50:26]req_shift_opened [10:50:26]FM_GetShiftState [10:50:26]SAM_PROTO_GetShiftState [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 13 01 00 [10:50:26]Write to MH i2c: E2 08 00 C4 0A 80 13 01 00 00 00 00 00 4B [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 0E 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 0E 00 C4 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8A [10:50:26]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [10:50:26]wFMCommunicate OK [10:50:26]SAM_PROTO_GetShiftState done [10:50:26]FM_GetShiftState done [10:50:26]req_shift_opened done [10:50:26]requested_item shift.open_date is exist - process it [10:50:26]req_shift_open_date [10:50:26]req_shift_open_date done [10:50:26]produce_requested_data done [10:50:26]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117376,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [10:50:26]process_action_free close_receipt [10:50:26]json_value_free [10:50:26]json_value_free done [10:50:26]process_json_proto returns [10:50:26]Send response to host [10:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117376,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [10:50:26]free response buf [10:50:26]execute_script done [10:50:26]execute_script returns [10:50:26]free content buf [10:50:26]Sock 10.Close socket [10:50:26]Sock 10.Thread stoped [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:14]accept exits with 7 [10:53:14]New connection [10:53:14]New thread 3067600228 created [10:53:14]Thread 3067456868 joined [10:53:14]Waiting for new connection... [10:53:14] Sock 7.Parse request [10:53:14]Sock 7.Check first char [10:53:14]Sock 7.First char is OK [10:53:14]request: POST /json_proto HTTP/1.0 [10:53:14]Method: POST [10:53:14]URL: /json_proto [10:53:14]Method is POST - this is cgi request [10:53:14]url: /json_proto [10:53:14]query_string will be loaded in cgi processing [10:53:14]execute_cgi json_proto POST (null) [10:53:14]execute_cgi path=json_proto method=POST [10:53:14]POST find Content-Length [10:53:14]Host: 172.17.96.67:8080 [10:53:14]Content-Length: 677 [10:53:14]Content-Type: application/json [10:53:14] [10:53:14]POST finish read [10:53:14]Found Content-Length = 677 [10:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:53:14]execute_script... [10: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)245153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:53:14]POST & json_proto [10:53:14]process_json_proto [10:53:14]json parsed OK: [10:53:14]protocol is kg_v1.0 [10:53:14]action value=close_receipt [10:53:14]process_action close_receipt [10:53:14]cmd_close_receipt [10:53:14]MH_GetDate [10:53:14]Write to MH i2c: F0 00 00 C5 0A BE [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: F0 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: F0 09 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: F0 09 00 C5 0A 00 9B 1B 1E 67 2B 09 1E 67 BB [10:53:14]GetLastDocTimeStamp 1730026224 [10:53:14]current date 1730026395 [10:53:14]FM_GetShiftState [10:53:14]SAM_PROTO_GetShiftState [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 13 01 00 [10:53:14]Write to MH i2c: E2 08 00 C6 0A 80 13 01 00 00 00 00 00 4D [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 0E 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 0E 00 C6 0A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8C [10:53:14]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [10:53:14]wFMCommunicate OK [10:53:14]SAM_PROTO_GetShiftState done [10:53:14]FM_GetShiftState done [10:53:14]opened in 1729987372 [10:53:14]opened+sec_in_day 1730073772 [10:53:14]quantity*price = 30038 [10:53:14]sum+1 = 30039 [10:53: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 77 27.10.2024 10:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117377 ФПД: 177032058475737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105315&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117377&fm=177032058475737&tin=02508201610067®Number=0000000000091782&sum=30000 [10:53:15]StoreToDocumentArchive [10:53:15]shift 542 fd 117377 [10:53:15]save to /storage/0542/doc_00117377 [10:53:15]save last doc name /storage/0542/doc_00117377 to /storage/kkm_last_doc_name [10:53:15]save OK [10:53:15]Clear old archive folders... [10:53:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:15]tlvbuf is 016FD8D0 [10:53:15]SAM_PROTO_ClearQueue [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 09 00 00 [10:53:15]Write to MH i2c: E2 08 00 D3 0A 80 09 00 00 00 00 00 00 4F [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [10:53:15]RAPDU: 90 00 [10:53:15]wFMCommunicate OK [10:53:15]SAM_PROTO_ClearQueue done [10:53:15]KKMCreateOFDPacket [10:53:15]OFDProtocolAddRootSTLVToBuf [10:53:15]FM_MakeSignedData [10:53:15]FM_MakeSignedData [10:53:15]SAM_PROTO_SignData [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 0D 01 02 [10:53:15]Write to MH i2c: E2 08 00 D4 0A 80 0D 01 02 00 00 00 00 57 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [10:53:15]RAPDU: 90 00 [10:53:15]wFMCommunicate OK [10:53:15]wFMCommunicate request_size=255 [10:53:15]MH_SAM_APDU [10:53: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 4D 00 00 00 F4 03 04 00 9B 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 81 CA 01 00 35 04 06 00 A1 [10:53:15]Write to MH i2c: E2 02 01 D5 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 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 4D 00 00 00 F4 03 04 00 9B 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 81 CA 01 00 35 04 06 00 A1 00 00 72 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [10:53:15]RAPDU: 90 00 [10:53:15]wFMCommunicate OK [10:53:15]wFMCommunicate request_size=10 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 0D 02 02 05 02 7C F5 94 D9 [10:53:15]Write to MH i2c: E2 0D 00 D6 0A 80 0D 02 02 05 00 02 7C F5 94 D9 00 00 44 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 D6 0A 00 90 00 54 [10:53:15]RAPDU: 90 00 [10:53:15]wFMCommunicate OK [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 0D 03 02 [10:53:15]Write to MH i2c: E2 08 00 D7 0A 80 0D 03 02 00 00 00 00 5C [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0B 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0B 00 D7 0A 00 06 B2 D5 78 4A FE 77 E4 90 00 05 [10:53:15]RAPDU: 06 B2 D5 78 4A FE 77 E4 90 00 [10:53:15]wFMCommunicate OK [10:53:15]SAM_PROTO_SignData done [10:53:15]FM_MakeSignedData done [10:53:15]CreateOFDProtocolMessage [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 11 00 00 [10:53:15]Write to MH i2c: E2 08 00 D8 0A 80 11 00 00 00 00 00 00 5C [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 17 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 17 00 D8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B3 [10:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:53:15]wFMCommunicate OK [10:53:15]CreateOFDProtocolMessage done [10:53:15]OFDSenderStorePacket 117377 [10:53:15]StoreOFDPacket docnum=117377 [10:53:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 14 3B 07 01 72 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4D 00 00 00 F4 03 04 00 9B 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 81 CA 01 00 35 04 06 00 A1 02 7C F5 94 D9 06 B2 D5 78 4A FE 77 E4 [10:53:15]CheckFolder [10:53:15]dirname=/storage/ofd_packets [10:53:15]CheckFolder done [10:53:15]ProducePacketName [10:53:15]name=ofd_packets/00117377 [10:53:15]NVStorageSaveData ofd_packets/00117377 [10:53:15]File name is /storage/ofd_packets/00117377 [10:53:15]Write 301 bytes [10:53:15]NVStorageSaveData done [10:53:15]OFDSenderStorePacket done [10:53:15]KKMCreateOFDPacket done [10:53:15]NVStorageSaveData kkm_last_timestamp [10:53:15]File name is /storage/kkm_last_timestamp [10:53:15]Write 4 bytes [10:53:15]NVStorageSaveData done [10:53:15]ExternCall_PrintAddStr [10:53:15]wPrintStart [10:53:15]Write to MH i2c: 01 00 00 D9 0A E3 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [10:53:15]RasterBufferAndPrint [10:53:15]line Счет N : (1)245153 [10:53:15]line ИНН: 02508201610067 [10:53:15]line Контрольно-Кассовый Чек [10:53:15]line ПРОДАЖА [10:53:15]line ТРК (МРК, ГНК) : 11 [10:53:15]line Товар: 2710124130 [10:53:15]line Аи-92-К-2 [10:53:15]line 4.490 * 66.90 [10:53:15]line = 300.38 [10:53:15]line НДС 12% НСП 1% [10:53:15]line > о реализуемом товаре [10:53:15]line ОКРУГЛЕНИЕ: -0.38 [10:53:15]line ИТОГО: 300.00 [10:53:15]line Внесено: 300.00 [10:53:15]line СДАЧА: 0.00 [10:53:15]line НСП 1% : 2.66 [10:53:15]line НДС 12% : 31.90 [10:53:15]line Наличными: 300.00 [10:53:15]line Безнал.: 0.00 [10:53:15]line Место: АЗС № 173 "Партнер Нефть" [10:53:15]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:53:15]line СНО: Общий режим [10:53:15]line Чек 77 27.10.2024 10:53 [10:53:15]line Смена: 542 ФФД: 1.0 [10:53:15]line ЗНМ: 0300000115 [10:53:15]line РНМ: 0000000000091782 [10:53:15]line Версия ККМ: 001 [10:53:15]line ФМ: 0000000000871767 [10:53:15]line ФД: 117377 [10:53:15]line ФПД: 177032058475737 [10:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105315&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117377&fm=177032058475737&tin=02508201610067®Number=0000000000091782&sum=30000 [10:53:16]written 0, free lines is 4095 [10:53:16]OFD Sender: Processing packet 117377 [packets to send 76, broken 75] [10:53:16]ProducePacketName [10:53:16]name=ofd_packets/00117377 [10:53:16]OFD Sender: To server: pG, [10:53:16]CommunicateWithHost lk.salyk.kg:30040 [10:53:16]ConnectInit lk.salyk.kg [10:53:16]Connected sock=10 [10: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 36 37 0F 01 00 00 14 3B 07 01 72 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4D 00 00 00 F4 03 04 00 9B 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 81 CA 01 00 35 04 06 00 A1 02 7C F5 94 D9 06 B2 D5 78 4A FE 77 E4 [10:53: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 36 37 4F 00 00 00 2C 06 47 00 36 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 36 37 10 04 04 00 81 CA 01 00 F4 03 04 00 59 C7 1D 67 B6 04 01 00 00 A8 74 B4 8F 45 8B 27 B9 [10:53:16]CommunicateWithHost err = 0 [10:53:16]CheckOFDResponse [10:53:16]1017 (14) - 77093643461234 [10:53:16]1041 (16) - 0000000000871767 [10:53:16]1040 (4) - 117377 [10:53:16]1012 (4) - 27.10.2024 04:53 [10:53:16]1206 (1) - 0 [10:53:16]OFD Sender: Remove packet 117377 [10:53:16]ProducePacketName [10:53:16]name=ofd_packets/00117377 [10:53:16]NVStorageDeleteData [10:53:16]Write to MH i2c: 01 00 00 03 0B 0E [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: 01 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: 01 07 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: 01 07 00 03 0B 00 00 00 00 00 A3 0C C4 [10:53:16]RasterBufferAndPrint [10:53:16]line [10:53:16]line [10:53:16]line [10:53:16]line [10:53:16]line [10:53:16]written 0, free lines is 3240 [10:53:16]MH_Cut [10:53:16]Write to MH i2c: D1 01 00 0A 0B 01 E7 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: D1 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: D1 01 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: D1 01 00 0A 0B 00 E6 [10:53:16]Write to MH i2c: 01 00 00 0B 0B 16 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:17]OFD Sender: No OFD packet to send [10:53:17]*** Cut start [10:53:17]*** Purtial cut [10:53:17]*** Stage 1: CUTSNS_PIN = 1 [10:53:17]Read from MH i2c: 01 [10:53:17]MH_I2C_Read... [10:53:17]*** Stop cut motor [10:53:17]*** Cut end [10:53:17]Read from MH i2c: 01 07 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 0B 0B 00 00 00 00 00 FF 0F 2B [10:53:17]process_action close_receipt done [10:53:17]requested_data is exist [10:53:17]produce_requested_data [10:53:17]requested_item fm.sn is exist - process it [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 11 00 00 [10:53:17]Write to MH i2c: E2 08 00 0C 0B 80 11 00 00 00 00 00 00 91 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 0C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E8 [10:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:53:17]wFMCommunicate OK [10:53:17]requested_item fd.num is exist - process it [10:53:17]SAM_PROTO_GetFieldsCounters [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 00 00 [10:53:17]Write to MH i2c: E2 08 00 0D 0B 80 13 00 00 00 00 00 00 94 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 62 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 62 00 0D 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 81 CA 01 00 0E 04 04 00 1E 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 0E [10:53: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 81 CA 01 00 0E 04 04 00 1E 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 [10:53:18]wFMCommunicate OK [10:53:18]SAM_PROTO_GetFieldsCounters done [10:53:18]requested_item shift.num is exist - process it [10:53:18]requested_item shift.opened is exist - process it [10:53:18]req_shift_opened [10:53:18]FM_GetShiftState [10:53:18]SAM_PROTO_GetShiftState [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 13 01 00 [10:53:18]Write to MH i2c: E2 08 00 0E 0B 80 13 01 00 00 00 00 00 96 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 0E 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 0E 00 0E 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D5 [10:53:18]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [10:53:18]wFMCommunicate OK [10:53:18]SAM_PROTO_GetShiftState done [10:53:18]FM_GetShiftState done [10:53:18]req_shift_opened done [10:53:18]requested_item shift.open_date is exist - process it [10:53:18]req_shift_open_date [10:53:18]req_shift_open_date done [10:53:18]produce_requested_data done [10:53:18]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117377,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [10:53:18]process_action_free close_receipt [10:53:18]json_value_free [10:53:18]json_value_free done [10:53:18]process_json_proto returns [10:53:18]Send response to host [10:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117377,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [10:53:18]free response buf [10:53:18]execute_script done [10:53:18]execute_script returns [10:53:18]free content buf [10:53:18]Sock 7.Close socket [10:53:18]Sock 7.Thread stoped [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03: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:47]accept exits with 9 [11:03:47]New connection [11:03:47]New thread 3067456868 created [11:03:47]Thread 3067600228 joined [11:03:47]Waiting for new connection... [11:03:47] Sock 9.Parse request [11:03:47]Sock 9.Check first char [11:03:47]Sock 9.First char is OK [11:03:47]request: POST /json_proto HTTP/1.0 [11:03:47]Method: POST [11:03:47]URL: /json_proto [11:03:47]Method is POST - this is cgi request [11:03:47]url: /json_proto [11:03:47]query_string will be loaded in cgi processing [11:03:47]execute_cgi json_proto POST (null) [11:03:47]execute_cgi path=json_proto method=POST [11:03:47]POST find Content-Length [11:03:47]Host: 172.17.96.67:8080 [11:03:47]Content-Length: 674 [11:03:47]Content-Type: application/json [11:03:47] [11:03:47]POST finish read [11:03:47]Found Content-Length = 674 [11:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:03:47]execute_script... [11:03: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)245154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:03:47]POST & json_proto [11:03:47]process_json_proto [11:03:47]json parsed OK: [11:03:47]protocol is kg_v1.0 [11:03:47]action value=close_receipt [11:03:47]process_action close_receipt [11:03:47]cmd_close_receipt [11:03:47]MH_GetDate [11:03:47]Write to MH i2c: F0 00 00 0F 0B 09 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: F0 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: F0 09 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: F0 09 00 0F 0B 00 15 1E 1E 67 2B 09 1E 67 83 [11:03:47]GetLastDocTimeStamp 1730026395 [11:03:47]current date 1730027029 [11:03:47]FM_GetShiftState [11:03:47]SAM_PROTO_GetShiftState [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 13 01 00 [11:03:47]Write to MH i2c: E2 08 00 10 0B 80 13 01 00 00 00 00 00 98 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 0E 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 0E 00 10 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D7 [11:03:48]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:03:48]wFMCommunicate OK [11:03:48]SAM_PROTO_GetShiftState done [11:03:48]FM_GetShiftState done [11:03:48]opened in 1729987372 [11:03:48]opened+sec_in_day 1730073772 [11:03:48]quantity*price = 50063 [11:03:48]sum+1 = 50064 [11:03: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 78 27.10.2024 11:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117378 ФПД: 20344952662302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110349&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117378&fm=20344952662302&tin=02508201610067®Number=0000000000091782&sum=50000 [11:03:49]StoreToDocumentArchive [11:03:49]shift 542 fd 117378 [11:03:49]save to /storage/0542/doc_00117378 [11:03:49]save last doc name /storage/0542/doc_00117378 to /storage/kkm_last_doc_name [11:03:49]save OK [11:03:49]Clear old archive folders... [11:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:03:49]tlvbuf is 016DA200 [11:03:49]SAM_PROTO_ClearQueue [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 09 00 00 [11:03:49]Write to MH i2c: E2 08 00 1D 0B 80 09 00 00 00 00 00 00 9A [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]SAM_PROTO_ClearQueue done [11:03:49]KKMCreateOFDPacket [11:03:49]OFDProtocolAddRootSTLVToBuf [11:03:49]FM_MakeSignedData [11:03:49]FM_MakeSignedData [11:03:49]SAM_PROTO_SignData [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 0D 01 02 [11:03:49]Write to MH i2c: E2 08 00 1E 0B 80 0D 01 02 00 00 00 00 A2 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 1E 0B 00 90 00 9D [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]wFMCommunicate request_size=255 [11:03:49]MH_SAM_APDU [11:03: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 4E 00 00 00 F4 03 04 00 15 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 82 CA 01 00 35 04 06 00 12 80 ED AD [11:03:49]Write to MH i2c: E2 02 01 1F 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 4E 00 00 00 F4 03 04 00 15 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 82 CA 01 00 35 04 06 00 12 80 ED AD 00 00 51 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 1F 0B 00 90 00 9E [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]wFMCommunicate request_size=7 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 0D 02 02 02 29 1E [11:03:49]Write to MH i2c: E2 0A 00 20 0B 80 0D 02 02 02 00 29 1E 00 00 F0 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 20 0B 00 90 00 9F [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 0D 03 02 [11:03:49]Write to MH i2c: E2 08 00 21 0B 80 0D 03 02 00 00 00 00 A7 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0B 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0B 00 21 0B 00 53 4E 5F F9 AD 30 BE 0D 90 00 49 [11:03:49]RAPDU: 53 4E 5F F9 AD 30 BE 0D 90 00 [11:03:49]wFMCommunicate OK [11:03:49]SAM_PROTO_SignData done [11:03:49]FM_MakeSignedData done [11:03:49]CreateOFDProtocolMessage [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 11 00 00 [11:03:49]Write to MH i2c: E2 08 00 22 0B 80 11 00 00 00 00 00 00 A7 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 17 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 17 00 22 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FE [11:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:03:49]wFMCommunicate OK [11:03:49]CreateOFDProtocolMessage done [11:03:49]OFDSenderStorePacket 117378 [11:03:49]StoreOFDPacket docnum=117378 [11:03:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 BD A7 04 01 C7 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4E 00 00 00 F4 03 04 00 15 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 82 CA 01 00 35 04 06 00 12 80 ED AD 29 1E 53 4E 5F F9 AD 30 BE 0D [11:03:49]CheckFolder [11:03:49]dirname=/storage/ofd_packets [11:03:49]CheckFolder done [11:03:49]ProducePacketName [11:03:49]name=ofd_packets/00117378 [11:03:49]NVStorageSaveData ofd_packets/00117378 [11:03:49]File name is /storage/ofd_packets/00117378 [11:03:49]Write 298 bytes [11:03:49]NVStorageSaveData done [11:03:49]OFDSenderStorePacket done [11:03:49]KKMCreateOFDPacket done [11:03:49]NVStorageSaveData kkm_last_timestamp [11:03:49]File name is /storage/kkm_last_timestamp [11:03:49]Write 4 bytes [11:03:49]NVStorageSaveData done [11:03:49]ExternCall_PrintAddStr [11:03:49]wPrintStart [11:03:49]Write to MH i2c: 01 00 00 23 0B 2E [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 23 0B 00 00 00 00 00 FF 0F 43 [11:03:49]RasterBufferAndPrint [11:03:49]line Счет N : (1)245154 [11:03:49]line ИНН: 02508201610067 [11:03:49]line Контрольно-Кассовый Чек [11:03:49]line ПРОДАЖА [11:03:49]line ТРК (МРК, ГНК) : 23 [11:03:49]line Товар: 2710194210 [11:03:49]line ДТ-К-2 [11:03:49]line 6.570 * 76.20 [11:03:49]line = 500.63 [11:03:49]line НДС 12% НСП 1% [11:03:49]line > о реализуемом товаре [11:03:49]line ОКРУГЛЕНИЕ: -0.63 [11:03:49]line ИТОГО: 500.00 [11:03:49]line Внесено: 500.00 [11:03:49]line СДАЧА: 0.00 [11:03:49]line НСП 1% : 4.43 [11:03:49]line НДС 12% : 53.16 [11:03:49]line Наличными: 500.00 [11:03:49]line Безнал.: 0.00 [11:03:49]line Место: АЗС № 173 "Партнер Нефть" [11:03:49]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:03:49]line СНО: Общий режим [11:03:49]line Чек 78 27.10.2024 11:03 [11:03:49]line Смена: 542 ФФД: 1.0 [11:03:49]line ЗНМ: 0300000115 [11:03:49]line РНМ: 0000000000091782 [11:03:49]line Версия ККМ: 001 [11:03:49]line ФМ: 0000000000871767 [11:03:49]line ФД: 117378 [11:03:49]line ФПД: 20344952662302 [11:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110349&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117378&fm=20344952662302&tin=02508201610067®Number=0000000000091782&sum=50000 [11:03:50]OFD Sender: Processing packet 117378 [packets to send 76, broken 75] [11:03:50]ProducePacketName [11:03:50]name=ofd_packets/00117378 [11:03:50]OFD Sender: To server: pG, [11:03:50]CommunicateWithHost lk.salyk.kg:30040 [11:03:50]ConnectInit lk.salyk.kg [11:03:50]written 0, free lines is 4095 [11:03:50]Connected sock=10 [11:03: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 36 37 0C 01 00 00 BD A7 04 01 C7 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4E 00 00 00 F4 03 04 00 15 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 82 CA 01 00 35 04 06 00 12 80 ED AD 29 1E 53 4E 5F F9 AD 30 BE 0D [11:03: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 36 37 4F 00 00 00 0E B2 47 00 1D 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 82 CA 01 00 F4 03 04 00 D2 C9 1D 67 B6 04 01 00 00 7B C6 95 EC 61 20 7C 56 [11:03:50]CommunicateWithHost err = 0 [11:03:50]CheckOFDResponse [11:03:50]1017 (14) - 77093643461234 [11:03:50]1041 (16) - 0000000000871767 [11:03:50]1040 (4) - 117378 [11:03:50]1012 (4) - 27.10.2024 05:04 [11:03:50]1206 (1) - 0 [11:03:50]OFD Sender: Remove packet 117378 [11:03:50]ProducePacketName [11:03:50]name=ofd_packets/00117378 [11:03:50]NVStorageDeleteData [11:03:50]Write to MH i2c: 01 00 00 4D 0B 58 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 4D 0B 00 00 00 00 00 AF 0C 1A [11:03:50]RasterBufferAndPrint [11:03:50]line [11:03:50]line [11:03:50]line [11:03:50]line [11:03:50]line [11:03:50]written 0, free lines is 3251 [11:03:50]MH_Cut [11:03:50]Write to MH i2c: D1 01 00 54 0B 01 31 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: D1 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: D1 01 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: D1 01 00 54 0B 00 30 [11:03:50]Write to MH i2c: 01 00 00 55 0B 60 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]OFD Sender: No OFD packet to send [11:03:51]*** Cut start [11:03:51]*** Purtial cut [11:03:51]*** Stage 1: CUTSNS_PIN = 1 [11:03:51]Read from MH i2c: 01 [11:03:51]MH_I2C_Read... [11:03:51]*** Stop cut motor [11:03:51]*** Cut end [11:03:51]Read from MH i2c: 01 07 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: 01 07 00 55 0B 00 00 00 00 00 FF 0F 75 [11:03:51]process_action close_receipt done [11:03:51]requested_data is exist [11:03:51]produce_requested_data [11:03:51]requested_item fm.sn is exist - process it [11:03:51]wFMCommunicate request_size=4 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 11 00 00 [11:03:51]Write to MH i2c: E2 08 00 56 0B 80 11 00 00 00 00 00 00 DB [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 17 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 17 00 56 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 32 [11:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:03:51]wFMCommunicate OK [11:03:51]requested_item fd.num is exist - process it [11:03:51]SAM_PROTO_GetFieldsCounters [11:03:51]wFMCommunicate request_size=4 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 13 00 00 [11:03:51]Write to MH i2c: E2 08 00 57 0B 80 13 00 00 00 00 00 00 DE [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 62 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 62 00 57 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 82 CA 01 00 0E 04 04 00 1E 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 5C [11:03: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 82 CA 01 00 0E 04 04 00 1E 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 [11:03:51]wFMCommunicate OK [11:03:51]SAM_PROTO_GetFieldsCounters done [11:03:51]requested_item shift.num is exist - process it [11:03:51]requested_item shift.opened is exist - process it [11:03:51]req_shift_opened [11:03:51]FM_GetShiftState [11:03:51]SAM_PROTO_GetShiftState [11:03:51]wFMCommunicate request_size=4 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 13 01 00 [11:03:51]Write to MH i2c: E2 08 00 58 0B 80 13 01 00 00 00 00 00 E0 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 0E 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 0E 00 58 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1F [11:03:51]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:03:51]wFMCommunicate OK [11:03:51]SAM_PROTO_GetShiftState done [11:03:51]FM_GetShiftState done [11:03:51]req_shift_opened done [11:03:51]requested_item shift.open_date is exist - process it [11:03:51]req_shift_open_date [11:03:51]req_shift_open_date done [11:03:51]produce_requested_data done [11:03:51]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117378,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:03:51]process_action_free close_receipt [11:03:51]json_value_free [11:03:51]json_value_free done [11:03:51]process_json_proto returns [11:03:51]Send response to host [11:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117378,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:03:51]free response buf [11:03:51]execute_script done [11:03:51]execute_script returns [11:03:51]free content buf [11:03:51]Sock 9.Close socket [11:03:51]Sock 9.Thread stoped [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:04]accept exits with 7 [11:06:04]New connection [11:06:04]New thread 3067600228 created [11:06:04]Thread 3067456868 joined [11:06:04]Waiting for new connection... [11:06:04] Sock 7.Parse request [11:06:04]Sock 7.Check first char [11:06:04]Sock 7.First char is OK [11:06:04]request: POST /json_proto HTTP/1.0 [11:06:04]Method: POST [11:06:04]URL: /json_proto [11:06:04]Method is POST - this is cgi request [11:06:04]url: /json_proto [11:06:04]query_string will be loaded in cgi processing [11:06:04]execute_cgi json_proto POST (null) [11:06:04]execute_cgi path=json_proto method=POST [11:06:04]POST find Content-Length [11:06:04]Host: 172.17.96.67:8080 [11:06:04]Content-Length: 678 [11:06:04]Content-Type: application/json [11:06:04] [11:06:04]POST finish read [11:06:04]Found Content-Length = 678 [11:06:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.010, "sum" : 870.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:04]execute_script... [11:06: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)245155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.010, "sum" : 870.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:04]POST & json_proto [11:06:04]process_json_proto [11:06:04]json parsed OK: [11:06:04]protocol is kg_v1.0 [11:06:04]action value=close_receipt [11:06:04]process_action close_receipt [11:06:04]cmd_close_receipt [11:06:04]MH_GetDate [11:06:04]Write to MH i2c: F0 00 00 59 0B 53 [11:06:04]Write i2c OK [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: F0 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: F0 09 00 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: F0 09 00 59 0B 00 9D 1E 1E 67 2B 09 1E 67 55 [11:06:04]GetLastDocTimeStamp 1730027029 [11:06:04]current date 1730027165 [11:06:04]FM_GetShiftState [11:06:04]SAM_PROTO_GetShiftState [11:06:04]wFMCommunicate request_size=4 [11:06:04]MH_SAM_APDU [11:06:04]CAPDU: 80 13 01 00 [11:06:04]Write to MH i2c: E2 08 00 5A 0B 80 13 01 00 00 00 00 00 E2 [11:06:04]Write i2c OK [11:06:04]MH_I2C_Read... [11:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:04]Read from MH i2c: E2 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 0E 00 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 0E 00 5A 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 21 [11:06:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:06:04]wFMCommunicate OK [11:06:04]SAM_PROTO_GetShiftState done [11:06:04]FM_GetShiftState done [11:06:04]opened in 1729987372 [11:06:04]opened+sec_in_day 1730073772 [11:06:04]quantity*price = 87036 [11:06:04]sum+1 = 87038 [11:06:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.43 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 79 27.10.2024 11:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117379 ФПД: 151318794586048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110605&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117379&fm=151318794586048&tin=02508201610067®Number=0000000000091782&sum=87000 [11:06:05]StoreToDocumentArchive [11:06:05]shift 542 fd 117379 [11:06:05]save to /storage/0542/doc_00117379 [11:06:05]save last doc name /storage/0542/doc_00117379 to /storage/kkm_last_doc_name [11:06:05]save OK [11:06:05]Clear old archive folders... [11:06:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:05]tlvbuf is 016E8C10 [11:06:05]SAM_PROTO_ClearQueue [11:06:05]wFMCommunicate request_size=4 [11:06:05]MH_SAM_APDU [11:06:05]CAPDU: 80 09 00 00 [11:06:05]Write to MH i2c: E2 08 00 67 0B 80 09 00 00 00 00 00 00 E4 [11:06:05]Write i2c OK [11:06:05]MH_I2C_Read... [11:06:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:05]Read from MH i2c: E2 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: E2 03 00 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: E2 03 00 67 0B 00 90 00 E6 [11:06:05]RAPDU: 90 00 [11:06:05]wFMCommunicate OK [11:06:05]SAM_PROTO_ClearQueue done [11:06:05]KKMCreateOFDPacket [11:06:05]OFDProtocolAddRootSTLVToBuf [11:06:05]FM_MakeSignedData [11:06:05]FM_MakeSignedData [11:06:05]SAM_PROTO_SignData [11:06:05]wFMCommunicate request_size=4 [11:06:05]MH_SAM_APDU [11:06:05]CAPDU: 80 0D 01 02 [11:06:05]Write to MH i2c: E2 08 00 68 0B 80 0D 01 02 00 00 00 00 EC [11:06:05]Write i2c OK [11:06:05]MH_I2C_Read... [11:06:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:05]Read from MH i2c: E2 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: E2 03 00 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: E2 03 00 68 0B 00 90 00 E7 [11:06:05]RAPDU: 90 00 [11:06:05]wFMCommunicate OK [11:06:05]wFMCommunicate request_size=255 [11:06:05]MH_SAM_APDU [11:06: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 D2 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FD 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9D 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 83 CA 01 00 35 04 06 00 89 [11:06:05]Write to MH i2c: E2 02 01 69 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 D2 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FD 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9D 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 83 CA 01 00 35 04 06 00 89 00 00 AC [11:06:05]Write i2c OK [11:06:05]MH_I2C_Read... [11:06:06]OFD Sender: No OFD packet to send [11:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [11:06:06]RAPDU: 90 00 [11:06:06]wFMCommunicate OK [11:06:06]wFMCommunicate request_size=10 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 0D 02 02 05 9F A6 FF C7 C0 [11:06:06]Write to MH i2c: E2 0D 00 6A 0B 80 0D 02 02 05 00 9F A6 FF C7 C0 00 00 C4 [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 6A 0B 00 90 00 E9 [11:06:06]RAPDU: 90 00 [11:06:06]wFMCommunicate OK [11:06:06]wFMCommunicate request_size=4 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 0D 03 02 [11:06:06]Write to MH i2c: E2 08 00 6B 0B 80 0D 03 02 00 00 00 00 F1 [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 0B 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 0B 00 6B 0B 00 4A 34 5F 49 C6 9A EC 2E 90 00 92 [11:06:06]RAPDU: 4A 34 5F 49 C6 9A EC 2E 90 00 [11:06:06]wFMCommunicate OK [11:06:06]SAM_PROTO_SignData done [11:06:06]FM_MakeSignedData done [11:06:06]CreateOFDProtocolMessage [11:06:06]wFMCommunicate request_size=4 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 11 00 00 [11:06:06]Write to MH i2c: E2 08 00 6C 0B 80 11 00 00 00 00 00 00 F1 [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 17 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 17 00 6C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 48 [11:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:06:06]wFMCommunicate OK [11:06:06]CreateOFDProtocolMessage done [11:06:06]OFDSenderStorePacket 117379 [11:06:06]StoreOFDPacket docnum=117379 [11:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D8 6D 07 01 DF 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FD 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9D 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 83 CA 01 00 35 04 06 00 89 9F A6 FF C7 C0 4A 34 5F 49 C6 9A EC 2E [11:06:06]CheckFolder [11:06:06]dirname=/storage/ofd_packets [11:06:06]CheckFolder done [11:06:06]ProducePacketName [11:06:06]name=ofd_packets/00117379 [11:06:06]NVStorageSaveData ofd_packets/00117379 [11:06:06]File name is /storage/ofd_packets/00117379 [11:06:06]Write 301 bytes [11:06:06]NVStorageSaveData done [11:06:06]OFDSenderStorePacket done [11:06:06]KKMCreateOFDPacket done [11:06:06]NVStorageSaveData kkm_last_timestamp [11:06:06]File name is /storage/kkm_last_timestamp [11:06:06]Write 4 bytes [11:06:06]NVStorageSaveData done [11:06:06]ExternCall_PrintAddStr [11:06:06]wPrintStart [11:06:06]Write to MH i2c: 01 00 00 6D 0B 78 [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: 01 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: 01 07 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: 01 07 00 6D 0B 00 00 00 00 00 FF 0F 8D [11:06:06]RasterBufferAndPrint [11:06:06]line Счет N : (1)245155 [11:06:06]line ИНН: 02508201610067 [11:06:06]line Контрольно-Кассовый Чек [11:06:06]line ПРОДАЖА [11:06:06]line ТРК (МРК, ГНК) : 11 [11:06:06]line Товар: 2710124130 [11:06:06]line Аи-92-К-2 [11:06:06]line 13.010 * 66.90 [11:06:06]line = 870.37 [11:06:06]line НДС 12% НСП 1% [11:06:06]line > о реализуемом товаре [11:06:06]line ОКРУГЛЕНИЕ: -0.37 [11:06:06]line ИТОГО: 870.00 [11:06:06]line Внесено: 870.00 [11:06:06]line СДАЧА: 0.00 [11:06:06]line НСП 1% : 7.70 [11:06:06]line НДС 12% : 92.43 [11:06:06]line Наличными: 870.00 [11:06:06]line Безнал.: 0.00 [11:06:06]line Место: АЗС № 173 "Партнер Нефть" [11:06:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:06:06]line СНО: Общий режим [11:06:06]line Чек 79 27.10.2024 11:06 [11:06:06]line Смена: 542 ФФД: 1.0 [11:06:06]line ЗНМ: 0300000115 [11:06:06]line РНМ: 0000000000091782 [11:06:06]line Версия ККМ: 001 [11:06:06]line ФМ: 0000000000871767 [11:06:06]line ФД: 117379 [11:06:06]line ФПД: 151318794586048 [11:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110605&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117379&fm=151318794586048&tin=02508201610067®Number=0000000000091782&sum=87000 [11:06:06]OFD Sender: Processing packet 117379 [packets to send 76, broken 75] [11:06:06]ProducePacketName [11:06:06]name=ofd_packets/00117379 [11:06:06]OFD Sender: To server: pG, [11:06:06]CommunicateWithHost lk.salyk.kg:30040 [11:06:06]ConnectInit lk.salyk.kg [11:06:06]written 0, free lines is 4095 [11:06:06]Connected sock=10 [11:06: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 36 37 0F 01 00 00 D8 6D 07 01 DF 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FD 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9D 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 83 CA 01 00 35 04 06 00 89 9F A6 FF C7 C0 4A 34 5F 49 C6 9A EC 2E [11:06: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 36 37 4F 00 00 00 53 CD 47 00 1F 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 36 37 10 04 04 00 83 CA 01 00 F4 03 04 00 5B CA 1D 67 B6 04 01 00 00 2A 23 DF 18 E3 73 D0 97 [11:06:07]CommunicateWithHost err = 0 [11:06:07]CheckOFDResponse [11:06:07]1017 (14) - 77093643461234 [11:06:07]1041 (16) - 0000000000871767 [11:06:07]1040 (4) - 117379 [11:06:07]1012 (4) - 27.10.2024 05:06 [11:06:07]1206 (1) - 0 [11:06:07]OFD Sender: Remove packet 117379 [11:06:07]ProducePacketName [11:06:07]name=ofd_packets/00117379 [11:06:07]NVStorageDeleteData [11:06:07]Write to MH i2c: 01 00 00 97 0B A2 [11:06:07]Write i2c OK [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: 01 [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: 01 07 00 [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: 01 07 00 97 0B 00 00 00 00 00 AA 0C 5F [11:06:07]RasterBufferAndPrint [11:06:07]line [11:06:07]line [11:06:07]line [11:06:07]line [11:06:07]line [11:06:07]written 0, free lines is 3246 [11:06:07]MH_Cut [11:06:07]Write to MH i2c: D1 01 00 9E 0B 01 7B [11:06:07]Write i2c OK [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: D1 [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: D1 01 00 [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: D1 01 00 9E 0B 00 7A [11:06:07]Write to MH i2c: 01 00 00 9F 0B AA [11:06:07]Write i2c OK [11:06:07]MH_I2C_Read... [11:06:07]OFD Sender: No OFD packet to send [11:06:07]*** Cut start [11:06:07]*** Purtial cut [11:06:07]*** Stage 1: CUTSNS_PIN = 1 [11:06:08]Read from MH i2c: 01 [11:06:08]MH_I2C_Read... [11:06:08]*** Stop cut motor [11:06:08]*** Cut end [11:06:08]Read from MH i2c: 01 07 00 [11:06:08]MH_I2C_Read... [11:06:08]Read from MH i2c: 01 07 00 9F 0B 00 00 00 00 00 FF 0F BF [11:06:08]process_action close_receipt done [11:06:08]requested_data is exist [11:06:08]produce_requested_data [11:06:08]requested_item fm.sn is exist - process it [11:06:08]wFMCommunicate request_size=4 [11:06:08]MH_SAM_APDU [11:06:08]CAPDU: 80 11 00 00 [11:06:08]Write to MH i2c: E2 08 00 A0 0B 80 11 00 00 00 00 00 00 25 [11:06:08]Write i2c OK [11:06:08]MH_I2C_Read... [11:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:08]Read from MH i2c: E2 [11:06:08]MH_I2C_Read... [11:06:08]Read from MH i2c: E2 17 00 [11:06:08]MH_I2C_Read... [11:06:08]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 36 37 90 00 7C [11:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:06:08]wFMCommunicate OK [11:06:08]requested_item fd.num is exist - process it [11:06:08]SAM_PROTO_GetFieldsCounters [11:06:08]wFMCommunicate request_size=4 [11:06:08]MH_SAM_APDU [11:06:08]CAPDU: 80 13 00 00 [11:06:08]Write to MH i2c: E2 08 00 A1 0B 80 13 00 00 00 00 00 00 28 [11:06:08]Write i2c OK [11:06:08]MH_I2C_Read... [11:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:08]Read from MH i2c: E2 [11:06:08]MH_I2C_Read... [11:06:08]Read from MH i2c: E2 62 00 [11:06:08]MH_I2C_Read... [11:06:08]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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 83 CA 01 00 0E 04 04 00 1E 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 AA [11: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 83 CA 01 00 0E 04 04 00 1E 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 [11:06:08]wFMCommunicate OK [11:06:08]SAM_PROTO_GetFieldsCounters done [11:06:08]requested_item shift.num is exist - process it [11:06:08]requested_item shift.opened is exist - process it [11:06:08]req_shift_opened [11:06:08]FM_GetShiftState [11:06:08]SAM_PROTO_GetShiftState [11:06:08]wFMCommunicate request_size=4 [11:06:08]MH_SAM_APDU [11:06:08]CAPDU: 80 13 01 00 [11:06:08]Write to MH i2c: E2 08 00 A2 0B 80 13 01 00 00 00 00 00 2A [11:06:08]Write i2c OK [11:06:08]MH_I2C_Read... [11:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:08]Read from MH i2c: E2 [11:06:08]MH_I2C_Read... [11:06:08]Read from MH i2c: E2 0E 00 [11:06:08]MH_I2C_Read... [11:06:08]Read from MH i2c: E2 0E 00 A2 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 69 [11:06:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:06:08]wFMCommunicate OK [11:06:08]SAM_PROTO_GetShiftState done [11:06:08]FM_GetShiftState done [11:06:08]req_shift_opened done [11:06:08]requested_item shift.open_date is exist - process it [11:06:08]req_shift_open_date [11:06:08]req_shift_open_date done [11:06:08]produce_requested_data done [11:06:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117379,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:06:08]process_action_free close_receipt [11:06:08]json_value_free [11:06:08]json_value_free done [11:06:08]process_json_proto returns [11:06:08]Send response to host [11:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117379,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:06:08]free response buf [11:06:08]execute_script done [11:06:08]execute_script returns [11:06:08]free content buf [11:06:08]Sock 7.Close socket [11:06:08]Sock 7.Thread stoped [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:16]accept exits with 9 [11:10:16]New connection [11:10:16]New thread 3067456868 created [11:10:16]Thread 3067600228 joined [11:10:16]Waiting for new connection... [11:10:16] Sock 9.Parse request [11:10:16]Sock 9.Check first char [11:10:16]Sock 9.First char is OK [11:10:16]request: POST /json_proto HTTP/1.0 [11:10:16]Method: POST [11:10:16]URL: /json_proto [11:10:16]Method is POST - this is cgi request [11:10:16]url: /json_proto [11:10:16]query_string will be loaded in cgi processing [11:10:16]execute_cgi json_proto POST (null) [11:10:16]execute_cgi path=json_proto method=POST [11:10:16]POST find Content-Length [11:10:16]Host: 172.17.96.67:8080 [11:10:16]Content-Length: 677 [11:10:16]Content-Type: application/json [11:10:16] [11:10:16]POST finish read [11:10:16]Found Content-Length = 677 [11:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:10:16]execute_script... [11:10: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)245156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:10:16]POST & json_proto [11:10:16]process_json_proto [11:10:16]json parsed OK: [11:10:16]protocol is kg_v1.0 [11:10:16]action value=close_receipt [11:10:16]process_action close_receipt [11:10:16]cmd_close_receipt [11:10:16]MH_GetDate [11:10:16]Write to MH i2c: F0 00 00 A3 0B 9D [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: F0 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: F0 09 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: F0 09 00 A3 0B 00 99 1F 1E 67 2B 09 1E 67 9C [11:10:16]GetLastDocTimeStamp 1730027165 [11:10:16]current date 1730027417 [11:10:16]FM_GetShiftState [11:10:16]SAM_PROTO_GetShiftState [11:10:16]wFMCommunicate request_size=4 [11:10:16]MH_SAM_APDU [11:10:16]CAPDU: 80 13 01 00 [11:10:16]Write to MH i2c: E2 08 00 A4 0B 80 13 01 00 00 00 00 00 2C [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:16]Read from MH i2c: E2 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 0E 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 0E 00 A4 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6B [11:10:16]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:10:16]wFMCommunicate OK [11:10:16]SAM_PROTO_GetShiftState done [11:10:16]FM_GetShiftState done [11:10:16]opened in 1729987372 [11:10:16]opened+sec_in_day 1730073772 [11:10:16]quantity*price = 50041 [11:10:16]sum+1 = 50042 [11:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 80 27.10.2024 11:10 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117380 ФПД: 154029794700803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111017&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117380&fm=154029794700803&tin=02508201610067®Number=0000000000091782&sum=50000 [11:10:17]StoreToDocumentArchive [11:10:17]shift 542 fd 117380 [11:10:17]save to /storage/0542/doc_00117380 [11:10:17]save last doc name /storage/0542/doc_00117380 to /storage/kkm_last_doc_name [11:10:17]save OK [11:10:17]Clear old archive folders... [11:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:17]tlvbuf is 0170EEC0 [11:10:17]SAM_PROTO_ClearQueue [11:10:17]wFMCommunicate request_size=4 [11:10:17]MH_SAM_APDU [11:10:17]CAPDU: 80 09 00 00 [11:10:17]Write to MH i2c: E2 08 00 B1 0B 80 09 00 00 00 00 00 00 2E [11:10:17]Write i2c OK [11:10:17]MH_I2C_Read... [11:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:17]Read from MH i2c: E2 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 B1 0B 00 90 00 30 [11:10:17]RAPDU: 90 00 [11:10:17]wFMCommunicate OK [11:10:17]SAM_PROTO_ClearQueue done [11:10:17]KKMCreateOFDPacket [11:10:17]OFDProtocolAddRootSTLVToBuf [11:10:17]FM_MakeSignedData [11:10:17]FM_MakeSignedData [11:10:17]SAM_PROTO_SignData [11:10:17]wFMCommunicate request_size=4 [11:10:17]MH_SAM_APDU [11:10:17]CAPDU: 80 0D 01 02 [11:10:17]Write to MH i2c: E2 08 00 B2 0B 80 0D 01 02 00 00 00 00 36 [11:10:17]Write i2c OK [11:10:17]MH_I2C_Read... [11:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:17]Read from MH i2c: E2 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 B2 0B 00 90 00 31 [11:10:17]RAPDU: 90 00 [11:10:17]wFMCommunicate OK [11:10:17]wFMCommunicate request_size=255 [11:10:17]MH_SAM_APDU [11:10: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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 84 CA 01 00 35 04 06 00 8C [11:10:17]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 84 CA 01 00 35 04 06 00 8C 00 00 50 [11:10:17]Write i2c OK [11:10:17]MH_I2C_Read... [11:10:17]OFD Sender: No OFD packet to send [11:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:17]Read from MH i2c: E2 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 B3 0B 00 90 00 32 [11:10:17]RAPDU: 90 00 [11:10:17]wFMCommunicate OK [11:10:17]wFMCommunicate request_size=10 [11:10:17]MH_SAM_APDU [11:10:17]CAPDU: 80 0D 02 02 05 16 DB 32 AE 03 [11:10:17]Write to MH i2c: E2 0D 00 B4 0B 80 0D 02 02 05 00 16 DB 32 AE 03 00 00 17 [11:10:17]Write i2c OK [11:10:17]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 B4 0B 00 90 00 33 [11:10:18]RAPDU: 90 00 [11:10:18]wFMCommunicate OK [11:10:18]wFMCommunicate request_size=4 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 0D 03 02 [11:10:18]Write to MH i2c: E2 08 00 B5 0B 80 0D 03 02 00 00 00 00 3B [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 0B 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 0B 00 B5 0B 00 A8 16 12 F2 D2 67 C7 7D 90 00 7B [11:10:18]RAPDU: A8 16 12 F2 D2 67 C7 7D 90 00 [11:10:18]wFMCommunicate OK [11:10:18]SAM_PROTO_SignData done [11:10:18]FM_MakeSignedData done [11:10:18]CreateOFDProtocolMessage [11:10:18]wFMCommunicate request_size=4 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 11 00 00 [11:10:18]Write to MH i2c: E2 08 00 B6 0B 80 11 00 00 00 00 00 00 3B [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 17 00 [11:10:18]MH_I2C_Read... [11:10:18]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 36 37 90 00 92 [11:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:10:18]wFMCommunicate OK [11:10:18]CreateOFDProtocolMessage done [11:10:18]OFDSenderStorePacket 117380 [11:10:18]StoreOFDPacket docnum=117380 [11:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 44 64 07 01 EA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 84 CA 01 00 35 04 06 00 8C 16 DB 32 AE 03 A8 16 12 F2 D2 67 C7 7D [11:10:18]CheckFolder [11:10:18]dirname=/storage/ofd_packets [11:10:18]CheckFolder done [11:10:18]ProducePacketName [11:10:18]name=ofd_packets/00117380 [11:10:18]NVStorageSaveData ofd_packets/00117380 [11:10:18]File name is /storage/ofd_packets/00117380 [11:10:18]Write 301 bytes [11:10:18]NVStorageSaveData done [11:10:18]OFDSenderStorePacket done [11:10:18]KKMCreateOFDPacket done [11:10:18]NVStorageSaveData kkm_last_timestamp [11:10:18]File name is /storage/kkm_last_timestamp [11:10:18]Write 4 bytes [11:10:18]NVStorageSaveData done [11:10:18]ExternCall_PrintAddStr [11:10:18]wPrintStart [11:10:18]Write to MH i2c: 01 00 00 B7 0B C2 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 07 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 07 00 B7 0B 00 00 00 00 00 FF 0F D7 [11:10:18]RasterBufferAndPrint [11:10:18]line Счет N : (1)245156 [11:10:18]line ИНН: 02508201610067 [11:10:18]line Контрольно-Кассовый Чек [11:10:18]line ПРОДАЖА [11:10:18]line ТРК (МРК, ГНК) : 11 [11:10:18]line Товар: 2710124130 [11:10:18]line Аи-92-К-2 [11:10:18]line 7.480 * 66.90 [11:10:18]line = 500.41 [11:10:18]line НДС 12% НСП 1% [11:10:18]line > о реализуемом товаре [11:10:18]line ОКРУГЛЕНИЕ: -0.41 [11:10:18]line ИТОГО: 500.00 [11:10:18]line Внесено: 500.00 [11:10:18]line СДАЧА: 0.00 [11:10:18]line НСП 1% : 4.43 [11:10:18]line НДС 12% : 53.14 [11:10:18]line Наличными: 500.00 [11:10:18]line Безнал.: 0.00 [11:10:18]line Место: АЗС № 173 "Партнер Нефть" [11:10:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:10:18]line СНО: Общий режим [11:10:18]line Чек 80 27.10.2024 11:10 [11:10:18]line Смена: 542 ФФД: 1.0 [11:10:18]line ЗНМ: 0300000115 [11:10:18]line РНМ: 0000000000091782 [11:10:18]line Версия ККМ: 001 [11:10:18]line ФМ: 0000000000871767 [11:10:18]line ФД: 117380 [11:10:18]line ФПД: 154029794700803 [11:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111017&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117380&fm=154029794700803&tin=02508201610067®Number=0000000000091782&sum=50000 [11:10:18]OFD Sender: Processing packet 117380 [packets to send 76, broken 75] [11:10:18]ProducePacketName [11:10:18]name=ofd_packets/00117380 [11:10:18]OFD Sender: To server: pG, [11:10:18]CommunicateWithHost lk.salyk.kg:30040 [11:10:18]ConnectInit lk.salyk.kg [11:10:18]written 0, free lines is 4095 [11:10:18]Connected sock=10 [11:10: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 36 37 0F 01 00 00 44 64 07 01 EA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 84 CA 01 00 35 04 06 00 8C 16 DB 32 AE 03 A8 16 12 F2 D2 67 C7 7D [11:10: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 36 37 4F 00 00 00 E0 3F 47 00 94 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 36 37 10 04 04 00 84 CA 01 00 F4 03 04 00 57 CB 1D 67 B6 04 01 00 00 C9 C6 8C C0 EC A7 FD 16 [11:10:18]CommunicateWithHost err = 0 [11:10:18]CheckOFDResponse [11:10:18]1017 (14) - 77093643461234 [11:10:18]1041 (16) - 0000000000871767 [11:10:18]1040 (4) - 117380 [11:10:18]1012 (4) - 27.10.2024 05:10 [11:10:18]1206 (1) - 0 [11:10:18]OFD Sender: Remove packet 117380 [11:10:18]ProducePacketName [11:10:18]name=ofd_packets/00117380 [11:10:18]NVStorageDeleteData [11:10:18]Write to MH i2c: 01 00 00 E1 0B EC [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 07 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 07 00 E1 0B 00 00 00 00 00 B5 0C B4 [11:10:18]RasterBufferAndPrint [11:10:18]line [11:10:18]line [11:10:18]line [11:10:18]line [11:10:18]line [11:10:18]written 0, free lines is 3257 [11:10:18]MH_Cut [11:10:18]Write to MH i2c: D1 01 00 E8 0B 01 C5 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: D1 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: D1 01 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: D1 01 00 E8 0B 00 C4 [11:10:18]Write to MH i2c: 01 00 00 E9 0B F4 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:19]OFD Sender: No OFD packet to send [11:10:19]*** Cut start [11:10:19]*** Purtial cut [11:10:19]*** Stage 1: CUTSNS_PIN = 1 [11:10:20]Read from MH i2c: 01 [11:10:20]MH_I2C_Read... [11:10:20]*** Stop cut motor [11:10:20]*** Cut end [11:10:20]Read from MH i2c: 01 07 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: 01 07 00 E9 0B 00 00 00 00 00 FF 0F 09 [11:10:20]process_action close_receipt done [11:10:20]requested_data is exist [11:10:20]produce_requested_data [11:10:20]requested_item fm.sn is exist - process it [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 11 00 00 [11:10:20]Write to MH i2c: E2 08 00 EA 0B 80 11 00 00 00 00 00 00 6F [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:20]Read from MH i2c: E2 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 17 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 17 00 EA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C6 [11:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:10:20]wFMCommunicate OK [11:10:20]requested_item fd.num is exist - process it [11:10:20]SAM_PROTO_GetFieldsCounters [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 13 00 00 [11:10:20]Write to MH i2c: E2 08 00 EB 0B 80 13 00 00 00 00 00 00 72 [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:20]Read from MH i2c: E2 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 62 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 62 00 EB 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 84 CA 01 00 0E 04 04 00 1E 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 F8 [11:10: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 84 CA 01 00 0E 04 04 00 1E 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 [11:10:20]wFMCommunicate OK [11:10:20]SAM_PROTO_GetFieldsCounters done [11:10:20]requested_item shift.num is exist - process it [11:10:20]requested_item shift.opened is exist - process it [11:10:20]req_shift_opened [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 EC 0B 80 13 01 00 00 00 00 00 74 [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 [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 0E 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 0E 00 EC 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B3 [11:10:20]RAPDU: 09 00 01 2C 83 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]req_shift_opened done [11:10:20]requested_item shift.open_date is exist - process it [11:10:20]req_shift_open_date [11:10:20]req_shift_open_date done [11:10:20]produce_requested_data done [11:10:20]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117380,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:10:20]process_action_free close_receipt [11:10:20]json_value_free [11:10:20]json_value_free done [11:10:20]process_json_proto returns [11:10:20]Send response to host [11:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117380,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:10:20]free response buf [11:10:20]execute_script done [11:10:20]execute_script returns [11:10:20]free content buf [11:10:20]Sock 9.Close socket [11:10:20]Sock 9.Thread stoped [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:56]accept exits with 7 [11:12:56]New connection [11:12:56]New thread 3067600228 created [11:12:56]Thread 3067456868 joined [11:12:56]Waiting for new connection... [11:12:56] Sock 7.Parse request [11:12:56]Sock 7.Check first char [11:12:56]Sock 7.First char is OK [11:12:56]request: POST /json_proto HTTP/1.0 [11:12:56]Method: POST [11:12:56]URL: /json_proto [11:12:56]Method is POST - this is cgi request [11:12:56]url: /json_proto [11:12:56]query_string will be loaded in cgi processing [11:12:56]execute_cgi json_proto POST (null) [11:12:56]execute_cgi path=json_proto method=POST [11:12:56]POST find Content-Length [11:12:56]Host: 172.17.96.67:8080 [11:12:56]Content-Length: 769 [11:12:56]Content-Type: application/json [11:12:56] [11:12:56]POST finish read [11:12:56]Found Content-Length = 769 [11:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 25.420, "sum" : 1700.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1700.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:56]execute_script... [11:12: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)245157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 25.420, "sum" : 1700.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1700.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:56]POST & json_proto [11:12:56]process_json_proto [11:12:56]json parsed OK: [11:12:56]protocol is kg_v1.0 [11:12:56]action value=close_receipt [11:12:56]process_action close_receipt [11:12:56]cmd_close_receipt [11:12:56]MH_GetDate [11:12:56]Write to MH i2c: F0 00 00 ED 0B E7 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: F0 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: F0 09 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: F0 09 00 ED 0B 00 39 20 1E 67 2B 09 1E 67 87 [11:12:56]GetLastDocTimeStamp 1730027417 [11:12:56]current date 1730027577 [11:12:56]FM_GetShiftState [11:12:56]SAM_PROTO_GetShiftState [11:12:56]wFMCommunicate request_size=4 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 13 01 00 [11:12:56]Write to MH i2c: E2 08 00 EE 0B 80 13 01 00 00 00 00 00 76 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 0E 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 0E 00 EE 0B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B5 [11:12:56]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:12:56]wFMCommunicate OK [11:12:56]SAM_PROTO_GetShiftState done [11:12:56]FM_GetShiftState done [11:12:56]opened in 1729987372 [11:12:56]opened+sec_in_day 1730073772 [11:12:56]quantity*price = 170059 [11:12:56]sum+1 = 170061 [11:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.60 НСП 1% : 15.05 НДС 12% : 180.59 Наличными: 0.00 Безнал.: 1700.60 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 81 27.10.2024 11:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117381 ФПД: 1130921391984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111257&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117381&fm=1130921391984&tin=02508201610067®Number=0000000000091782&sum=170060 [11:12:57]StoreToDocumentArchive [11:12:57]shift 542 fd 117381 [11:12:57]save to /storage/0542/doc_00117381 [11:12:57]save last doc name /storage/0542/doc_00117381 to /storage/kkm_last_doc_name [11:12:57]save OK [11:12:57]Clear old archive folders... [11:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:57]tlvbuf is 016FD170 [11:12:57]SAM_PROTO_ClearQueue [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 09 00 00 [11:12:57]Write to MH i2c: E2 08 00 FB 0B 80 09 00 00 00 00 00 00 78 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 FB 0B 00 90 00 7A [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]SAM_PROTO_ClearQueue done [11:12:57]KKMCreateOFDPacket [11:12:57]OFDProtocolAddRootSTLVToBuf [11:12:57]FM_MakeSignedData [11:12:57]FM_MakeSignedData [11:12:57]SAM_PROTO_SignData [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 0D 01 02 [11:12:57]Write to MH i2c: E2 08 00 FC 0B 80 0D 01 02 00 00 00 00 80 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 FC 0B 00 90 00 7B [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]wFMCommunicate request_size=255 [11:12:57]MH_SAM_APDU [11:12: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 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 39 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 85 CA 01 00 35 04 06 00 01 [11:12:57]Write to MH i2c: E2 02 01 FD 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 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 39 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 85 CA 01 00 35 04 06 00 01 00 00 81 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:58]Read from MH i2c: E2 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 03 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 03 00 FD 0B 00 90 00 7C [11:12:58]RAPDU: 90 00 [11:12:58]wFMCommunicate OK [11:12:58]wFMCommunicate request_size=10 [11:12:58]MH_SAM_APDU [11:12:58]CAPDU: 80 0D 02 02 05 07 50 2A F7 70 [11:12:58]Write to MH i2c: E2 0D 00 FE 0B 80 0D 02 02 05 00 07 50 2A F7 70 00 00 75 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:58]Read from MH i2c: E2 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 03 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 03 00 FE 0B 00 90 00 7D [11:12:58]RAPDU: 90 00 [11:12:58]wFMCommunicate OK [11:12:58]wFMCommunicate request_size=4 [11:12:58]MH_SAM_APDU [11:12:58]CAPDU: 80 0D 03 02 [11:12:58]Write to MH i2c: E2 08 00 FF 0B 80 0D 03 02 00 00 00 00 85 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:58]Read from MH i2c: E2 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 0B 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 0B 00 FF 0B 00 D5 DE 7A 1D 4A 8F 57 1F 90 00 1F [11:12:58]RAPDU: D5 DE 7A 1D 4A 8F 57 1F 90 00 [11:12:58]wFMCommunicate OK [11:12:58]SAM_PROTO_SignData done [11:12:58]FM_MakeSignedData done [11:12:58]CreateOFDProtocolMessage [11:12:58]wFMCommunicate request_size=4 [11:12:58]MH_SAM_APDU [11:12:58]CAPDU: 80 11 00 00 [11:12:58]Write to MH i2c: E2 08 00 00 0C 80 11 00 00 00 00 00 00 86 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:58]Read from MH i2c: E2 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 17 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 17 00 00 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DD [11:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:12:58]wFMCommunicate OK [11:12:58]CreateOFDProtocolMessage done [11:12:58]OFDSenderStorePacket 117381 [11:12:58]StoreOFDPacket docnum=117381 [11:12:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4A F0 07 01 FF 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 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 39 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 85 CA 01 00 35 04 06 00 01 07 50 2A F7 70 D5 DE 7A 1D 4A 8F 57 1F [11:12:58]CheckFolder [11:12:58]dirname=/storage/ofd_packets [11:12:58]CheckFolder done [11:12:58]ProducePacketName [11:12:58]name=ofd_packets/00117381 [11:12:58]NVStorageSaveData ofd_packets/00117381 [11:12:58]File name is /storage/ofd_packets/00117381 [11:12:58]Write 301 bytes [11:12:58]NVStorageSaveData done [11:12:58]OFDSenderStorePacket done [11:12:58]KKMCreateOFDPacket done [11:12:58]NVStorageSaveData kkm_last_timestamp [11:12:58]File name is /storage/kkm_last_timestamp [11:12:58]Write 4 bytes [11:12:58]NVStorageSaveData done [11:12:58]ExternCall_PrintAddStr [11:12:58]wPrintStart [11:12:58]Write to MH i2c: 01 00 00 01 0C 0D [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 FF 0F 22 [11:12:58]RasterBufferAndPrint [11:12:58]line Счет N : (1)245157 [11:12:58]line ИНН: 02508201610067 [11:12:58]line Контрольно-Кассовый Чек [11:12:58]line ПРОДАЖА [11:12:58]line ТРК (МРК, ГНК) : 21 [11:12:58]line Товар: 2710124130 [11:12:58]line Аи-92-К-2 [11:12:58]line 25.420 * 66.90 [11:12:58]line = 1700.60 [11:12:58]line НДС 12% НСП 1% [11:12:58]line > о реализуемом товаре [11:12:58]line ИТОГО: 1700.60 [11:12:58]line НСП 1% : 15.05 [11:12:58]line НДС 12% : 180.59 [11:12:58]line Наличными: 0.00 [11:12:58]line Безнал.: 1700.60 [11:12:58]line Место: АЗС № 173 "Партнер Нефть" [11:12:58]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:12:58]line СНО: Общий режим [11:12:58]line Чек 81 27.10.2024 11:12 [11:12:58]line Смена: 542 ФФД: 1.0 [11:12:58]line ЗНМ: 0300000115 [11:12:58]line РНМ: 0000000000091782 [11:12:58]line Версия ККМ: 001 [11:12:58]line Платежная система: Mbank [11:12:58]line ФМ: 0000000000871767 [11:12:58]line ФД: 117381 [11:12:58]line ФПД: 1130921391984 [11:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111257&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117381&fm=1130921391984&tin=02508201610067®Number=0000000000091782&sum=170060 [11:12:58]written 0, free lines is 4095 [11:12:58]OFD Sender: Processing packet 117381 [packets to send 76, broken 75] [11:12:58]ProducePacketName [11:12:58]name=ofd_packets/00117381 [11:12:58]OFD Sender: To server: pG, [11:12:58]CommunicateWithHost lk.salyk.kg:30040 [11:12:58]ConnectInit lk.salyk.kg [11:12:58]Connected sock=10 [11:12: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 36 37 0F 01 00 00 4A F0 07 01 FF 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 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 39 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 85 CA 01 00 35 04 06 00 01 07 50 2A F7 70 D5 DE 7A 1D 4A 8F 57 1F [11:12: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 36 37 4F 00 00 00 FA A8 47 00 05 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 36 37 10 04 04 00 85 CA 01 00 F4 03 04 00 F7 CB 1D 67 B6 04 01 00 00 2A 9B 30 68 7C 53 79 97 [11:12:58]CommunicateWithHost err = 0 [11:12:58]CheckOFDResponse [11:12:58]1017 (14) - 77093643461234 [11:12:58]1041 (16) - 0000000000871767 [11:12:58]1040 (4) - 117381 [11:12:58]1012 (4) - 27.10.2024 05:13 [11:12:58]1206 (1) - 0 [11:12:58]OFD Sender: Remove packet 117381 [11:12:58]ProducePacketName [11:12:58]name=ofd_packets/00117381 [11:12:58]NVStorageDeleteData [11:12:58]Write to MH i2c: 01 00 00 29 0C 35 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 29 0C 00 00 00 00 00 E4 0C 2C [11:12:58]RasterBufferAndPrint [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]written 0, free lines is 3303 [11:12:58]MH_Cut [11:12:58]Write to MH i2c: D1 01 00 30 0C 01 0E [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 01 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 01 00 30 0C 00 0D [11:12:58]Write to MH i2c: 01 00 00 31 0C 3D [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:59]OFD Sender: No OFD packet to send [11:12:59]*** Cut start [11:12:59]*** Purtial cut [11:12:59]*** Stage 1: CUTSNS_PIN = 1 [11:12:59]Read from MH i2c: 01 [11:12:59]MH_I2C_Read... [11:12:59]*** Stop cut motor [11:12:59]*** Cut end [11:12:59]Read from MH i2c: 01 07 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: 01 07 00 31 0C 00 00 00 00 00 FF 0F 52 [11:12:59]process_action close_receipt done [11:12:59]requested_data is exist [11:12:59]produce_requested_data [11:12:59]requested_item fm.sn is exist - process it [11:12:59]wFMCommunicate request_size=4 [11:12:59]MH_SAM_APDU [11:12:59]CAPDU: 80 11 00 00 [11:12:59]Write to MH i2c: E2 08 00 32 0C 80 11 00 00 00 00 00 00 B8 [11:12:59]Write i2c OK [11:12:59]MH_I2C_Read... [11:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:59]Read from MH i2c: E2 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 17 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 17 00 32 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0F [11:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:12:59]wFMCommunicate OK [11:12:59]requested_item fd.num is exist - process it [11:12:59]SAM_PROTO_GetFieldsCounters [11:12:59]wFMCommunicate request_size=4 [11:12:59]MH_SAM_APDU [11:12:59]CAPDU: 80 13 00 00 [11:12:59]Write to MH i2c: E2 08 00 33 0C 80 13 00 00 00 00 00 00 BB [11:12:59]Write i2c OK [11:12:59]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 62 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 62 00 33 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 85 CA 01 00 0E 04 04 00 1E 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 45 [11:13: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 85 CA 01 00 0E 04 04 00 1E 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 [11:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_GetFieldsCounters done [11:13:00]requested_item shift.num is exist - process it [11:13:00]requested_item shift.opened is exist - process it [11:13:00]req_shift_opened [11:13:00]FM_GetShiftState [11:13:00]SAM_PROTO_GetShiftState [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 13 01 00 [11:13:00]Write to MH i2c: E2 08 00 34 0C 80 13 01 00 00 00 00 00 BD [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 0E 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 0E 00 34 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FC [11:13:00]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_GetShiftState done [11:13:00]FM_GetShiftState done [11:13:00]req_shift_opened done [11:13:00]requested_item shift.open_date is exist - process it [11:13:00]req_shift_open_date [11:13:00]req_shift_open_date done [11:13:00]produce_requested_data done [11:13:00]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117381,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:13:00]process_action_free close_receipt [11:13:00]json_value_free [11:13:00]json_value_free done [11:13:00]process_json_proto returns [11:13:00]Send response to host [11:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117381,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:13:00]free response buf [11:13:00]execute_script done [11:13:00]execute_script returns [11:13:00]free content buf [11:13:00]Sock 7.Close socket [11:13:00]Sock 7.Thread stoped [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]accept exits with 9 [11:18:14]New connection [11:18:14]New thread 3067456868 created [11:18:14]Thread 3067600228 joined [11:18:14]Waiting for new connection... [11:18:14] Sock 9.Parse request [11:18:14]Sock 9.Check first char [11:18:14]Sock 9.First char is OK [11:18:14]request: POST /json_proto HTTP/1.0 [11:18:14]Method: POST [11:18:14]URL: /json_proto [11:18:14]Method is POST - this is cgi request [11:18:14]url: /json_proto [11:18:14]query_string will be loaded in cgi processing [11:18:14]execute_cgi json_proto POST (null) [11:18:14]execute_cgi path=json_proto method=POST [11:18:14]POST find Content-Length [11:18:14]Host: 172.17.96.67:8080 [11:18:14]Content-Length: 766 [11:18:14]Content-Type: application/json [11:18:14] [11:18:14]POST finish read [11:18:14]Found Content-Length = 766 [11:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:18:14]execute_script... [11:18: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)245158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:18:14]POST & json_proto [11:18:14]process_json_proto [11:18:14]json parsed OK: [11:18:14]protocol is kg_v1.0 [11:18:14]action value=close_receipt [11:18:14]process_action close_receipt [11:18:14]cmd_close_receipt [11:18:14]MH_GetDate [11:18:14]Write to MH i2c: F0 00 00 35 0C 30 [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: F0 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: F0 09 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: F0 09 00 35 0C 00 77 21 1E 67 2B 09 1E 67 0F [11:18:14]GetLastDocTimeStamp 1730027577 [11:18:14]current date 1730027895 [11:18:14]FM_GetShiftState [11:18:14]SAM_PROTO_GetShiftState [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 13 01 00 [11:18:14]Write to MH i2c: E2 08 00 36 0C 80 13 01 00 00 00 00 00 BF [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 0E 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 0E 00 36 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FE [11:18:14]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:18:14]wFMCommunicate OK [11:18:14]SAM_PROTO_GetShiftState done [11:18:14]FM_GetShiftState done [11:18:14]opened in 1729987372 [11:18:14]opened+sec_in_day 1730073772 [11:18:14]quantity*price = 50041 [11:18:14]sum+1 = 50042 [11:18:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 82 27.10.2024 11:18 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117382 ФПД: 104869371615619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111815&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117382&fm=104869371615619&tin=02508201610067®Number=0000000000091782&sum=50041 [11:18:15]StoreToDocumentArchive [11:18:15]shift 542 fd 117382 [11:18:15]save to /storage/0542/doc_00117382 [11:18:15]save last doc name /storage/0542/doc_00117382 to /storage/kkm_last_doc_name [11:18:15]save OK [11:18:15]Clear old archive folders... [11:18:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:15]tlvbuf is 016E14E0 [11:18:15]SAM_PROTO_ClearQueue [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 09 00 00 [11:18:15]Write to MH i2c: E2 08 00 43 0C 80 09 00 00 00 00 00 00 C1 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 43 0C 00 90 00 C3 [11:18:15]RAPDU: 90 00 [11:18:15]wFMCommunicate OK [11:18:15]SAM_PROTO_ClearQueue done [11:18:15]KKMCreateOFDPacket [11:18:15]OFDProtocolAddRootSTLVToBuf [11:18:15]FM_MakeSignedData [11:18:15]FM_MakeSignedData [11:18:15]SAM_PROTO_SignData [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 0D 01 02 [11:18:15]Write to MH i2c: E2 08 00 44 0C 80 0D 01 02 00 00 00 00 C9 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 44 0C 00 90 00 C4 [11:18:15]RAPDU: 90 00 [11:18:15]wFMCommunicate OK [11:18:15]wFMCommunicate request_size=255 [11:18:15]MH_SAM_APDU [11:18: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 52 00 00 00 F4 03 04 00 77 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 86 CA 01 00 35 04 06 00 5F [11:18:15]Write to MH i2c: E2 02 01 45 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 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 52 00 00 00 F4 03 04 00 77 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 86 CA 01 00 35 04 06 00 5F 00 00 EC [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 45 0C 00 90 00 C5 [11:18:15]RAPDU: 90 00 [11:18:15]wFMCommunicate OK [11:18:15]wFMCommunicate request_size=10 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 0D 02 02 05 60 CD A4 99 83 [11:18:15]Write to MH i2c: E2 0D 00 46 0C 80 0D 02 02 05 00 60 CD A4 99 83 00 00 C3 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 46 0C 00 90 00 C6 [11:18:15]RAPDU: 90 00 [11:18:15]wFMCommunicate OK [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 0D 03 02 [11:18:15]Write to MH i2c: E2 08 00 47 0C 80 0D 03 02 00 00 00 00 CE [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0B 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0B 00 47 0C 00 0D 92 7C FD CC 94 F0 EE 90 00 25 [11:18:15]RAPDU: 0D 92 7C FD CC 94 F0 EE 90 00 [11:18:15]wFMCommunicate OK [11:18:15]SAM_PROTO_SignData done [11:18:15]FM_MakeSignedData done [11:18:15]CreateOFDProtocolMessage [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 11 00 00 [11:18:15]Write to MH i2c: E2 08 00 48 0C 80 11 00 00 00 00 00 00 CE [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 17 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 17 00 48 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 25 [11:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:18:16]wFMCommunicate OK [11:18:16]CreateOFDProtocolMessage done [11:18:16]OFDSenderStorePacket 117382 [11:18:16]StoreOFDPacket docnum=117382 [11:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D7 DC 07 01 7E 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 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 52 00 00 00 F4 03 04 00 77 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 86 CA 01 00 35 04 06 00 5F 60 CD A4 99 83 0D 92 7C FD CC 94 F0 EE [11:18:16]CheckFolder [11:18:16]dirname=/storage/ofd_packets [11:18:16]CheckFolder done [11:18:16]ProducePacketName [11:18:16]name=ofd_packets/00117382 [11:18:16]NVStorageSaveData ofd_packets/00117382 [11:18:16]File name is /storage/ofd_packets/00117382 [11:18:16]Write 301 bytes [11:18:16]NVStorageSaveData done [11:18:16]OFDSenderStorePacket done [11:18:16]KKMCreateOFDPacket done [11:18:16]NVStorageSaveData kkm_last_timestamp [11:18:16]File name is /storage/kkm_last_timestamp [11:18:16]Write 4 bytes [11:18:16]NVStorageSaveData done [11:18:16]ExternCall_PrintAddStr [11:18:16]wPrintStart [11:18:16]Write to MH i2c: 01 00 00 49 0C 55 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 07 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [11:18:16]RasterBufferAndPrint [11:18:16]line Счет N : (1)245158 [11:18:16]line ИНН: 02508201610067 [11:18:16]line Контрольно-Кассовый Чек [11:18:16]line ПРОДАЖА [11:18:16]line ТРК (МРК, ГНК) : 11 [11:18:16]line Товар: 2710124130 [11:18:16]line Аи-92-К-2 [11:18:16]line 7.480 * 66.90 [11:18:16]line = 500.41 [11:18:16]line НДС 12% НСП 1% [11:18:16]line > о реализуемом товаре [11:18:16]line ИТОГО: 500.41 [11:18:16]line НСП 1% : 4.43 [11:18:16]line НДС 12% : 53.14 [11:18:16]line Наличными: 0.00 [11:18:16]line Безнал.: 500.41 [11:18:16]line Место: АЗС № 173 "Партнер Нефть" [11:18:16]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:18:16]line СНО: Общий режим [11:18:16]line Чек 82 27.10.2024 11:18 [11:18:16]line Смена: 542 ФФД: 1.0 [11:18:16]line ЗНМ: 0300000115 [11:18:16]line РНМ: 0000000000091782 [11:18:16]line Версия ККМ: 001 [11:18:16]line Платежная система: Mbank [11:18:16]line ФМ: 0000000000871767 [11:18:16]line ФД: 117382 [11:18:16]line ФПД: 104869371615619 [11:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111815&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117382&fm=104869371615619&tin=02508201610067®Number=0000000000091782&sum=50041 [11:18:16]written 0, free lines is 4095 [11:18:16]OFD Sender: Processing packet 117382 [packets to send 76, broken 75] [11:18:16]ProducePacketName [11:18:16]name=ofd_packets/00117382 [11:18:16]OFD Sender: To server: pG, [11:18:16]CommunicateWithHost lk.salyk.kg:30040 [11:18:16]ConnectInit lk.salyk.kg [11:18:16]Write to MH i2c: 01 00 00 71 0C 7D [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 07 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 07 00 71 0C 00 00 00 00 00 D4 0C 64 [11:18:16]RasterBufferAndPrint [11:18:16]line [11:18:16]line [11:18:16]line [11:18:16]line [11:18:16]line [11:18:16]written 0, free lines is 3288 [11:18:16]Connected sock=10 [11:18: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 36 37 0F 01 00 00 D7 DC 07 01 7E 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 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 52 00 00 00 F4 03 04 00 77 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 86 CA 01 00 35 04 06 00 5F 60 CD A4 99 83 0D 92 7C FD CC 94 F0 EE [11:18:16]MH_Cut [11:18:16]Write to MH i2c: D1 01 00 78 0C 01 56 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: D1 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: D1 01 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: D1 01 00 78 0C 00 55 [11:18:16]Write to MH i2c: 01 00 00 79 0C 85 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18: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 36 37 4F 00 00 00 F7 06 47 00 46 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 36 37 10 04 04 00 86 CA 01 00 F4 03 04 00 35 CD 1D 67 B6 04 01 00 00 DC 8B 81 45 8B A3 27 2D [11:18:16]CommunicateWithHost err = 0 [11:18:16]CheckOFDResponse [11:18:16]1017 (14) - 77093643461234 [11:18:16]1041 (16) - 0000000000871767 [11:18:16]1040 (4) - 117382 [11:18:16]1012 (4) - 27.10.2024 05:18 [11:18:16]1206 (1) - 0 [11:18:16]OFD Sender: Remove packet 117382 [11:18:16]ProducePacketName [11:18:16]name=ofd_packets/00117382 [11:18:16]NVStorageDeleteData [11:18:17]OFD Sender: No OFD packet to send [11:18:17]*** Cut start [11:18:17]*** Purtial cut [11:18:17]*** Stage 1: CUTSNS_PIN = 1 [11:18:17]Read from MH i2c: 01 [11:18:17]MH_I2C_Read... [11:18:17]*** Stop cut motor [11:18:17]*** Cut end [11:18:17]Read from MH i2c: 01 07 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 07 00 79 0C 00 00 00 00 00 FF 0F 9A [11:18:17]process_action close_receipt done [11:18:17]requested_data is exist [11:18:17]produce_requested_data [11:18:17]requested_item fm.sn is exist - process it [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 11 00 00 [11:18:17]Write to MH i2c: E2 08 00 7A 0C 80 11 00 00 00 00 00 00 00 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 17 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 17 00 7A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 57 [11:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:18:17]wFMCommunicate OK [11:18:17]requested_item fd.num is exist - process it [11:18:17]SAM_PROTO_GetFieldsCounters [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 13 00 00 [11:18:17]Write to MH i2c: E2 08 00 7B 0C 80 13 00 00 00 00 00 00 03 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 62 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 62 00 7B 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 86 CA 01 00 0E 04 04 00 1E 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 91 [11:18: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 86 CA 01 00 0E 04 04 00 1E 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 [11:18:17]wFMCommunicate OK [11:18:17]SAM_PROTO_GetFieldsCounters done [11:18:17]requested_item shift.num is exist - process it [11:18:17]requested_item shift.opened is exist - process it [11:18:17]req_shift_opened [11:18:17]FM_GetShiftState [11:18:17]SAM_PROTO_GetShiftState [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 13 01 00 [11:18:17]Write to MH i2c: E2 08 00 7C 0C 80 13 01 00 00 00 00 00 05 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:17]Read from MH i2c: E2 0E 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 0E 00 7C 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 44 [11:18:17]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:18:17]wFMCommunicate OK [11:18:17]SAM_PROTO_GetShiftState done [11:18:17]FM_GetShiftState done [11:18:17]req_shift_opened done [11:18:17]requested_item shift.open_date is exist - process it [11:18:17]req_shift_open_date [11:18:17]req_shift_open_date done [11:18:17]produce_requested_data done [11:18:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117382,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:18:17]process_action_free close_receipt [11:18:17]json_value_free [11:18:17]json_value_free done [11:18:17]process_json_proto returns [11:18:17]Send response to host [11:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117382,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:18:17]free response buf [11:18:17]execute_script done [11:18:17]execute_script returns [11:18:17]free content buf [11:18:17]Sock 9.Close socket [11:18:17]Sock 9.Thread stoped [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [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:42]accept exits with 7 [11:19:42]New connection [11:19:42]New thread 3067600228 created [11:19:42]Thread 3067456868 joined [11:19:42]Waiting for new connection... [11:19:42] Sock 7.Parse request [11:19:42]Sock 7.Check first char [11:19:42]Sock 7.First char is OK [11:19:42]request: POST /json_proto HTTP/1.0 [11:19:42]Method: POST [11:19:42]URL: /json_proto [11:19:42]Method is POST - this is cgi request [11:19:42]url: /json_proto [11:19:42]query_string will be loaded in cgi processing [11:19:42]execute_cgi json_proto POST (null) [11:19:42]execute_cgi path=json_proto method=POST [11:19:42]POST find Content-Length [11:19:42]Host: 172.17.96.67:8080 [11:19:42]Content-Length: 677 [11:19:42]Content-Type: application/json [11:19:42] [11:19:42]POST finish read [11:19:42]Found Content-Length = 677 [11:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:19:42]execute_script... [11:19: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)245159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:19:42]POST & json_proto [11:19:42]process_json_proto [11:19:42]json parsed OK: [11:19:42]protocol is kg_v1.0 [11:19:42]action value=close_receipt [11:19:42]process_action close_receipt [11:19:42]cmd_close_receipt [11:19:42]MH_GetDate [11:19:42]Write to MH i2c: F0 00 00 7D 0C 78 [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: F0 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: F0 09 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: F0 09 00 7D 0C 00 CF 21 1E 67 2B 09 1E 67 AF [11:19:42]GetLastDocTimeStamp 1730027895 [11:19:42]current date 1730027983 [11:19:42]FM_GetShiftState [11:19:42]SAM_PROTO_GetShiftState [11:19:42]wFMCommunicate request_size=4 [11:19:42]MH_SAM_APDU [11:19:42]CAPDU: 80 13 01 00 [11:19:42]Write to MH i2c: E2 08 00 7E 0C 80 13 01 00 00 00 00 00 07 [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:42]Read from MH i2c: E2 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: E2 0E 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: E2 0E 00 7E 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 46 [11:19:42]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:19:42]wFMCommunicate OK [11:19:42]SAM_PROTO_GetShiftState done [11:19:42]FM_GetShiftState done [11:19:42]opened in 1729987372 [11:19:42]opened+sec_in_day 1730073772 [11:19:42]quantity*price = 50041 [11:19:42]sum+1 = 50042 [11:19: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 83 27.10.2024 11:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117383 ФПД: 34986981466151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111943&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117383&fm=34986981466151&tin=02508201610067®Number=0000000000091782&sum=50000 [11:19:43]StoreToDocumentArchive [11:19:43]shift 542 fd 117383 [11:19:43]save to /storage/0542/doc_00117383 [11:19:43]save last doc name /storage/0542/doc_00117383 to /storage/kkm_last_doc_name [11:19:43]save OK [11:19:43]Clear old archive folders... [11:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:43]tlvbuf is 016E11F0 [11:19:43]SAM_PROTO_ClearQueue [11:19:43]wFMCommunicate request_size=4 [11:19:43]MH_SAM_APDU [11:19:43]CAPDU: 80 09 00 00 [11:19:43]Write to MH i2c: E2 08 00 8B 0C 80 09 00 00 00 00 00 00 09 [11:19:43]Write i2c OK [11:19:43]MH_I2C_Read... [11:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:43]Read from MH i2c: E2 [11:19:43]MH_I2C_Read... [11:19:43]Read from MH i2c: E2 03 00 [11:19:43]MH_I2C_Read... [11:19:43]Read from MH i2c: E2 03 00 8B 0C 00 90 00 0B [11:19:43]RAPDU: 90 00 [11:19:43]wFMCommunicate OK [11:19:43]SAM_PROTO_ClearQueue done [11:19:43]KKMCreateOFDPacket [11:19:43]OFDProtocolAddRootSTLVToBuf [11:19:43]FM_MakeSignedData [11:19:43]FM_MakeSignedData [11:19:43]SAM_PROTO_SignData [11:19:43]wFMCommunicate request_size=4 [11:19:43]MH_SAM_APDU [11:19:43]CAPDU: 80 0D 01 02 [11:19:43]Write to MH i2c: E2 08 00 8C 0C 80 0D 01 02 00 00 00 00 11 [11:19:43]Write i2c OK [11:19:43]MH_I2C_Read... [11:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:44]Read from MH i2c: E2 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 03 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 03 00 8C 0C 00 90 00 0C [11:19:44]RAPDU: 90 00 [11:19:44]wFMCommunicate OK [11:19:44]wFMCommunicate request_size=255 [11:19:44]MH_SAM_APDU [11:19: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 53 00 00 00 F4 03 04 00 CF 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 87 CA 01 00 35 04 06 00 1F [11:19:44]Write to MH i2c: E2 02 01 8D 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 53 00 00 00 F4 03 04 00 CF 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 87 CA 01 00 35 04 06 00 1F 00 00 FC [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:44]Read from MH i2c: E2 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 03 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 03 00 8D 0C 00 90 00 0D [11:19:44]RAPDU: 90 00 [11:19:44]wFMCommunicate OK [11:19:44]wFMCommunicate request_size=10 [11:19:44]MH_SAM_APDU [11:19:44]CAPDU: 80 0D 02 02 05 D2 0A 9A 20 27 [11:19:44]Write to MH i2c: E2 0D 00 8E 0C 80 0D 02 02 05 00 D2 0A 9A 20 27 00 00 DB [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:44]Read from MH i2c: E2 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 03 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 03 00 8E 0C 00 90 00 0E [11:19:44]RAPDU: 90 00 [11:19:44]wFMCommunicate OK [11:19:44]wFMCommunicate request_size=4 [11:19:44]MH_SAM_APDU [11:19:44]CAPDU: 80 0D 03 02 [11:19:44]Write to MH i2c: E2 08 00 8F 0C 80 0D 03 02 00 00 00 00 16 [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:44]Read from MH i2c: E2 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 0B 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 0B 00 8F 0C 00 D9 B1 5C D5 7C 8C F5 93 90 00 62 [11:19:44]RAPDU: D9 B1 5C D5 7C 8C F5 93 90 00 [11:19:44]wFMCommunicate OK [11:19:44]SAM_PROTO_SignData done [11:19:44]FM_MakeSignedData done [11:19:44]CreateOFDProtocolMessage [11:19:44]wFMCommunicate request_size=4 [11:19:44]MH_SAM_APDU [11:19:44]CAPDU: 80 11 00 00 [11:19:44]Write to MH i2c: E2 08 00 90 0C 80 11 00 00 00 00 00 00 16 [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:44]Read from MH i2c: E2 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 17 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 17 00 90 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6D [11:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:19:44]wFMCommunicate OK [11:19:44]CreateOFDProtocolMessage done [11:19:44]OFDSenderStorePacket 117383 [11:19:44]StoreOFDPacket docnum=117383 [11:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 73 21 07 01 2F 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 CF 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 87 CA 01 00 35 04 06 00 1F D2 0A 9A 20 27 D9 B1 5C D5 7C 8C F5 93 [11:19:44]CheckFolder [11:19:44]dirname=/storage/ofd_packets [11:19:44]CheckFolder done [11:19:44]ProducePacketName [11:19:44]name=ofd_packets/00117383 [11:19:44]NVStorageSaveData ofd_packets/00117383 [11:19:44]File name is /storage/ofd_packets/00117383 [11:19:44]Write 301 bytes [11:19:44]NVStorageSaveData done [11:19:44]OFDSenderStorePacket done [11:19:44]KKMCreateOFDPacket done [11:19:44]NVStorageSaveData kkm_last_timestamp [11:19:44]File name is /storage/kkm_last_timestamp [11:19:44]Write 4 bytes [11:19:44]NVStorageSaveData done [11:19:44]ExternCall_PrintAddStr [11:19:44]wPrintStart [11:19:44]Write to MH i2c: 01 00 00 91 0C 9D [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: 01 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: 01 07 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: 01 07 00 91 0C 00 00 00 00 00 FF 0F B2 [11:19:44]RasterBufferAndPrint [11:19:44]line Счет N : (1)245159 [11:19:44]line ИНН: 02508201610067 [11:19:44]line Контрольно-Кассовый Чек [11:19:44]line ПРОДАЖА [11:19:44]line ТРК (МРК, ГНК) : 21 [11:19:44]line Товар: 2710124130 [11:19:44]line Аи-92-К-2 [11:19:44]line 7.480 * 66.90 [11:19:44]line = 500.41 [11:19:44]line НДС 12% НСП 1% [11:19:44]line > о реализуемом товаре [11:19:44]line ОКРУГЛЕНИЕ: -0.41 [11:19:44]line ИТОГО: 500.00 [11:19:44]line Внесено: 500.00 [11:19:44]line СДАЧА: 0.00 [11:19:44]line НСП 1% : 4.43 [11:19:44]line НДС 12% : 53.14 [11:19:44]line Наличными: 500.00 [11:19:44]line Безнал.: 0.00 [11:19:44]line Место: АЗС № 173 "Партнер Нефть" [11:19:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:19:44]line СНО: Общий режим [11:19:44]line Чек 83 27.10.2024 11:19 [11:19:44]line Смена: 542 ФФД: 1.0 [11:19:44]line ЗНМ: 0300000115 [11:19:44]line РНМ: 0000000000091782 [11:19:44]line Версия ККМ: 001 [11:19:44]line ФМ: 0000000000871767 [11:19:44]line ФД: 117383 [11:19:44]line ФПД: 34986981466151 [11:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111943&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117383&fm=34986981466151&tin=02508201610067®Number=0000000000091782&sum=50000 [11:19:44]written 0, free lines is 4095 [11:19:44]OFD Sender: Processing packet 117383 [packets to send 76, broken 75] [11:19:44]ProducePacketName [11:19:44]name=ofd_packets/00117383 [11:19:44]OFD Sender: To server: pG, [11:19:44]CommunicateWithHost lk.salyk.kg:30040 [11:19:44]ConnectInit lk.salyk.kg [11:19:44]Write to MH i2c: 01 00 00 BB 0C C7 [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: 01 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: 01 07 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: 01 07 00 BB 0C 00 00 00 00 00 A8 0C 82 [11:19:44]RasterBufferAndPrint [11:19:44]line [11:19:44]line [11:19:44]line [11:19:44]line [11:19:44]line [11:19:44]written 0, free lines is 3243 [11:19:44]Connected sock=10 [11:19: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 36 37 0F 01 00 00 73 21 07 01 2F 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 CF 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 87 CA 01 00 35 04 06 00 1F D2 0A 9A 20 27 D9 B1 5C D5 7C 8C F5 93 [11:19:44]MH_Cut [11:19:44]Write to MH i2c: D1 01 00 C2 0C 01 A0 [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: D1 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: D1 01 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: D1 01 00 C2 0C 00 9F [11:19:44]Write to MH i2c: 01 00 00 C3 0C CF [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19: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 36 37 4F 00 00 00 EE C2 47 00 10 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 36 37 10 04 04 00 87 CA 01 00 F4 03 04 00 8D CD 1D 67 B6 04 01 00 00 D7 9A 52 6C 33 A4 9C 28 [11:19:45]CommunicateWithHost err = 0 [11:19:45]CheckOFDResponse [11:19:45]1017 (14) - 77093643461234 [11:19:45]1041 (16) - 0000000000871767 [11:19:45]1040 (4) - 117383 [11:19:45]1012 (4) - 27.10.2024 05:20 [11:19:45]1206 (1) - 0 [11:19:45]OFD Sender: Remove packet 117383 [11:19:45]ProducePacketName [11:19:45]name=ofd_packets/00117383 [11:19:45]NVStorageDeleteData [11:19:45]OFD Sender: No OFD packet to send [11:19:45]*** Cut start [11:19:45]*** Purtial cut [11:19:45]*** Stage 1: CUTSNS_PIN = 1 [11:19:46]Read from MH i2c: 01 [11:19:46]MH_I2C_Read... [11:19:46]*** Stop cut motor [11:19:46]*** Cut end [11:19:46]Read from MH i2c: 01 07 00 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: 01 07 00 C3 0C 00 00 00 00 00 FF 0F E4 [11:19:46]process_action close_receipt done [11:19:46]requested_data is exist [11:19:46]produce_requested_data [11:19:46]requested_item fm.sn is exist - process it [11:19:46]wFMCommunicate request_size=4 [11:19:46]MH_SAM_APDU [11:19:46]CAPDU: 80 11 00 00 [11:19:46]Write to MH i2c: E2 08 00 C4 0C 80 11 00 00 00 00 00 00 4A [11:19:46]Write i2c OK [11:19:46]MH_I2C_Read... [11:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:46]Read from MH i2c: E2 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 17 00 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 17 00 C4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A1 [11:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:19:46]wFMCommunicate OK [11:19:46]requested_item fd.num is exist - process it [11:19:46]SAM_PROTO_GetFieldsCounters [11:19:46]wFMCommunicate request_size=4 [11:19:46]MH_SAM_APDU [11:19:46]CAPDU: 80 13 00 00 [11:19:46]Write to MH i2c: E2 08 00 C5 0C 80 13 00 00 00 00 00 00 4D [11:19:46]Write i2c OK [11:19:46]MH_I2C_Read... [11:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:46]Read from MH i2c: E2 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 62 00 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 62 00 C5 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 87 CA 01 00 0E 04 04 00 1E 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 DF [11:19: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 87 CA 01 00 0E 04 04 00 1E 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 [11:19:46]wFMCommunicate OK [11:19:46]SAM_PROTO_GetFieldsCounters done [11:19:46]requested_item shift.num is exist - process it [11:19:46]requested_item shift.opened is exist - process it [11:19:46]req_shift_opened [11:19:46]FM_GetShiftState [11:19:46]SAM_PROTO_GetShiftState [11:19:46]wFMCommunicate request_size=4 [11:19:46]MH_SAM_APDU [11:19:46]CAPDU: 80 13 01 00 [11:19:46]Write to MH i2c: E2 08 00 C6 0C 80 13 01 00 00 00 00 00 4F [11:19:46]Write i2c OK [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 [11:19:46]MH_I2C_Read... [11:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:46]Read from MH i2c: E2 0E 00 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 0E 00 C6 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8E [11:19:46]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:19:46]wFMCommunicate OK [11:19:46]SAM_PROTO_GetShiftState done [11:19:46]FM_GetShiftState done [11:19:46]req_shift_opened done [11:19:46]requested_item shift.open_date is exist - process it [11:19:46]req_shift_open_date [11:19:46]req_shift_open_date done [11:19:46]produce_requested_data done [11:19:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117383,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:19:46]process_action_free close_receipt [11:19:46]json_value_free [11:19:46]json_value_free done [11:19:46]process_json_proto returns [11:19:46]Send response to host [11:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117383,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:19:46]free response buf [11:19:46]execute_script done [11:19:46]execute_script returns [11:19:46]free content buf [11:19:46]Sock 7.Close socket [11:19:46]Sock 7.Thread stoped [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:28:59]accept exits with 9 [11:28:59]New connection [11:28:59]New thread 3067456868 created [11:28:59]Thread 3067600228 joined [11:28:59]Waiting for new connection... [11:28:59] Sock 9.Parse request [11:28:59]Sock 9.Check first char [11:28:59]Sock 9.First char is OK [11:28:59]request: POST /json_proto HTTP/1.0 [11:28:59]Method: POST [11:28:59]URL: /json_proto [11:28:59]Method is POST - this is cgi request [11:28:59]url: /json_proto [11:28:59]query_string will be loaded in cgi processing [11:28:59]execute_cgi json_proto POST (null) [11:28:59]execute_cgi path=json_proto method=POST [11:28:59]POST find Content-Length [11:28:59]Host: 172.17.96.67:8080 [11:28:59]Content-Length: 677 [11:28:59]Content-Type: application/json [11:28:59] [11:28:59]POST finish read [11:28:59]Found Content-Length = 677 [11:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:28:59]execute_script... [11:28:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:28:59]POST & json_proto [11:28:59]process_json_proto [11:28:59]json parsed OK: [11:28:59]protocol is kg_v1.0 [11:28:59]action value=close_receipt [11:28:59]process_action close_receipt [11:28:59]cmd_close_receipt [11:28:59]MH_GetDate [11:28:59]Write to MH i2c: F0 00 00 C7 0C C2 [11:28:59]Write i2c OK [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: F0 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: F0 09 00 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: F0 09 00 C7 0C 00 FC 23 1E 67 2B 09 1E 67 28 [11:28:59]GetLastDocTimeStamp 1730027983 [11:28:59]current date 1730028540 [11:28:59]FM_GetShiftState [11:28:59]SAM_PROTO_GetShiftState [11:28:59]wFMCommunicate request_size=4 [11:28:59]MH_SAM_APDU [11:28:59]CAPDU: 80 13 01 00 [11:28:59]Write to MH i2c: E2 08 00 C8 0C 80 13 01 00 00 00 00 00 51 [11:28:59]Write i2c OK [11:28:59]MH_I2C_Read... [11:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:59]Read from MH i2c: E2 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: E2 0E 00 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: E2 0E 00 C8 0C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 90 [11:28:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:28:59]wFMCommunicate OK [11:28:59]SAM_PROTO_GetShiftState done [11:28:59]FM_GetShiftState done [11:28:59]opened in 1729987372 [11:28:59]opened+sec_in_day 1730073772 [11:28:59]quantity*price = 20003 [11:28:59]sum+1 = 20004 [11:28: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 84 27.10.2024 11:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117384 ФПД: 136616481298623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112900&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117384&fm=136616481298623&tin=02508201610067®Number=0000000000091782&sum=20000 [11:29:00]StoreToDocumentArchive [11:29:00]shift 542 fd 117384 [11:29:00]save to /storage/0542/doc_00117384 [11:29:00]save last doc name /storage/0542/doc_00117384 to /storage/kkm_last_doc_name [11:29:00]save OK [11:29:00]Clear old archive folders... [11:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:00]tlvbuf is 016FD660 [11:29:00]SAM_PROTO_ClearQueue [11:29:00]wFMCommunicate request_size=4 [11:29:00]MH_SAM_APDU [11:29:00]CAPDU: 80 09 00 00 [11:29:00]Write to MH i2c: E2 08 00 D5 0C 80 09 00 00 00 00 00 00 53 [11:29:00]Write i2c OK [11:29:00]MH_I2C_Read... [11:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:00]Read from MH i2c: E2 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 03 00 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 03 00 D5 0C 00 90 00 55 [11:29:00]RAPDU: 90 00 [11:29:00]wFMCommunicate OK [11:29:00]SAM_PROTO_ClearQueue done [11:29:00]KKMCreateOFDPacket [11:29:00]OFDProtocolAddRootSTLVToBuf [11:29:00]FM_MakeSignedData [11:29:00]FM_MakeSignedData [11:29:00]SAM_PROTO_SignData [11:29:00]wFMCommunicate request_size=4 [11:29:00]MH_SAM_APDU [11:29:00]CAPDU: 80 0D 01 02 [11:29:00]Write to MH i2c: E2 08 00 D6 0C 80 0D 01 02 00 00 00 00 5B [11:29:00]Write i2c OK [11:29:00]MH_I2C_Read... [11:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:00]Read from MH i2c: E2 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 03 00 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 03 00 D6 0C 00 90 00 56 [11:29:00]RAPDU: 90 00 [11:29:00]wFMCommunicate OK [11:29:00]wFMCommunicate request_size=255 [11:29:00]MH_SAM_APDU [11:29:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 00 00 00 F4 03 04 00 FC 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 88 CA 01 00 35 04 06 00 7C [11:29:00]Write to MH i2c: E2 02 01 D7 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 54 00 00 00 F4 03 04 00 FC 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 88 CA 01 00 35 04 06 00 7C 00 00 96 [11:29:00]Write i2c OK [11:29:00]MH_I2C_Read... [11:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:00]Read from MH i2c: E2 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 03 00 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 03 00 D7 0C 00 90 00 57 [11:29:00]RAPDU: 90 00 [11:29:00]wFMCommunicate OK [11:29:00]wFMCommunicate request_size=10 [11:29:00]MH_SAM_APDU [11:29:00]CAPDU: 80 0D 02 02 05 40 80 D6 98 BF [11:29:00]Write to MH i2c: E2 0D 00 D8 0C 80 0D 02 02 05 00 40 80 D6 98 BF 00 00 55 [11:29:00]Write i2c OK [11:29:00]MH_I2C_Read... [11:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:00]Read from MH i2c: E2 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 03 00 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 03 00 D8 0C 00 90 00 58 [11:29:00]RAPDU: 90 00 [11:29:00]wFMCommunicate OK [11:29:00]wFMCommunicate request_size=4 [11:29:00]MH_SAM_APDU [11:29:00]CAPDU: 80 0D 03 02 [11:29:00]Write to MH i2c: E2 08 00 D9 0C 80 0D 03 02 00 00 00 00 60 [11:29:00]Write i2c OK [11:29:00]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 0B 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 0B 00 D9 0C 00 45 86 36 39 5D D7 4C 95 90 00 B0 [11:29:01]RAPDU: 45 86 36 39 5D D7 4C 95 90 00 [11:29:01]wFMCommunicate OK [11:29:01]SAM_PROTO_SignData done [11:29:01]FM_MakeSignedData done [11:29:01]CreateOFDProtocolMessage [11:29:01]wFMCommunicate request_size=4 [11:29:01]MH_SAM_APDU [11:29:01]CAPDU: 80 11 00 00 [11:29:01]Write to MH i2c: E2 08 00 DA 0C 80 11 00 00 00 00 00 00 60 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 17 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 17 00 DA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B7 [11:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:29:01]wFMCommunicate OK [11:29:01]CreateOFDProtocolMessage done [11:29:01]OFDSenderStorePacket 117384 [11:29:01]StoreOFDPacket docnum=117384 [11:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FA 9D 07 01 AA 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 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 54 00 00 00 F4 03 04 00 FC 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 88 CA 01 00 35 04 06 00 7C 40 80 D6 98 BF 45 86 36 39 5D D7 4C 95 [11:29:01]CheckFolder [11:29:01]dirname=/storage/ofd_packets [11:29:01]CheckFolder done [11:29:01]ProducePacketName [11:29:01]name=ofd_packets/00117384 [11:29:01]NVStorageSaveData ofd_packets/00117384 [11:29:01]File name is /storage/ofd_packets/00117384 [11:29:01]Write 301 bytes [11:29:01]NVStorageSaveData done [11:29:01]OFDSenderStorePacket done [11:29:01]KKMCreateOFDPacket done [11:29:01]NVStorageSaveData kkm_last_timestamp [11:29:01]File name is /storage/kkm_last_timestamp [11:29:01]Write 4 bytes [11:29:01]NVStorageSaveData done [11:29:01]ExternCall_PrintAddStr [11:29:01]wPrintStart [11:29:01]Write to MH i2c: 01 00 00 DB 0C E7 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: 01 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: 01 07 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: 01 07 00 DB 0C 00 00 00 00 00 FF 0F FC [11:29:01]RasterBufferAndPrint [11:29:01]line Счет N : (1)245160 [11:29:01]line ИНН: 02508201610067 [11:29:01]line Контрольно-Кассовый Чек [11:29:01]line ПРОДАЖА [11:29:01]line ТРК (МРК, ГНК) : 11 [11:29:01]line Товар: 2710124130 [11:29:01]line Аи-92-К-2 [11:29:01]line 2.990 * 66.90 [11:29:01]line = 200.03 [11:29:01]line НДС 12% НСП 1% [11:29:01]line > о реализуемом товаре [11:29:01]line ОКРУГЛЕНИЕ: -0.03 [11:29:01]line ИТОГО: 200.00 [11:29:01]line Внесено: 200.00 [11:29:01]line СДАЧА: 0.00 [11:29:01]line НСП 1% : 1.77 [11:29:01]line НДС 12% : 21.24 [11:29:01]line Наличными: 200.00 [11:29:01]line Безнал.: 0.00 [11:29:01]line Место: АЗС № 173 "Партнер Нефть" [11:29:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:29:01]line СНО: Общий режим [11:29:01]line Чек 84 27.10.2024 11:29 [11:29:01]line Смена: 542 ФФД: 1.0 [11:29:01]line ЗНМ: 0300000115 [11:29:01]line РНМ: 0000000000091782 [11:29:01]line Версия ККМ: 001 [11:29:01]line ФМ: 0000000000871767 [11:29:01]line ФД: 117384 [11:29:01]line ФПД: 136616481298623 [11:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112900&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117384&fm=136616481298623&tin=02508201610067®Number=0000000000091782&sum=20000 [11:29:01]written 0, free lines is 4095 [11:29:01]OFD Sender: Processing packet 117384 [packets to send 76, broken 75] [11:29:01]ProducePacketName [11:29:01]name=ofd_packets/00117384 [11:29:01]OFD Sender: To server: pG, [11:29:01]CommunicateWithHost lk.salyk.kg:30040 [11:29:01]ConnectInit lk.salyk.kg [11:29:01]Connected sock=10 [11:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FA 9D 07 01 AA 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 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 54 00 00 00 F4 03 04 00 FC 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 88 CA 01 00 35 04 06 00 7C 40 80 D6 98 BF 45 86 36 39 5D D7 4C 95 [11:29: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 36 37 4F 00 00 00 BB 26 47 00 A8 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 36 37 10 04 04 00 88 CA 01 00 F4 03 04 00 BA CF 1D 67 B6 04 01 00 00 4C D3 2A 20 DE 87 B3 59 [11:29:01]CommunicateWithHost err = 0 [11:29:01]CheckOFDResponse [11:29:01]1017 (14) - 77093643461234 [11:29:01]1041 (16) - 0000000000871767 [11:29:01]1040 (4) - 117384 [11:29:01]1012 (4) - 27.10.2024 05:29 [11:29:01]1206 (1) - 0 [11:29:01]OFD Sender: Remove packet 117384 [11:29:01]ProducePacketName [11:29:01]name=ofd_packets/00117384 [11:29:01]NVStorageDeleteData [11:29:01]Write to MH i2c: 01 00 00 05 0D 12 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: 01 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: 01 07 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: 01 07 00 05 0D 00 00 00 00 00 B3 0C D8 [11:29:01]RasterBufferAndPrint [11:29:01]line [11:29:01]line [11:29:01]line [11:29:01]line [11:29:01]line [11:29:01]written 0, free lines is 3257 [11:29:01]MH_Cut [11:29:01]Write to MH i2c: D1 01 00 0C 0D 01 EB [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: D1 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: D1 01 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: D1 01 00 0C 0D 00 EA [11:29:01]Write to MH i2c: 01 00 00 0D 0D 1A [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:02]OFD Sender: No OFD packet to send [11:29:02]*** Cut start [11:29:02]*** Purtial cut [11:29:02]*** Stage 1: CUTSNS_PIN = 1 [11:29:03]Read from MH i2c: 01 [11:29:03]MH_I2C_Read... [11:29:03]*** Stop cut motor [11:29:03]*** Cut end [11:29:03]Read from MH i2c: 01 07 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: 01 07 00 0D 0D 00 00 00 00 00 FF 0F 2F [11:29:03]process_action close_receipt done [11:29:03]requested_data is exist [11:29:03]produce_requested_data [11:29:03]requested_item fm.sn is exist - process it [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 11 00 00 [11:29:03]Write to MH i2c: E2 08 00 0E 0D 80 11 00 00 00 00 00 00 95 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 17 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 17 00 0E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EC [11:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:29:03]wFMCommunicate OK [11:29:03]requested_item fd.num is exist - process it [11:29:03]SAM_PROTO_GetFieldsCounters [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 13 00 00 [11:29:03]Write to MH i2c: E2 08 00 0F 0D 80 13 00 00 00 00 00 00 98 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 62 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 62 00 0F 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 88 CA 01 00 0E 04 04 00 1E 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 2E [11:29:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 88 CA 01 00 0E 04 04 00 1E 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 [11:29:03]wFMCommunicate OK [11:29:03]SAM_PROTO_GetFieldsCounters done [11:29:03]requested_item shift.num is exist - process it [11:29:03]requested_item shift.opened is exist - process it [11:29:03]req_shift_opened [11:29:03]FM_GetShiftState [11:29:03]SAM_PROTO_GetShiftState [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 13 01 00 [11:29:03]Write to MH i2c: E2 08 00 10 0D 80 13 01 00 00 00 00 00 9A [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0E 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0E 00 10 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D9 [11:29:03]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:29:03]wFMCommunicate OK [11:29:03]SAM_PROTO_GetShiftState done [11:29:03]FM_GetShiftState done [11:29:03]req_shift_opened done [11:29:03]requested_item shift.open_date is exist - process it [11:29:03]req_shift_open_date [11:29:03]req_shift_open_date done [11:29:03]produce_requested_data done [11:29:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117384,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:29:03]process_action_free close_receipt [11:29:03]json_value_free [11:29:03]json_value_free done [11:29:03]process_json_proto returns [11:29:03]Send response to host [11:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117384,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:29:03]free response buf [11:29:03]execute_script done [11:29:03]execute_script returns [11:29:03]free content buf [11:29:03]Sock 9.Close socket [11:29:03]Sock 9.Thread stoped [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:04]accept exits with 7 [11:35:04]New connection [11:35:04]New thread 3067600228 created [11:35:04]Thread 3067456868 joined [11:35:04]Waiting for new connection... [11:35:04] Sock 7.Parse request [11:35:04]Sock 7.Check first char [11:35:04]Sock 7.First char is OK [11:35:04]request: POST /json_proto HTTP/1.0 [11:35:04]Method: POST [11:35:04]URL: /json_proto [11:35:04]Method is POST - this is cgi request [11:35:04]url: /json_proto [11:35:04]query_string will be loaded in cgi processing [11:35:04]execute_cgi json_proto POST (null) [11:35:04]execute_cgi path=json_proto method=POST [11:35:04]POST find Content-Length [11:35:04]Host: 172.17.96.67:8080 [11:35:04]Content-Length: 679 [11:35:04]Content-Type: application/json [11:35:04] [11:35:04]POST finish read [11:35:04]Found Content-Length = 679 [11:35:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:04]execute_script... [11:35: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)245161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:04]POST & json_proto [11:35:04]process_json_proto [11:35:04]json parsed OK: [11:35:04]protocol is kg_v1.0 [11:35:04]action value=close_receipt [11:35:04]process_action close_receipt [11:35:04]cmd_close_receipt [11:35:04]MH_GetDate [11:35:04]Write to MH i2c: F0 00 00 11 0D 0D [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: F0 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: F0 09 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: F0 09 00 11 0D 00 69 25 1E 67 2B 09 1E 67 E2 [11:35:04]GetLastDocTimeStamp 1730028540 [11:35:04]current date 1730028905 [11:35:04]FM_GetShiftState [11:35:04]SAM_PROTO_GetShiftState [11:35:04]wFMCommunicate request_size=4 [11:35:04]MH_SAM_APDU [11:35:04]CAPDU: 80 13 01 00 [11:35:04]Write to MH i2c: E2 08 00 12 0D 80 13 01 00 00 00 00 00 9C [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:04]Read from MH i2c: E2 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: E2 0E 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: E2 0E 00 12 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 DB [11:35:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:35:04]wFMCommunicate OK [11:35:04]SAM_PROTO_GetShiftState done [11:35:04]FM_GetShiftState done [11:35:04]opened in 1729987372 [11:35:04]opened+sec_in_day 1730073772 [11:35:04]quantity*price = 100050 [11:35:04]sum+1 = 100052 [11:35:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 85 27.10.2024 11:35 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117385 ФПД: 101457009492024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113505&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117385&fm=101457009492024&tin=02508201610067®Number=0000000000091782&sum=100000 [11:35:05]StoreToDocumentArchive [11:35:05]shift 542 fd 117385 [11:35:05]save to /storage/0542/doc_00117385 [11:35:05]save last doc name /storage/0542/doc_00117385 to /storage/kkm_last_doc_name [11:35:05]save OK [11:35:05]Clear old archive folders... [11:35:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:05]tlvbuf is 01724B70 [11:35:05]SAM_PROTO_ClearQueue [11:35:05]wFMCommunicate request_size=4 [11:35:05]MH_SAM_APDU [11:35:05]CAPDU: 80 09 00 00 [11:35:05]Write to MH i2c: E2 08 00 1F 0D 80 09 00 00 00 00 00 00 9E [11:35:05]Write i2c OK [11:35:05]MH_I2C_Read... [11:35:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:05]Read from MH i2c: E2 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 03 00 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 03 00 1F 0D 00 90 00 A0 [11:35:05]RAPDU: 90 00 [11:35:05]wFMCommunicate OK [11:35:05]SAM_PROTO_ClearQueue done [11:35:05]KKMCreateOFDPacket [11:35:05]OFDProtocolAddRootSTLVToBuf [11:35:05]FM_MakeSignedData [11:35:05]FM_MakeSignedData [11:35:05]SAM_PROTO_SignData [11:35:05]wFMCommunicate request_size=4 [11:35:05]MH_SAM_APDU [11:35:05]CAPDU: 80 0D 01 02 [11:35:05]Write to MH i2c: E2 08 00 20 0D 80 0D 01 02 00 00 00 00 A6 [11:35:05]Write i2c OK [11:35:05]MH_I2C_Read... [11:35:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:05]Read from MH i2c: E2 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 03 00 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 03 00 20 0D 00 90 00 A1 [11:35:05]RAPDU: 90 00 [11:35:05]wFMCommunicate OK [11:35:05]wFMCommunicate request_size=255 [11:35:05]MH_SAM_APDU [11:35:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 55 00 00 00 F4 03 04 00 69 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 89 CA 01 00 35 04 06 00 5C 46 4D 02 [11:35:05]Write to MH i2c: E2 02 01 21 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 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 55 00 00 00 F4 03 04 00 69 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 89 CA 01 00 35 04 06 00 5C 46 4D 02 00 00 FB [11:35:05]Write i2c OK [11:35:05]MH_I2C_Read... [11:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:06]Read from MH i2c: E2 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 03 00 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 03 00 21 0D 00 90 00 A2 [11:35:06]RAPDU: 90 00 [11:35:06]wFMCommunicate OK [11:35:06]wFMCommunicate request_size=7 [11:35:06]MH_SAM_APDU [11:35:06]CAPDU: 80 0D 02 02 02 C0 38 [11:35:06]Write to MH i2c: E2 0A 00 22 0D 80 0D 02 02 02 00 C0 38 00 00 A5 [11:35:06]Write i2c OK [11:35:06]MH_I2C_Read... [11:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:06]Read from MH i2c: E2 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 03 00 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 03 00 22 0D 00 90 00 A3 [11:35:06]RAPDU: 90 00 [11:35:06]wFMCommunicate OK [11:35:06]wFMCommunicate request_size=4 [11:35:06]MH_SAM_APDU [11:35:06]CAPDU: 80 0D 03 02 [11:35:06]Write to MH i2c: E2 08 00 23 0D 80 0D 03 02 00 00 00 00 AB [11:35:06]Write i2c OK [11:35:06]MH_I2C_Read... [11:35:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:06]Read from MH i2c: E2 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 0B 00 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 0B 00 23 0D 00 47 16 30 07 4D 10 19 21 90 00 D7 [11:35:06]RAPDU: 47 16 30 07 4D 10 19 21 90 00 [11:35:06]wFMCommunicate OK [11:35:06]SAM_PROTO_SignData done [11:35:06]FM_MakeSignedData done [11:35:06]CreateOFDProtocolMessage [11:35:06]wFMCommunicate request_size=4 [11:35:06]MH_SAM_APDU [11:35:06]CAPDU: 80 11 00 00 [11:35:06]Write to MH i2c: E2 08 00 24 0D 80 11 00 00 00 00 00 00 AB [11:35:06]Write i2c OK [11:35:06]MH_I2C_Read... [11:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:06]Read from MH i2c: E2 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 17 00 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 17 00 24 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 02 [11:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:35:06]wFMCommunicate OK [11:35:06]CreateOFDProtocolMessage done [11:35:06]OFDSenderStorePacket 117385 [11:35:06]StoreOFDPacket docnum=117385 [11:35:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 8F 72 04 01 32 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 55 00 00 00 F4 03 04 00 69 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 89 CA 01 00 35 04 06 00 5C 46 4D 02 C0 38 47 16 30 07 4D 10 19 21 [11:35:06]CheckFolder [11:35:06]dirname=/storage/ofd_packets [11:35:06]CheckFolder done [11:35:06]ProducePacketName [11:35:06]name=ofd_packets/00117385 [11:35:06]NVStorageSaveData ofd_packets/00117385 [11:35:06]File name is /storage/ofd_packets/00117385 [11:35:06]Write 298 bytes [11:35:06]NVStorageSaveData done [11:35:06]OFDSenderStorePacket done [11:35:06]KKMCreateOFDPacket done [11:35:06]NVStorageSaveData kkm_last_timestamp [11:35:06]File name is /storage/kkm_last_timestamp [11:35:06]Write 4 bytes [11:35:06]NVStorageSaveData done [11:35:06]ExternCall_PrintAddStr [11:35:06]wPrintStart [11:35:06]Write to MH i2c: 01 00 00 25 0D 32 [11:35:06]Write i2c OK [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: 01 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: 01 07 00 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: 01 07 00 25 0D 00 00 00 00 00 FF 0F 47 [11:35:06]RasterBufferAndPrint [11:35:06]line Счет N : (1)245161 [11:35:06]line ИНН: 02508201610067 [11:35:06]line Контрольно-Кассовый Чек [11:35:06]line ПРОДАЖА [11:35:06]line ТРК (МРК, ГНК) : 23 [11:35:06]line Товар: 2710194210 [11:35:06]line ДТ-К-2 [11:35:06]line 13.130 * 76.20 [11:35:06]line = 1000.51 [11:35:06]line НДС 12% НСП 1% [11:35:06]line > о реализуемом товаре [11:35:06]line ОКРУГЛЕНИЕ: -0.51 [11:35:06]line ИТОГО: 1000.00 [11:35:06]line Внесено: 1000.00 [11:35:06]line СДАЧА: 0.00 [11:35:06]line НСП 1% : 8.85 [11:35:06]line НДС 12% : 106.25 [11:35:06]line Наличными: 1000.00 [11:35:06]line Безнал.: 0.00 [11:35:06]line Место: АЗС № 173 "Партнер Нефть" [11:35:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:35:06]line СНО: Общий режим [11:35:06]line Чек 85 27.10.2024 11:35 [11:35:06]line Смена: 542 ФФД: 1.0 [11:35:06]line ЗНМ: 0300000115 [11:35:06]line РНМ: 0000000000091782 [11:35:06]line Версия ККМ: 001 [11:35:06]line ФМ: 0000000000871767 [11:35:06]line ФД: 117385 [11:35:06]line ФПД: 101457009492024 [11:35:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113505&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117385&fm=101457009492024&tin=02508201610067®Number=0000000000091782&sum=100000 [11:35:06]OFD Sender: Processing packet 117385 [packets to send 76, broken 75] [11:35:06]ProducePacketName [11:35:06]name=ofd_packets/00117385 [11:35:06]OFD Sender: To server: pG, [11:35:06]CommunicateWithHost lk.salyk.kg:30040 [11:35:06]ConnectInit lk.salyk.kg [11:35:06]written 0, free lines is 4095 [11:35:06]Connected sock=10 [11:35: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 36 37 0C 01 00 00 8F 72 04 01 32 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 55 00 00 00 F4 03 04 00 69 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 89 CA 01 00 35 04 06 00 5C 46 4D 02 C0 38 47 16 30 07 4D 10 19 21 [11:35: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 36 37 4F 00 00 00 85 82 47 00 C1 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 36 37 10 04 04 00 89 CA 01 00 F4 03 04 00 27 D1 1D 67 B6 04 01 00 00 5E 58 4F E4 9E B3 FF D0 [11:35:06]CommunicateWithHost err = 0 [11:35:06]CheckOFDResponse [11:35:06]1017 (14) - 77093643461234 [11:35:06]1041 (16) - 0000000000871767 [11:35:06]1040 (4) - 117385 [11:35:06]1012 (4) - 27.10.2024 05:35 [11:35:06]1206 (1) - 0 [11:35:06]OFD Sender: Remove packet 117385 [11:35:06]ProducePacketName [11:35:06]name=ofd_packets/00117385 [11:35:06]NVStorageDeleteData [11:35:07]Write to MH i2c: 01 00 00 4F 0D 5C [11:35:07]Write i2c OK [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: 01 [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: 01 07 00 [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: 01 07 00 4F 0D 00 00 00 00 00 B9 0C 28 [11:35:07]RasterBufferAndPrint [11:35:07]line [11:35:07]line [11:35:07]line [11:35:07]line [11:35:07]line [11:35:07]written 0, free lines is 3262 [11:35:07]MH_Cut [11:35:07]Write to MH i2c: D1 01 00 56 0D 01 35 [11:35:07]Write i2c OK [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: D1 [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: D1 01 00 [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: D1 01 00 56 0D 00 34 [11:35:07]Write to MH i2c: 01 00 00 57 0D 64 [11:35:07]Write i2c OK [11:35:07]MH_I2C_Read... [11:35:07]OFD Sender: No OFD packet to send [11:35:07]*** Cut start [11:35:07]*** Purtial cut [11:35:07]*** Stage 1: CUTSNS_PIN = 1 [11:35:08]Read from MH i2c: 01 [11:35:08]MH_I2C_Read... [11:35:08]*** Stop cut motor [11:35:08]*** Cut end [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 57 0D 00 00 00 00 00 FF 0F 79 [11:35:08]process_action close_receipt done [11:35:08]requested_data is exist [11:35:08]produce_requested_data [11:35:08]requested_item fm.sn is exist - process it [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 58 0D 80 11 00 00 00 00 00 00 DF [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 58 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 36 [11:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:35:08]wFMCommunicate OK [11:35:08]requested_item fd.num is exist - process it [11:35:08]SAM_PROTO_GetFieldsCounters [11:35:08]wFMCommunicate request_size=4 [11:35:08]MH_SAM_APDU [11:35:08]CAPDU: 80 13 00 00 [11:35:08]Write to MH i2c: E2 08 00 59 0D 80 13 00 00 00 00 00 00 E2 [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 62 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 62 00 59 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 89 CA 01 00 0E 04 04 00 1E 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 7C [11:35: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 89 CA 01 00 0E 04 04 00 1E 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 [11:35:08]wFMCommunicate OK [11:35:08]SAM_PROTO_GetFieldsCounters done [11:35:08]requested_item shift.num is exist - process it [11:35:08]requested_item shift.opened is exist - process it [11:35:08]req_shift_opened [11:35:08]FM_GetShiftState [11:35:08]SAM_PROTO_GetShiftState [11:35:08]wFMCommunicate request_size=4 [11:35:08]MH_SAM_APDU [11:35:08]CAPDU: 80 13 01 00 [11:35:08]Write to MH i2c: E2 08 00 5A 0D 80 13 01 00 00 00 00 00 E4 [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 0E 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 0E 00 5A 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 23 [11:35:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:35:08]wFMCommunicate OK [11:35:08]SAM_PROTO_GetShiftState done [11:35:08]FM_GetShiftState done [11:35:08]req_shift_opened done [11:35:08]requested_item shift.open_date is exist - process it [11:35:08]req_shift_open_date [11:35:08]req_shift_open_date done [11:35:08]produce_requested_data done [11:35:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117385,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:35:08]process_action_free close_receipt [11:35:08]json_value_free [11:35:08]json_value_free done [11:35:08]process_json_proto returns [11:35:08]Send response to host [11:35:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117385,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:35:08]free response buf [11:35:08]execute_script done [11:35:08]execute_script returns [11:35:08]free content buf [11:35:08]Sock 7.Close socket [11:35:08]Sock 7.Thread stoped [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:08]accept exits with 9 [11:37:08]New connection [11:37:08]New thread 3067456868 created [11:37:08]Thread 3067600228 joined [11:37:08]Waiting for new connection... [11:37:08] Sock 9.Parse request [11:37:08]Sock 9.Check first char [11:37:08]Sock 9.First char is OK [11:37:08]request: POST /json_proto HTTP/1.0 [11:37:08]Method: POST [11:37:08]URL: /json_proto [11:37:08]Method is POST - this is cgi request [11:37:08]url: /json_proto [11:37:08]query_string will be loaded in cgi processing [11:37:08]execute_cgi json_proto POST (null) [11:37:08]execute_cgi path=json_proto method=POST [11:37:08]POST find Content-Length [11:37:08]Host: 172.17.96.67:8080 [11:37:08]Content-Length: 677 [11:37:08]Content-Type: application/json [11:37:08] [11:37:08]POST finish read [11:37:08]Found Content-Length = 677 [11:37:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:37:08]execute_script... [11:37: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)245163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:37:08]POST & json_proto [11:37:08]process_json_proto [11:37:08]json parsed OK: [11:37:08]protocol is kg_v1.0 [11:37:08]action value=close_receipt [11:37:08]process_action close_receipt [11:37:08]cmd_close_receipt [11:37:08]MH_GetDate [11:37:08]Write to MH i2c: F0 00 00 5B 0D 57 [11:37:08]Write i2c OK [11:37:08]MH_I2C_Read... [11:37:08]Read from MH i2c: F0 [11:37:08]MH_I2C_Read... [11:37:08]Read from MH i2c: F0 09 00 [11:37:08]MH_I2C_Read... [11:37:08]Read from MH i2c: F0 09 00 5B 0D 00 E5 25 1E 67 2B 09 1E 67 A8 [11:37:08]GetLastDocTimeStamp 1730028905 [11:37:08]current date 1730029029 [11:37:08]FM_GetShiftState [11:37:08]SAM_PROTO_GetShiftState [11:37:08]wFMCommunicate request_size=4 [11:37:08]MH_SAM_APDU [11:37:08]CAPDU: 80 13 01 00 [11:37:08]Write to MH i2c: E2 08 00 5C 0D 80 13 01 00 00 00 00 00 E6 [11:37:08]Write i2c OK [11:37:08]MH_I2C_Read... [11:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:08]Read from MH i2c: E2 [11:37:08]MH_I2C_Read... [11:37:08]Read from MH i2c: E2 0E 00 [11:37:08]MH_I2C_Read... [11:37:08]Read from MH i2c: E2 0E 00 5C 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 25 [11:37:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:37:08]wFMCommunicate OK [11:37:08]SAM_PROTO_GetShiftState done [11:37:08]FM_GetShiftState done [11:37:08]opened in 1729987372 [11:37:08]opened+sec_in_day 1730073772 [11:37:08]quantity*price = 20003 [11:37:08]sum+1 = 20004 [11:37: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 86 27.10.2024 11:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117386 ФПД: 176403469334869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113709&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117386&fm=176403469334869&tin=02508201610067®Number=0000000000091782&sum=20000 [11:37:09]StoreToDocumentArchive [11:37:09]shift 542 fd 117386 [11:37:09]save to /storage/0542/doc_00117386 [11:37:09]save last doc name /storage/0542/doc_00117386 to /storage/kkm_last_doc_name [11:37:09]save OK [11:37:09]Clear old archive folders... [11:37:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:09]tlvbuf is 0170F4A0 [11:37:09]SAM_PROTO_ClearQueue [11:37:09]wFMCommunicate request_size=4 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 09 00 00 [11:37:09]Write to MH i2c: E2 08 00 69 0D 80 09 00 00 00 00 00 00 E8 [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 69 0D 00 90 00 EA [11:37:09]RAPDU: 90 00 [11:37:09]wFMCommunicate OK [11:37:09]SAM_PROTO_ClearQueue done [11:37:09]KKMCreateOFDPacket [11:37:09]OFDProtocolAddRootSTLVToBuf [11:37:09]FM_MakeSignedData [11:37:09]FM_MakeSignedData [11:37:09]SAM_PROTO_SignData [11:37:09]wFMCommunicate request_size=4 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 0D 01 02 [11:37:09]Write to MH i2c: E2 08 00 6A 0D 80 0D 01 02 00 00 00 00 F0 [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 6A 0D 00 90 00 EB [11:37:09]RAPDU: 90 00 [11:37:09]wFMCommunicate OK [11:37:09]wFMCommunicate request_size=255 [11:37:09]MH_SAM_APDU [11:37: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 56 00 00 00 F4 03 04 00 E5 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8A CA 01 00 35 04 06 00 A0 [11:37:09]Write to MH i2c: E2 02 01 6B 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 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 56 00 00 00 F4 03 04 00 E5 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8A CA 01 00 35 04 06 00 A0 00 00 3E [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 6B 0D 00 90 00 EC [11:37:09]RAPDU: 90 00 [11:37:09]wFMCommunicate OK [11:37:09]wFMCommunicate request_size=10 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 0D 02 02 05 70 22 20 79 55 [11:37:09]Write to MH i2c: E2 0D 00 6C 0D 80 0D 02 02 05 00 70 22 20 79 55 00 00 7D [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 6C 0D 00 90 00 ED [11:37:09]RAPDU: 90 00 [11:37:09]wFMCommunicate OK [11:37:09]wFMCommunicate request_size=4 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 0D 03 02 [11:37:09]Write to MH i2c: E2 08 00 6D 0D 80 0D 03 02 00 00 00 00 F5 [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 0B 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 0B 00 6D 0D 00 A2 81 DB CA F7 CA F4 26 90 00 99 [11:37:09]RAPDU: A2 81 DB CA F7 CA F4 26 90 00 [11:37:09]wFMCommunicate OK [11:37:09]SAM_PROTO_SignData done [11:37:09]FM_MakeSignedData done [11:37:09]CreateOFDProtocolMessage [11:37:09]wFMCommunicate request_size=4 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 11 00 00 [11:37:09]Write to MH i2c: E2 08 00 6E 0D 80 11 00 00 00 00 00 00 F5 [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 17 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 17 00 6E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4C [11:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:37:09]wFMCommunicate OK [11:37:09]CreateOFDProtocolMessage done [11:37:09]OFDSenderStorePacket 117386 [11:37:09]StoreOFDPacket docnum=117386 [11:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 75 F5 07 01 1E 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 E5 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8A CA 01 00 35 04 06 00 A0 70 22 20 79 55 A2 81 DB CA F7 CA F4 26 [11:37:09]CheckFolder [11:37:09]dirname=/storage/ofd_packets [11:37:09]CheckFolder done [11:37:09]ProducePacketName [11:37:09]name=ofd_packets/00117386 [11:37:09]NVStorageSaveData ofd_packets/00117386 [11:37:09]File name is /storage/ofd_packets/00117386 [11:37:09]Write 301 bytes [11:37:09]NVStorageSaveData done [11:37:09]OFDSenderStorePacket done [11:37:09]KKMCreateOFDPacket done [11:37:09]NVStorageSaveData kkm_last_timestamp [11:37:09]File name is /storage/kkm_last_timestamp [11:37:09]Write 4 bytes [11:37:09]NVStorageSaveData done [11:37:09]ExternCall_PrintAddStr [11:37:09]wPrintStart [11:37:09]Write to MH i2c: 01 00 00 6F 0D 7C [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: 01 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: 01 07 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: 01 07 00 6F 0D 00 00 00 00 00 FF 0F 91 [11:37:09]RasterBufferAndPrint [11:37:09]line Счет N : (1)245163 [11:37:09]line ИНН: 02508201610067 [11:37:09]line Контрольно-Кассовый Чек [11:37:09]line ПРОДАЖА [11:37:09]line ТРК (МРК, ГНК) : 11 [11:37:09]line Товар: 2710124130 [11:37:09]line Аи-92-К-2 [11:37:09]line 2.990 * 66.90 [11:37:09]line = 200.03 [11:37:09]line НДС 12% НСП 1% [11:37:09]line > о реализуемом товаре [11:37:09]line ОКРУГЛЕНИЕ: -0.03 [11:37:09]line ИТОГО: 200.00 [11:37:09]line Внесено: 200.00 [11:37:09]line СДАЧА: 0.00 [11:37:09]line НСП 1% : 1.77 [11:37:09]line НДС 12% : 21.24 [11:37:09]line Наличными: 200.00 [11:37:09]line Безнал.: 0.00 [11:37:09]line Место: АЗС № 173 "Партнер Нефть" [11:37:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:37:09]line СНО: Общий режим [11:37:09]line Чек 86 27.10.2024 11:37 [11:37:09]line Смена: 542 ФФД: 1.0 [11:37:09]line ЗНМ: 0300000115 [11:37:09]line РНМ: 0000000000091782 [11:37:09]line Версия ККМ: 001 [11:37:09]line ФМ: 0000000000871767 [11:37:09]line ФД: 117386 [11:37:09]line ФПД: 176403469334869 [11:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113709&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117386&fm=176403469334869&tin=02508201610067®Number=0000000000091782&sum=20000 [11:37:10]written 0, free lines is 4095 [11:37:10]OFD Sender: Processing packet 117386 [packets to send 76, broken 75] [11:37:10]ProducePacketName [11:37:10]name=ofd_packets/00117386 [11:37:10]OFD Sender: To server: pG, [11:37:10]CommunicateWithHost lk.salyk.kg:30040 [11:37:10]ConnectInit lk.salyk.kg [11:37:10]Connected sock=11 [11:37: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 36 37 0F 01 00 00 75 F5 07 01 1E 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 E5 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8A CA 01 00 35 04 06 00 A0 70 22 20 79 55 A2 81 DB CA F7 CA F4 26 [11:37: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 36 37 4F 00 00 00 FC 10 47 00 13 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8A CA 01 00 F4 03 04 00 A2 D1 1D 67 B6 04 01 00 00 8E 92 03 A2 90 E3 05 C3 [11:37:10]CommunicateWithHost err = 0 [11:37:10]CheckOFDResponse [11:37:10]1017 (14) - 77093643461234 [11:37:10]1041 (16) - 0000000000871767 [11:37:10]1040 (4) - 117386 [11:37:10]1012 (4) - 27.10.2024 05:37 [11:37:10]1206 (1) - 0 [11:37:10]OFD Sender: Remove packet 117386 [11:37:10]ProducePacketName [11:37:10]name=ofd_packets/00117386 [11:37:10]NVStorageDeleteData [11:37:10]Write to MH i2c: 01 00 00 99 0D A6 [11:37:10]Write i2c OK [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: 01 [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: 01 07 00 [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: 01 07 00 99 0D 00 00 00 00 00 B3 0C 6C [11:37:10]RasterBufferAndPrint [11:37:10]line [11:37:10]line [11:37:10]line [11:37:10]line [11:37:10]line [11:37:10]written 0, free lines is 3255 [11:37:10]MH_Cut [11:37:10]Write to MH i2c: D1 01 00 A0 0D 01 7F [11:37:10]Write i2c OK [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: D1 [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: D1 01 00 [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: D1 01 00 A0 0D 00 7E [11:37:10]Write to MH i2c: 01 00 00 A1 0D AE [11:37:10]Write i2c OK [11:37:10]MH_I2C_Read... [11:37:10]OFD Sender: No OFD packet to send [11:37:11]*** Cut start [11:37:11]*** Purtial cut [11:37:11]*** Stage 1: CUTSNS_PIN = 1 [11:37:11]Read from MH i2c: 01 [11:37:11]MH_I2C_Read... [11:37:11]*** Stop cut motor [11:37:11]*** Cut end [11:37:11]Read from MH i2c: 01 07 00 [11:37:11]MH_I2C_Read... [11:37:11]Read from MH i2c: 01 07 00 A1 0D 00 00 00 00 00 FF 0F C3 [11:37:11]process_action close_receipt done [11:37:11]requested_data is exist [11:37:11]produce_requested_data [11:37:11]requested_item fm.sn is exist - process it [11:37:11]wFMCommunicate request_size=4 [11:37:11]MH_SAM_APDU [11:37:11]CAPDU: 80 11 00 00 [11:37:11]Write to MH i2c: E2 08 00 A2 0D 80 11 00 00 00 00 00 00 29 [11:37:11]Write i2c OK [11:37:11]MH_I2C_Read... [11:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:11]Read from MH i2c: E2 [11:37:11]MH_I2C_Read... [11:37:11]Read from MH i2c: E2 17 00 [11:37:11]MH_I2C_Read... [11:37:11]Read from MH i2c: E2 17 00 A2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 80 [11:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:37:11]wFMCommunicate OK [11:37:11]requested_item fd.num is exist - process it [11:37:11]SAM_PROTO_GetFieldsCounters [11:37:11]wFMCommunicate request_size=4 [11:37:11]MH_SAM_APDU [11:37:11]CAPDU: 80 13 00 00 [11:37:11]Write to MH i2c: E2 08 00 A3 0D 80 13 00 00 00 00 00 00 2C [11:37:11]Write i2c OK [11:37:11]MH_I2C_Read... [11:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:11]Read from MH i2c: E2 [11:37:11]MH_I2C_Read... [11:37:11]Read from MH i2c: E2 62 00 [11:37:11]MH_I2C_Read... [11:37:11]Read from MH i2c: E2 62 00 A3 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8A CA 01 00 0E 04 04 00 1E 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 CA [11:37: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8A CA 01 00 0E 04 04 00 1E 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:37:11]wFMCommunicate OK [11:37:11]SAM_PROTO_GetFieldsCounters done [11:37:11]requested_item shift.num is exist - process it [11:37:11]requested_item shift.opened is exist - process it [11:37:11]req_shift_opened [11:37:11]FM_GetShiftState [11:37:11]SAM_PROTO_GetShiftState [11:37:11]wFMCommunicate request_size=4 [11:37:11]MH_SAM_APDU [11:37:11]CAPDU: 80 13 01 00 [11:37:11]Write to MH i2c: E2 08 00 A4 0D 80 13 01 00 00 00 00 00 2E [11:37:11]Write i2c OK [11:37:11]MH_I2C_Read... [11:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:11]Read from MH i2c: E2 [11:37:11]MH_I2C_Read... [11:37:11]Read from MH i2c: E2 0E 00 [11:37:11]MH_I2C_Read... [11:37:11]Read from MH i2c: E2 0E 00 A4 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6D [11:37:11]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:37:11]wFMCommunicate OK [11:37:11]SAM_PROTO_GetShiftState done [11:37:11]FM_GetShiftState done [11:37:11]req_shift_opened done [11:37:11]requested_item shift.open_date is exist - process it [11:37:11]req_shift_open_date [11:37:11]req_shift_open_date done [11:37:11]produce_requested_data done [11:37:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117386,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:37:11]process_action_free close_receipt [11:37:11]json_value_free [11:37:11]json_value_free done [11:37:11]process_json_proto returns [11:37:11]Send response to host [11:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117386,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:37:11]free response buf [11:37:11]execute_script done [11:37:11]execute_script returns [11:37:11]free content buf [11:37:11]Sock 9.Close socket [11:37:11]Sock 9.Thread stoped [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:18]accept exits with 7 [11:38:18]New connection [11:38:18]New thread 3067600228 created [11:38:18]Thread 3067456868 joined [11:38:18]Waiting for new connection... [11:38:18] Sock 7.Parse request [11:38:18]Sock 7.Check first char [11:38:18]Sock 7.First char is OK [11:38:18]request: POST /json_proto HTTP/1.0 [11:38:18]Method: POST [11:38:18]URL: /json_proto [11:38:18]Method is POST - this is cgi request [11:38:18]url: /json_proto [11:38:18]query_string will be loaded in cgi processing [11:38:18]execute_cgi json_proto POST (null) [11:38:18]execute_cgi path=json_proto method=POST [11:38:18]POST find Content-Length [11:38:18]Host: 172.17.96.67:8080 [11:38:18]Content-Length: 677 [11:38:18]Content-Type: application/json [11:38:18] [11:38:18]POST finish read [11:38:18]Found Content-Length = 677 [11:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.920, "sum" : 329.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 329.00, "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:18]execute_script... [11:38: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)245162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.920, "sum" : 329.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 329.00, "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:18]POST & json_proto [11:38:18]process_json_proto [11:38:18]json parsed OK: [11:38:18]protocol is kg_v1.0 [11:38:18]action value=close_receipt [11:38:18]process_action close_receipt [11:38:18]cmd_close_receipt [11:38:18]MH_GetDate [11:38:18]Write to MH i2c: F0 00 00 A5 0D A1 [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: F0 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: F0 09 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: F0 09 00 A5 0D 00 2C 26 1E 67 2B 09 1E 67 3A [11:38:18]GetLastDocTimeStamp 1730029029 [11:38:18]current date 1730029100 [11:38:18]FM_GetShiftState [11:38:18]SAM_PROTO_GetShiftState [11:38:18]wFMCommunicate request_size=4 [11:38:18]MH_SAM_APDU [11:38:18]CAPDU: 80 13 01 00 [11:38:18]Write to MH i2c: E2 08 00 A6 0D 80 13 01 00 00 00 00 00 30 [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 0E 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 0E 00 A6 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6F [11:38:18]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:38:18]wFMCommunicate OK [11:38:18]SAM_PROTO_GetShiftState done [11:38:18]FM_GetShiftState done [11:38:18]opened in 1729987372 [11:38:18]opened+sec_in_day 1730073772 [11:38:18]quantity*price = 32914 [11:38:18]sum+1 = 32916 [11:38:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 329.00 Внесено: 330.00 СДАЧА: 1.00 НСП 1% : 2.91 НДС 12% : 34.95 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 87 27.10.2024 11:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117387 ФПД: 59118521098088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113820&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117387&fm=59118521098088&tin=02508201610067®Number=0000000000091782&sum=32900 [11:38:19]StoreToDocumentArchive [11:38:19]shift 542 fd 117387 [11:38:19]save to /storage/0542/doc_00117387 [11:38:19]save last doc name /storage/0542/doc_00117387 to /storage/kkm_last_doc_name [11:38:19]save OK [11:38:19]Clear old archive folders... [11:38:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:19]tlvbuf is B6F5F510 [11:38:19]SAM_PROTO_ClearQueue [11:38:19]wFMCommunicate request_size=4 [11:38:19]MH_SAM_APDU [11:38:19]CAPDU: 80 09 00 00 [11:38:19]Write to MH i2c: E2 08 00 B3 0D 80 09 00 00 00 00 00 00 32 [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:19]Read from MH i2c: E2 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 03 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 03 00 B3 0D 00 90 00 34 [11:38:19]RAPDU: 90 00 [11:38:19]wFMCommunicate OK [11:38:19]SAM_PROTO_ClearQueue done [11:38:19]KKMCreateOFDPacket [11:38:19]OFDProtocolAddRootSTLVToBuf [11:38:19]FM_MakeSignedData [11:38:19]FM_MakeSignedData [11:38:19]SAM_PROTO_SignData [11:38:19]wFMCommunicate request_size=4 [11:38:19]MH_SAM_APDU [11:38:19]CAPDU: 80 0D 01 02 [11:38:19]Write to MH i2c: E2 08 00 B4 0D 80 0D 01 02 00 00 00 00 3A [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 B4 0D 00 90 00 35 [11:38:20]RAPDU: 90 00 [11:38:20]wFMCommunicate OK [11:38:20]wFMCommunicate request_size=255 [11:38:20]MH_SAM_APDU [11:38: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 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 93 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 2C 26 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8B CA 01 00 35 04 06 00 35 [11:38:20]Write to MH i2c: E2 02 01 B5 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 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 93 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 2C 26 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8B CA 01 00 35 04 06 00 35 00 00 9A [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 B5 0D 00 90 00 36 [11:38:20]RAPDU: 90 00 [11:38:20]wFMCommunicate OK [11:38:20]wFMCommunicate request_size=10 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 0D 02 02 05 C4 9A 73 1F 68 [11:38:20]Write to MH i2c: E2 0D 00 B6 0D 80 0D 02 02 05 00 C4 9A 73 1F 68 00 00 9F [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 B6 0D 00 90 00 37 [11:38:20]RAPDU: 90 00 [11:38:20]wFMCommunicate OK [11:38:20]wFMCommunicate request_size=4 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 0D 03 02 [11:38:20]Write to MH i2c: E2 08 00 B7 0D 80 0D 03 02 00 00 00 00 3F [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 0B 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 0B 00 B7 0D 00 45 C7 4A CA B3 F4 A2 66 90 00 0F [11:38:20]RAPDU: 45 C7 4A CA B3 F4 A2 66 90 00 [11:38:20]wFMCommunicate OK [11:38:20]SAM_PROTO_SignData done [11:38:20]FM_MakeSignedData done [11:38:20]CreateOFDProtocolMessage [11:38:20]wFMCommunicate request_size=4 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 11 00 00 [11:38:20]Write to MH i2c: E2 08 00 B8 0D 80 11 00 00 00 00 00 00 3F [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 17 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 17 00 B8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 96 [11:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:38:20]wFMCommunicate OK [11:38:20]CreateOFDProtocolMessage done [11:38:20]OFDSenderStorePacket 117387 [11:38:20]StoreOFDPacket docnum=117387 [11:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 85 17 07 01 0D 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 93 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 2C 26 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8B CA 01 00 35 04 06 00 35 C4 9A 73 1F 68 45 C7 4A CA B3 F4 A2 66 [11:38:20]CheckFolder [11:38:20]dirname=/storage/ofd_packets [11:38:20]CheckFolder done [11:38:20]ProducePacketName [11:38:20]name=ofd_packets/00117387 [11:38:20]NVStorageSaveData ofd_packets/00117387 [11:38:20]File name is /storage/ofd_packets/00117387 [11:38:20]Write 301 bytes [11:38:20]NVStorageSaveData done [11:38:20]OFDSenderStorePacket done [11:38:20]KKMCreateOFDPacket done [11:38:20]NVStorageSaveData kkm_last_timestamp [11:38:20]File name is /storage/kkm_last_timestamp [11:38:20]Write 4 bytes [11:38:20]NVStorageSaveData done [11:38:20]ExternCall_PrintAddStr [11:38:20]wPrintStart [11:38:20]Write to MH i2c: 01 00 00 B9 0D C6 [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: 01 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: 01 07 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: 01 07 00 B9 0D 00 00 00 00 00 FF 0F DB [11:38:20]RasterBufferAndPrint [11:38:20]line Счет N : (1)245162 [11:38:20]line ИНН: 02508201610067 [11:38:20]line Контрольно-Кассовый Чек [11:38:20]line ПРОДАЖА [11:38:20]line ТРК (МРК, ГНК) : 21 [11:38:20]line Товар: 2710124130 [11:38:20]line Аи-92-К-2 [11:38:20]line 4.920 * 66.90 [11:38:20]line = 329.15 [11:38:20]line НДС 12% НСП 1% [11:38:20]line > о реализуемом товаре [11:38:20]line ОКРУГЛЕНИЕ: -0.15 [11:38:20]line ИТОГО: 329.00 [11:38:20]line Внесено: 330.00 [11:38:20]line СДАЧА: 1.00 [11:38:20]line НСП 1% : 2.91 [11:38:20]line НДС 12% : 34.95 [11:38:20]line Наличными: 329.00 [11:38:20]line Безнал.: 0.00 [11:38:20]line Место: АЗС № 173 "Партнер Нефть" [11:38:20]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:38:20]line СНО: Общий режим [11:38:20]line Чек 87 27.10.2024 11:38 [11:38:20]line Смена: 542 ФФД: 1.0 [11:38:20]line ЗНМ: 0300000115 [11:38:20]line РНМ: 0000000000091782 [11:38:20]line Версия ККМ: 001 [11:38:20]line ФМ: 0000000000871767 [11:38:20]line ФД: 117387 [11:38:20]line ФПД: 59118521098088 [11:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113820&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117387&fm=59118521098088&tin=02508201610067®Number=0000000000091782&sum=32900 [11:38:20]OFD Sender: Processing packet 117387 [packets to send 76, broken 75] [11:38:20]ProducePacketName [11:38:20]name=ofd_packets/00117387 [11:38:20]OFD Sender: To server: pG, [11:38:20]CommunicateWithHost lk.salyk.kg:30040 [11:38:20]ConnectInit lk.salyk.kg [11:38:20]written 0, free lines is 4095 [11:38:20]Connected sock=10 [11:38: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 36 37 0F 01 00 00 85 17 07 01 0D 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 93 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 2C 26 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8B CA 01 00 35 04 06 00 35 C4 9A 73 1F 68 45 C7 4A CA B3 F4 A2 66 [11:38: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 36 37 4F 00 00 00 34 56 47 00 2D 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 36 37 10 04 04 00 8B CA 01 00 F4 03 04 00 E9 D1 1D 67 B6 04 01 00 00 D3 E6 10 32 ED 04 EF 50 [11:38:21]CommunicateWithHost err = 0 [11:38:21]CheckOFDResponse [11:38:21]1017 (14) - 77093643461234 [11:38:21]1041 (16) - 0000000000871767 [11:38:21]1040 (4) - 117387 [11:38:21]1012 (4) - 27.10.2024 05:38 [11:38:21]1206 (1) - 0 [11:38:21]OFD Sender: Remove packet 117387 [11:38:21]ProducePacketName [11:38:21]name=ofd_packets/00117387 [11:38:21]NVStorageDeleteData [11:38:21]Write to MH i2c: 01 00 00 E3 0D F0 [11:38:21]Write i2c OK [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: 01 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: 01 07 00 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: 01 07 00 E3 0D 00 00 00 00 00 B8 0C BB [11:38:21]RasterBufferAndPrint [11:38:21]line [11:38:21]line [11:38:21]line [11:38:21]line [11:38:21]line [11:38:21]written 0, free lines is 3260 [11:38:21]MH_Cut [11:38:21]Write to MH i2c: D1 01 00 EA 0D 01 C9 [11:38:21]Write i2c OK [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: D1 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: D1 01 00 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: D1 01 00 EA 0D 00 C8 [11:38:21]Write to MH i2c: 01 00 00 EB 0D F8 [11:38:21]Write i2c OK [11:38:21]MH_I2C_Read... [11:38:21]OFD Sender: No OFD packet to send [11:38:22]*** Cut start [11:38:22]*** Purtial cut [11:38:22]*** Stage 1: CUTSNS_PIN = 1 [11:38:22]Read from MH i2c: 01 [11:38:22]MH_I2C_Read... [11:38:22]*** Stop cut motor [11:38:22]*** Cut end [11:38:22]Read from MH i2c: 01 07 00 [11:38:22]MH_I2C_Read... [11:38:22]Read from MH i2c: 01 07 00 EB 0D 00 00 00 00 00 FF 0F 0D [11:38:22]process_action close_receipt done [11:38:22]requested_data is exist [11:38:22]produce_requested_data [11:38:22]requested_item fm.sn is exist - process it [11:38:22]wFMCommunicate request_size=4 [11:38:22]MH_SAM_APDU [11:38:22]CAPDU: 80 11 00 00 [11:38:22]Write to MH i2c: E2 08 00 EC 0D 80 11 00 00 00 00 00 00 73 [11:38:22]Write i2c OK [11:38:22]MH_I2C_Read... [11:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:22]Read from MH i2c: E2 [11:38:22]MH_I2C_Read... [11:38:22]Read from MH i2c: E2 17 00 [11:38:22]MH_I2C_Read... [11:38:22]Read from MH i2c: E2 17 00 EC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CA [11:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:38:22]wFMCommunicate OK [11:38:22]requested_item fd.num is exist - process it [11:38:22]SAM_PROTO_GetFieldsCounters [11:38:22]wFMCommunicate request_size=4 [11:38:22]MH_SAM_APDU [11:38:22]CAPDU: 80 13 00 00 [11:38:22]Write to MH i2c: E2 08 00 ED 0D 80 13 00 00 00 00 00 00 76 [11:38:22]Write i2c OK [11:38:22]MH_I2C_Read... [11:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:22]Read from MH i2c: E2 [11:38:22]MH_I2C_Read... [11:38:22]Read from MH i2c: E2 62 00 [11:38:22]MH_I2C_Read... [11:38:22]Read from MH i2c: E2 62 00 ED 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8B CA 01 00 0E 04 04 00 1E 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 18 [11:38: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8B CA 01 00 0E 04 04 00 1E 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 [11:38:22]wFMCommunicate OK [11:38:22]SAM_PROTO_GetFieldsCounters done [11:38:22]requested_item shift.num is exist - process it [11:38:22]requested_item shift.opened is exist - process it [11:38:22]req_shift_opened [11:38:22]FM_GetShiftState [11:38:22]SAM_PROTO_GetShiftState [11:38:22]wFMCommunicate request_size=4 [11:38:22]MH_SAM_APDU [11:38:22]CAPDU: 80 13 01 00 [11:38:22]Write to MH i2c: E2 08 00 EE 0D 80 13 01 00 00 00 00 00 78 [11:38:22]Write i2c OK [11:38:22]MH_I2C_Read... [11:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:22]Read from MH i2c: E2 [11:38:22]MH_I2C_Read... [11:38:22]Read from MH i2c: E2 0E 00 [11:38:22]MH_I2C_Read... [11:38:22]Read from MH i2c: E2 0E 00 EE 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B7 [11:38:22]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:38:22]wFMCommunicate OK [11:38:22]SAM_PROTO_GetShiftState done [11:38:22]FM_GetShiftState done [11:38:22]req_shift_opened done [11:38:22]requested_item shift.open_date is exist - process it [11:38:22]req_shift_open_date [11:38:22]req_shift_open_date done [11:38:22]produce_requested_data done [11:38:22]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117387,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:38:22]process_action_free close_receipt [11:38:22]json_value_free [11:38:22]json_value_free done [11:38:22]process_json_proto returns [11:38:22]Send response to host [11:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117387,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:38:22]free response buf [11:38:22]execute_script done [11:38:22]execute_script returns [11:38:22]free content buf [11:38:22]Sock 7.Close socket [11:38:22]Sock 7.Thread stoped [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:09]accept exits with 9 [11:42:09]New connection [11:42:09]New thread 3067456868 created [11:42:09] Sock 9.Parse request [11:42:09]Thread 3067600228 joined [11:42:09]Sock 9.Check first char [11:42:09]Waiting for new connection... [11:42:09]Sock 9.First char is OK [11:42:09]request: POST /json_proto HTTP/1.0 [11:42:09]Method: POST [11:42:09]URL: /json_proto [11:42:09]Method is POST - this is cgi request [11:42:09]url: /json_proto [11:42:09]query_string will be loaded in cgi processing [11:42:09]execute_cgi json_proto POST (null) [11:42:09]execute_cgi path=json_proto method=POST [11:42:09]POST find Content-Length [11:42:09]Host: 172.17.96.67:8080 [11:42:09]Content-Length: 682 [11:42:09]Content-Type: application/json [11:42:09] [11:42:09]POST finish read [11:42:09]Found Content-Length = 682 [11:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:42:09]execute_script... [11:42: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)245164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:42:09]POST & json_proto [11:42:09]process_json_proto [11:42:09]json parsed OK: [11:42:09]protocol is kg_v1.0 [11:42:09]action value=close_receipt [11:42:09]process_action close_receipt [11:42:09]cmd_close_receipt [11:42:09]MH_GetDate [11:42:09]Write to MH i2c: F0 00 00 EF 0D EB [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: F0 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: F0 09 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: F0 09 00 EF 0D 00 13 27 1E 67 2B 09 1E 67 6C [11:42:09]GetLastDocTimeStamp 1730029100 [11:42:09]current date 1730029331 [11:42:09]FM_GetShiftState [11:42:09]SAM_PROTO_GetShiftState [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 13 01 00 [11:42:09]Write to MH i2c: E2 08 00 F0 0D 80 13 01 00 00 00 00 00 7A [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0E 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0E 00 F0 0D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B9 [11:42:09]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:42:09]wFMCommunicate OK [11:42:09]SAM_PROTO_GetShiftState done [11:42:09]FM_GetShiftState done [11:42:09]opened in 1729987372 [11:42:09]opened+sec_in_day 1730073772 [11:42:09]quantity*price = 100015 [11:42:09]sum+1 = 100017 [11:42: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 88 27.10.2024 11:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117388 ФПД: 280707554072803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114211&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117388&fm=280707554072803&tin=02508201610067®Number=0000000000091782&sum=100000 [11:42:10]StoreToDocumentArchive [11:42:10]shift 542 fd 117388 [11:42:10]save to /storage/0542/doc_00117388 [11:42:10]save last doc name /storage/0542/doc_00117388 to /storage/kkm_last_doc_name [11:42:10]save OK [11:42:10]Clear old archive folders... [11:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:10]tlvbuf is B6F464B0 [11:42:10]SAM_PROTO_ClearQueue [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 09 00 00 [11:42:10]Write to MH i2c: E2 08 00 FD 0D 80 09 00 00 00 00 00 00 7C [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 FD 0D 00 90 00 7E [11:42:10]RAPDU: 90 00 [11:42:10]wFMCommunicate OK [11:42:10]SAM_PROTO_ClearQueue done [11:42:10]KKMCreateOFDPacket [11:42:10]OFDProtocolAddRootSTLVToBuf [11:42:10]FM_MakeSignedData [11:42:10]FM_MakeSignedData [11:42:10]SAM_PROTO_SignData [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 0D 01 02 [11:42:10]Write to MH i2c: E2 08 00 FE 0D 80 0D 01 02 00 00 00 00 84 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 FE 0D 00 90 00 7F [11:42:11]RAPDU: 90 00 [11:42:11]wFMCommunicate OK [11:42:11]wFMCommunicate request_size=255 [11:42:11]MH_SAM_APDU [11:42: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 58 00 00 00 F4 03 04 00 13 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8C CA 01 00 35 04 06 00 FF [11:42:11]Write to MH i2c: E2 02 01 FF 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 58 00 00 00 F4 03 04 00 13 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8C CA 01 00 35 04 06 00 FF 00 00 9D [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 FF 0D 00 90 00 80 [11:42:11]RAPDU: 90 00 [11:42:11]wFMCommunicate OK [11:42:11]wFMCommunicate request_size=10 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 0D 02 02 05 4D 52 0B D8 E3 [11:42:11]Write to MH i2c: E2 0D 00 00 0E 80 0D 02 02 05 00 4D 52 0B D8 E3 00 00 F7 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 00 0E 00 90 00 82 [11:42:11]RAPDU: 90 00 [11:42:11]wFMCommunicate OK [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 0D 03 02 [11:42:11]Write to MH i2c: E2 08 00 01 0E 80 0D 03 02 00 00 00 00 8A [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0B 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0B 00 01 0E 00 C5 2E 3D A1 E9 03 FE 39 90 00 7F [11:42:11]RAPDU: C5 2E 3D A1 E9 03 FE 39 90 00 [11:42:11]wFMCommunicate OK [11:42:11]SAM_PROTO_SignData done [11:42:11]FM_MakeSignedData done [11:42:11]CreateOFDProtocolMessage [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 11 00 00 [11:42:11]Write to MH i2c: E2 08 00 02 0E 80 11 00 00 00 00 00 00 8A [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 17 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 17 00 02 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E1 [11:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:42:11]wFMCommunicate OK [11:42:11]CreateOFDProtocolMessage done [11:42:11]OFDSenderStorePacket 117388 [11:42:11]StoreOFDPacket docnum=117388 [11:42:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9A 9E 07 01 1A 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 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 58 00 00 00 F4 03 04 00 13 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8C CA 01 00 35 04 06 00 FF 4D 52 0B D8 E3 C5 2E 3D A1 E9 03 FE 39 [11:42:11]CheckFolder [11:42:11]dirname=/storage/ofd_packets [11:42:11]CheckFolder done [11:42:11]ProducePacketName [11:42:11]name=ofd_packets/00117388 [11:42:11]NVStorageSaveData ofd_packets/00117388 [11:42:11]File name is /storage/ofd_packets/00117388 [11:42:11]Write 301 bytes [11:42:11]NVStorageSaveData done [11:42:11]OFDSenderStorePacket done [11:42:11]KKMCreateOFDPacket done [11:42:11]NVStorageSaveData kkm_last_timestamp [11:42:11]File name is /storage/kkm_last_timestamp [11:42:11]Write 4 bytes [11:42:11]NVStorageSaveData done [11:42:11]ExternCall_PrintAddStr [11:42:11]wPrintStart [11:42:11]Write to MH i2c: 01 00 00 03 0E 11 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 03 0E 00 00 00 00 00 FF 0F 26 [11:42:11]RasterBufferAndPrint [11:42:11]line Счет N : (1)245164 [11:42:11]line ИНН: 02508201610067 [11:42:11]line Контрольно-Кассовый Чек [11:42:11]line ПРОДАЖА [11:42:11]line ТРК (МРК, ГНК) : 21 [11:42:11]line Товар: 2710124130 [11:42:11]line Аи-92-К-2 [11:42:11]line 14.950 * 66.90 [11:42:11]line = 1000.16 [11:42:11]line НДС 12% НСП 1% [11:42:11]line > о реализуемом товаре [11:42:11]line ОКРУГЛЕНИЕ: -0.16 [11:42:11]line ИТОГО: 1000.00 [11:42:11]line Внесено: 1000.00 [11:42:11]line СДАЧА: 0.00 [11:42:11]line НСП 1% : 8.85 [11:42:11]line НДС 12% : 106.21 [11:42:11]line Наличными: 1000.00 [11:42:11]line Безнал.: 0.00 [11:42:11]line Место: АЗС № 173 "Партнер Нефть" [11:42:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:42:11]line СНО: Общий режим [11:42:11]line Чек 88 27.10.2024 11:42 [11:42:11]line Смена: 542 ФФД: 1.0 [11:42:11]line ЗНМ: 0300000115 [11:42:11]line РНМ: 0000000000091782 [11:42:11]line Версия ККМ: 001 [11:42:11]line ФМ: 0000000000871767 [11:42:11]line ФД: 117388 [11:42:11]line ФПД: 280707554072803 [11:42:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114211&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117388&fm=280707554072803&tin=02508201610067®Number=0000000000091782&sum=100000 [11:42:11]written 0, free lines is 4095 [11:42:11]OFD Sender: Processing packet 117388 [packets to send 76, broken 75] [11:42:11]ProducePacketName [11:42:11]name=ofd_packets/00117388 [11:42:11]OFD Sender: To server: pG, [11:42:11]CommunicateWithHost lk.salyk.kg:30040 [11:42:11]ConnectInit lk.salyk.kg [11:42:11]Connected sock=10 [11:42: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 36 37 0F 01 00 00 9A 9E 07 01 1A 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 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 58 00 00 00 F4 03 04 00 13 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8C CA 01 00 35 04 06 00 FF 4D 52 0B D8 E3 C5 2E 3D A1 E9 03 FE 39 [11:42: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 36 37 4F 00 00 00 F1 60 47 00 78 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 36 37 10 04 04 00 8C CA 01 00 F4 03 04 00 D0 D2 1D 67 B6 04 01 00 00 AF 30 F3 42 68 1B A0 02 [11:42:12]CommunicateWithHost err = 0 [11:42:12]CheckOFDResponse [11:42:12]1017 (14) - 77093643461234 [11:42:12]1041 (16) - 0000000000871767 [11:42:12]1040 (4) - 117388 [11:42:12]1012 (4) - 27.10.2024 05:42 [11:42:12]1206 (1) - 0 [11:42:12]OFD Sender: Remove packet 117388 [11:42:12]ProducePacketName [11:42:12]name=ofd_packets/00117388 [11:42:12]NVStorageDeleteData [11:42:12]Write to MH i2c: 01 00 00 2D 0E 3B [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: 01 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: 01 07 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: 01 07 00 2D 0E 00 00 00 00 00 B3 0C 01 [11:42:12]RasterBufferAndPrint [11:42:12]line [11:42:12]line [11:42:12]line [11:42:12]line [11:42:12]line [11:42:12]written 0, free lines is 3257 [11:42:12]MH_Cut [11:42:12]Write to MH i2c: D1 01 00 34 0E 01 14 [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: D1 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: D1 01 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: D1 01 00 34 0E 00 13 [11:42:12]Write to MH i2c: 01 00 00 35 0E 43 [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]OFD Sender: No OFD packet to send [11:42:13]*** Cut start [11:42:13]*** Purtial cut [11:42:13]*** Stage 1: CUTSNS_PIN = 1 [11:42:13]Read from MH i2c: 01 [11:42:13]MH_I2C_Read... [11:42:13]*** Stop cut motor [11:42:13]*** Cut end [11:42:13]Read from MH i2c: 01 07 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 07 00 35 0E 00 00 00 00 00 FF 0F 58 [11:42:13]process_action close_receipt done [11:42:13]requested_data is exist [11:42:13]produce_requested_data [11:42:13]requested_item fm.sn is exist - process it [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 11 00 00 [11:42:13]Write to MH i2c: E2 08 00 36 0E 80 11 00 00 00 00 00 00 BE [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 36 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 15 [11:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:42:13]wFMCommunicate OK [11:42:13]requested_item fd.num is exist - process it [11:42:13]SAM_PROTO_GetFieldsCounters [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 13 00 00 [11:42:13]Write to MH i2c: E2 08 00 37 0E 80 13 00 00 00 00 00 00 C1 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 62 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 62 00 37 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8C CA 01 00 0E 04 04 00 1E 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 67 [11:42: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8C CA 01 00 0E 04 04 00 1E 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 [11:42:13]wFMCommunicate OK [11:42:13]SAM_PROTO_GetFieldsCounters done [11:42:13]requested_item shift.num is exist - process it [11:42:13]requested_item shift.opened is exist - process it [11:42:13]req_shift_opened [11:42:13]FM_GetShiftState [11:42:13]SAM_PROTO_GetShiftState [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 13 01 00 [11:42:13]Write to MH i2c: E2 08 00 38 0E 80 13 01 00 00 00 00 00 C3 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 0E 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 0E 00 38 0E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 02 [11:42:13]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:42:13]wFMCommunicate OK [11:42:13]SAM_PROTO_GetShiftState done [11:42:13]FM_GetShiftState done [11:42:13]req_shift_opened done [11:42:13]requested_item shift.open_date is exist - process it [11:42:13]req_shift_open_date [11:42:13]req_shift_open_date done [11:42:13]produce_requested_data done [11:42:13]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117388,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:42:13]process_action_free close_receipt [11:42:13]json_value_free [11:42:13]json_value_free done [11:42:13]process_json_proto returns [11:42:13]Send response to host [11:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117388,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:42:13]free response buf [11:42:13]execute_script done [11:42:13]execute_script returns [11:42:13]free content buf [11:42:13]Sock 9.Close socket [11:42:13]Sock 9.Thread stoped [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:45:59]accept exits with 7 [11:45:59]New connection [11:45:59]New thread 3067600228 created [11:45:59]Thread 3067456868 joined [11:45:59]Waiting for new connection... [11:45:59] Sock 7.Parse request [11:45:59]Sock 7.Check first char [11:45:59]Sock 7.First char is OK [11:45:59]request: POST /json_proto HTTP/1.0 [11:45:59]Method: POST [11:45:59]URL: /json_proto [11:45:59]Method is POST - this is cgi request [11:45:59]url: /json_proto [11:45:59]query_string will be loaded in cgi processing [11:45:59]execute_cgi json_proto POST (null) [11:45:59]execute_cgi path=json_proto method=POST [11:45:59]POST find Content-Length [11:45:59]Host: 172.17.96.67:8080 [11:45:59]Content-Length: 677 [11:45:59]Content-Type: application/json [11:45:59] [11:45:59]POST finish read [11:45:59]Found Content-Length = 677 [11:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:45:59]execute_script... [11:45: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)245165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:45:59]POST & json_proto [11:45:59]process_json_proto [11:45:59]json parsed OK: [11:45:59]protocol is kg_v1.0 [11:45:59]action value=close_receipt [11:45:59]process_action close_receipt [11:45:59]cmd_close_receipt [11:45:59]MH_GetDate [11:45:59]Write to MH i2c: F0 00 00 39 0E 36 [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: F0 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: F0 09 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: F0 09 00 39 0E 00 F8 27 1E 67 2B 09 1E 67 9C [11:45:59]GetLastDocTimeStamp 1730029331 [11:45:59]current date 1730029560 [11:45:59]FM_GetShiftState [11:45:59]SAM_PROTO_GetShiftState [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 13 01 00 [11:45:59]Write to MH i2c: E2 08 00 3A 0E 80 13 01 00 00 00 00 00 C5 [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0E 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0E 00 3A 0E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 04 [11:45:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:45:59]wFMCommunicate OK [11:45:59]SAM_PROTO_GetShiftState done [11:45:59]FM_GetShiftState done [11:45:59]opened in 1729987372 [11:45:59]opened+sec_in_day 1730073772 [11:45:59]quantity*price = 50041 [11:45:59]sum+1 = 50042 [11:45:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 89 27.10.2024 11:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117389 ФПД: 17451520971644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114601&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117389&fm=17451520971644&tin=02508201610067®Number=0000000000091782&sum=50000 [11:46:00]StoreToDocumentArchive [11:46:00]shift 542 fd 117389 [11:46:00]save to /storage/0542/doc_00117389 [11:46:00]save last doc name /storage/0542/doc_00117389 to /storage/kkm_last_doc_name [11:46:00]save OK [11:46:00]Clear old archive folders... [11:46:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:00]tlvbuf is 01724FE0 [11:46:00]SAM_PROTO_ClearQueue [11:46:00]wFMCommunicate request_size=4 [11:46:00]MH_SAM_APDU [11:46:00]CAPDU: 80 09 00 00 [11:46:00]Write to MH i2c: E2 08 00 47 0E 80 09 00 00 00 00 00 00 C7 [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:00]Read from MH i2c: E2 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [11:46:00]RAPDU: 90 00 [11:46:00]wFMCommunicate OK [11:46:00]SAM_PROTO_ClearQueue done [11:46:00]KKMCreateOFDPacket [11:46:00]OFDProtocolAddRootSTLVToBuf [11:46:00]FM_MakeSignedData [11:46:00]FM_MakeSignedData [11:46:00]SAM_PROTO_SignData [11:46:00]wFMCommunicate request_size=4 [11:46:00]MH_SAM_APDU [11:46:00]CAPDU: 80 0D 01 02 [11:46:00]Write to MH i2c: E2 08 00 48 0E 80 0D 01 02 00 00 00 00 CF [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:00]Read from MH i2c: E2 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 48 0E 00 90 00 CA [11:46:00]RAPDU: 90 00 [11:46:00]wFMCommunicate OK [11:46:00]wFMCommunicate request_size=255 [11:46:00]MH_SAM_APDU [11:46: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F9 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8D CA 01 00 35 04 06 00 0F [11:46:00]Write to MH i2c: E2 02 01 49 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F9 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8D CA 01 00 35 04 06 00 0F 00 00 E6 [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 [11:46:01]MH_I2C_Read... [11:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:01]Read from MH i2c: E2 03 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 49 0E 00 90 00 CB [11:46:01]RAPDU: 90 00 [11:46:01]wFMCommunicate OK [11:46:01]wFMCommunicate request_size=10 [11:46:01]MH_SAM_APDU [11:46:01]CAPDU: 80 0D 02 02 05 DF 3F B5 53 7C [11:46:01]Write to MH i2c: E2 0D 00 4A 0E 80 0D 02 02 05 00 DF 3F B5 53 7C 00 00 7E [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:01]Read from MH i2c: E2 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 4A 0E 00 90 00 CC [11:46:01]RAPDU: 90 00 [11:46:01]wFMCommunicate OK [11:46:01]wFMCommunicate request_size=4 [11:46:01]MH_SAM_APDU [11:46:01]CAPDU: 80 0D 03 02 [11:46:01]Write to MH i2c: E2 08 00 4B 0E 80 0D 03 02 00 00 00 00 D4 [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:01]Read from MH i2c: E2 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 0B 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 0B 00 4B 0E 00 0A DD FD CA 36 88 F1 67 90 00 99 [11:46:01]RAPDU: 0A DD FD CA 36 88 F1 67 90 00 [11:46:01]wFMCommunicate OK [11:46:01]SAM_PROTO_SignData done [11:46:01]FM_MakeSignedData done [11:46:01]CreateOFDProtocolMessage [11:46:01]wFMCommunicate request_size=4 [11:46:01]MH_SAM_APDU [11:46:01]CAPDU: 80 11 00 00 [11:46:01]Write to MH i2c: E2 08 00 4C 0E 80 11 00 00 00 00 00 00 D4 [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:01]Read from MH i2c: E2 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 17 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 17 00 4C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2B [11:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:46:01]wFMCommunicate OK [11:46:01]CreateOFDProtocolMessage done [11:46:01]OFDSenderStorePacket 117389 [11:46:01]StoreOFDPacket docnum=117389 [11:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 21 4F 07 01 83 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 59 00 00 00 F4 03 04 00 F9 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8D CA 01 00 35 04 06 00 0F DF 3F B5 53 7C 0A DD FD CA 36 88 F1 67 [11:46:01]CheckFolder [11:46:01]dirname=/storage/ofd_packets [11:46:01]CheckFolder done [11:46:01]ProducePacketName [11:46:01]name=ofd_packets/00117389 [11:46:01]NVStorageSaveData ofd_packets/00117389 [11:46:01]File name is /storage/ofd_packets/00117389 [11:46:01]Write 301 bytes [11:46:01]NVStorageSaveData done [11:46:01]OFDSenderStorePacket done [11:46:01]KKMCreateOFDPacket done [11:46:01]NVStorageSaveData kkm_last_timestamp [11:46:01]File name is /storage/kkm_last_timestamp [11:46:01]Write 4 bytes [11:46:01]NVStorageSaveData done [11:46:01]ExternCall_PrintAddStr [11:46:01]wPrintStart [11:46:01]Write to MH i2c: 01 00 00 4D 0E 5B [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: 01 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: 01 07 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: 01 07 00 4D 0E 00 00 00 00 00 FF 0F 70 [11:46:01]RasterBufferAndPrint [11:46:01]line Счет N : (1)245165 [11:46:01]line ИНН: 02508201610067 [11:46:01]line Контрольно-Кассовый Чек [11:46:01]line ПРОДАЖА [11:46:01]line ТРК (МРК, ГНК) : 11 [11:46:01]line Товар: 2710124130 [11:46:01]line Аи-92-К-2 [11:46:01]line 7.480 * 66.90 [11:46:01]line = 500.41 [11:46:01]line НДС 12% НСП 1% [11:46:01]line > о реализуемом товаре [11:46:01]line ОКРУГЛЕНИЕ: -0.41 [11:46:01]line ИТОГО: 500.00 [11:46:01]line Внесено: 500.00 [11:46:01]line СДАЧА: 0.00 [11:46:01]line НСП 1% : 4.43 [11:46:01]line НДС 12% : 53.14 [11:46:01]line Наличными: 500.00 [11:46:01]line Безнал.: 0.00 [11:46:01]line Место: АЗС № 173 "Партнер Нефть" [11:46:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:46:01]line СНО: Общий режим [11:46:01]line Чек 89 27.10.2024 11:46 [11:46:01]line Смена: 542 ФФД: 1.0 [11:46:01]line ЗНМ: 0300000115 [11:46:01]line РНМ: 0000000000091782 [11:46:01]line Версия ККМ: 001 [11:46:01]line ФМ: 0000000000871767 [11:46:01]line ФД: 117389 [11:46:01]line ФПД: 17451520971644 [11:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114601&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117389&fm=17451520971644&tin=02508201610067®Number=0000000000091782&sum=50000 [11:46:01]OFD Sender: Processing packet 117389 [packets to send 76, broken 75] [11:46:01]ProducePacketName [11:46:01]name=ofd_packets/00117389 [11:46:01]OFD Sender: To server: pG, [11:46:01]CommunicateWithHost lk.salyk.kg:30040 [11:46:01]ConnectInit lk.salyk.kg [11:46:01]written 0, free lines is 4095 [11:46:01]Connected sock=10 [11:46: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 36 37 0F 01 00 00 21 4F 07 01 83 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 59 00 00 00 F4 03 04 00 F9 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8D CA 01 00 35 04 06 00 0F DF 3F B5 53 7C 0A DD FD CA 36 88 F1 67 [11:46: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 36 37 4F 00 00 00 BF 3A 47 00 18 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 36 37 10 04 04 00 8D CA 01 00 F4 03 04 00 B6 D3 1D 67 B6 04 01 00 00 22 8D B5 F7 DD 31 BD AD [11:46:02]CommunicateWithHost err = 0 [11:46:02]CheckOFDResponse [11:46:02]1017 (14) - 77093643461234 [11:46:02]1041 (16) - 0000000000871767 [11:46:02]1040 (4) - 117389 [11:46:02]1012 (4) - 27.10.2024 05:46 [11:46:02]1206 (1) - 0 [11:46:02]OFD Sender: Remove packet 117389 [11:46:02]ProducePacketName [11:46:02]name=ofd_packets/00117389 [11:46:02]NVStorageDeleteData [11:46:02]Write to MH i2c: 01 00 00 77 0E 85 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 07 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 A6 0C 3E [11:46:02]RasterBufferAndPrint [11:46:02]line [11:46:02]line [11:46:02]line [11:46:02]line [11:46:02]line [11:46:02]written 0, free lines is 3242 [11:46:02]MH_Cut [11:46:02]Write to MH i2c: D1 01 00 7E 0E 01 5E [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: D1 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: D1 01 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: D1 01 00 7E 0E 00 5D [11:46:02]Write to MH i2c: 01 00 00 7F 0E 8D [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]OFD Sender: No OFD packet to send [11:46:02]*** Cut start [11:46:02]*** Purtial cut [11:46:02]*** Stage 1: CUTSNS_PIN = 1 [11:46:03]Read from MH i2c: 01 [11:46:03]MH_I2C_Read... [11:46:03]*** Stop cut motor [11:46:03]*** Cut end [11:46:03]Read from MH i2c: 01 07 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: 01 07 00 7F 0E 00 00 00 00 00 FF 0F A2 [11:46:03]process_action close_receipt done [11:46:03]requested_data is exist [11:46:03]produce_requested_data [11:46:03]requested_item fm.sn is exist - process it [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 11 00 00 [11:46:03]Write to MH i2c: E2 08 00 80 0E 80 11 00 00 00 00 00 00 08 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 17 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 17 00 80 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5F [11:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:46:03]wFMCommunicate OK [11:46:03]requested_item fd.num is exist - process it [11:46:03]SAM_PROTO_GetFieldsCounters [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 13 00 00 [11:46:03]Write to MH i2c: E2 08 00 81 0E 80 13 00 00 00 00 00 00 0B [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 62 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 62 00 81 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8D CA 01 00 0E 04 04 00 1E 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 B5 [11:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8D CA 01 00 0E 04 04 00 1E 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 [11:46:03]wFMCommunicate OK [11:46:03]SAM_PROTO_GetFieldsCounters done [11:46:03]requested_item shift.num is exist - process it [11:46:03]requested_item shift.opened is exist - process it [11:46:03]req_shift_opened [11:46:03]FM_GetShiftState [11:46:03]SAM_PROTO_GetShiftState [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 13 01 00 [11:46:03]Write to MH i2c: E2 08 00 82 0E 80 13 01 00 00 00 00 00 0D [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 0E 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 0E 00 82 0E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 4C [11:46:03]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:46:03]wFMCommunicate OK [11:46:03]SAM_PROTO_GetShiftState done [11:46:03]FM_GetShiftState done [11:46:03]req_shift_opened done [11:46:03]requested_item shift.open_date is exist - process it [11:46:03]req_shift_open_date [11:46:03]req_shift_open_date done [11:46:03]produce_requested_data done [11:46:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117389,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:46:03]process_action_free close_receipt [11:46:03]json_value_free [11:46:03]json_value_free done [11:46:03]process_json_proto returns [11:46:03]Send response to host [11:46:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117389,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:46:03]free response buf [11:46:03]execute_script done [11:46:03]execute_script returns [11:46:03]free content buf [11:46:03]Sock 7.Close socket [11:46:03]Sock 7.Thread stoped [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:01]accept exits with 9 [11:48:01]New connection [11:48:01]New thread 3067456868 created [11:48:01]Thread 3067600228 joined [11:48:01]Waiting for new connection... [11:48:01] Sock 9.Parse request [11:48:01]Sock 9.Check first char [11:48:01]Sock 9.First char is OK [11:48:01]request: POST /json_proto HTTP/1.0 [11:48:01]Method: POST [11:48:01]URL: /json_proto [11:48:01]Method is POST - this is cgi request [11:48:01]url: /json_proto [11:48:01]query_string will be loaded in cgi processing [11:48:01]execute_cgi json_proto POST (null) [11:48:01]execute_cgi path=json_proto method=POST [11:48:01]POST find Content-Length [11:48:01]Host: 172.17.96.67:8080 [11:48:01]Content-Length: 677 [11:48:01]Content-Type: application/json [11:48:01] [11:48:01]POST finish read [11:48:01]Found Content-Length = 677 [11:48:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [11:48:01]execute_script... [11:48: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)245166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [11:48:01]POST & json_proto [11:48:01]process_json_proto [11:48:01]json parsed OK: [11:48:01]protocol is kg_v1.0 [11:48:01]action value=close_receipt [11:48:01]process_action close_receipt [11:48:01]cmd_close_receipt [11:48:01]MH_GetDate [11:48:01]Write to MH i2c: F0 00 00 83 0E 80 [11:48:01]Write i2c OK [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: F0 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: F0 09 00 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: F0 09 00 83 0E 00 72 28 1E 67 2B 09 1E 67 61 [11:48:01]GetLastDocTimeStamp 1730029561 [11:48:01]current date 1730029682 [11:48:01]FM_GetShiftState [11:48:01]SAM_PROTO_GetShiftState [11:48:01]wFMCommunicate request_size=4 [11:48:01]MH_SAM_APDU [11:48:01]CAPDU: 80 13 01 00 [11:48:01]Write to MH i2c: E2 08 00 84 0E 80 13 01 00 00 00 00 00 0F [11:48:01]Write i2c OK [11:48:01]MH_I2C_Read... [11:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:01]Read from MH i2c: E2 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: E2 0E 00 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: E2 0E 00 84 0E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 4E [11:48:01]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:48:01]wFMCommunicate OK [11:48:01]SAM_PROTO_GetShiftState done [11:48:01]FM_GetShiftState done [11:48:01]opened in 1729987372 [11:48:01]opened+sec_in_day 1730073772 [11:48:01]quantity*price = 24017 [11:48:01]sum+1 = 24018 [11:48:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 90 27.10.2024 11:48 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117390 ФПД: 49695571302824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114802&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117390&fm=49695571302824&tin=02508201610067®Number=0000000000091782&sum=24000 [11:48:02]StoreToDocumentArchive [11:48:02]shift 542 fd 117390 [11:48:02]save to /storage/0542/doc_00117390 [11:48:02]save last doc name /storage/0542/doc_00117390 to /storage/kkm_last_doc_name [11:48:02]save OK [11:48:02]Clear old archive folders... [11:48:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:02]tlvbuf is 0172DF60 [11:48:02]SAM_PROTO_ClearQueue [11:48:02]wFMCommunicate request_size=4 [11:48:02]MH_SAM_APDU [11:48:02]CAPDU: 80 09 00 00 [11:48:02]Write to MH i2c: E2 08 00 91 0E 80 09 00 00 00 00 00 00 11 [11:48:02]Write i2c OK [11:48:02]MH_I2C_Read... [11:48:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:02]Read from MH i2c: E2 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 03 00 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 03 00 91 0E 00 90 00 13 [11:48:02]RAPDU: 90 00 [11:48:02]wFMCommunicate OK [11:48:02]SAM_PROTO_ClearQueue done [11:48:02]KKMCreateOFDPacket [11:48:02]OFDProtocolAddRootSTLVToBuf [11:48:02]FM_MakeSignedData [11:48:02]FM_MakeSignedData [11:48:02]SAM_PROTO_SignData [11:48:02]wFMCommunicate request_size=4 [11:48:02]MH_SAM_APDU [11:48:02]CAPDU: 80 0D 01 02 [11:48:02]Write to MH i2c: E2 08 00 92 0E 80 0D 01 02 00 00 00 00 19 [11:48:02]Write i2c OK [11:48:02]MH_I2C_Read... [11:48:02]OFD Sender: No OFD packet to send [11:48:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:02]Read from MH i2c: E2 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 03 00 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 03 00 92 0E 00 90 00 14 [11:48:02]RAPDU: 90 00 [11:48:02]wFMCommunicate OK [11:48:02]wFMCommunicate request_size=255 [11:48:02]MH_SAM_APDU [11:48:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5A 00 00 00 F4 03 04 00 72 28 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8E CA 01 00 35 04 06 00 2D [11:48:02]Write to MH i2c: E2 02 01 93 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 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 5A 00 00 00 F4 03 04 00 72 28 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8E CA 01 00 35 04 06 00 2D 00 00 D0 [11:48:02]Write i2c OK [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 [11:48:02]MH_I2C_Read... [11:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:02]Read from MH i2c: E2 03 00 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 03 00 93 0E 00 90 00 15 [11:48:02]RAPDU: 90 00 [11:48:02]wFMCommunicate OK [11:48:02]wFMCommunicate request_size=10 [11:48:02]MH_SAM_APDU [11:48:02]CAPDU: 80 0D 02 02 05 32 A6 DF D9 A8 [11:48:02]Write to MH i2c: E2 0D 00 94 0E 80 0D 02 02 05 00 32 A6 DF D9 A8 00 00 5E [11:48:02]Write i2c OK [11:48:02]MH_I2C_Read... [11:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:03]Read from MH i2c: E2 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 94 0E 00 90 00 16 [11:48:03]RAPDU: 90 00 [11:48:03]wFMCommunicate OK [11:48:03]wFMCommunicate request_size=4 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 0D 03 02 [11:48:03]Write to MH i2c: E2 08 00 95 0E 80 0D 03 02 00 00 00 00 1E [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:03]Read from MH i2c: E2 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 0B 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 0B 00 95 0E 00 64 DC B1 53 EE 96 15 17 90 00 13 [11:48:03]RAPDU: 64 DC B1 53 EE 96 15 17 90 00 [11:48:03]wFMCommunicate OK [11:48:03]SAM_PROTO_SignData done [11:48:03]FM_MakeSignedData done [11:48:03]CreateOFDProtocolMessage [11:48:03]wFMCommunicate request_size=4 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 11 00 00 [11:48:03]Write to MH i2c: E2 08 00 96 0E 80 11 00 00 00 00 00 00 1E [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:03]Read from MH i2c: E2 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 17 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 17 00 96 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 75 [11:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:48:03]wFMCommunicate OK [11:48:03]CreateOFDProtocolMessage done [11:48:03]OFDSenderStorePacket 117390 [11:48:03]StoreOFDPacket docnum=117390 [11:48:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 43 AC 07 01 EC 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5A 00 00 00 F4 03 04 00 72 28 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8E CA 01 00 35 04 06 00 2D 32 A6 DF D9 A8 64 DC B1 53 EE 96 15 17 [11:48:03]CheckFolder [11:48:03]dirname=/storage/ofd_packets [11:48:03]CheckFolder done [11:48:03]ProducePacketName [11:48:03]name=ofd_packets/00117390 [11:48:03]NVStorageSaveData ofd_packets/00117390 [11:48:03]File name is /storage/ofd_packets/00117390 [11:48:03]Write 301 bytes [11:48:03]NVStorageSaveData done [11:48:03]OFDSenderStorePacket done [11:48:03]KKMCreateOFDPacket done [11:48:03]NVStorageSaveData kkm_last_timestamp [11:48:03]File name is /storage/kkm_last_timestamp [11:48:03]Write 4 bytes [11:48:03]NVStorageSaveData done [11:48:03]ExternCall_PrintAddStr [11:48:03]wPrintStart [11:48:03]Write to MH i2c: 01 00 00 97 0E A5 [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: 01 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: 01 07 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: 01 07 00 97 0E 00 00 00 00 00 FF 0F BA [11:48:03]RasterBufferAndPrint [11:48:03]line Счет N : (1)245166 [11:48:03]line ИНН: 02508201610067 [11:48:03]line Контрольно-Кассовый Чек [11:48:03]line ПРОДАЖА [11:48:03]line ТРК (МРК, ГНК) : 11 [11:48:03]line Товар: 2710124130 [11:48:03]line Аи-92-К-2 [11:48:03]line 3.590 * 66.90 [11:48:03]line = 240.17 [11:48:03]line НДС 12% НСП 1% [11:48:03]line > о реализуемом товаре [11:48:03]line ОКРУГЛЕНИЕ: -0.17 [11:48:03]line ИТОГО: 240.00 [11:48:03]line Внесено: 240.00 [11:48:03]line СДАЧА: 0.00 [11:48:03]line НСП 1% : 2.12 [11:48:03]line НДС 12% : 25.50 [11:48:03]line Наличными: 240.00 [11:48:03]line Безнал.: 0.00 [11:48:03]line Место: АЗС № 173 "Партнер Нефть" [11:48:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:48:03]line СНО: Общий режим [11:48:03]line Чек 90 27.10.2024 11:48 [11:48:03]line Смена: 542 ФФД: 1.0 [11:48:03]line ЗНМ: 0300000115 [11:48:03]line РНМ: 0000000000091782 [11:48:03]line Версия ККМ: 001 [11:48:03]line ФМ: 0000000000871767 [11:48:03]line ФД: 117390 [11:48:03]line ФПД: 49695571302824 [11:48:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114802&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117390&fm=49695571302824&tin=02508201610067®Number=0000000000091782&sum=24000 [11:48:03]OFD Sender: Processing packet 117390 [packets to send 76, broken 75] [11:48:03]ProducePacketName [11:48:03]name=ofd_packets/00117390 [11:48:03]OFD Sender: To server: pG, [11:48:03]CommunicateWithHost lk.salyk.kg:30040 [11:48:03]ConnectInit lk.salyk.kg [11:48:03]written 0, free lines is 4095 [11:48:03]Connected sock=10 [11:48: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 36 37 0F 01 00 00 43 AC 07 01 EC 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5A 00 00 00 F4 03 04 00 72 28 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8E CA 01 00 35 04 06 00 2D 32 A6 DF D9 A8 64 DC B1 53 EE 96 15 17 [11:48: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 36 37 4F 00 00 00 6A 79 47 00 1C 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 36 37 10 04 04 00 8E CA 01 00 F4 03 04 00 30 D4 1D 67 B6 04 01 00 00 53 AB 96 91 97 99 53 86 [11:48:03]CommunicateWithHost err = 0 [11:48:03]CheckOFDResponse [11:48:03]1017 (14) - 77093643461234 [11:48:03]1041 (16) - 0000000000871767 [11:48:03]1040 (4) - 117390 [11:48:03]1012 (4) - 27.10.2024 05:48 [11:48:03]1206 (1) - 0 [11:48:03]OFD Sender: Remove packet 117390 [11:48:03]ProducePacketName [11:48:03]name=ofd_packets/00117390 [11:48:03]NVStorageDeleteData [11:48:03]Write to MH i2c: 01 00 00 C1 0E CF [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: 01 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: 01 07 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 A9 0C 8B [11:48:03]RasterBufferAndPrint [11:48:03]line [11:48:03]line [11:48:03]line [11:48:03]line [11:48:03]line [11:48:03]written 0, free lines is 3245 [11:48:03]MH_Cut [11:48:03]Write to MH i2c: D1 01 00 C8 0E 01 A8 [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: D1 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: D1 01 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: D1 01 00 C8 0E 00 A7 [11:48:03]Write to MH i2c: 01 00 00 C9 0E D7 [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:04]OFD Sender: No OFD packet to send [11:48:04]*** Cut start [11:48:04]*** Purtial cut [11:48:04]*** Stage 1: CUTSNS_PIN = 1 [11:48:05]Read from MH i2c: 01 [11:48:05]MH_I2C_Read... [11:48:05]*** Stop cut motor [11:48:05]*** Cut end [11:48:05]Read from MH i2c: 01 07 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 07 00 C9 0E 00 00 00 00 00 FF 0F EC [11:48:05]process_action close_receipt done [11:48:05]requested_data is exist [11:48:05]produce_requested_data [11:48:05]requested_item fm.sn is exist - process it [11:48:05]wFMCommunicate request_size=4 [11:48:05]MH_SAM_APDU [11:48:05]CAPDU: 80 11 00 00 [11:48:05]Write to MH i2c: E2 08 00 CA 0E 80 11 00 00 00 00 00 00 52 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 17 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 17 00 CA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A9 [11:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:48:05]wFMCommunicate OK [11:48:05]requested_item fd.num is exist - process it [11:48:05]SAM_PROTO_GetFieldsCounters [11:48:05]wFMCommunicate request_size=4 [11:48:05]MH_SAM_APDU [11:48:05]CAPDU: 80 13 00 00 [11:48:05]Write to MH i2c: E2 08 00 CB 0E 80 13 00 00 00 00 00 00 55 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 62 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 62 00 CB 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8E CA 01 00 0E 04 04 00 1E 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 03 [11:48: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8E CA 01 00 0E 04 04 00 1E 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 [11:48:05]wFMCommunicate OK [11:48:05]SAM_PROTO_GetFieldsCounters done [11:48:05]requested_item shift.num is exist - process it [11:48:05]requested_item shift.opened is exist - process it [11:48:05]req_shift_opened [11:48:05]FM_GetShiftState [11:48:05]SAM_PROTO_GetShiftState [11:48:05]wFMCommunicate request_size=4 [11:48:05]MH_SAM_APDU [11:48:05]CAPDU: 80 13 01 00 [11:48:05]Write to MH i2c: E2 08 00 CC 0E 80 13 01 00 00 00 00 00 57 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 0E 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 0E 00 CC 0E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 96 [11:48:05]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:48:05]wFMCommunicate OK [11:48:05]SAM_PROTO_GetShiftState done [11:48:05]FM_GetShiftState done [11:48:05]req_shift_opened done [11:48:05]requested_item shift.open_date is exist - process it [11:48:05]req_shift_open_date [11:48:05]req_shift_open_date done [11:48:05]produce_requested_data done [11:48:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117390,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:48:05]process_action_free close_receipt [11:48:05]json_value_free [11:48:05]json_value_free done [11:48:05]process_json_proto returns [11:48:05]Send response to host [11:48:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117390,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:48:05]free response buf [11:48:05]execute_script done [11:48:05]execute_script returns [11:48:05]free content buf [11:48:05]Sock 9.Close socket [11:48:05]Sock 9.Thread stoped [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]accept exits with 7 [11:50:29]New connection [11:50:29]New thread 3067600228 created [11:50:29]Thread 3067456868 joined [11:50:29]Waiting for new connection... [11:50:29] Sock 7.Parse request [11:50:29]Sock 7.Check first char [11:50:29]Sock 7.First char is OK [11:50:29]request: POST /json_proto HTTP/1.0 [11:50:29]Method: POST [11:50:29]URL: /json_proto [11:50:29]Method is POST - this is cgi request [11:50:29]url: /json_proto [11:50:29]query_string will be loaded in cgi processing [11:50:29]execute_cgi json_proto POST (null) [11:50:29]execute_cgi path=json_proto method=POST [11:50:29]POST find Content-Length [11:50:29]Host: 172.17.96.67:8080 [11:50:29]Content-Length: 682 [11:50:29]Content-Type: application/json [11:50:29] [11:50:29]POST finish read [11:50:29]Found Content-Length = 682 [11:50:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:50:29]execute_script... [11:50:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:50:29]POST & json_proto [11:50:29]process_json_proto [11:50:29]json parsed OK: [11:50:29]protocol is kg_v1.0 [11:50:29]action value=close_receipt [11:50:29]process_action close_receipt [11:50:29]cmd_close_receipt [11:50:29]MH_GetDate [11:50:29]Write to MH i2c: F0 00 00 CD 0E CA [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: F0 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: F0 09 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: F0 09 00 CD 0E 00 06 29 1E 67 2B 09 1E 67 40 [11:50:29]GetLastDocTimeStamp 1730029682 [11:50:29]current date 1730029830 [11:50:29]FM_GetShiftState [11:50:29]SAM_PROTO_GetShiftState [11:50:29]wFMCommunicate request_size=4 [11:50:29]MH_SAM_APDU [11:50:29]CAPDU: 80 13 01 00 [11:50:29]Write to MH i2c: E2 08 00 CE 0E 80 13 01 00 00 00 00 00 59 [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:29]Read from MH i2c: E2 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 0E 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 0E 00 CE 0E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 98 [11:50:29]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:50:29]wFMCommunicate OK [11:50:29]SAM_PROTO_GetShiftState done [11:50:29]FM_GetShiftState done [11:50:29]opened in 1729987372 [11:50:29]opened+sec_in_day 1730073772 [11:50:29]quantity*price = 100015 [11:50:29]sum+1 = 100017 [11:50:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 91 27.10.2024 11:50 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117391 ФПД: 252601383233223 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=0000000000871767&fd_number=117391&fm=252601383233223&tin=02508201610067®Number=0000000000091782&sum=100000 [11:50:30]StoreToDocumentArchive [11:50:30]shift 542 fd 117391 [11:50:30]save to /storage/0542/doc_00117391 [11:50:30]save last doc name /storage/0542/doc_00117391 to /storage/kkm_last_doc_name [11:50:30]save OK [11:50:30]Clear old archive folders... [11:50:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:30]tlvbuf is 01724DF0 [11:50:30]SAM_PROTO_ClearQueue [11:50:30]wFMCommunicate request_size=4 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 09 00 00 [11:50:30]Write to MH i2c: E2 08 00 DB 0E 80 09 00 00 00 00 00 00 5B [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 DB 0E 00 90 00 5D [11:50:30]RAPDU: 90 00 [11:50:30]wFMCommunicate OK [11:50:30]SAM_PROTO_ClearQueue done [11:50:30]KKMCreateOFDPacket [11:50:30]OFDProtocolAddRootSTLVToBuf [11:50:30]FM_MakeSignedData [11:50:30]FM_MakeSignedData [11:50:30]SAM_PROTO_SignData [11:50:30]wFMCommunicate request_size=4 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 0D 01 02 [11:50:30]Write to MH i2c: E2 08 00 DC 0E 80 0D 01 02 00 00 00 00 63 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 DC 0E 00 90 00 5E [11:50:30]RAPDU: 90 00 [11:50:30]wFMCommunicate OK [11:50:30]wFMCommunicate request_size=255 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5B 00 00 00 F4 03 04 00 06 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8F CA 01 00 35 04 06 00 E5 [11:50:30]Write to MH i2c: E2 02 01 DD 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 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 5B 00 00 00 F4 03 04 00 06 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8F CA 01 00 35 04 06 00 E5 00 00 5D [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 DD 0E 00 90 00 5F [11:50:30]RAPDU: 90 00 [11:50:30]wFMCommunicate OK [11:50:30]wFMCommunicate request_size=10 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 0D 02 02 05 BD 57 B7 A6 C7 [11:50:30]Write to MH i2c: E2 0D 00 DE 0E 80 0D 02 02 05 00 BD 57 B7 A6 C7 00 00 A8 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 DE 0E 00 90 00 60 [11:50:30]RAPDU: 90 00 [11:50:30]wFMCommunicate OK [11:50:30]wFMCommunicate request_size=4 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 0D 03 02 [11:50:30]Write to MH i2c: E2 08 00 DF 0E 80 0D 03 02 00 00 00 00 68 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 0B 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 0B 00 DF 0E 00 7D 0F 74 7C 2B 97 4E 28 90 00 1D [11:50:30]RAPDU: 7D 0F 74 7C 2B 97 4E 28 90 00 [11:50:30]wFMCommunicate OK [11:50:30]SAM_PROTO_SignData done [11:50:30]FM_MakeSignedData done [11:50:30]CreateOFDProtocolMessage [11:50:30]wFMCommunicate request_size=4 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 11 00 00 [11:50:30]Write to MH i2c: E2 08 00 E0 0E 80 11 00 00 00 00 00 00 68 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 17 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 17 00 E0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BF [11:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:50:30]wFMCommunicate OK [11:50:30]CreateOFDProtocolMessage done [11:50:30]OFDSenderStorePacket 117391 [11:50:30]StoreOFDPacket docnum=117391 [11:50:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 22 FB 07 01 FE 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 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 5B 00 00 00 F4 03 04 00 06 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8F CA 01 00 35 04 06 00 E5 BD 57 B7 A6 C7 7D 0F 74 7C 2B 97 4E 28 [11:50:30]CheckFolder [11:50:30]dirname=/storage/ofd_packets [11:50:30]CheckFolder done [11:50:30]ProducePacketName [11:50:30]name=ofd_packets/00117391 [11:50:30]NVStorageSaveData ofd_packets/00117391 [11:50:30]File name is /storage/ofd_packets/00117391 [11:50:30]Write 301 bytes [11:50:30]NVStorageSaveData done [11:50:30]OFDSenderStorePacket done [11:50:30]KKMCreateOFDPacket done [11:50:30]NVStorageSaveData kkm_last_timestamp [11:50:30]File name is /storage/kkm_last_timestamp [11:50:30]Write 4 bytes [11:50:30]NVStorageSaveData done [11:50:30]ExternCall_PrintAddStr [11:50:30]wPrintStart [11:50:30]Write to MH i2c: 01 00 00 E1 0E EF [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: 01 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: 01 07 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: 01 07 00 E1 0E 00 00 00 00 00 FF 0F 04 [11:50:30]RasterBufferAndPrint [11:50:30]line Счет N : (1)245167 [11:50:30]line ИНН: 02508201610067 [11:50:30]line Контрольно-Кассовый Чек [11:50:30]line ПРОДАЖА [11:50:30]line ТРК (МРК, ГНК) : 11 [11:50:30]line Товар: 2710124130 [11:50:30]line Аи-92-К-2 [11:50:30]line 14.950 * 66.90 [11:50:30]line = 1000.16 [11:50:30]line НДС 12% НСП 1% [11:50:30]line > о реализуемом товаре [11:50:30]line ОКРУГЛЕНИЕ: -0.16 [11:50:30]line ИТОГО: 1000.00 [11:50:30]line Внесено: 1000.00 [11:50:30]line СДАЧА: 0.00 [11:50:30]line НСП 1% : 8.85 [11:50:30]line НДС 12% : 106.21 [11:50:30]line Наличными: 1000.00 [11:50:30]line Безнал.: 0.00 [11:50:30]line Место: АЗС № 173 "Партнер Нефть" [11:50:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:50:30]line СНО: Общий режим [11:50:30]line Чек 91 27.10.2024 11:50 [11:50:30]line Смена: 542 ФФД: 1.0 [11:50:30]line ЗНМ: 0300000115 [11:50:30]line РНМ: 0000000000091782 [11:50:30]line Версия ККМ: 001 [11:50:30]line ФМ: 0000000000871767 [11:50:30]line ФД: 117391 [11:50:30]line ФПД: 252601383233223 [11:50:30]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=0000000000871767&fd_number=117391&fm=252601383233223&tin=02508201610067®Number=0000000000091782&sum=100000 [11:50:30]OFD Sender: Processing packet 117391 [packets to send 76, broken 75] [11:50:30]ProducePacketName [11:50:30]name=ofd_packets/00117391 [11:50:30]OFD Sender: To server: pG, [11:50:31]CommunicateWithHost lk.salyk.kg:30040 [11:50:31]ConnectInit lk.salyk.kg [11:50:31]written 0, free lines is 4095 [11:50:31]Connected sock=10 [11:50:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 22 FB 07 01 FE 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 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 5B 00 00 00 F4 03 04 00 06 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8F CA 01 00 35 04 06 00 E5 BD 57 B7 A6 C7 7D 0F 74 7C 2B 97 4E 28 [11:50: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 36 37 4F 00 00 00 B7 08 47 00 8B 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 36 37 10 04 04 00 8F CA 01 00 F4 03 04 00 C3 D4 1D 67 B6 04 01 00 00 22 B2 14 3A 3B FD 36 07 [11:50:31]CommunicateWithHost err = 0 [11:50:31]CheckOFDResponse [11:50:31]1017 (14) - 77093643461234 [11:50:31]1041 (16) - 0000000000871767 [11:50:31]1040 (4) - 117391 [11:50:31]1012 (4) - 27.10.2024 05:50 [11:50:31]1206 (1) - 0 [11:50:31]OFD Sender: Remove packet 117391 [11:50:31]ProducePacketName [11:50:31]name=ofd_packets/00117391 [11:50:31]NVStorageDeleteData [11:50:31]Write to MH i2c: 01 00 00 0B 0F 1A [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 0B 0F 00 00 00 00 00 AD 0C DA [11:50:31]RasterBufferAndPrint [11:50:31]line [11:50:31]line [11:50:31]line [11:50:31]line [11:50:31]line [11:50:31]written 0, free lines is 3249 [11:50:31]MH_Cut [11:50:31]Write to MH i2c: D1 01 00 12 0F 01 F3 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: D1 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: D1 01 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: D1 01 00 12 0F 00 F2 [11:50:31]Write to MH i2c: 01 00 00 13 0F 22 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]OFD Sender: No OFD packet to send [11:50:32]*** Cut start [11:50:32]*** Purtial cut [11:50:32]*** Stage 1: CUTSNS_PIN = 1 [11:50:32]Read from MH i2c: 01 [11:50:32]MH_I2C_Read... [11:50:32]*** Stop cut motor [11:50:32]*** Cut end [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 13 0F 00 00 00 00 00 FF 0F 37 [11:50:32]process_action close_receipt done [11:50:32]requested_data is exist [11:50:32]produce_requested_data [11:50:32]requested_item fm.sn is exist - process it [11:50:32]wFMCommunicate request_size=4 [11:50:32]MH_SAM_APDU [11:50:32]CAPDU: 80 11 00 00 [11:50:32]Write to MH i2c: E2 08 00 14 0F 80 11 00 00 00 00 00 00 9D [11:50:32]Write i2c OK [11:50:32]MH_I2C_Read... [11:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:32]Read from MH i2c: E2 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 17 00 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 17 00 14 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F4 [11:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:50:32]wFMCommunicate OK [11:50:32]requested_item fd.num is exist - process it [11:50:32]SAM_PROTO_GetFieldsCounters [11:50:32]wFMCommunicate request_size=4 [11:50:32]MH_SAM_APDU [11:50:32]CAPDU: 80 13 00 00 [11:50:32]Write to MH i2c: E2 08 00 15 0F 80 13 00 00 00 00 00 00 A0 [11:50:32]Write i2c OK [11:50:32]MH_I2C_Read... [11:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:32]Read from MH i2c: E2 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 62 00 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 62 00 15 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8F CA 01 00 0E 04 04 00 1E 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 52 [11:50:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8F CA 01 00 0E 04 04 00 1E 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 [11:50:32]wFMCommunicate OK [11:50:32]SAM_PROTO_GetFieldsCounters done [11:50:32]requested_item shift.num is exist - process it [11:50:32]requested_item shift.opened is exist - process it [11:50:32]req_shift_opened [11:50:32]FM_GetShiftState [11:50:32]SAM_PROTO_GetShiftState [11:50:32]wFMCommunicate request_size=4 [11:50:32]MH_SAM_APDU [11:50:32]CAPDU: 80 13 01 00 [11:50:32]Write to MH i2c: E2 08 00 16 0F 80 13 01 00 00 00 00 00 A2 [11:50:32]Write i2c OK [11:50:32]MH_I2C_Read... [11:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:33]Read from MH i2c: E2 [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: E2 0E 00 [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: E2 0E 00 16 0F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E1 [11:50:33]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [11:50:33]wFMCommunicate OK [11:50:33]SAM_PROTO_GetShiftState done [11:50:33]FM_GetShiftState done [11:50:33]req_shift_opened done [11:50:33]requested_item shift.open_date is exist - process it [11:50:33]req_shift_open_date [11:50:33]req_shift_open_date done [11:50:33]produce_requested_data done [11:50:33]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117391,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [11:50:33]process_action_free close_receipt [11:50:33]json_value_free [11:50:33]json_value_free done [11:50:33]process_json_proto returns [11:50:33]Send response to host [11:50:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117391,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [11:50:33]free response buf [11:50:33]execute_script done [11:50:33]execute_script returns [11:50:33]free content buf [11:50:33]Sock 7.Close socket [11:50:33]Sock 7.Thread stoped [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:33]accept exits with 9 [12:04:33]New connection [12:04:33]New thread 3067456868 created [12:04:33]Thread 3067600228 joined [12:04:33]Waiting for new connection... [12:04:33] Sock 9.Parse request [12:04:33]Sock 9.Check first char [12:04:33]Sock 9.First char is OK [12:04:33]request: POST /json_proto HTTP/1.0 [12:04:33]Method: POST [12:04:33]URL: /json_proto [12:04:33]Method is POST - this is cgi request [12:04:33]url: /json_proto [12:04:33]query_string will be loaded in cgi processing [12:04:33]execute_cgi json_proto POST (null) [12:04:33]execute_cgi path=json_proto method=POST [12:04:33]POST find Content-Length [12:04:33]Host: 172.17.96.67:8080 [12:04:33]Content-Length: 674 [12:04:33]Content-Type: application/json [12:04:33] [12:04:33]POST finish read [12:04:33]Found Content-Length = 674 [12:04:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:04:33]execute_script... [12:04: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)245168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:04:33]POST & json_proto [12:04:33]process_json_proto [12:04:33]json parsed OK: [12:04:33]protocol is kg_v1.0 [12:04:33]action value=close_receipt [12:04:33]process_action close_receipt [12:04:33]cmd_close_receipt [12:04:33]MH_GetDate [12:04:33]Write to MH i2c: F0 00 00 17 0F 15 [12:04:33]Write i2c OK [12:04:33]MH_I2C_Read... [12:04:33]Read from MH i2c: F0 [12:04:33]MH_I2C_Read... [12:04:33]Read from MH i2c: F0 09 00 [12:04:33]MH_I2C_Read... [12:04:33]Read from MH i2c: F0 09 00 17 0F 00 52 2C 1E 67 2B 09 1E 67 DA [12:04:33]GetLastDocTimeStamp 1730029830 [12:04:33]current date 1730030674 [12:04:33]FM_GetShiftState [12:04:33]SAM_PROTO_GetShiftState [12:04:33]wFMCommunicate request_size=4 [12:04:33]MH_SAM_APDU [12:04:33]CAPDU: 80 13 01 00 [12:04:33]Write to MH i2c: E2 08 00 18 0F 80 13 01 00 00 00 00 00 A4 [12:04:33]Write i2c OK [12:04:33]MH_I2C_Read... [12:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:33]Read from MH i2c: E2 [12:04:33]MH_I2C_Read... [12:04:33]Read from MH i2c: E2 0E 00 [12:04:33]MH_I2C_Read... [12:04:33]Read from MH i2c: E2 0E 00 18 0F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E3 [12:04:33]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:04:33]wFMCommunicate OK [12:04:33]SAM_PROTO_GetShiftState done [12:04:33]FM_GetShiftState done [12:04:33]opened in 1729987372 [12:04:33]opened+sec_in_day 1730073772 [12:04:33]quantity*price = 50063 [12:04:33]sum+1 = 50064 [12:04:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 92 27.10.2024 12:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117392 ФПД: 25756579839487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120434&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117392&fm=25756579839487&tin=02508201610067®Number=0000000000091782&sum=50000 [12:04:34]StoreToDocumentArchive [12:04:34]shift 542 fd 117392 [12:04:34]save to /storage/0542/doc_00117392 [12:04:34]save last doc name /storage/0542/doc_00117392 to /storage/kkm_last_doc_name [12:04:34]save OK [12:04:34]Clear old archive folders... [12:04:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:04:34]tlvbuf is 016BD7A0 [12:04:34]SAM_PROTO_ClearQueue [12:04:34]wFMCommunicate request_size=4 [12:04:34]MH_SAM_APDU [12:04:34]CAPDU: 80 09 00 00 [12:04:34]Write to MH i2c: E2 08 00 25 0F 80 09 00 00 00 00 00 00 A6 [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:34]Read from MH i2c: E2 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 03 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 03 00 25 0F 00 90 00 A8 [12:04:34]RAPDU: 90 00 [12:04:34]wFMCommunicate OK [12:04:34]SAM_PROTO_ClearQueue done [12:04:34]KKMCreateOFDPacket [12:04:34]OFDProtocolAddRootSTLVToBuf [12:04:34]FM_MakeSignedData [12:04:34]FM_MakeSignedData [12:04:34]SAM_PROTO_SignData [12:04:34]wFMCommunicate request_size=4 [12:04:34]MH_SAM_APDU [12:04:34]CAPDU: 80 0D 01 02 [12:04:34]Write to MH i2c: E2 08 00 26 0F 80 0D 01 02 00 00 00 00 AE [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:34]Read from MH i2c: E2 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 03 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 03 00 26 0F 00 90 00 A9 [12:04:34]RAPDU: 90 00 [12:04:34]wFMCommunicate OK [12:04:34]wFMCommunicate request_size=255 [12:04:34]MH_SAM_APDU [12:04:34]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 5C 00 00 00 F4 03 04 00 52 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 90 CA 01 00 35 04 06 00 17 6C EB CA [12:04:34]Write to MH i2c: E2 02 01 27 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 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 5C 00 00 00 F4 03 04 00 52 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 90 CA 01 00 35 04 06 00 17 6C EB CA 00 00 D0 [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:34]Read from MH i2c: E2 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 03 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 03 00 27 0F 00 90 00 AA [12:04:34]RAPDU: 90 00 [12:04:34]wFMCommunicate OK [12:04:34]wFMCommunicate request_size=7 [12:04:34]MH_SAM_APDU [12:04:34]CAPDU: 80 0D 02 02 02 BD FF [12:04:34]Write to MH i2c: E2 0A 00 28 0F 80 0D 02 02 02 00 BD FF 00 00 71 [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:34]Read from MH i2c: E2 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 03 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 03 00 28 0F 00 90 00 AB [12:04:34]RAPDU: 90 00 [12:04:34]wFMCommunicate OK [12:04:34]wFMCommunicate request_size=4 [12:04:34]MH_SAM_APDU [12:04:34]CAPDU: 80 0D 03 02 [12:04:34]Write to MH i2c: E2 08 00 29 0F 80 0D 03 02 00 00 00 00 B3 [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:34]Read from MH i2c: E2 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 0B 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 0B 00 29 0F 00 1F 61 9E FC 3C 4B DD B0 90 00 E2 [12:04:34]RAPDU: 1F 61 9E FC 3C 4B DD B0 90 00 [12:04:34]wFMCommunicate OK [12:04:34]SAM_PROTO_SignData done [12:04:34]FM_MakeSignedData done [12:04:34]CreateOFDProtocolMessage [12:04:34]wFMCommunicate request_size=4 [12:04:34]MH_SAM_APDU [12:04:34]CAPDU: 80 11 00 00 [12:04:34]Write to MH i2c: E2 08 00 2A 0F 80 11 00 00 00 00 00 00 B3 [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:34]Read from MH i2c: E2 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 17 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 17 00 2A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0A [12:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:04:34]wFMCommunicate OK [12:04:34]CreateOFDProtocolMessage done [12:04:34]OFDSenderStorePacket 117392 [12:04:34]StoreOFDPacket docnum=117392 [12:04:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 06 D3 04 01 7C 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 52 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 90 CA 01 00 35 04 06 00 17 6C EB CA BD FF 1F 61 9E FC 3C 4B DD B0 [12:04:34]CheckFolder [12:04:34]dirname=/storage/ofd_packets [12:04:34]CheckFolder done [12:04:34]ProducePacketName [12:04:34]name=ofd_packets/00117392 [12:04:34]NVStorageSaveData ofd_packets/00117392 [12:04:34]File name is /storage/ofd_packets/00117392 [12:04:34]Write 298 bytes [12:04:34]NVStorageSaveData done [12:04:34]OFDSenderStorePacket done [12:04:34]KKMCreateOFDPacket done [12:04:34]NVStorageSaveData kkm_last_timestamp [12:04:34]File name is /storage/kkm_last_timestamp [12:04:34]Write 4 bytes [12:04:34]NVStorageSaveData done [12:04:34]ExternCall_PrintAddStr [12:04:34]wPrintStart [12:04:34]Write to MH i2c: 01 00 00 2B 0F 3A [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: 01 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: 01 07 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: 01 07 00 2B 0F 00 00 00 00 00 FF 0F 4F [12:04:34]RasterBufferAndPrint [12:04:34]line Счет N : (1)245168 [12:04:34]line ИНН: 02508201610067 [12:04:34]line Контрольно-Кассовый Чек [12:04:34]line ПРОДАЖА [12:04:34]line ТРК (МРК, ГНК) : 13 [12:04:34]line Товар: 2710194210 [12:04:34]line ДТ-К-2 [12:04:34]line 6.570 * 76.20 [12:04:34]line = 500.63 [12:04:34]line НДС 12% НСП 1% [12:04:34]line > о реализуемом товаре [12:04:34]line ОКРУГЛЕНИЕ: -0.63 [12:04:34]line ИТОГО: 500.00 [12:04:34]line Внесено: 500.00 [12:04:34]line СДАЧА: 0.00 [12:04:34]line НСП 1% : 4.43 [12:04:34]line НДС 12% : 53.16 [12:04:34]line Наличными: 500.00 [12:04:34]line Безнал.: 0.00 [12:04:34]line Место: АЗС № 173 "Партнер Нефть" [12:04:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:04:34]line СНО: Общий режим [12:04:34]line Чек 92 27.10.2024 12:04 [12:04:34]line Смена: 542 ФФД: 1.0 [12:04:34]line ЗНМ: 0300000115 [12:04:34]line РНМ: 0000000000091782 [12:04:34]line Версия ККМ: 001 [12:04:34]line ФМ: 0000000000871767 [12:04:34]line ФД: 117392 [12:04:34]line ФПД: 25756579839487 [12:04:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120434&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117392&fm=25756579839487&tin=02508201610067®Number=0000000000091782&sum=50000 [12:04:35]OFD Sender: Processing packet 117392 [packets to send 76, broken 75] [12:04:35]ProducePacketName [12:04:35]name=ofd_packets/00117392 [12:04:35]OFD Sender: To server: pG, [12:04:35]CommunicateWithHost lk.salyk.kg:30040 [12:04:35]ConnectInit lk.salyk.kg [12:04:35]written 0, free lines is 4095 [12:04:35]Connected sock=10 [12:04: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 36 37 0C 01 00 00 06 D3 04 01 7C 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 52 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 90 CA 01 00 35 04 06 00 17 6C EB CA BD FF 1F 61 9E FC 3C 4B DD B0 [12:04: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 36 37 4F 00 00 00 C2 42 47 00 4E 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 90 CA 01 00 F4 03 04 00 10 D8 1D 67 B6 04 01 00 00 4D FE 46 5A 0B C9 25 84 [12:04:35]CommunicateWithHost err = 0 [12:04:35]CheckOFDResponse [12:04:35]1017 (14) - 77093643461234 [12:04:35]1041 (16) - 0000000000871767 [12:04:35]1040 (4) - 117392 [12:04:35]1012 (4) - 27.10.2024 06:05 [12:04:35]1206 (1) - 0 [12:04:35]OFD Sender: Remove packet 117392 [12:04:35]ProducePacketName [12:04:35]name=ofd_packets/00117392 [12:04:35]NVStorageDeleteData [12:04:35]Write to MH i2c: 01 00 00 55 0F 64 [12:04:35]Write i2c OK [12:04:35]MH_I2C_Read... [12:04:35]Read from MH i2c: 01 [12:04:35]MH_I2C_Read... [12:04:35]Read from MH i2c: 01 07 00 [12:04:35]MH_I2C_Read... [12:04:35]Read from MH i2c: 01 07 00 55 0F 00 00 00 00 00 A2 0C 19 [12:04:35]RasterBufferAndPrint [12:04:35]line [12:04:35]line [12:04:35]line [12:04:35]line [12:04:35]line [12:04:35]written 0, free lines is 3238 [12:04:35]MH_Cut [12:04:35]Write to MH i2c: D1 01 00 5C 0F 01 3D [12:04:35]Write i2c OK [12:04:35]MH_I2C_Read... [12:04:35]Read from MH i2c: D1 [12:04:35]MH_I2C_Read... [12:04:35]Read from MH i2c: D1 01 00 [12:04:35]MH_I2C_Read... [12:04:35]Read from MH i2c: D1 01 00 5C 0F 00 3C [12:04:35]Write to MH i2c: 01 00 00 5D 0F 6C [12:04:35]Write i2c OK [12:04:35]MH_I2C_Read... [12:04:36]OFD Sender: No OFD packet to send [12:04:36]*** Cut start [12:04:36]*** Purtial cut [12:04:36]*** Stage 1: CUTSNS_PIN = 1 [12:04:36]Read from MH i2c: 01 [12:04:36]MH_I2C_Read... [12:04:36]*** Stop cut motor [12:04:36]*** Cut end [12:04:36]Read from MH i2c: 01 07 00 [12:04:36]MH_I2C_Read... [12:04:36]Read from MH i2c: 01 07 00 5D 0F 00 00 00 00 00 FF 0F 81 [12:04:36]process_action close_receipt done [12:04:36]requested_data is exist [12:04:36]produce_requested_data [12:04:36]requested_item fm.sn is exist - process it [12:04:36]wFMCommunicate request_size=4 [12:04:36]MH_SAM_APDU [12:04:36]CAPDU: 80 11 00 00 [12:04:36]Write to MH i2c: E2 08 00 5E 0F 80 11 00 00 00 00 00 00 E7 [12:04:36]Write i2c OK [12:04:36]MH_I2C_Read... [12:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:36]Read from MH i2c: E2 [12:04:36]MH_I2C_Read... [12:04:36]Read from MH i2c: E2 17 00 [12:04:36]MH_I2C_Read... [12:04:36]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 36 37 90 00 3E [12:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:04:36]wFMCommunicate OK [12:04:36]requested_item fd.num is exist - process it [12:04:36]SAM_PROTO_GetFieldsCounters [12:04:36]wFMCommunicate request_size=4 [12:04:36]MH_SAM_APDU [12:04:36]CAPDU: 80 13 00 00 [12:04:36]Write to MH i2c: E2 08 00 5F 0F 80 13 00 00 00 00 00 00 EA [12:04:36]Write i2c OK [12:04:36]MH_I2C_Read... [12:04:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:37]Read from MH i2c: E2 [12:04:37]MH_I2C_Read... [12:04:37]Read from MH i2c: E2 62 00 [12:04:37]MH_I2C_Read... [12:04:37]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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 90 CA 01 00 0E 04 04 00 1E 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 A0 [12:04: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 90 CA 01 00 0E 04 04 00 1E 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 [12:04:37]wFMCommunicate OK [12:04:37]SAM_PROTO_GetFieldsCounters done [12:04:37]requested_item shift.num is exist - process it [12:04:37]requested_item shift.opened is exist - process it [12:04:37]req_shift_opened [12:04:37]FM_GetShiftState [12:04:37]SAM_PROTO_GetShiftState [12:04:37]wFMCommunicate request_size=4 [12:04:37]MH_SAM_APDU [12:04:37]CAPDU: 80 13 01 00 [12:04:37]Write to MH i2c: E2 08 00 60 0F 80 13 01 00 00 00 00 00 EC [12:04:37]Write i2c OK [12:04:37]MH_I2C_Read... [12:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:37]Read from MH i2c: E2 [12:04:37]MH_I2C_Read... [12:04:37]Read from MH i2c: E2 0E 00 [12:04:37]MH_I2C_Read... [12:04:37]Read from MH i2c: E2 0E 00 60 0F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2B [12:04:37]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:04:37]wFMCommunicate OK [12:04:37]SAM_PROTO_GetShiftState done [12:04:37]FM_GetShiftState done [12:04:37]req_shift_opened done [12:04:37]requested_item shift.open_date is exist - process it [12:04:37]req_shift_open_date [12:04:37]req_shift_open_date done [12:04:37]produce_requested_data done [12:04:37]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117392,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:04:37]process_action_free close_receipt [12:04:37]json_value_free [12:04:37]json_value_free done [12:04:37]process_json_proto returns [12:04:37]Send response to host [12:04:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117392,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:04:37]free response buf [12:04:37]execute_script done [12:04:37]execute_script returns [12:04:37]free content buf [12:04:37]Sock 9.Close socket [12:04:37]Sock 9.Thread stoped [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10: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:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:04]accept exits with 7 [12:14:04]New connection [12:14:04]New thread 3067600228 created [12:14:04]Thread 3067456868 joined [12:14:04]Waiting for new connection... [12:14:04] Sock 7.Parse request [12:14:04]Sock 7.Check first char [12:14:04]Sock 7.First char is OK [12:14:04]request: POST /json_proto HTTP/1.0 [12:14:04]Method: POST [12:14:04]URL: /json_proto [12:14:04]Method is POST - this is cgi request [12:14:04]url: /json_proto [12:14:04]query_string will be loaded in cgi processing [12:14:04]execute_cgi json_proto POST (null) [12:14:04]execute_cgi path=json_proto method=POST [12:14:04]POST find Content-Length [12:14:04]Host: 172.17.96.67:8080 [12:14:04]Content-Length: 677 [12:14:04]Content-Type: application/json [12:14:04] [12:14:04]POST finish read [12:14:04]Found Content-Length = 677 [12:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:14:04]execute_script... [12:14: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)245169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:14:04]POST & json_proto [12:14:04]process_json_proto [12:14:04]json parsed OK: [12:14:04]protocol is kg_v1.0 [12:14:04]action value=close_receipt [12:14:04]process_action close_receipt [12:14:04]cmd_close_receipt [12:14:04]MH_GetDate [12:14:04]Write to MH i2c: F0 00 00 61 0F 5F [12:14:05]Write i2c OK [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: F0 [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: F0 09 00 [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: F0 09 00 61 0F 00 8E 2E 1E 67 2B 09 1E 67 62 [12:14:05]GetLastDocTimeStamp 1730030674 [12:14:05]current date 1730031246 [12:14:05]FM_GetShiftState [12:14:05]SAM_PROTO_GetShiftState [12:14:05]wFMCommunicate request_size=4 [12:14:05]MH_SAM_APDU [12:14:05]CAPDU: 80 13 01 00 [12:14:05]Write to MH i2c: E2 08 00 62 0F 80 13 01 00 00 00 00 00 EE [12:14:05]Write i2c OK [12:14:05]MH_I2C_Read... [12:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:05]Read from MH i2c: E2 [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: E2 0E 00 [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: E2 0E 00 62 0F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2D [12:14:05]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:14:05]wFMCommunicate OK [12:14:05]SAM_PROTO_GetShiftState done [12:14:05]FM_GetShiftState done [12:14:05]opened in 1729987372 [12:14:05]opened+sec_in_day 1730073772 [12:14:05]quantity*price = 50041 [12:14:05]sum+1 = 50042 [12:14: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 93 27.10.2024 12:14 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117393 ФПД: 261461635806135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121406&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117393&fm=261461635806135&tin=02508201610067®Number=0000000000091782&sum=50000 [12:14:06]StoreToDocumentArchive [12:14:06]shift 542 fd 117393 [12:14:06]save to /storage/0542/doc_00117393 [12:14:06]save last doc name /storage/0542/doc_00117393 to /storage/kkm_last_doc_name [12:14:06]save OK [12:14:06]Clear old archive folders... [12:14:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:06]tlvbuf is 016EEE70 [12:14:06]SAM_PROTO_ClearQueue [12:14:06]wFMCommunicate request_size=4 [12:14:06]MH_SAM_APDU [12:14:06]CAPDU: 80 09 00 00 [12:14:06]Write to MH i2c: E2 08 00 6F 0F 80 09 00 00 00 00 00 00 F0 [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:06]Read from MH i2c: E2 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 03 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 03 00 6F 0F 00 90 00 F2 [12:14:06]RAPDU: 90 00 [12:14:06]wFMCommunicate OK [12:14:06]SAM_PROTO_ClearQueue done [12:14:06]KKMCreateOFDPacket [12:14:06]OFDProtocolAddRootSTLVToBuf [12:14:06]FM_MakeSignedData [12:14:06]FM_MakeSignedData [12:14:06]SAM_PROTO_SignData [12:14:06]wFMCommunicate request_size=4 [12:14:06]MH_SAM_APDU [12:14:06]CAPDU: 80 0D 01 02 [12:14:06]Write to MH i2c: E2 08 00 70 0F 80 0D 01 02 00 00 00 00 F8 [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:06]Read from MH i2c: E2 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 03 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 03 00 70 0F 00 90 00 F3 [12:14:06]RAPDU: 90 00 [12:14:06]wFMCommunicate OK [12:14:06]wFMCommunicate request_size=255 [12:14:06]MH_SAM_APDU [12:14: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 5D 00 00 00 F4 03 04 00 8E 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 91 CA 01 00 35 04 06 00 ED [12:14:06]Write to MH i2c: E2 02 01 71 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 8E 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 91 CA 01 00 35 04 06 00 ED 00 00 91 [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:06]Read from MH i2c: E2 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 03 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 03 00 71 0F 00 90 00 F4 [12:14:06]RAPDU: 90 00 [12:14:06]wFMCommunicate OK [12:14:06]wFMCommunicate request_size=10 [12:14:06]MH_SAM_APDU [12:14:06]CAPDU: 80 0D 02 02 05 CC 47 EC B3 B7 [12:14:06]Write to MH i2c: E2 0D 00 72 0F 80 0D 02 02 05 00 CC 47 EC B3 B7 00 00 6E [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:06]Read from MH i2c: E2 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 03 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [12:14:06]RAPDU: 90 00 [12:14:06]wFMCommunicate OK [12:14:06]wFMCommunicate request_size=4 [12:14:06]MH_SAM_APDU [12:14:06]CAPDU: 80 0D 03 02 [12:14:06]Write to MH i2c: E2 08 00 73 0F 80 0D 03 02 00 00 00 00 FD [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:06]OFD Sender: No OFD packet to send [12:14:06]Read from MH i2c: E2 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 0B 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 0B 00 73 0F 00 4D BD 85 AF 1C 9E EF A3 90 00 88 [12:14:06]RAPDU: 4D BD 85 AF 1C 9E EF A3 90 00 [12:14:06]wFMCommunicate OK [12:14:06]SAM_PROTO_SignData done [12:14:06]FM_MakeSignedData done [12:14:06]CreateOFDProtocolMessage [12:14:06]wFMCommunicate request_size=4 [12:14:06]MH_SAM_APDU [12:14:06]CAPDU: 80 11 00 00 [12:14:06]Write to MH i2c: E2 08 00 74 0F 80 11 00 00 00 00 00 00 FD [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:06]Read from MH i2c: E2 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 17 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 17 00 74 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 54 [12:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:14:06]wFMCommunicate OK [12:14:06]CreateOFDProtocolMessage done [12:14:06]OFDSenderStorePacket 117393 [12:14:06]StoreOFDPacket docnum=117393 [12:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 39 FB 07 01 F7 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 5D 00 00 00 F4 03 04 00 8E 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 91 CA 01 00 35 04 06 00 ED CC 47 EC B3 B7 4D BD 85 AF 1C 9E EF A3 [12:14:06]CheckFolder [12:14:06]dirname=/storage/ofd_packets [12:14:06]CheckFolder done [12:14:06]ProducePacketName [12:14:06]name=ofd_packets/00117393 [12:14:06]NVStorageSaveData ofd_packets/00117393 [12:14:06]File name is /storage/ofd_packets/00117393 [12:14:06]Write 301 bytes [12:14:06]NVStorageSaveData done [12:14:06]OFDSenderStorePacket done [12:14:06]KKMCreateOFDPacket done [12:14:06]NVStorageSaveData kkm_last_timestamp [12:14:06]File name is /storage/kkm_last_timestamp [12:14:06]Write 4 bytes [12:14:06]NVStorageSaveData done [12:14:06]ExternCall_PrintAddStr [12:14:06]wPrintStart [12:14:06]Write to MH i2c: 01 00 00 75 0F 84 [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: 01 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: 01 07 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: 01 07 00 75 0F 00 00 00 00 00 FF 0F 99 [12:14:06]RasterBufferAndPrint [12:14:06]line Счет N : (1)245169 [12:14:06]line ИНН: 02508201610067 [12:14:06]line Контрольно-Кассовый Чек [12:14:06]line ПРОДАЖА [12:14:06]line ТРК (МРК, ГНК) : 11 [12:14:06]line Товар: 2710124130 [12:14:06]line Аи-92-К-2 [12:14:06]line 7.480 * 66.90 [12:14:06]line = 500.41 [12:14:06]line НДС 12% НСП 1% [12:14:06]line > о реализуемом товаре [12:14:06]line ОКРУГЛЕНИЕ: -0.41 [12:14:06]line ИТОГО: 500.00 [12:14:06]line Внесено: 500.00 [12:14:06]line СДАЧА: 0.00 [12:14:06]line НСП 1% : 4.43 [12:14:06]line НДС 12% : 53.14 [12:14:06]line Наличными: 500.00 [12:14:06]line Безнал.: 0.00 [12:14:06]line Место: АЗС № 173 "Партнер Нефть" [12:14:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:14:06]line СНО: Общий режим [12:14:06]line Чек 93 27.10.2024 12:14 [12:14:06]line Смена: 542 ФФД: 1.0 [12:14:06]line ЗНМ: 0300000115 [12:14:06]line РНМ: 0000000000091782 [12:14:06]line Версия ККМ: 001 [12:14:06]line ФМ: 0000000000871767 [12:14:06]line ФД: 117393 [12:14:06]line ФПД: 261461635806135 [12:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121406&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117393&fm=261461635806135&tin=02508201610067®Number=0000000000091782&sum=50000 [12:14:07]OFD Sender: Processing packet 117393 [packets to send 76, broken 75] [12:14:07]ProducePacketName [12:14:07]name=ofd_packets/00117393 [12:14:07]OFD Sender: To server: pG, [12:14:07]CommunicateWithHost lk.salyk.kg:30040 [12:14:07]ConnectInit lk.salyk.kg [12:14:07]written 0, free lines is 4095 [12:14:07]Connected sock=10 [12:14: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 36 37 0F 01 00 00 39 FB 07 01 F7 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 5D 00 00 00 F4 03 04 00 8E 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 91 CA 01 00 35 04 06 00 ED CC 47 EC B3 B7 4D BD 85 AF 1C 9E EF A3 [12:14: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 36 37 4F 00 00 00 B8 BC 47 00 FB 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 36 37 10 04 04 00 91 CA 01 00 F4 03 04 00 4B DA 1D 67 B6 04 01 00 00 17 39 B1 AD CE 84 57 AD [12:14:07]CommunicateWithHost err = 0 [12:14:07]CheckOFDResponse [12:14:07]1017 (14) - 77093643461234 [12:14:07]1041 (16) - 0000000000871767 [12:14:07]1040 (4) - 117393 [12:14:07]1012 (4) - 27.10.2024 06:14 [12:14:07]1206 (1) - 0 [12:14:07]OFD Sender: Remove packet 117393 [12:14:07]ProducePacketName [12:14:07]name=ofd_packets/00117393 [12:14:07]NVStorageDeleteData [12:14:07]Write to MH i2c: 01 00 00 9F 0F AE [12:14:07]Write i2c OK [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: 01 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: 01 07 00 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: 01 07 00 9F 0F 00 00 00 00 00 A2 0C 63 [12:14:07]RasterBufferAndPrint [12:14:07]line [12:14:07]line [12:14:07]line [12:14:07]line [12:14:07]line [12:14:07]written 0, free lines is 3238 [12:14:07]MH_Cut [12:14:07]Write to MH i2c: D1 01 00 A6 0F 01 87 [12:14:07]Write i2c OK [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: D1 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: D1 01 00 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: D1 01 00 A6 0F 00 86 [12:14:07]Write to MH i2c: 01 00 00 A7 0F B6 [12:14:07]Write i2c OK [12:14:07]MH_I2C_Read... [12:14:07]OFD Sender: No OFD packet to send [12:14:08]*** Cut start [12:14:08]*** Purtial cut [12:14:08]*** Stage 1: CUTSNS_PIN = 1 [12:14:08]Read from MH i2c: 01 [12:14:08]MH_I2C_Read... [12:14:08]*** Stop cut motor [12:14:08]*** Cut end [12:14:08]Read from MH i2c: 01 07 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: 01 07 00 A7 0F 00 00 00 00 00 FF 0F CB [12:14:08]process_action close_receipt done [12:14:08]requested_data is exist [12:14:08]produce_requested_data [12:14:08]requested_item fm.sn is exist - process it [12:14:08]wFMCommunicate request_size=4 [12:14:08]MH_SAM_APDU [12:14:08]CAPDU: 80 11 00 00 [12:14:08]Write to MH i2c: E2 08 00 A8 0F 80 11 00 00 00 00 00 00 31 [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:08]Read from MH i2c: E2 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 17 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 17 00 A8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 88 [12:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:14:08]wFMCommunicate OK [12:14:08]requested_item fd.num is exist - process it [12:14:08]SAM_PROTO_GetFieldsCounters [12:14:08]wFMCommunicate request_size=4 [12:14:08]MH_SAM_APDU [12:14:08]CAPDU: 80 13 00 00 [12:14:08]Write to MH i2c: E2 08 00 A9 0F 80 13 00 00 00 00 00 00 34 [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:08]Read from MH i2c: E2 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 62 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 62 00 A9 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 91 CA 01 00 0E 04 04 00 1E 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 EE [12:14: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 91 CA 01 00 0E 04 04 00 1E 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 [12:14:08]wFMCommunicate OK [12:14:08]SAM_PROTO_GetFieldsCounters done [12:14:08]requested_item shift.num is exist - process it [12:14:08]requested_item shift.opened is exist - process it [12:14:08]req_shift_opened [12:14:08]FM_GetShiftState [12:14:08]SAM_PROTO_GetShiftState [12:14:08]wFMCommunicate request_size=4 [12:14:08]MH_SAM_APDU [12:14:08]CAPDU: 80 13 01 00 [12:14:08]Write to MH i2c: E2 08 00 AA 0F 80 13 01 00 00 00 00 00 36 [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:08]Read from MH i2c: E2 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 0E 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 0E 00 AA 0F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 75 [12:14:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:14:08]wFMCommunicate OK [12:14:08]SAM_PROTO_GetShiftState done [12:14:08]FM_GetShiftState done [12:14:08]req_shift_opened done [12:14:08]requested_item shift.open_date is exist - process it [12:14:08]req_shift_open_date [12:14:08]req_shift_open_date done [12:14:08]produce_requested_data done [12:14:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117393,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:14:08]process_action_free close_receipt [12:14:08]json_value_free [12:14:08]json_value_free done [12:14:08]process_json_proto returns [12:14:08]Send response to host [12:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117393,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:14:08]free response buf [12:14:08]execute_script done [12:14:08]execute_script returns [12:14:08]free content buf [12:14:08]Sock 7.Close socket [12:14:08]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:41]accept exits with 9 [12:20:41]New connection [12:20:41]New thread 3067456868 created [12:20:41]Thread 3067600228 joined [12:20:41]Waiting for new connection... [12:20:41] Sock 9.Parse request [12:20:41]Sock 9.Check first char [12:20:41]Sock 9.First char is OK [12:20:41]request: POST /json_proto HTTP/1.0 [12:20:41]Method: POST [12:20:41]URL: /json_proto [12:20:41]Method is POST - this is cgi request [12:20:41]url: /json_proto [12:20:41]query_string will be loaded in cgi processing [12:20:41]execute_cgi json_proto POST (null) [12:20:41]execute_cgi path=json_proto method=POST [12:20:41]POST find Content-Length [12:20:41]Host: 172.17.96.67:8080 [12:20:41]Content-Length: 675 [12:20:41]Content-Type: application/json [12:20:41] [12:20:41]POST finish read [12:20:41]Found Content-Length = 675 [12:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:20:41]execute_script... [12:20: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)245170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:20:41]POST & json_proto [12:20:41]process_json_proto [12:20:41]json parsed OK: [12:20:41]protocol is kg_v1.0 [12:20:41]action value=close_receipt [12:20:41]process_action close_receipt [12:20:41]cmd_close_receipt [12:20:41]MH_GetDate [12:20:41]Write to MH i2c: F0 00 00 AB 0F A9 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: F0 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: F0 09 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: F0 09 00 AB 0F 00 1A 30 1E 67 2B 09 1E 67 3A [12:20:41]GetLastDocTimeStamp 1730031246 [12:20:41]current date 1730031642 [12:20:41]FM_GetShiftState [12:20:41]SAM_PROTO_GetShiftState [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 13 01 00 [12:20:41]Write to MH i2c: E2 08 00 AC 0F 80 13 01 00 00 00 00 00 38 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0E 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0E 00 AC 0F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 77 [12:20:41]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_GetShiftState done [12:20:41]FM_GetShiftState done [12:20:41]opened in 1729987372 [12:20:41]opened+sec_in_day 1730073772 [12:20:41]quantity*price = 80010 [12:20:41]sum+1 = 80011 [12:20:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 94 27.10.2024 12:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117394 ФПД: 167519073543061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122042&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117394&fm=167519073543061&tin=02508201610067®Number=0000000000091782&sum=80000 [12:20:42]StoreToDocumentArchive [12:20:42]shift 542 fd 117394 [12:20:42]save to /storage/0542/doc_00117394 [12:20:42]save last doc name /storage/0542/doc_00117394 to /storage/kkm_last_doc_name [12:20:42]save OK [12:20:42]Clear old archive folders... [12:20:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:42]tlvbuf is B6F5F350 [12:20:42]SAM_PROTO_ClearQueue [12:20:42]wFMCommunicate request_size=4 [12:20:42]MH_SAM_APDU [12:20:42]CAPDU: 80 09 00 00 [12:20:42]Write to MH i2c: E2 08 00 B9 0F 80 09 00 00 00 00 00 00 3A [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:42]Read from MH i2c: E2 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 03 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [12:20:42]RAPDU: 90 00 [12:20:42]wFMCommunicate OK [12:20:42]SAM_PROTO_ClearQueue done [12:20:42]KKMCreateOFDPacket [12:20:42]OFDProtocolAddRootSTLVToBuf [12:20:42]FM_MakeSignedData [12:20:42]FM_MakeSignedData [12:20:42]SAM_PROTO_SignData [12:20:42]wFMCommunicate request_size=4 [12:20:42]MH_SAM_APDU [12:20:42]CAPDU: 80 0D 01 02 [12:20:42]Write to MH i2c: E2 08 00 BA 0F 80 0D 01 02 00 00 00 00 42 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:42]Read from MH i2c: E2 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 03 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [12:20:42]RAPDU: 90 00 [12:20:42]wFMCommunicate OK [12:20:42]wFMCommunicate request_size=255 [12:20:42]MH_SAM_APDU [12:20: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 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 5E 00 00 00 F4 03 04 00 1A 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 92 CA 01 00 35 04 06 00 98 5B 92 DF [12:20:42]Write to MH i2c: E2 02 01 BB 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 5E 00 00 00 F4 03 04 00 1A 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 92 CA 01 00 35 04 06 00 98 5B 92 DF 00 00 0B [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:42]Read from MH i2c: E2 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 03 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 03 00 BB 0F 00 90 00 3E [12:20:42]RAPDU: 90 00 [12:20:42]wFMCommunicate OK [12:20:42]wFMCommunicate request_size=7 [12:20:42]MH_SAM_APDU [12:20:42]CAPDU: 80 0D 02 02 02 23 95 [12:20:42]Write to MH i2c: E2 0A 00 BC 0F 80 0D 02 02 02 00 23 95 00 00 01 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 BC 0F 00 90 00 3F [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 0D 03 02 [12:20:43]Write to MH i2c: E2 08 00 BD 0F 80 0D 03 02 00 00 00 00 47 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0B 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0B 00 BD 0F 00 7A E7 8C F9 39 3C AF 4D 90 00 9F [12:20:43]RAPDU: 7A E7 8C F9 39 3C AF 4D 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_SignData done [12:20:43]FM_MakeSignedData done [12:20:43]CreateOFDProtocolMessage [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 11 00 00 [12:20:43]Write to MH i2c: E2 08 00 BE 0F 80 11 00 00 00 00 00 00 47 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 BE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9E [12:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:20:43]wFMCommunicate OK [12:20:43]CreateOFDProtocolMessage done [12:20:43]OFDSenderStorePacket 117394 [12:20:43]StoreOFDPacket docnum=117394 [12:20:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 A1 1E 04 01 54 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5E 00 00 00 F4 03 04 00 1A 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 92 CA 01 00 35 04 06 00 98 5B 92 DF 23 95 7A E7 8C F9 39 3C AF 4D [12:20:43]CheckFolder [12:20:43]dirname=/storage/ofd_packets [12:20:43]CheckFolder done [12:20:43]ProducePacketName [12:20:43]name=ofd_packets/00117394 [12:20:43]NVStorageSaveData ofd_packets/00117394 [12:20:43]File name is /storage/ofd_packets/00117394 [12:20:43]Write 298 bytes [12:20:43]NVStorageSaveData done [12:20:43]OFDSenderStorePacket done [12:20:43]KKMCreateOFDPacket done [12:20:43]NVStorageSaveData kkm_last_timestamp [12:20:43]File name is /storage/kkm_last_timestamp [12:20:43]Write 4 bytes [12:20:43]NVStorageSaveData done [12:20:43]ExternCall_PrintAddStr [12:20:43]wPrintStart [12:20:43]Write to MH i2c: 01 00 00 BF 0F CE [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 BF 0F 00 00 00 00 00 FF 0F E3 [12:20:43]RasterBufferAndPrint [12:20:43]line Счет N : (1)245170 [12:20:43]line ИНН: 02508201610067 [12:20:43]line Контрольно-Кассовый Чек [12:20:43]line ПРОДАЖА [12:20:43]line ТРК (МРК, ГНК) : 13 [12:20:43]line Товар: 2710194210 [12:20:43]line ДТ-К-2 [12:20:43]line 10.500 * 76.20 [12:20:43]line = 800.10 [12:20:43]line НДС 12% НСП 1% [12:20:43]line > о реализуемом товаре [12:20:43]line ОКРУГЛЕНИЕ: -0.10 [12:20:43]line ИТОГО: 800.00 [12:20:43]line Внесено: 800.00 [12:20:43]line СДАЧА: 0.00 [12:20:43]line НСП 1% : 7.08 [12:20:43]line НДС 12% : 84.97 [12:20:43]line Наличными: 800.00 [12:20:43]line Безнал.: 0.00 [12:20:43]line Место: АЗС № 173 "Партнер Нефть" [12:20:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:20:43]line СНО: Общий режим [12:20:43]line Чек 94 27.10.2024 12:20 [12:20:43]line Смена: 542 ФФД: 1.0 [12:20:43]line ЗНМ: 0300000115 [12:20:43]line РНМ: 0000000000091782 [12:20:43]line Версия ККМ: 001 [12:20:43]line ФМ: 0000000000871767 [12:20:43]line ФД: 117394 [12:20:43]line ФПД: 167519073543061 [12:20:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122042&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117394&fm=167519073543061&tin=02508201610067®Number=0000000000091782&sum=80000 [12:20:43]OFD Sender: Processing packet 117394 [packets to send 76, broken 75] [12:20:43]ProducePacketName [12:20:43]name=ofd_packets/00117394 [12:20:43]OFD Sender: To server: pG, [12:20:43]CommunicateWithHost lk.salyk.kg:30040 [12:20:43]ConnectInit lk.salyk.kg [12:20:43]written 0, free lines is 4095 [12:20:43]Connected sock=10 [12:20: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 36 37 0C 01 00 00 A1 1E 04 01 54 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5E 00 00 00 F4 03 04 00 1A 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 92 CA 01 00 35 04 06 00 98 5B 92 DF 23 95 7A E7 8C F9 39 3C AF 4D [12:20: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 36 37 4F 00 00 00 78 C8 47 00 10 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 36 37 10 04 04 00 92 CA 01 00 F4 03 04 00 D8 DB 1D 67 B6 04 01 00 00 7C 22 FF F5 66 EA E4 BE [12:20:43]CommunicateWithHost err = 0 [12:20:43]CheckOFDResponse [12:20:43]1017 (14) - 77093643461234 [12:20:43]1041 (16) - 0000000000871767 [12:20:43]1040 (4) - 117394 [12:20:43]1012 (4) - 27.10.2024 06:21 [12:20:43]1206 (1) - 0 [12:20:43]OFD Sender: Remove packet 117394 [12:20:43]ProducePacketName [12:20:43]name=ofd_packets/00117394 [12:20:43]NVStorageDeleteData [12:20:43]Write to MH i2c: 01 00 00 E9 0F F8 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 E9 0F 00 00 00 00 00 A1 0C AC [12:20:43]RasterBufferAndPrint [12:20:43]line [12:20:43]line [12:20:43]line [12:20:43]line [12:20:43]line [12:20:43]written 0, free lines is 3237 [12:20:43]MH_Cut [12:20:43]Write to MH i2c: D1 01 00 F0 0F 01 D1 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: D1 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: D1 01 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: D1 01 00 F0 0F 00 D0 [12:20:43]Write to MH i2c: 01 00 00 F1 0F 00 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:44]OFD Sender: No OFD packet to send [12:20:44]*** Cut start [12:20:44]*** Purtial cut [12:20:44]*** Stage 1: CUTSNS_PIN = 1 [12:20:45]Read from MH i2c: 01 [12:20:45]MH_I2C_Read... [12:20:45]*** Stop cut motor [12:20:45]*** Cut end [12:20:45]Read from MH i2c: 01 07 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: 01 07 00 F1 0F 00 00 00 00 00 FF 0F 15 [12:20:45]process_action close_receipt done [12:20:45]requested_data is exist [12:20:45]produce_requested_data [12:20:45]requested_item fm.sn is exist - process it [12:20:45]wFMCommunicate request_size=4 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 11 00 00 [12:20:45]Write to MH i2c: E2 08 00 F2 0F 80 11 00 00 00 00 00 00 7B [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 17 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 17 00 F2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D2 [12:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:20:45]wFMCommunicate OK [12:20:45]requested_item fd.num is exist - process it [12:20:45]SAM_PROTO_GetFieldsCounters [12:20:45]wFMCommunicate request_size=4 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 13 00 00 [12:20:45]Write to MH i2c: E2 08 00 F3 0F 80 13 00 00 00 00 00 00 7E [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 62 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 62 00 F3 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 92 CA 01 00 0E 04 04 00 1E 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 3C [12:20: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 92 CA 01 00 0E 04 04 00 1E 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 [12:20:45]wFMCommunicate OK [12:20:45]SAM_PROTO_GetFieldsCounters done [12:20:45]requested_item shift.num is exist - process it [12:20:45]requested_item shift.opened is exist - process it [12:20:45]req_shift_opened [12:20:45]FM_GetShiftState [12:20:45]SAM_PROTO_GetShiftState [12:20:45]wFMCommunicate request_size=4 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 13 01 00 [12:20:45]Write to MH i2c: E2 08 00 F4 0F 80 13 01 00 00 00 00 00 80 [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 0E 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 0E 00 F4 0F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 BF [12:20:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:20:45]wFMCommunicate OK [12:20:45]SAM_PROTO_GetShiftState done [12:20:45]FM_GetShiftState done [12:20:45]req_shift_opened done [12:20:45]requested_item shift.open_date is exist - process it [12:20:45]req_shift_open_date [12:20:45]req_shift_open_date done [12:20:45]produce_requested_data done [12:20:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117394,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:20:45]process_action_free close_receipt [12:20:45]json_value_free [12:20:45]json_value_free done [12:20:45]process_json_proto returns [12:20:45]Send response to host [12:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117394,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:20:45]free response buf [12:20:45]execute_script done [12:20:45]execute_script returns [12:20:45]free content buf [12:20:45]Sock 9.Close socket [12:20:45]Sock 9.Thread stoped [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28: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:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:08]accept exits with 7 [12:33:08]New connection [12:33:08]New thread 3067600228 created [12:33:08]Thread 3067456868 joined [12:33:08]Waiting for new connection... [12:33:08] Sock 7.Parse request [12:33:08]Sock 7.Check first char [12:33:08]Sock 7.First char is OK [12:33:08]request: POST /json_proto HTTP/1.0 [12:33:08]Method: POST [12:33:08]URL: /json_proto [12:33:08]Method is POST - this is cgi request [12:33:08]url: /json_proto [12:33:08]query_string will be loaded in cgi processing [12:33:08]execute_cgi json_proto POST (null) [12:33:08]execute_cgi path=json_proto method=POST [12:33:08]POST find Content-Length [12:33:08]Host: 172.17.96.67:8080 [12:33:08]Content-Length: 677 [12:33:08]Content-Type: application/json [12:33:08] [12:33:08]POST finish read [12:33:08]Found Content-Length = 677 [12:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:33:08]execute_script... [12: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)245171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:33:08]POST & json_proto [12:33:08]process_json_proto [12:33:08]json parsed OK: [12:33:08]protocol is kg_v1.0 [12:33:08]action value=close_receipt [12:33:08]process_action close_receipt [12:33:08]cmd_close_receipt [12:33:08]MH_GetDate [12:33:08]Write to MH i2c: F0 00 00 F5 0F F3 [12:33:08]Write i2c OK [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: F0 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: F0 09 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: F0 09 00 F5 0F 00 06 33 1E 67 2B 09 1E 67 73 [12:33:08]GetLastDocTimeStamp 1730031642 [12:33:08]current date 1730032390 [12:33:08]FM_GetShiftState [12:33:08]SAM_PROTO_GetShiftState [12:33:08]wFMCommunicate request_size=4 [12:33:08]MH_SAM_APDU [12:33:08]CAPDU: 80 13 01 00 [12:33:08]Write to MH i2c: E2 08 00 F6 0F 80 13 01 00 00 00 00 00 82 [12:33:08]Write i2c OK [12:33:08]MH_I2C_Read... [12:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:08]Read from MH i2c: E2 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 0E 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 0E 00 F6 0F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C1 [12:33:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:33:08]wFMCommunicate OK [12:33:08]SAM_PROTO_GetShiftState done [12:33:08]FM_GetShiftState done [12:33:08]opened in 1729987372 [12:33:08]opened+sec_in_day 1730073772 [12:33:08]quantity*price = 30038 [12:33:08]sum+1 = 30039 [12:33: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 95 27.10.2024 12:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117395 ФПД: 82046892157608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123310&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117395&fm=82046892157608&tin=02508201610067®Number=0000000000091782&sum=30000 [12:33:09]StoreToDocumentArchive [12:33:09]shift 542 fd 117395 [12:33:09]save to /storage/0542/doc_00117395 [12:33:09]save last doc name /storage/0542/doc_00117395 to /storage/kkm_last_doc_name [12:33:09]save OK [12:33:09]Clear old archive folders... [12:33:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:09]tlvbuf is 0171AC90 [12:33:09]SAM_PROTO_ClearQueue [12:33:09]wFMCommunicate request_size=4 [12:33:09]MH_SAM_APDU [12:33:09]CAPDU: 80 09 00 00 [12:33:09]Write to MH i2c: E2 08 00 03 10 80 09 00 00 00 00 00 00 85 [12:33:09]Write i2c OK [12:33:09]MH_I2C_Read... [12:33:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:09]Read from MH i2c: E2 [12:33:09]MH_I2C_Read... [12:33:09]Read from MH i2c: E2 03 00 [12:33:09]MH_I2C_Read... [12:33:09]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [12:33:09]RAPDU: 90 00 [12:33:09]wFMCommunicate OK [12:33:09]SAM_PROTO_ClearQueue done [12:33:09]KKMCreateOFDPacket [12:33:09]OFDProtocolAddRootSTLVToBuf [12:33:09]FM_MakeSignedData [12:33:09]FM_MakeSignedData [12:33:09]SAM_PROTO_SignData [12:33:09]wFMCommunicate request_size=4 [12:33:09]MH_SAM_APDU [12:33:09]CAPDU: 80 0D 01 02 [12:33:09]Write to MH i2c: E2 08 00 04 10 80 0D 01 02 00 00 00 00 8D [12:33:09]Write i2c OK [12:33:09]MH_I2C_Read... [12:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:10]Read from MH i2c: E2 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 03 00 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 03 00 04 10 00 90 00 88 [12:33:10]RAPDU: 90 00 [12:33:10]wFMCommunicate OK [12:33:10]wFMCommunicate request_size=255 [12:33:10]MH_SAM_APDU [12:33: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 5F 00 00 00 F4 03 04 00 06 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CA 01 00 35 04 06 00 4A [12:33:10]Write to MH i2c: E2 02 01 05 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 5F 00 00 00 F4 03 04 00 06 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CA 01 00 35 04 06 00 4A 00 00 F8 [12:33:10]Write i2c OK [12:33:10]MH_I2C_Read... [12:33:10]OFD Sender: No OFD packet to send [12:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:10]Read from MH i2c: E2 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 03 00 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 03 00 05 10 00 90 00 89 [12:33:10]RAPDU: 90 00 [12:33:10]wFMCommunicate OK [12:33:10]wFMCommunicate request_size=10 [12:33:10]MH_SAM_APDU [12:33:10]CAPDU: 80 0D 02 02 05 9F 07 DC AA A8 [12:33:10]Write to MH i2c: E2 0D 00 06 10 80 0D 02 02 05 00 9F 07 DC AA A8 00 00 6E [12:33:10]Write i2c OK [12:33:10]MH_I2C_Read... [12:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:10]Read from MH i2c: E2 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 03 00 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 03 00 06 10 00 90 00 8A [12:33:10]RAPDU: 90 00 [12:33:10]wFMCommunicate OK [12:33:10]wFMCommunicate request_size=4 [12:33:10]MH_SAM_APDU [12:33:10]CAPDU: 80 0D 03 02 [12:33:10]Write to MH i2c: E2 08 00 07 10 80 0D 03 02 00 00 00 00 92 [12:33:10]Write i2c OK [12:33:10]MH_I2C_Read... [12:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:10]Read from MH i2c: E2 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 0B 00 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 0B 00 07 10 00 20 25 59 DD 07 57 E7 3D 90 00 90 [12:33:10]RAPDU: 20 25 59 DD 07 57 E7 3D 90 00 [12:33:10]wFMCommunicate OK [12:33:10]SAM_PROTO_SignData done [12:33:10]FM_MakeSignedData done [12:33:10]CreateOFDProtocolMessage [12:33:10]wFMCommunicate request_size=4 [12:33:10]MH_SAM_APDU [12:33:10]CAPDU: 80 11 00 00 [12:33:10]Write to MH i2c: E2 08 00 08 10 80 11 00 00 00 00 00 00 92 [12:33:10]Write i2c OK [12:33:10]MH_I2C_Read... [12:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:10]Read from MH i2c: E2 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 17 00 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: E2 17 00 08 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E9 [12:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:33:10]wFMCommunicate OK [12:33:10]CreateOFDProtocolMessage done [12:33:10]OFDSenderStorePacket 117395 [12:33:10]StoreOFDPacket docnum=117395 [12:33:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B3 3F 07 01 6E 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 5F 00 00 00 F4 03 04 00 06 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CA 01 00 35 04 06 00 4A 9F 07 DC AA A8 20 25 59 DD 07 57 E7 3D [12:33:10]CheckFolder [12:33:10]dirname=/storage/ofd_packets [12:33:10]CheckFolder done [12:33:10]ProducePacketName [12:33:10]name=ofd_packets/00117395 [12:33:10]NVStorageSaveData ofd_packets/00117395 [12:33:10]File name is /storage/ofd_packets/00117395 [12:33:10]Write 301 bytes [12:33:10]NVStorageSaveData done [12:33:10]OFDSenderStorePacket done [12:33:10]KKMCreateOFDPacket done [12:33:10]NVStorageSaveData kkm_last_timestamp [12:33:10]File name is /storage/kkm_last_timestamp [12:33:10]Write 4 bytes [12:33:10]NVStorageSaveData done [12:33:10]ExternCall_PrintAddStr [12:33:10]wPrintStart [12:33:10]Write to MH i2c: 01 00 00 09 10 19 [12:33:10]Write i2c OK [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: 01 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: 01 07 00 [12:33:10]MH_I2C_Read... [12:33:10]Read from MH i2c: 01 07 00 09 10 00 00 00 00 00 FF 0F 2E [12:33:10]RasterBufferAndPrint [12:33:10]line Счет N : (1)245171 [12:33:10]line ИНН: 02508201610067 [12:33:10]line Контрольно-Кассовый Чек [12:33:10]line ПРОДАЖА [12:33:10]line ТРК (МРК, ГНК) : 11 [12:33:10]line Товар: 2710124130 [12:33:10]line Аи-92-К-2 [12:33:10]line 4.490 * 66.90 [12:33:10]line = 300.38 [12:33:10]line НДС 12% НСП 1% [12:33:10]line > о реализуемом товаре [12:33:10]line ОКРУГЛЕНИЕ: -0.38 [12:33:10]line ИТОГО: 300.00 [12:33:10]line Внесено: 300.00 [12:33:10]line СДАЧА: 0.00 [12:33:10]line НСП 1% : 2.66 [12:33:10]line НДС 12% : 31.90 [12:33:10]line Наличными: 300.00 [12:33:10]line Безнал.: 0.00 [12:33:10]line Место: АЗС № 173 "Партнер Нефть" [12:33:10]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:33:10]line СНО: Общий режим [12:33:10]line Чек 95 27.10.2024 12:33 [12:33:10]line Смена: 542 ФФД: 1.0 [12:33:10]line ЗНМ: 0300000115 [12:33:10]line РНМ: 0000000000091782 [12:33:10]line Версия ККМ: 001 [12:33:10]line ФМ: 0000000000871767 [12:33:10]line ФД: 117395 [12:33:10]line ФПД: 82046892157608 [12:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123310&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117395&fm=82046892157608&tin=02508201610067®Number=0000000000091782&sum=30000 [12:33:10]OFD Sender: Processing packet 117395 [packets to send 76, broken 75] [12:33:10]ProducePacketName [12:33:10]name=ofd_packets/00117395 [12:33:10]OFD Sender: To server: pG, [12:33:10]CommunicateWithHost lk.salyk.kg:30040 [12:33:10]ConnectInit lk.salyk.kg [12:33:10]written 0, free lines is 4095 [12:33:10]Connected sock=10 [12: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 36 37 0F 01 00 00 B3 3F 07 01 6E 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 5F 00 00 00 F4 03 04 00 06 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CA 01 00 35 04 06 00 4A 9F 07 DC AA A8 20 25 59 DD 07 57 E7 3D [12:33: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 36 37 4F 00 00 00 3E 56 47 00 B2 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CA 01 00 F4 03 04 00 C3 DE 1D 67 B6 04 01 00 00 08 A2 62 37 88 1A 34 21 [12:33:11]CommunicateWithHost err = 0 [12:33:11]CheckOFDResponse [12:33:11]1017 (14) - 77093643461234 [12:33:11]1041 (16) - 0000000000871767 [12:33:11]1040 (4) - 117395 [12:33:11]1012 (4) - 27.10.2024 06:33 [12:33:11]1206 (1) - 0 [12:33:11]OFD Sender: Remove packet 117395 [12:33:11]ProducePacketName [12:33:11]name=ofd_packets/00117395 [12:33:11]NVStorageDeleteData [12:33:11]Write to MH i2c: 01 00 00 33 10 43 [12:33:11]Write i2c OK [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: 01 [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: 01 07 00 [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: 01 07 00 33 10 00 00 00 00 00 B1 0C 07 [12:33:11]RasterBufferAndPrint [12:33:11]line [12:33:11]line [12:33:11]line [12:33:11]line [12:33:11]line [12:33:11]written 0, free lines is 3255 [12:33:11]MH_Cut [12:33:11]Write to MH i2c: D1 01 00 3A 10 01 1C [12:33:11]Write i2c OK [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: D1 [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: D1 01 00 [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: D1 01 00 3A 10 00 1B [12:33:11]Write to MH i2c: 01 00 00 3B 10 4B [12:33:11]Write i2c OK [12:33:11]MH_I2C_Read... [12:33:11]OFD Sender: No OFD packet to send [12:33:12]*** Cut start [12:33:12]*** Purtial cut [12:33:12]*** Stage 1: CUTSNS_PIN = 1 [12:33:12]Read from MH i2c: 01 [12:33:12]MH_I2C_Read... [12:33:12]*** Stop cut motor [12:33:12]*** Cut end [12:33:12]Read from MH i2c: 01 07 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: 01 07 00 3B 10 00 00 00 00 00 FF 0F 60 [12:33:12]process_action close_receipt done [12:33:12]requested_data is exist [12:33:12]produce_requested_data [12:33:12]requested_item fm.sn is exist - process it [12:33:12]wFMCommunicate request_size=4 [12:33:12]MH_SAM_APDU [12:33:12]CAPDU: 80 11 00 00 [12:33:12]Write to MH i2c: E2 08 00 3C 10 80 11 00 00 00 00 00 00 C6 [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:12]Read from MH i2c: E2 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 17 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 17 00 3C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1D [12:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:33:12]wFMCommunicate OK [12:33:12]requested_item fd.num is exist - process it [12:33:12]SAM_PROTO_GetFieldsCounters [12:33:12]wFMCommunicate request_size=4 [12:33:12]MH_SAM_APDU [12:33:12]CAPDU: 80 13 00 00 [12:33:12]Write to MH i2c: E2 08 00 3D 10 80 13 00 00 00 00 00 00 C9 [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:12]Read from MH i2c: E2 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 62 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 62 00 3D 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 93 CA 01 00 0E 04 04 00 1E 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 8B [12:33: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 93 CA 01 00 0E 04 04 00 1E 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 [12:33:12]wFMCommunicate OK [12:33:12]SAM_PROTO_GetFieldsCounters done [12:33:12]requested_item shift.num is exist - process it [12:33:12]requested_item shift.opened is exist - process it [12:33:12]req_shift_opened [12:33:12]FM_GetShiftState [12:33:12]SAM_PROTO_GetShiftState [12:33:12]wFMCommunicate request_size=4 [12:33:12]MH_SAM_APDU [12:33:12]CAPDU: 80 13 01 00 [12:33:12]Write to MH i2c: E2 08 00 3E 10 80 13 01 00 00 00 00 00 CB [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:12]Read from MH i2c: E2 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 0E 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 0E 00 3E 10 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 0A [12:33:12]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:33:12]wFMCommunicate OK [12:33:12]SAM_PROTO_GetShiftState done [12:33:12]FM_GetShiftState done [12:33:12]req_shift_opened done [12:33:12]requested_item shift.open_date is exist - process it [12:33:12]req_shift_open_date [12:33:12]req_shift_open_date done [12:33:12]produce_requested_data done [12:33:12]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117395,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:33:12]process_action_free close_receipt [12:33:12]json_value_free [12:33:12]json_value_free done [12:33:12]process_json_proto returns [12:33:12]Send response to host [12:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117395,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:33:12]free response buf [12:33:12]execute_script done [12:33:12]execute_script returns [12:33:12]free content buf [12:33:12]Sock 7.Close socket [12:33:12]Sock 7.Thread stoped [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:00]ConnectInit Can't connect to host [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]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:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]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]accept exits with 9 [12:43:17]New connection [12:43:17]New thread 3067456868 created [12:43:17]Thread 3067600228 joined [12:43:17]Waiting for new connection... [12:43:17] Sock 9.Parse request [12:43:17]Sock 9.Check first char [12:43:17]Sock 9.First char is OK [12:43:17]request: POST /json_proto HTTP/1.0 [12:43:17]Method: POST [12:43:17]URL: /json_proto [12:43:17]Method is POST - this is cgi request [12:43:17]url: /json_proto [12:43:17]query_string will be loaded in cgi processing [12:43:17]execute_cgi json_proto POST (null) [12:43:17]execute_cgi path=json_proto method=POST [12:43:17]POST find Content-Length [12:43:17]Host: 172.17.96.67:8080 [12:43:17]Content-Length: 677 [12:43:17]Content-Type: application/json [12:43:17] [12:43:17]POST finish read [12:43:17]Found Content-Length = 677 [12:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:43:17]execute_script... [12:43: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)245172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:43:17]POST & json_proto [12:43:17]process_json_proto [12:43:17]json parsed OK: [12:43:17]protocol is kg_v1.0 [12:43:17]action value=close_receipt [12:43:17]process_action close_receipt [12:43:17]cmd_close_receipt [12:43:17]MH_GetDate [12:43:17]Write to MH i2c: F0 00 00 3F 10 3E [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: F0 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: F0 09 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: F0 09 00 3F 10 00 66 35 1E 67 2B 09 1E 67 20 [12:43:17]GetLastDocTimeStamp 1730032390 [12:43:17]current date 1730032998 [12:43:17]FM_GetShiftState [12:43:17]SAM_PROTO_GetShiftState [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 13 01 00 [12:43:17]Write to MH i2c: E2 08 00 40 10 80 13 01 00 00 00 00 00 CD [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]OFD Sender: No OFD packet to send [12:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0E 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0E 00 40 10 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 0C [12:43:17]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:43:17]wFMCommunicate OK [12:43:17]SAM_PROTO_GetShiftState done [12:43:17]FM_GetShiftState done [12:43:17]opened in 1729987372 [12:43:17]opened+sec_in_day 1730073772 [12:43:17]quantity*price = 20003 [12:43:17]sum+1 = 20004 [12:43: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 96 27.10.2024 12:43 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117396 ФПД: 132861510234892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124318&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117396&fm=132861510234892&tin=02508201610067®Number=0000000000091782&sum=20000 [12:43:18]StoreToDocumentArchive [12:43:18]shift 542 fd 117396 [12:43:18]save to /storage/0542/doc_00117396 [12:43:18]save last doc name /storage/0542/doc_00117396 to /storage/kkm_last_doc_name [12:43:18]save OK [12:43:18]Clear old archive folders... [12:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:18]tlvbuf is 01704640 [12:43:18]SAM_PROTO_ClearQueue [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 09 00 00 [12:43:18]Write to MH i2c: E2 08 00 4D 10 80 09 00 00 00 00 00 00 CF [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 4D 10 00 90 00 D1 [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_ClearQueue done [12:43:18]KKMCreateOFDPacket [12:43:18]OFDProtocolAddRootSTLVToBuf [12:43:18]FM_MakeSignedData [12:43:18]FM_MakeSignedData [12:43:18]SAM_PROTO_SignData [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 01 02 [12:43:18]Write to MH i2c: E2 08 00 4E 10 80 0D 01 02 00 00 00 00 D7 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 4E 10 00 90 00 D2 [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]wFMCommunicate request_size=255 [12:43:18]MH_SAM_APDU [12:43: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 60 00 00 00 F4 03 04 00 66 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 94 CA 01 00 35 04 06 00 78 [12:43:18]Write to MH i2c: E2 02 01 4F 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 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 60 00 00 00 F4 03 04 00 66 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 94 CA 01 00 35 04 06 00 78 00 00 A2 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 4F 10 00 90 00 D3 [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]wFMCommunicate request_size=10 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 02 02 05 D6 3B 1F 33 0C [12:43:18]Write to MH i2c: E2 0D 00 50 10 80 0D 02 02 05 00 D6 3B 1F 33 0C 00 00 53 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 50 10 00 90 00 D4 [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 03 02 [12:43:18]Write to MH i2c: E2 08 00 51 10 80 0D 03 02 00 00 00 00 DC [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0B 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0B 00 51 10 00 5A EB E9 F2 C1 05 9B CF 90 00 2D [12:43:18]RAPDU: 5A EB E9 F2 C1 05 9B CF 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_SignData done [12:43:18]FM_MakeSignedData done [12:43:18]CreateOFDProtocolMessage [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 11 00 00 [12:43:18]Write to MH i2c: E2 08 00 52 10 80 11 00 00 00 00 00 00 DC [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 17 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 17 00 52 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 33 [12:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:43:18]wFMCommunicate OK [12:43:18]CreateOFDProtocolMessage done [12:43:18]OFDSenderStorePacket 117396 [12:43:18]StoreOFDPacket docnum=117396 [12:43:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A4 D8 07 01 3C 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 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 60 00 00 00 F4 03 04 00 66 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 94 CA 01 00 35 04 06 00 78 D6 3B 1F 33 0C 5A EB E9 F2 C1 05 9B CF [12:43:18]CheckFolder [12:43:18]dirname=/storage/ofd_packets [12:43:18]CheckFolder done [12:43:18]ProducePacketName [12:43:18]name=ofd_packets/00117396 [12:43:18]NVStorageSaveData ofd_packets/00117396 [12:43:18]File name is /storage/ofd_packets/00117396 [12:43:18]Write 301 bytes [12:43:18]NVStorageSaveData done [12:43:18]OFDSenderStorePacket done [12:43:18]KKMCreateOFDPacket done [12:43:18]NVStorageSaveData kkm_last_timestamp [12:43:18]File name is /storage/kkm_last_timestamp [12:43:18]Write 4 bytes [12:43:18]NVStorageSaveData done [12:43:18]ExternCall_PrintAddStr [12:43:18]wPrintStart [12:43:18]Write to MH i2c: 01 00 00 53 10 63 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: 01 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: 01 07 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: 01 07 00 53 10 00 00 00 00 00 FF 0F 78 [12:43:18]RasterBufferAndPrint [12:43:18]line Счет N : (1)245172 [12:43:18]line ИНН: 02508201610067 [12:43:18]line Контрольно-Кассовый Чек [12:43:18]line ПРОДАЖА [12:43:18]line ТРК (МРК, ГНК) : 21 [12:43:18]line Товар: 2710124130 [12:43:18]line Аи-92-К-2 [12:43:18]line 2.990 * 66.90 [12:43:18]line = 200.03 [12:43:18]line НДС 12% НСП 1% [12:43:18]line > о реализуемом товаре [12:43:18]line ОКРУГЛЕНИЕ: -0.03 [12:43:18]line ИТОГО: 200.00 [12:43:18]line Внесено: 200.00 [12:43:18]line СДАЧА: 0.00 [12:43:18]line НСП 1% : 1.77 [12:43:18]line НДС 12% : 21.24 [12:43:18]line Наличными: 200.00 [12:43:18]line Безнал.: 0.00 [12:43:18]line Место: АЗС № 173 "Партнер Нефть" [12:43:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:43:18]line СНО: Общий режим [12:43:18]line Чек 96 27.10.2024 12:43 [12:43:18]line Смена: 542 ФФД: 1.0 [12:43:18]line ЗНМ: 0300000115 [12:43:18]line РНМ: 0000000000091782 [12:43:18]line Версия ККМ: 001 [12:43:18]line ФМ: 0000000000871767 [12:43:18]line ФД: 117396 [12:43:18]line ФПД: 132861510234892 [12:43:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124318&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117396&fm=132861510234892&tin=02508201610067®Number=0000000000091782&sum=20000 [12:43:19]written 0, free lines is 4095 [12:43:19]OFD Sender: Processing packet 117396 [packets to send 76, broken 75] [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00117396 [12:43:19]OFD Sender: To server: pG, [12:43:19]CommunicateWithHost lk.salyk.kg:30040 [12:43:19]ConnectInit lk.salyk.kg [12:43:19]Connected sock=10 [12:43: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 36 37 0F 01 00 00 A4 D8 07 01 3C 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 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 60 00 00 00 F4 03 04 00 66 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 94 CA 01 00 35 04 06 00 78 D6 3B 1F 33 0C 5A EB E9 F2 C1 05 9B CF [12:43: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 36 37 4F 00 00 00 D8 86 47 00 FA 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 36 37 10 04 04 00 94 CA 01 00 F4 03 04 00 23 E1 1D 67 B6 04 01 00 00 4B 62 1C A6 28 72 B3 A1 [12:43:19]CommunicateWithHost err = 0 [12:43:19]CheckOFDResponse [12:43:19]1017 (14) - 77093643461234 [12:43:19]1041 (16) - 0000000000871767 [12:43:19]1040 (4) - 117396 [12:43:19]1012 (4) - 27.10.2024 06:43 [12:43:19]1206 (1) - 0 [12:43:19]OFD Sender: Remove packet 117396 [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00117396 [12:43:19]NVStorageDeleteData [12:43:19]Write to MH i2c: 01 00 00 7D 10 8D [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 7D 10 00 00 00 00 00 B3 0C 53 [12:43:19]RasterBufferAndPrint [12:43:19]line [12:43:19]line [12:43:19]line [12:43:19]line [12:43:19]line [12:43:19]written 0, free lines is 3255 [12:43:19]MH_Cut [12:43:19]Write to MH i2c: D1 01 00 84 10 01 66 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: D1 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: D1 01 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: D1 01 00 84 10 00 65 [12:43:19]Write to MH i2c: 01 00 00 85 10 95 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]OFD Sender: No OFD packet to send [12:43:20]*** Cut start [12:43:20]*** Purtial cut [12:43:20]*** Stage 1: CUTSNS_PIN = 1 [12:43:20]Read from MH i2c: 01 [12:43:20]MH_I2C_Read... [12:43:20]*** Stop cut motor [12:43:20]*** Cut end [12:43:20]Read from MH i2c: 01 07 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 85 10 00 00 00 00 00 FF 0F AA [12:43:20]process_action close_receipt done [12:43:20]requested_data is exist [12:43:20]produce_requested_data [12:43:20]requested_item fm.sn is exist - process it [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 11 00 00 [12:43:20]Write to MH i2c: E2 08 00 86 10 80 11 00 00 00 00 00 00 10 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 17 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 17 00 86 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 67 [12:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:43:20]wFMCommunicate OK [12:43:20]requested_item fd.num is exist - process it [12:43:20]SAM_PROTO_GetFieldsCounters [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 13 00 00 [12:43:20]Write to MH i2c: E2 08 00 87 10 80 13 00 00 00 00 00 00 13 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 62 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 62 00 87 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 94 CA 01 00 0E 04 04 00 1E 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 D9 [12:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 94 CA 01 00 0E 04 04 00 1E 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 [12:43:20]wFMCommunicate OK [12:43:20]SAM_PROTO_GetFieldsCounters done [12:43:20]requested_item shift.num is exist - process it [12:43:20]requested_item shift.opened is exist - process it [12:43:20]req_shift_opened [12:43:20]FM_GetShiftState [12:43:20]SAM_PROTO_GetShiftState [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 13 01 00 [12:43:20]Write to MH i2c: E2 08 00 88 10 80 13 01 00 00 00 00 00 15 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 0E 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 0E 00 88 10 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 54 [12:43:20]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:43:20]wFMCommunicate OK [12:43:20]SAM_PROTO_GetShiftState done [12:43:20]FM_GetShiftState done [12:43:20]req_shift_opened done [12:43:20]requested_item shift.open_date is exist - process it [12:43:20]req_shift_open_date [12:43:20]req_shift_open_date done [12:43:20]produce_requested_data done [12:43:20]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117396,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:43:20]process_action_free close_receipt [12:43:20]json_value_free [12:43:20]json_value_free done [12:43:20]process_json_proto returns [12:43:20]Send response to host [12:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117396,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:43:20]free response buf [12:43:20]execute_script done [12:43:20]execute_script returns [12:43:20]free content buf [12:43:20]Sock 9.Close socket [12:43:20]Sock 9.Thread stoped [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:10]accept exits with 7 [12:46:10]New connection [12:46:10]New thread 3067600228 created [12:46:10]Thread 3067456868 joined [12:46:10]Waiting for new connection... [12:46:10] Sock 7.Parse request [12:46:10]Sock 7.Check first char [12:46:10]Sock 7.First char is OK [12:46:10]request: POST /json_proto HTTP/1.0 [12:46:10]Method: POST [12:46:10]URL: /json_proto [12:46:10]Method is POST - this is cgi request [12:46:10]url: /json_proto [12:46:10]query_string will be loaded in cgi processing [12:46:10]execute_cgi json_proto POST (null) [12:46:10]execute_cgi path=json_proto method=POST [12:46:10]POST find Content-Length [12:46:10]Host: 172.17.96.67:8080 [12:46:10]Content-Length: 677 [12:46:10]Content-Type: application/json [12:46:10] [12:46:10]POST finish read [12:46:10]Found Content-Length = 677 [12:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:46:10]execute_script... [12: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)245173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:46:10]POST & json_proto [12:46:10]process_json_proto [12:46:10]json parsed OK: [12:46:10]protocol is kg_v1.0 [12:46:10]action value=close_receipt [12:46:10]process_action close_receipt [12:46:10]cmd_close_receipt [12:46:10]MH_GetDate [12:46:10]Write to MH i2c: F0 00 00 89 10 88 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 09 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 09 00 89 10 00 13 36 1E 67 2B 09 1E 67 18 [12:46:10]GetLastDocTimeStamp 1730032998 [12:46:10]current date 1730033171 [12:46:10]FM_GetShiftState [12:46:10]SAM_PROTO_GetShiftState [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 13 01 00 [12:46:10]Write to MH i2c: E2 08 00 8A 10 80 13 01 00 00 00 00 00 17 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0E 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0E 00 8A 10 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 56 [12:46:10]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:46:10]wFMCommunicate OK [12:46:10]SAM_PROTO_GetShiftState done [12:46:10]FM_GetShiftState done [12:46:10]opened in 1729987372 [12:46:10]opened+sec_in_day 1730073772 [12:46:10]quantity*price = 30038 [12:46:10]sum+1 = 30039 [12:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 97 27.10.2024 12:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117397 ФПД: 152853871569323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124611&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117397&fm=152853871569323&tin=02508201610067®Number=0000000000091782&sum=30000 [12:46:11]StoreToDocumentArchive [12:46:11]shift 542 fd 117397 [12:46:11]save to /storage/0542/doc_00117397 [12:46:11]save last doc name /storage/0542/doc_00117397 to /storage/kkm_last_doc_name [12:46:11]save OK [12:46:11]Clear old archive folders... [12:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:11]tlvbuf is 01704630 [12:46:11]SAM_PROTO_ClearQueue [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 09 00 00 [12:46:11]Write to MH i2c: E2 08 00 97 10 80 09 00 00 00 00 00 00 19 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 97 10 00 90 00 1B [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]SAM_PROTO_ClearQueue done [12:46:11]KKMCreateOFDPacket [12:46:11]OFDProtocolAddRootSTLVToBuf [12:46:11]FM_MakeSignedData [12:46:11]FM_MakeSignedData [12:46:11]SAM_PROTO_SignData [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 0D 01 02 [12:46:11]Write to MH i2c: E2 08 00 98 10 80 0D 01 02 00 00 00 00 21 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 98 10 00 90 00 1C [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]wFMCommunicate request_size=255 [12:46:11]MH_SAM_APDU [12:46: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 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 61 00 00 00 F4 03 04 00 13 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 95 CA 01 00 35 04 06 00 8B [12:46:11]Write to MH i2c: E2 02 01 99 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 61 00 00 00 F4 03 04 00 13 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 95 CA 01 00 35 04 06 00 8B 00 00 E1 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 99 10 00 90 00 1D [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]wFMCommunicate request_size=10 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 0D 02 02 05 05 10 B7 A9 AB [12:46:11]Write to MH i2c: E2 0D 00 9A 10 80 0D 02 02 05 00 05 10 B7 A9 AB 00 00 4E [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 9A 10 00 90 00 1E [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 0D 03 02 [12:46:11]Write to MH i2c: E2 08 00 9B 10 80 0D 03 02 00 00 00 00 26 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 0B 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 0B 00 9B 10 00 A2 28 02 DB 9D C2 90 21 90 00 DE [12:46:11]RAPDU: A2 28 02 DB 9D C2 90 21 90 00 [12:46:11]wFMCommunicate OK [12:46:11]SAM_PROTO_SignData done [12:46:11]FM_MakeSignedData done [12:46:11]CreateOFDProtocolMessage [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 11 00 00 [12:46:11]Write to MH i2c: E2 08 00 9C 10 80 11 00 00 00 00 00 00 26 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 17 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 17 00 9C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7D [12:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:46:11]wFMCommunicate OK [12:46:11]CreateOFDProtocolMessage done [12:46:11]OFDSenderStorePacket 117397 [12:46:11]StoreOFDPacket docnum=117397 [12:46:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F3 8A 07 01 32 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 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 61 00 00 00 F4 03 04 00 13 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 95 CA 01 00 35 04 06 00 8B 05 10 B7 A9 AB A2 28 02 DB 9D C2 90 21 [12:46:11]CheckFolder [12:46:11]dirname=/storage/ofd_packets [12:46:11]CheckFolder done [12:46:11]ProducePacketName [12:46:11]name=ofd_packets/00117397 [12:46:11]NVStorageSaveData ofd_packets/00117397 [12:46:11]File name is /storage/ofd_packets/00117397 [12:46:11]Write 301 bytes [12:46:11]NVStorageSaveData done [12:46:11]OFDSenderStorePacket done [12:46:11]KKMCreateOFDPacket done [12:46:11]NVStorageSaveData kkm_last_timestamp [12:46:11]File name is /storage/kkm_last_timestamp [12:46:11]Write 4 bytes [12:46:11]NVStorageSaveData done [12:46:11]ExternCall_PrintAddStr [12:46:11]wPrintStart [12:46:11]Write to MH i2c: 01 00 00 9D 10 AD [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: 01 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: 01 07 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: 01 07 00 9D 10 00 00 00 00 00 FF 0F C2 [12:46:11]RasterBufferAndPrint [12:46:11]line Счет N : (1)245173 [12:46:11]line ИНН: 02508201610067 [12:46:11]line Контрольно-Кассовый Чек [12:46:11]line ПРОДАЖА [12:46:11]line ТРК (МРК, ГНК) : 11 [12:46:11]line Товар: 2710124130 [12:46:11]line Аи-92-К-2 [12:46:11]line 4.490 * 66.90 [12:46:11]line = 300.38 [12:46:11]line НДС 12% НСП 1% [12:46:11]line > о реализуемом товаре [12:46:11]line ОКРУГЛЕНИЕ: -0.38 [12:46:11]line ИТОГО: 300.00 [12:46:11]line Внесено: 300.00 [12:46:11]line СДАЧА: 0.00 [12:46:11]line НСП 1% : 2.66 [12:46:11]line НДС 12% : 31.90 [12:46:11]line Наличными: 300.00 [12:46:11]line Безнал.: 0.00 [12:46:11]line Место: АЗС № 173 "Партнер Нефть" [12:46:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:46:11]line СНО: Общий режим [12:46:11]line Чек 97 27.10.2024 12:46 [12:46:11]line Смена: 542 ФФД: 1.0 [12:46:11]line ЗНМ: 0300000115 [12:46:11]line РНМ: 0000000000091782 [12:46:11]line Версия ККМ: 001 [12:46:11]line ФМ: 0000000000871767 [12:46:11]line ФД: 117397 [12:46:11]line ФПД: 152853871569323 [12:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124611&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117397&fm=152853871569323&tin=02508201610067®Number=0000000000091782&sum=30000 [12:46:11]written 0, free lines is 4095 [12:46:11]OFD Sender: Processing packet 117397 [packets to send 76, broken 75] [12:46:11]ProducePacketName [12:46:11]name=ofd_packets/00117397 [12:46:11]OFD Sender: To server: pG, [12:46:11]CommunicateWithHost lk.salyk.kg:30040 [12:46:11]ConnectInit lk.salyk.kg [12:46:11]Connected sock=10 [12:46: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 36 37 0F 01 00 00 F3 8A 07 01 32 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 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 61 00 00 00 F4 03 04 00 13 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 95 CA 01 00 35 04 06 00 8B 05 10 B7 A9 AB A2 28 02 DB 9D C2 90 21 [12:46: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 36 37 4F 00 00 00 5B 90 47 00 BB 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 36 37 10 04 04 00 95 CA 01 00 F4 03 04 00 D0 E1 1D 67 B6 04 01 00 00 CC 46 12 08 39 15 13 AD [12:46:12]CommunicateWithHost err = 0 [12:46:12]CheckOFDResponse [12:46:12]1017 (14) - 77093643461234 [12:46:12]1041 (16) - 0000000000871767 [12:46:12]1040 (4) - 117397 [12:46:12]1012 (4) - 27.10.2024 06:46 [12:46:12]1206 (1) - 0 [12:46:12]OFD Sender: Remove packet 117397 [12:46:12]ProducePacketName [12:46:12]name=ofd_packets/00117397 [12:46:12]NVStorageDeleteData [12:46:12]Write to MH i2c: 01 00 00 C7 10 D7 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 C7 10 00 00 00 00 00 B1 0C 9B [12:46:12]RasterBufferAndPrint [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]written 0, free lines is 3255 [12:46:12]MH_Cut [12:46:12]Write to MH i2c: D1 01 00 CE 10 01 B0 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: D1 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: D1 01 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: D1 01 00 CE 10 00 AF [12:46:12]Write to MH i2c: 01 00 00 CF 10 DF [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]OFD Sender: No OFD packet to send [12:46:13]*** Cut start [12:46:13]*** Purtial cut [12:46:13]*** Stage 1: CUTSNS_PIN = 1 [12:46:13]Read from MH i2c: 01 [12:46:13]MH_I2C_Read... [12:46:13]*** Stop cut motor [12:46:13]*** Cut end [12:46:13]Read from MH i2c: 01 07 00 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: 01 07 00 CF 10 00 00 00 00 00 FF 0F F4 [12:46:13]process_action close_receipt done [12:46:13]requested_data is exist [12:46:13]produce_requested_data [12:46:13]requested_item fm.sn is exist - process it [12:46:13]wFMCommunicate request_size=4 [12:46:13]MH_SAM_APDU [12:46:13]CAPDU: 80 11 00 00 [12:46:13]Write to MH i2c: E2 08 00 D0 10 80 11 00 00 00 00 00 00 5A [12:46:13]Write i2c OK [12:46:13]MH_I2C_Read... [12:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:13]Read from MH i2c: E2 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 17 00 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 17 00 D0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B1 [12:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:46:13]wFMCommunicate OK [12:46:13]requested_item fd.num is exist - process it [12:46:13]SAM_PROTO_GetFieldsCounters [12:46:13]wFMCommunicate request_size=4 [12:46:13]MH_SAM_APDU [12:46:13]CAPDU: 80 13 00 00 [12:46:13]Write to MH i2c: E2 08 00 D1 10 80 13 00 00 00 00 00 00 5D [12:46:13]Write i2c OK [12:46:13]MH_I2C_Read... [12:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:13]Read from MH i2c: E2 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 62 00 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 62 00 D1 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 95 CA 01 00 0E 04 04 00 1E 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 27 [12:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 95 CA 01 00 0E 04 04 00 1E 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 [12:46:13]wFMCommunicate OK [12:46:13]SAM_PROTO_GetFieldsCounters done [12:46:13]requested_item shift.num is exist - process it [12:46:13]requested_item shift.opened is exist - process it [12:46:13]req_shift_opened [12:46:13]FM_GetShiftState [12:46:13]SAM_PROTO_GetShiftState [12:46:13]wFMCommunicate request_size=4 [12:46:13]MH_SAM_APDU [12:46:13]CAPDU: 80 13 01 00 [12:46:13]Write to MH i2c: E2 08 00 D2 10 80 13 01 00 00 00 00 00 5F [12:46:13]Write i2c OK [12:46:13]MH_I2C_Read... [12:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:13]Read from MH i2c: E2 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 0E 00 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 0E 00 D2 10 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 9E [12:46:13]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:46:13]wFMCommunicate OK [12:46:13]SAM_PROTO_GetShiftState done [12:46:13]FM_GetShiftState done [12:46:13]req_shift_opened done [12:46:13]requested_item shift.open_date is exist - process it [12:46:13]req_shift_open_date [12:46:13]req_shift_open_date done [12:46:13]produce_requested_data done [12:46:13]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117397,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:46:13]process_action_free close_receipt [12:46:13]json_value_free [12:46:13]json_value_free done [12:46:13]process_json_proto returns [12:46:13]Send response to host [12:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117397,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:46:13]free response buf [12:46:13]execute_script done [12:46:13]execute_script returns [12:46:13]free content buf [12:46:13]Sock 7.Close socket [12:46:13]Sock 7.Thread stoped [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:30]accept exits with 9 [12:46:30]New connection [12:46:30]New thread 3067456868 created [12:46:30]Thread 3067600228 joined [12:46:30]Waiting for new connection... [12:46:30] Sock 9.Parse request [12:46:30]Sock 9.Check first char [12:46:30]Sock 9.First char is OK [12:46:30]request: POST /json_proto HTTP/1.0 [12:46:30]Method: POST [12:46:30]URL: /json_proto [12:46:30]Method is POST - this is cgi request [12:46:30]url: /json_proto [12:46:30]query_string will be loaded in cgi processing [12:46:30]execute_cgi json_proto POST (null) [12:46:30]execute_cgi path=json_proto method=POST [12:46:30]POST find Content-Length [12:46:30]Host: 172.17.96.67:8080 [12:46:30]Content-Length: 677 [12:46:30]Content-Type: application/json [12:46:30] [12:46:30]POST finish read [12:46:30]Found Content-Length = 677 [12:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:46:30]execute_script... [12:46:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:46:30]POST & json_proto [12:46:30]process_json_proto [12:46:30]json parsed OK: [12:46:30]protocol is kg_v1.0 [12:46:30]action value=close_receipt [12:46:30]process_action close_receipt [12:46:30]cmd_close_receipt [12:46:30]MH_GetDate [12:46:30]Write to MH i2c: F0 00 00 D3 10 D2 [12:46:30]Write i2c OK [12:46:30]MH_I2C_Read... [12:46:30]Read from MH i2c: F0 [12:46:30]MH_I2C_Read... [12:46:30]Read from MH i2c: F0 09 00 [12:46:30]MH_I2C_Read... [12:46:30]Read from MH i2c: F0 09 00 D3 10 00 27 36 1E 67 2B 09 1E 67 76 [12:46:30]GetLastDocTimeStamp 1730033171 [12:46:30]current date 1730033191 [12:46:30]FM_GetShiftState [12:46:30]SAM_PROTO_GetShiftState [12:46:30]wFMCommunicate request_size=4 [12:46:30]MH_SAM_APDU [12:46:30]CAPDU: 80 13 01 00 [12:46:30]Write to MH i2c: E2 08 00 D4 10 80 13 01 00 00 00 00 00 61 [12:46:30]Write i2c OK [12:46:30]MH_I2C_Read... [12:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:30]Read from MH i2c: E2 [12:46:30]MH_I2C_Read... [12:46:30]Read from MH i2c: E2 0E 00 [12:46:30]MH_I2C_Read... [12:46:30]Read from MH i2c: E2 0E 00 D4 10 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A0 [12:46:30]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:46:30]wFMCommunicate OK [12:46:30]SAM_PROTO_GetShiftState done [12:46:30]FM_GetShiftState done [12:46:30]opened in 1729987372 [12:46:30]opened+sec_in_day 1730073772 [12:46:30]quantity*price = 50041 [12:46:30]sum+1 = 50042 [12:46: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 98 27.10.2024 12:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117398 ФПД: 141359949409906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124631&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117398&fm=141359949409906&tin=02508201610067®Number=0000000000091782&sum=50000 [12:46:31]StoreToDocumentArchive [12:46:31]shift 542 fd 117398 [12:46:31]save to /storage/0542/doc_00117398 [12:46:31]save last doc name /storage/0542/doc_00117398 to /storage/kkm_last_doc_name [12:46:31]save OK [12:46:31]Clear old archive folders... [12:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:31]tlvbuf is 0170FF70 [12:46:31]SAM_PROTO_ClearQueue [12:46:31]wFMCommunicate request_size=4 [12:46:31]MH_SAM_APDU [12:46:31]CAPDU: 80 09 00 00 [12:46:31]Write to MH i2c: E2 08 00 E1 10 80 09 00 00 00 00 00 00 63 [12:46:31]Write i2c OK [12:46:31]MH_I2C_Read... [12:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:31]Read from MH i2c: E2 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: E2 03 00 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: E2 03 00 E1 10 00 90 00 65 [12:46:31]RAPDU: 90 00 [12:46:31]wFMCommunicate OK [12:46:31]SAM_PROTO_ClearQueue done [12:46:31]KKMCreateOFDPacket [12:46:31]OFDProtocolAddRootSTLVToBuf [12:46:31]FM_MakeSignedData [12:46:31]FM_MakeSignedData [12:46:31]SAM_PROTO_SignData [12:46:31]wFMCommunicate request_size=4 [12:46:31]MH_SAM_APDU [12:46:31]CAPDU: 80 0D 01 02 [12:46:31]Write to MH i2c: E2 08 00 E2 10 80 0D 01 02 00 00 00 00 6B [12:46:31]Write i2c OK [12:46:31]MH_I2C_Read... [12:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:31]Read from MH i2c: E2 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: E2 03 00 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: E2 03 00 E2 10 00 90 00 66 [12:46:31]RAPDU: 90 00 [12:46:31]wFMCommunicate OK [12:46:31]wFMCommunicate request_size=255 [12:46:31]MH_SAM_APDU [12:46: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 62 00 00 00 F4 03 04 00 27 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 96 CA 01 00 35 04 06 00 80 [12:46:31]Write to MH i2c: E2 02 01 E3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 27 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 96 CA 01 00 35 04 06 00 80 00 00 42 [12:46:31]Write i2c OK [12:46:31]MH_I2C_Read... [12:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:31]Read from MH i2c: E2 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: E2 03 00 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: E2 03 00 E3 10 00 90 00 67 [12:46:31]RAPDU: 90 00 [12:46:31]wFMCommunicate OK [12:46:31]wFMCommunicate request_size=10 [12:46:31]MH_SAM_APDU [12:46:31]CAPDU: 80 0D 02 02 05 90 ED 91 EE 72 [12:46:31]Write to MH i2c: E2 0D 00 E4 10 80 0D 02 02 05 00 90 ED 91 EE 72 00 00 E6 [12:46:31]Write i2c OK [12:46:31]MH_I2C_Read... [12:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:32]Read from MH i2c: E2 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 03 00 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 03 00 E4 10 00 90 00 68 [12:46:32]RAPDU: 90 00 [12:46:32]wFMCommunicate OK [12:46:32]wFMCommunicate request_size=4 [12:46:32]MH_SAM_APDU [12:46:32]CAPDU: 80 0D 03 02 [12:46:32]Write to MH i2c: E2 08 00 E5 10 80 0D 03 02 00 00 00 00 70 [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:32]Read from MH i2c: E2 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 0B 00 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 0B 00 E5 10 00 3C 38 78 5C B1 E0 65 DA 90 00 89 [12:46:32]RAPDU: 3C 38 78 5C B1 E0 65 DA 90 00 [12:46:32]wFMCommunicate OK [12:46:32]SAM_PROTO_SignData done [12:46:32]FM_MakeSignedData done [12:46:32]CreateOFDProtocolMessage [12:46:32]wFMCommunicate request_size=4 [12:46:32]MH_SAM_APDU [12:46:32]CAPDU: 80 11 00 00 [12:46:32]Write to MH i2c: E2 08 00 E6 10 80 11 00 00 00 00 00 00 70 [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:32]Read from MH i2c: E2 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 17 00 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 17 00 E6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C7 [12:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:46:32]wFMCommunicate OK [12:46:32]CreateOFDProtocolMessage done [12:46:32]OFDSenderStorePacket 117398 [12:46:32]StoreOFDPacket docnum=117398 [12:46:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 1F B7 07 01 CC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 27 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 96 CA 01 00 35 04 06 00 80 90 ED 91 EE 72 3C 38 78 5C B1 E0 65 DA [12:46:32]CheckFolder [12:46:32]dirname=/storage/ofd_packets [12:46:32]CheckFolder done [12:46:32]ProducePacketName [12:46:32]name=ofd_packets/00117398 [12:46:32]NVStorageSaveData ofd_packets/00117398 [12:46:32]File name is /storage/ofd_packets/00117398 [12:46:32]Write 301 bytes [12:46:32]NVStorageSaveData done [12:46:32]OFDSenderStorePacket done [12:46:32]KKMCreateOFDPacket done [12:46:32]NVStorageSaveData kkm_last_timestamp [12:46:32]File name is /storage/kkm_last_timestamp [12:46:32]Write 4 bytes [12:46:32]NVStorageSaveData done [12:46:32]ExternCall_PrintAddStr [12:46:32]wPrintStart [12:46:32]Write to MH i2c: 01 00 00 E7 10 F7 [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: 01 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: 01 07 00 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: 01 07 00 E7 10 00 00 00 00 00 FF 0F 0C [12:46:32]RasterBufferAndPrint [12:46:32]line Счет N : (1)245174 [12:46:32]line ИНН: 02508201610067 [12:46:32]line Контрольно-Кассовый Чек [12:46:32]line ПРОДАЖА [12:46:32]line ТРК (МРК, ГНК) : 21 [12:46:32]line Товар: 2710124130 [12:46:32]line Аи-92-К-2 [12:46:32]line 7.480 * 66.90 [12:46:32]line = 500.41 [12:46:32]line НДС 12% НСП 1% [12:46:32]line > о реализуемом товаре [12:46:32]line ОКРУГЛЕНИЕ: -0.41 [12:46:32]line ИТОГО: 500.00 [12:46:32]line Внесено: 500.00 [12:46:32]line СДАЧА: 0.00 [12:46:32]line НСП 1% : 4.43 [12:46:32]line НДС 12% : 53.14 [12:46:32]line Наличными: 500.00 [12:46:32]line Безнал.: 0.00 [12:46:32]line Место: АЗС № 173 "Партнер Нефть" [12:46:32]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:46:32]line СНО: Общий режим [12:46:32]line Чек 98 27.10.2024 12:46 [12:46:32]line Смена: 542 ФФД: 1.0 [12:46:32]line ЗНМ: 0300000115 [12:46:32]line РНМ: 0000000000091782 [12:46:32]line Версия ККМ: 001 [12:46:32]line ФМ: 0000000000871767 [12:46:32]line ФД: 117398 [12:46:32]line ФПД: 141359949409906 [12:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124631&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117398&fm=141359949409906&tin=02508201610067®Number=0000000000091782&sum=50000 [12:46:32]written 0, free lines is 4095 [12:46:32]OFD Sender: Processing packet 117398 [packets to send 76, broken 75] [12:46:32]ProducePacketName [12:46:32]name=ofd_packets/00117398 [12:46:32]OFD Sender: To server: pG, [12:46:32]CommunicateWithHost lk.salyk.kg:30040 [12:46:32]ConnectInit lk.salyk.kg [12:46:32]Connected sock=10 [12:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 1F B7 07 01 CC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 27 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 96 CA 01 00 35 04 06 00 80 90 ED 91 EE 72 3C 38 78 5C B1 E0 65 DA [12:46: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 36 37 4F 00 00 00 89 1D 47 00 98 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 36 37 10 04 04 00 96 CA 01 00 F4 03 04 00 E5 E1 1D 67 B6 04 01 00 00 A0 04 BE 3B AF F2 3B 0E [12:46:32]CommunicateWithHost err = 0 [12:46:32]CheckOFDResponse [12:46:32]1017 (14) - 77093643461234 [12:46:32]1041 (16) - 0000000000871767 [12:46:32]1040 (4) - 117398 [12:46:32]1012 (4) - 27.10.2024 06:47 [12:46:32]1206 (1) - 0 [12:46:32]OFD Sender: Remove packet 117398 [12:46:32]ProducePacketName [12:46:32]name=ofd_packets/00117398 [12:46:32]NVStorageDeleteData [12:46:32]Write to MH i2c: 01 00 00 11 11 22 [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: 01 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: 01 07 00 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: 01 07 00 11 11 00 00 00 00 00 BB 0C F0 [12:46:32]RasterBufferAndPrint [12:46:32]line [12:46:32]line [12:46:32]line [12:46:32]line [12:46:32]line [12:46:32]written 0, free lines is 3266 [12:46:32]MH_Cut [12:46:32]Write to MH i2c: D1 01 00 18 11 01 FB [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: D1 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: D1 01 00 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: D1 01 00 18 11 00 FA [12:46:32]Write to MH i2c: 01 00 00 19 11 2A [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:32]OFD Sender: No OFD packet to send [12:46:33]*** Cut start [12:46:33]*** Purtial cut [12:46:33]*** Stage 1: CUTSNS_PIN = 1 [12:46:33]Read from MH i2c: 01 [12:46:33]MH_I2C_Read... [12:46:33]*** Stop cut motor [12:46:33]*** Cut end [12:46:33]Read from MH i2c: 01 07 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: 01 07 00 19 11 00 00 00 00 00 FF 0F 3F [12:46:33]process_action close_receipt done [12:46:33]requested_data is exist [12:46:33]produce_requested_data [12:46:33]requested_item fm.sn is exist - process it [12:46:33]wFMCommunicate request_size=4 [12:46:33]MH_SAM_APDU [12:46:33]CAPDU: 80 11 00 00 [12:46:33]Write to MH i2c: E2 08 00 1A 11 80 11 00 00 00 00 00 00 A5 [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:33]Read from MH i2c: E2 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 17 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 17 00 1A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FC [12:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:46:33]wFMCommunicate OK [12:46:33]requested_item fd.num is exist - process it [12:46:33]SAM_PROTO_GetFieldsCounters [12:46:33]wFMCommunicate request_size=4 [12:46:33]MH_SAM_APDU [12:46:33]CAPDU: 80 13 00 00 [12:46:33]Write to MH i2c: E2 08 00 1B 11 80 13 00 00 00 00 00 00 A8 [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:33]Read from MH i2c: E2 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 62 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 62 00 1B 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 96 CA 01 00 0E 04 04 00 1E 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 76 [12:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 96 CA 01 00 0E 04 04 00 1E 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 [12:46:33]wFMCommunicate OK [12:46:33]SAM_PROTO_GetFieldsCounters done [12:46:33]requested_item shift.num is exist - process it [12:46:33]requested_item shift.opened is exist - process it [12:46:33]req_shift_opened [12:46:33]FM_GetShiftState [12:46:33]SAM_PROTO_GetShiftState [12:46:33]wFMCommunicate request_size=4 [12:46:33]MH_SAM_APDU [12:46:33]CAPDU: 80 13 01 00 [12:46:33]Write to MH i2c: E2 08 00 1C 11 80 13 01 00 00 00 00 00 AA [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0E 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0E 00 1C 11 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E9 [12:46:34]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:46:34]wFMCommunicate OK [12:46:34]SAM_PROTO_GetShiftState done [12:46:34]FM_GetShiftState done [12:46:34]req_shift_opened done [12:46:34]requested_item shift.open_date is exist - process it [12:46:34]req_shift_open_date [12:46:34]req_shift_open_date done [12:46:34]produce_requested_data done [12:46:34]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117398,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:46:34]process_action_free close_receipt [12:46:34]json_value_free [12:46:34]json_value_free done [12:46:34]process_json_proto returns [12:46:34]Send response to host [12:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117398,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:46:34]free response buf [12:46:34]execute_script done [12:46:34]execute_script returns [12:46:34]free content buf [12:46:34]Sock 9.Close socket [12:46:34]Sock 9.Thread stoped [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:54]accept exits with 7 [12:47:54]New connection [12:47:54]New thread 3067600228 created [12:47:54]Thread 3067456868 joined [12:47:54]Waiting for new connection... [12:47:54] Sock 7.Parse request [12:47:54]Sock 7.Check first char [12:47:54]Sock 7.First char is OK [12:47:54]request: POST /json_proto HTTP/1.0 [12:47:54]Method: POST [12:47:54]URL: /json_proto [12:47:54]Method is POST - this is cgi request [12:47:54]url: /json_proto [12:47:54]query_string will be loaded in cgi processing [12:47:54]execute_cgi json_proto POST (null) [12:47:54]execute_cgi path=json_proto method=POST [12:47:54]POST find Content-Length [12:47:54]Host: 172.17.96.67:8080 [12:47:54]Content-Length: 677 [12:47:54]Content-Type: application/json [12:47:54] [12:47:54]POST finish read [12:47:54]Found Content-Length = 677 [12:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:47:54]execute_script... [12: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)245175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:47:54]POST & json_proto [12:47:54]process_json_proto [12:47:54]json parsed OK: [12:47:54]protocol is kg_v1.0 [12:47:54]action value=close_receipt [12:47:54]process_action close_receipt [12:47:54]cmd_close_receipt [12:47:54]MH_GetDate [12:47:54]Write to MH i2c: F0 00 00 1D 11 1D [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 09 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 09 00 1D 11 00 7C 36 1E 67 2B 09 1E 67 16 [12:47:54]GetLastDocTimeStamp 1730033191 [12:47:54]current date 1730033276 [12:47:54]FM_GetShiftState [12:47:54]SAM_PROTO_GetShiftState [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 13 01 00 [12:47:54]Write to MH i2c: E2 08 00 1E 11 80 13 01 00 00 00 00 00 AC [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 1E 11 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 EB [12:47:54]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:47:54]wFMCommunicate OK [12:47:54]SAM_PROTO_GetShiftState done [12:47:54]FM_GetShiftState done [12:47:54]opened in 1729987372 [12:47:54]opened+sec_in_day 1730073772 [12:47:54]quantity*price = 30038 [12:47:54]sum+1 = 30039 [12:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 99 27.10.2024 12:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117399 ФПД: 258443710942359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124756&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117399&fm=258443710942359&tin=02508201610067®Number=0000000000091782&sum=30000 [12:47:55]StoreToDocumentArchive [12:47:55]shift 542 fd 117399 [12:47:55]save to /storage/0542/doc_00117399 [12:47:55]save last doc name /storage/0542/doc_00117399 to /storage/kkm_last_doc_name [12:47:55]save OK [12:47:55]Clear old archive folders... [12:47:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:55]tlvbuf is 0170F860 [12:47:55]SAM_PROTO_ClearQueue [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 09 00 00 [12:47:55]Write to MH i2c: E2 08 00 2B 11 80 09 00 00 00 00 00 00 AE [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [12:47:55]RAPDU: 90 00 [12:47:55]wFMCommunicate OK [12:47:55]SAM_PROTO_ClearQueue done [12:47:55]KKMCreateOFDPacket [12:47:55]OFDProtocolAddRootSTLVToBuf [12:47:55]FM_MakeSignedData [12:47:55]FM_MakeSignedData [12:47:55]SAM_PROTO_SignData [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 0D 01 02 [12:47:55]Write to MH i2c: E2 08 00 2C 11 80 0D 01 02 00 00 00 00 B6 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 2C 11 00 90 00 B1 [12:47:55]RAPDU: 90 00 [12:47:55]wFMCommunicate OK [12:47:55]wFMCommunicate request_size=255 [12:47:55]MH_SAM_APDU [12: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 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 63 00 00 00 F4 03 04 00 7C 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 97 CA 01 00 35 04 06 00 EB [12:47:55]Write to MH i2c: E2 02 01 2D 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 63 00 00 00 F4 03 04 00 7C 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 97 CA 01 00 35 04 06 00 EB 00 00 43 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 2D 11 00 90 00 B2 [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=10 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 02 02 05 0D 9D 95 CC 97 [12:47:56]Write to MH i2c: E2 0D 00 2E 11 80 0D 02 02 05 00 0D 9D 95 CC 97 00 00 65 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 2E 11 00 90 00 B3 [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 03 02 [12:47:56]Write to MH i2c: E2 08 00 2F 11 80 0D 03 02 00 00 00 00 BB [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 0B 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 0B 00 2F 11 00 08 A3 70 1B CA 03 EB D4 90 00 7E [12:47:56]RAPDU: 08 A3 70 1B CA 03 EB D4 90 00 [12:47:56]wFMCommunicate OK [12:47:56]SAM_PROTO_SignData done [12:47:56]FM_MakeSignedData done [12:47:56]CreateOFDProtocolMessage [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 11 00 00 [12:47:56]Write to MH i2c: E2 08 00 30 11 80 11 00 00 00 00 00 00 BB [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 17 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 17 00 30 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 12 [12:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:47:56]wFMCommunicate OK [12:47:56]CreateOFDProtocolMessage done [12:47:56]OFDSenderStorePacket 117399 [12:47:56]StoreOFDPacket docnum=117399 [12:47:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 96 F7 07 01 DD 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 63 00 00 00 F4 03 04 00 7C 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 97 CA 01 00 35 04 06 00 EB 0D 9D 95 CC 97 08 A3 70 1B CA 03 EB D4 [12:47:56]CheckFolder [12:47:56]dirname=/storage/ofd_packets [12:47:56]CheckFolder done [12:47:56]ProducePacketName [12:47:56]name=ofd_packets/00117399 [12:47:56]NVStorageSaveData ofd_packets/00117399 [12:47:56]File name is /storage/ofd_packets/00117399 [12:47:56]Write 301 bytes [12:47:56]NVStorageSaveData done [12:47:56]OFDSenderStorePacket done [12:47:56]KKMCreateOFDPacket done [12:47:56]NVStorageSaveData kkm_last_timestamp [12:47:56]File name is /storage/kkm_last_timestamp [12:47:56]Write 4 bytes [12:47:56]NVStorageSaveData done [12:47:56]ExternCall_PrintAddStr [12:47:56]wPrintStart [12:47:56]Write to MH i2c: 01 00 00 31 11 42 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 07 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 07 00 31 11 00 00 00 00 00 FF 0F 57 [12:47:56]RasterBufferAndPrint [12:47:56]line Счет N : (1)245175 [12:47:56]line ИНН: 02508201610067 [12:47:56]line Контрольно-Кассовый Чек [12:47:56]line ПРОДАЖА [12:47:56]line ТРК (МРК, ГНК) : 11 [12:47:56]line Товар: 2710124130 [12:47:56]line Аи-92-К-2 [12:47:56]line 4.490 * 66.90 [12:47:56]line = 300.38 [12:47:56]line НДС 12% НСП 1% [12:47:56]line > о реализуемом товаре [12:47:56]line ОКРУГЛЕНИЕ: -0.38 [12:47:56]line ИТОГО: 300.00 [12:47:56]line Внесено: 300.00 [12:47:56]line СДАЧА: 0.00 [12:47:56]line НСП 1% : 2.66 [12:47:56]line НДС 12% : 31.90 [12:47:56]line Наличными: 300.00 [12:47:56]line Безнал.: 0.00 [12:47:56]line Место: АЗС № 173 "Партнер Нефть" [12:47:56]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:47:56]line СНО: Общий режим [12:47:56]line Чек 99 27.10.2024 12:47 [12:47:56]line Смена: 542 ФФД: 1.0 [12:47:56]line ЗНМ: 0300000115 [12:47:56]line РНМ: 0000000000091782 [12:47:56]line Версия ККМ: 001 [12:47:56]line ФМ: 0000000000871767 [12:47:56]line ФД: 117399 [12:47:56]line ФПД: 258443710942359 [12:47:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124756&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117399&fm=258443710942359&tin=02508201610067®Number=0000000000091782&sum=30000 [12:47:56]written 0, free lines is 4095 [12:47:56]OFD Sender: Processing packet 117399 [packets to send 76, broken 75] [12:47:56]ProducePacketName [12:47:56]name=ofd_packets/00117399 [12:47:56]OFD Sender: To server: pG, [12:47:56]CommunicateWithHost lk.salyk.kg:30040 [12:47:56]ConnectInit lk.salyk.kg [12:47:56]Connected sock=10 [12: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 36 37 0F 01 00 00 96 F7 07 01 DD 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 63 00 00 00 F4 03 04 00 7C 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 97 CA 01 00 35 04 06 00 EB 0D 9D 95 CC 97 08 A3 70 1B CA 03 EB D4 [12:47: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 36 37 4F 00 00 00 48 34 47 00 CF 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 36 37 10 04 04 00 97 CA 01 00 F4 03 04 00 39 E2 1D 67 B6 04 01 00 00 16 D5 FA B5 56 7E 02 81 [12:47:57]CommunicateWithHost err = 0 [12:47:57]CheckOFDResponse [12:47:57]1017 (14) - 77093643461234 [12:47:57]1041 (16) - 0000000000871767 [12:47:57]1040 (4) - 117399 [12:47:57]1012 (4) - 27.10.2024 06:48 [12:47:57]1206 (1) - 0 [12:47:57]OFD Sender: Remove packet 117399 [12:47:57]ProducePacketName [12:47:57]name=ofd_packets/00117399 [12:47:57]NVStorageDeleteData [12:47:57]Write to MH i2c: 01 00 00 5B 11 6C [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 5B 11 00 00 00 00 00 AD 0C 2C [12:47:57]RasterBufferAndPrint [12:47:57]line [12:47:57]line [12:47:57]line [12:47:57]line [12:47:57]line [12:47:57]written 0, free lines is 3249 [12:47:57]MH_Cut [12:47:57]Write to MH i2c: D1 01 00 62 11 01 45 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: D1 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: D1 01 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: D1 01 00 62 11 00 44 [12:47:57]Write to MH i2c: 01 00 00 63 11 74 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]OFD Sender: No OFD packet to send [12:47:57]*** Cut start [12:47:57]*** Purtial cut [12:47:57]*** Stage 1: CUTSNS_PIN = 1 [12:47:58]Read from MH i2c: 01 [12:47:58]MH_I2C_Read... [12:47:58]*** Stop cut motor [12:47:58]*** Cut end [12:47:58]Read from MH i2c: 01 07 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: 01 07 00 63 11 00 00 00 00 00 FF 0F 89 [12:47:58]process_action close_receipt done [12:47:58]requested_data is exist [12:47:58]produce_requested_data [12:47:58]requested_item fm.sn is exist - process it [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 11 00 00 [12:47:58]Write to MH i2c: E2 08 00 64 11 80 11 00 00 00 00 00 00 EF [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 17 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 17 00 64 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 46 [12:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:47:58]wFMCommunicate OK [12:47:58]requested_item fd.num is exist - process it [12:47:58]SAM_PROTO_GetFieldsCounters [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 13 00 00 [12:47:58]Write to MH i2c: E2 08 00 65 11 80 13 00 00 00 00 00 00 F2 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 62 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 62 00 65 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 97 CA 01 00 0E 04 04 00 1E 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 C4 [12:47: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 97 CA 01 00 0E 04 04 00 1E 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 [12:47:58]wFMCommunicate OK [12:47:58]SAM_PROTO_GetFieldsCounters done [12:47:58]requested_item shift.num is exist - process it [12:47:58]requested_item shift.opened is exist - process it [12:47:58]req_shift_opened [12:47:58]FM_GetShiftState [12:47:58]SAM_PROTO_GetShiftState [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 13 01 00 [12:47:58]Write to MH i2c: E2 08 00 66 11 80 13 01 00 00 00 00 00 F4 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 0E 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 0E 00 66 11 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 33 [12:47:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:47:58]wFMCommunicate OK [12:47:58]SAM_PROTO_GetShiftState done [12:47:58]FM_GetShiftState done [12:47:58]req_shift_opened done [12:47:58]requested_item shift.open_date is exist - process it [12:47:58]req_shift_open_date [12:47:58]req_shift_open_date done [12:47:58]produce_requested_data done [12:47:58]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117399,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:47:58]process_action_free close_receipt [12:47:58]json_value_free [12:47:58]json_value_free done [12:47:58]process_json_proto returns [12:47:58]Send response to host [12:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117399,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:47:58]free response buf [12:47:58]execute_script done [12:47:58]execute_script returns [12:47:58]free content buf [12:47:58]Sock 7.Close socket [12:47:58]Sock 7.Thread stoped [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:35]accept exits with 9 [12:51:35]New connection [12:51:35]New thread 3067456868 created [12:51:35]Thread 3067600228 joined [12:51:35]Waiting for new connection... [12:51:35] Sock 9.Parse request [12:51:35]Sock 9.Check first char [12:51:35]Sock 9.First char is OK [12:51:35]request: POST /json_proto HTTP/1.0 [12:51:35]Method: POST [12:51:35]URL: /json_proto [12:51:35]Method is POST - this is cgi request [12:51:35]url: /json_proto [12:51:35]query_string will be loaded in cgi processing [12:51:35]execute_cgi json_proto POST (null) [12:51:35]execute_cgi path=json_proto method=POST [12:51:35]POST find Content-Length [12:51:35]Host: 172.17.96.67:8080 [12:51:35]Content-Length: 677 [12:51:35]Content-Type: application/json [12:51:35] [12:51:35]POST finish read [12:51:35]Found Content-Length = 677 [12:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:51:35]execute_script... [12:51: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)245176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:51:35]POST & json_proto [12:51:35]process_json_proto [12:51:35]json parsed OK: [12:51:35]protocol is kg_v1.0 [12:51:35]action value=close_receipt [12:51:35]process_action close_receipt [12:51:35]cmd_close_receipt [12:51:35]MH_GetDate [12:51:35]Write to MH i2c: F0 00 00 67 11 67 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: F0 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: F0 09 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: F0 09 00 67 11 00 59 37 1E 67 2B 09 1E 67 3E [12:51:35]GetLastDocTimeStamp 1730033276 [12:51:35]current date 1730033497 [12:51:35]FM_GetShiftState [12:51:35]SAM_PROTO_GetShiftState [12:51:35]wFMCommunicate request_size=4 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 13 01 00 [12:51:35]Write to MH i2c: E2 08 00 68 11 80 13 01 00 00 00 00 00 F6 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 0E 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 0E 00 68 11 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 35 [12:51:35]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:51:35]wFMCommunicate OK [12:51:35]SAM_PROTO_GetShiftState done [12:51:35]FM_GetShiftState done [12:51:35]opened in 1729987372 [12:51:35]opened+sec_in_day 1730073772 [12:51:35]quantity*price = 30038 [12:51:35]sum+1 = 30039 [12:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 100 27.10.2024 12:51 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117400 ФПД: 9280380318073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125137&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117400&fm=9280380318073&tin=02508201610067®Number=0000000000091782&sum=30000 [12:51:36]StoreToDocumentArchive [12:51:36]shift 542 fd 117400 [12:51:36]save to /storage/0542/doc_00117400 [12:51:36]save last doc name /storage/0542/doc_00117400 to /storage/kkm_last_doc_name [12:51:36]save OK [12:51:36]Clear old archive folders... [12:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:36]tlvbuf is 017004E0 [12:51:36]SAM_PROTO_ClearQueue [12:51:36]wFMCommunicate request_size=4 [12:51:36]MH_SAM_APDU [12:51:36]CAPDU: 80 09 00 00 [12:51:36]Write to MH i2c: E2 08 00 75 11 80 09 00 00 00 00 00 00 F8 [12:51:36]Write i2c OK [12:51:36]MH_I2C_Read... [12:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:36]Read from MH i2c: E2 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: E2 03 00 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: E2 03 00 75 11 00 90 00 FA [12:51:36]RAPDU: 90 00 [12:51:36]wFMCommunicate OK [12:51:36]SAM_PROTO_ClearQueue done [12:51:36]KKMCreateOFDPacket [12:51:36]OFDProtocolAddRootSTLVToBuf [12:51:36]FM_MakeSignedData [12:51:36]FM_MakeSignedData [12:51:36]SAM_PROTO_SignData [12:51:36]wFMCommunicate request_size=4 [12:51:36]MH_SAM_APDU [12:51:36]CAPDU: 80 0D 01 02 [12:51:36]Write to MH i2c: E2 08 00 76 11 80 0D 01 02 00 00 00 00 00 [12:51:36]Write i2c OK [12:51:36]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 76 11 00 90 00 FB [12:51:37]RAPDU: 90 00 [12:51:37]wFMCommunicate OK [12:51:37]wFMCommunicate request_size=255 [12:51:37]MH_SAM_APDU [12:51: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 59 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 98 CA 01 00 35 04 06 00 08 [12:51:37]Write to MH i2c: E2 02 01 77 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 64 00 00 00 F4 03 04 00 59 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 98 CA 01 00 35 04 06 00 08 00 00 8A [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 77 11 00 90 00 FC [12:51:37]RAPDU: 90 00 [12:51:37]wFMCommunicate OK [12:51:37]wFMCommunicate request_size=10 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 0D 02 02 05 70 C1 C5 B1 79 [12:51:37]Write to MH i2c: E2 0D 00 78 11 80 0D 02 02 05 00 70 C1 C5 B1 79 00 00 2D [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 78 11 00 90 00 FD [12:51:37]RAPDU: 90 00 [12:51:37]wFMCommunicate OK [12:51:37]wFMCommunicate request_size=4 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 0D 03 02 [12:51:37]Write to MH i2c: E2 08 00 79 11 80 0D 03 02 00 00 00 00 05 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 0B 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 0B 00 79 11 00 10 07 65 06 84 21 79 FB 90 00 A1 [12:51:37]RAPDU: 10 07 65 06 84 21 79 FB 90 00 [12:51:37]wFMCommunicate OK [12:51:37]SAM_PROTO_SignData done [12:51:37]FM_MakeSignedData done [12:51:37]CreateOFDProtocolMessage [12:51:37]wFMCommunicate request_size=4 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 11 00 00 [12:51:37]Write to MH i2c: E2 08 00 7A 11 80 11 00 00 00 00 00 00 05 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 17 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 17 00 7A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5C [12:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:51:37]wFMCommunicate OK [12:51:37]CreateOFDProtocolMessage done [12:51:37]OFDSenderStorePacket 117400 [12:51:37]StoreOFDPacket docnum=117400 [12:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C6 80 07 01 9F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 59 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 98 CA 01 00 35 04 06 00 08 70 C1 C5 B1 79 10 07 65 06 84 21 79 FB [12:51:37]CheckFolder [12:51:37]dirname=/storage/ofd_packets [12:51:37]CheckFolder done [12:51:37]ProducePacketName [12:51:37]name=ofd_packets/00117400 [12:51:37]NVStorageSaveData ofd_packets/00117400 [12:51:37]File name is /storage/ofd_packets/00117400 [12:51:37]Write 301 bytes [12:51:37]NVStorageSaveData done [12:51:37]OFDSenderStorePacket done [12:51:37]KKMCreateOFDPacket done [12:51:37]NVStorageSaveData kkm_last_timestamp [12:51:37]File name is /storage/kkm_last_timestamp [12:51:37]Write 4 bytes [12:51:37]NVStorageSaveData done [12:51:37]ExternCall_PrintAddStr [12:51:37]wPrintStart [12:51:37]Write to MH i2c: 01 00 00 7B 11 8C [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: 01 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: 01 07 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: 01 07 00 7B 11 00 00 00 00 00 FF 0F A1 [12:51:37]RasterBufferAndPrint [12:51:37]line Счет N : (1)245176 [12:51:37]line ИНН: 02508201610067 [12:51:37]line Контрольно-Кассовый Чек [12:51:37]line ПРОДАЖА [12:51:37]line ТРК (МРК, ГНК) : 21 [12:51:37]line Товар: 2710124130 [12:51:37]line Аи-92-К-2 [12:51:37]line 4.490 * 66.90 [12:51:37]line = 300.38 [12:51:37]line НДС 12% НСП 1% [12:51:37]line > о реализуемом товаре [12:51:37]line ОКРУГЛЕНИЕ: -0.38 [12:51:37]line ИТОГО: 300.00 [12:51:37]line Внесено: 300.00 [12:51:37]line СДАЧА: 0.00 [12:51:37]line НСП 1% : 2.66 [12:51:37]line НДС 12% : 31.90 [12:51:37]line Наличными: 300.00 [12:51:37]line Безнал.: 0.00 [12:51:37]line Место: АЗС № 173 "Партнер Нефть" [12:51:37]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:51:37]line СНО: Общий режим [12:51:37]line Чек 100 27.10.2024 12:51 [12:51:37]line Смена: 542 ФФД: 1.0 [12:51:37]line ЗНМ: 0300000115 [12:51:37]line РНМ: 0000000000091782 [12:51:37]line Версия ККМ: 001 [12:51:37]line ФМ: 0000000000871767 [12:51:37]line ФД: 117400 [12:51:37]line ФПД: 9280380318073 [12:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125137&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117400&fm=9280380318073&tin=02508201610067®Number=0000000000091782&sum=30000 [12:51:37]OFD Sender: Processing packet 117400 [packets to send 76, broken 75] [12:51:37]ProducePacketName [12:51:37]name=ofd_packets/00117400 [12:51:37]OFD Sender: To server: pG, [12:51:37]CommunicateWithHost lk.salyk.kg:30040 [12:51:37]ConnectInit lk.salyk.kg [12:51:37]written 0, free lines is 4095 [12:51:37]Connected sock=10 [12:51: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 36 37 0F 01 00 00 C6 80 07 01 9F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 59 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 98 CA 01 00 35 04 06 00 08 70 C1 C5 B1 79 10 07 65 06 84 21 79 FB [12:51: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 36 37 4F 00 00 00 1A DB 47 00 DF 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 36 37 10 04 04 00 98 CA 01 00 F4 03 04 00 16 E3 1D 67 B6 04 01 00 00 36 02 4F 9B 59 6F 22 8E [12:51:38]CommunicateWithHost err = 0 [12:51:38]CheckOFDResponse [12:51:38]1017 (14) - 77093643461234 [12:51:38]1041 (16) - 0000000000871767 [12:51:38]1040 (4) - 117400 [12:51:38]1012 (4) - 27.10.2024 06:52 [12:51:38]1206 (1) - 0 [12:51:38]OFD Sender: Remove packet 117400 [12:51:38]ProducePacketName [12:51:38]name=ofd_packets/00117400 [12:51:38]NVStorageDeleteData [12:51:38]Write to MH i2c: 01 00 00 A5 11 B6 [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: 01 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: 01 07 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: 01 07 00 A5 11 00 00 00 00 00 B3 0C 7C [12:51:38]RasterBufferAndPrint [12:51:38]line [12:51:38]line [12:51:38]line [12:51:38]line [12:51:38]line [12:51:38]written 0, free lines is 3255 [12:51:38]MH_Cut [12:51:38]Write to MH i2c: D1 01 00 AC 11 01 8F [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: D1 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: D1 01 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: D1 01 00 AC 11 00 8E [12:51:38]Write to MH i2c: 01 00 00 AD 11 BE [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]OFD Sender: No OFD packet to send [12:51:39]*** Cut start [12:51:39]*** Purtial cut [12:51:39]*** Stage 1: CUTSNS_PIN = 1 [12:51:39]Read from MH i2c: 01 [12:51:39]MH_I2C_Read... [12:51:39]*** Stop cut motor [12:51:39]*** Cut end [12:51:39]Read from MH i2c: 01 07 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 FF 0F D3 [12:51:39]process_action close_receipt done [12:51:39]requested_data is exist [12:51:39]produce_requested_data [12:51:39]requested_item fm.sn is exist - process it [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 11 00 00 [12:51:39]Write to MH i2c: E2 08 00 AE 11 80 11 00 00 00 00 00 00 39 [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 17 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 17 00 AE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 90 [12:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:51:39]wFMCommunicate OK [12:51:39]requested_item fd.num is exist - process it [12:51:39]SAM_PROTO_GetFieldsCounters [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 13 00 00 [12:51:39]Write to MH i2c: E2 08 00 AF 11 80 13 00 00 00 00 00 00 3C [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 62 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 62 00 AF 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 98 CA 01 00 0E 04 04 00 1E 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 12 [12:51: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 98 CA 01 00 0E 04 04 00 1E 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 [12:51:39]wFMCommunicate OK [12:51:39]SAM_PROTO_GetFieldsCounters done [12:51:39]requested_item shift.num is exist - process it [12:51:39]requested_item shift.opened is exist - process it [12:51:39]req_shift_opened [12:51:39]FM_GetShiftState [12:51:39]SAM_PROTO_GetShiftState [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 13 01 00 [12:51:39]Write to MH i2c: E2 08 00 B0 11 80 13 01 00 00 00 00 00 3E [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 0E 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 0E 00 B0 11 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 7D [12:51:39]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:51:39]wFMCommunicate OK [12:51:39]SAM_PROTO_GetShiftState done [12:51:39]FM_GetShiftState done [12:51:39]req_shift_opened done [12:51:39]requested_item shift.open_date is exist - process it [12:51:39]req_shift_open_date [12:51:39]req_shift_open_date done [12:51:39]produce_requested_data done [12:51:39]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117400,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:51:39]process_action_free close_receipt [12:51:39]json_value_free [12:51:39]json_value_free done [12:51:39]process_json_proto returns [12:51:39]Send response to host [12:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117400,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:51:39]free response buf [12:51:39]execute_script done [12:51:39]execute_script returns [12:51:39]free content buf [12:51:39]Sock 9.Close socket [12:51:39]Sock 9.Thread stoped [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:57]accept exits with 7 [12:53:57]New connection [12:53:57]New thread 3067600228 created [12:53:57]Thread 3067456868 joined [12:53:57]Waiting for new connection... [12:53:57] Sock 7.Parse request [12:53:57]Sock 7.Check first char [12:53:57]Sock 7.First char is OK [12:53:57]request: POST /json_proto HTTP/1.0 [12:53:57]Method: POST [12:53:57]URL: /json_proto [12:53:57]Method is POST - this is cgi request [12:53:57]url: /json_proto [12:53:57]query_string will be loaded in cgi processing [12:53:57]execute_cgi json_proto POST (null) [12:53:57]execute_cgi path=json_proto method=POST [12:53:57]POST find Content-Length [12:53:57]Host: 172.17.96.67:8080 [12:53:57]Content-Length: 677 [12:53:57]Content-Type: application/json [12:53:57] [12:53:57]POST finish read [12:53:57]Found Content-Length = 677 [12:53:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:53:57]execute_script... [12:53: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)245177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:53:57]POST & json_proto [12:53:57]process_json_proto [12:53:57]json parsed OK: [12:53:57]protocol is kg_v1.0 [12:53:57]action value=close_receipt [12:53:57]process_action close_receipt [12:53:57]cmd_close_receipt [12:53:57]MH_GetDate [12:53:57]Write to MH i2c: F0 00 00 B1 11 B1 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: F0 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: F0 09 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: F0 09 00 B1 11 00 E7 37 1E 67 2B 09 1E 67 16 [12:53:57]GetLastDocTimeStamp 1730033497 [12:53:57]current date 1730033639 [12:53:57]FM_GetShiftState [12:53:57]SAM_PROTO_GetShiftState [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 13 01 00 [12:53:57]Write to MH i2c: E2 08 00 B2 11 80 13 01 00 00 00 00 00 40 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 0E 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 0E 00 B2 11 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 7F [12:53:57]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:53:57]wFMCommunicate OK [12:53:57]SAM_PROTO_GetShiftState done [12:53:57]FM_GetShiftState done [12:53:57]opened in 1729987372 [12:53:57]opened+sec_in_day 1730073772 [12:53:57]quantity*price = 50041 [12:53:57]sum+1 = 50042 [12:53:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 101 27.10.2024 12:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117401 ФПД: 237510781236640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125359&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117401&fm=237510781236640&tin=02508201610067®Number=0000000000091782&sum=50000 [12:53:58]StoreToDocumentArchive [12:53:58]shift 542 fd 117401 [12:53:58]save to /storage/0542/doc_00117401 [12:53:58]save last doc name /storage/0542/doc_00117401 to /storage/kkm_last_doc_name [12:53:58]save OK [12:53:58]Clear old archive folders... [12:53:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:58]tlvbuf is 016DE670 [12:53:58]SAM_PROTO_ClearQueue [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 09 00 00 [12:53:58]Write to MH i2c: E2 08 00 BF 11 80 09 00 00 00 00 00 00 42 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 BF 11 00 90 00 44 [12:53:58]RAPDU: 90 00 [12:53:58]wFMCommunicate OK [12:53:58]SAM_PROTO_ClearQueue done [12:53:58]KKMCreateOFDPacket [12:53:58]OFDProtocolAddRootSTLVToBuf [12:53:58]FM_MakeSignedData [12:53:58]FM_MakeSignedData [12:53:58]SAM_PROTO_SignData [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 0D 01 02 [12:53:58]Write to MH i2c: E2 08 00 C0 11 80 0D 01 02 00 00 00 00 4A [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 C0 11 00 90 00 45 [12:53:58]RAPDU: 90 00 [12:53:58]wFMCommunicate OK [12:53:58]wFMCommunicate request_size=255 [12:53:58]MH_SAM_APDU [12:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E7 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 99 CA 01 00 35 04 06 00 D8 [12:53:58]Write to MH i2c: E2 02 01 C1 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 65 00 00 00 F4 03 04 00 E7 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 99 CA 01 00 35 04 06 00 D8 00 00 40 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:59]Read from MH i2c: E2 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 03 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 03 00 C1 11 00 90 00 46 [12:53:59]RAPDU: 90 00 [12:53:59]wFMCommunicate OK [12:53:59]wFMCommunicate request_size=10 [12:53:59]MH_SAM_APDU [12:53:59]CAPDU: 80 0D 02 02 05 03 C9 BE F5 A0 [12:53:59]Write to MH i2c: E2 0D 00 C2 11 80 0D 02 02 05 00 03 C9 BE F5 A0 00 00 76 [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:59]Read from MH i2c: E2 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 03 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 03 00 C2 11 00 90 00 47 [12:53:59]RAPDU: 90 00 [12:53:59]wFMCommunicate OK [12:53:59]wFMCommunicate request_size=4 [12:53:59]MH_SAM_APDU [12:53:59]CAPDU: 80 0D 03 02 [12:53:59]Write to MH i2c: E2 08 00 C3 11 80 0D 03 02 00 00 00 00 4F [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:59]Read from MH i2c: E2 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 0B 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 0B 00 C3 11 00 29 96 73 F0 D5 6C 88 18 90 00 53 [12:53:59]RAPDU: 29 96 73 F0 D5 6C 88 18 90 00 [12:53:59]wFMCommunicate OK [12:53:59]SAM_PROTO_SignData done [12:53:59]FM_MakeSignedData done [12:53:59]CreateOFDProtocolMessage [12:53:59]wFMCommunicate request_size=4 [12:53:59]MH_SAM_APDU [12:53:59]CAPDU: 80 11 00 00 [12:53:59]Write to MH i2c: E2 08 00 C4 11 80 11 00 00 00 00 00 00 4F [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:59]Read from MH i2c: E2 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 17 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 17 00 C4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A6 [12:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:53:59]wFMCommunicate OK [12:53:59]CreateOFDProtocolMessage done [12:53:59]OFDSenderStorePacket 117401 [12:53:59]StoreOFDPacket docnum=117401 [12:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5A 01 07 01 0A 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E7 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 99 CA 01 00 35 04 06 00 D8 03 C9 BE F5 A0 29 96 73 F0 D5 6C 88 18 [12:53:59]CheckFolder [12:53:59]dirname=/storage/ofd_packets [12:53:59]CheckFolder done [12:53:59]ProducePacketName [12:53:59]name=ofd_packets/00117401 [12:53:59]NVStorageSaveData ofd_packets/00117401 [12:53:59]File name is /storage/ofd_packets/00117401 [12:53:59]Write 301 bytes [12:53:59]NVStorageSaveData done [12:53:59]OFDSenderStorePacket done [12:53:59]KKMCreateOFDPacket done [12:53:59]NVStorageSaveData kkm_last_timestamp [12:53:59]File name is /storage/kkm_last_timestamp [12:53:59]Write 4 bytes [12:53:59]NVStorageSaveData done [12:53:59]ExternCall_PrintAddStr [12:53:59]wPrintStart [12:53:59]Write to MH i2c: 01 00 00 C5 11 D6 [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: 01 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: 01 07 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: 01 07 00 C5 11 00 00 00 00 00 FF 0F EB [12:53:59]RasterBufferAndPrint [12:53:59]line Счет N : (1)245177 [12:53:59]line ИНН: 02508201610067 [12:53:59]line Контрольно-Кассовый Чек [12:53:59]line ПРОДАЖА [12:53:59]line ТРК (МРК, ГНК) : 11 [12:53:59]line Товар: 2710124130 [12:53:59]line Аи-92-К-2 [12:53:59]line 7.480 * 66.90 [12:53:59]line = 500.41 [12:53:59]line НДС 12% НСП 1% [12:53:59]line > о реализуемом товаре [12:53:59]line ОКРУГЛЕНИЕ: -0.41 [12:53:59]line ИТОГО: 500.00 [12:53:59]line Внесено: 500.00 [12:53:59]line СДАЧА: 0.00 [12:53:59]line НСП 1% : 4.43 [12:53:59]line НДС 12% : 53.14 [12:53:59]line Наличными: 500.00 [12:53:59]line Безнал.: 0.00 [12:53:59]line Место: АЗС № 173 "Партнер Нефть" [12:53:59]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:53:59]line СНО: Общий режим [12:53:59]line Чек 101 27.10.2024 12:53 [12:53:59]line Смена: 542 ФФД: 1.0 [12:53:59]line ЗНМ: 0300000115 [12:53:59]line РНМ: 0000000000091782 [12:53:59]line Версия ККМ: 001 [12:53:59]line ФМ: 0000000000871767 [12:53:59]line ФД: 117401 [12:53:59]line ФПД: 237510781236640 [12:53:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125359&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117401&fm=237510781236640&tin=02508201610067®Number=0000000000091782&sum=50000 [12:53:59]written 0, free lines is 4095 [12:53:59]OFD Sender: Processing packet 117401 [packets to send 76, broken 75] [12:53:59]ProducePacketName [12:53:59]name=ofd_packets/00117401 [12:53:59]OFD Sender: To server: pG, [12:53:59]CommunicateWithHost lk.salyk.kg:30040 [12:53:59]ConnectInit lk.salyk.kg [12:53:59]Connected sock=10 [12:53: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 36 37 0F 01 00 00 5A 01 07 01 0A 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E7 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 99 CA 01 00 35 04 06 00 D8 03 C9 BE F5 A0 29 96 73 F0 D5 6C 88 18 [12:54: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 36 37 4F 00 00 00 91 7E 47 00 1B 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 36 37 10 04 04 00 99 CA 01 00 F4 03 04 00 A4 E3 1D 67 B6 04 01 00 00 76 28 FB 76 59 4D 7C 7B [12:54:00]CommunicateWithHost err = 0 [12:54:00]CheckOFDResponse [12:54:00]1017 (14) - 77093643461234 [12:54:00]1041 (16) - 0000000000871767 [12:54:00]1040 (4) - 117401 [12:54:00]1012 (4) - 27.10.2024 06:54 [12:54:00]1206 (1) - 0 [12:54:00]OFD Sender: Remove packet 117401 [12:54:00]ProducePacketName [12:54:00]name=ofd_packets/00117401 [12:54:00]NVStorageDeleteData [12:54:00]Write to MH i2c: 01 00 00 EF 11 00 [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: 01 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: 01 07 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: 01 07 00 EF 11 00 00 00 00 00 A8 0C BB [12:54:00]RasterBufferAndPrint [12:54:00]line [12:54:00]line [12:54:00]line [12:54:00]line [12:54:00]line [12:54:00]written 0, free lines is 3243 [12:54:00]MH_Cut [12:54:00]Write to MH i2c: D1 01 00 F6 11 01 D9 [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: D1 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: D1 01 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: D1 01 00 F6 11 00 D8 [12:54:00]Write to MH i2c: 01 00 00 F7 11 08 [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]OFD Sender: No OFD packet to send [12:54:01]*** Cut start [12:54:01]*** Purtial cut [12:54:01]*** Stage 1: CUTSNS_PIN = 1 [12:54:01]Read from MH i2c: 01 [12:54:01]MH_I2C_Read... [12:54:01]*** Stop cut motor [12:54:01]*** Cut end [12:54:01]Read from MH i2c: 01 07 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 FF 0F 1D [12:54:01]process_action close_receipt done [12:54:01]requested_data is exist [12:54:01]produce_requested_data [12:54:01]requested_item fm.sn is exist - process it [12:54:01]wFMCommunicate request_size=4 [12:54:01]MH_SAM_APDU [12:54:01]CAPDU: 80 11 00 00 [12:54:01]Write to MH i2c: E2 08 00 F8 11 80 11 00 00 00 00 00 00 83 [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:01]Read from MH i2c: E2 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 17 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 17 00 F8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DA [12:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:54:01]wFMCommunicate OK [12:54:01]requested_item fd.num is exist - process it [12:54:01]SAM_PROTO_GetFieldsCounters [12:54:01]wFMCommunicate request_size=4 [12:54:01]MH_SAM_APDU [12:54:01]CAPDU: 80 13 00 00 [12:54:01]Write to MH i2c: E2 08 00 F9 11 80 13 00 00 00 00 00 00 86 [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:01]Read from MH i2c: E2 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 62 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 62 00 F9 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 99 CA 01 00 0E 04 04 00 1E 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 60 [12:54: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 99 CA 01 00 0E 04 04 00 1E 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 [12:54:01]wFMCommunicate OK [12:54:01]SAM_PROTO_GetFieldsCounters done [12:54:01]requested_item shift.num is exist - process it [12:54:01]requested_item shift.opened is exist - process it [12:54:01]req_shift_opened [12:54:01]FM_GetShiftState [12:54:01]SAM_PROTO_GetShiftState [12:54:01]wFMCommunicate request_size=4 [12:54:01]MH_SAM_APDU [12:54:01]CAPDU: 80 13 01 00 [12:54:01]Write to MH i2c: E2 08 00 FA 11 80 13 01 00 00 00 00 00 88 [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:01]Read from MH i2c: E2 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 0E 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 0E 00 FA 11 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C7 [12:54:01]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:54:01]wFMCommunicate OK [12:54:01]SAM_PROTO_GetShiftState done [12:54:01]FM_GetShiftState done [12:54:01]req_shift_opened done [12:54:01]requested_item shift.open_date is exist - process it [12:54:01]req_shift_open_date [12:54:01]req_shift_open_date done [12:54:01]produce_requested_data done [12:54:01]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117401,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:54:01]process_action_free close_receipt [12:54:01]json_value_free [12:54:01]json_value_free done [12:54:01]process_json_proto returns [12:54:01]Send response to host [12:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117401,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:54:01]free response buf [12:54:01]execute_script done [12:54:01]execute_script returns [12:54:01]free content buf [12:54:01]Sock 7.Close socket [12:54:01]Sock 7.Thread stoped [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:54:59]accept exits with 9 [12:54:59]New connection [12:54:59]New thread 3067456868 created [12:54:59]Thread 3067600228 joined [12:54:59]Waiting for new connection... [12:54:59] Sock 9.Parse request [12:54:59]Sock 9.Check first char [12:54:59]Sock 9.First char is OK [12:54:59]request: POST /json_proto HTTP/1.0 [12:54:59]Method: POST [12:54:59]URL: /json_proto [12:54:59]Method is POST - this is cgi request [12:54:59]url: /json_proto [12:54:59]query_string will be loaded in cgi processing [12:54:59]execute_cgi json_proto POST (null) [12:54:59]execute_cgi path=json_proto method=POST [12:54:59]POST find Content-Length [12:54:59]Host: 172.17.96.67:8080 [12:54:59]Content-Length: 678 [12:54:59]Content-Type: application/json [12:54:59] [12:54:59]POST finish read [12:54:59]Found Content-Length = 678 [12:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:54:59]execute_script... [12:54: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)245178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:54:59]POST & json_proto [12:54:59]process_json_proto [12:54:59]json parsed OK: [12:54:59]protocol is kg_v1.0 [12:54:59]action value=close_receipt [12:54:59]process_action close_receipt [12:54:59]cmd_close_receipt [12:54:59]MH_GetDate [12:54:59]Write to MH i2c: F0 00 00 FB 11 FB [12:54:59]Write i2c OK [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: F0 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: F0 09 00 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: F0 09 00 FB 11 00 24 38 1E 67 2B 09 1E 67 9E [12:54:59]GetLastDocTimeStamp 1730033639 [12:54:59]current date 1730033700 [12:54:59]FM_GetShiftState [12:54:59]SAM_PROTO_GetShiftState [12:54:59]wFMCommunicate request_size=4 [12:54:59]MH_SAM_APDU [12:54:59]CAPDU: 80 13 01 00 [12:54:59]Write to MH i2c: E2 08 00 FC 11 80 13 01 00 00 00 00 00 8A [12:54:59]Write i2c OK [12:54:59]MH_I2C_Read... [12:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:59]Read from MH i2c: E2 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 0E 00 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 0E 00 FC 11 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C9 [12:54:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:54:59]wFMCommunicate OK [12:54:59]SAM_PROTO_GetShiftState done [12:54:59]FM_GetShiftState done [12:54:59]opened in 1729987372 [12:54:59]opened+sec_in_day 1730073772 [12:54:59]quantity*price = 70044 [12:54:59]sum+1 = 70045 [12:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 102 27.10.2024 12:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117402 ФПД: 37837795077926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125501&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117402&fm=37837795077926&tin=02508201610067®Number=0000000000091782&sum=70000 [12:55:00]StoreToDocumentArchive [12:55:00]shift 542 fd 117402 [12:55:00]save to /storage/0542/doc_00117402 [12:55:00]save last doc name /storage/0542/doc_00117402 to /storage/kkm_last_doc_name [12:55:00]save OK [12:55:00]Clear old archive folders... [12:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:00]tlvbuf is 01704560 [12:55:00]SAM_PROTO_ClearQueue [12:55:00]wFMCommunicate request_size=4 [12:55:00]MH_SAM_APDU [12:55:00]CAPDU: 80 09 00 00 [12:55:00]Write to MH i2c: E2 08 00 09 12 80 09 00 00 00 00 00 00 8D [12:55:00]Write i2c OK [12:55:00]MH_I2C_Read... [12:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:00]Read from MH i2c: E2 [12:55:00]MH_I2C_Read... [12:55:00]Read from MH i2c: E2 03 00 [12:55:00]MH_I2C_Read... [12:55:00]OFD Sender: No OFD packet to send [12:55:00]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [12:55:00]RAPDU: 90 00 [12:55:00]wFMCommunicate OK [12:55:00]SAM_PROTO_ClearQueue done [12:55:00]KKMCreateOFDPacket [12:55:00]OFDProtocolAddRootSTLVToBuf [12:55:00]FM_MakeSignedData [12:55:00]FM_MakeSignedData [12:55:00]SAM_PROTO_SignData [12:55:00]wFMCommunicate request_size=4 [12:55:00]MH_SAM_APDU [12:55:00]CAPDU: 80 0D 01 02 [12:55:00]Write to MH i2c: E2 08 00 0A 12 80 0D 01 02 00 00 00 00 95 [12:55:00]Write i2c OK [12:55:00]MH_I2C_Read... [12:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:00]Read from MH i2c: E2 [12:55:00]MH_I2C_Read... [12:55:00]Read from MH i2c: E2 03 00 [12:55:00]MH_I2C_Read... [12:55:00]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [12:55:00]RAPDU: 90 00 [12:55:00]wFMCommunicate OK [12:55:00]wFMCommunicate request_size=255 [12:55:00]MH_SAM_APDU [12:55: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 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 66 00 00 00 F4 03 04 00 25 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9A CA 01 00 35 04 06 00 22 [12:55:00]Write to MH i2c: E2 02 01 0B 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 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 66 00 00 00 F4 03 04 00 25 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9A CA 01 00 35 04 06 00 22 00 00 26 [12:55:00]Write i2c OK [12:55:00]MH_I2C_Read... [12:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:00]Read from MH i2c: E2 [12:55:00]MH_I2C_Read... [12:55:00]Read from MH i2c: E2 03 00 [12:55:00]MH_I2C_Read... [12:55:00]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [12:55:00]RAPDU: 90 00 [12:55:00]wFMCommunicate OK [12:55:00]wFMCommunicate request_size=10 [12:55:00]MH_SAM_APDU [12:55:00]CAPDU: 80 0D 02 02 05 69 CC 55 AF 26 [12:55:00]Write to MH i2c: E2 0D 00 0C 12 80 0D 02 02 05 00 69 CC 55 AF 26 00 00 01 [12:55:00]Write i2c OK [12:55:00]MH_I2C_Read... [12:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:01]Read from MH i2c: E2 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: E2 03 00 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [12:55:01]RAPDU: 90 00 [12:55:01]wFMCommunicate OK [12:55:01]wFMCommunicate request_size=4 [12:55:01]MH_SAM_APDU [12:55:01]CAPDU: 80 0D 03 02 [12:55:01]Write to MH i2c: E2 08 00 0D 12 80 0D 03 02 00 00 00 00 9A [12:55:01]Write i2c OK [12:55:01]MH_I2C_Read... [12:55:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:01]Read from MH i2c: E2 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: E2 0B 00 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: E2 0B 00 0D 12 00 30 69 69 7F 48 A4 DD 7A 90 00 5F [12:55:01]RAPDU: 30 69 69 7F 48 A4 DD 7A 90 00 [12:55:01]wFMCommunicate OK [12:55:01]SAM_PROTO_SignData done [12:55:01]FM_MakeSignedData done [12:55:01]CreateOFDProtocolMessage [12:55:01]wFMCommunicate request_size=4 [12:55:01]MH_SAM_APDU [12:55:01]CAPDU: 80 11 00 00 [12:55:01]Write to MH i2c: E2 08 00 0E 12 80 11 00 00 00 00 00 00 9A [12:55:01]Write i2c OK [12:55:01]MH_I2C_Read... [12:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:01]Read from MH i2c: E2 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: E2 17 00 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: E2 17 00 0E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F1 [12:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:55:01]wFMCommunicate OK [12:55:01]CreateOFDProtocolMessage done [12:55:01]OFDSenderStorePacket 117402 [12:55:01]StoreOFDPacket docnum=117402 [12:55:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8C C0 07 01 27 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 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 66 00 00 00 F4 03 04 00 25 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9A CA 01 00 35 04 06 00 22 69 CC 55 AF 26 30 69 69 7F 48 A4 DD 7A [12:55:01]CheckFolder [12:55:01]dirname=/storage/ofd_packets [12:55:01]CheckFolder done [12:55:01]ProducePacketName [12:55:01]name=ofd_packets/00117402 [12:55:01]NVStorageSaveData ofd_packets/00117402 [12:55:01]File name is /storage/ofd_packets/00117402 [12:55:01]Write 301 bytes [12:55:01]NVStorageSaveData done [12:55:01]OFDSenderStorePacket done [12:55:01]KKMCreateOFDPacket done [12:55:01]NVStorageSaveData kkm_last_timestamp [12:55:01]File name is /storage/kkm_last_timestamp [12:55:01]Write 4 bytes [12:55:01]NVStorageSaveData done [12:55:01]ExternCall_PrintAddStr [12:55:01]wPrintStart [12:55:01]Write to MH i2c: 01 00 00 0F 12 21 [12:55:01]Write i2c OK [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: 01 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: 01 07 00 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: 01 07 00 0F 12 00 00 00 00 00 FF 0F 36 [12:55:01]RasterBufferAndPrint [12:55:01]line Счет N : (1)245178 [12:55:01]line ИНН: 02508201610067 [12:55:01]line Контрольно-Кассовый Чек [12:55:01]line ПРОДАЖА [12:55:01]line ТРК (МРК, ГНК) : 21 [12:55:01]line Товар: 2710124130 [12:55:01]line Аи-92-К-2 [12:55:01]line 10.470 * 66.90 [12:55:01]line = 700.44 [12:55:01]line НДС 12% НСП 1% [12:55:01]line > о реализуемом товаре [12:55:01]line ОКРУГЛЕНИЕ: -0.44 [12:55:01]line ИТОГО: 700.00 [12:55:01]line Внесено: 700.00 [12:55:01]line СДАЧА: 0.00 [12:55:01]line НСП 1% : 6.20 [12:55:01]line НДС 12% : 74.38 [12:55:01]line Наличными: 700.00 [12:55:01]line Безнал.: 0.00 [12:55:01]line Место: АЗС № 173 "Партнер Нефть" [12:55:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:55:01]line СНО: Общий режим [12:55:01]line Чек 102 27.10.2024 12:55 [12:55:01]line Смена: 542 ФФД: 1.0 [12:55:01]line ЗНМ: 0300000115 [12:55:01]line РНМ: 0000000000091782 [12:55:01]line Версия ККМ: 001 [12:55:01]line ФМ: 0000000000871767 [12:55:01]line ФД: 117402 [12:55:01]line ФПД: 37837795077926 [12:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125501&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117402&fm=37837795077926&tin=02508201610067®Number=0000000000091782&sum=70000 [12:55:01]OFD Sender: Processing packet 117402 [packets to send 76, broken 75] [12:55:01]ProducePacketName [12:55:01]name=ofd_packets/00117402 [12:55:01]OFD Sender: To server: pG, [12:55:01]CommunicateWithHost lk.salyk.kg:30040 [12:55:01]ConnectInit lk.salyk.kg [12:55:01]written 0, free lines is 4095 [12:55:01]Connected sock=10 [12:55: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 36 37 0F 01 00 00 8C C0 07 01 27 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 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 66 00 00 00 F4 03 04 00 25 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9A CA 01 00 35 04 06 00 22 69 CC 55 AF 26 30 69 69 7F 48 A4 DD 7A [12:55: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 36 37 4F 00 00 00 93 13 47 00 4C 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 36 37 10 04 04 00 9A CA 01 00 F4 03 04 00 E2 E3 1D 67 B6 04 01 00 00 65 6B 7F C8 1B B0 6B 15 [12:55:01]CommunicateWithHost err = 0 [12:55:01]CheckOFDResponse [12:55:01]1017 (14) - 77093643461234 [12:55:01]1041 (16) - 0000000000871767 [12:55:01]1040 (4) - 117402 [12:55:01]1012 (4) - 27.10.2024 06:55 [12:55:01]1206 (1) - 0 [12:55:01]OFD Sender: Remove packet 117402 [12:55:01]ProducePacketName [12:55:01]name=ofd_packets/00117402 [12:55:01]NVStorageDeleteData [12:55:01]Write to MH i2c: 01 00 00 39 12 4B [12:55:01]Write i2c OK [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: 01 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: 01 07 00 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: 01 07 00 39 12 00 00 00 00 00 A3 0C 01 [12:55:01]RasterBufferAndPrint [12:55:01]line [12:55:01]line [12:55:01]line [12:55:01]line [12:55:01]line [12:55:01]written 0, free lines is 3240 [12:55:01]MH_Cut [12:55:01]Write to MH i2c: D1 01 00 40 12 01 24 [12:55:01]Write i2c OK [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: D1 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: D1 01 00 [12:55:01]MH_I2C_Read... [12:55:01]Read from MH i2c: D1 01 00 40 12 00 23 [12:55:01]Write to MH i2c: 01 00 00 41 12 53 [12:55:01]Write i2c OK [12:55:01]MH_I2C_Read... [12:55:02]OFD Sender: No OFD packet to send [12:55:02]*** Cut start [12:55:02]*** Purtial cut [12:55:02]*** Stage 1: CUTSNS_PIN = 1 [12:55:03]Read from MH i2c: 01 [12:55:03]MH_I2C_Read... [12:55:03]*** Stop cut motor [12:55:03]*** Cut end [12:55:03]Read from MH i2c: 01 07 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 FF 0F 68 [12:55:03]process_action close_receipt done [12:55:03]requested_data is exist [12:55:03]produce_requested_data [12:55:03]requested_item fm.sn is exist - process it [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 11 00 00 [12:55:03]Write to MH i2c: E2 08 00 42 12 80 11 00 00 00 00 00 00 CE [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 17 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 17 00 42 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 25 [12:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:55:03]wFMCommunicate OK [12:55:03]requested_item fd.num is exist - process it [12:55:03]SAM_PROTO_GetFieldsCounters [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 13 00 00 [12:55:03]Write to MH i2c: E2 08 00 43 12 80 13 00 00 00 00 00 00 D1 [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 62 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 62 00 43 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9A CA 01 00 0E 04 04 00 1E 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 AF [12:55: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9A CA 01 00 0E 04 04 00 1E 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 [12:55:03]wFMCommunicate OK [12:55:03]SAM_PROTO_GetFieldsCounters done [12:55:03]requested_item shift.num is exist - process it [12:55:03]requested_item shift.opened is exist - process it [12:55:03]req_shift_opened [12:55:03]FM_GetShiftState [12:55:03]SAM_PROTO_GetShiftState [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 13 01 00 [12:55:03]Write to MH i2c: E2 08 00 44 12 80 13 01 00 00 00 00 00 D3 [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 0E 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 0E 00 44 12 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 12 [12:55:03]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:55:03]wFMCommunicate OK [12:55:03]SAM_PROTO_GetShiftState done [12:55:03]FM_GetShiftState done [12:55:03]req_shift_opened done [12:55:03]requested_item shift.open_date is exist - process it [12:55:03]req_shift_open_date [12:55:03]req_shift_open_date done [12:55:03]produce_requested_data done [12:55:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117402,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:55:03]process_action_free close_receipt [12:55:03]json_value_free [12:55:03]json_value_free done [12:55:03]process_json_proto returns [12:55:03]Send response to host [12:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117402,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:55:03]free response buf [12:55:03]execute_script done [12:55:03]execute_script returns [12:55:03]free content buf [12:55:03]Sock 9.Close socket [12:55:03]Sock 9.Thread stoped [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:13]accept exits with 7 [12:57:13]New connection [12:57:13]New thread 3067600228 created [12:57:13]Thread 3067456868 joined [12:57:13]Waiting for new connection... [12:57:13] Sock 7.Parse request [12:57:13]Sock 7.Check first char [12:57:13]Sock 7.First char is OK [12:57:13]request: POST /json_proto HTTP/1.0 [12:57:13]Method: POST [12:57:13]URL: /json_proto [12:57:13]Method is POST - this is cgi request [12:57:13]url: /json_proto [12:57:13]query_string will be loaded in cgi processing [12:57:13]execute_cgi json_proto POST (null) [12:57:13]execute_cgi path=json_proto method=POST [12:57:13]POST find Content-Length [12:57:13]Host: 172.17.96.67:8080 [12:57:13]Content-Length: 677 [12:57:13]Content-Type: application/json [12:57:13] [12:57:13]POST finish read [12:57:13]Found Content-Length = 677 [12:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:57:13]execute_script... [12:57:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:57:13]POST & json_proto [12:57:13]process_json_proto [12:57:13]json parsed OK: [12:57:13]protocol is kg_v1.0 [12:57:13]action value=close_receipt [12:57:13]process_action close_receipt [12:57:13]cmd_close_receipt [12:57:13]MH_GetDate [12:57:13]Write to MH i2c: F0 00 00 45 12 46 [12:57:13]Write i2c OK [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: F0 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: F0 09 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: F0 09 00 45 12 00 AB 38 1E 67 2B 09 1E 67 70 [12:57:13]GetLastDocTimeStamp 1730033701 [12:57:13]current date 1730033835 [12:57:13]FM_GetShiftState [12:57:13]SAM_PROTO_GetShiftState [12:57:13]wFMCommunicate request_size=4 [12:57:13]MH_SAM_APDU [12:57:13]CAPDU: 80 13 01 00 [12:57:13]Write to MH i2c: E2 08 00 46 12 80 13 01 00 00 00 00 00 D5 [12:57:13]Write i2c OK [12:57:13]MH_I2C_Read... [12:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:13]Read from MH i2c: E2 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 0E 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 0E 00 46 12 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 14 [12:57:13]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:57:13]wFMCommunicate OK [12:57:13]SAM_PROTO_GetShiftState done [12:57:13]FM_GetShiftState done [12:57:13]opened in 1729987372 [12:57:13]opened+sec_in_day 1730073772 [12:57:13]quantity*price = 20003 [12:57:13]sum+1 = 20004 [12:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 103 27.10.2024 12:57 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117403 ФПД: 268597352834568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125715&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117403&fm=268597352834568&tin=02508201610067®Number=0000000000091782&sum=20000 [12:57:14]StoreToDocumentArchive [12:57:14]shift 542 fd 117403 [12:57:14]save to /storage/0542/doc_00117403 [12:57:14]save last doc name /storage/0542/doc_00117403 to /storage/kkm_last_doc_name [12:57:14]save OK [12:57:14]Clear old archive folders... [12:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:14]tlvbuf is 0170F300 [12:57:14]SAM_PROTO_ClearQueue [12:57:14]wFMCommunicate request_size=4 [12:57:14]MH_SAM_APDU [12:57:14]CAPDU: 80 09 00 00 [12:57:14]Write to MH i2c: E2 08 00 53 12 80 09 00 00 00 00 00 00 D7 [12:57:14]Write i2c OK [12:57:14]MH_I2C_Read... [12:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:15]Read from MH i2c: E2 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 03 00 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 03 00 53 12 00 90 00 D9 [12:57:15]RAPDU: 90 00 [12:57:15]wFMCommunicate OK [12:57:15]SAM_PROTO_ClearQueue done [12:57:15]KKMCreateOFDPacket [12:57:15]OFDProtocolAddRootSTLVToBuf [12:57:15]FM_MakeSignedData [12:57:15]FM_MakeSignedData [12:57:15]SAM_PROTO_SignData [12:57:15]wFMCommunicate request_size=4 [12:57:15]MH_SAM_APDU [12:57:15]CAPDU: 80 0D 01 02 [12:57:15]Write to MH i2c: E2 08 00 54 12 80 0D 01 02 00 00 00 00 DF [12:57:15]Write i2c OK [12:57:15]MH_I2C_Read... [12:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:15]Read from MH i2c: E2 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 03 00 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 03 00 54 12 00 90 00 DA [12:57:15]RAPDU: 90 00 [12:57:15]wFMCommunicate OK [12:57:15]wFMCommunicate request_size=255 [12:57:15]MH_SAM_APDU [12: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 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 67 00 00 00 F4 03 04 00 AB 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9B CA 01 00 35 04 06 00 F4 [12:57:15]Write to MH i2c: E2 02 01 55 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 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 67 00 00 00 F4 03 04 00 AB 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9B CA 01 00 35 04 06 00 F4 00 00 7C [12:57:15]Write i2c OK [12:57:15]MH_I2C_Read... [12:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:15]Read from MH i2c: E2 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 03 00 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 03 00 55 12 00 90 00 DB [12:57:15]RAPDU: 90 00 [12:57:15]wFMCommunicate OK [12:57:15]wFMCommunicate request_size=10 [12:57:15]MH_SAM_APDU [12:57:15]CAPDU: 80 0D 02 02 05 49 B1 CD A6 08 [12:57:15]Write to MH i2c: E2 0D 00 56 12 80 0D 02 02 05 00 49 B1 CD A6 08 00 00 61 [12:57:15]Write i2c OK [12:57:15]MH_I2C_Read... [12:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:15]Read from MH i2c: E2 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 03 00 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [12:57:15]RAPDU: 90 00 [12:57:15]wFMCommunicate OK [12:57:15]wFMCommunicate request_size=4 [12:57:15]MH_SAM_APDU [12:57:15]CAPDU: 80 0D 03 02 [12:57:15]Write to MH i2c: E2 08 00 57 12 80 0D 03 02 00 00 00 00 E4 [12:57:15]Write i2c OK [12:57:15]MH_I2C_Read... [12:57:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:15]Read from MH i2c: E2 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 0B 00 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 0B 00 57 12 00 BC 29 A0 2E 29 46 04 57 90 00 62 [12:57:15]RAPDU: BC 29 A0 2E 29 46 04 57 90 00 [12:57:15]wFMCommunicate OK [12:57:15]SAM_PROTO_SignData done [12:57:15]FM_MakeSignedData done [12:57:15]CreateOFDProtocolMessage [12:57:15]wFMCommunicate request_size=4 [12:57:15]MH_SAM_APDU [12:57:15]CAPDU: 80 11 00 00 [12:57:15]Write to MH i2c: E2 08 00 58 12 80 11 00 00 00 00 00 00 E4 [12:57:15]Write i2c OK [12:57:15]MH_I2C_Read... [12:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:15]Read from MH i2c: E2 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: E2 17 00 [12:57:15]MH_I2C_Read... [12:57:15]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 36 37 90 00 3B [12:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:57:15]wFMCommunicate OK [12:57:15]CreateOFDProtocolMessage done [12:57:15]OFDSenderStorePacket 117403 [12:57:15]StoreOFDPacket docnum=117403 [12:57:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4D 15 07 01 01 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 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 67 00 00 00 F4 03 04 00 AB 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9B CA 01 00 35 04 06 00 F4 49 B1 CD A6 08 BC 29 A0 2E 29 46 04 57 [12:57:15]CheckFolder [12:57:15]dirname=/storage/ofd_packets [12:57:15]CheckFolder done [12:57:15]ProducePacketName [12:57:15]name=ofd_packets/00117403 [12:57:15]NVStorageSaveData ofd_packets/00117403 [12:57:15]File name is /storage/ofd_packets/00117403 [12:57:15]Write 301 bytes [12:57:15]NVStorageSaveData done [12:57:15]OFDSenderStorePacket done [12:57:15]KKMCreateOFDPacket done [12:57:15]NVStorageSaveData kkm_last_timestamp [12:57:15]File name is /storage/kkm_last_timestamp [12:57:15]Write 4 bytes [12:57:15]NVStorageSaveData done [12:57:15]ExternCall_PrintAddStr [12:57:15]wPrintStart [12:57:15]Write to MH i2c: 01 00 00 59 12 6B [12:57:15]Write i2c OK [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: 01 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: 01 07 00 [12:57:15]MH_I2C_Read... [12:57:15]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 FF 0F 80 [12:57:15]RasterBufferAndPrint [12:57:15]line Счет N : (1)245179 [12:57:15]line ИНН: 02508201610067 [12:57:15]line Контрольно-Кассовый Чек [12:57:15]line ПРОДАЖА [12:57:15]line ТРК (МРК, ГНК) : 21 [12:57:15]line Товар: 2710124130 [12:57:15]line Аи-92-К-2 [12:57:15]line 2.990 * 66.90 [12:57:15]line = 200.03 [12:57:15]line НДС 12% НСП 1% [12:57:15]line > о реализуемом товаре [12:57:15]line ОКРУГЛЕНИЕ: -0.03 [12:57:15]line ИТОГО: 200.00 [12:57:15]line Внесено: 200.00 [12:57:15]line СДАЧА: 0.00 [12:57:15]line НСП 1% : 1.77 [12:57:15]line НДС 12% : 21.24 [12:57:15]line Наличными: 200.00 [12:57:15]line Безнал.: 0.00 [12:57:15]line Место: АЗС № 173 "Партнер Нефть" [12:57:15]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:57:15]line СНО: Общий режим [12:57:15]line Чек 103 27.10.2024 12:57 [12:57:15]line Смена: 542 ФФД: 1.0 [12:57:15]line ЗНМ: 0300000115 [12:57:15]line РНМ: 0000000000091782 [12:57:15]line Версия ККМ: 001 [12:57:15]line ФМ: 0000000000871767 [12:57:15]line ФД: 117403 [12:57:15]line ФПД: 268597352834568 [12:57:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125715&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117403&fm=268597352834568&tin=02508201610067®Number=0000000000091782&sum=20000 [12:57:15]written 0, free lines is 4095 [12:57:15]OFD Sender: Processing packet 117403 [packets to send 76, broken 75] [12:57:15]ProducePacketName [12:57:15]name=ofd_packets/00117403 [12:57:15]OFD Sender: To server: pG, [12:57:15]CommunicateWithHost lk.salyk.kg:30040 [12:57:15]ConnectInit lk.salyk.kg [12:57:15]Connected sock=10 [12:57: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 36 37 0F 01 00 00 4D 15 07 01 01 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 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 67 00 00 00 F4 03 04 00 AB 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9B CA 01 00 35 04 06 00 F4 49 B1 CD A6 08 BC 29 A0 2E 29 46 04 57 [12: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 36 37 4F 00 00 00 1B B6 47 00 2C 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 36 37 10 04 04 00 9B CA 01 00 F4 03 04 00 68 E4 1D 67 B6 04 01 00 00 32 9F E4 EC 68 F4 8F CB [12:57:16]CommunicateWithHost err = 0 [12:57:16]CheckOFDResponse [12:57:16]1017 (14) - 77093643461234 [12:57:16]1041 (16) - 0000000000871767 [12:57:16]1040 (4) - 117403 [12:57:16]1012 (4) - 27.10.2024 06:57 [12:57:16]1206 (1) - 0 [12:57:16]OFD Sender: Remove packet 117403 [12:57:16]ProducePacketName [12:57:16]name=ofd_packets/00117403 [12:57:16]NVStorageDeleteData [12:57:16]Write to MH i2c: 01 00 00 83 12 95 [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: 01 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: 01 07 00 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: 01 07 00 83 12 00 00 00 00 00 A6 0C 4E [12:57:16]RasterBufferAndPrint [12:57:16]line [12:57:16]line [12:57:16]line [12:57:16]line [12:57:16]line [12:57:16]written 0, free lines is 3241 [12:57:16]MH_Cut [12:57:16]Write to MH i2c: D1 01 00 8A 12 01 6E [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: D1 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: D1 01 00 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: D1 01 00 8A 12 00 6D [12:57:16]Write to MH i2c: 01 00 00 8B 12 9D [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]OFD Sender: No OFD packet to send [12:57:17]*** Cut start [12:57:17]*** Purtial cut [12:57:17]*** Stage 1: CUTSNS_PIN = 1 [12:57:17]Read from MH i2c: 01 [12:57:17]MH_I2C_Read... [12:57:17]*** Stop cut motor [12:57:17]*** Cut end [12:57:17]Read from MH i2c: 01 07 00 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: 01 07 00 8B 12 00 00 00 00 00 FF 0F B2 [12:57:17]process_action close_receipt done [12:57:17]requested_data is exist [12:57:17]produce_requested_data [12:57:17]requested_item fm.sn is exist - process it [12:57:17]wFMCommunicate request_size=4 [12:57:17]MH_SAM_APDU [12:57:17]CAPDU: 80 11 00 00 [12:57:17]Write to MH i2c: E2 08 00 8C 12 80 11 00 00 00 00 00 00 18 [12:57:17]Write i2c OK [12:57:17]MH_I2C_Read... [12:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:17]Read from MH i2c: E2 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: E2 17 00 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: E2 17 00 8C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6F [12:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:57:17]wFMCommunicate OK [12:57:17]requested_item fd.num is exist - process it [12:57:17]SAM_PROTO_GetFieldsCounters [12:57:17]wFMCommunicate request_size=4 [12:57:17]MH_SAM_APDU [12:57:17]CAPDU: 80 13 00 00 [12:57:17]Write to MH i2c: E2 08 00 8D 12 80 13 00 00 00 00 00 00 1B [12:57:17]Write i2c OK [12:57:17]MH_I2C_Read... [12:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:17]Read from MH i2c: E2 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: E2 62 00 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: E2 62 00 8D 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9B CA 01 00 0E 04 04 00 1E 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 FD [12:57:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9B CA 01 00 0E 04 04 00 1E 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 [12:57:17]wFMCommunicate OK [12:57:17]SAM_PROTO_GetFieldsCounters done [12:57:17]requested_item shift.num is exist - process it [12:57:17]requested_item shift.opened is exist - process it [12:57:17]req_shift_opened [12:57:17]FM_GetShiftState [12:57:17]SAM_PROTO_GetShiftState [12:57:17]wFMCommunicate request_size=4 [12:57:17]MH_SAM_APDU [12:57:17]CAPDU: 80 13 01 00 [12:57:17]Write to MH i2c: E2 08 00 8E 12 80 13 01 00 00 00 00 00 1D [12:57:17]Write i2c OK [12:57:17]MH_I2C_Read... [12:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:17]Read from MH i2c: E2 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: E2 0E 00 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: E2 0E 00 8E 12 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 5C [12:57:17]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:57:17]wFMCommunicate OK [12:57:17]SAM_PROTO_GetShiftState done [12:57:17]FM_GetShiftState done [12:57:17]req_shift_opened done [12:57:17]requested_item shift.open_date is exist - process it [12:57:17]req_shift_open_date [12:57:17]req_shift_open_date done [12:57:17]produce_requested_data done [12:57:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117403,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:57:17]process_action_free close_receipt [12:57:17]json_value_free [12:57:17]json_value_free done [12:57:17]process_json_proto returns [12:57:17]Send response to host [12:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117403,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:57:17]free response buf [12:57:17]execute_script done [12:57:17]execute_script returns [12:57:17]free content buf [12:57:17]Sock 7.Close socket [12:57:17]Sock 7.Thread stoped [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:09]accept exits with 9 [12:59:09]New connection [12:59:09]New thread 3067456868 created [12:59:09]Thread 3067600228 joined [12:59:09]Waiting for new connection... [12:59:09] Sock 9.Parse request [12:59:09]Sock 9.Check first char [12:59:09]Sock 9.First char is OK [12:59:09]request: POST /json_proto HTTP/1.0 [12:59:09]Method: POST [12:59:09]URL: /json_proto [12:59:09]Method is POST - this is cgi request [12:59:09]url: /json_proto [12:59:09]query_string will be loaded in cgi processing [12:59:09]execute_cgi json_proto POST (null) [12:59:09]execute_cgi path=json_proto method=POST [12:59:09]POST find Content-Length [12:59:09]Host: 172.17.96.67:8080 [12:59:09]Content-Length: 984 [12:59:09]Content-Type: application/json [12:59:09] [12:59:09]POST finish read [12:59:09]Found Content-Length = 984 [12:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:09]execute_script... [12:59:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:09]POST & json_proto [12:59:09]process_json_proto [12:59:09]json parsed OK: [12:59:09]protocol is kg_v1.0 [12:59:09]action value=close_receipt [12:59:09]process_action close_receipt [12:59:09]cmd_close_receipt [12:59:09]MH_GetDate [12:59:09]Write to MH i2c: F0 00 00 8F 12 90 [12:59:09]Write i2c OK [12:59:09]MH_I2C_Read... [12:59:09]Read from MH i2c: F0 [12:59:09]MH_I2C_Read... [12:59:09]Read from MH i2c: F0 09 00 [12:59:09]MH_I2C_Read... [12:59:09]Read from MH i2c: F0 09 00 8F 12 00 1F 39 1E 67 2B 09 1E 67 2F [12:59:09]GetLastDocTimeStamp 1730033835 [12:59:09]current date 1730033951 [12:59:09]FM_GetShiftState [12:59:09]SAM_PROTO_GetShiftState [12:59:09]wFMCommunicate request_size=4 [12:59:09]MH_SAM_APDU [12:59:09]CAPDU: 80 13 01 00 [12:59:09]Write to MH i2c: E2 08 00 90 12 80 13 01 00 00 00 00 00 1F [12:59:09]Write i2c OK [12:59:09]MH_I2C_Read... [12:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:09]Read from MH i2c: E2 [12:59:09]MH_I2C_Read... [12:59:09]Read from MH i2c: E2 0E 00 [12:59:09]MH_I2C_Read... [12:59:09]Read from MH i2c: E2 0E 00 90 12 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 5E [12:59:09]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:59:09]wFMCommunicate OK [12:59:09]SAM_PROTO_GetShiftState done [12:59:09]FM_GetShiftState done [12:59:09]opened in 1729987372 [12:59:09]opened+sec_in_day 1730073772 [12:59:09]quantity*price = 200006 [12:59:09]sum+1 = 200008 [12:59:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 104 27.10.2024 12:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 30.35 сом ФМ: 0000000000871767 ФД: 117404 ФПД: 248785120670453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125911&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117404&fm=248785120670453&tin=02508201610067®Number=0000000000091782&sum=200000 [12:59:11]StoreToDocumentArchive [12:59:11]shift 542 fd 117404 [12:59:11]save to /storage/0542/doc_00117404 [12:59:11]save last doc name /storage/0542/doc_00117404 to /storage/kkm_last_doc_name [12:59:11]save OK [12:59:11]Clear old archive folders... [12:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:11]tlvbuf is 016F8080 [12:59:11]SAM_PROTO_ClearQueue [12:59:11]wFMCommunicate request_size=4 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 09 00 00 [12:59:11]Write to MH i2c: E2 08 00 9D 12 80 09 00 00 00 00 00 00 21 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 9D 12 00 90 00 23 [12:59:11]RAPDU: 90 00 [12:59:11]wFMCommunicate OK [12:59:11]SAM_PROTO_ClearQueue done [12:59:11]KKMCreateOFDPacket [12:59:11]OFDProtocolAddRootSTLVToBuf [12:59:11]FM_MakeSignedData [12:59:11]FM_MakeSignedData [12:59:11]SAM_PROTO_SignData [12:59:11]wFMCommunicate request_size=4 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 0D 01 02 [12:59:11]Write to MH i2c: E2 08 00 9E 12 80 0D 01 02 00 00 00 00 29 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [12:59:11]RAPDU: 90 00 [12:59:11]wFMCommunicate OK [12:59:11]wFMCommunicate request_size=255 [12:59:11]MH_SAM_APDU [12:59: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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 1F 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9C CA 01 00 35 04 06 00 E2 [12:59:11]Write to MH i2c: E2 02 01 9F 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 1F 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9C CA 01 00 35 04 06 00 E2 00 00 F0 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 9F 12 00 90 00 25 [12:59:11]RAPDU: 90 00 [12:59:11]wFMCommunicate OK [12:59:11]wFMCommunicate request_size=10 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 0D 02 02 05 44 CC BE 32 F5 [12:59:11]Write to MH i2c: E2 0D 00 A0 12 80 0D 02 02 05 00 44 CC BE 32 F5 00 00 2B [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 A0 12 00 90 00 26 [12:59:11]RAPDU: 90 00 [12:59:11]wFMCommunicate OK [12:59:11]wFMCommunicate request_size=4 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 0D 03 02 [12:59:11]Write to MH i2c: E2 08 00 A1 12 80 0D 03 02 00 00 00 00 2E [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 0B 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 0B 00 A1 12 00 A9 D9 EA 93 B9 CC 84 7A 90 00 B1 [12:59:11]RAPDU: A9 D9 EA 93 B9 CC 84 7A 90 00 [12:59:11]wFMCommunicate OK [12:59:11]SAM_PROTO_SignData done [12:59:11]FM_MakeSignedData done [12:59:11]CreateOFDProtocolMessage [12:59:11]wFMCommunicate request_size=4 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 11 00 00 [12:59:11]Write to MH i2c: E2 08 00 A2 12 80 11 00 00 00 00 00 00 2E [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 17 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 17 00 A2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 85 [12:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:59:11]wFMCommunicate OK [12:59:11]CreateOFDProtocolMessage done [12:59:11]OFDSenderStorePacket 117404 [12:59:11]StoreOFDPacket docnum=117404 [12:59:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 36 FE 07 01 D0 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 1F 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9C CA 01 00 35 04 06 00 E2 44 CC BE 32 F5 A9 D9 EA 93 B9 CC 84 7A [12:59:11]CheckFolder [12:59:11]dirname=/storage/ofd_packets [12:59:11]CheckFolder done [12:59:11]ProducePacketName [12:59:11]name=ofd_packets/00117404 [12:59:11]NVStorageSaveData ofd_packets/00117404 [12:59:11]File name is /storage/ofd_packets/00117404 [12:59:11]Write 301 bytes [12:59:11]NVStorageSaveData done [12:59:11]OFDSenderStorePacket done [12:59:11]KKMCreateOFDPacket done [12:59:11]NVStorageSaveData kkm_last_timestamp [12:59:11]File name is /storage/kkm_last_timestamp [12:59:11]Write 4 bytes [12:59:11]NVStorageSaveData done [12:59:11]OFD Sender: Processing packet 117404 [packets to send 76, broken 75] [12:59:11]ProducePacketName [12:59:11]name=ofd_packets/00117404 [12:59:11]OFD Sender: To server: pG, [12:59:11]CommunicateWithHost lk.salyk.kg:30040 [12:59:11]ConnectInit lk.salyk.kg [12:59:11]ExternCall_PrintAddStr [12:59:11]wPrintStart [12:59:11]Write to MH i2c: 01 00 00 A3 12 B5 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: 01 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: 01 07 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: 01 07 00 A3 12 00 00 00 00 00 FF 0F CA [12:59:11]RasterBufferAndPrint [12:59:11]line Счет N : (1)245180 [12:59:11]line ИНН: 02508201610067 [12:59:11]line Контрольно-Кассовый Чек [12:59:11]line ПРОДАЖА [12:59:11]line ТРК (МРК, ГНК) : 21 [12:59:11]line Товар: 2710124130 [12:59:11]line Аи-92-К-2 [12:59:11]line 30.350 * 65.90 [12:59:11]line = 2000.07 [12:59:11]line НДС 12% НСП 1% [12:59:11]line > о реализуемом товаре [12:59:11]line ОКРУГЛЕНИЕ: -0.07 [12:59:11]line ИТОГО: 2000.00 [12:59:11]line Внесено: 2000.00 [12:59:11]line СДАЧА: 0.00 [12:59:11]line НСП 1% : 17.70 [12:59:11]line НДС 12% : 212.40 [12:59:11]line Наличными: 2000.00 [12:59:11]line Безнал.: 0.00 [12:59:11]line Место: АЗС № 173 "Партнер Нефть" [12:59:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:59:11]line СНО: Общий режим [12:59:11]line Чек 104 27.10.2024 12:59 [12:59:11]line Смена: 542 ФФД: 1.0 [12:59:11]line ЗНМ: 0300000115 [12:59:11]line РНМ: 0000000000091782 [12:59:11]line Версия ККМ: 001 [12:59:11]line [12:59:11]line Дисконтная программа [12:59:11]line АИ-92 [12:59:11]line номер 173 [12:59:11]line сэкономлено 30.35 сом [12:59:11]line ФМ: 0000000000871767 [12:59:11]line ФД: 117404 [12:59:11]line ФПД: 248785120670453 [12:59:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125911&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117404&fm=248785120670453&tin=02508201610067®Number=0000000000091782&sum=200000 [12:59:11]Connected sock=11 [12:59: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 36 37 0F 01 00 00 36 FE 07 01 D0 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 1F 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9C CA 01 00 35 04 06 00 E2 44 CC BE 32 F5 A9 D9 EA 93 B9 CC 84 7A [12:59:12]written 0, free lines is 4095 [12:59: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 36 37 4F 00 00 00 8D C7 47 00 15 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 36 37 10 04 04 00 9C CA 01 00 F4 03 04 00 DC E4 1D 67 B6 04 01 00 00 3A 65 65 F4 9A 51 67 3A [12:59:12]CommunicateWithHost err = 0 [12:59:12]CheckOFDResponse [12:59:12]1017 (14) - 77093643461234 [12:59:12]1041 (16) - 0000000000871767 [12:59:12]1040 (4) - 117404 [12:59:12]1012 (4) - 27.10.2024 06:59 [12:59:12]1206 (1) - 0 [12:59:12]OFD Sender: Remove packet 117404 [12:59:12]ProducePacketName [12:59:12]name=ofd_packets/00117404 [12:59:12]NVStorageDeleteData [12:59:12]Write to MH i2c: 01 00 00 D2 12 E4 [12:59:12]Write i2c OK [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: 01 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: 01 07 00 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: 01 07 00 D2 12 00 00 00 00 00 55 0C 4C [12:59:12]RasterBufferAndPrint [12:59:12]line [12:59:12]line [12:59:12]line [12:59:12]line [12:59:12]line [12:59:12]written 0, free lines is 3162 [12:59:12]MH_Cut [12:59:12]Write to MH i2c: D1 01 00 D9 12 01 BD [12:59:12]Write i2c OK [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: D1 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: D1 01 00 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: D1 01 00 D9 12 00 BC [12:59:12]Write to MH i2c: 01 00 00 DA 12 EC [12:59:12]Write i2c OK [12:59:12]MH_I2C_Read... [12:59:12]OFD Sender: No OFD packet to send [12:59:13]*** Cut start [12:59:13]*** Purtial cut [12:59:13]*** Stage 1: CUTSNS_PIN = 1 [12:59:13]Read from MH i2c: 01 [12:59:13]MH_I2C_Read... [12:59:13]*** Stop cut motor [12:59:13]*** Cut end [12:59:13]Read from MH i2c: 01 07 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 FF 0F 01 [12:59:13]process_action close_receipt done [12:59:13]requested_data is exist [12:59:13]produce_requested_data [12:59:13]requested_item fm.sn is exist - process it [12:59:13]wFMCommunicate request_size=4 [12:59:13]MH_SAM_APDU [12:59:13]CAPDU: 80 11 00 00 [12:59:13]Write to MH i2c: E2 08 00 DB 12 80 11 00 00 00 00 00 00 67 [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:13]Read from MH i2c: E2 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 17 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 17 00 DB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BE [12:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:59:13]wFMCommunicate OK [12:59:13]requested_item fd.num is exist - process it [12:59:13]SAM_PROTO_GetFieldsCounters [12:59:13]wFMCommunicate request_size=4 [12:59:13]MH_SAM_APDU [12:59:13]CAPDU: 80 13 00 00 [12:59:13]Write to MH i2c: E2 08 00 DC 12 80 13 00 00 00 00 00 00 6A [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:13]Read from MH i2c: E2 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 62 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 62 00 DC 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9C CA 01 00 0E 04 04 00 1E 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 50 [12:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9C CA 01 00 0E 04 04 00 1E 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 [12:59:13]wFMCommunicate OK [12:59:13]SAM_PROTO_GetFieldsCounters done [12:59:13]requested_item shift.num is exist - process it [12:59:13]requested_item shift.opened is exist - process it [12:59:13]req_shift_opened [12:59:13]FM_GetShiftState [12:59:13]SAM_PROTO_GetShiftState [12:59:13]wFMCommunicate request_size=4 [12:59:13]MH_SAM_APDU [12:59:13]CAPDU: 80 13 01 00 [12:59:13]Write to MH i2c: E2 08 00 DD 12 80 13 01 00 00 00 00 00 6C [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:14]Read from MH i2c: E2 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 0E 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 0E 00 DD 12 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AB [12:59:14]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [12:59:14]wFMCommunicate OK [12:59:14]SAM_PROTO_GetShiftState done [12:59:14]FM_GetShiftState done [12:59:14]req_shift_opened done [12:59:14]requested_item shift.open_date is exist - process it [12:59:14]req_shift_open_date [12:59:14]req_shift_open_date done [12:59:14]produce_requested_data done [12:59:14]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117404,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [12:59:14]process_action_free close_receipt [12:59:14]json_value_free [12:59:14]json_value_free done [12:59:14]process_json_proto returns [12:59:14]Send response to host [12:59:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117404,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [12:59:14]free response buf [12:59:14]execute_script done [12:59:14]execute_script returns [12:59:14]free content buf [12:59:14]Sock 9.Close socket [12:59:14]Sock 9.Thread stoped [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:13]accept exits with 7 [13:00:13]New connection [13:00:13]New thread 3067600228 created [13:00:13]Thread 3067456868 joined [13:00:13]Waiting for new connection... [13:00:13] Sock 7.Parse request [13:00:13]Sock 7.Check first char [13:00:13]Sock 7.First char is OK [13:00:13]request: POST /json_proto HTTP/1.0 [13:00:13]Method: POST [13:00:13]URL: /json_proto [13:00:13]Method is POST - this is cgi request [13:00:13]url: /json_proto [13:00:13]query_string will be loaded in cgi processing [13:00:13]execute_cgi json_proto POST (null) [13:00:13]execute_cgi path=json_proto method=POST [13:00:13]POST find Content-Length [13:00:13]Host: 172.17.96.67:8080 [13:00:13]Content-Length: 678 [13:00:13]Content-Type: application/json [13:00:13] [13:00:13]POST finish read [13:00:13]Found Content-Length = 678 [13:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:00:13]execute_script... [13:00: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)245181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:00:13]POST & json_proto [13:00:13]process_json_proto [13:00:13]json parsed OK: [13:00:13]protocol is kg_v1.0 [13:00:13]action value=close_receipt [13:00:13]process_action close_receipt [13:00:13]cmd_close_receipt [13:00:13]MH_GetDate [13:00:13]Write to MH i2c: F0 00 00 DE 12 DF [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: F0 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: F0 09 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: F0 09 00 DE 12 00 5F 39 1E 67 2B 09 1E 67 BE [13:00:13]GetLastDocTimeStamp 1730033951 [13:00:13]current date 1730034015 [13:00:13]FM_GetShiftState [13:00:13]SAM_PROTO_GetShiftState [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 13 01 00 [13:00:13]Write to MH i2c: E2 08 00 DF 12 80 13 01 00 00 00 00 00 6E [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 0E 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 0E 00 DF 12 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AD [13:00:13]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:00:13]wFMCommunicate OK [13:00:13]SAM_PROTO_GetShiftState done [13:00:13]FM_GetShiftState done [13:00:13]opened in 1729987372 [13:00:13]opened+sec_in_day 1730073772 [13:00:13]quantity*price = 70044 [13:00:13]sum+1 = 70045 [13:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 105 27.10.2024 13:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117405 ФПД: 57272036161531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130015&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117405&fm=57272036161531&tin=02508201610067®Number=0000000000091782&sum=70000 [13:00:14]StoreToDocumentArchive [13:00:14]shift 542 fd 117405 [13:00:14]save to /storage/0542/doc_00117405 [13:00:14]save last doc name /storage/0542/doc_00117405 to /storage/kkm_last_doc_name [13:00:14]save OK [13:00:14]Clear old archive folders... [13:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:14]tlvbuf is 016E1560 [13:00:14]SAM_PROTO_ClearQueue [13:00:14]wFMCommunicate request_size=4 [13:00:14]MH_SAM_APDU [13:00:14]CAPDU: 80 09 00 00 [13:00:14]Write to MH i2c: E2 08 00 EC 12 80 09 00 00 00 00 00 00 70 [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:14]Read from MH i2c: E2 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: E2 03 00 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: E2 03 00 EC 12 00 90 00 72 [13:00:14]RAPDU: 90 00 [13:00:14]wFMCommunicate OK [13:00:14]SAM_PROTO_ClearQueue done [13:00:14]KKMCreateOFDPacket [13:00:14]OFDProtocolAddRootSTLVToBuf [13:00:14]FM_MakeSignedData [13:00:14]FM_MakeSignedData [13:00:14]SAM_PROTO_SignData [13:00:14]wFMCommunicate request_size=4 [13:00:14]MH_SAM_APDU [13:00:14]CAPDU: 80 0D 01 02 [13:00:14]Write to MH i2c: E2 08 00 ED 12 80 0D 01 02 00 00 00 00 78 [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:14]Read from MH i2c: E2 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: E2 03 00 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: E2 03 00 ED 12 00 90 00 73 [13:00:14]RAPDU: 90 00 [13:00:14]wFMCommunicate OK [13:00:14]wFMCommunicate request_size=255 [13:00:14]MH_SAM_APDU [13:00: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 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 69 00 00 00 F4 03 04 00 5F 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9D CA 01 00 35 04 06 00 34 [13:00:14]Write to MH i2c: E2 02 01 EE 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 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 69 00 00 00 F4 03 04 00 5F 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9D CA 01 00 35 04 06 00 34 00 00 5C [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]wFMCommunicate request_size=10 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 0D 02 02 05 16 AF 5E F7 FB [13:00:15]Write to MH i2c: E2 0D 00 EF 12 80 0D 02 02 05 00 16 AF 5E F7 FB 00 00 9A [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 0D 03 02 [13:00:15]Write to MH i2c: E2 08 00 F0 12 80 0D 03 02 00 00 00 00 7D [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 0B 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 0B 00 F0 12 00 67 2B 0D 95 81 0D 7F E1 90 00 A0 [13:00:15]RAPDU: 67 2B 0D 95 81 0D 7F E1 90 00 [13:00:15]wFMCommunicate OK [13:00:15]SAM_PROTO_SignData done [13:00:15]FM_MakeSignedData done [13:00:15]CreateOFDProtocolMessage [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 11 00 00 [13:00:15]Write to MH i2c: E2 08 00 F1 12 80 11 00 00 00 00 00 00 7D [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 17 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 17 00 F1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D4 [13:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:00:15]wFMCommunicate OK [13:00:15]CreateOFDProtocolMessage done [13:00:15]OFDSenderStorePacket 117405 [13:00:15]StoreOFDPacket docnum=117405 [13:00:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7A 12 07 01 BE E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 00 00 00 F4 03 04 00 5F 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9D CA 01 00 35 04 06 00 34 16 AF 5E F7 FB 67 2B 0D 95 81 0D 7F E1 [13:00:15]CheckFolder [13:00:15]dirname=/storage/ofd_packets [13:00:15]CheckFolder done [13:00:15]ProducePacketName [13:00:15]name=ofd_packets/00117405 [13:00:15]NVStorageSaveData ofd_packets/00117405 [13:00:15]File name is /storage/ofd_packets/00117405 [13:00:15]Write 301 bytes [13:00:15]NVStorageSaveData done [13:00:15]OFDSenderStorePacket done [13:00:15]KKMCreateOFDPacket done [13:00:15]NVStorageSaveData kkm_last_timestamp [13:00:15]File name is /storage/kkm_last_timestamp [13:00:15]Write 4 bytes [13:00:15]NVStorageSaveData done [13:00:15]ExternCall_PrintAddStr [13:00:15]wPrintStart [13:00:15]Write to MH i2c: 01 00 00 F2 12 04 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 07 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 07 00 F2 12 00 00 00 00 00 FF 0F 19 [13:00:15]RasterBufferAndPrint [13:00:15]line Счет N : (1)245181 [13:00:15]line ИНН: 02508201610067 [13:00:15]line Контрольно-Кассовый Чек [13:00:15]line ПРОДАЖА [13:00:15]line ТРК (МРК, ГНК) : 11 [13:00:15]line Товар: 2710124130 [13:00:15]line Аи-92-К-2 [13:00:15]line 10.470 * 66.90 [13:00:15]line = 700.44 [13:00:15]line НДС 12% НСП 1% [13:00:15]line > о реализуемом товаре [13:00:15]line ОКРУГЛЕНИЕ: -0.44 [13:00:15]line ИТОГО: 700.00 [13:00:15]line Внесено: 700.00 [13:00:15]line СДАЧА: 0.00 [13:00:15]line НСП 1% : 6.20 [13:00:15]line НДС 12% : 74.38 [13:00:15]line Наличными: 700.00 [13:00:15]line Безнал.: 0.00 [13:00:15]line Место: АЗС № 173 "Партнер Нефть" [13:00:15]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:00:15]line СНО: Общий режим [13:00:15]line Чек 105 27.10.2024 13:00 [13:00:15]line Смена: 542 ФФД: 1.0 [13:00:15]line ЗНМ: 0300000115 [13:00:15]line РНМ: 0000000000091782 [13:00:15]line Версия ККМ: 001 [13:00:15]line ФМ: 0000000000871767 [13:00:15]line ФД: 117405 [13:00:15]line ФПД: 57272036161531 [13:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130015&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117405&fm=57272036161531&tin=02508201610067®Number=0000000000091782&sum=70000 [13:00:15]written 0, free lines is 4095 [13:00:15]OFD Sender: Processing packet 117405 [packets to send 76, broken 75] [13:00:15]ProducePacketName [13:00:15]name=ofd_packets/00117405 [13:00:15]OFD Sender: To server: pG, [13:00:15]CommunicateWithHost lk.salyk.kg:30040 [13:00:15]ConnectInit lk.salyk.kg [13:00:15]Connected sock=10 [13:00: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 36 37 0F 01 00 00 7A 12 07 01 BE E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 00 00 00 F4 03 04 00 5F 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9D CA 01 00 35 04 06 00 34 16 AF 5E F7 FB 67 2B 0D 95 81 0D 7F E1 [13:00: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 36 37 4F 00 00 00 E4 9E 47 00 45 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 36 37 10 04 04 00 9D CA 01 00 F4 03 04 00 1C E5 1D 67 B6 04 01 00 00 7A 2B FC 5D 95 9B 5A E0 [13:00:15]CommunicateWithHost err = 0 [13:00:15]CheckOFDResponse [13:00:15]1017 (14) - 77093643461234 [13:00:15]1041 (16) - 0000000000871767 [13:00:15]1040 (4) - 117405 [13:00:15]1012 (4) - 27.10.2024 07:00 [13:00:15]1206 (1) - 0 [13:00:15]OFD Sender: Remove packet 117405 [13:00:15]ProducePacketName [13:00:15]name=ofd_packets/00117405 [13:00:15]NVStorageDeleteData [13:00:16]Write to MH i2c: 01 00 00 1C 13 2F [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: 01 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: 01 07 00 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: 01 07 00 1C 13 00 00 00 00 00 A8 0C EA [13:00:16]RasterBufferAndPrint [13:00:16]line [13:00:16]line [13:00:16]line [13:00:16]line [13:00:16]line [13:00:16]written 0, free lines is 3243 [13:00:16]MH_Cut [13:00:16]Write to MH i2c: D1 01 00 23 13 01 08 [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: D1 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: D1 01 00 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: D1 01 00 23 13 00 07 [13:00:16]Write to MH i2c: 01 00 00 24 13 37 [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]OFD Sender: No OFD packet to send [13:00:16]*** Cut start [13:00:16]*** Purtial cut [13:00:16]*** Stage 1: CUTSNS_PIN = 1 [13:00:17]Read from MH i2c: 01 [13:00:17]MH_I2C_Read... [13:00:17]*** Stop cut motor [13:00:17]*** Cut end [13:00:17]Read from MH i2c: 01 07 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 FF 0F 4C [13:00:17]process_action close_receipt done [13:00:17]requested_data is exist [13:00:17]produce_requested_data [13:00:17]requested_item fm.sn is exist - process it [13:00:17]wFMCommunicate request_size=4 [13:00:17]MH_SAM_APDU [13:00:17]CAPDU: 80 11 00 00 [13:00:17]Write to MH i2c: E2 08 00 25 13 80 11 00 00 00 00 00 00 B2 [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:17]Read from MH i2c: E2 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 17 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 17 00 25 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 09 [13:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:00:17]wFMCommunicate OK [13:00:17]requested_item fd.num is exist - process it [13:00:17]SAM_PROTO_GetFieldsCounters [13:00:17]wFMCommunicate request_size=4 [13:00:17]MH_SAM_APDU [13:00:17]CAPDU: 80 13 00 00 [13:00:17]Write to MH i2c: E2 08 00 26 13 80 13 00 00 00 00 00 00 B5 [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:17]Read from MH i2c: E2 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 62 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 62 00 26 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9D CA 01 00 0E 04 04 00 1E 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 9F [13:00:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9D CA 01 00 0E 04 04 00 1E 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 [13:00:17]wFMCommunicate OK [13:00:17]SAM_PROTO_GetFieldsCounters done [13:00:17]requested_item shift.num is exist - process it [13:00:17]requested_item shift.opened is exist - process it [13:00:17]req_shift_opened [13:00:17]FM_GetShiftState [13:00:17]SAM_PROTO_GetShiftState [13:00:17]wFMCommunicate request_size=4 [13:00:17]MH_SAM_APDU [13:00:17]CAPDU: 80 13 01 00 [13:00:17]Write to MH i2c: E2 08 00 27 13 80 13 01 00 00 00 00 00 B7 [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:17]Read from MH i2c: E2 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 0E 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 0E 00 27 13 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F6 [13:00:17]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:00:17]wFMCommunicate OK [13:00:17]SAM_PROTO_GetShiftState done [13:00:17]FM_GetShiftState done [13:00:17]req_shift_opened done [13:00:17]requested_item shift.open_date is exist - process it [13:00:17]req_shift_open_date [13:00:17]req_shift_open_date done [13:00:17]produce_requested_data done [13:00:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117405,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:00:17]process_action_free close_receipt [13:00:17]json_value_free [13:00:17]json_value_free done [13:00:17]process_json_proto returns [13:00:17]Send response to host [13:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117405,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:00:17]free response buf [13:00:17]execute_script done [13:00:17]execute_script returns [13:00:17]free content buf [13:00:17]Sock 7.Close socket [13:00:17]Sock 7.Thread stoped [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:55]accept exits with 9 [13:00:55]New connection [13:00:55]New thread 3067456868 created [13:00:55]Thread 3067600228 joined [13:00:55]Waiting for new connection... [13:00:55] Sock 9.Parse request [13:00:55]Sock 9.Check first char [13:00:55]Sock 9.First char is OK [13:00:55]request: POST /json_proto HTTP/1.0 [13:00:55]Method: POST [13:00:55]URL: /json_proto [13:00:55]Method is POST - this is cgi request [13:00:55]url: /json_proto [13:00:55]query_string will be loaded in cgi processing [13:00:55]execute_cgi json_proto POST (null) [13:00:55]execute_cgi path=json_proto method=POST [13:00:55]POST find Content-Length [13:00:55]Host: 172.17.96.67:8080 [13:00:55]Content-Length: 766 [13:00:55]Content-Type: application/json [13:00:55] [13:00:55]POST finish read [13:00:55]Found Content-Length = 766 [13:00:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:00:55]execute_script... [13:00: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)245182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:00:55]POST & json_proto [13:00:55]process_json_proto [13:00:55]json parsed OK: [13:00:55]protocol is kg_v1.0 [13:00:55]action value=close_receipt [13:00:55]process_action close_receipt [13:00:55]cmd_close_receipt [13:00:55]MH_GetDate [13:00:55]Write to MH i2c: F0 00 00 28 13 2A [13:00:55]Write i2c OK [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: F0 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: F0 09 00 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: F0 09 00 28 13 00 89 39 1E 67 2B 09 1E 67 33 [13:00:55]GetLastDocTimeStamp 1730034015 [13:00:55]current date 1730034057 [13:00:55]FM_GetShiftState [13:00:55]SAM_PROTO_GetShiftState [13:00:55]wFMCommunicate request_size=4 [13:00:55]MH_SAM_APDU [13:00:55]CAPDU: 80 13 01 00 [13:00:55]Write to MH i2c: E2 08 00 29 13 80 13 01 00 00 00 00 00 B9 [13:00:55]Write i2c OK [13:00:55]MH_I2C_Read... [13:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:55]Read from MH i2c: E2 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 0E 00 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 0E 00 29 13 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F8 [13:00:55]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:00:55]wFMCommunicate OK [13:00:55]SAM_PROTO_GetShiftState done [13:00:55]FM_GetShiftState done [13:00:55]opened in 1729987372 [13:00:55]opened+sec_in_day 1730073772 [13:00:55]quantity*price = 20003 [13:00:55]sum+1 = 20004 [13:00:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 106 27.10.2024 13:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117406 ФПД: 158277032598373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130057&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117406&fm=158277032598373&tin=02508201610067®Number=0000000000091782&sum=20003 [13:00:56]StoreToDocumentArchive [13:00:56]shift 542 fd 117406 [13:00:56]save to /storage/0542/doc_00117406 [13:00:56]save last doc name /storage/0542/doc_00117406 to /storage/kkm_last_doc_name [13:00:56]save OK [13:00:56]Clear old archive folders... [13:00:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:56]tlvbuf is 0170EE00 [13:00:56]SAM_PROTO_ClearQueue [13:00:56]wFMCommunicate request_size=4 [13:00:56]MH_SAM_APDU [13:00:56]CAPDU: 80 09 00 00 [13:00:56]Write to MH i2c: E2 08 00 36 13 80 09 00 00 00 00 00 00 BB [13:00:56]Write i2c OK [13:00:56]MH_I2C_Read... [13:00:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:56]Read from MH i2c: E2 [13:00:56]MH_I2C_Read... [13:00:56]Read from MH i2c: E2 03 00 [13:00:56]MH_I2C_Read... [13:00:56]Read from MH i2c: E2 03 00 36 13 00 90 00 BD [13:00:56]RAPDU: 90 00 [13:00:56]wFMCommunicate OK [13:00:56]SAM_PROTO_ClearQueue done [13:00:56]KKMCreateOFDPacket [13:00:56]OFDProtocolAddRootSTLVToBuf [13:00:56]FM_MakeSignedData [13:00:56]FM_MakeSignedData [13:00:56]SAM_PROTO_SignData [13:00:56]wFMCommunicate request_size=4 [13:00:56]MH_SAM_APDU [13:00:56]CAPDU: 80 0D 01 02 [13:00:56]Write to MH i2c: E2 08 00 37 13 80 0D 01 02 00 00 00 00 C3 [13:00:56]Write i2c OK [13:00:56]MH_I2C_Read... [13:00:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:56]Read from MH i2c: E2 [13:00:56]MH_I2C_Read... [13:00:56]Read from MH i2c: E2 03 00 [13:00:56]MH_I2C_Read... [13:00:56]Read from MH i2c: E2 03 00 37 13 00 90 00 BE [13:00:56]RAPDU: 90 00 [13:00:56]wFMCommunicate OK [13:00:56]wFMCommunicate request_size=255 [13:00:56]MH_SAM_APDU [13:00: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 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 6A 00 00 00 F4 03 04 00 89 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9E CA 01 00 35 04 06 00 8F [13:00:56]Write to MH i2c: E2 02 01 38 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6A 00 00 00 F4 03 04 00 89 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9E CA 01 00 35 04 06 00 8F 00 00 E6 [13:00:56]Write i2c OK [13:00:56]MH_I2C_Read... [13:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:57]Read from MH i2c: E2 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 03 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [13:00:57]RAPDU: 90 00 [13:00:57]wFMCommunicate OK [13:00:57]wFMCommunicate request_size=10 [13:00:57]MH_SAM_APDU [13:00:57]CAPDU: 80 0D 02 02 05 F3 BE 4D DB 65 [13:00:57]Write to MH i2c: E2 0D 00 39 13 80 0D 02 02 05 00 F3 BE 4D DB 65 00 00 0E [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:57]Read from MH i2c: E2 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 03 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [13:00:57]RAPDU: 90 00 [13:00:57]wFMCommunicate OK [13:00:57]wFMCommunicate request_size=4 [13:00:57]MH_SAM_APDU [13:00:57]CAPDU: 80 0D 03 02 [13:00:57]Write to MH i2c: E2 08 00 3A 13 80 0D 03 02 00 00 00 00 C8 [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:57]Read from MH i2c: E2 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 0B 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 0B 00 3A 13 00 27 72 7E 0E CF 4D C2 32 90 00 FE [13:00:57]RAPDU: 27 72 7E 0E CF 4D C2 32 90 00 [13:00:57]wFMCommunicate OK [13:00:57]SAM_PROTO_SignData done [13:00:57]FM_MakeSignedData done [13:00:57]CreateOFDProtocolMessage [13:00:57]wFMCommunicate request_size=4 [13:00:57]MH_SAM_APDU [13:00:57]CAPDU: 80 11 00 00 [13:00:57]Write to MH i2c: E2 08 00 3B 13 80 11 00 00 00 00 00 00 C8 [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:57]Read from MH i2c: E2 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 17 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 17 00 3B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1F [13:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:00:57]wFMCommunicate OK [13:00:57]CreateOFDProtocolMessage done [13:00:57]OFDSenderStorePacket 117406 [13:00:57]StoreOFDPacket docnum=117406 [13:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4B 64 07 01 68 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6A 00 00 00 F4 03 04 00 89 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9E CA 01 00 35 04 06 00 8F F3 BE 4D DB 65 27 72 7E 0E CF 4D C2 32 [13:00:57]CheckFolder [13:00:57]dirname=/storage/ofd_packets [13:00:57]CheckFolder done [13:00:57]ProducePacketName [13:00:57]name=ofd_packets/00117406 [13:00:57]NVStorageSaveData ofd_packets/00117406 [13:00:57]File name is /storage/ofd_packets/00117406 [13:00:57]Write 301 bytes [13:00:57]NVStorageSaveData done [13:00:57]OFDSenderStorePacket done [13:00:57]KKMCreateOFDPacket done [13:00:57]NVStorageSaveData kkm_last_timestamp [13:00:57]File name is /storage/kkm_last_timestamp [13:00:57]Write 4 bytes [13:00:57]NVStorageSaveData done [13:00:57]ExternCall_PrintAddStr [13:00:57]wPrintStart [13:00:57]Write to MH i2c: 01 00 00 3C 13 4F [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: 01 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: 01 07 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: 01 07 00 3C 13 00 00 00 00 00 FF 0F 64 [13:00:57]RasterBufferAndPrint [13:00:57]line Счет N : (1)245182 [13:00:57]line ИНН: 02508201610067 [13:00:57]line Контрольно-Кассовый Чек [13:00:57]line ПРОДАЖА [13:00:57]line ТРК (МРК, ГНК) : 21 [13:00:57]line Товар: 2710124130 [13:00:57]line Аи-92-К-2 [13:00:57]line 2.990 * 66.90 [13:00:57]line = 200.03 [13:00:57]line НДС 12% НСП 1% [13:00:57]line > о реализуемом товаре [13:00:57]line ИТОГО: 200.03 [13:00:57]line НСП 1% : 1.77 [13:00:57]line НДС 12% : 21.24 [13:00:57]line Наличными: 0.00 [13:00:57]line Безнал.: 200.03 [13:00:57]line Место: АЗС № 173 "Партнер Нефть" [13:00:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:00:57]line СНО: Общий режим [13:00:57]line Чек 106 27.10.2024 13:00 [13:00:57]line Смена: 542 ФФД: 1.0 [13:00:57]line ЗНМ: 0300000115 [13:00:57]line РНМ: 0000000000091782 [13:00:57]line Версия ККМ: 001 [13:00:57]line Платежная система: Mbank [13:00:57]line ФМ: 0000000000871767 [13:00:57]line ФД: 117406 [13:00:57]line ФПД: 158277032598373 [13:00:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130057&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117406&fm=158277032598373&tin=02508201610067®Number=0000000000091782&sum=20003 [13:00:57]written 0, free lines is 4095 [13:00:57]OFD Sender: Processing packet 117406 [packets to send 76, broken 75] [13:00:57]ProducePacketName [13:00:57]name=ofd_packets/00117406 [13:00:57]OFD Sender: To server: pG, [13:00:57]CommunicateWithHost lk.salyk.kg:30040 [13:00:57]ConnectInit lk.salyk.kg [13:00:57]Connected sock=10 [13:00: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 36 37 0F 01 00 00 4B 64 07 01 68 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6A 00 00 00 F4 03 04 00 89 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9E CA 01 00 35 04 06 00 8F F3 BE 4D DB 65 27 72 7E 0E CF 4D C2 32 [13:00: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 36 37 4F 00 00 00 3C 4F 47 00 33 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 36 37 10 04 04 00 9E CA 01 00 F4 03 04 00 46 E5 1D 67 B6 04 01 00 00 48 36 45 85 8B AB C3 73 [13:00:57]CommunicateWithHost err = 0 [13:00:57]CheckOFDResponse [13:00:57]1017 (14) - 77093643461234 [13:00:57]1041 (16) - 0000000000871767 [13:00:57]1040 (4) - 117406 [13:00:57]1012 (4) - 27.10.2024 07:01 [13:00:57]1206 (1) - 0 [13:00:57]OFD Sender: Remove packet 117406 [13:00:57]ProducePacketName [13:00:57]name=ofd_packets/00117406 [13:00:57]NVStorageDeleteData [13:00:57]Write to MH i2c: 01 00 00 64 13 77 [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: 01 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: 01 07 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: 01 07 00 64 13 00 00 00 00 00 DF 0C 69 [13:00:57]RasterBufferAndPrint [13:00:57]line [13:00:57]line [13:00:57]line [13:00:57]line [13:00:57]line [13:00:57]written 0, free lines is 3302 [13:00:57]MH_Cut [13:00:57]Write to MH i2c: D1 01 00 6B 13 01 50 [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: D1 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: D1 01 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: D1 01 00 6B 13 00 4F [13:00:57]Write to MH i2c: 01 00 00 6C 13 7F [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:58]OFD Sender: No OFD packet to send [13:00:58]*** Cut start [13:00:58]*** Purtial cut [13:00:58]*** Stage 1: CUTSNS_PIN = 1 [13:00:58]Read from MH i2c: 01 [13:00:58]MH_I2C_Read... [13:00:58]*** Stop cut motor [13:00:58]*** Cut end [13:00:58]Read from MH i2c: 01 07 00 [13:00:58]MH_I2C_Read... [13:00:58]Read from MH i2c: 01 07 00 6C 13 00 00 00 00 00 FF 0F 94 [13:00:58]process_action close_receipt done [13:00:58]requested_data is exist [13:00:58]produce_requested_data [13:00:58]requested_item fm.sn is exist - process it [13:00:58]wFMCommunicate request_size=4 [13:00:58]MH_SAM_APDU [13:00:58]CAPDU: 80 11 00 00 [13:00:58]Write to MH i2c: E2 08 00 6D 13 80 11 00 00 00 00 00 00 FA [13:00:58]Write i2c OK [13:00:58]MH_I2C_Read... [13:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:58]Read from MH i2c: E2 [13:00:58]MH_I2C_Read... [13:00:58]Read from MH i2c: E2 17 00 [13:00:58]MH_I2C_Read... [13:00:58]Read from MH i2c: E2 17 00 6D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 51 [13:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:00:58]wFMCommunicate OK [13:00:58]requested_item fd.num is exist - process it [13:00:58]SAM_PROTO_GetFieldsCounters [13:00:58]wFMCommunicate request_size=4 [13:00:58]MH_SAM_APDU [13:00:58]CAPDU: 80 13 00 00 [13:00:58]Write to MH i2c: E2 08 00 6E 13 80 13 00 00 00 00 00 00 FD [13:00:58]Write i2c OK [13:00:58]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 62 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 62 00 6E 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9E CA 01 00 0E 04 04 00 1E 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 EB [13:00: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9E CA 01 00 0E 04 04 00 1E 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 [13:00:59]wFMCommunicate OK [13:00:59]SAM_PROTO_GetFieldsCounters done [13:00:59]requested_item shift.num is exist - process it [13:00:59]requested_item shift.opened is exist - process it [13:00:59]req_shift_opened [13:00:59]FM_GetShiftState [13:00:59]SAM_PROTO_GetShiftState [13:00:59]wFMCommunicate request_size=4 [13:00:59]MH_SAM_APDU [13:00:59]CAPDU: 80 13 01 00 [13:00:59]Write to MH i2c: E2 08 00 6F 13 80 13 01 00 00 00 00 00 FF [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 0E 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 0E 00 6F 13 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 3E [13:00:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:00:59]wFMCommunicate OK [13:00:59]SAM_PROTO_GetShiftState done [13:00:59]FM_GetShiftState done [13:00:59]req_shift_opened done [13:00:59]requested_item shift.open_date is exist - process it [13:00:59]req_shift_open_date [13:00:59]req_shift_open_date done [13:00:59]produce_requested_data done [13:00:59]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117406,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:00:59]process_action_free close_receipt [13:00:59]json_value_free [13:00:59]json_value_free done [13:00:59]process_json_proto returns [13:00:59]Send response to host [13:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117406,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:00:59]free response buf [13:00:59]execute_script done [13:00:59]execute_script returns [13:00:59]free content buf [13:00:59]Sock 9.Close socket [13:00:59]Sock 9.Thread stoped [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:32]accept exits with 7 [13:01:32]New connection [13:01:32]New thread 3067600228 created [13:01:32]Thread 3067456868 joined [13:01:32]Waiting for new connection... [13:01:32] Sock 7.Parse request [13:01:32]Sock 7.Check first char [13:01:32]Sock 7.First char is OK [13:01:32]request: POST /json_proto HTTP/1.0 [13:01:32]Method: POST [13:01:32]URL: /json_proto [13:01:32]Method is POST - this is cgi request [13:01:32]url: /json_proto [13:01:32]query_string will be loaded in cgi processing [13:01:32]execute_cgi json_proto POST (null) [13:01:32]execute_cgi path=json_proto method=POST [13:01:32]POST find Content-Length [13:01:32]Host: 172.17.96.67:8080 [13:01:32]Content-Length: 673 [13:01:32]Content-Type: application/json [13:01:32] [13:01:32]POST finish read [13:01:32]Found Content-Length = 673 [13:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.200, "sum" : 80.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 80.00, "total" : 80.00, "payments": [ { "type": 0, "sum" : 80.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:32]execute_script... [13:01: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)245183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.200, "sum" : 80.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 80.00, "total" : 80.00, "payments": [ { "type": 0, "sum" : 80.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:32]POST & json_proto [13:01:32]process_json_proto [13:01:32]json parsed OK: [13:01:32]protocol is kg_v1.0 [13:01:32]action value=close_receipt [13:01:32]process_action close_receipt [13:01:32]cmd_close_receipt [13:01:32]MH_GetDate [13:01:32]Write to MH i2c: F0 00 00 70 13 72 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: F0 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: F0 09 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: F0 09 00 70 13 00 AE 39 1E 67 2B 09 1E 67 A0 [13:01:32]GetLastDocTimeStamp 1730034057 [13:01:32]current date 1730034094 [13:01:32]FM_GetShiftState [13:01:32]SAM_PROTO_GetShiftState [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 13 01 00 [13:01:32]Write to MH i2c: E2 08 00 71 13 80 13 01 00 00 00 00 00 01 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 0E 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 0E 00 71 13 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 40 [13:01:32]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:01:32]wFMCommunicate OK [13:01:32]SAM_PROTO_GetShiftState done [13:01:32]FM_GetShiftState done [13:01:32]opened in 1729987372 [13:01:32]opened+sec_in_day 1730073772 [13:01:32]quantity*price = 8028 [13:01:32]sum+1 = 8029 [13:01:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 80.00 Внесено: 80.00 СДАЧА: 0.00 НСП 1% : 0.71 НДС 12% : 8.52 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 107 27.10.2024 13:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117407 ФПД: 234063887109699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130134&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117407&fm=234063887109699&tin=02508201610067®Number=0000000000091782&sum=8000 [13:01:34]StoreToDocumentArchive [13:01:34]shift 542 fd 117407 [13:01:34]save to /storage/0542/doc_00117407 [13:01:34]save last doc name /storage/0542/doc_00117407 to /storage/kkm_last_doc_name [13:01:34]save OK [13:01:34]Clear old archive folders... [13:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:34]tlvbuf is 017245A0 [13:01:34]SAM_PROTO_ClearQueue [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 09 00 00 [13:01:34]Write to MH i2c: E2 08 00 7E 13 80 09 00 00 00 00 00 00 03 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 7E 13 00 90 00 05 [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]SAM_PROTO_ClearQueue done [13:01:34]KKMCreateOFDPacket [13:01:34]OFDProtocolAddRootSTLVToBuf [13:01:34]FM_MakeSignedData [13:01:34]FM_MakeSignedData [13:01:34]SAM_PROTO_SignData [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 0D 01 02 [13:01:34]Write to MH i2c: E2 08 00 7F 13 80 0D 01 02 00 00 00 00 0B [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 7F 13 00 90 00 06 [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]wFMCommunicate request_size=255 [13:01:34]MH_SAM_APDU [13:01: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 B0 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 AE 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9F CA 01 00 35 04 06 00 D4 [13:01:34]Write to MH i2c: E2 02 01 80 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 B0 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 AE 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9F CA 01 00 35 04 06 00 D4 00 00 14 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 80 13 00 90 00 07 [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]wFMCommunicate request_size=10 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 0D 02 02 05 E1 3E D8 8E 43 [13:01:34]Write to MH i2c: E2 0D 00 81 13 80 0D 02 02 05 00 E1 3E D8 8E 43 00 00 E0 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 81 13 00 90 00 08 [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 0D 03 02 [13:01:34]Write to MH i2c: E2 08 00 82 13 80 0D 03 02 00 00 00 00 10 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 0B 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 0B 00 82 13 00 87 1A CB 60 17 B6 8A D8 90 00 0C [13:01:34]RAPDU: 87 1A CB 60 17 B6 8A D8 90 00 [13:01:34]wFMCommunicate OK [13:01:34]SAM_PROTO_SignData done [13:01:34]FM_MakeSignedData done [13:01:34]CreateOFDProtocolMessage [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 83 13 80 11 00 00 00 00 00 00 10 [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 83 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 67 [13:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:01:34]wFMCommunicate OK [13:01:34]CreateOFDProtocolMessage done [13:01:34]OFDSenderStorePacket 117407 [13:01:34]StoreOFDPacket docnum=117407 [13:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 95 40 07 01 39 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 B0 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 AE 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9F CA 01 00 35 04 06 00 D4 E1 3E D8 8E 43 87 1A CB 60 17 B6 8A D8 [13:01:34]CheckFolder [13:01:34]dirname=/storage/ofd_packets [13:01:34]CheckFolder done [13:01:34]ProducePacketName [13:01:34]name=ofd_packets/00117407 [13:01:34]NVStorageSaveData ofd_packets/00117407 [13:01:34]File name is /storage/ofd_packets/00117407 [13:01:34]Write 301 bytes [13:01:34]NVStorageSaveData done [13:01:34]OFDSenderStorePacket done [13:01:34]KKMCreateOFDPacket done [13:01:34]NVStorageSaveData kkm_last_timestamp [13:01:34]File name is /storage/kkm_last_timestamp [13:01:34]Write 4 bytes [13:01:34]NVStorageSaveData done [13:01:34]ExternCall_PrintAddStr [13:01:34]wPrintStart [13:01:34]Write to MH i2c: 01 00 00 84 13 97 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: 01 [13:01:34]MH_I2C_Read... [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 84 13 00 00 00 00 00 FF 0F AC [13:01:34]RasterBufferAndPrint [13:01:34]line Счет N : (1)245183 [13:01:34]line ИНН: 02508201610067 [13:01:34]line Контрольно-Кассовый Чек [13:01:34]line ПРОДАЖА [13:01:34]line ТРК (МРК, ГНК) : 21 [13:01:34]line Товар: 2710124130 [13:01:34]line Аи-92-К-2 [13:01:34]line 1.200 * 66.90 [13:01:34]line = 80.28 [13:01:34]line НДС 12% НСП 1% [13:01:34]line > о реализуемом товаре [13:01:34]line ОКРУГЛЕНИЕ: -0.28 [13:01:34]line ИТОГО: 80.00 [13:01:34]line Внесено: 80.00 [13:01:34]line СДАЧА: 0.00 [13:01:34]line НСП 1% : 0.71 [13:01:34]line НДС 12% : 8.52 [13:01:34]line Наличными: 80.00 [13:01:34]line Безнал.: 0.00 [13:01:34]line Место: АЗС № 173 "Партнер Нефть" [13:01:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:01:34]line СНО: Общий режим [13:01:34]line Чек 107 27.10.2024 13:01 [13:01:34]line Смена: 542 ФФД: 1.0 [13:01:34]line ЗНМ: 0300000115 [13:01:34]line РНМ: 0000000000091782 [13:01:34]line Версия ККМ: 001 [13:01:34]line ФМ: 0000000000871767 [13:01:34]line ФД: 117407 [13:01:34]line ФПД: 234063887109699 [13:01:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130134&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117407&fm=234063887109699&tin=02508201610067®Number=0000000000091782&sum=8000 [13:01:34]written 0, free lines is 4095 [13:01:34]OFD Sender: Processing packet 117407 [packets to send 76, broken 75] [13:01:34]ProducePacketName [13:01:34]name=ofd_packets/00117407 [13:01:34]OFD Sender: To server: pG, [13:01:34]CommunicateWithHost lk.salyk.kg:30040 [13:01:34]ConnectInit lk.salyk.kg [13:01:35]Write to MH i2c: 01 00 00 AE 13 C1 [13:01:35]Connected sock=10 [13:01: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 36 37 0F 01 00 00 95 40 07 01 39 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 B0 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 AE 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9F CA 01 00 35 04 06 00 D4 E1 3E D8 8E 43 87 1A CB 60 17 B6 8A D8 [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: 01 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: 01 07 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: 01 07 00 AE 13 00 00 00 00 00 AB 0C 7F [13:01:35]RasterBufferAndPrint [13:01:35]line [13:01:35]line [13:01:35]line [13:01:35]line [13:01:35]line [13:01:35]written 0, free lines is 3262 [13:01:35]MH_Cut [13:01:35]Write to MH i2c: D1 01 00 B5 13 01 9A [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: D1 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: D1 01 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: D1 01 00 B5 13 00 99 [13:01:35]Write to MH i2c: 01 00 00 B6 13 C9 [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01: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 36 37 4F 00 00 00 0A E9 47 00 E3 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 36 37 10 04 04 00 9F CA 01 00 F4 03 04 00 6B E5 1D 67 B6 04 01 00 00 84 C6 88 7E CB 4B C0 FD [13:01:35]CommunicateWithHost err = 0 [13:01:35]CheckOFDResponse [13:01:35]1017 (14) - 77093643461234 [13:01:35]1041 (16) - 0000000000871767 [13:01:35]1040 (4) - 117407 [13:01:35]1012 (4) - 27.10.2024 07:02 [13:01:35]1206 (1) - 0 [13:01:35]OFD Sender: Remove packet 117407 [13:01:35]ProducePacketName [13:01:35]name=ofd_packets/00117407 [13:01:35]NVStorageDeleteData [13:01:35]OFD Sender: No OFD packet to send [13:01:35]*** Cut start [13:01:35]*** Purtial cut [13:01:35]*** Stage 1: CUTSNS_PIN = 1 [13:01:36]Read from MH i2c: 01 [13:01:36]MH_I2C_Read... [13:01:36]*** Stop cut motor [13:01:36]*** Cut end [13:01:36]Read from MH i2c: 01 07 00 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [13:01:36]process_action close_receipt done [13:01:36]requested_data is exist [13:01:36]produce_requested_data [13:01:36]requested_item fm.sn is exist - process it [13:01:36]wFMCommunicate request_size=4 [13:01:36]MH_SAM_APDU [13:01:36]CAPDU: 80 11 00 00 [13:01:36]Write to MH i2c: E2 08 00 B7 13 80 11 00 00 00 00 00 00 44 [13:01:36]Write i2c OK [13:01:36]MH_I2C_Read... [13:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:36]Read from MH i2c: E2 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: E2 17 00 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: E2 17 00 B7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9B [13:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:01:36]wFMCommunicate OK [13:01:36]requested_item fd.num is exist - process it [13:01:36]SAM_PROTO_GetFieldsCounters [13:01:36]wFMCommunicate request_size=4 [13:01:36]MH_SAM_APDU [13:01:36]CAPDU: 80 13 00 00 [13:01:36]Write to MH i2c: E2 08 00 B8 13 80 13 00 00 00 00 00 00 47 [13:01:36]Write i2c OK [13:01:36]MH_I2C_Read... [13:01:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:36]Read from MH i2c: E2 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: E2 62 00 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: E2 62 00 B8 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9F CA 01 00 0E 04 04 00 1E 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 39 [13:01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9F CA 01 00 0E 04 04 00 1E 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 [13:01:36]wFMCommunicate OK [13:01:36]SAM_PROTO_GetFieldsCounters done [13:01:36]requested_item shift.num is exist - process it [13:01:36]requested_item shift.opened is exist - process it [13:01:36]req_shift_opened [13:01:36]FM_GetShiftState [13:01:36]SAM_PROTO_GetShiftState [13:01:36]wFMCommunicate request_size=4 [13:01:36]MH_SAM_APDU [13:01:36]CAPDU: 80 13 01 00 [13:01:36]Write to MH i2c: E2 08 00 B9 13 80 13 01 00 00 00 00 00 49 [13:01:36]Write i2c OK [13:01:36]MH_I2C_Read... [13:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:36]Read from MH i2c: E2 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: E2 0E 00 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: E2 0E 00 B9 13 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 88 [13:01:36]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:01:36]wFMCommunicate OK [13:01:36]SAM_PROTO_GetShiftState done [13:01:36]FM_GetShiftState done [13:01:36]req_shift_opened done [13:01:36]requested_item shift.open_date is exist - process it [13:01:36]req_shift_open_date [13:01:36]req_shift_open_date done [13:01:36]produce_requested_data done [13:01:36]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117407,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:01:36]process_action_free close_receipt [13:01:36]json_value_free [13:01:36]json_value_free done [13:01:36]process_json_proto returns [13:01:36]Send response to host [13:01:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117407,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:01:36]free response buf [13:01:36]execute_script done [13:01:36]execute_script returns [13:01:36]free content buf [13:01:36]Sock 7.Close socket [13:01:36]Sock 7.Thread stoped [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:54]accept exits with 9 [13:02:54]New connection [13:02:54]New thread 3067456868 created [13:02:54]Thread 3067600228 joined [13:02:54]Waiting for new connection... [13:02:54] Sock 9.Parse request [13:02:54]Sock 9.Check first char [13:02:54]Sock 9.First char is OK [13:02:54]request: POST /json_proto HTTP/1.0 [13:02:54]Method: POST [13:02:54]URL: /json_proto [13:02:54]Method is POST - this is cgi request [13:02:54]url: /json_proto [13:02:54]query_string will be loaded in cgi processing [13:02:54]execute_cgi json_proto POST (null) [13:02:54]execute_cgi path=json_proto method=POST [13:02:54]POST find Content-Length [13:02:54]Host: 172.17.96.67:8080 [13:02:54]Content-Length: 674 [13:02:54]Content-Type: application/json [13:02:54] [13:02:54]POST finish read [13:02:54]Found Content-Length = 674 [13:02:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 1.970, "sum" : 150.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:54]execute_script... [13:02: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)245184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 1.970, "sum" : 150.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:54]POST & json_proto [13:02:54]process_json_proto [13:02:54]json parsed OK: [13:02:54]protocol is kg_v1.0 [13:02:54]action value=close_receipt [13:02:54]process_action close_receipt [13:02:54]cmd_close_receipt [13:02:54]MH_GetDate [13:02:54]Write to MH i2c: F0 00 00 BA 13 BC [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: F0 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: F0 09 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: F0 09 00 BA 13 00 FF 39 1E 67 2B 09 1E 67 3B [13:02:54]GetLastDocTimeStamp 1730034094 [13:02:54]current date 1730034175 [13:02:54]FM_GetShiftState [13:02:54]SAM_PROTO_GetShiftState [13:02:54]wFMCommunicate request_size=4 [13:02:54]MH_SAM_APDU [13:02:54]CAPDU: 80 13 01 00 [13:02:54]Write to MH i2c: E2 08 00 BB 13 80 13 01 00 00 00 00 00 4B [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:54]Read from MH i2c: E2 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 0E 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 0E 00 BB 13 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8A [13:02:54]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:02:54]wFMCommunicate OK [13:02:54]SAM_PROTO_GetShiftState done [13:02:54]FM_GetShiftState done [13:02:54]opened in 1729987372 [13:02:54]opened+sec_in_day 1730073772 [13:02:54]quantity*price = 15011 [13:02:54]sum+1 = 15012 [13:02:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 108 27.10.2024 13:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117408 ФПД: 229267963455335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130256&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117408&fm=229267963455335&tin=02508201610067®Number=0000000000091782&sum=15000 [13:02:55]StoreToDocumentArchive [13:02:55]shift 542 fd 117408 [13:02:55]save to /storage/0542/doc_00117408 [13:02:55]save last doc name /storage/0542/doc_00117408 to /storage/kkm_last_doc_name [13:02:55]save OK [13:02:55]Clear old archive folders... [13:02:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:02:55]tlvbuf is B6E46890 [13:02:55]SAM_PROTO_ClearQueue [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 09 00 00 [13:02:55]Write to MH i2c: E2 08 00 C8 13 80 09 00 00 00 00 00 00 4D [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [13:02:55]RAPDU: 90 00 [13:02:55]wFMCommunicate OK [13:02:55]SAM_PROTO_ClearQueue done [13:02:55]KKMCreateOFDPacket [13:02:55]OFDProtocolAddRootSTLVToBuf [13:02:55]FM_MakeSignedData [13:02:55]FM_MakeSignedData [13:02:55]SAM_PROTO_SignData [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 0D 01 02 [13:02:55]Write to MH i2c: E2 08 00 C9 13 80 0D 01 02 00 00 00 00 55 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 C9 13 00 90 00 50 [13:02:55]RAPDU: 90 00 [13:02:55]wFMCommunicate OK [13:02:55]wFMCommunicate request_size=255 [13:02:55]MH_SAM_APDU [13:02: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 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 00 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CA 01 00 35 04 06 00 D0 84 9B 85 [13:02:55]Write to MH i2c: E2 02 01 CA 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 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 00 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CA 01 00 35 04 06 00 D0 84 9B 85 00 00 BF [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 CA 13 00 90 00 51 [13:02:55]RAPDU: 90 00 [13:02:55]wFMCommunicate OK [13:02:55]wFMCommunicate request_size=7 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 0D 02 02 02 27 67 [13:02:55]Write to MH i2c: E2 0A 00 CB 13 80 0D 02 02 02 00 27 67 00 00 EA [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]OFD Sender: No OFD packet to send [13:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 CB 13 00 90 00 52 [13:02:55]RAPDU: 90 00 [13:02:55]wFMCommunicate OK [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 0D 03 02 [13:02:55]Write to MH i2c: E2 08 00 CC 13 80 0D 03 02 00 00 00 00 5A [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 0B 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 0B 00 CC 13 00 54 98 63 C1 67 74 F5 DB 90 00 16 [13:02:56]RAPDU: 54 98 63 C1 67 74 F5 DB 90 00 [13:02:56]wFMCommunicate OK [13:02:56]SAM_PROTO_SignData done [13:02:56]FM_MakeSignedData done [13:02:56]CreateOFDProtocolMessage [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 11 00 00 [13:02:56]Write to MH i2c: E2 08 00 CD 13 80 11 00 00 00 00 00 00 5A [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 17 00 [13:02:56]MH_I2C_Read... [13:02:56]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 36 37 90 00 B1 [13:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:02:56]wFMCommunicate OK [13:02:56]CreateOFDProtocolMessage done [13:02:56]OFDSenderStorePacket 117408 [13:02:56]StoreOFDPacket docnum=117408 [13:02:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 22 91 04 01 E2 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 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 00 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CA 01 00 35 04 06 00 D0 84 9B 85 27 67 54 98 63 C1 67 74 F5 DB [13:02:56]CheckFolder [13:02:56]dirname=/storage/ofd_packets [13:02:56]CheckFolder done [13:02:56]ProducePacketName [13:02:56]name=ofd_packets/00117408 [13:02:56]NVStorageSaveData ofd_packets/00117408 [13:02:56]File name is /storage/ofd_packets/00117408 [13:02:56]Write 298 bytes [13:02:56]NVStorageSaveData done [13:02:56]OFDSenderStorePacket done [13:02:56]KKMCreateOFDPacket done [13:02:56]NVStorageSaveData kkm_last_timestamp [13:02:56]File name is /storage/kkm_last_timestamp [13:02:56]Write 4 bytes [13:02:56]NVStorageSaveData done [13:02:56]ExternCall_PrintAddStr [13:02:56]wPrintStart [13:02:56]Write to MH i2c: 01 00 00 CE 13 E1 [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 07 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 07 00 CE 13 00 00 00 00 00 FF 0F F6 [13:02:56]RasterBufferAndPrint [13:02:56]line Счет N : (1)245184 [13:02:56]line ИНН: 02508201610067 [13:02:56]line Контрольно-Кассовый Чек [13:02:56]line ПРОДАЖА [13:02:56]line ТРК (МРК, ГНК) : 23 [13:02:56]line Товар: 2710194210 [13:02:56]line ДТ-К-2 [13:02:56]line 1.970 * 76.20 [13:02:56]line = 150.11 [13:02:56]line НДС 12% НСП 1% [13:02:56]line > о реализуемом товаре [13:02:56]line ОКРУГЛЕНИЕ: -0.11 [13:02:56]line ИТОГО: 150.00 [13:02:56]line Внесено: 150.00 [13:02:56]line СДАЧА: 0.00 [13:02:56]line НСП 1% : 1.33 [13:02:56]line НДС 12% : 15.94 [13:02:56]line Наличными: 150.00 [13:02:56]line Безнал.: 0.00 [13:02:56]line Место: АЗС № 173 "Партнер Нефть" [13:02:56]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:02:56]line СНО: Общий режим [13:02:56]line Чек 108 27.10.2024 13:02 [13:02:56]line Смена: 542 ФФД: 1.0 [13:02:56]line ЗНМ: 0300000115 [13:02:56]line РНМ: 0000000000091782 [13:02:56]line Версия ККМ: 001 [13:02:56]line ФМ: 0000000000871767 [13:02:56]line ФД: 117408 [13:02:56]line ФПД: 229267963455335 [13:02:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130256&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117408&fm=229267963455335&tin=02508201610067®Number=0000000000091782&sum=15000 [13:02:56]OFD Sender: Processing packet 117408 [packets to send 76, broken 75] [13:02:56]ProducePacketName [13:02:56]name=ofd_packets/00117408 [13:02:56]OFD Sender: To server: pG, [13:02:56]CommunicateWithHost lk.salyk.kg:30040 [13:02:56]ConnectInit lk.salyk.kg [13:02:56]written 0, free lines is 4095 [13:02:56]Connected sock=10 [13:02: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 36 37 0C 01 00 00 22 91 04 01 E2 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 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 00 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CA 01 00 35 04 06 00 D0 84 9B 85 27 67 54 98 63 C1 67 74 F5 DB [13:02: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 36 37 4F 00 00 00 5C EF 47 00 83 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CA 01 00 F4 03 04 00 BD E5 1D 67 B6 04 01 00 00 4C AE FA 97 1C 85 90 07 [13:02:56]CommunicateWithHost err = 0 [13:02:56]CheckOFDResponse [13:02:56]1017 (14) - 77093643461234 [13:02:56]1041 (16) - 0000000000871767 [13:02:56]1040 (4) - 117408 [13:02:56]1012 (4) - 27.10.2024 07:03 [13:02:56]1206 (1) - 0 [13:02:56]OFD Sender: Remove packet 117408 [13:02:56]ProducePacketName [13:02:56]name=ofd_packets/00117408 [13:02:56]NVStorageDeleteData [13:02:56]Write to MH i2c: 01 00 00 F8 13 0B [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 07 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 07 00 F8 13 00 00 00 00 00 B3 0C D1 [13:02:56]RasterBufferAndPrint [13:02:56]line [13:02:56]line [13:02:56]line [13:02:56]line [13:02:56]line [13:02:56]written 0, free lines is 3255 [13:02:56]MH_Cut [13:02:56]Write to MH i2c: D1 01 00 FF 13 01 E4 [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: D1 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: D1 01 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: D1 01 00 FF 13 00 E3 [13:02:56]Write to MH i2c: 01 00 00 00 14 14 [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:57]OFD Sender: No OFD packet to send [13:02:57]*** Cut start [13:02:57]*** Purtial cut [13:02:57]*** Stage 1: CUTSNS_PIN = 1 [13:02:58]Read from MH i2c: 01 [13:02:58]MH_I2C_Read... [13:02:58]*** Stop cut motor [13:02:58]*** Cut end [13:02:58]Read from MH i2c: 01 07 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: 01 07 00 00 14 00 00 00 00 00 FF 0F 29 [13:02:58]process_action close_receipt done [13:02:58]requested_data is exist [13:02:58]produce_requested_data [13:02:58]requested_item fm.sn is exist - process it [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 11 00 00 [13:02:58]Write to MH i2c: E2 08 00 01 14 80 11 00 00 00 00 00 00 8F [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 17 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 17 00 01 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E6 [13:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:02:58]wFMCommunicate OK [13:02:58]requested_item fd.num is exist - process it [13:02:58]SAM_PROTO_GetFieldsCounters [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 13 00 00 [13:02:58]Write to MH i2c: E2 08 00 02 14 80 13 00 00 00 00 00 00 92 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 62 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 62 00 02 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A0 CA 01 00 0E 04 04 00 1E 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 88 [13:02:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A0 CA 01 00 0E 04 04 00 1E 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 [13:02:58]wFMCommunicate OK [13:02:58]SAM_PROTO_GetFieldsCounters done [13:02:58]requested_item shift.num is exist - process it [13:02:58]requested_item shift.opened is exist - process it [13:02:58]req_shift_opened [13:02:58]FM_GetShiftState [13:02:58]SAM_PROTO_GetShiftState [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 13 01 00 [13:02:58]Write to MH i2c: E2 08 00 03 14 80 13 01 00 00 00 00 00 94 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0E 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0E 00 03 14 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D3 [13:02:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:02:58]wFMCommunicate OK [13:02:58]SAM_PROTO_GetShiftState done [13:02:58]FM_GetShiftState done [13:02:58]req_shift_opened done [13:02:58]requested_item shift.open_date is exist - process it [13:02:58]req_shift_open_date [13:02:58]req_shift_open_date done [13:02:58]produce_requested_data done [13:02:58]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117408,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:02:58]process_action_free close_receipt [13:02:58]json_value_free [13:02:58]json_value_free done [13:02:58]process_json_proto returns [13:02:58]Send response to host [13:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117408,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:02:58]free response buf [13:02:58]execute_script done [13:02:58]execute_script returns [13:02:58]free content buf [13:02:58]Sock 9.Close socket [13:02:58]Sock 9.Thread stoped [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [13:05:40]accept exits with 7 [13:05:40]New connection [13:05:40]New thread 3067600228 created [13:05:40]Thread 3067456868 joined [13:05:40]Waiting for new connection... [13:05:40] Sock 7.Parse request [13:05:40]Sock 7.Check first char [13:05:40]Sock 7.First char is OK [13:05:40]request: POST /json_proto HTTP/1.0 [13:05:40]Method: POST [13:05:40]URL: /json_proto [13:05:40]Method is POST - this is cgi request [13:05:40]url: /json_proto [13:05:40]query_string will be loaded in cgi processing [13:05:40]execute_cgi json_proto POST (null) [13:05:40]execute_cgi path=json_proto method=POST [13:05:40]POST find Content-Length [13:05:40]Host: 172.17.96.67:8080 [13:05:40]Content-Length: 677 [13:05:40]Content-Type: application/json [13:05:40] [13:05:40]POST finish read [13:05:40]Found Content-Length = 677 [13:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:05:40]execute_script... [13:05:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:05:40]POST & json_proto [13:05:40]process_json_proto [13:05:40]json parsed OK: [13:05:40]protocol is kg_v1.0 [13:05:40]action value=close_receipt [13:05:40]process_action close_receipt [13:05:40]cmd_close_receipt [13:05:40]MH_GetDate [13:05:40]Write to MH i2c: F0 00 00 04 14 07 [13:05:40]Write i2c OK [13:05:40]MH_I2C_Read... [13:05:40]Read from MH i2c: F0 [13:05:40]MH_I2C_Read... [13:05:40]Read from MH i2c: F0 09 00 [13:05:40]MH_I2C_Read... [13:05:40]Read from MH i2c: F0 09 00 04 14 00 A6 3A 1E 67 2B 09 1E 67 2E [13:05:40]GetLastDocTimeStamp 1730034176 [13:05:40]current date 1730034342 [13:05:40]FM_GetShiftState [13:05:40]SAM_PROTO_GetShiftState [13:05:40]wFMCommunicate request_size=4 [13:05:40]MH_SAM_APDU [13:05:40]CAPDU: 80 13 01 00 [13:05:40]Write to MH i2c: E2 08 00 05 14 80 13 01 00 00 00 00 00 96 [13:05:40]Write i2c OK [13:05:40]MH_I2C_Read... [13:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:40]Read from MH i2c: E2 [13:05:40]MH_I2C_Read... [13:05:40]Read from MH i2c: E2 0E 00 [13:05:40]MH_I2C_Read... [13:05:40]Read from MH i2c: E2 0E 00 05 14 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D5 [13:05:40]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:05:40]wFMCommunicate OK [13:05:40]SAM_PROTO_GetShiftState done [13:05:40]FM_GetShiftState done [13:05:40]opened in 1729987372 [13:05:40]opened+sec_in_day 1730073772 [13:05:40]quantity*price = 30038 [13:05:40]sum+1 = 30039 [13:05:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 109 27.10.2024 13:05 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117409 ФПД: 91438171341671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130542&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117409&fm=91438171341671&tin=02508201610067®Number=0000000000091782&sum=30000 [13:05:42]StoreToDocumentArchive [13:05:42]shift 542 fd 117409 [13:05:42]save to /storage/0542/doc_00117409 [13:05:42]save last doc name /storage/0542/doc_00117409 to /storage/kkm_last_doc_name [13:05:42]save OK [13:05:42]Clear old archive folders... [13:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:42]tlvbuf is 016F78B0 [13:05:42]SAM_PROTO_ClearQueue [13:05:42]wFMCommunicate request_size=4 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 09 00 00 [13:05:42]Write to MH i2c: E2 08 00 12 14 80 09 00 00 00 00 00 00 98 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 12 14 00 90 00 9A [13:05:42]RAPDU: 90 00 [13:05:42]wFMCommunicate OK [13:05:42]SAM_PROTO_ClearQueue done [13:05:42]KKMCreateOFDPacket [13:05:42]OFDProtocolAddRootSTLVToBuf [13:05:42]FM_MakeSignedData [13:05:42]FM_MakeSignedData [13:05:42]SAM_PROTO_SignData [13:05:42]wFMCommunicate request_size=4 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 0D 01 02 [13:05:42]Write to MH i2c: E2 08 00 13 14 80 0D 01 02 00 00 00 00 A0 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 13 14 00 90 00 9B [13:05:42]RAPDU: 90 00 [13:05:42]wFMCommunicate OK [13:05:42]wFMCommunicate request_size=255 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 A6 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CA 01 00 35 04 06 00 53 [13:05:42]Write to MH i2c: E2 02 01 14 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 6D 00 00 00 F4 03 04 00 A6 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CA 01 00 35 04 06 00 53 00 00 D7 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]OFD Sender: No OFD packet to send [13:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [13:05:42]RAPDU: 90 00 [13:05:42]wFMCommunicate OK [13:05:42]wFMCommunicate request_size=10 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 0D 02 02 05 29 9B B8 C3 67 [13:05:42]Write to MH i2c: E2 0D 00 15 14 80 0D 02 02 05 00 29 9B B8 C3 67 00 00 53 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 15 14 00 90 00 9D [13:05:42]RAPDU: 90 00 [13:05:42]wFMCommunicate OK [13:05:42]wFMCommunicate request_size=4 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 0D 03 02 [13:05:42]Write to MH i2c: E2 08 00 16 14 80 0D 03 02 00 00 00 00 A5 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 0B 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 0B 00 16 14 00 05 3B 92 A1 DF 44 44 EF 90 00 6F [13:05:42]RAPDU: 05 3B 92 A1 DF 44 44 EF 90 00 [13:05:42]wFMCommunicate OK [13:05:42]SAM_PROTO_SignData done [13:05:42]FM_MakeSignedData done [13:05:42]CreateOFDProtocolMessage [13:05:42]wFMCommunicate request_size=4 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 11 00 00 [13:05:42]Write to MH i2c: E2 08 00 17 14 80 11 00 00 00 00 00 00 A5 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 17 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 17 00 17 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FC [13:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:05:42]wFMCommunicate OK [13:05:42]CreateOFDProtocolMessage done [13:05:42]OFDSenderStorePacket 117409 [13:05:42]StoreOFDPacket docnum=117409 [13:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6B EB 07 01 07 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 6D 00 00 00 F4 03 04 00 A6 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CA 01 00 35 04 06 00 53 29 9B B8 C3 67 05 3B 92 A1 DF 44 44 EF [13:05:42]CheckFolder [13:05:42]dirname=/storage/ofd_packets [13:05:42]CheckFolder done [13:05:42]ProducePacketName [13:05:42]name=ofd_packets/00117409 [13:05:42]NVStorageSaveData ofd_packets/00117409 [13:05:42]File name is /storage/ofd_packets/00117409 [13:05:42]Write 301 bytes [13:05:42]NVStorageSaveData done [13:05:42]OFDSenderStorePacket done [13:05:42]KKMCreateOFDPacket done [13:05:42]NVStorageSaveData kkm_last_timestamp [13:05:42]File name is /storage/kkm_last_timestamp [13:05:42]Write 4 bytes [13:05:42]NVStorageSaveData done [13:05:42]ExternCall_PrintAddStr [13:05:42]wPrintStart [13:05:42]Write to MH i2c: 01 00 00 18 14 2C [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: 01 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: 01 07 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 FF 0F 41 [13:05:42]RasterBufferAndPrint [13:05:42]line Счет N : (1)245185 [13:05:42]line ИНН: 02508201610067 [13:05:42]line Контрольно-Кассовый Чек [13:05:42]line ПРОДАЖА [13:05:42]line ТРК (МРК, ГНК) : 11 [13:05:42]line Товар: 2710124130 [13:05:42]line Аи-92-К-2 [13:05:42]line 4.490 * 66.90 [13:05:42]line = 300.38 [13:05:42]line НДС 12% НСП 1% [13:05:42]line > о реализуемом товаре [13:05:42]line ОКРУГЛЕНИЕ: -0.38 [13:05:42]line ИТОГО: 300.00 [13:05:42]line Внесено: 300.00 [13:05:42]line СДАЧА: 0.00 [13:05:42]line НСП 1% : 2.66 [13:05:42]line НДС 12% : 31.90 [13:05:42]line Наличными: 300.00 [13:05:42]line Безнал.: 0.00 [13:05:42]line Место: АЗС № 173 "Партнер Нефть" [13:05:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:05:42]line СНО: Общий режим [13:05:42]line Чек 109 27.10.2024 13:05 [13:05:42]line Смена: 542 ФФД: 1.0 [13:05:42]line ЗНМ: 0300000115 [13:05:42]line РНМ: 0000000000091782 [13:05:42]line Версия ККМ: 001 [13:05:42]line ФМ: 0000000000871767 [13:05:42]line ФД: 117409 [13:05:42]line ФПД: 91438171341671 [13:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130542&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117409&fm=91438171341671&tin=02508201610067®Number=0000000000091782&sum=30000 [13:05:42]written 0, free lines is 4095 [13:05:42]OFD Sender: Processing packet 117409 [packets to send 76, broken 75] [13:05:42]ProducePacketName [13:05:42]name=ofd_packets/00117409 [13:05:42]OFD Sender: To server: pG, [13:05:42]CommunicateWithHost lk.salyk.kg:30040 [13:05:42]ConnectInit lk.salyk.kg [13:05:42]Connected sock=10 [13:05: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 36 37 0F 01 00 00 6B EB 07 01 07 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 6D 00 00 00 F4 03 04 00 A6 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CA 01 00 35 04 06 00 53 29 9B B8 C3 67 05 3B 92 A1 DF 44 44 EF [13:05: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 36 37 4F 00 00 00 2C 90 47 00 F9 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CA 01 00 F4 03 04 00 63 E6 1D 67 B6 04 01 00 00 E2 BE 24 8D CA D7 B1 71 [13:05:42]CommunicateWithHost err = 0 [13:05:42]CheckOFDResponse [13:05:42]1017 (14) - 77093643461234 [13:05:42]1041 (16) - 0000000000871767 [13:05:42]1040 (4) - 117409 [13:05:42]1012 (4) - 27.10.2024 07:06 [13:05:42]1206 (1) - 0 [13:05:42]OFD Sender: Remove packet 117409 [13:05:42]ProducePacketName [13:05:42]name=ofd_packets/00117409 [13:05:42]NVStorageDeleteData [13:05:43]Write to MH i2c: 01 00 00 42 14 56 [13:05:43]Write i2c OK [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: 01 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: 01 07 00 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: 01 07 00 42 14 00 00 00 00 00 B6 0C 1F [13:05:43]RasterBufferAndPrint [13:05:43]line [13:05:43]line [13:05:43]line [13:05:43]line [13:05:43]line [13:05:43]written 0, free lines is 3260 [13:05:43]MH_Cut [13:05:43]Write to MH i2c: D1 01 00 49 14 01 2F [13:05:43]Write i2c OK [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: D1 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: D1 01 00 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: D1 01 00 49 14 00 2E [13:05:43]Write to MH i2c: 01 00 00 4A 14 5E [13:05:43]Write i2c OK [13:05:43]MH_I2C_Read... [13:05:43]OFD Sender: No OFD packet to send [13:05:43]*** Cut start [13:05:43]*** Purtial cut [13:05:43]*** Stage 1: CUTSNS_PIN = 1 [13:05:44]Read from MH i2c: 01 [13:05:44]MH_I2C_Read... [13:05:44]*** Stop cut motor [13:05:44]*** Cut end [13:05:44]Read from MH i2c: 01 07 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 4A 14 00 00 00 00 00 FF 0F 73 [13:05:44]process_action close_receipt done [13:05:44]requested_data is exist [13:05:44]produce_requested_data [13:05:44]requested_item fm.sn is exist - process it [13:05:44]wFMCommunicate request_size=4 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 11 00 00 [13:05:44]Write to MH i2c: E2 08 00 4B 14 80 11 00 00 00 00 00 00 D9 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 17 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 17 00 4B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 30 [13:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:05:44]wFMCommunicate OK [13:05:44]requested_item fd.num is exist - process it [13:05:44]SAM_PROTO_GetFieldsCounters [13:05:44]wFMCommunicate request_size=4 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 13 00 00 [13:05:44]Write to MH i2c: E2 08 00 4C 14 80 13 00 00 00 00 00 00 DC [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 62 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 62 00 4C 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A1 CA 01 00 0E 04 04 00 1E 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 D6 [13:05: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A1 CA 01 00 0E 04 04 00 1E 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 [13:05:44]wFMCommunicate OK [13:05:44]SAM_PROTO_GetFieldsCounters done [13:05:44]requested_item shift.num is exist - process it [13:05:44]requested_item shift.opened is exist - process it [13:05:44]req_shift_opened [13:05:44]FM_GetShiftState [13:05:44]SAM_PROTO_GetShiftState [13:05:44]wFMCommunicate request_size=4 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 13 01 00 [13:05:44]Write to MH i2c: E2 08 00 4D 14 80 13 01 00 00 00 00 00 DE [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:44]Read from MH i2c: E2 0E 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 0E 00 4D 14 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1D [13:05:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:05:44]wFMCommunicate OK [13:05:44]SAM_PROTO_GetShiftState done [13:05:44]FM_GetShiftState done [13:05:44]req_shift_opened done [13:05:44]requested_item shift.open_date is exist - process it [13:05:44]req_shift_open_date [13:05:44]req_shift_open_date done [13:05:44]produce_requested_data done [13:05:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117409,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:05:44]process_action_free close_receipt [13:05:44]json_value_free [13:05:44]json_value_free done [13:05:44]process_json_proto returns [13:05:44]Send response to host [13:05:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117409,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:05:44]free response buf [13:05:44]execute_script done [13:05:44]execute_script returns [13:05:44]free content buf [13:05:44]Sock 7.Close socket [13:05:44]Sock 7.Thread stoped [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:03]accept exits with 9 [13:07:03]New connection [13:07:03]New thread 3067456868 created [13:07:03]Thread 3067600228 joined [13:07:03]Waiting for new connection... [13:07:03] Sock 9.Parse request [13:07:03]Sock 9.Check first char [13:07:03]Sock 9.First char is OK [13:07:03]request: POST /json_proto HTTP/1.0 [13:07:03]Method: POST [13:07:03]URL: /json_proto [13:07:03]Method is POST - this is cgi request [13:07:03]url: /json_proto [13:07:03]query_string will be loaded in cgi processing [13:07:03]execute_cgi json_proto POST (null) [13:07:03]execute_cgi path=json_proto method=POST [13:07:03]POST find Content-Length [13:07:03]Host: 172.17.96.67:8080 [13:07:03]Content-Length: 677 [13:07:03]Content-Type: application/json [13:07:03] [13:07:03]POST finish read [13:07:03]Found Content-Length = 677 [13:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:07:03]execute_script... [13:07: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)245186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:07:03]POST & json_proto [13:07:03]process_json_proto [13:07:03]json parsed OK: [13:07:03]protocol is kg_v1.0 [13:07:03]action value=close_receipt [13:07:03]process_action close_receipt [13:07:03]cmd_close_receipt [13:07:03]MH_GetDate [13:07:03]Write to MH i2c: F0 00 00 4E 14 51 [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: F0 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: F0 09 00 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: F0 09 00 4E 14 00 F9 3A 1E 67 2B 09 1E 67 CB [13:07:03]GetLastDocTimeStamp 1730034342 [13:07:03]current date 1730034425 [13:07:03]FM_GetShiftState [13:07:03]SAM_PROTO_GetShiftState [13:07:03]wFMCommunicate request_size=4 [13:07:03]MH_SAM_APDU [13:07:03]CAPDU: 80 13 01 00 [13:07:03]Write to MH i2c: E2 08 00 4F 14 80 13 01 00 00 00 00 00 E0 [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:03]Read from MH i2c: E2 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 0E 00 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 0E 00 4F 14 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1F [13:07:03]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:07:03]wFMCommunicate OK [13:07:03]SAM_PROTO_GetShiftState done [13:07:03]FM_GetShiftState done [13:07:03]opened in 1729987372 [13:07:03]opened+sec_in_day 1730073772 [13:07:03]quantity*price = 30038 [13:07:03]sum+1 = 30039 [13:07: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 110 27.10.2024 13:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117410 ФПД: 162708781544780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130705&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117410&fm=162708781544780&tin=02508201610067®Number=0000000000091782&sum=30000 [13:07:05]StoreToDocumentArchive [13:07:05]shift 542 fd 117410 [13:07:05]save to /storage/0542/doc_00117410 [13:07:05]save last doc name /storage/0542/doc_00117410 to /storage/kkm_last_doc_name [13:07:05]save OK [13:07:05]Clear old archive folders... [13:07:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:05]tlvbuf is 0170F1B0 [13:07:05]SAM_PROTO_ClearQueue [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 09 00 00 [13:07:05]Write to MH i2c: E2 08 00 5C 14 80 09 00 00 00 00 00 00 E2 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 5C 14 00 90 00 E4 [13:07:05]RAPDU: 90 00 [13:07:05]wFMCommunicate OK [13:07:05]SAM_PROTO_ClearQueue done [13:07:05]KKMCreateOFDPacket [13:07:05]OFDProtocolAddRootSTLVToBuf [13:07:05]FM_MakeSignedData [13:07:05]FM_MakeSignedData [13:07:05]SAM_PROTO_SignData [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 0D 01 02 [13:07:05]Write to MH i2c: E2 08 00 5D 14 80 0D 01 02 00 00 00 00 EA [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 5D 14 00 90 00 E5 [13:07:05]RAPDU: 90 00 [13:07:05]wFMCommunicate OK [13:07:05]wFMCommunicate request_size=255 [13:07:05]MH_SAM_APDU [13:07: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 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 6E 00 00 00 F4 03 04 00 F9 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A2 CA 01 00 35 04 06 00 93 [13:07:05]Write to MH i2c: E2 02 01 5E 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 6E 00 00 00 F4 03 04 00 F9 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A2 CA 01 00 35 04 06 00 93 00 00 B6 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 5E 14 00 90 00 E6 [13:07:05]RAPDU: 90 00 [13:07:05]wFMCommunicate OK [13:07:05]wFMCommunicate request_size=10 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 0D 02 02 05 FB 97 20 35 4C [13:07:05]Write to MH i2c: E2 0D 00 5F 14 80 0D 02 02 05 00 FB 97 20 35 4C 00 00 2A [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 5F 14 00 90 00 E7 [13:07:05]RAPDU: 90 00 [13:07:05]wFMCommunicate OK [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 0D 03 02 [13:07:05]Write to MH i2c: E2 08 00 60 14 80 0D 03 02 00 00 00 00 EF [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 0B 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 0B 00 60 14 00 54 01 B6 AC D7 5C 05 75 90 00 54 [13:07:05]RAPDU: 54 01 B6 AC D7 5C 05 75 90 00 [13:07:05]wFMCommunicate OK [13:07:05]SAM_PROTO_SignData done [13:07:05]FM_MakeSignedData done [13:07:05]CreateOFDProtocolMessage [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 61 14 80 11 00 00 00 00 00 00 EF [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 61 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 46 [13:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:07:05]wFMCommunicate OK [13:07:05]CreateOFDProtocolMessage done [13:07:05]OFDSenderStorePacket 117410 [13:07:05]StoreOFDPacket docnum=117410 [13:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 01 41 07 01 3A 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 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 6E 00 00 00 F4 03 04 00 F9 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A2 CA 01 00 35 04 06 00 93 FB 97 20 35 4C 54 01 B6 AC D7 5C 05 75 [13:07:05]CheckFolder [13:07:05]dirname=/storage/ofd_packets [13:07:05]CheckFolder done [13:07:05]ProducePacketName [13:07:05]name=ofd_packets/00117410 [13:07:05]NVStorageSaveData ofd_packets/00117410 [13:07:05]File name is /storage/ofd_packets/00117410 [13:07:05]Write 301 bytes [13:07:05]NVStorageSaveData done [13:07:05]OFDSenderStorePacket done [13:07:05]KKMCreateOFDPacket done [13:07:05]NVStorageSaveData kkm_last_timestamp [13:07:05]File name is /storage/kkm_last_timestamp [13:07:05]Write 4 bytes [13:07:05]NVStorageSaveData done [13:07:05]ExternCall_PrintAddStr [13:07:05]wPrintStart [13:07:05]Write to MH i2c: 01 00 00 62 14 76 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: 01 [13:07:05]MH_I2C_Read... [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 62 14 00 00 00 00 00 FF 0F 8B [13:07:05]RasterBufferAndPrint [13:07:05]line Счет N : (1)245186 [13:07:05]line ИНН: 02508201610067 [13:07:05]line Контрольно-Кассовый Чек [13:07:05]line ПРОДАЖА [13:07:05]line ТРК (МРК, ГНК) : 11 [13:07:05]line Товар: 2710124130 [13:07:05]line Аи-92-К-2 [13:07:05]line 4.490 * 66.90 [13:07:05]line = 300.38 [13:07:05]line НДС 12% НСП 1% [13:07:05]line > о реализуемом товаре [13:07:05]line ОКРУГЛЕНИЕ: -0.38 [13:07:05]line ИТОГО: 300.00 [13:07:05]line Внесено: 300.00 [13:07:05]line СДАЧА: 0.00 [13:07:05]line НСП 1% : 2.66 [13:07:05]line НДС 12% : 31.90 [13:07:05]line Наличными: 300.00 [13:07:05]line Безнал.: 0.00 [13:07:05]line Место: АЗС № 173 "Партнер Нефть" [13:07:05]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:07:05]line СНО: Общий режим [13:07:05]line Чек 110 27.10.2024 13:07 [13:07:05]line Смена: 542 ФФД: 1.0 [13:07:05]line ЗНМ: 0300000115 [13:07:05]line РНМ: 0000000000091782 [13:07:05]line Версия ККМ: 001 [13:07:05]line ФМ: 0000000000871767 [13:07:05]line ФД: 117410 [13:07:05]line ФПД: 162708781544780 [13:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130705&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117410&fm=162708781544780&tin=02508201610067®Number=0000000000091782&sum=30000 [13:07:05]OFD Sender: Processing packet 117410 [packets to send 76, broken 75] [13:07:05]ProducePacketName [13:07:05]name=ofd_packets/00117410 [13:07:05]OFD Sender: To server: pG, [13:07:05]CommunicateWithHost lk.salyk.kg:30040 [13:07:05]ConnectInit lk.salyk.kg [13:07:05]written 0, free lines is 4095 [13:07:06]Connected sock=10 [13:07: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 36 37 0F 01 00 00 01 41 07 01 3A 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 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 6E 00 00 00 F4 03 04 00 F9 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A2 CA 01 00 35 04 06 00 93 FB 97 20 35 4C 54 01 B6 AC D7 5C 05 75 [13:07: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 36 37 4F 00 00 00 09 7C 47 00 7C 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 36 37 10 04 04 00 A2 CA 01 00 F4 03 04 00 B6 E6 1D 67 B6 04 01 00 00 0E 3A 7E F2 2F D1 12 B9 [13:07:06]CommunicateWithHost err = 0 [13:07:06]CheckOFDResponse [13:07:06]1017 (14) - 77093643461234 [13:07:06]1041 (16) - 0000000000871767 [13:07:06]1040 (4) - 117410 [13:07:06]1012 (4) - 27.10.2024 07:07 [13:07:06]1206 (1) - 0 [13:07:06]OFD Sender: Remove packet 117410 [13:07:06]ProducePacketName [13:07:06]name=ofd_packets/00117410 [13:07:06]NVStorageDeleteData [13:07:06]Write to MH i2c: 01 00 00 8C 14 A0 [13:07:06]Write i2c OK [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: 01 [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: 01 07 00 [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: 01 07 00 8C 14 00 00 00 00 00 B5 0C 68 [13:07:06]RasterBufferAndPrint [13:07:06]line [13:07:06]line [13:07:06]line [13:07:06]line [13:07:06]line [13:07:06]written 0, free lines is 3259 [13:07:06]MH_Cut [13:07:06]Write to MH i2c: D1 01 00 93 14 01 79 [13:07:06]Write i2c OK [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: D1 [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: D1 01 00 [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: D1 01 00 93 14 00 78 [13:07:06]Write to MH i2c: 01 00 00 94 14 A8 [13:07:06]Write i2c OK [13:07:06]MH_I2C_Read... [13:07:06]OFD Sender: No OFD packet to send [13:07:07]*** Cut start [13:07:07]*** Purtial cut [13:07:07]*** Stage 1: CUTSNS_PIN = 1 [13:07:07]Read from MH i2c: 01 [13:07:07]MH_I2C_Read... [13:07:07]*** Stop cut motor [13:07:07]*** Cut end [13:07:07]Read from MH i2c: 01 07 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: 01 07 00 94 14 00 00 00 00 00 FF 0F BD [13:07:07]process_action close_receipt done [13:07:07]requested_data is exist [13:07:07]produce_requested_data [13:07:07]requested_item fm.sn is exist - process it [13:07:07]wFMCommunicate request_size=4 [13:07:07]MH_SAM_APDU [13:07:07]CAPDU: 80 11 00 00 [13:07:07]Write to MH i2c: E2 08 00 95 14 80 11 00 00 00 00 00 00 23 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 17 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 17 00 95 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7A [13:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:07:07]wFMCommunicate OK [13:07:07]requested_item fd.num is exist - process it [13:07:07]SAM_PROTO_GetFieldsCounters [13:07:07]wFMCommunicate request_size=4 [13:07:07]MH_SAM_APDU [13:07:07]CAPDU: 80 13 00 00 [13:07:07]Write to MH i2c: E2 08 00 96 14 80 13 00 00 00 00 00 00 26 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 62 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 62 00 96 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A2 CA 01 00 0E 04 04 00 1E 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 24 [13:07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A2 CA 01 00 0E 04 04 00 1E 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 [13:07:07]wFMCommunicate OK [13:07:07]SAM_PROTO_GetFieldsCounters done [13:07:07]requested_item shift.num is exist - process it [13:07:07]requested_item shift.opened is exist - process it [13:07:07]req_shift_opened [13:07:07]FM_GetShiftState [13:07:07]SAM_PROTO_GetShiftState [13:07:07]wFMCommunicate request_size=4 [13:07:07]MH_SAM_APDU [13:07:07]CAPDU: 80 13 01 00 [13:07:07]Write to MH i2c: E2 08 00 97 14 80 13 01 00 00 00 00 00 28 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 0E 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 0E 00 97 14 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 67 [13:07:07]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:07:07]wFMCommunicate OK [13:07:07]SAM_PROTO_GetShiftState done [13:07:07]FM_GetShiftState done [13:07:07]req_shift_opened done [13:07:07]requested_item shift.open_date is exist - process it [13:07:07]req_shift_open_date [13:07:07]req_shift_open_date done [13:07:07]produce_requested_data done [13:07:07]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117410,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:07:07]process_action_free close_receipt [13:07:07]json_value_free [13:07:07]json_value_free done [13:07:07]process_json_proto returns [13:07:07]Send response to host [13:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117410,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:07:07]free response buf [13:07:07]execute_script done [13:07:07]execute_script returns [13:07:07]free content buf [13:07:07]Sock 9.Close socket [13:07:07]Sock 9.Thread stoped [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:06]accept exits with 7 [13:12:06]New connection [13:12:06]New thread 3067600228 created [13:12:06]Thread 3067456868 joined [13:12:06]Waiting for new connection... [13:12:06] Sock 7.Parse request [13:12:06]Sock 7.Check first char [13:12:06]Sock 7.First char is OK [13:12:06]request: POST /json_proto HTTP/1.0 [13:12:06]Method: POST [13:12:06]URL: /json_proto [13:12:06]Method is POST - this is cgi request [13:12:06]url: /json_proto [13:12:06]query_string will be loaded in cgi processing [13:12:06]execute_cgi json_proto POST (null) [13:12:06]execute_cgi path=json_proto method=POST [13:12:06]POST find Content-Length [13:12:06]Host: 172.17.96.67:8080 [13:12:06]Content-Length: 677 [13:12:06]Content-Type: application/json [13:12:06] [13:12:06]POST finish read [13:12:06]Found Content-Length = 677 [13:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:06]execute_script... [13:12: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)245187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:06]POST & json_proto [13:12:06]process_json_proto [13:12:06]json parsed OK: [13:12:06]protocol is kg_v1.0 [13:12:06]action value=close_receipt [13:12:06]process_action close_receipt [13:12:06]cmd_close_receipt [13:12:06]MH_GetDate [13:12:06]Write to MH i2c: F0 00 00 98 14 9B [13:12:06]Write i2c OK [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: F0 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: F0 09 00 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: F0 09 00 98 14 00 28 3C 1E 67 2B 09 1E 67 46 [13:12:06]GetLastDocTimeStamp 1730034425 [13:12:06]current date 1730034728 [13:12:06]FM_GetShiftState [13:12:06]SAM_PROTO_GetShiftState [13:12:06]wFMCommunicate request_size=4 [13:12:06]MH_SAM_APDU [13:12:06]CAPDU: 80 13 01 00 [13:12:06]Write to MH i2c: E2 08 00 99 14 80 13 01 00 00 00 00 00 2A [13:12:06]Write i2c OK [13:12:06]MH_I2C_Read... [13:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:06]Read from MH i2c: E2 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: E2 0E 00 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: E2 0E 00 99 14 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 69 [13:12:06]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:12:06]wFMCommunicate OK [13:12:06]SAM_PROTO_GetShiftState done [13:12:06]FM_GetShiftState done [13:12:06]opened in 1729987372 [13:12:06]opened+sec_in_day 1730073772 [13:12:06]quantity*price = 50041 [13:12:06]sum+1 = 50042 [13:12: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 111 27.10.2024 13:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117411 ФПД: 151590212564237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131208&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117411&fm=151590212564237&tin=02508201610067®Number=0000000000091782&sum=50000 [13:12:08]StoreToDocumentArchive [13:12:08]shift 542 fd 117411 [13:12:08]save to /storage/0542/doc_00117411 [13:12:08]save last doc name /storage/0542/doc_00117411 to /storage/kkm_last_doc_name [13:12:08]save OK [13:12:08]Clear old archive folders... [13:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:08]tlvbuf is 0170EE60 [13:12:08]SAM_PROTO_ClearQueue [13:12:08]wFMCommunicate request_size=4 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 09 00 00 [13:12:08]Write to MH i2c: E2 08 00 A6 14 80 09 00 00 00 00 00 00 2C [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 A6 14 00 90 00 2E [13:12:08]RAPDU: 90 00 [13:12:08]wFMCommunicate OK [13:12:08]SAM_PROTO_ClearQueue done [13:12:08]KKMCreateOFDPacket [13:12:08]OFDProtocolAddRootSTLVToBuf [13:12:08]FM_MakeSignedData [13:12:08]FM_MakeSignedData [13:12:08]SAM_PROTO_SignData [13:12:08]wFMCommunicate request_size=4 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 0D 01 02 [13:12:08]Write to MH i2c: E2 08 00 A7 14 80 0D 01 02 00 00 00 00 34 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 A7 14 00 90 00 2F [13:12:08]RAPDU: 90 00 [13:12:08]wFMCommunicate OK [13:12:08]wFMCommunicate request_size=255 [13:12:08]MH_SAM_APDU [13:12: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 6F 00 00 00 F4 03 04 00 28 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A3 CA 01 00 35 04 06 00 89 [13:12:08]Write to MH i2c: E2 02 01 A8 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 6F 00 00 00 F4 03 04 00 28 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A3 CA 01 00 35 04 06 00 89 00 00 35 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 A8 14 00 90 00 30 [13:12:08]RAPDU: 90 00 [13:12:08]wFMCommunicate OK [13:12:08]wFMCommunicate request_size=10 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 0D 02 02 05 DE D8 C5 75 0D [13:12:08]Write to MH i2c: E2 0D 00 A9 14 80 0D 02 02 05 00 DE D8 C5 75 0D 00 00 3E [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 03 00 A9 14 00 90 00 31 [13:12:08]RAPDU: 90 00 [13:12:08]wFMCommunicate OK [13:12:08]wFMCommunicate request_size=4 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 0D 03 02 [13:12:08]Write to MH i2c: E2 08 00 AA 14 80 0D 03 02 00 00 00 00 39 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 0B 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 0B 00 AA 14 00 7A F3 CE 1A 76 65 98 96 90 00 98 [13:12:08]RAPDU: 7A F3 CE 1A 76 65 98 96 90 00 [13:12:08]wFMCommunicate OK [13:12:08]SAM_PROTO_SignData done [13:12:08]FM_MakeSignedData done [13:12:08]CreateOFDProtocolMessage [13:12:08]wFMCommunicate request_size=4 [13:12:08]MH_SAM_APDU [13:12:08]CAPDU: 80 11 00 00 [13:12:08]Write to MH i2c: E2 08 00 AB 14 80 11 00 00 00 00 00 00 39 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:08]Read from MH i2c: E2 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 17 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: E2 17 00 AB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 90 [13:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:12:08]wFMCommunicate OK [13:12:08]CreateOFDProtocolMessage done [13:12:08]OFDSenderStorePacket 117411 [13:12:08]StoreOFDPacket docnum=117411 [13:12:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 36 C1 07 01 E8 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 6F 00 00 00 F4 03 04 00 28 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A3 CA 01 00 35 04 06 00 89 DE D8 C5 75 0D 7A F3 CE 1A 76 65 98 96 [13:12:08]CheckFolder [13:12:08]dirname=/storage/ofd_packets [13:12:08]CheckFolder done [13:12:08]ProducePacketName [13:12:08]name=ofd_packets/00117411 [13:12:08]NVStorageSaveData ofd_packets/00117411 [13:12:08]File name is /storage/ofd_packets/00117411 [13:12:08]Write 301 bytes [13:12:08]NVStorageSaveData done [13:12:08]OFDSenderStorePacket done [13:12:08]KKMCreateOFDPacket done [13:12:08]NVStorageSaveData kkm_last_timestamp [13:12:08]File name is /storage/kkm_last_timestamp [13:12:08]Write 4 bytes [13:12:08]NVStorageSaveData done [13:12:08]ExternCall_PrintAddStr [13:12:08]wPrintStart [13:12:08]Write to MH i2c: 01 00 00 AC 14 C0 [13:12:08]Write i2c OK [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: 01 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: 01 07 00 [13:12:08]MH_I2C_Read... [13:12:08]Read from MH i2c: 01 07 00 AC 14 00 00 00 00 00 FF 0F D5 [13:12:08]RasterBufferAndPrint [13:12:08]line Счет N : (1)245187 [13:12:08]line ИНН: 02508201610067 [13:12:08]line Контрольно-Кассовый Чек [13:12:08]line ПРОДАЖА [13:12:08]line ТРК (МРК, ГНК) : 21 [13:12:08]line Товар: 2710124130 [13:12:08]line Аи-92-К-2 [13:12:08]line 7.480 * 66.90 [13:12:08]line = 500.41 [13:12:08]line НДС 12% НСП 1% [13:12:08]line > о реализуемом товаре [13:12:08]line ОКРУГЛЕНИЕ: -0.41 [13:12:08]line ИТОГО: 500.00 [13:12:08]line Внесено: 500.00 [13:12:08]line СДАЧА: 0.00 [13:12:08]line НСП 1% : 4.43 [13:12:08]line НДС 12% : 53.14 [13:12:08]line Наличными: 500.00 [13:12:08]line Безнал.: 0.00 [13:12:08]line Место: АЗС № 173 "Партнер Нефть" [13:12:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:12:08]line СНО: Общий режим [13:12:08]line Чек 111 27.10.2024 13:12 [13:12:08]line Смена: 542 ФФД: 1.0 [13:12:08]line ЗНМ: 0300000115 [13:12:08]line РНМ: 0000000000091782 [13:12:08]line Версия ККМ: 001 [13:12:08]line ФМ: 0000000000871767 [13:12:08]line ФД: 117411 [13:12:08]line ФПД: 151590212564237 [13:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131208&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117411&fm=151590212564237&tin=02508201610067®Number=0000000000091782&sum=50000 [13:12:08]written 0, free lines is 4095 [13:12:08]OFD Sender: Processing packet 117411 [packets to send 76, broken 75] [13:12:08]ProducePacketName [13:12:08]name=ofd_packets/00117411 [13:12:08]OFD Sender: To server: pG, [13:12:08]CommunicateWithHost lk.salyk.kg:30040 [13:12:08]ConnectInit lk.salyk.kg [13:12:09]Connected sock=10 [13:12: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 36 37 0F 01 00 00 36 C1 07 01 E8 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 6F 00 00 00 F4 03 04 00 28 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A3 CA 01 00 35 04 06 00 89 DE D8 C5 75 0D 7A F3 CE 1A 76 65 98 96 [13:12: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 36 37 4F 00 00 00 D6 47 47 00 4F 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A3 CA 01 00 F4 03 04 00 E5 E7 1D 67 B6 04 01 00 00 BD 34 54 FF EC 96 3C C2 [13:12:09]CommunicateWithHost err = 0 [13:12:09]CheckOFDResponse [13:12:09]1017 (14) - 77093643461234 [13:12:09]1041 (16) - 0000000000871767 [13:12:09]1040 (4) - 117411 [13:12:09]1012 (4) - 27.10.2024 07:12 [13:12:09]1206 (1) - 0 [13:12:09]OFD Sender: Remove packet 117411 [13:12:09]ProducePacketName [13:12:09]name=ofd_packets/00117411 [13:12:09]NVStorageDeleteData [13:12:09]Write to MH i2c: 01 00 00 D6 14 EA [13:12:09]Write i2c OK [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: 01 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: 01 07 00 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: 01 07 00 D6 14 00 00 00 00 00 AA 0C A7 [13:12:09]RasterBufferAndPrint [13:12:09]line [13:12:09]line [13:12:09]line [13:12:09]line [13:12:09]line [13:12:09]written 0, free lines is 3249 [13:12:09]MH_Cut [13:12:09]Write to MH i2c: D1 01 00 DD 14 01 C3 [13:12:09]Write i2c OK [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: D1 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: D1 01 00 [13:12:09]MH_I2C_Read... [13:12:09]Read from MH i2c: D1 01 00 DD 14 00 C2 [13:12:09]Write to MH i2c: 01 00 00 DE 14 F2 [13:12:09]Write i2c OK [13:12:09]MH_I2C_Read... [13:12:09]OFD Sender: No OFD packet to send [13:12:10]*** Cut start [13:12:10]*** Purtial cut [13:12:10]*** Stage 1: CUTSNS_PIN = 1 [13:12:10]Read from MH i2c: 01 [13:12:10]MH_I2C_Read... [13:12:10]*** Stop cut motor [13:12:10]*** Cut end [13:12:10]Read from MH i2c: 01 07 00 [13:12:10]MH_I2C_Read... [13:12:10]Read from MH i2c: 01 07 00 DE 14 00 00 00 00 00 FF 0F 07 [13:12:10]process_action close_receipt done [13:12:10]requested_data is exist [13:12:10]produce_requested_data [13:12:10]requested_item fm.sn is exist - process it [13:12:10]wFMCommunicate request_size=4 [13:12:10]MH_SAM_APDU [13:12:10]CAPDU: 80 11 00 00 [13:12:10]Write to MH i2c: E2 08 00 DF 14 80 11 00 00 00 00 00 00 6D [13:12:10]Write i2c OK [13:12:10]MH_I2C_Read... [13:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:10]Read from MH i2c: E2 [13:12:10]MH_I2C_Read... [13:12:10]Read from MH i2c: E2 17 00 [13:12:10]MH_I2C_Read... [13:12:10]Read from MH i2c: E2 17 00 DF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C4 [13:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:12:10]wFMCommunicate OK [13:12:10]requested_item fd.num is exist - process it [13:12:10]SAM_PROTO_GetFieldsCounters [13:12:10]wFMCommunicate request_size=4 [13:12:10]MH_SAM_APDU [13:12:10]CAPDU: 80 13 00 00 [13:12:10]Write to MH i2c: E2 08 00 E0 14 80 13 00 00 00 00 00 00 70 [13:12:10]Write i2c OK [13:12:10]MH_I2C_Read... [13:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:10]Read from MH i2c: E2 [13:12:10]MH_I2C_Read... [13:12:10]Read from MH i2c: E2 62 00 [13:12:10]MH_I2C_Read... [13:12:10]Read from MH i2c: E2 62 00 E0 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A3 CA 01 00 0E 04 04 00 1E 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 72 [13:12: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A3 CA 01 00 0E 04 04 00 1E 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 [13:12:10]wFMCommunicate OK [13:12:10]SAM_PROTO_GetFieldsCounters done [13:12:10]requested_item shift.num is exist - process it [13:12:10]requested_item shift.opened is exist - process it [13:12:10]req_shift_opened [13:12:10]FM_GetShiftState [13:12:10]SAM_PROTO_GetShiftState [13:12:10]wFMCommunicate request_size=4 [13:12:10]MH_SAM_APDU [13:12:10]CAPDU: 80 13 01 00 [13:12:10]Write to MH i2c: E2 08 00 E1 14 80 13 01 00 00 00 00 00 72 [13:12:10]Write i2c OK [13:12:10]MH_I2C_Read... [13:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:10]Read from MH i2c: E2 [13:12:10]MH_I2C_Read... [13:12:10]Read from MH i2c: E2 0E 00 [13:12:10]MH_I2C_Read... [13:12:10]Read from MH i2c: E2 0E 00 E1 14 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B1 [13:12:10]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:12:10]wFMCommunicate OK [13:12:10]SAM_PROTO_GetShiftState done [13:12:10]FM_GetShiftState done [13:12:10]req_shift_opened done [13:12:10]requested_item shift.open_date is exist - process it [13:12:10]req_shift_open_date [13:12:10]req_shift_open_date done [13:12:10]produce_requested_data done [13:12:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117411,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:12:10]process_action_free close_receipt [13:12:10]json_value_free [13:12:10]json_value_free done [13:12:10]process_json_proto returns [13:12:10]Send response to host [13:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117411,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:12:10]free response buf [13:12:10]execute_script done [13:12:10]execute_script returns [13:12:10]free content buf [13:12:10]Sock 7.Close socket [13:12:10]Sock 7.Thread stoped [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]accept exits with 9 [13:24:40]New connection [13:24:40]New thread 3067456868 created [13:24:40]Thread 3067600228 joined [13:24:40]Waiting for new connection... [13:24:40] Sock 9.Parse request [13:24:40]Sock 9.Check first char [13:24:40]Sock 9.First char is OK [13:24:40]request: POST /json_proto HTTP/1.0 [13:24:40]Method: POST [13:24:40]URL: /json_proto [13:24:40]Method is POST - this is cgi request [13:24:40]url: /json_proto [13:24:40]query_string will be loaded in cgi processing [13:24:40]execute_cgi json_proto POST (null) [13:24:40]execute_cgi path=json_proto method=POST [13:24:40]POST find Content-Length [13:24:40]Host: 172.17.96.67:8080 [13:24:40]Content-Length: 677 [13:24:40]Content-Type: application/json [13:24:40] [13:24:40]POST finish read [13:24:40]Found Content-Length = 677 [13:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:40]execute_script... [13:24: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)245188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:40]POST & json_proto [13:24:40]process_json_proto [13:24:40]json parsed OK: [13:24:40]protocol is kg_v1.0 [13:24:40]action value=close_receipt [13:24:40]process_action close_receipt [13:24:40]cmd_close_receipt [13:24:40]MH_GetDate [13:24:40]Write to MH i2c: F0 00 00 E2 14 E5 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: F0 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: F0 09 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: F0 09 00 E2 14 00 1A 3F 1E 67 2B 09 1E 67 85 [13:24:40]GetLastDocTimeStamp 1730034728 [13:24:40]current date 1730035482 [13:24:40]FM_GetShiftState [13:24:40]SAM_PROTO_GetShiftState [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 13 01 00 [13:24:40]Write to MH i2c: E2 08 00 E3 14 80 13 01 00 00 00 00 00 74 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0E 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0E 00 E3 14 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B3 [13:24:40]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_GetShiftState done [13:24:40]FM_GetShiftState done [13:24:40]opened in 1729987372 [13:24:40]opened+sec_in_day 1730073772 [13:24:40]quantity*price = 23013 [13:24:40]sum+1 = 23015 [13:24:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.44 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 112 27.10.2024 13:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117412 ФПД: 229761916449257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117412&fm=229761916449257&tin=02508201610067®Number=0000000000091782&sum=23000 [13:24:41]StoreToDocumentArchive [13:24:41]shift 542 fd 117412 [13:24:41]save to /storage/0542/doc_00117412 [13:24:41]save last doc name /storage/0542/doc_00117412 to /storage/kkm_last_doc_name [13:24:41]save OK [13:24:41]Clear old archive folders... [13:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:41]tlvbuf is 0170EED0 [13:24:41]SAM_PROTO_ClearQueue [13:24:41]wFMCommunicate request_size=4 [13:24:41]MH_SAM_APDU [13:24:41]CAPDU: 80 09 00 00 [13:24:41]Write to MH i2c: E2 08 00 F0 14 80 09 00 00 00 00 00 00 76 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 03 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 03 00 F0 14 00 90 00 78 [13:24:41]RAPDU: 90 00 [13:24:41]wFMCommunicate OK [13:24:41]SAM_PROTO_ClearQueue done [13:24:41]KKMCreateOFDPacket [13:24:41]OFDProtocolAddRootSTLVToBuf [13:24:41]FM_MakeSignedData [13:24:41]FM_MakeSignedData [13:24:41]SAM_PROTO_SignData [13:24:41]wFMCommunicate request_size=4 [13:24:41]MH_SAM_APDU [13:24:41]CAPDU: 80 0D 01 02 [13:24:41]Write to MH i2c: E2 08 00 F1 14 80 0D 01 02 00 00 00 00 7E [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 03 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 03 00 F1 14 00 90 00 79 [13:24:41]RAPDU: 90 00 [13:24:41]wFMCommunicate OK [13:24:41]wFMCommunicate request_size=255 [13:24:41]MH_SAM_APDU [13:24: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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1A 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A4 CA 01 00 35 04 06 00 D0 [13:24:41]Write to MH i2c: E2 02 01 F2 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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1A 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A4 CA 01 00 35 04 06 00 D0 00 00 F3 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:42]Read from MH i2c: E2 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 03 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 03 00 F2 14 00 90 00 7A [13:24:42]RAPDU: 90 00 [13:24:42]wFMCommunicate OK [13:24:42]wFMCommunicate request_size=10 [13:24:42]MH_SAM_APDU [13:24:42]CAPDU: 80 0D 02 02 05 F7 9D 69 B1 E9 [13:24:42]Write to MH i2c: E2 0D 00 F3 14 80 0D 02 02 05 00 F7 9D 69 B1 E9 00 00 22 [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:42]Read from MH i2c: E2 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 03 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 03 00 F3 14 00 90 00 7B [13:24:42]RAPDU: 90 00 [13:24:42]wFMCommunicate OK [13:24:42]wFMCommunicate request_size=4 [13:24:42]MH_SAM_APDU [13:24:42]CAPDU: 80 0D 03 02 [13:24:42]Write to MH i2c: E2 08 00 F4 14 80 0D 03 02 00 00 00 00 83 [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:42]Read from MH i2c: E2 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 0B 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 0B 00 F4 14 00 EC B4 4D 8F 9E 9F 4D 59 90 00 E3 [13:24:42]RAPDU: EC B4 4D 8F 9E 9F 4D 59 90 00 [13:24:42]wFMCommunicate OK [13:24:42]SAM_PROTO_SignData done [13:24:42]FM_MakeSignedData done [13:24:42]CreateOFDProtocolMessage [13:24:42]wFMCommunicate request_size=4 [13:24:42]MH_SAM_APDU [13:24:42]CAPDU: 80 11 00 00 [13:24:42]Write to MH i2c: E2 08 00 F5 14 80 11 00 00 00 00 00 00 83 [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:42]Read from MH i2c: E2 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 17 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 17 00 F5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DA [13:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:24:42]wFMCommunicate OK [13:24:42]CreateOFDProtocolMessage done [13:24:42]OFDSenderStorePacket 117412 [13:24:42]StoreOFDPacket docnum=117412 [13:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D4 75 07 01 89 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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1A 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A4 CA 01 00 35 04 06 00 D0 F7 9D 69 B1 E9 EC B4 4D 8F 9E 9F 4D 59 [13:24:42]CheckFolder [13:24:42]dirname=/storage/ofd_packets [13:24:42]CheckFolder done [13:24:42]ProducePacketName [13:24:42]name=ofd_packets/00117412 [13:24:42]NVStorageSaveData ofd_packets/00117412 [13:24:42]File name is /storage/ofd_packets/00117412 [13:24:42]Write 301 bytes [13:24:42]NVStorageSaveData done [13:24:42]OFDSenderStorePacket done [13:24:42]KKMCreateOFDPacket done [13:24:42]NVStorageSaveData kkm_last_timestamp [13:24:42]File name is /storage/kkm_last_timestamp [13:24:42]Write 4 bytes [13:24:42]NVStorageSaveData done [13:24:42]ExternCall_PrintAddStr [13:24:42]wPrintStart [13:24:42]Write to MH i2c: 01 00 00 F6 14 0A [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: 01 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: 01 07 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: 01 07 00 F6 14 00 00 00 00 00 FF 0F 1F [13:24:42]RasterBufferAndPrint [13:24:42]line Счет N : (1)245188 [13:24:42]line ИНН: 02508201610067 [13:24:42]line Контрольно-Кассовый Чек [13:24:42]line ПРОДАЖА [13:24:42]line ТРК (МРК, ГНК) : 11 [13:24:42]line Товар: 2710124130 [13:24:42]line Аи-92-К-2 [13:24:42]line 3.440 * 66.90 [13:24:42]line = 230.14 [13:24:42]line НДС 12% НСП 1% [13:24:42]line > о реализуемом товаре [13:24:42]line ОКРУГЛЕНИЕ: -0.14 [13:24:42]line ИТОГО: 230.00 [13:24:42]line Внесено: 230.00 [13:24:42]line СДАЧА: 0.00 [13:24:42]line НСП 1% : 2.04 [13:24:42]line НДС 12% : 24.44 [13:24:42]line Наличными: 230.00 [13:24:42]line Безнал.: 0.00 [13:24:42]line Место: АЗС № 173 "Партнер Нефть" [13:24:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:24:42]line СНО: Общий режим [13:24:42]line Чек 112 27.10.2024 13:24 [13:24:42]line Смена: 542 ФФД: 1.0 [13:24:42]line ЗНМ: 0300000115 [13:24:42]line РНМ: 0000000000091782 [13:24:42]line Версия ККМ: 001 [13:24:42]line ФМ: 0000000000871767 [13:24:42]line ФД: 117412 [13:24:42]line ФПД: 229761916449257 [13:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117412&fm=229761916449257&tin=02508201610067®Number=0000000000091782&sum=23000 [13:24:42]written 0, free lines is 4095 [13:24:42]OFD Sender: Processing packet 117412 [packets to send 76, broken 75] [13:24:42]ProducePacketName [13:24:42]name=ofd_packets/00117412 [13:24:42]OFD Sender: To server: pG, [13:24:42]CommunicateWithHost lk.salyk.kg:30040 [13:24:42]ConnectInit lk.salyk.kg [13:24:42]Connected sock=10 [13:24: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 36 37 0F 01 00 00 D4 75 07 01 89 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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1A 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A4 CA 01 00 35 04 06 00 D0 F7 9D 69 B1 E9 EC B4 4D 8F 9E 9F 4D 59 [13:24: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 36 37 4F 00 00 00 95 5D 47 00 4D 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 36 37 10 04 04 00 A4 CA 01 00 F4 03 04 00 D7 EA 1D 67 B6 04 01 00 00 F2 D7 10 29 0E 66 AF 5D [13:24:42]CommunicateWithHost err = 0 [13:24:42]CheckOFDResponse [13:24:42]1017 (14) - 77093643461234 [13:24:42]1041 (16) - 0000000000871767 [13:24:42]1040 (4) - 117412 [13:24:42]1012 (4) - 27.10.2024 07:25 [13:24:42]1206 (1) - 0 [13:24:42]OFD Sender: Remove packet 117412 [13:24:42]ProducePacketName [13:24:42]name=ofd_packets/00117412 [13:24:42]NVStorageDeleteData [13:24:42]Write to MH i2c: 01 00 00 20 15 35 [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: 01 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: 01 07 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: 01 07 00 20 15 00 00 00 00 00 AF 0C F7 [13:24:42]RasterBufferAndPrint [13:24:42]line [13:24:42]line [13:24:42]line [13:24:42]line [13:24:42]line [13:24:42]written 0, free lines is 3253 [13:24:42]MH_Cut [13:24:42]Write to MH i2c: D1 01 00 27 15 01 0E [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: D1 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: D1 01 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: D1 01 00 27 15 00 0D [13:24:42]Write to MH i2c: 01 00 00 28 15 3D [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:43]OFD Sender: No OFD packet to send [13:24:43]*** Cut start [13:24:43]*** Purtial cut [13:24:43]*** Stage 1: CUTSNS_PIN = 1 [13:24:44]Read from MH i2c: 01 [13:24:44]MH_I2C_Read... [13:24:44]*** Stop cut motor [13:24:44]*** Cut end [13:24:44]Read from MH i2c: 01 07 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: 01 07 00 28 15 00 00 00 00 00 FF 0F 52 [13:24:44]process_action close_receipt done [13:24:44]requested_data is exist [13:24:44]produce_requested_data [13:24:44]requested_item fm.sn is exist - process it [13:24:44]wFMCommunicate request_size=4 [13:24:44]MH_SAM_APDU [13:24:44]CAPDU: 80 11 00 00 [13:24:44]Write to MH i2c: E2 08 00 29 15 80 11 00 00 00 00 00 00 B8 [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:44]Read from MH i2c: E2 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 17 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 17 00 29 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0F [13:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:24:44]wFMCommunicate OK [13:24:44]requested_item fd.num is exist - process it [13:24:44]SAM_PROTO_GetFieldsCounters [13:24:44]wFMCommunicate request_size=4 [13:24:44]MH_SAM_APDU [13:24:44]CAPDU: 80 13 00 00 [13:24:44]Write to MH i2c: E2 08 00 2A 15 80 13 00 00 00 00 00 00 BB [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:44]Read from MH i2c: E2 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 62 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 62 00 2A 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A4 CA 01 00 0E 04 04 00 1E 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 C1 [13:24:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A4 CA 01 00 0E 04 04 00 1E 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 [13:24:44]wFMCommunicate OK [13:24:44]SAM_PROTO_GetFieldsCounters done [13:24:44]requested_item shift.num is exist - process it [13:24:44]requested_item shift.opened is exist - process it [13:24:44]req_shift_opened [13:24:44]FM_GetShiftState [13:24:44]SAM_PROTO_GetShiftState [13:24:44]wFMCommunicate request_size=4 [13:24:44]MH_SAM_APDU [13:24:44]CAPDU: 80 13 01 00 [13:24:44]Write to MH i2c: E2 08 00 2B 15 80 13 01 00 00 00 00 00 BD [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:44]Read from MH i2c: E2 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 0E 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 0E 00 2B 15 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FC [13:24:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:24:44]wFMCommunicate OK [13:24:44]SAM_PROTO_GetShiftState done [13:24:44]FM_GetShiftState done [13:24:44]req_shift_opened done [13:24:44]requested_item shift.open_date is exist - process it [13:24:44]req_shift_open_date [13:24:44]req_shift_open_date done [13:24:44]produce_requested_data done [13:24:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117412,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:24:44]process_action_free close_receipt [13:24:44]json_value_free [13:24:44]json_value_free done [13:24:44]process_json_proto returns [13:24:44]Send response to host [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [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:12]ConnectInit Can't connect to host [13:27:13]OFD Sender: No OFD packet to send [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]accept exits with 7 [13:27:43]New connection [13:27:43]New thread 3067600228 created [13:27:43]Thread 3067456868 joined [13:27:43]Waiting for new connection... [13:27:43] Sock 7.Parse request [13:27:43]Sock 7.Check first char [13:27:43]Sock 7.First char is OK [13:27:43]request: POST /json_proto HTTP/1.0 [13:27:43]Method: POST [13:27:43]URL: /json_proto [13:27:43]Method is POST - this is cgi request [13:27:43]url: /json_proto [13:27:43]query_string will be loaded in cgi processing [13:27:43]execute_cgi json_proto POST (null) [13:27:43]execute_cgi path=json_proto method=POST [13:27:43]POST find Content-Length [13:27:43]Host: 172.17.96.67:8080 [13:27:43]Content-Length: 677 [13:27:43]Content-Type: application/json [13:27:43] [13:27:43]POST finish read [13:27:43]Found Content-Length = 677 [13:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:27:43]execute_script... [13:27: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)245189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:27:43]POST & json_proto [13:27:43]process_json_proto [13:27:43]json parsed OK: [13:27:43]protocol is kg_v1.0 [13:27:43]action value=close_receipt [13:27:43]process_action close_receipt [13:27:43]cmd_close_receipt [13:27:43]MH_GetDate [13:27:43]Write to MH i2c: F0 00 00 2C 15 30 [13:27:43]Write i2c OK [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: F0 [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: F0 09 00 [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: F0 09 00 2C 15 00 D0 3F 1E 67 2B 09 1E 67 86 [13:27:43]GetLastDocTimeStamp 1730035482 [13:27:43]current date 1730035664 [13:27:43]FM_GetShiftState [13:27:43]SAM_PROTO_GetShiftState [13:27:43]wFMCommunicate request_size=4 [13:27:43]MH_SAM_APDU [13:27:43]CAPDU: 80 13 01 00 [13:27:43]Write to MH i2c: E2 08 00 2D 15 80 13 01 00 00 00 00 00 BF [13:27:43]Write i2c OK [13:27:43]MH_I2C_Read... [13:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:43]Read from MH i2c: E2 [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: E2 0E 00 [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: E2 0E 00 2D 15 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FE [13:27:43]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:27:43]wFMCommunicate OK [13:27:43]SAM_PROTO_GetShiftState done [13:27:43]FM_GetShiftState done [13:27:43]opened in 1729987372 [13:27:43]opened+sec_in_day 1730073772 [13:27:43]quantity*price = 20003 [13:27:43]sum+1 = 20004 [13:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 113 27.10.2024 13:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117413 ФПД: 221329779023401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132744&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117413&fm=221329779023401&tin=02508201610067®Number=0000000000091782&sum=20000 [13:27:44]StoreToDocumentArchive [13:27:44]shift 542 fd 117413 [13:27:44]save to /storage/0542/doc_00117413 [13:27:44]save last doc name /storage/0542/doc_00117413 to /storage/kkm_last_doc_name [13:27:44]save OK [13:27:44]Clear old archive folders... [13:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:44]tlvbuf is 016F77C0 [13:27:44]SAM_PROTO_ClearQueue [13:27:44]wFMCommunicate request_size=4 [13:27:44]MH_SAM_APDU [13:27:44]CAPDU: 80 09 00 00 [13:27:44]Write to MH i2c: E2 08 00 3A 15 80 09 00 00 00 00 00 00 C1 [13:27:44]Write i2c OK [13:27:44]MH_I2C_Read... [13:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:44]Read from MH i2c: E2 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 03 00 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 03 00 3A 15 00 90 00 C3 [13:27:44]RAPDU: 90 00 [13:27:44]wFMCommunicate OK [13:27:44]SAM_PROTO_ClearQueue done [13:27:44]KKMCreateOFDPacket [13:27:44]OFDProtocolAddRootSTLVToBuf [13:27:44]FM_MakeSignedData [13:27:44]FM_MakeSignedData [13:27:44]SAM_PROTO_SignData [13:27:44]wFMCommunicate request_size=4 [13:27:44]MH_SAM_APDU [13:27:44]CAPDU: 80 0D 01 02 [13:27:44]Write to MH i2c: E2 08 00 3B 15 80 0D 01 02 00 00 00 00 C9 [13:27:44]Write i2c OK [13:27:44]MH_I2C_Read... [13:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:44]Read from MH i2c: E2 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 03 00 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 03 00 3B 15 00 90 00 C4 [13:27:44]RAPDU: 90 00 [13:27:44]wFMCommunicate OK [13:27:44]wFMCommunicate request_size=255 [13:27:44]MH_SAM_APDU [13:27: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 71 00 00 00 F4 03 04 00 D0 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A5 CA 01 00 35 04 06 00 C9 [13:27:44]Write to MH i2c: E2 02 01 3C 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 71 00 00 00 F4 03 04 00 D0 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A5 CA 01 00 35 04 06 00 C9 00 00 7B [13:27:44]Write i2c OK [13:27:44]MH_I2C_Read... [13:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:44]Read from MH i2c: E2 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 03 00 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 03 00 3C 15 00 90 00 C5 [13:27:44]RAPDU: 90 00 [13:27:44]wFMCommunicate OK [13:27:44]wFMCommunicate request_size=10 [13:27:44]MH_SAM_APDU [13:27:44]CAPDU: 80 0D 02 02 05 4C 5A DB 5E 29 [13:27:44]Write to MH i2c: E2 0D 00 3D 15 80 0D 02 02 05 00 4C 5A DB 5E 29 00 00 DE [13:27:44]Write i2c OK [13:27:44]MH_I2C_Read... [13:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:44]Read from MH i2c: E2 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 03 00 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 03 00 3D 15 00 90 00 C6 [13:27:44]RAPDU: 90 00 [13:27:44]wFMCommunicate OK [13:27:44]wFMCommunicate request_size=4 [13:27:44]MH_SAM_APDU [13:27:44]CAPDU: 80 0D 03 02 [13:27:44]Write to MH i2c: E2 08 00 3E 15 80 0D 03 02 00 00 00 00 CE [13:27:44]Write i2c OK [13:27:44]MH_I2C_Read... [13:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:44]Read from MH i2c: E2 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 0B 00 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 0B 00 3E 15 00 51 FC 45 F4 95 19 25 70 90 00 98 [13:27:44]RAPDU: 51 FC 45 F4 95 19 25 70 90 00 [13:27:44]wFMCommunicate OK [13:27:44]SAM_PROTO_SignData done [13:27:44]FM_MakeSignedData done [13:27:44]CreateOFDProtocolMessage [13:27:44]wFMCommunicate request_size=4 [13:27:44]MH_SAM_APDU [13:27:44]CAPDU: 80 11 00 00 [13:27:44]Write to MH i2c: E2 08 00 3F 15 80 11 00 00 00 00 00 00 CE [13:27:44]Write i2c OK [13:27:44]MH_I2C_Read... [13:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:44]Read from MH i2c: E2 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 17 00 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 17 00 3F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 25 [13:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:27:44]wFMCommunicate OK [13:27:44]CreateOFDProtocolMessage done [13:27:44]OFDSenderStorePacket 117413 [13:27:44]StoreOFDPacket docnum=117413 [13:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 65 8A 07 01 77 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 71 00 00 00 F4 03 04 00 D0 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A5 CA 01 00 35 04 06 00 C9 4C 5A DB 5E 29 51 FC 45 F4 95 19 25 70 [13:27:44]CheckFolder [13:27:44]dirname=/storage/ofd_packets [13:27:44]CheckFolder done [13:27:44]ProducePacketName [13:27:44]name=ofd_packets/00117413 [13:27:44]NVStorageSaveData ofd_packets/00117413 [13:27:44]File name is /storage/ofd_packets/00117413 [13:27:44]Write 301 bytes [13:27:44]NVStorageSaveData done [13:27:44]OFDSenderStorePacket done [13:27:44]KKMCreateOFDPacket done [13:27:44]NVStorageSaveData kkm_last_timestamp [13:27:44]File name is /storage/kkm_last_timestamp [13:27:44]Write 4 bytes [13:27:44]NVStorageSaveData done [13:27:44]ExternCall_PrintAddStr [13:27:44]wPrintStart [13:27:44]Write to MH i2c: 01 00 00 40 15 55 [13:27:44]Write i2c OK [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: 01 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: 01 07 00 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: 01 07 00 40 15 00 00 00 00 00 FF 0F 6A [13:27:44]RasterBufferAndPrint [13:27:44]line Счет N : (1)245189 [13:27:44]line ИНН: 02508201610067 [13:27:44]line Контрольно-Кассовый Чек [13:27:44]line ПРОДАЖА [13:27:44]line ТРК (МРК, ГНК) : 11 [13:27:44]line Товар: 2710124130 [13:27:44]line Аи-92-К-2 [13:27:44]line 2.990 * 66.90 [13:27:44]line = 200.03 [13:27:44]line НДС 12% НСП 1% [13:27:44]line > о реализуемом товаре [13:27:44]line ОКРУГЛЕНИЕ: -0.03 [13:27:44]line ИТОГО: 200.00 [13:27:44]line Внесено: 200.00 [13:27:44]line СДАЧА: 0.00 [13:27:44]line НСП 1% : 1.77 [13:27:44]line НДС 12% : 21.24 [13:27:44]line Наличными: 200.00 [13:27:44]line Безнал.: 0.00 [13:27:44]line Место: АЗС № 173 "Партнер Нефть" [13:27:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:27:44]line СНО: Общий режим [13:27:44]line Чек 113 27.10.2024 13:27 [13:27:44]line Смена: 542 ФФД: 1.0 [13:27:44]line ЗНМ: 0300000115 [13:27:44]line РНМ: 0000000000091782 [13:27:44]line Версия ККМ: 001 [13:27:44]line ФМ: 0000000000871767 [13:27:44]line ФД: 117413 [13:27:44]line ФПД: 221329779023401 [13:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132744&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117413&fm=221329779023401&tin=02508201610067®Number=0000000000091782&sum=20000 [13:27:45]OFD Sender: Processing packet 117413 [packets to send 76, broken 75] [13:27:45]ProducePacketName [13:27:45]name=ofd_packets/00117413 [13:27:45]OFD Sender: To server: pG, [13:27:45]CommunicateWithHost lk.salyk.kg:30040 [13:27:45]ConnectInit lk.salyk.kg [13:27:45]written 0, free lines is 4095 [13:27:45]Connected sock=11 [13:27: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 36 37 0F 01 00 00 65 8A 07 01 77 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 71 00 00 00 F4 03 04 00 D0 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A5 CA 01 00 35 04 06 00 C9 4C 5A DB 5E 29 51 FC 45 F4 95 19 25 70 [13:27: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 36 37 4F 00 00 00 C5 BC 47 00 26 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A5 CA 01 00 F4 03 04 00 8E EB 1D 67 B6 04 01 00 00 59 76 68 23 CC 64 3B 69 [13:27:45]CommunicateWithHost err = 0 [13:27:45]CheckOFDResponse [13:27:45]1017 (14) - 77093643461234 [13:27:45]1041 (16) - 0000000000871767 [13:27:45]1040 (4) - 117413 [13:27:45]1012 (4) - 27.10.2024 07:28 [13:27:45]1206 (1) - 0 [13:27:45]OFD Sender: Remove packet 117413 [13:27:45]ProducePacketName [13:27:45]name=ofd_packets/00117413 [13:27:45]NVStorageDeleteData [13:27:45]Write to MH i2c: 01 00 00 6A 15 7F [13:27:45]Write i2c OK [13:27:45]MH_I2C_Read... [13:27:45]Read from MH i2c: 01 [13:27:45]MH_I2C_Read... [13:27:45]Read from MH i2c: 01 07 00 [13:27:45]MH_I2C_Read... [13:27:45]Read from MH i2c: 01 07 00 6A 15 00 00 00 00 00 B3 0C 45 [13:27:45]RasterBufferAndPrint [13:27:45]line [13:27:45]line [13:27:45]line [13:27:45]line [13:27:45]line [13:27:45]written 0, free lines is 3255 [13:27:45]MH_Cut [13:27:45]Write to MH i2c: D1 01 00 71 15 01 58 [13:27:45]Write i2c OK [13:27:45]MH_I2C_Read... [13:27:45]Read from MH i2c: D1 [13:27:45]MH_I2C_Read... [13:27:45]Read from MH i2c: D1 01 00 [13:27:45]MH_I2C_Read... [13:27:45]Read from MH i2c: D1 01 00 71 15 00 57 [13:27:45]Write to MH i2c: 01 00 00 72 15 87 [13:27:45]Write i2c OK [13:27:45]MH_I2C_Read... [13:27:45]OFD Sender: No OFD packet to send [13:27:46]*** Cut start [13:27:46]*** Purtial cut [13:27:46]*** Stage 1: CUTSNS_PIN = 1 [13:27:46]Read from MH i2c: 01 [13:27:46]MH_I2C_Read... [13:27:46]*** Stop cut motor [13:27:46]*** Cut end [13:27:46]Read from MH i2c: 01 07 00 [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: 01 07 00 72 15 00 00 00 00 00 FF 0F 9C [13:27:46]process_action close_receipt done [13:27:46]requested_data is exist [13:27:46]produce_requested_data [13:27:46]requested_item fm.sn is exist - process it [13:27:46]wFMCommunicate request_size=4 [13:27:46]MH_SAM_APDU [13:27:46]CAPDU: 80 11 00 00 [13:27:46]Write to MH i2c: E2 08 00 73 15 80 11 00 00 00 00 00 00 02 [13:27:46]Write i2c OK [13:27:46]MH_I2C_Read... [13:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:46]Read from MH i2c: E2 [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: E2 17 00 [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: E2 17 00 73 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 59 [13:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:27:46]wFMCommunicate OK [13:27:46]requested_item fd.num is exist - process it [13:27:46]SAM_PROTO_GetFieldsCounters [13:27:46]wFMCommunicate request_size=4 [13:27:46]MH_SAM_APDU [13:27:46]CAPDU: 80 13 00 00 [13:27:46]Write to MH i2c: E2 08 00 74 15 80 13 00 00 00 00 00 00 05 [13:27:46]Write i2c OK [13:27:46]MH_I2C_Read... [13:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:46]Read from MH i2c: E2 [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: E2 62 00 [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: E2 62 00 74 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A5 CA 01 00 0E 04 04 00 1E 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 0F [13:27: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A5 CA 01 00 0E 04 04 00 1E 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 [13:27:46]wFMCommunicate OK [13:27:46]SAM_PROTO_GetFieldsCounters done [13:27:46]requested_item shift.num is exist - process it [13:27:46]requested_item shift.opened is exist - process it [13:27:46]req_shift_opened [13:27:46]FM_GetShiftState [13:27:46]SAM_PROTO_GetShiftState [13:27:46]wFMCommunicate request_size=4 [13:27:46]MH_SAM_APDU [13:27:46]CAPDU: 80 13 01 00 [13:27:46]Write to MH i2c: E2 08 00 75 15 80 13 01 00 00 00 00 00 07 [13:27:46]Write i2c OK [13:27:46]MH_I2C_Read... [13:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:47]Read from MH i2c: E2 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 0E 00 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 0E 00 75 15 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 46 [13:27:47]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:27:47]wFMCommunicate OK [13:27:47]SAM_PROTO_GetShiftState done [13:27:47]FM_GetShiftState done [13:27:47]req_shift_opened done [13:27:47]requested_item shift.open_date is exist - process it [13:27:47]req_shift_open_date [13:27:47]req_shift_open_date done [13:27:47]produce_requested_data done [13:27:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117413,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:27:47]process_action_free close_receipt [13:27:47]json_value_free [13:27:47]json_value_free done [13:27:47]process_json_proto returns [13:27:47]Send response to host [13:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117413,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:27:47]free response buf [13:27:47]execute_script done [13:27:47]execute_script returns [13:27:47]free content buf [13:27:47]Sock 7.Close socket [13:27:47]Sock 7.Thread stoped [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [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:18]accept exits with 9 [13:29:18]New connection [13:29:18]New thread 3067456868 created [13:29:18]Thread 3067600228 joined [13:29:18]Waiting for new connection... [13:29:18] Sock 9.Parse request [13:29:18]Sock 9.Check first char [13:29:18]Sock 9.First char is OK [13:29:18]request: POST /json_proto HTTP/1.0 [13:29:18]Method: POST [13:29:18]URL: /json_proto [13:29:18]Method is POST - this is cgi request [13:29:18]url: /json_proto [13:29:18]query_string will be loaded in cgi processing [13:29:18]execute_cgi json_proto POST (null) [13:29:18]execute_cgi path=json_proto method=POST [13:29:18]POST find Content-Length [13:29:18]Host: 172.17.96.67:8080 [13:29:18]Content-Length: 677 [13:29:18]Content-Type: application/json [13:29:18] [13:29:18]POST finish read [13:29:18]Found Content-Length = 677 [13:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [13:29:18]execute_script... [13:29: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)245190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [13:29:18]POST & json_proto [13:29:18]process_json_proto [13:29:18]json parsed OK: [13:29:18]protocol is kg_v1.0 [13:29:18]action value=close_receipt [13:29:18]process_action close_receipt [13:29:18]cmd_close_receipt [13:29:18]MH_GetDate [13:29:18]Write to MH i2c: F0 00 00 76 15 7A [13:29:18]Write i2c OK [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: F0 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: F0 09 00 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: F0 09 00 76 15 00 30 40 1E 67 2B 09 1E 67 31 [13:29:18]GetLastDocTimeStamp 1730035664 [13:29:18]current date 1730035760 [13:29:18]FM_GetShiftState [13:29:18]SAM_PROTO_GetShiftState [13:29:18]wFMCommunicate request_size=4 [13:29:18]MH_SAM_APDU [13:29:18]CAPDU: 80 13 01 00 [13:29:18]Write to MH i2c: E2 08 00 77 15 80 13 01 00 00 00 00 00 09 [13:29:18]Write i2c OK [13:29:18]MH_I2C_Read... [13:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:18]Read from MH i2c: E2 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: E2 0E 00 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: E2 0E 00 77 15 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 48 [13:29:18]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:29:18]wFMCommunicate OK [13:29:18]SAM_PROTO_GetShiftState done [13:29:18]FM_GetShiftState done [13:29:18]opened in 1729987372 [13:29:18]opened+sec_in_day 1730073772 [13:29:18]quantity*price = 10035 [13:29:18]sum+1 = 10036 [13:29: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 114 27.10.2024 13:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117414 ФПД: 85222823541778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132920&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117414&fm=85222823541778&tin=02508201610067®Number=0000000000091782&sum=10000 [13:29:19]StoreToDocumentArchive [13:29:19]shift 542 fd 117414 [13:29:19]save to /storage/0542/doc_00117414 [13:29:19]save last doc name /storage/0542/doc_00117414 to /storage/kkm_last_doc_name [13:29:19]save OK [13:29:19]Clear old archive folders... [13:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:19]tlvbuf is 016E6620 [13:29:19]SAM_PROTO_ClearQueue [13:29:19]wFMCommunicate request_size=4 [13:29:19]MH_SAM_APDU [13:29:19]CAPDU: 80 09 00 00 [13:29:19]Write to MH i2c: E2 08 00 84 15 80 09 00 00 00 00 00 00 0B [13:29:19]Write i2c OK [13:29:19]MH_I2C_Read... [13:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:19]Read from MH i2c: E2 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 03 00 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 03 00 84 15 00 90 00 0D [13:29:19]RAPDU: 90 00 [13:29:19]wFMCommunicate OK [13:29:19]SAM_PROTO_ClearQueue done [13:29:19]KKMCreateOFDPacket [13:29:19]OFDProtocolAddRootSTLVToBuf [13:29:19]FM_MakeSignedData [13:29:19]FM_MakeSignedData [13:29:19]SAM_PROTO_SignData [13:29:19]wFMCommunicate request_size=4 [13:29:19]MH_SAM_APDU [13:29:19]CAPDU: 80 0D 01 02 [13:29:19]Write to MH i2c: E2 08 00 85 15 80 0D 01 02 00 00 00 00 13 [13:29:19]Write i2c OK [13:29:19]MH_I2C_Read... [13:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:19]Read from MH i2c: E2 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 03 00 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 03 00 85 15 00 90 00 0E [13:29:19]RAPDU: 90 00 [13:29:19]wFMCommunicate OK [13:29:19]wFMCommunicate request_size=255 [13:29:19]MH_SAM_APDU [13:29: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 72 00 00 00 F4 03 04 00 30 40 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A6 CA 01 00 35 04 06 00 4D [13:29:19]Write to MH i2c: E2 02 01 86 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 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 72 00 00 00 F4 03 04 00 30 40 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A6 CA 01 00 35 04 06 00 4D 00 00 D1 [13:29:19]Write i2c OK [13:29:19]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 86 15 00 90 00 0F [13:29:20]RAPDU: 90 00 [13:29:20]wFMCommunicate OK [13:29:20]wFMCommunicate request_size=10 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 0D 02 02 05 82 7C 1F BC 12 [13:29:20]Write to MH i2c: E2 0D 00 87 15 80 0D 02 02 05 00 82 7C 1F BC 12 00 00 0B [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 87 15 00 90 00 10 [13:29:20]RAPDU: 90 00 [13:29:20]wFMCommunicate OK [13:29:20]wFMCommunicate request_size=4 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 0D 03 02 [13:29:20]Write to MH i2c: E2 08 00 88 15 80 0D 03 02 00 00 00 00 18 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 0B 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 0B 00 88 15 00 FE EF 14 3A 48 64 54 DA 90 00 2E [13:29:20]RAPDU: FE EF 14 3A 48 64 54 DA 90 00 [13:29:20]wFMCommunicate OK [13:29:20]SAM_PROTO_SignData done [13:29:20]FM_MakeSignedData done [13:29:20]CreateOFDProtocolMessage [13:29:20]wFMCommunicate request_size=4 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 11 00 00 [13:29:20]Write to MH i2c: E2 08 00 89 15 80 11 00 00 00 00 00 00 18 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 17 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 17 00 89 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6F [13:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:29:20]wFMCommunicate OK [13:29:20]CreateOFDProtocolMessage done [13:29:20]OFDSenderStorePacket 117414 [13:29:20]StoreOFDPacket docnum=117414 [13:29:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8E 68 07 01 EA 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 72 00 00 00 F4 03 04 00 30 40 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A6 CA 01 00 35 04 06 00 4D 82 7C 1F BC 12 FE EF 14 3A 48 64 54 DA [13:29:20]CheckFolder [13:29:20]dirname=/storage/ofd_packets [13:29:20]CheckFolder done [13:29:20]ProducePacketName [13:29:20]name=ofd_packets/00117414 [13:29:20]NVStorageSaveData ofd_packets/00117414 [13:29:20]File name is /storage/ofd_packets/00117414 [13:29:20]Write 301 bytes [13:29:20]NVStorageSaveData done [13:29:20]OFDSenderStorePacket done [13:29:20]KKMCreateOFDPacket done [13:29:20]NVStorageSaveData kkm_last_timestamp [13:29:20]File name is /storage/kkm_last_timestamp [13:29:20]Write 4 bytes [13:29:20]NVStorageSaveData done [13:29:20]ExternCall_PrintAddStr [13:29:20]wPrintStart [13:29:20]Write to MH i2c: 01 00 00 8A 15 9F [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: 01 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: 01 07 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: 01 07 00 8A 15 00 00 00 00 00 FF 0F B4 [13:29:20]RasterBufferAndPrint [13:29:20]line Счет N : (1)245190 [13:29:20]line ИНН: 02508201610067 [13:29:20]line Контрольно-Кассовый Чек [13:29:20]line ПРОДАЖА [13:29:20]line ТРК (МРК, ГНК) : 21 [13:29:20]line Товар: 2710124130 [13:29:20]line Аи-92-К-2 [13:29:20]line 1.500 * 66.90 [13:29:20]line = 100.35 [13:29:20]line НДС 12% НСП 1% [13:29:20]line > о реализуемом товаре [13:29:20]line ОКРУГЛЕНИЕ: -0.35 [13:29:20]line ИТОГО: 100.00 [13:29:20]line Внесено: 100.00 [13:29:20]line СДАЧА: 0.00 [13:29:20]line НСП 1% : 0.89 [13:29:20]line НДС 12% : 10.66 [13:29:20]line Наличными: 100.00 [13:29:20]line Безнал.: 0.00 [13:29:20]line Место: АЗС № 173 "Партнер Нефть" [13:29:20]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:29:20]line СНО: Общий режим [13:29:20]line Чек 114 27.10.2024 13:29 [13:29:20]line Смена: 542 ФФД: 1.0 [13:29:20]line ЗНМ: 0300000115 [13:29:20]line РНМ: 0000000000091782 [13:29:20]line Версия ККМ: 001 [13:29:20]line ФМ: 0000000000871767 [13:29:20]line ФД: 117414 [13:29:20]line ФПД: 85222823541778 [13:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132920&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117414&fm=85222823541778&tin=02508201610067®Number=0000000000091782&sum=10000 [13:29:20]written 0, free lines is 4095 [13:29:20]OFD Sender: Processing packet 117414 [packets to send 76, broken 75] [13:29:20]ProducePacketName [13:29:20]name=ofd_packets/00117414 [13:29:20]OFD Sender: To server: pG, [13:29:20]CommunicateWithHost lk.salyk.kg:30040 [13:29:20]ConnectInit lk.salyk.kg [13:29:20]Connected sock=10 [13:29: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 36 37 0F 01 00 00 8E 68 07 01 EA 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 72 00 00 00 F4 03 04 00 30 40 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A6 CA 01 00 35 04 06 00 4D 82 7C 1F BC 12 FE EF 14 3A 48 64 54 DA [13:29: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 36 37 4F 00 00 00 EC D8 47 00 65 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 36 37 10 04 04 00 A6 CA 01 00 F4 03 04 00 ED EB 1D 67 B6 04 01 00 00 8D FF 20 A7 45 6E 78 19 [13:29:20]CommunicateWithHost err = 0 [13:29:20]CheckOFDResponse [13:29:20]1017 (14) - 77093643461234 [13:29:20]1041 (16) - 0000000000871767 [13:29:20]1040 (4) - 117414 [13:29:20]1012 (4) - 27.10.2024 07:29 [13:29:20]1206 (1) - 0 [13:29:20]OFD Sender: Remove packet 117414 [13:29:20]ProducePacketName [13:29:20]name=ofd_packets/00117414 [13:29:20]NVStorageDeleteData [13:29:20]Write to MH i2c: 01 00 00 B4 15 C9 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: 01 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: 01 07 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: 01 07 00 B4 15 00 00 00 00 00 B1 0C 8D [13:29:20]RasterBufferAndPrint [13:29:20]line [13:29:20]line [13:29:20]line [13:29:20]line [13:29:20]line [13:29:20]written 0, free lines is 3255 [13:29:20]MH_Cut [13:29:20]Write to MH i2c: D1 01 00 BB 15 01 A2 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: D1 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: D1 01 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: D1 01 00 BB 15 00 A1 [13:29:20]Write to MH i2c: 01 00 00 BC 15 D1 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:21]OFD Sender: No OFD packet to send [13:29:21]*** Cut start [13:29:21]*** Purtial cut [13:29:21]*** Stage 1: CUTSNS_PIN = 1 [13:29:22]Read from MH i2c: 01 [13:29:22]MH_I2C_Read... [13:29:22]*** Stop cut motor [13:29:22]*** Cut end [13:29:22]Read from MH i2c: 01 07 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: 01 07 00 BC 15 00 00 00 00 00 FF 0F E6 [13:29:22]process_action close_receipt done [13:29:22]requested_data is exist [13:29:22]produce_requested_data [13:29:22]requested_item fm.sn is exist - process it [13:29:22]wFMCommunicate request_size=4 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 11 00 00 [13:29:22]Write to MH i2c: E2 08 00 BD 15 80 11 00 00 00 00 00 00 4C [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:22]Read from MH i2c: E2 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 17 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 17 00 BD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A3 [13:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:29:22]wFMCommunicate OK [13:29:22]requested_item fd.num is exist - process it [13:29:22]SAM_PROTO_GetFieldsCounters [13:29:22]wFMCommunicate request_size=4 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 13 00 00 [13:29:22]Write to MH i2c: E2 08 00 BE 15 80 13 00 00 00 00 00 00 4F [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:22]Read from MH i2c: E2 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 62 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 62 00 BE 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A6 CA 01 00 0E 04 04 00 1E 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 5D [13:29: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A6 CA 01 00 0E 04 04 00 1E 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 [13:29:22]wFMCommunicate OK [13:29:22]SAM_PROTO_GetFieldsCounters done [13:29:22]requested_item shift.num is exist - process it [13:29:22]requested_item shift.opened is exist - process it [13:29:22]req_shift_opened [13:29:22]FM_GetShiftState [13:29:22]SAM_PROTO_GetShiftState [13:29:22]wFMCommunicate request_size=4 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 13 01 00 [13:29:22]Write to MH i2c: E2 08 00 BF 15 80 13 01 00 00 00 00 00 51 [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:22]Read from MH i2c: E2 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 0E 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 0E 00 BF 15 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 90 [13:29:22]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:29:22]wFMCommunicate OK [13:29:22]SAM_PROTO_GetShiftState done [13:29:22]FM_GetShiftState done [13:29:22]req_shift_opened done [13:29:22]requested_item shift.open_date is exist - process it [13:29:22]req_shift_open_date [13:29:22]req_shift_open_date done [13:29:22]produce_requested_data done [13:29:22]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117414,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:29:22]process_action_free close_receipt [13:29:22]json_value_free [13:29:22]json_value_free done [13:29:22]process_json_proto returns [13:29:22]Send response to host [13:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117414,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:29:22]free response buf [13:29:22]execute_script done [13:29:22]execute_script returns [13:29:22]free content buf [13:29:22]Sock 9.Close socket [13:29:22]Sock 9.Thread stoped [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:09]accept exits with 7 [13:35:09]New connection [13:35:09]New thread 3067600228 created [13:35:09]Thread 3067456868 joined [13:35:09]Waiting for new connection... [13:35:09] Sock 7.Parse request [13:35:09]Sock 7.Check first char [13:35:09]Sock 7.First char is OK [13:35:09]request: POST /json_proto HTTP/1.0 [13:35:09]Method: POST [13:35:09]URL: /json_proto [13:35:09]Method is POST - this is cgi request [13:35:09]url: /json_proto [13:35:09]query_string will be loaded in cgi processing [13:35:09]execute_cgi json_proto POST (null) [13:35:09]execute_cgi path=json_proto method=POST [13:35:09]POST find Content-Length [13:35:09]Host: 172.17.96.67:8080 [13:35:09]Content-Length: 679 [13:35:09]Content-Type: application/json [13:35:09] [13:35:09]POST finish read [13:35:09]Found Content-Length = 679 [13:35:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [13:35:09]execute_script... [13:35: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)245191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [13:35:09]POST & json_proto [13:35:09]process_json_proto [13:35:09]json parsed OK: [13:35:09]protocol is kg_v1.0 [13:35:09]action value=close_receipt [13:35:09]process_action close_receipt [13:35:09]cmd_close_receipt [13:35:09]MH_GetDate [13:35:09]Write to MH i2c: F0 00 00 C0 15 C4 [13:35:09]Write i2c OK [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: F0 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: F0 09 00 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: F0 09 00 C0 15 00 8E 41 1E 67 2B 09 1E 67 DA [13:35:09]GetLastDocTimeStamp 1730035760 [13:35:09]current date 1730036110 [13:35:09]FM_GetShiftState [13:35:09]SAM_PROTO_GetShiftState [13:35:09]wFMCommunicate request_size=4 [13:35:09]MH_SAM_APDU [13:35:09]CAPDU: 80 13 01 00 [13:35:09]Write to MH i2c: E2 08 00 C1 15 80 13 01 00 00 00 00 00 53 [13:35:09]Write i2c OK [13:35:09]MH_I2C_Read... [13:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:09]Read from MH i2c: E2 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 0E 00 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 0E 00 C1 15 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 92 [13:35:09]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:35:09]wFMCommunicate OK [13:35:09]SAM_PROTO_GetShiftState done [13:35:09]FM_GetShiftState done [13:35:09]opened in 1729987372 [13:35:09]opened+sec_in_day 1730073772 [13:35:09]quantity*price = 200025 [13:35:09]sum+1 = 200026 [13:35: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 115 27.10.2024 13:35 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117415 ФПД: 203106780982133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133510&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117415&fm=203106780982133&tin=02508201610067®Number=0000000000091782&sum=200000 [13:35:10]StoreToDocumentArchive [13:35:10]shift 542 fd 117415 [13:35:10]save to /storage/0542/doc_00117415 [13:35:10]save last doc name /storage/0542/doc_00117415 to /storage/kkm_last_doc_name [13:35:10]save OK [13:35:10]Clear old archive folders... [13:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:35:10]tlvbuf is 01704760 [13:35:10]SAM_PROTO_ClearQueue [13:35:10]wFMCommunicate request_size=4 [13:35:10]MH_SAM_APDU [13:35:10]CAPDU: 80 09 00 00 [13:35:10]Write to MH i2c: E2 08 00 CE 15 80 09 00 00 00 00 00 00 55 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [13:35:10]RAPDU: 90 00 [13:35:10]wFMCommunicate OK [13:35:10]SAM_PROTO_ClearQueue done [13:35:10]KKMCreateOFDPacket [13:35:10]OFDProtocolAddRootSTLVToBuf [13:35:10]FM_MakeSignedData [13:35:10]FM_MakeSignedData [13:35:10]SAM_PROTO_SignData [13:35:10]wFMCommunicate request_size=4 [13:35:10]MH_SAM_APDU [13:35:10]CAPDU: 80 0D 01 02 [13:35:10]Write to MH i2c: E2 08 00 CF 15 80 0D 01 02 00 00 00 00 5D [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 CF 15 00 90 00 58 [13:35:10]RAPDU: 90 00 [13:35:10]wFMCommunicate OK [13:35:10]wFMCommunicate request_size=255 [13:35:10]MH_SAM_APDU [13:35: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 73 00 00 00 F4 03 04 00 8E 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A7 CA 01 00 35 04 06 00 B8 B9 7B 88 [13:35:10]Write to MH i2c: E2 02 01 D0 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 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 73 00 00 00 F4 03 04 00 8E 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A7 CA 01 00 35 04 06 00 B8 B9 7B 88 00 00 A0 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 D0 15 00 90 00 59 [13:35:10]RAPDU: 90 00 [13:35:10]wFMCommunicate OK [13:35:10]wFMCommunicate request_size=7 [13:35:10]MH_SAM_APDU [13:35:10]CAPDU: 80 0D 02 02 02 2B 75 [13:35:10]Write to MH i2c: E2 0A 00 D1 15 80 0D 02 02 02 00 2B 75 00 00 04 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 D1 15 00 90 00 5A [13:35:10]RAPDU: 90 00 [13:35:10]wFMCommunicate OK [13:35:10]wFMCommunicate request_size=4 [13:35:10]MH_SAM_APDU [13:35:10]CAPDU: 80 0D 03 02 [13:35:10]Write to MH i2c: E2 08 00 D2 15 80 0D 03 02 00 00 00 00 62 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 0B 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 0B 00 D2 15 00 A3 07 CE 4A C6 46 68 67 90 00 00 [13:35:10]RAPDU: A3 07 CE 4A C6 46 68 67 90 00 [13:35:10]wFMCommunicate OK [13:35:10]SAM_PROTO_SignData done [13:35:10]FM_MakeSignedData done [13:35:10]CreateOFDProtocolMessage [13:35:10]wFMCommunicate request_size=4 [13:35:10]MH_SAM_APDU [13:35:10]CAPDU: 80 11 00 00 [13:35:10]Write to MH i2c: E2 08 00 D3 15 80 11 00 00 00 00 00 00 62 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 17 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 17 00 D3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B9 [13:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:35:10]wFMCommunicate OK [13:35:10]CreateOFDProtocolMessage done [13:35:10]OFDSenderStorePacket 117415 [13:35:10]StoreOFDPacket docnum=117415 [13:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 E1 E6 04 01 3D E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 73 00 00 00 F4 03 04 00 8E 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A7 CA 01 00 35 04 06 00 B8 B9 7B 88 2B 75 A3 07 CE 4A C6 46 68 67 [13:35:10]CheckFolder [13:35:10]dirname=/storage/ofd_packets [13:35:10]CheckFolder done [13:35:10]ProducePacketName [13:35:10]name=ofd_packets/00117415 [13:35:10]NVStorageSaveData ofd_packets/00117415 [13:35:10]File name is /storage/ofd_packets/00117415 [13:35:10]Write 298 bytes [13:35:10]NVStorageSaveData done [13:35:10]OFDSenderStorePacket done [13:35:10]KKMCreateOFDPacket done [13:35:10]NVStorageSaveData kkm_last_timestamp [13:35:10]File name is /storage/kkm_last_timestamp [13:35:10]Write 4 bytes [13:35:10]NVStorageSaveData done [13:35:10]ExternCall_PrintAddStr [13:35:10]wPrintStart [13:35:10]Write to MH i2c: 01 00 00 D4 15 E9 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: 01 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: 01 07 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: 01 07 00 D4 15 00 00 00 00 00 FF 0F FE [13:35:10]RasterBufferAndPrint [13:35:10]line Счет N : (1)245191 [13:35:10]line ИНН: 02508201610067 [13:35:10]line Контрольно-Кассовый Чек [13:35:10]line ПРОДАЖА [13:35:10]line ТРК (МРК, ГНК) : 13 [13:35:10]line Товар: 2710194210 [13:35:10]line ДТ-К-2 [13:35:10]line 26.250 * 76.20 [13:35:10]line = 2000.25 [13:35:10]line НДС 12% НСП 1% [13:35:10]line > о реализуемом товаре [13:35:10]line ОКРУГЛЕНИЕ: -0.25 [13:35:10]line ИТОГО: 2000.00 [13:35:10]line Внесено: 2000.00 [13:35:10]line СДАЧА: 0.00 [13:35:10]line НСП 1% : 17.70 [13:35:10]line НДС 12% : 212.42 [13:35:10]line Наличными: 2000.00 [13:35:10]line Безнал.: 0.00 [13:35:10]line Место: АЗС № 173 "Партнер Нефть" [13:35:10]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:35:10]line СНО: Общий режим [13:35:10]line Чек 115 27.10.2024 13:35 [13:35:10]line Смена: 542 ФФД: 1.0 [13:35:10]line ЗНМ: 0300000115 [13:35:10]line РНМ: 0000000000091782 [13:35:10]line Версия ККМ: 001 [13:35:10]line ФМ: 0000000000871767 [13:35:10]line ФД: 117415 [13:35:10]line ФПД: 203106780982133 [13:35:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133510&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117415&fm=203106780982133&tin=02508201610067®Number=0000000000091782&sum=200000 [13:35:11]OFD Sender: Processing packet 117415 [packets to send 76, broken 75] [13:35:11]ProducePacketName [13:35:11]name=ofd_packets/00117415 [13:35:11]OFD Sender: To server: pG, [13:35:11]CommunicateWithHost lk.salyk.kg:30040 [13:35:11]ConnectInit lk.salyk.kg [13:35:11]written 0, free lines is 4095 [13:35:11]Connected sock=10 [13:35: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 36 37 0C 01 00 00 E1 E6 04 01 3D E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 73 00 00 00 F4 03 04 00 8E 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A7 CA 01 00 35 04 06 00 B8 B9 7B 88 2B 75 A3 07 CE 4A C6 46 68 67 [13:35: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 36 37 4F 00 00 00 1D EF 47 00 F4 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 36 37 10 04 04 00 A7 CA 01 00 F4 03 04 00 4C ED 1D 67 B6 04 01 00 00 AD 8A 89 35 12 11 82 E8 [13:35:11]CommunicateWithHost err = 0 [13:35:11]CheckOFDResponse [13:35:11]1017 (14) - 77093643461234 [13:35:11]1041 (16) - 0000000000871767 [13:35:11]1040 (4) - 117415 [13:35:11]1012 (4) - 27.10.2024 07:35 [13:35:11]1206 (1) - 0 [13:35:11]OFD Sender: Remove packet 117415 [13:35:11]ProducePacketName [13:35:11]name=ofd_packets/00117415 [13:35:11]NVStorageDeleteData [13:35:11]Write to MH i2c: 01 00 00 FE 15 13 [13:35:11]Write i2c OK [13:35:11]MH_I2C_Read... [13:35:11]Read from MH i2c: 01 [13:35:11]MH_I2C_Read... [13:35:11]Read from MH i2c: 01 07 00 [13:35:11]MH_I2C_Read... [13:35:11]Read from MH i2c: 01 07 00 FE 15 00 00 00 00 00 B6 0C DC [13:35:11]RasterBufferAndPrint [13:35:11]line [13:35:11]line [13:35:11]line [13:35:11]line [13:35:11]line [13:35:11]written 0, free lines is 3258 [13:35:11]MH_Cut [13:35:11]Write to MH i2c: D1 01 00 05 16 01 ED [13:35:11]Write i2c OK [13:35:11]MH_I2C_Read... [13:35:11]Read from MH i2c: D1 [13:35:11]MH_I2C_Read... [13:35:11]Read from MH i2c: D1 01 00 [13:35:11]MH_I2C_Read... [13:35:11]Read from MH i2c: D1 01 00 05 16 00 EC [13:35:11]Write to MH i2c: 01 00 00 06 16 1C [13:35:11]Write i2c OK [13:35:11]MH_I2C_Read... [13:35:11]OFD Sender: No OFD packet to send [13:35:12]*** Cut start [13:35:12]*** Purtial cut [13:35:12]*** Stage 1: CUTSNS_PIN = 1 [13:35:12]Read from MH i2c: 01 [13:35:12]MH_I2C_Read... [13:35:12]*** Stop cut motor [13:35:12]*** Cut end [13:35:12]Read from MH i2c: 01 07 00 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: 01 07 00 06 16 00 00 00 00 00 FF 0F 31 [13:35:12]process_action close_receipt done [13:35:12]requested_data is exist [13:35:12]produce_requested_data [13:35:12]requested_item fm.sn is exist - process it [13:35:12]wFMCommunicate request_size=4 [13:35:12]MH_SAM_APDU [13:35:12]CAPDU: 80 11 00 00 [13:35:12]Write to MH i2c: E2 08 00 07 16 80 11 00 00 00 00 00 00 97 [13:35:12]Write i2c OK [13:35:12]MH_I2C_Read... [13:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:12]Read from MH i2c: E2 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: E2 17 00 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: E2 17 00 07 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EE [13:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:35:12]wFMCommunicate OK [13:35:12]requested_item fd.num is exist - process it [13:35:12]SAM_PROTO_GetFieldsCounters [13:35:12]wFMCommunicate request_size=4 [13:35:12]MH_SAM_APDU [13:35:12]CAPDU: 80 13 00 00 [13:35:12]Write to MH i2c: E2 08 00 08 16 80 13 00 00 00 00 00 00 9A [13:35:12]Write i2c OK [13:35:12]MH_I2C_Read... [13:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:12]Read from MH i2c: E2 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: E2 62 00 [13:35:12]MH_I2C_Read... [13:35:13]Read from MH i2c: E2 62 00 08 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A7 CA 01 00 0E 04 04 00 1E 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 AC [13:35: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A7 CA 01 00 0E 04 04 00 1E 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 [13:35:13]wFMCommunicate OK [13:35:13]SAM_PROTO_GetFieldsCounters done [13:35:13]requested_item shift.num is exist - process it [13:35:13]requested_item shift.opened is exist - process it [13:35:13]req_shift_opened [13:35:13]FM_GetShiftState [13:35:13]SAM_PROTO_GetShiftState [13:35:13]wFMCommunicate request_size=4 [13:35:13]MH_SAM_APDU [13:35:13]CAPDU: 80 13 01 00 [13:35:13]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [13:35:13]Write i2c OK [13:35:13]MH_I2C_Read... [13:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:13]Read from MH i2c: E2 [13:35:13]MH_I2C_Read... [13:35:13]Read from MH i2c: E2 0E 00 [13:35:13]MH_I2C_Read... [13:35:13]Read from MH i2c: E2 0E 00 09 16 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 DB [13:35:13]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:35:13]wFMCommunicate OK [13:35:13]SAM_PROTO_GetShiftState done [13:35:13]FM_GetShiftState done [13:35:13]req_shift_opened done [13:35:13]requested_item shift.open_date is exist - process it [13:35:13]req_shift_open_date [13:35:13]req_shift_open_date done [13:35:13]produce_requested_data done [13:35:13]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117415,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:35:13]process_action_free close_receipt [13:35:13]json_value_free [13:35:13]json_value_free done [13:35:13]process_json_proto returns [13:35:13]Send response to host [13:35:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117415,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:35:13]free response buf [13:35:13]execute_script done [13:35:13]execute_script returns [13:35:13]free content buf [13:35:13]Sock 7.Close socket [13:35:13]Sock 7.Thread stoped [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:56]accept exits with 9 [13:35:56]New connection [13:35:56]New thread 3067456868 created [13:35:56]Thread 3067600228 joined [13:35:56]Waiting for new connection... [13:35:56] Sock 9.Parse request [13:35:56]Sock 9.Check first char [13:35:56]Sock 9.First char is OK [13:35:56]request: POST /json_proto HTTP/1.0 [13:35:56]Method: POST [13:35:56]URL: /json_proto [13:35:56]Method is POST - this is cgi request [13:35:56]url: /json_proto [13:35:56]query_string will be loaded in cgi processing [13:35:56]execute_cgi json_proto POST (null) [13:35:56]execute_cgi path=json_proto method=POST [13:35:56]POST find Content-Length [13:35:56]Host: 172.17.96.67:8080 [13:35:56]Content-Length: 677 [13:35:56]Content-Type: application/json [13:35:56] [13:35:56]POST finish read [13:35:56]Found Content-Length = 677 [13:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:56]execute_script... [13:35: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)245192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:56]POST & json_proto [13:35:56]process_json_proto [13:35:56]json parsed OK: [13:35:56]protocol is kg_v1.0 [13:35:56]action value=close_receipt [13:35:56]process_action close_receipt [13:35:56]cmd_close_receipt [13:35:56]MH_GetDate [13:35:56]Write to MH i2c: F0 00 00 0A 16 0F [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: F0 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: F0 09 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: F0 09 00 0A 16 00 BD 41 1E 67 2B 09 1E 67 54 [13:35:56]GetLastDocTimeStamp 1730036110 [13:35:56]current date 1730036157 [13:35:56]FM_GetShiftState [13:35:56]SAM_PROTO_GetShiftState [13:35:56]wFMCommunicate request_size=4 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 13 01 00 [13:35:56]Write to MH i2c: E2 08 00 0B 16 80 13 01 00 00 00 00 00 9E [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 0E 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 0E 00 0B 16 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 DD [13:35:56]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:35:56]wFMCommunicate OK [13:35:56]SAM_PROTO_GetShiftState done [13:35:56]FM_GetShiftState done [13:35:56]opened in 1729987372 [13:35:56]opened+sec_in_day 1730073772 [13:35:56]quantity*price = 60009 [13:35:56]sum+1 = 60010 [13:35:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 116 27.10.2024 13:35 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117416 ФПД: 198570487616472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133557&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117416&fm=198570487616472&tin=02508201610067®Number=0000000000091782&sum=60000 [13:35:57]StoreToDocumentArchive [13:35:57]shift 542 fd 117416 [13:35:57]save to /storage/0542/doc_00117416 [13:35:57]save last doc name /storage/0542/doc_00117416 to /storage/kkm_last_doc_name [13:35:57]save OK [13:35:57]Clear old archive folders... [13:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:57]tlvbuf is 01724C00 [13:35:57]SAM_PROTO_ClearQueue [13:35:57]wFMCommunicate request_size=4 [13:35:57]MH_SAM_APDU [13:35:57]CAPDU: 80 09 00 00 [13:35:57]Write to MH i2c: E2 08 00 18 16 80 09 00 00 00 00 00 00 A0 [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 03 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [13:35:57]RAPDU: 90 00 [13:35:57]wFMCommunicate OK [13:35:57]SAM_PROTO_ClearQueue done [13:35:57]KKMCreateOFDPacket [13:35:57]OFDProtocolAddRootSTLVToBuf [13:35:57]FM_MakeSignedData [13:35:57]FM_MakeSignedData [13:35:57]SAM_PROTO_SignData [13:35:57]wFMCommunicate request_size=4 [13:35:57]MH_SAM_APDU [13:35:57]CAPDU: 80 0D 01 02 [13:35:57]Write to MH i2c: E2 08 00 19 16 80 0D 01 02 00 00 00 00 A8 [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 03 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 03 00 19 16 00 90 00 A3 [13:35:57]RAPDU: 90 00 [13:35:57]wFMCommunicate OK [13:35:57]wFMCommunicate request_size=255 [13:35:57]MH_SAM_APDU [13:35: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 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 74 00 00 00 F4 03 04 00 BD 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A8 CA 01 00 35 04 06 00 B4 [13:35:57]Write to MH i2c: E2 02 01 1A 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 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 74 00 00 00 F4 03 04 00 BD 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A8 CA 01 00 35 04 06 00 B4 00 00 55 [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 03 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 03 00 1A 16 00 90 00 A4 [13:35:57]RAPDU: 90 00 [13:35:57]wFMCommunicate OK [13:35:57]wFMCommunicate request_size=10 [13:35:57]MH_SAM_APDU [13:35:57]CAPDU: 80 0D 02 02 05 99 4B 60 93 D8 [13:35:57]Write to MH i2c: E2 0D 00 1B 16 80 0D 02 02 05 00 99 4B 60 93 D8 00 00 64 [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 03 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 03 00 1B 16 00 90 00 A5 [13:35:57]RAPDU: 90 00 [13:35:57]wFMCommunicate OK [13:35:57]wFMCommunicate request_size=4 [13:35:57]MH_SAM_APDU [13:35:57]CAPDU: 80 0D 03 02 [13:35:57]Write to MH i2c: E2 08 00 1C 16 80 0D 03 02 00 00 00 00 AD [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 0B 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 0B 00 1C 16 00 71 CD C2 53 A3 45 B3 71 90 00 0D [13:35:57]RAPDU: 71 CD C2 53 A3 45 B3 71 90 00 [13:35:57]wFMCommunicate OK [13:35:57]SAM_PROTO_SignData done [13:35:57]FM_MakeSignedData done [13:35:57]CreateOFDProtocolMessage [13:35:57]wFMCommunicate request_size=4 [13:35:57]MH_SAM_APDU [13:35:57]CAPDU: 80 11 00 00 [13:35:57]Write to MH i2c: E2 08 00 1D 16 80 11 00 00 00 00 00 00 AD [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 17 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 17 00 1D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 04 [13:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:35:57]wFMCommunicate OK [13:35:57]CreateOFDProtocolMessage done [13:35:57]OFDSenderStorePacket 117416 [13:35:57]StoreOFDPacket docnum=117416 [13:35:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 31 F6 07 01 64 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 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 74 00 00 00 F4 03 04 00 BD 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A8 CA 01 00 35 04 06 00 B4 99 4B 60 93 D8 71 CD C2 53 A3 45 B3 71 [13:35:57]CheckFolder [13:35:57]dirname=/storage/ofd_packets [13:35:57]CheckFolder done [13:35:57]ProducePacketName [13:35:57]name=ofd_packets/00117416 [13:35:57]NVStorageSaveData ofd_packets/00117416 [13:35:57]File name is /storage/ofd_packets/00117416 [13:35:57]Write 301 bytes [13:35:57]NVStorageSaveData done [13:35:57]OFDSenderStorePacket done [13:35:57]KKMCreateOFDPacket done [13:35:57]NVStorageSaveData kkm_last_timestamp [13:35:57]File name is /storage/kkm_last_timestamp [13:35:57]Write 4 bytes [13:35:57]NVStorageSaveData done [13:35:57]ExternCall_PrintAddStr [13:35:57]wPrintStart [13:35:57]Write to MH i2c: 01 00 00 1E 16 34 [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: 01 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: 01 07 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: 01 07 00 1E 16 00 00 00 00 00 FF 0F 49 [13:35:57]RasterBufferAndPrint [13:35:57]line Счет N : (1)245192 [13:35:57]line ИНН: 02508201610067 [13:35:57]line Контрольно-Кассовый Чек [13:35:57]line ПРОДАЖА [13:35:57]line ТРК (МРК, ГНК) : 21 [13:35:57]line Товар: 2710124130 [13:35:57]line Аи-92-К-2 [13:35:57]line 8.970 * 66.90 [13:35:57]line = 600.09 [13:35:57]line НДС 12% НСП 1% [13:35:57]line > о реализуемом товаре [13:35:57]line ОКРУГЛЕНИЕ: -0.09 [13:35:57]line ИТОГО: 600.00 [13:35:57]line Внесено: 600.00 [13:35:57]line СДАЧА: 0.00 [13:35:57]line НСП 1% : 5.31 [13:35:57]line НДС 12% : 63.73 [13:35:57]line Наличными: 600.00 [13:35:57]line Безнал.: 0.00 [13:35:57]line Место: АЗС № 173 "Партнер Нефть" [13:35:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:35:57]line СНО: Общий режим [13:35:57]line Чек 116 27.10.2024 13:35 [13:35:57]line Смена: 542 ФФД: 1.0 [13:35:57]line ЗНМ: 0300000115 [13:35:57]line РНМ: 0000000000091782 [13:35:57]line Версия ККМ: 001 [13:35:57]line ФМ: 0000000000871767 [13:35:57]line ФД: 117416 [13:35:57]line ФПД: 198570487616472 [13:35:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133557&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117416&fm=198570487616472&tin=02508201610067®Number=0000000000091782&sum=60000 [13:35:58]OFD Sender: Processing packet 117416 [packets to send 76, broken 75] [13:35:58]ProducePacketName [13:35:58]name=ofd_packets/00117416 [13:35:58]OFD Sender: To server: pG, [13:35:58]CommunicateWithHost lk.salyk.kg:30040 [13:35:58]ConnectInit lk.salyk.kg [13:35:58]written 0, free lines is 4095 [13:35:58]Connected sock=10 [13:35: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 36 37 0F 01 00 00 31 F6 07 01 64 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 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 74 00 00 00 F4 03 04 00 BD 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A8 CA 01 00 35 04 06 00 B4 99 4B 60 93 D8 71 CD C2 53 A3 45 B3 71 [13:35: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 36 37 4F 00 00 00 96 9B 47 00 B1 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 36 37 10 04 04 00 A8 CA 01 00 F4 03 04 00 7B ED 1D 67 B6 04 01 00 00 A5 BE 15 81 BA FA B8 40 [13:35:58]CommunicateWithHost err = 0 [13:35:58]CheckOFDResponse [13:35:58]1017 (14) - 77093643461234 [13:35:58]1041 (16) - 0000000000871767 [13:35:58]1040 (4) - 117416 [13:35:58]1012 (4) - 27.10.2024 07:36 [13:35:58]1206 (1) - 0 [13:35:58]OFD Sender: Remove packet 117416 [13:35:58]ProducePacketName [13:35:58]name=ofd_packets/00117416 [13:35:58]NVStorageDeleteData [13:35:58]Write to MH i2c: 01 00 00 48 16 5E [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: 01 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: 01 07 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: 01 07 00 48 16 00 00 00 00 00 B3 0C 24 [13:35:58]RasterBufferAndPrint [13:35:58]line [13:35:58]line [13:35:58]line [13:35:58]line [13:35:58]line [13:35:58]written 0, free lines is 3257 [13:35:58]MH_Cut [13:35:58]Write to MH i2c: D1 01 00 4F 16 01 37 [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: D1 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: D1 01 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: D1 01 00 4F 16 00 36 [13:35:58]Write to MH i2c: 01 00 00 50 16 66 [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]*** Cut start [13:35:59]*** Purtial cut [13:35:59]*** Stage 1: CUTSNS_PIN = 1 [13:35:59]Read from MH i2c: 01 [13:35:59]MH_I2C_Read... [13:35:59]*** Stop cut motor [13:35:59]*** Cut end [13:35:59]Read from MH i2c: 01 07 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: 01 07 00 50 16 00 00 00 00 00 FF 0F 7B [13:35:59]process_action close_receipt done [13:35:59]requested_data is exist [13:35:59]produce_requested_data [13:35:59]requested_item fm.sn is exist - process it [13:35:59]wFMCommunicate request_size=4 [13:35:59]MH_SAM_APDU [13:35:59]CAPDU: 80 11 00 00 [13:35:59]Write to MH i2c: E2 08 00 51 16 80 11 00 00 00 00 00 00 E1 [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:59]Read from MH i2c: E2 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 17 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 17 00 51 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 38 [13:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:35:59]wFMCommunicate OK [13:35:59]requested_item fd.num is exist - process it [13:35:59]SAM_PROTO_GetFieldsCounters [13:35:59]wFMCommunicate request_size=4 [13:35:59]MH_SAM_APDU [13:35:59]CAPDU: 80 13 00 00 [13:35:59]Write to MH i2c: E2 08 00 52 16 80 13 00 00 00 00 00 00 E4 [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 62 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 62 00 52 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A8 CA 01 00 0E 04 04 00 1E 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 FA [13:36: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A8 CA 01 00 0E 04 04 00 1E 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 [13:36:00]wFMCommunicate OK [13:36:00]SAM_PROTO_GetFieldsCounters done [13:36:00]requested_item shift.num is exist - process it [13:36:00]requested_item shift.opened is exist - process it [13:36:00]req_shift_opened [13:36:00]FM_GetShiftState [13:36:00]SAM_PROTO_GetShiftState [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 13 01 00 [13:36:00]Write to MH i2c: E2 08 00 53 16 80 13 01 00 00 00 00 00 E6 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 0E 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 0E 00 53 16 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 25 [13:36:00]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:36:00]wFMCommunicate OK [13:36:00]SAM_PROTO_GetShiftState done [13:36:00]FM_GetShiftState done [13:36:00]req_shift_opened done [13:36:00]requested_item shift.open_date is exist - process it [13:36:00]req_shift_open_date [13:36:00]req_shift_open_date done [13:36:00]produce_requested_data done [13:36:00]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117416,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:36:00]process_action_free close_receipt [13:36:00]json_value_free [13:36:00]json_value_free done [13:36:00]process_json_proto returns [13:36:00]Send response to host [13:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117416,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:36:00]free response buf [13:36:00]execute_script done [13:36:00]execute_script returns [13:36:00]free content buf [13:36:00]Sock 9.Close socket [13:36:00]Sock 9.Thread stoped [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:18]accept exits with 7 [13:45:18]New connection [13:45:18]New thread 3067600228 created [13:45:18]Thread 3067456868 joined [13:45:18]Waiting for new connection... [13:45:18] Sock 7.Parse request [13:45:18]Sock 7.Check first char [13:45:18]Sock 7.First char is OK [13:45:18]request: POST /json_proto HTTP/1.0 [13:45:18]Method: POST [13:45:18]URL: /json_proto [13:45:18]Method is POST - this is cgi request [13:45:18]url: /json_proto [13:45:18]query_string will be loaded in cgi processing [13:45:18]execute_cgi json_proto POST (null) [13:45:18]execute_cgi path=json_proto method=POST [13:45:18]POST find Content-Length [13:45:18]Host: 172.17.96.67:8080 [13:45:18]Content-Length: 677 [13:45:18]Content-Type: application/json [13:45:18] [13:45:18]POST finish read [13:45:18]Found Content-Length = 677 [13:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:45:18]execute_script... [13:45: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)245193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:45:18]POST & json_proto [13:45:18]process_json_proto [13:45:18]json parsed OK: [13:45:18]protocol is kg_v1.0 [13:45:18]action value=close_receipt [13:45:18]process_action close_receipt [13:45:18]cmd_close_receipt [13:45:18]MH_GetDate [13:45:18]Write to MH i2c: F0 00 00 54 16 59 [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: F0 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: F0 09 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: F0 09 00 54 16 00 F0 43 1E 67 2B 09 1E 67 D3 [13:45:18]GetLastDocTimeStamp 1730036157 [13:45:18]current date 1730036720 [13:45:18]FM_GetShiftState [13:45:18]SAM_PROTO_GetShiftState [13:45:18]wFMCommunicate request_size=4 [13:45:18]MH_SAM_APDU [13:45:18]CAPDU: 80 13 01 00 [13:45:18]Write to MH i2c: E2 08 00 55 16 80 13 01 00 00 00 00 00 E8 [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:18]Read from MH i2c: E2 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 0E 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 0E 00 55 16 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 27 [13:45:18]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:45:18]wFMCommunicate OK [13:45:18]SAM_PROTO_GetShiftState done [13:45:18]FM_GetShiftState done [13:45:18]opened in 1729987372 [13:45:18]opened+sec_in_day 1730073772 [13:45:18]quantity*price = 40006 [13:45:18]sum+1 = 40007 [13:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 117 27.10.2024 13:45 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117417 ФПД: 159929489739361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134520&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117417&fm=159929489739361&tin=02508201610067®Number=0000000000091782&sum=40000 [13:45:19]StoreToDocumentArchive [13:45:19]shift 542 fd 117417 [13:45:19]save to /storage/0542/doc_00117417 [13:45:19]save last doc name /storage/0542/doc_00117417 to /storage/kkm_last_doc_name [13:45:19]save OK [13:45:19]Clear old archive folders... [13:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:19]tlvbuf is 0170F480 [13:45:19]SAM_PROTO_ClearQueue [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 09 00 00 [13:45:19]Write to MH i2c: E2 08 00 62 16 80 09 00 00 00 00 00 00 EA [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 62 16 00 90 00 EC [13:45:19]RAPDU: 90 00 [13:45:19]wFMCommunicate OK [13:45:19]SAM_PROTO_ClearQueue done [13:45:19]KKMCreateOFDPacket [13:45:19]OFDProtocolAddRootSTLVToBuf [13:45:19]FM_MakeSignedData [13:45:19]FM_MakeSignedData [13:45:19]SAM_PROTO_SignData [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 0D 01 02 [13:45:19]Write to MH i2c: E2 08 00 63 16 80 0D 01 02 00 00 00 00 F2 [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 63 16 00 90 00 ED [13:45:19]RAPDU: 90 00 [13:45:19]wFMCommunicate OK [13:45:19]wFMCommunicate request_size=255 [13:45:19]MH_SAM_APDU [13:45: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 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 75 00 00 00 F4 03 04 00 F0 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A9 CA 01 00 35 04 06 00 91 [13:45:19]Write to MH i2c: E2 02 01 64 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 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 75 00 00 00 F4 03 04 00 F0 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A9 CA 01 00 35 04 06 00 91 00 00 A5 [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 03 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 03 00 64 16 00 90 00 EE [13:45:20]RAPDU: 90 00 [13:45:20]wFMCommunicate OK [13:45:20]wFMCommunicate request_size=10 [13:45:20]MH_SAM_APDU [13:45:20]CAPDU: 80 0D 02 02 05 74 7C 6C CE 61 [13:45:20]Write to MH i2c: E2 0D 00 65 16 80 0D 02 02 05 00 74 7C 6C CE 61 00 00 8A [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 03 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [13:45:20]RAPDU: 90 00 [13:45:20]wFMCommunicate OK [13:45:20]wFMCommunicate request_size=4 [13:45:20]MH_SAM_APDU [13:45:20]CAPDU: 80 0D 03 02 [13:45:20]Write to MH i2c: E2 08 00 66 16 80 0D 03 02 00 00 00 00 F7 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 0B 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 0B 00 66 16 00 81 14 6C AA A9 92 5E 7F 90 00 BB [13:45:20]RAPDU: 81 14 6C AA A9 92 5E 7F 90 00 [13:45:20]wFMCommunicate OK [13:45:20]SAM_PROTO_SignData done [13:45:20]FM_MakeSignedData done [13:45:20]CreateOFDProtocolMessage [13:45:20]wFMCommunicate request_size=4 [13:45:20]MH_SAM_APDU [13:45:20]CAPDU: 80 11 00 00 [13:45:20]Write to MH i2c: E2 08 00 67 16 80 11 00 00 00 00 00 00 F7 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 17 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 17 00 67 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4E [13:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:45:20]wFMCommunicate OK [13:45:20]CreateOFDProtocolMessage done [13:45:20]OFDSenderStorePacket 117417 [13:45:20]StoreOFDPacket docnum=117417 [13:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A9 BA 07 01 2E 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 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 75 00 00 00 F4 03 04 00 F0 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A9 CA 01 00 35 04 06 00 91 74 7C 6C CE 61 81 14 6C AA A9 92 5E 7F [13:45:20]CheckFolder [13:45:20]dirname=/storage/ofd_packets [13:45:20]CheckFolder done [13:45:20]ProducePacketName [13:45:20]name=ofd_packets/00117417 [13:45:20]NVStorageSaveData ofd_packets/00117417 [13:45:20]File name is /storage/ofd_packets/00117417 [13:45:20]Write 301 bytes [13:45:20]NVStorageSaveData done [13:45:20]OFDSenderStorePacket done [13:45:20]KKMCreateOFDPacket done [13:45:20]NVStorageSaveData kkm_last_timestamp [13:45:20]File name is /storage/kkm_last_timestamp [13:45:20]Write 4 bytes [13:45:20]NVStorageSaveData done [13:45:20]ExternCall_PrintAddStr [13:45:20]wPrintStart [13:45:20]Write to MH i2c: 01 00 00 68 16 7E [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 68 16 00 00 00 00 00 FF 0F 93 [13:45:20]RasterBufferAndPrint [13:45:20]line Счет N : (1)245193 [13:45:20]line ИНН: 02508201610067 [13:45:20]line Контрольно-Кассовый Чек [13:45:20]line ПРОДАЖА [13:45:20]line ТРК (МРК, ГНК) : 21 [13:45:20]line Товар: 2710124130 [13:45:20]line Аи-92-К-2 [13:45:20]line 5.980 * 66.90 [13:45:20]line = 400.06 [13:45:20]line НДС 12% НСП 1% [13:45:20]line > о реализуемом товаре [13:45:20]line ОКРУГЛЕНИЕ: -0.06 [13:45:20]line ИТОГО: 400.00 [13:45:20]line Внесено: 400.00 [13:45:20]line СДАЧА: 0.00 [13:45:20]line НСП 1% : 3.54 [13:45:20]line НДС 12% : 42.48 [13:45:20]line Наличными: 400.00 [13:45:20]line Безнал.: 0.00 [13:45:20]line Место: АЗС № 173 "Партнер Нефть" [13:45:20]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:45:20]line СНО: Общий режим [13:45:20]line Чек 117 27.10.2024 13:45 [13:45:20]line Смена: 542 ФФД: 1.0 [13:45:20]line ЗНМ: 0300000115 [13:45:20]line РНМ: 0000000000091782 [13:45:20]line Версия ККМ: 001 [13:45:20]line ФМ: 0000000000871767 [13:45:20]line ФД: 117417 [13:45:20]line ФПД: 159929489739361 [13:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134520&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117417&fm=159929489739361&tin=02508201610067®Number=0000000000091782&sum=40000 [13:45:20]written 0, free lines is 4095 [13:45:20]OFD Sender: Processing packet 117417 [packets to send 76, broken 75] [13:45:20]ProducePacketName [13:45:20]name=ofd_packets/00117417 [13:45:20]OFD Sender: To server: pG, [13:45:20]CommunicateWithHost lk.salyk.kg:30040 [13:45:20]ConnectInit lk.salyk.kg [13:45:20]Connected sock=10 [13:45: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 36 37 0F 01 00 00 A9 BA 07 01 2E 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 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 75 00 00 00 F4 03 04 00 F0 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A9 CA 01 00 35 04 06 00 91 74 7C 6C CE 61 81 14 6C AA A9 92 5E 7F [13:45: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 36 37 4F 00 00 00 03 13 47 00 F7 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 36 37 10 04 04 00 A9 CA 01 00 F4 03 04 00 AD EF 1D 67 B6 04 01 00 00 AF 5E 97 F1 B1 C8 CE 02 [13:45:21]CommunicateWithHost err = 0 [13:45:21]CheckOFDResponse [13:45:21]1017 (14) - 77093643461234 [13:45:21]1041 (16) - 0000000000871767 [13:45:21]1040 (4) - 117417 [13:45:21]1012 (4) - 27.10.2024 07:45 [13:45:21]1206 (1) - 0 [13:45:21]OFD Sender: Remove packet 117417 [13:45:21]ProducePacketName [13:45:21]name=ofd_packets/00117417 [13:45:21]NVStorageDeleteData [13:45:21]Write to MH i2c: 01 00 00 92 16 A8 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: 01 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: 01 07 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: 01 07 00 92 16 00 00 00 00 00 AD 0C 68 [13:45:21]RasterBufferAndPrint [13:45:21]line [13:45:21]line [13:45:21]line [13:45:21]line [13:45:21]line [13:45:21]written 0, free lines is 3248 [13:45:21]MH_Cut [13:45:21]Write to MH i2c: D1 01 00 99 16 01 81 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: D1 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: D1 01 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: D1 01 00 99 16 00 80 [13:45:21]Write to MH i2c: 01 00 00 9A 16 B0 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]OFD Sender: No OFD packet to send [13:45:22]*** Cut start [13:45:22]*** Purtial cut [13:45:22]*** Stage 1: CUTSNS_PIN = 1 [13:45:22]Read from MH i2c: 01 [13:45:22]MH_I2C_Read... [13:45:22]*** Stop cut motor [13:45:22]*** Cut end [13:45:22]Read from MH i2c: 01 07 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 07 00 9A 16 00 00 00 00 00 FF 0F C5 [13:45:22]process_action close_receipt done [13:45:22]requested_data is exist [13:45:22]produce_requested_data [13:45:22]requested_item fm.sn is exist - process it [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 11 00 00 [13:45:22]Write to MH i2c: E2 08 00 9B 16 80 11 00 00 00 00 00 00 2B [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 9B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 82 [13:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:45:22]wFMCommunicate OK [13:45:22]requested_item fd.num is exist - process it [13:45:22]SAM_PROTO_GetFieldsCounters [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 13 00 00 [13:45:22]Write to MH i2c: E2 08 00 9C 16 80 13 00 00 00 00 00 00 2E [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 62 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 62 00 9C 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A9 CA 01 00 0E 04 04 00 1E 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 48 [13:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A9 CA 01 00 0E 04 04 00 1E 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 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_GetFieldsCounters done [13:45:22]requested_item shift.num is exist - process it [13:45:22]requested_item shift.opened is exist - process it [13:45:22]req_shift_opened [13:45:22]FM_GetShiftState [13:45:22]SAM_PROTO_GetShiftState [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 13 01 00 [13:45:22]Write to MH i2c: E2 08 00 9D 16 80 13 01 00 00 00 00 00 30 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0E 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0E 00 9D 16 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6F [13:45:22]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_GetShiftState done [13:45:22]FM_GetShiftState done [13:45:22]req_shift_opened done [13:45:22]requested_item shift.open_date is exist - process it [13:45:22]req_shift_open_date [13:45:22]req_shift_open_date done [13:45:22]produce_requested_data done [13:45:22]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117417,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:45:22]process_action_free close_receipt [13:45:22]json_value_free [13:45:22]json_value_free done [13:45:22]process_json_proto returns [13:45:22]Send response to host [13:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117417,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:45:22]free response buf [13:45:22]execute_script done [13:45:22]execute_script returns [13:45:22]free content buf [13:45:22]Sock 7.Close socket [13:45:22]Sock 7.Thread stoped [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:37]accept exits with 9 [13:46:37]New connection [13:46:37]New thread 3067456868 created [13:46:37]Thread 3067600228 joined [13:46:37]Waiting for new connection... [13:46:37] Sock 9.Parse request [13:46:37]Sock 9.Check first char [13:46:37]Sock 9.First char is OK [13:46:37]request: POST /json_proto HTTP/1.0 [13:46:37]Method: POST [13:46:37]URL: /json_proto [13:46:37]Method is POST - this is cgi request [13:46:37]url: /json_proto [13:46:37]query_string will be loaded in cgi processing [13:46:37]execute_cgi json_proto POST (null) [13:46:37]execute_cgi path=json_proto method=POST [13:46:37]POST find Content-Length [13:46:37]Host: 172.17.96.67:8080 [13:46:37]Content-Length: 677 [13:46:37]Content-Type: application/json [13:46:37] [13:46:37]POST finish read [13:46:37]Found Content-Length = 677 [13:46:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:37]execute_script... [13:46:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:37]POST & json_proto [13:46:37]process_json_proto [13:46:37]json parsed OK: [13:46:37]protocol is kg_v1.0 [13:46:37]action value=close_receipt [13:46:37]process_action close_receipt [13:46:37]cmd_close_receipt [13:46:37]MH_GetDate [13:46:37]Write to MH i2c: F0 00 00 9E 16 A3 [13:46:37]Write i2c OK [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: F0 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: F0 09 00 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: F0 09 00 9E 16 00 3E 44 1E 67 2B 09 1E 67 6C [13:46:37]GetLastDocTimeStamp 1730036720 [13:46:37]current date 1730036798 [13:46:37]FM_GetShiftState [13:46:37]SAM_PROTO_GetShiftState [13:46:37]wFMCommunicate request_size=4 [13:46:37]MH_SAM_APDU [13:46:37]CAPDU: 80 13 01 00 [13:46:37]Write to MH i2c: E2 08 00 9F 16 80 13 01 00 00 00 00 00 32 [13:46:37]Write i2c OK [13:46:37]MH_I2C_Read... [13:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:37]Read from MH i2c: E2 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: E2 0E 00 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: E2 0E 00 9F 16 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 71 [13:46:37]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:46:37]wFMCommunicate OK [13:46:37]SAM_PROTO_GetShiftState done [13:46:37]FM_GetShiftState done [13:46:37]opened in 1729987372 [13:46:37]opened+sec_in_day 1730073772 [13:46:37]quantity*price = 49037 [13:46:37]sum+1 = 49039 [13:46:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.08 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 118 27.10.2024 13:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117418 ФПД: 268670276707401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134639&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117418&fm=268670276707401&tin=02508201610067®Number=0000000000091782&sum=49000 [13:46:38]StoreToDocumentArchive [13:46:38]shift 542 fd 117418 [13:46:38]save to /storage/0542/doc_00117418 [13:46:38]save last doc name /storage/0542/doc_00117418 to /storage/kkm_last_doc_name [13:46:38]save OK [13:46:38]Clear old archive folders... [13:46:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:38]tlvbuf is 01724AB0 [13:46:38]SAM_PROTO_ClearQueue [13:46:38]wFMCommunicate request_size=4 [13:46:38]MH_SAM_APDU [13:46:38]CAPDU: 80 09 00 00 [13:46:38]Write to MH i2c: E2 08 00 AC 16 80 09 00 00 00 00 00 00 34 [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:38]Read from MH i2c: E2 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 AC 16 00 90 00 36 [13:46:38]RAPDU: 90 00 [13:46:38]wFMCommunicate OK [13:46:38]SAM_PROTO_ClearQueue done [13:46:38]KKMCreateOFDPacket [13:46:38]OFDProtocolAddRootSTLVToBuf [13:46:38]FM_MakeSignedData [13:46:38]FM_MakeSignedData [13:46:38]SAM_PROTO_SignData [13:46:38]wFMCommunicate request_size=4 [13:46:38]MH_SAM_APDU [13:46:38]CAPDU: 80 0D 01 02 [13:46:38]Write to MH i2c: E2 08 00 AD 16 80 0D 01 02 00 00 00 00 3C [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:38]Read from MH i2c: E2 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 AD 16 00 90 00 37 [13:46:38]RAPDU: 90 00 [13:46:38]wFMCommunicate OK [13:46:38]wFMCommunicate request_size=255 [13:46:38]MH_SAM_APDU [13:46: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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3F 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AA CA 01 00 35 04 06 00 F4 [13:46:38]Write to MH i2c: E2 02 01 AE 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3F 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AA CA 01 00 35 04 06 00 F4 00 00 04 [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:38]Read from MH i2c: E2 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 AE 16 00 90 00 38 [13:46:38]RAPDU: 90 00 [13:46:38]wFMCommunicate OK [13:46:38]wFMCommunicate request_size=10 [13:46:38]MH_SAM_APDU [13:46:38]CAPDU: 80 0D 02 02 05 5A AC 67 A4 49 [13:46:38]Write to MH i2c: E2 0D 00 AF 16 80 0D 02 02 05 00 5A AC 67 A4 49 00 00 A3 [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:38]Read from MH i2c: E2 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 AF 16 00 90 00 39 [13:46:38]RAPDU: 90 00 [13:46:38]wFMCommunicate OK [13:46:38]wFMCommunicate request_size=4 [13:46:38]MH_SAM_APDU [13:46:38]CAPDU: 80 0D 03 02 [13:46:38]Write to MH i2c: E2 08 00 B0 16 80 0D 03 02 00 00 00 00 41 [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:38]Read from MH i2c: E2 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 0B 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 0B 00 B0 16 00 3E 4B 44 8D 06 C9 D6 24 90 00 65 [13:46:38]RAPDU: 3E 4B 44 8D 06 C9 D6 24 90 00 [13:46:38]wFMCommunicate OK [13:46:38]SAM_PROTO_SignData done [13:46:38]FM_MakeSignedData done [13:46:38]CreateOFDProtocolMessage [13:46:38]wFMCommunicate request_size=4 [13:46:38]MH_SAM_APDU [13:46:38]CAPDU: 80 11 00 00 [13:46:38]Write to MH i2c: E2 08 00 B1 16 80 11 00 00 00 00 00 00 41 [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:38]Read from MH i2c: E2 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 17 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 17 00 B1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 98 [13:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:46:38]wFMCommunicate OK [13:46:38]CreateOFDProtocolMessage done [13:46:38]OFDSenderStorePacket 117418 [13:46:38]StoreOFDPacket docnum=117418 [13:46:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 DE 10 07 01 E2 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3F 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AA CA 01 00 35 04 06 00 F4 5A AC 67 A4 49 3E 4B 44 8D 06 C9 D6 24 [13:46:38]CheckFolder [13:46:38]dirname=/storage/ofd_packets [13:46:38]CheckFolder done [13:46:38]ProducePacketName [13:46:38]name=ofd_packets/00117418 [13:46:38]NVStorageSaveData ofd_packets/00117418 [13:46:38]File name is /storage/ofd_packets/00117418 [13:46:38]Write 301 bytes [13:46:38]NVStorageSaveData done [13:46:38]OFDSenderStorePacket done [13:46:38]KKMCreateOFDPacket done [13:46:38]NVStorageSaveData kkm_last_timestamp [13:46:38]File name is /storage/kkm_last_timestamp [13:46:38]Write 4 bytes [13:46:38]NVStorageSaveData done [13:46:38]ExternCall_PrintAddStr [13:46:38]wPrintStart [13:46:38]Write to MH i2c: 01 00 00 B2 16 C8 [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: 01 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: 01 07 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: 01 07 00 B2 16 00 00 00 00 00 FF 0F DD [13:46:38]RasterBufferAndPrint [13:46:38]line Счет N : (1)245194 [13:46:38]line ИНН: 02508201610067 [13:46:38]line Контрольно-Кассовый Чек [13:46:38]line ПРОДАЖА [13:46:38]line ТРК (МРК, ГНК) : 21 [13:46:38]line Товар: 2710124130 [13:46:38]line Аи-92-К-2 [13:46:38]line 7.330 * 66.90 [13:46:38]line = 490.38 [13:46:38]line НДС 12% НСП 1% [13:46:38]line > о реализуемом товаре [13:46:38]line ОКРУГЛЕНИЕ: -0.38 [13:46:38]line ИТОГО: 490.00 [13:46:38]line Внесено: 490.00 [13:46:38]line СДАЧА: 0.00 [13:46:38]line НСП 1% : 4.34 [13:46:38]line НДС 12% : 52.08 [13:46:38]line Наличными: 490.00 [13:46:38]line Безнал.: 0.00 [13:46:38]line Место: АЗС № 173 "Партнер Нефть" [13:46:38]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:46:38]line СНО: Общий режим [13:46:38]line Чек 118 27.10.2024 13:46 [13:46:38]line Смена: 542 ФФД: 1.0 [13:46:38]line ЗНМ: 0300000115 [13:46:38]line РНМ: 0000000000091782 [13:46:38]line Версия ККМ: 001 [13:46:38]line ФМ: 0000000000871767 [13:46:38]line ФД: 117418 [13:46:38]line ФПД: 268670276707401 [13:46:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134639&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117418&fm=268670276707401&tin=02508201610067®Number=0000000000091782&sum=49000 [13:46:39]written 0, free lines is 4095 [13:46:39]OFD Sender: Processing packet 117418 [packets to send 76, broken 75] [13:46:39]ProducePacketName [13:46:39]name=ofd_packets/00117418 [13:46:39]OFD Sender: To server: pG, [13:46:39]CommunicateWithHost lk.salyk.kg:30040 [13:46:39]ConnectInit lk.salyk.kg [13:46:39]Connected sock=10 [13:46: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 36 37 0F 01 00 00 DE 10 07 01 E2 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3F 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AA CA 01 00 35 04 06 00 F4 5A AC 67 A4 49 3E 4B 44 8D 06 C9 D6 24 [13:46: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 36 37 4F 00 00 00 EA 28 47 00 F1 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 36 37 10 04 04 00 AA CA 01 00 F4 03 04 00 FC EF 1D 67 B6 04 01 00 00 58 86 A1 B7 6D 43 C2 97 [13:46:39]CommunicateWithHost err = 0 [13:46:39]CheckOFDResponse [13:46:39]1017 (14) - 77093643461234 [13:46:39]1041 (16) - 0000000000871767 [13:46:39]1040 (4) - 117418 [13:46:39]1012 (4) - 27.10.2024 07:47 [13:46:39]1206 (1) - 0 [13:46:39]OFD Sender: Remove packet 117418 [13:46:39]ProducePacketName [13:46:39]name=ofd_packets/00117418 [13:46:39]NVStorageDeleteData [13:46:39]Write to MH i2c: 01 00 00 DC 16 F2 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 07 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 07 00 DC 16 00 00 00 00 00 AD 0C B2 [13:46:39]RasterBufferAndPrint [13:46:39]line [13:46:39]line [13:46:39]line [13:46:39]line [13:46:39]line [13:46:39]written 0, free lines is 3249 [13:46:39]MH_Cut [13:46:39]Write to MH i2c: D1 01 00 E3 16 01 CB [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: D1 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: D1 01 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: D1 01 00 E3 16 00 CA [13:46:39]Write to MH i2c: 01 00 00 E4 16 FA [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:40]OFD Sender: No OFD packet to send [13:46:40]*** Cut start [13:46:40]*** Purtial cut [13:46:40]*** Stage 1: CUTSNS_PIN = 1 [13:46:40]Read from MH i2c: 01 [13:46:40]MH_I2C_Read... [13:46:40]*** Stop cut motor [13:46:40]*** Cut end [13:46:40]Read from MH i2c: 01 07 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: 01 07 00 E4 16 00 00 00 00 00 FF 0F 0F [13:46:40]process_action close_receipt done [13:46:40]requested_data is exist [13:46:40]produce_requested_data [13:46:40]requested_item fm.sn is exist - process it [13:46:40]wFMCommunicate request_size=4 [13:46:40]MH_SAM_APDU [13:46:40]CAPDU: 80 11 00 00 [13:46:40]Write to MH i2c: E2 08 00 E5 16 80 11 00 00 00 00 00 00 75 [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:40]Read from MH i2c: E2 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: E2 17 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: E2 17 00 E5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CC [13:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:46:40]wFMCommunicate OK [13:46:40]requested_item fd.num is exist - process it [13:46:40]SAM_PROTO_GetFieldsCounters [13:46:40]wFMCommunicate request_size=4 [13:46:40]MH_SAM_APDU [13:46:40]CAPDU: 80 13 00 00 [13:46:40]Write to MH i2c: E2 08 00 E6 16 80 13 00 00 00 00 00 00 78 [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 62 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 62 00 E6 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AA CA 01 00 0E 04 04 00 1E 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 96 [13:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AA CA 01 00 0E 04 04 00 1E 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 [13:46:41]wFMCommunicate OK [13:46:41]SAM_PROTO_GetFieldsCounters done [13:46:41]requested_item shift.num is exist - process it [13:46:41]requested_item shift.opened is exist - process it [13:46:41]req_shift_opened [13:46:41]FM_GetShiftState [13:46:41]SAM_PROTO_GetShiftState [13:46:41]wFMCommunicate request_size=4 [13:46:41]MH_SAM_APDU [13:46:41]CAPDU: 80 13 01 00 [13:46:41]Write to MH i2c: E2 08 00 E7 16 80 13 01 00 00 00 00 00 7A [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 0E 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 0E 00 E7 16 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B9 [13:46:41]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:46:41]wFMCommunicate OK [13:46:41]SAM_PROTO_GetShiftState done [13:46:41]FM_GetShiftState done [13:46:41]req_shift_opened done [13:46:41]requested_item shift.open_date is exist - process it [13:46:41]req_shift_open_date [13:46:41]req_shift_open_date done [13:46:41]produce_requested_data done [13:46:41]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117418,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:46:41]process_action_free close_receipt [13:46:41]json_value_free [13:46:41]json_value_free done [13:46:41]process_json_proto returns [13:46:41]Send response to host [13:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117418,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:46:41]free response buf [13:46:41]execute_script done [13:46:41]execute_script returns [13:46:41]free content buf [13:46:41]Sock 9.Close socket [13:46:41]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:08]accept exits with 7 [13:58:08]New connection [13:58:08]New thread 3067600228 created [13:58:08]Thread 3067456868 joined [13:58:08]Waiting for new connection... [13:58:08] Sock 7.Parse request [13:58:08]Sock 7.Check first char [13:58:08]Sock 7.First char is OK [13:58:08]request: POST /json_proto HTTP/1.0 [13:58:08]Method: POST [13:58:08]URL: /json_proto [13:58:08]Method is POST - this is cgi request [13:58:08]url: /json_proto [13:58:08]query_string will be loaded in cgi processing [13:58:08]execute_cgi json_proto POST (null) [13:58:08]execute_cgi path=json_proto method=POST [13:58:08]POST find Content-Length [13:58:08]Host: 172.17.96.67:8080 [13:58:08]Content-Length: 675 [13:58:08]Content-Type: application/json [13:58:08] [13:58:08]POST finish read [13:58:08]Found Content-Length = 675 [13:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.770, "sum" : 820.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 820.00, "total" : 820.00, "payments": [ { "type": 0, "sum" : 820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:08]execute_script... [13:58: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)245195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.770, "sum" : 820.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 820.00, "total" : 820.00, "payments": [ { "type": 0, "sum" : 820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:08]POST & json_proto [13:58:08]process_json_proto [13:58:08]json parsed OK: [13:58:08]protocol is kg_v1.0 [13:58:08]action value=close_receipt [13:58:08]process_action close_receipt [13:58:08]cmd_close_receipt [13:58:08]MH_GetDate [13:58:08]Write to MH i2c: F0 00 00 E8 16 ED [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: F0 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: F0 09 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: F0 09 00 E8 16 00 F2 46 1E 67 2B 09 1E 67 6C [13:58:08]GetLastDocTimeStamp 1730036799 [13:58:08]current date 1730037490 [13:58:08]FM_GetShiftState [13:58:08]SAM_PROTO_GetShiftState [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 13 01 00 [13:58:08]Write to MH i2c: E2 08 00 E9 16 80 13 01 00 00 00 00 00 7C [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 0E 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 0E 00 E9 16 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 BB [13:58:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:58:08]wFMCommunicate OK [13:58:08]SAM_PROTO_GetShiftState done [13:58:08]FM_GetShiftState done [13:58:08]opened in 1729987372 [13:58:08]opened+sec_in_day 1730073772 [13:58:08]quantity*price = 82067 [13:58:08]sum+1 = 82068 [13:58:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 820.00 Внесено: 820.00 СДАЧА: 0.00 НСП 1% : 7.26 НДС 12% : 87.15 Наличными: 820.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 119 27.10.2024 13:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117419 ФПД: 110926141873192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135810&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117419&fm=110926141873192&tin=02508201610067®Number=0000000000091782&sum=82000 [13:58:09]StoreToDocumentArchive [13:58:09]shift 542 fd 117419 [13:58:09]save to /storage/0542/doc_00117419 [13:58:09]save last doc name /storage/0542/doc_00117419 to /storage/kkm_last_doc_name [13:58:09]save OK [13:58:09]Clear old archive folders... [13:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:09]tlvbuf is 01704730 [13:58:09]SAM_PROTO_ClearQueue [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 09 00 00 [13:58:09]Write to MH i2c: E2 08 00 F6 16 80 09 00 00 00 00 00 00 7E [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 F6 16 00 90 00 80 [13:58:09]RAPDU: 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_ClearQueue done [13:58:09]KKMCreateOFDPacket [13:58:09]OFDProtocolAddRootSTLVToBuf [13:58:09]FM_MakeSignedData [13:58:09]FM_MakeSignedData [13:58:09]SAM_PROTO_SignData [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 0D 01 02 [13:58:09]Write to MH i2c: E2 08 00 F7 16 80 0D 01 02 00 00 00 00 86 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 F7 16 00 90 00 81 [13:58:09]RAPDU: 90 00 [13:58:09]wFMCommunicate OK [13:58:09]wFMCommunicate request_size=255 [13:58:09]MH_SAM_APDU [13:58: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 12 2A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 22 00 00 00 00 07 04 06 00 50 40 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 F2 46 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AB CA 01 00 35 04 06 00 64 E3 01 48 [13:58:09]Write to MH i2c: E2 02 01 F8 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 12 2A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 22 00 00 00 00 07 04 06 00 50 40 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 F2 46 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AB CA 01 00 35 04 06 00 64 E3 01 48 00 00 58 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 F8 16 00 90 00 82 [13:58:09]RAPDU: 90 00 [13:58:09]wFMCommunicate OK [13:58:09]wFMCommunicate request_size=7 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 0D 02 02 02 5C 28 [13:58:09]Write to MH i2c: E2 0A 00 F9 16 80 0D 02 02 02 00 5C 28 00 00 11 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 F9 16 00 90 00 83 [13:58:09]RAPDU: 90 00 [13:58:09]wFMCommunicate OK [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 0D 03 02 [13:58:09]Write to MH i2c: E2 08 00 FA 16 80 0D 03 02 00 00 00 00 8B [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0B 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0B 00 FA 16 00 44 B6 AE 34 D9 EE 85 39 90 00 ED [13:58:09]RAPDU: 44 B6 AE 34 D9 EE 85 39 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_SignData done [13:58:09]FM_MakeSignedData done [13:58:09]CreateOFDProtocolMessage [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 11 00 00 [13:58:09]Write to MH i2c: E2 08 00 FB 16 80 11 00 00 00 00 00 00 8B [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 FB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E2 [13:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:58:09]wFMCommunicate OK [13:58:09]CreateOFDProtocolMessage done [13:58:09]OFDSenderStorePacket 117419 [13:58:09]StoreOFDPacket docnum=117419 [13:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 92 88 04 01 00 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 22 00 00 00 00 07 04 06 00 50 40 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 F2 46 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AB CA 01 00 35 04 06 00 64 E3 01 48 5C 28 44 B6 AE 34 D9 EE 85 39 [13:58:09]CheckFolder [13:58:09]dirname=/storage/ofd_packets [13:58:09]CheckFolder done [13:58:09]ProducePacketName [13:58:09]name=ofd_packets/00117419 [13:58:09]NVStorageSaveData ofd_packets/00117419 [13:58:09]File name is /storage/ofd_packets/00117419 [13:58:09]Write 298 bytes [13:58:09]NVStorageSaveData done [13:58:09]OFDSenderStorePacket done [13:58:09]KKMCreateOFDPacket done [13:58:09]NVStorageSaveData kkm_last_timestamp [13:58:09]File name is /storage/kkm_last_timestamp [13:58:09]Write 4 bytes [13:58:09]NVStorageSaveData done [13:58:09]ExternCall_PrintAddStr [13:58:09]wPrintStart [13:58:09]Write to MH i2c: 01 00 00 FC 16 12 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 FC 16 00 00 00 00 00 FF 0F 27 [13:58:09]RasterBufferAndPrint [13:58:09]line Счет N : (1)245195 [13:58:09]line ИНН: 02508201610067 [13:58:09]line Контрольно-Кассовый Чек [13:58:09]line ПРОДАЖА [13:58:09]line ТРК (МРК, ГНК) : 23 [13:58:09]line Товар: 2710194210 [13:58:09]line ДТ-К-2 [13:58:09]line 10.770 * 76.20 [13:58:09]line = 820.67 [13:58:09]line НДС 12% НСП 1% [13:58:09]line > о реализуемом товаре [13:58:09]line ОКРУГЛЕНИЕ: -0.67 [13:58:09]line ИТОГО: 820.00 [13:58:09]line Внесено: 820.00 [13:58:09]line СДАЧА: 0.00 [13:58:09]line НСП 1% : 7.26 [13:58:09]line НДС 12% : 87.15 [13:58:09]line Наличными: 820.00 [13:58:09]line Безнал.: 0.00 [13:58:09]line Место: АЗС № 173 "Партнер Нефть" [13:58:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:58:09]line СНО: Общий режим [13:58:09]line Чек 119 27.10.2024 13:58 [13:58:09]line Смена: 542 ФФД: 1.0 [13:58:09]line ЗНМ: 0300000115 [13:58:09]line РНМ: 0000000000091782 [13:58:09]line Версия ККМ: 001 [13:58:09]line ФМ: 0000000000871767 [13:58:09]line ФД: 117419 [13:58:09]line ФПД: 110926141873192 [13:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135810&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117419&fm=110926141873192&tin=02508201610067®Number=0000000000091782&sum=82000 [13:58:09]written 0, free lines is 4095 [13:58:10]OFD Sender: Processing packet 117419 [packets to send 76, broken 75] [13:58:10]ProducePacketName [13:58:10]name=ofd_packets/00117419 [13:58:10]OFD Sender: To server: pG, [13:58:10]CommunicateWithHost lk.salyk.kg:30040 [13:58:10]ConnectInit lk.salyk.kg [13:58:10]Connected sock=11 [13:58: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 36 37 0C 01 00 00 92 88 04 01 00 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 93 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 22 00 00 00 00 07 04 06 00 50 40 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 F2 46 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AB CA 01 00 35 04 06 00 64 E3 01 48 5C 28 44 B6 AE 34 D9 EE 85 39 [13:58: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 36 37 4F 00 00 00 E2 CB 47 00 86 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 36 37 10 04 04 00 AB CA 01 00 F4 03 04 00 AF F2 1D 67 B6 04 01 00 00 BC 88 8C 7D 4E B9 89 54 [13:58:10]CommunicateWithHost err = 0 [13:58:10]CheckOFDResponse [13:58:10]1017 (14) - 77093643461234 [13:58:10]1041 (16) - 0000000000871767 [13:58:10]1040 (4) - 117419 [13:58:10]1012 (4) - 27.10.2024 07:58 [13:58:10]1206 (1) - 0 [13:58:10]OFD Sender: Remove packet 117419 [13:58:10]ProducePacketName [13:58:10]name=ofd_packets/00117419 [13:58:10]NVStorageDeleteData [13:58:10]Write to MH i2c: 01 00 00 26 17 3D [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 07 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 07 00 26 17 00 00 00 00 00 B1 0C 01 [13:58:10]RasterBufferAndPrint [13:58:10]line [13:58:10]line [13:58:10]line [13:58:10]line [13:58:10]line [13:58:10]written 0, free lines is 3253 [13:58:10]MH_Cut [13:58:10]Write to MH i2c: D1 01 00 2D 17 01 16 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: D1 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: D1 01 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: D1 01 00 2D 17 00 15 [13:58:10]Write to MH i2c: 01 00 00 2E 17 45 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]OFD Sender: No OFD packet to send [13:58:11]*** Cut start [13:58:11]*** Purtial cut [13:58:11]*** Stage 1: CUTSNS_PIN = 1 [13:58:11]Read from MH i2c: 01 [13:58:11]MH_I2C_Read... [13:58:11]*** Stop cut motor [13:58:11]*** Cut end [13:58:11]Read from MH i2c: 01 07 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: 01 07 00 2E 17 00 00 00 00 00 FF 0F 5A [13:58:11]process_action close_receipt done [13:58:11]requested_data is exist [13:58:11]produce_requested_data [13:58:11]requested_item fm.sn is exist - process it [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 11 00 00 [13:58:11]Write to MH i2c: E2 08 00 2F 17 80 11 00 00 00 00 00 00 C0 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 17 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 17 00 2F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 17 [13:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:58:11]wFMCommunicate OK [13:58:11]requested_item fd.num is exist - process it [13:58:11]SAM_PROTO_GetFieldsCounters [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 13 00 00 [13:58:11]Write to MH i2c: E2 08 00 30 17 80 13 00 00 00 00 00 00 C3 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 62 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 62 00 30 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AB CA 01 00 0E 04 04 00 1E 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 E5 [13:58: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AB CA 01 00 0E 04 04 00 1E 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 [13:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetFieldsCounters done [13:58:11]requested_item shift.num is exist - process it [13:58:11]requested_item shift.opened is exist - process it [13:58:11]req_shift_opened [13:58:11]FM_GetShiftState [13:58:11]SAM_PROTO_GetShiftState [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 13 01 00 [13:58:11]Write to MH i2c: E2 08 00 31 17 80 13 01 00 00 00 00 00 C5 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 31 17 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 04 [13:58:11]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [13:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetShiftState done [13:58:11]FM_GetShiftState done [13:58:11]req_shift_opened done [13:58:11]requested_item shift.open_date is exist - process it [13:58:11]req_shift_open_date [13:58:11]req_shift_open_date done [13:58:11]produce_requested_data done [13:58:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117419,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [13:58:11]process_action_free close_receipt [13:58:11]json_value_free [13:58:11]json_value_free done [13:58:11]process_json_proto returns [13:58:11]Send response to host [13:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117419,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [13:58:11]free response buf [13:58:11]execute_script done [13:58:11]execute_script returns [13:58:11]free content buf [13:58:11]Sock 7.Close socket [13:58:11]Sock 7.Thread stoped [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:16]accept exits with 9 [14:01:16]New connection [14:01:16]New thread 3067456868 created [14:01:16]Thread 3067600228 joined [14:01:16]Waiting for new connection... [14:01:16] Sock 9.Parse request [14:01:16]Sock 9.Check first char [14:01:16]Sock 9.First char is OK [14:01:16]request: POST /json_proto HTTP/1.0 [14:01:16]Method: POST [14:01:16]URL: /json_proto [14:01:16]Method is POST - this is cgi request [14:01:16]url: /json_proto [14:01:16]query_string will be loaded in cgi processing [14:01:16]execute_cgi json_proto POST (null) [14:01:16]execute_cgi path=json_proto method=POST [14:01:16]POST find Content-Length [14:01:16]Host: 172.17.96.67:8080 [14:01:16]Content-Length: 766 [14:01:16]Content-Type: application/json [14:01:16] [14:01:16]POST finish read [14:01:16]Found Content-Length = 766 [14:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [14:01:16]execute_script... [14: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)245196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [14:01:16]POST & json_proto [14:01:16]process_json_proto [14:01:16]json parsed OK: [14:01:16]protocol is kg_v1.0 [14:01:16]action value=close_receipt [14:01:16]process_action close_receipt [14:01:16]cmd_close_receipt [14:01:16]MH_GetDate [14:01:16]Write to MH i2c: F0 00 00 32 17 38 [14:01:16]Write i2c OK [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: F0 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: F0 09 00 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: F0 09 00 32 17 00 AD 47 1E 67 2B 09 1E 67 73 [14:01:16]GetLastDocTimeStamp 1730037490 [14:01:16]current date 1730037677 [14:01:16]FM_GetShiftState [14:01:16]SAM_PROTO_GetShiftState [14:01:16]wFMCommunicate request_size=4 [14:01:16]MH_SAM_APDU [14:01:16]CAPDU: 80 13 01 00 [14:01:16]Write to MH i2c: E2 08 00 33 17 80 13 01 00 00 00 00 00 C7 [14:01:16]Write i2c OK [14:01:16]MH_I2C_Read... [14:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:16]Read from MH i2c: E2 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: E2 0E 00 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: E2 0E 00 33 17 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 06 [14:01:16]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:01:16]wFMCommunicate OK [14:01:16]SAM_PROTO_GetShiftState done [14:01:16]FM_GetShiftState done [14:01:16]opened in 1729987372 [14:01:16]opened+sec_in_day 1730073772 [14:01:16]quantity*price = 100050 [14:01:16]sum+1 = 100052 [14:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 120 27.10.2024 14:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117420 ФПД: 229701222423671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140118&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117420&fm=229701222423671&tin=02508201610067®Number=0000000000091782&sum=100051 [14:01:17]StoreToDocumentArchive [14:01:17]shift 542 fd 117420 [14:01:17]save to /storage/0542/doc_00117420 [14:01:17]save last doc name /storage/0542/doc_00117420 to /storage/kkm_last_doc_name [14:01:17]save OK [14:01:17]Clear old archive folders... [14:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:01:17]tlvbuf is 01724CC0 [14:01:17]SAM_PROTO_ClearQueue [14:01:17]wFMCommunicate request_size=4 [14:01:17]MH_SAM_APDU [14:01:17]CAPDU: 80 09 00 00 [14:01:17]Write to MH i2c: E2 08 00 40 17 80 09 00 00 00 00 00 00 C9 [14:01:17]Write i2c OK [14:01:17]MH_I2C_Read... [14:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:17]Read from MH i2c: E2 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 03 00 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 03 00 40 17 00 90 00 CB [14:01:17]RAPDU: 90 00 [14:01:17]wFMCommunicate OK [14:01:17]SAM_PROTO_ClearQueue done [14:01:17]KKMCreateOFDPacket [14:01:17]OFDProtocolAddRootSTLVToBuf [14:01:17]FM_MakeSignedData [14:01:17]FM_MakeSignedData [14:01:17]SAM_PROTO_SignData [14:01:17]wFMCommunicate request_size=4 [14:01:17]MH_SAM_APDU [14:01:17]CAPDU: 80 0D 01 02 [14:01:17]Write to MH i2c: E2 08 00 41 17 80 0D 01 02 00 00 00 00 D1 [14:01:17]Write i2c OK [14:01:17]MH_I2C_Read... [14:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:17]Read from MH i2c: E2 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 03 00 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 03 00 41 17 00 90 00 CC [14:01:17]RAPDU: 90 00 [14:01:17]wFMCommunicate OK [14:01:17]wFMCommunicate request_size=255 [14:01:17]MH_SAM_APDU [14: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 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 78 00 00 00 F4 03 04 00 AE 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AC CA 01 00 35 04 06 00 D0 E9 7B C4 [14:01:17]Write to MH i2c: E2 02 01 42 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 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 78 00 00 00 F4 03 04 00 AE 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AC CA 01 00 35 04 06 00 D0 E9 7B C4 00 00 40 [14:01:17]Write i2c OK [14:01:17]MH_I2C_Read... [14:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:17]Read from MH i2c: E2 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 03 00 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 03 00 42 17 00 90 00 CD [14:01:17]RAPDU: 90 00 [14:01:17]wFMCommunicate OK [14:01:17]wFMCommunicate request_size=7 [14:01:17]MH_SAM_APDU [14:01:17]CAPDU: 80 0D 02 02 02 5C 77 [14:01:17]Write to MH i2c: E2 0A 00 43 17 80 0D 02 02 02 00 5C 77 00 00 AB [14:01:17]Write i2c OK [14:01:17]MH_I2C_Read... [14:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:17]Read from MH i2c: E2 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 03 00 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 03 00 43 17 00 90 00 CE [14:01:17]RAPDU: 90 00 [14:01:17]wFMCommunicate OK [14:01:17]wFMCommunicate request_size=4 [14:01:17]MH_SAM_APDU [14:01:17]CAPDU: 80 0D 03 02 [14:01:17]Write to MH i2c: E2 08 00 44 17 80 0D 03 02 00 00 00 00 D6 [14:01:17]Write i2c OK [14:01:17]MH_I2C_Read... [14:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:17]Read from MH i2c: E2 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 0B 00 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 0B 00 44 17 00 74 9E 4A 5D 0C 3A 01 95 90 00 6C [14:01:17]RAPDU: 74 9E 4A 5D 0C 3A 01 95 90 00 [14:01:17]wFMCommunicate OK [14:01:17]SAM_PROTO_SignData done [14:01:17]FM_MakeSignedData done [14:01:17]CreateOFDProtocolMessage [14:01:17]wFMCommunicate request_size=4 [14:01:17]MH_SAM_APDU [14:01:17]CAPDU: 80 11 00 00 [14:01:17]Write to MH i2c: E2 08 00 45 17 80 11 00 00 00 00 00 00 D6 [14:01:17]Write i2c OK [14:01:17]MH_I2C_Read... [14:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:17]Read from MH i2c: E2 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 17 00 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 17 00 45 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2D [14:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:01:17]wFMCommunicate OK [14:01:17]CreateOFDProtocolMessage done [14:01:17]OFDSenderStorePacket 117420 [14:01:17]StoreOFDPacket docnum=117420 [14:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 85 9F 04 01 78 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 78 00 00 00 F4 03 04 00 AE 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AC CA 01 00 35 04 06 00 D0 E9 7B C4 5C 77 74 9E 4A 5D 0C 3A 01 95 [14:01:17]CheckFolder [14:01:17]dirname=/storage/ofd_packets [14:01:17]CheckFolder done [14:01:17]ProducePacketName [14:01:17]name=ofd_packets/00117420 [14:01:17]NVStorageSaveData ofd_packets/00117420 [14:01:17]File name is /storage/ofd_packets/00117420 [14:01:17]Write 298 bytes [14:01:17]NVStorageSaveData done [14:01:17]OFDSenderStorePacket done [14:01:17]KKMCreateOFDPacket done [14:01:17]NVStorageSaveData kkm_last_timestamp [14:01:17]File name is /storage/kkm_last_timestamp [14:01:17]Write 4 bytes [14:01:17]NVStorageSaveData done [14:01:17]ExternCall_PrintAddStr [14:01:17]wPrintStart [14:01:17]Write to MH i2c: 01 00 00 46 17 5D [14:01:17]Write i2c OK [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: 01 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: 01 07 00 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: 01 07 00 46 17 00 00 00 00 00 FF 0F 72 [14:01:17]RasterBufferAndPrint [14:01:17]line Счет N : (1)245196 [14:01:17]line ИНН: 02508201610067 [14:01:17]line Контрольно-Кассовый Чек [14:01:17]line ПРОДАЖА [14:01:17]line ТРК (МРК, ГНК) : 23 [14:01:17]line Товар: 2710194210 [14:01:17]line ДТ-К-2 [14:01:17]line 13.130 * 76.20 [14:01:17]line = 1000.51 [14:01:17]line НДС 12% НСП 1% [14:01:17]line > о реализуемом товаре [14:01:17]line ИТОГО: 1000.51 [14:01:17]line НСП 1% : 8.85 [14:01:17]line НДС 12% : 106.25 [14:01:17]line Наличными: 0.00 [14:01:17]line Безнал.: 1000.51 [14:01:17]line Место: АЗС № 173 "Партнер Нефть" [14:01:17]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:01:17]line СНО: Общий режим [14:01:17]line Чек 120 27.10.2024 14:01 [14:01:17]line Смена: 542 ФФД: 1.0 [14:01:17]line ЗНМ: 0300000115 [14:01:17]line РНМ: 0000000000091782 [14:01:17]line Версия ККМ: 001 [14:01:17]line Платежная система: Mbank [14:01:17]line ФМ: 0000000000871767 [14:01:17]line ФД: 117420 [14:01:17]line ФПД: 229701222423671 [14:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140118&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117420&fm=229701222423671&tin=02508201610067®Number=0000000000091782&sum=100051 [14:01:17]written 0, free lines is 4095 [14:01:17]OFD Sender: Processing packet 117420 [packets to send 76, broken 75] [14:01:17]ProducePacketName [14:01:17]name=ofd_packets/00117420 [14:01:17]OFD Sender: To server: pG, [14:01:17]CommunicateWithHost lk.salyk.kg:30040 [14:01:17]ConnectInit lk.salyk.kg [14:01:18]Connected sock=10 [14: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 36 37 0C 01 00 00 85 9F 04 01 78 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 78 00 00 00 F4 03 04 00 AE 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AC CA 01 00 35 04 06 00 D0 E9 7B C4 5C 77 74 9E 4A 5D 0C 3A 01 95 [14: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 36 37 4F 00 00 00 E3 A6 47 00 56 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 36 37 10 04 04 00 AC CA 01 00 F4 03 04 00 6A F3 1D 67 B6 04 01 00 00 77 7D 62 8C BC DF 45 C8 [14:01:18]CommunicateWithHost err = 0 [14:01:18]CheckOFDResponse [14:01:18]1017 (14) - 77093643461234 [14:01:18]1041 (16) - 0000000000871767 [14:01:18]1040 (4) - 117420 [14:01:18]1012 (4) - 27.10.2024 08:01 [14:01:18]1206 (1) - 0 [14:01:18]OFD Sender: Remove packet 117420 [14:01:18]ProducePacketName [14:01:18]name=ofd_packets/00117420 [14:01:18]NVStorageDeleteData [14:01:18]Write to MH i2c: 01 00 00 6E 17 85 [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: 01 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: 01 07 00 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: 01 07 00 6E 17 00 00 00 00 00 E0 0C 78 [14:01:18]RasterBufferAndPrint [14:01:18]line [14:01:18]line [14:01:18]line [14:01:18]line [14:01:18]line [14:01:18]written 0, free lines is 3302 [14:01:18]MH_Cut [14:01:18]Write to MH i2c: D1 01 00 75 17 01 5E [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: D1 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: D1 01 00 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: D1 01 00 75 17 00 5D [14:01:18]Write to MH i2c: 01 00 00 76 17 8D [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]OFD Sender: No OFD packet to send [14:01:19]*** Cut start [14:01:19]*** Purtial cut [14:01:19]*** Stage 1: CUTSNS_PIN = 1 [14:01:19]Read from MH i2c: 01 [14:01:19]MH_I2C_Read... [14:01:19]*** Stop cut motor [14:01:19]*** Cut end [14:01:19]Read from MH i2c: 01 07 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: 01 07 00 76 17 00 00 00 00 00 FF 0F A2 [14:01:19]process_action close_receipt done [14:01:19]requested_data is exist [14:01:19]produce_requested_data [14:01:19]requested_item fm.sn is exist - process it [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 11 00 00 [14:01:19]Write to MH i2c: E2 08 00 77 17 80 11 00 00 00 00 00 00 08 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 77 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5F [14:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:01:19]wFMCommunicate OK [14:01:19]requested_item fd.num is exist - process it [14:01:19]SAM_PROTO_GetFieldsCounters [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 13 00 00 [14:01:19]Write to MH i2c: E2 08 00 78 17 80 13 00 00 00 00 00 00 0B [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 62 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 62 00 78 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AC CA 01 00 0E 04 04 00 1E 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 31 [14: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AC CA 01 00 0E 04 04 00 1E 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 [14:01:19]wFMCommunicate OK [14:01:19]SAM_PROTO_GetFieldsCounters done [14:01:19]requested_item shift.num is exist - process it [14:01:19]requested_item shift.opened is exist - process it [14:01:19]req_shift_opened [14:01:19]FM_GetShiftState [14:01:19]SAM_PROTO_GetShiftState [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 13 01 00 [14:01:19]Write to MH i2c: E2 08 00 79 17 80 13 01 00 00 00 00 00 0D [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 0E 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 0E 00 79 17 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 4C [14:01:19]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:01:19]wFMCommunicate OK [14:01:19]SAM_PROTO_GetShiftState done [14:01:19]FM_GetShiftState done [14:01:19]req_shift_opened done [14:01:19]requested_item shift.open_date is exist - process it [14:01:19]req_shift_open_date [14:01:19]req_shift_open_date done [14:01:19]produce_requested_data done [14:01:19]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117420,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:01:19]process_action_free close_receipt [14:01:19]json_value_free [14:01:19]json_value_free done [14:01:19]process_json_proto returns [14:01:19]Send response to host [14:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117420,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:01:19]free response buf [14:01:19]execute_script done [14:01:19]execute_script returns [14:01:19]free content buf [14:01:19]Sock 9.Close socket [14:01:19]Sock 9.Thread stoped [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]accept exits with 7 [14:04:58]New connection [14:04:58]New thread 3067600228 created [14:04:58]Thread 3067456868 joined [14:04:58]Waiting for new connection... [14:04:58] Sock 7.Parse request [14:04:58]Sock 7.Check first char [14:04:58]Sock 7.First char is OK [14:04:58]request: POST /json_proto HTTP/1.0 [14:04:58]Method: POST [14:04:58]URL: /json_proto [14:04:58]Method is POST - this is cgi request [14:04:58]url: /json_proto [14:04:58]query_string will be loaded in cgi processing [14:04:58]execute_cgi json_proto POST (null) [14:04:58]execute_cgi path=json_proto method=POST [14:04:58]POST find Content-Length [14:04:58]Host: 172.17.96.67:8080 [14:04:58]Content-Length: 679 [14:04:58]Content-Type: application/json [14:04:58] [14:04:58]POST finish read [14:04:58]Found Content-Length = 679 [14:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:04:58]execute_script... [14:04: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)245197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:04:58]POST & json_proto [14:04:58]process_json_proto [14:04:58]json parsed OK: [14:04:58]protocol is kg_v1.0 [14:04:58]action value=close_receipt [14:04:58]process_action close_receipt [14:04:58]cmd_close_receipt [14:04:58]MH_GetDate [14:04:58]Write to MH i2c: F0 00 00 7A 17 80 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: F0 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: F0 09 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: F0 09 00 7A 17 00 8C 48 1E 67 2B 09 1E 67 9B [14:04:58]GetLastDocTimeStamp 1730037678 [14:04:58]current date 1730037900 [14:04:58]FM_GetShiftState [14:04:58]SAM_PROTO_GetShiftState [14:04:58]wFMCommunicate request_size=4 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 13 01 00 [14:04:58]Write to MH i2c: E2 08 00 7B 17 80 13 01 00 00 00 00 00 0F [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 0E 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 0E 00 7B 17 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 4E [14:04:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:04:58]wFMCommunicate OK [14:04:58]SAM_PROTO_GetShiftState done [14:04:58]FM_GetShiftState done [14:04:58]opened in 1729987372 [14:04:58]opened+sec_in_day 1730073772 [14:04:58]quantity*price = 100050 [14:04:58]sum+1 = 100052 [14:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 121 27.10.2024 14:05 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117421 ФПД: 163328558434594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140500&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117421&fm=163328558434594&tin=02508201610067®Number=0000000000091782&sum=100000 [14:04:59]StoreToDocumentArchive [14:04:59]shift 542 fd 117421 [14:04:59]save to /storage/0542/doc_00117421 [14:04:59]save last doc name /storage/0542/doc_00117421 to /storage/kkm_last_doc_name [14:04:59]save OK [14:04:59]Clear old archive folders... [14:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:04:59]tlvbuf is 016F80E0 [14:04:59]SAM_PROTO_ClearQueue [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 09 00 00 [14:04:59]Write to MH i2c: E2 08 00 88 17 80 09 00 00 00 00 00 00 11 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 88 17 00 90 00 13 [14:04:59]RAPDU: 90 00 [14:04:59]wFMCommunicate OK [14:04:59]SAM_PROTO_ClearQueue done [14:04:59]KKMCreateOFDPacket [14:04:59]OFDProtocolAddRootSTLVToBuf [14:04:59]FM_MakeSignedData [14:04:59]FM_MakeSignedData [14:04:59]SAM_PROTO_SignData [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 0D 01 02 [14:04:59]Write to MH i2c: E2 08 00 89 17 80 0D 01 02 00 00 00 00 19 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 89 17 00 90 00 14 [14:04:59]RAPDU: 90 00 [14:04:59]wFMCommunicate OK [14:04:59]wFMCommunicate request_size=255 [14:04:59]MH_SAM_APDU [14:04: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 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 79 00 00 00 F4 03 04 00 8C 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AD CA 01 00 35 04 06 00 94 8B E4 B5 [14:04:59]Write to MH i2c: E2 02 01 8A 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 79 00 00 00 F4 03 04 00 8C 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AD CA 01 00 35 04 06 00 94 8B E4 B5 00 00 C3 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 8A 17 00 90 00 15 [14:04:59]RAPDU: 90 00 [14:04:59]wFMCommunicate OK [14:04:59]wFMCommunicate request_size=7 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 0D 02 02 02 09 22 [14:04:59]Write to MH i2c: E2 0A 00 8B 17 80 0D 02 02 02 00 09 22 00 00 4B [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 8B 17 00 90 00 16 [14:04:59]RAPDU: 90 00 [14:04:59]wFMCommunicate OK [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 0D 03 02 [14:04:59]Write to MH i2c: E2 08 00 8C 17 80 0D 03 02 00 00 00 00 1E [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 0B 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 0B 00 8C 17 00 18 B4 67 AD EC 58 FE F7 90 00 38 [14:04:59]RAPDU: 18 B4 67 AD EC 58 FE F7 90 00 [14:04:59]wFMCommunicate OK [14:04:59]SAM_PROTO_SignData done [14:04:59]FM_MakeSignedData done [14:04:59]CreateOFDProtocolMessage [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 11 00 00 [14:04:59]Write to MH i2c: E2 08 00 8D 17 80 11 00 00 00 00 00 00 1E [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:00]Read from MH i2c: E2 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 17 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 17 00 8D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 75 [14:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:05:00]wFMCommunicate OK [14:05:00]CreateOFDProtocolMessage done [14:05:00]OFDSenderStorePacket 117421 [14:05:00]StoreOFDPacket docnum=117421 [14:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 3A 9D 04 01 2B 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 79 00 00 00 F4 03 04 00 8C 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AD CA 01 00 35 04 06 00 94 8B E4 B5 09 22 18 B4 67 AD EC 58 FE F7 [14:05:00]CheckFolder [14:05:00]dirname=/storage/ofd_packets [14:05:00]CheckFolder done [14:05:00]ProducePacketName [14:05:00]name=ofd_packets/00117421 [14:05:00]NVStorageSaveData ofd_packets/00117421 [14:05:00]File name is /storage/ofd_packets/00117421 [14:05:00]Write 298 bytes [14:05:00]NVStorageSaveData done [14:05:00]OFDSenderStorePacket done [14:05:00]KKMCreateOFDPacket done [14:05:00]NVStorageSaveData kkm_last_timestamp [14:05:00]File name is /storage/kkm_last_timestamp [14:05:00]Write 4 bytes [14:05:00]NVStorageSaveData done [14:05:00]ExternCall_PrintAddStr [14:05:00]wPrintStart [14:05:00]Write to MH i2c: 01 00 00 8E 17 A5 [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 07 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 07 00 8E 17 00 00 00 00 00 FF 0F BA [14:05:00]RasterBufferAndPrint [14:05:00]line Счет N : (1)245197 [14:05:00]line ИНН: 02508201610067 [14:05:00]line Контрольно-Кассовый Чек [14:05:00]line ПРОДАЖА [14:05:00]line ТРК (МРК, ГНК) : 13 [14:05:00]line Товар: 2710194210 [14:05:00]line ДТ-К-2 [14:05:00]line 13.130 * 76.20 [14:05:00]line = 1000.51 [14:05:00]line НДС 12% НСП 1% [14:05:00]line > о реализуемом товаре [14:05:00]line ОКРУГЛЕНИЕ: -0.51 [14:05:00]line ИТОГО: 1000.00 [14:05:00]line Внесено: 1000.00 [14:05:00]line СДАЧА: 0.00 [14:05:00]line НСП 1% : 8.85 [14:05:00]line НДС 12% : 106.25 [14:05:00]line Наличными: 1000.00 [14:05:00]line Безнал.: 0.00 [14:05:00]line Место: АЗС № 173 "Партнер Нефть" [14:05:00]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:05:00]line СНО: Общий режим [14:05:00]line Чек 121 27.10.2024 14:05 [14:05:00]line Смена: 542 ФФД: 1.0 [14:05:00]line ЗНМ: 0300000115 [14:05:00]line РНМ: 0000000000091782 [14:05:00]line Версия ККМ: 001 [14:05:00]line ФМ: 0000000000871767 [14:05:00]line ФД: 117421 [14:05:00]line ФПД: 163328558434594 [14:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140500&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117421&fm=163328558434594&tin=02508201610067®Number=0000000000091782&sum=100000 [14:05:00]OFD Sender: Processing packet 117421 [packets to send 76, broken 75] [14:05:00]ProducePacketName [14:05:00]name=ofd_packets/00117421 [14:05:00]OFD Sender: To server: pG, [14:05:00]CommunicateWithHost lk.salyk.kg:30040 [14:05:00]ConnectInit lk.salyk.kg [14:05:00]written 0, free lines is 4095 [14:05:00]Connected sock=9 [14:05: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 36 37 0C 01 00 00 3A 9D 04 01 2B 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 79 00 00 00 F4 03 04 00 8C 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AD CA 01 00 35 04 06 00 94 8B E4 B5 09 22 18 B4 67 AD EC 58 FE F7 [14:05: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 36 37 4F 00 00 00 22 32 47 00 43 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 36 37 10 04 04 00 AD CA 01 00 F4 03 04 00 49 F4 1D 67 B6 04 01 00 00 33 E7 A0 4F 4C B3 10 3B [14:05:00]CommunicateWithHost err = 0 [14:05:00]CheckOFDResponse [14:05:00]1017 (14) - 77093643461234 [14:05:00]1041 (16) - 0000000000871767 [14:05:00]1040 (4) - 117421 [14:05:00]1012 (4) - 27.10.2024 08:05 [14:05:00]1206 (1) - 0 [14:05:00]OFD Sender: Remove packet 117421 [14:05:00]ProducePacketName [14:05:00]name=ofd_packets/00117421 [14:05:00]NVStorageDeleteData [14:05:00]Write to MH i2c: 01 00 00 B8 17 CF [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 07 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 07 00 B8 17 00 00 00 00 00 B0 0C 92 [14:05:00]RasterBufferAndPrint [14:05:00]line [14:05:00]line [14:05:00]line [14:05:00]line [14:05:00]line [14:05:00]written 0, free lines is 3254 [14:05:00]MH_Cut [14:05:00]Write to MH i2c: D1 01 00 BF 17 01 A8 [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: D1 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: D1 01 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: D1 01 00 BF 17 00 A7 [14:05:00]Write to MH i2c: 01 00 00 C0 17 D7 [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:01]OFD Sender: No OFD packet to send [14:05:01]*** Cut start [14:05:01]*** Purtial cut [14:05:01]*** Stage 1: CUTSNS_PIN = 1 [14:05:01]Read from MH i2c: 01 [14:05:01]MH_I2C_Read... [14:05:01]*** Stop cut motor [14:05:01]*** Cut end [14:05:01]Read from MH i2c: 01 07 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 C0 17 00 00 00 00 00 FF 0F EC [14:05:01]process_action close_receipt done [14:05:01]requested_data is exist [14:05:01]produce_requested_data [14:05:01]requested_item fm.sn is exist - process it [14:05:01]wFMCommunicate request_size=4 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 11 00 00 [14:05:01]Write to MH i2c: E2 08 00 C1 17 80 11 00 00 00 00 00 00 52 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:02]Read from MH i2c: E2 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 17 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 17 00 C1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A9 [14:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:05:02]wFMCommunicate OK [14:05:02]requested_item fd.num is exist - process it [14:05:02]SAM_PROTO_GetFieldsCounters [14:05:02]wFMCommunicate request_size=4 [14:05:02]MH_SAM_APDU [14:05:02]CAPDU: 80 13 00 00 [14:05:02]Write to MH i2c: E2 08 00 C2 17 80 13 00 00 00 00 00 00 55 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:02]Read from MH i2c: E2 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 62 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 62 00 C2 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AD CA 01 00 0E 04 04 00 1E 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 7F [14:05: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AD CA 01 00 0E 04 04 00 1E 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 [14:05:02]wFMCommunicate OK [14:05:02]SAM_PROTO_GetFieldsCounters done [14:05:02]requested_item shift.num is exist - process it [14:05:02]requested_item shift.opened is exist - process it [14:05:02]req_shift_opened [14:05:02]FM_GetShiftState [14:05:02]SAM_PROTO_GetShiftState [14:05:02]wFMCommunicate request_size=4 [14:05:02]MH_SAM_APDU [14:05:02]CAPDU: 80 13 01 00 [14:05:02]Write to MH i2c: E2 08 00 C3 17 80 13 01 00 00 00 00 00 57 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:02]Read from MH i2c: E2 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 0E 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 0E 00 C3 17 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 96 [14:05:02]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:05:02]wFMCommunicate OK [14:05:02]SAM_PROTO_GetShiftState done [14:05:02]FM_GetShiftState done [14:05:02]req_shift_opened done [14:05:02]requested_item shift.open_date is exist - process it [14:05:02]req_shift_open_date [14:05:02]req_shift_open_date done [14:05:02]produce_requested_data done [14:05:02]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117421,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:05:02]process_action_free close_receipt [14:05:02]json_value_free [14:05:02]json_value_free done [14:05:02]process_json_proto returns [14:05:02]Send response to host [14:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117421,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:05:02]free response buf [14:05:02]execute_script done [14:05:02]execute_script returns [14:05:02]free content buf [14:05:02]Sock 7.Close socket [14:05:02]Sock 7.Thread stoped [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:36]accept exits with 10 [14:20:36]New connection [14:20:36]New thread 3067456868 created [14:20:36]Thread 3067600228 joined [14:20:36]Waiting for new connection... [14:20:36] Sock 10.Parse request [14:20:36]Sock 10.Check first char [14:20:36]Sock 10.First char is OK [14:20:36]request: POST /json_proto HTTP/1.0 [14:20:36]Method: POST [14:20:36]URL: /json_proto [14:20:36]Method is POST - this is cgi request [14:20:36]url: /json_proto [14:20:36]query_string will be loaded in cgi processing [14:20:36]execute_cgi json_proto POST (null) [14:20:36]execute_cgi path=json_proto method=POST [14:20:36]POST find Content-Length [14:20:36]Host: 172.17.96.67:8080 [14:20:36]Content-Length: 677 [14:20:36]Content-Type: application/json [14:20:36] [14:20:36]POST finish read [14:20:36]Found Content-Length = 677 [14:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:20:36]execute_script... [14:20: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)245198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:20:36]POST & json_proto [14:20:36]process_json_proto [14:20:36]json parsed OK: [14:20:36]protocol is kg_v1.0 [14:20:36]action value=close_receipt [14:20:36]process_action close_receipt [14:20:36]cmd_close_receipt [14:20:36]MH_GetDate [14:20:36]Write to MH i2c: F0 00 00 C4 17 CA [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: F0 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: F0 09 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: F0 09 00 C4 17 00 36 4C 1E 67 2B 09 1E 67 93 [14:20:36]GetLastDocTimeStamp 1730037900 [14:20:36]current date 1730038838 [14:20:36]FM_GetShiftState [14:20:36]SAM_PROTO_GetShiftState [14:20:36]wFMCommunicate request_size=4 [14:20:36]MH_SAM_APDU [14:20:36]CAPDU: 80 13 01 00 [14:20:36]Write to MH i2c: E2 08 00 C5 17 80 13 01 00 00 00 00 00 59 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 0E 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 0E 00 C5 17 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 98 [14:20:36]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:20:36]wFMCommunicate OK [14:20:36]SAM_PROTO_GetShiftState done [14:20:36]FM_GetShiftState done [14:20:36]opened in 1729987372 [14:20:36]opened+sec_in_day 1730073772 [14:20:36]quantity*price = 50041 [14:20:36]sum+1 = 50042 [14:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 122 27.10.2024 14:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117422 ФПД: 65858249139903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142038&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117422&fm=65858249139903&tin=02508201610067®Number=0000000000091782&sum=50000 [14:20:38]StoreToDocumentArchive [14:20:38]shift 542 fd 117422 [14:20:38]save to /storage/0542/doc_00117422 [14:20:38]save last doc name /storage/0542/doc_00117422 to /storage/kkm_last_doc_name [14:20:38]save OK [14:20:38]Clear old archive folders... [14:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:38]tlvbuf is 0170F640 [14:20:38]SAM_PROTO_ClearQueue [14:20:38]wFMCommunicate request_size=4 [14:20:38]MH_SAM_APDU [14:20:38]CAPDU: 80 09 00 00 [14:20:38]Write to MH i2c: E2 08 00 D2 17 80 09 00 00 00 00 00 00 5B [14:20:38]Write i2c OK [14:20:38]MH_I2C_Read... [14:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:38]Read from MH i2c: E2 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 03 00 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 03 00 D2 17 00 90 00 5D [14:20:38]RAPDU: 90 00 [14:20:38]wFMCommunicate OK [14:20:38]SAM_PROTO_ClearQueue done [14:20:38]KKMCreateOFDPacket [14:20:38]OFDProtocolAddRootSTLVToBuf [14:20:38]FM_MakeSignedData [14:20:38]FM_MakeSignedData [14:20:38]SAM_PROTO_SignData [14:20:38]wFMCommunicate request_size=4 [14:20:38]MH_SAM_APDU [14:20:38]CAPDU: 80 0D 01 02 [14:20:38]Write to MH i2c: E2 08 00 D3 17 80 0D 01 02 00 00 00 00 63 [14:20:38]Write i2c OK [14:20:38]MH_I2C_Read... [14:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:38]Read from MH i2c: E2 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 03 00 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 03 00 D3 17 00 90 00 5E [14:20:38]RAPDU: 90 00 [14:20:38]wFMCommunicate OK [14:20:38]wFMCommunicate request_size=255 [14:20:38]MH_SAM_APDU [14:20: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 36 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AE CA 01 00 35 04 06 00 3B [14:20:38]Write to MH i2c: E2 02 01 D4 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 7A 00 00 00 F4 03 04 00 36 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AE CA 01 00 35 04 06 00 3B 00 00 4A [14:20:38]Write i2c OK [14:20:38]MH_I2C_Read... [14:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:38]Read from MH i2c: E2 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 03 00 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 03 00 D4 17 00 90 00 5F [14:20:38]RAPDU: 90 00 [14:20:38]wFMCommunicate OK [14:20:38]wFMCommunicate request_size=10 [14:20:38]MH_SAM_APDU [14:20:38]CAPDU: 80 0D 02 02 05 E5 D1 8B A6 BF [14:20:38]Write to MH i2c: E2 0D 00 D5 17 80 0D 02 02 05 00 E5 D1 8B A6 BF 00 00 16 [14:20:38]Write i2c OK [14:20:38]MH_I2C_Read... [14:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:38]Read from MH i2c: E2 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 03 00 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 03 00 D5 17 00 90 00 60 [14:20:38]RAPDU: 90 00 [14:20:38]wFMCommunicate OK [14:20:38]wFMCommunicate request_size=4 [14:20:38]MH_SAM_APDU [14:20:38]CAPDU: 80 0D 03 02 [14:20:38]Write to MH i2c: E2 08 00 D6 17 80 0D 03 02 00 00 00 00 68 [14:20:38]Write i2c OK [14:20:38]MH_I2C_Read... [14:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:38]Read from MH i2c: E2 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 0B 00 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 0B 00 D6 17 00 A6 CE 91 B8 FF 9B 6E A8 90 00 D6 [14:20:38]RAPDU: A6 CE 91 B8 FF 9B 6E A8 90 00 [14:20:38]wFMCommunicate OK [14:20:38]SAM_PROTO_SignData done [14:20:38]FM_MakeSignedData done [14:20:38]CreateOFDProtocolMessage [14:20:38]wFMCommunicate request_size=4 [14:20:38]MH_SAM_APDU [14:20:38]CAPDU: 80 11 00 00 [14:20:38]Write to MH i2c: E2 08 00 D7 17 80 11 00 00 00 00 00 00 68 [14:20:38]Write i2c OK [14:20:38]MH_I2C_Read... [14:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:38]Read from MH i2c: E2 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 17 00 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: E2 17 00 D7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BF [14:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:20:38]wFMCommunicate OK [14:20:38]CreateOFDProtocolMessage done [14:20:38]OFDSenderStorePacket 117422 [14:20:38]StoreOFDPacket docnum=117422 [14:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C2 BD 07 01 80 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 36 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AE CA 01 00 35 04 06 00 3B E5 D1 8B A6 BF A6 CE 91 B8 FF 9B 6E A8 [14:20:38]CheckFolder [14:20:38]dirname=/storage/ofd_packets [14:20:38]CheckFolder done [14:20:38]ProducePacketName [14:20:38]name=ofd_packets/00117422 [14:20:38]NVStorageSaveData ofd_packets/00117422 [14:20:38]File name is /storage/ofd_packets/00117422 [14:20:38]Write 301 bytes [14:20:38]NVStorageSaveData done [14:20:38]OFDSenderStorePacket done [14:20:38]KKMCreateOFDPacket done [14:20:38]NVStorageSaveData kkm_last_timestamp [14:20:38]File name is /storage/kkm_last_timestamp [14:20:38]Write 4 bytes [14:20:38]NVStorageSaveData done [14:20:38]ExternCall_PrintAddStr [14:20:38]wPrintStart [14:20:38]Write to MH i2c: 01 00 00 D8 17 EF [14:20:38]Write i2c OK [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: 01 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: 01 07 00 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: 01 07 00 D8 17 00 00 00 00 00 FF 0F 04 [14:20:38]RasterBufferAndPrint [14:20:38]line Счет N : (1)245198 [14:20:38]line ИНН: 02508201610067 [14:20:38]line Контрольно-Кассовый Чек [14:20:38]line ПРОДАЖА [14:20:38]line ТРК (МРК, ГНК) : 21 [14:20:38]line Товар: 2710124130 [14:20:38]line Аи-92-К-2 [14:20:38]line 7.480 * 66.90 [14:20:38]line = 500.41 [14:20:38]line НДС 12% НСП 1% [14:20:38]line > о реализуемом товаре [14:20:38]line ОКРУГЛЕНИЕ: -0.41 [14:20:38]line ИТОГО: 500.00 [14:20:38]line Внесено: 500.00 [14:20:38]line СДАЧА: 0.00 [14:20:38]line НСП 1% : 4.43 [14:20:38]line НДС 12% : 53.14 [14:20:38]OFD Sender: Processing packet 117422 [packets to send 76, broken 75] [14:20:38]line Наличными: 500.00 [14:20:38]line Безнал.: 0.00 [14:20:38]line Место: АЗС № 173 "Партнер Нефть" [14:20:38]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:20:38]line СНО: Общий режим [14:20:38]line Чек 122 27.10.2024 14:20 [14:20:38]line Смена: 542 ФФД: 1.0 [14:20:38]line ЗНМ: 0300000115 [14:20:38]line РНМ: 0000000000091782 [14:20:38]line Версия ККМ: 001 [14:20:38]line ФМ: 0000000000871767 [14:20:38]line ФД: 117422 [14:20:38]line ФПД: 65858249139903 [14:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142038&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117422&fm=65858249139903&tin=02508201610067®Number=0000000000091782&sum=50000 [14:20:38]ProducePacketName [14:20:38]name=ofd_packets/00117422 [14:20:38]OFD Sender: To server: pG, [14:20:38]CommunicateWithHost lk.salyk.kg:30040 [14:20:38]ConnectInit lk.salyk.kg [14:20:38]written 0, free lines is 4095 [14:20:38]Connected sock=11 [14:20: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 36 37 0F 01 00 00 C2 BD 07 01 80 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 36 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AE CA 01 00 35 04 06 00 3B E5 D1 8B A6 BF A6 CE 91 B8 FF 9B 6E A8 [14:20: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 36 37 4F 00 00 00 93 B9 47 00 91 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 36 37 10 04 04 00 AE CA 01 00 F4 03 04 00 F3 F7 1D 67 B6 04 01 00 00 5C 2A 7D 04 82 31 75 F5 [14:20:39]CommunicateWithHost err = 0 [14:20:39]CheckOFDResponse [14:20:39]1017 (14) - 77093643461234 [14:20:39]1041 (16) - 0000000000871767 [14:20:39]1040 (4) - 117422 [14:20:39]1012 (4) - 27.10.2024 08:21 [14:20:39]1206 (1) - 0 [14:20:39]OFD Sender: Remove packet 117422 [14:20:39]ProducePacketName [14:20:39]name=ofd_packets/00117422 [14:20:39]NVStorageDeleteData [14:20:39]Write to MH i2c: 01 00 00 02 18 1A [14:20:39]Write i2c OK [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: 01 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: 01 07 00 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: 01 07 00 02 18 00 00 00 00 00 AF 0C DC [14:20:39]RasterBufferAndPrint [14:20:39]line [14:20:39]line [14:20:39]line [14:20:39]line [14:20:39]line [14:20:39]written 0, free lines is 3251 [14:20:39]MH_Cut [14:20:39]Write to MH i2c: D1 01 00 09 18 01 F3 [14:20:39]Write i2c OK [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: D1 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: D1 01 00 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: D1 01 00 09 18 00 F2 [14:20:39]Write to MH i2c: 01 00 00 0A 18 22 [14:20:39]Write i2c OK [14:20:39]MH_I2C_Read... [14:20:39]OFD Sender: No OFD packet to send [14:20:39]*** Cut start [14:20:39]*** Purtial cut [14:20:39]*** Stage 1: CUTSNS_PIN = 1 [14:20:40]Read from MH i2c: 01 [14:20:40]MH_I2C_Read... [14:20:40]*** Stop cut motor [14:20:40]*** Cut end [14:20:40]Read from MH i2c: 01 07 00 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: 01 07 00 0A 18 00 00 00 00 00 FF 0F 37 [14:20:40]process_action close_receipt done [14:20:40]requested_data is exist [14:20:40]produce_requested_data [14:20:40]requested_item fm.sn is exist - process it [14:20:40]wFMCommunicate request_size=4 [14:20:40]MH_SAM_APDU [14:20:40]CAPDU: 80 11 00 00 [14:20:40]Write to MH i2c: E2 08 00 0B 18 80 11 00 00 00 00 00 00 9D [14:20:40]Write i2c OK [14:20:40]MH_I2C_Read... [14:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:40]Read from MH i2c: E2 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: E2 17 00 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: E2 17 00 0B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F4 [14:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:20:40]wFMCommunicate OK [14:20:40]requested_item fd.num is exist - process it [14:20:40]SAM_PROTO_GetFieldsCounters [14:20:40]wFMCommunicate request_size=4 [14:20:40]MH_SAM_APDU [14:20:40]CAPDU: 80 13 00 00 [14:20:40]Write to MH i2c: E2 08 00 0C 18 80 13 00 00 00 00 00 00 A0 [14:20:40]Write i2c OK [14:20:40]MH_I2C_Read... [14:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:40]Read from MH i2c: E2 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: E2 62 00 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: E2 62 00 0C 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AE CA 01 00 0E 04 04 00 1E 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 CE [14:20: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AE CA 01 00 0E 04 04 00 1E 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 [14:20:40]wFMCommunicate OK [14:20:40]SAM_PROTO_GetFieldsCounters done [14:20:40]requested_item shift.num is exist - process it [14:20:40]requested_item shift.opened is exist - process it [14:20:40]req_shift_opened [14:20:40]FM_GetShiftState [14:20:40]SAM_PROTO_GetShiftState [14:20:40]wFMCommunicate request_size=4 [14:20:40]MH_SAM_APDU [14:20:40]CAPDU: 80 13 01 00 [14:20:40]Write to MH i2c: E2 08 00 0D 18 80 13 01 00 00 00 00 00 A2 [14:20:40]Write i2c OK [14:20:40]MH_I2C_Read... [14:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:40]Read from MH i2c: E2 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: E2 0E 00 [14:20:40]MH_I2C_Read... [14:20:40]Read from MH i2c: E2 0E 00 0D 18 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E1 [14:20:40]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:20:40]wFMCommunicate OK [14:20:40]SAM_PROTO_GetShiftState done [14:20:40]FM_GetShiftState done [14:20:40]req_shift_opened done [14:20:40]requested_item shift.open_date is exist - process it [14:20:40]req_shift_open_date [14:20:40]req_shift_open_date done [14:20:40]produce_requested_data done [14:20:40]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117422,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:20:40]process_action_free close_receipt [14:20:40]json_value_free [14:20:40]json_value_free done [14:20:40]process_json_proto returns [14:20:40]Send response to host [14:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117422,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:20:40]free response buf [14:20:40]execute_script done [14:20:40]execute_script returns [14:20:40]free content buf [14:20:40]Sock 10.Close socket [14:20:40]Sock 10.Thread stoped [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:01]accept exits with 7 [14:23:01]New connection [14:23:01]New thread 3067600228 created [14:23:01]Thread 3067456868 joined [14:23:01]Waiting for new connection... [14:23:01] Sock 7.Parse request [14:23:01]Sock 7.Check first char [14:23:01]Sock 7.First char is OK [14:23:01]request: POST /json_proto HTTP/1.0 [14:23:01]Method: POST [14:23:01]URL: /json_proto [14:23:01]Method is POST - this is cgi request [14:23:01]url: /json_proto [14:23:01]query_string will be loaded in cgi processing [14:23:01]execute_cgi json_proto POST (null) [14:23:01]execute_cgi path=json_proto method=POST [14:23:01]POST find Content-Length [14:23:01]Host: 172.17.96.67:8080 [14:23:01]Content-Length: 677 [14:23:01]Content-Type: application/json [14:23:01] [14:23:01]POST finish read [14:23:01]Found Content-Length = 677 [14:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [14:23:01]execute_script... [14:23: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)245199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [14:23:01]POST & json_proto [14:23:01]process_json_proto [14:23:01]json parsed OK: [14:23:01]protocol is kg_v1.0 [14:23:01]action value=close_receipt [14:23:01]process_action close_receipt [14:23:01]cmd_close_receipt [14:23:01]MH_GetDate [14:23:01]Write to MH i2c: F0 00 00 0E 18 15 [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: F0 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: F0 09 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: F0 09 00 0E 18 00 C7 4C 1E 67 2B 09 1E 67 6F [14:23:01]GetLastDocTimeStamp 1730038838 [14:23:01]current date 1730038983 [14:23:01]FM_GetShiftState [14:23:01]SAM_PROTO_GetShiftState [14:23:01]wFMCommunicate request_size=4 [14:23:01]MH_SAM_APDU [14:23:01]CAPDU: 80 13 01 00 [14:23:01]Write to MH i2c: E2 08 00 0F 18 80 13 01 00 00 00 00 00 A4 [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 0E 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 0E 00 0F 18 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E3 [14:23:01]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:23:01]wFMCommunicate OK [14:23:01]SAM_PROTO_GetShiftState done [14:23:01]FM_GetShiftState done [14:23:01]opened in 1729987372 [14:23:01]opened+sec_in_day 1730073772 [14:23:01]quantity*price = 30038 [14:23:01]sum+1 = 30039 [14:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 123 27.10.2024 14:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117423 ФПД: 178753395651774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142303&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117423&fm=178753395651774&tin=02508201610067®Number=0000000000091782&sum=30000 [14:23:02]StoreToDocumentArchive [14:23:02]shift 542 fd 117423 [14:23:02]save to /storage/0542/doc_00117423 [14:23:02]save last doc name /storage/0542/doc_00117423 to /storage/kkm_last_doc_name [14:23:02]save OK [14:23:02]Clear old archive folders... [14:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:02]tlvbuf is B6FF6C30 [14:23:02]SAM_PROTO_ClearQueue [14:23:02]wFMCommunicate request_size=4 [14:23:02]MH_SAM_APDU [14:23:02]CAPDU: 80 09 00 00 [14:23:02]Write to MH i2c: E2 08 00 1C 18 80 09 00 00 00 00 00 00 A6 [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:02]Read from MH i2c: E2 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 03 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 03 00 1C 18 00 90 00 A8 [14:23:02]RAPDU: 90 00 [14:23:02]wFMCommunicate OK [14:23:02]SAM_PROTO_ClearQueue done [14:23:02]KKMCreateOFDPacket [14:23:02]OFDProtocolAddRootSTLVToBuf [14:23:02]FM_MakeSignedData [14:23:02]FM_MakeSignedData [14:23:02]SAM_PROTO_SignData [14:23:02]wFMCommunicate request_size=4 [14:23:02]MH_SAM_APDU [14:23:02]CAPDU: 80 0D 01 02 [14:23:02]Write to MH i2c: E2 08 00 1D 18 80 0D 01 02 00 00 00 00 AE [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:02]Read from MH i2c: E2 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 03 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 03 00 1D 18 00 90 00 A9 [14:23:02]RAPDU: 90 00 [14:23:02]wFMCommunicate OK [14:23:02]wFMCommunicate request_size=255 [14:23:02]MH_SAM_APDU [14:23: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 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 7B 00 00 00 F4 03 04 00 C7 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AF CA 01 00 35 04 06 00 A2 [14:23:02]Write to MH i2c: E2 02 01 1E 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 7B 00 00 00 F4 03 04 00 C7 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AF CA 01 00 35 04 06 00 A2 00 00 83 [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:02]Read from MH i2c: E2 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 03 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 03 00 1E 18 00 90 00 AA [14:23:02]RAPDU: 90 00 [14:23:02]wFMCommunicate OK [14:23:02]wFMCommunicate request_size=10 [14:23:02]MH_SAM_APDU [14:23:02]CAPDU: 80 0D 02 02 05 93 44 A6 74 BE [14:23:02]Write to MH i2c: E2 0D 00 1F 18 80 0D 02 02 05 00 93 44 A6 74 BE 00 00 6A [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:02]Read from MH i2c: E2 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 03 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 03 00 1F 18 00 90 00 AB [14:23:02]RAPDU: 90 00 [14:23:02]wFMCommunicate OK [14:23:02]wFMCommunicate request_size=4 [14:23:02]MH_SAM_APDU [14:23:02]CAPDU: 80 0D 03 02 [14:23:02]Write to MH i2c: E2 08 00 20 18 80 0D 03 02 00 00 00 00 B3 [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0B 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0B 00 20 18 00 2A 09 40 5B 53 6D 0E 75 90 00 C5 [14:23:03]RAPDU: 2A 09 40 5B 53 6D 0E 75 90 00 [14:23:03]wFMCommunicate OK [14:23:03]SAM_PROTO_SignData done [14:23:03]FM_MakeSignedData done [14:23:03]CreateOFDProtocolMessage [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 11 00 00 [14:23:03]Write to MH i2c: E2 08 00 21 18 80 11 00 00 00 00 00 00 B3 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 17 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 17 00 21 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0A [14:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:23:03]wFMCommunicate OK [14:23:03]CreateOFDProtocolMessage done [14:23:03]OFDSenderStorePacket 117423 [14:23:03]StoreOFDPacket docnum=117423 [14:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 40 77 07 01 94 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7B 00 00 00 F4 03 04 00 C7 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AF CA 01 00 35 04 06 00 A2 93 44 A6 74 BE 2A 09 40 5B 53 6D 0E 75 [14:23:03]CheckFolder [14:23:03]dirname=/storage/ofd_packets [14:23:03]CheckFolder done [14:23:03]ProducePacketName [14:23:03]name=ofd_packets/00117423 [14:23:03]NVStorageSaveData ofd_packets/00117423 [14:23:03]File name is /storage/ofd_packets/00117423 [14:23:03]Write 301 bytes [14:23:03]NVStorageSaveData done [14:23:03]OFDSenderStorePacket done [14:23:03]KKMCreateOFDPacket done [14:23:03]NVStorageSaveData kkm_last_timestamp [14:23:03]File name is /storage/kkm_last_timestamp [14:23:03]Write 4 bytes [14:23:03]NVStorageSaveData done [14:23:03]ExternCall_PrintAddStr [14:23:03]wPrintStart [14:23:03]Write to MH i2c: 01 00 00 22 18 3A [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 07 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 07 00 22 18 00 00 00 00 00 FF 0F 4F [14:23:03]RasterBufferAndPrint [14:23:03]line Счет N : (1)245199 [14:23:03]line ИНН: 02508201610067 [14:23:03]line Контрольно-Кассовый Чек [14:23:03]line ПРОДАЖА [14:23:03]line ТРК (МРК, ГНК) : 11 [14:23:03]line Товар: 2710124130 [14:23:03]line Аи-92-К-2 [14:23:03]line 4.490 * 66.90 [14:23:03]line = 300.38 [14:23:03]line НДС 12% НСП 1% [14:23:03]line > о реализуемом товаре [14:23:03]line ОКРУГЛЕНИЕ: -0.38 [14:23:03]line ИТОГО: 300.00 [14:23:03]line Внесено: 300.00 [14:23:03]line СДАЧА: 0.00 [14:23:03]line НСП 1% : 2.66 [14:23:03]line НДС 12% : 31.90 [14:23:03]line Наличными: 300.00 [14:23:03]line Безнал.: 0.00 [14:23:03]line Место: АЗС № 173 "Партнер Нефть" [14:23:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:23:03]line СНО: Общий режим [14:23:03]line Чек 123 27.10.2024 14:23 [14:23:03]line Смена: 542 ФФД: 1.0 [14:23:03]line ЗНМ: 0300000115 [14:23:03]line РНМ: 0000000000091782 [14:23:03]line Версия ККМ: 001 [14:23:03]line ФМ: 0000000000871767 [14:23:03]line ФД: 117423 [14:23:03]line ФПД: 178753395651774 [14:23:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142303&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117423&fm=178753395651774&tin=02508201610067®Number=0000000000091782&sum=30000 [14:23:03]OFD Sender: Processing packet 117423 [packets to send 76, broken 75] [14:23:03]ProducePacketName [14:23:03]name=ofd_packets/00117423 [14:23:03]OFD Sender: To server: pG, [14:23:03]CommunicateWithHost lk.salyk.kg:30040 [14:23:03]ConnectInit lk.salyk.kg [14:23:03]written 0, free lines is 4095 [14:23:03]Connected sock=10 [14:23: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 36 37 0F 01 00 00 40 77 07 01 94 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7B 00 00 00 F4 03 04 00 C7 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AF CA 01 00 35 04 06 00 A2 93 44 A6 74 BE 2A 09 40 5B 53 6D 0E 75 [14:23: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 36 37 4F 00 00 00 74 E5 47 00 81 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 36 37 10 04 04 00 AF CA 01 00 F4 03 04 00 84 F8 1D 67 B6 04 01 00 00 B7 E0 EC 1E 37 7A 23 67 [14:23:03]CommunicateWithHost err = 0 [14:23:03]CheckOFDResponse [14:23:03]1017 (14) - 77093643461234 [14:23:03]1041 (16) - 0000000000871767 [14:23:03]1040 (4) - 117423 [14:23:03]1012 (4) - 27.10.2024 08:23 [14:23:03]1206 (1) - 0 [14:23:03]OFD Sender: Remove packet 117423 [14:23:03]ProducePacketName [14:23:03]name=ofd_packets/00117423 [14:23:03]NVStorageDeleteData [14:23:03]Write to MH i2c: 01 00 00 4C 18 64 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 07 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 07 00 4C 18 00 00 00 00 00 B3 0C 2A [14:23:03]RasterBufferAndPrint [14:23:03]line [14:23:03]line [14:23:03]line [14:23:03]line [14:23:03]line [14:23:03]written 0, free lines is 3255 [14:23:03]MH_Cut [14:23:03]Write to MH i2c: D1 01 00 53 18 01 3D [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: D1 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: D1 01 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: D1 01 00 53 18 00 3C [14:23:03]Write to MH i2c: 01 00 00 54 18 6C [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:04]OFD Sender: No OFD packet to send [14:23:04]*** Cut start [14:23:04]*** Purtial cut [14:23:04]*** Stage 1: CUTSNS_PIN = 1 [14:23:05]Read from MH i2c: 01 [14:23:05]MH_I2C_Read... [14:23:05]*** Stop cut motor [14:23:05]*** Cut end [14:23:05]Read from MH i2c: 01 07 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 FF 0F 81 [14:23:05]process_action close_receipt done [14:23:05]requested_data is exist [14:23:05]produce_requested_data [14:23:05]requested_item fm.sn is exist - process it [14:23:05]wFMCommunicate request_size=4 [14:23:05]MH_SAM_APDU [14:23:05]CAPDU: 80 11 00 00 [14:23:05]Write to MH i2c: E2 08 00 55 18 80 11 00 00 00 00 00 00 E7 [14:23:05]Write i2c OK [14:23:05]MH_I2C_Read... [14:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:05]Read from MH i2c: E2 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: E2 17 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: E2 17 00 55 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3E [14:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:23:05]wFMCommunicate OK [14:23:05]requested_item fd.num is exist - process it [14:23:05]SAM_PROTO_GetFieldsCounters [14:23:05]wFMCommunicate request_size=4 [14:23:05]MH_SAM_APDU [14:23:05]CAPDU: 80 13 00 00 [14:23:05]Write to MH i2c: E2 08 00 56 18 80 13 00 00 00 00 00 00 EA [14:23:05]Write i2c OK [14:23:05]MH_I2C_Read... [14:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:05]Read from MH i2c: E2 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: E2 62 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: E2 62 00 56 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AF CA 01 00 0E 04 04 00 1E 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 1C [14:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AF CA 01 00 0E 04 04 00 1E 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 [14:23:05]wFMCommunicate OK [14:23:05]SAM_PROTO_GetFieldsCounters done [14:23:05]requested_item shift.num is exist - process it [14:23:05]requested_item shift.opened is exist - process it [14:23:05]req_shift_opened [14:23:05]FM_GetShiftState [14:23:05]SAM_PROTO_GetShiftState [14:23:05]wFMCommunicate request_size=4 [14:23:05]MH_SAM_APDU [14:23:05]CAPDU: 80 13 01 00 [14:23:05]Write to MH i2c: E2 08 00 57 18 80 13 01 00 00 00 00 00 EC [14:23:05]Write i2c OK [14:23:05]MH_I2C_Read... [14:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:05]Read from MH i2c: E2 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: E2 0E 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: E2 0E 00 57 18 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2B [14:23:05]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:23:05]wFMCommunicate OK [14:23:05]SAM_PROTO_GetShiftState done [14:23:05]FM_GetShiftState done [14:23:05]req_shift_opened done [14:23:05]requested_item shift.open_date is exist - process it [14:23:05]req_shift_open_date [14:23:05]req_shift_open_date done [14:23:05]produce_requested_data done [14:23:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117423,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:23:05]process_action_free close_receipt [14:23:05]json_value_free [14:23:05]json_value_free done [14:23:05]process_json_proto returns [14:23:05]Send response to host [14:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117423,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:23:05]free response buf [14:23:05]execute_script done [14:23:05]execute_script returns [14:23:05]free content buf [14:23:05]Sock 7.Close socket [14:23:05]Sock 7.Thread stoped [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:43]accept exits with 9 [14:26:43]New connection [14:26:43]New thread 3067456868 created [14:26:43]Thread 3067600228 joined [14:26:43]Waiting for new connection... [14:26:43] Sock 9.Parse request [14:26:43]Sock 9.Check first char [14:26:43]Sock 9.First char is OK [14:26:43]request: POST /json_proto HTTP/1.0 [14:26:43]Method: POST [14:26:43]URL: /json_proto [14:26:43]Method is POST - this is cgi request [14:26:43]url: /json_proto [14:26:43]query_string will be loaded in cgi processing [14:26:43]execute_cgi json_proto POST (null) [14:26:43]execute_cgi path=json_proto method=POST [14:26:43]POST find Content-Length [14:26:43]Host: 172.17.96.67:8080 [14:26:43]Content-Length: 678 [14:26:43]Content-Type: application/json [14:26:43] [14:26:43]POST finish read [14:26:43]Found Content-Length = 678 [14:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [14:26:43]execute_script... [14:26: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)245200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [14:26:43]POST & json_proto [14:26:43]process_json_proto [14:26:43]json parsed OK: [14:26:43]protocol is kg_v1.0 [14:26:43]action value=close_receipt [14:26:43]process_action close_receipt [14:26:43]cmd_close_receipt [14:26:43]MH_GetDate [14:26:43]Write to MH i2c: F0 00 00 58 18 5F [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 58 18 00 A5 4D 1E 67 2B 09 1E 67 98 [14:26:43]GetLastDocTimeStamp 1730038983 [14:26:43]current date 1730039205 [14:26:43]FM_GetShiftState [14:26:43]SAM_PROTO_GetShiftState [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 13 01 00 [14:26:43]Write to MH i2c: E2 08 00 59 18 80 13 01 00 00 00 00 00 EE [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0E 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0E 00 59 18 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2D [14:26:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_GetShiftState done [14:26:44]FM_GetShiftState done [14:26:44]opened in 1729987372 [14:26:44]opened+sec_in_day 1730073772 [14:26:44]quantity*price = 70044 [14:26:44]sum+1 = 70045 [14:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 124 27.10.2024 14:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117424 ФПД: 88367732351991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142645&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117424&fm=88367732351991&tin=02508201610067®Number=0000000000091782&sum=70000 [14:26:45]StoreToDocumentArchive [14:26:45]shift 542 fd 117424 [14:26:45]save to /storage/0542/doc_00117424 [14:26:45]save last doc name /storage/0542/doc_00117424 to /storage/kkm_last_doc_name [14:26:45]save OK [14:26:45]Clear old archive folders... [14:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:45]tlvbuf is 016F7AC0 [14:26:45]SAM_PROTO_ClearQueue [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 09 00 00 [14:26:45]Write to MH i2c: E2 08 00 66 18 80 09 00 00 00 00 00 00 F0 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 66 18 00 90 00 F2 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_ClearQueue done [14:26:45]KKMCreateOFDPacket [14:26:45]OFDProtocolAddRootSTLVToBuf [14:26:45]FM_MakeSignedData [14:26:45]FM_MakeSignedData [14:26:45]SAM_PROTO_SignData [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 01 02 [14:26:45]Write to MH i2c: E2 08 00 67 18 80 0D 01 02 00 00 00 00 F8 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=255 [14:26:45]MH_SAM_APDU [14:26: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 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 7C 00 00 00 F4 03 04 00 A5 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B0 CA 01 00 35 04 06 00 50 [14:26:45]Write to MH i2c: E2 02 01 68 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 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 7C 00 00 00 F4 03 04 00 A5 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B0 CA 01 00 35 04 06 00 50 00 00 78 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 68 18 00 90 00 F4 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=10 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 02 02 05 5E B7 4B E3 F7 [14:26:45]Write to MH i2c: E2 0D 00 69 18 80 0D 02 02 05 00 5E B7 4B E3 F7 00 00 3F [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 03 02 [14:26:45]Write to MH i2c: E2 08 00 6A 18 80 0D 03 02 00 00 00 00 FD [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 6A 18 00 E3 BF 9E 23 9D EA 16 35 90 00 33 [14:26:45]RAPDU: E3 BF 9E 23 9D EA 16 35 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_SignData done [14:26:45]FM_MakeSignedData done [14:26:45]CreateOFDProtocolMessage [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 11 00 00 [14:26:45]Write to MH i2c: E2 08 00 6B 18 80 11 00 00 00 00 00 00 FD [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 6B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 54 [14:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:26:45]wFMCommunicate OK [14:26:45]CreateOFDProtocolMessage done [14:26:45]OFDSenderStorePacket 117424 [14:26:45]StoreOFDPacket docnum=117424 [14:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A2 0F 07 01 94 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7C 00 00 00 F4 03 04 00 A5 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B0 CA 01 00 35 04 06 00 50 5E B7 4B E3 F7 E3 BF 9E 23 9D EA 16 35 [14:26:45]CheckFolder [14:26:45]dirname=/storage/ofd_packets [14:26:45]CheckFolder done [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00117424 [14:26:45]NVStorageSaveData ofd_packets/00117424 [14:26:45]File name is /storage/ofd_packets/00117424 [14:26:45]Write 301 bytes [14:26:45]NVStorageSaveData done [14:26:45]OFDSenderStorePacket done [14:26:45]KKMCreateOFDPacket done [14:26:45]NVStorageSaveData kkm_last_timestamp [14:26:45]File name is /storage/kkm_last_timestamp [14:26:45]Write 4 bytes [14:26:45]NVStorageSaveData done [14:26:45]ExternCall_PrintAddStr [14:26:45]wPrintStart [14:26:45]Write to MH i2c: 01 00 00 6C 18 84 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 6C 18 00 00 00 00 00 FF 0F 99 [14:26:45]RasterBufferAndPrint [14:26:45]line Счет N : (1)245200 [14:26:45]line ИНН: 02508201610067 [14:26:45]line Контрольно-Кассовый Чек [14:26:45]line ПРОДАЖА [14:26:45]line ТРК (МРК, ГНК) : 11 [14:26:45]line Товар: 2710124130 [14:26:45]line Аи-92-К-2 [14:26:45]line 10.470 * 66.90 [14:26:45]line = 700.44 [14:26:45]line НДС 12% НСП 1% [14:26:45]line > о реализуемом товаре [14:26:45]line ОКРУГЛЕНИЕ: -0.44 [14:26:45]line ИТОГО: 700.00 [14:26:45]line Внесено: 700.00 [14:26:45]line СДАЧА: 0.00 [14:26:45]line НСП 1% : 6.20 [14:26:45]line НДС 12% : 74.38 [14:26:45]line Наличными: 700.00 [14:26:45]line Безнал.: 0.00 [14:26:45]line Место: АЗС № 173 "Партнер Нефть" [14:26:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:26:45]line СНО: Общий режим [14:26:45]line Чек 124 27.10.2024 14:26 [14:26:45]line Смена: 542 ФФД: 1.0 [14:26:45]line ЗНМ: 0300000115 [14:26:45]line РНМ: 0000000000091782 [14:26:45]line Версия ККМ: 001 [14:26:45]line ФМ: 0000000000871767 [14:26:45]line ФД: 117424 [14:26:45]line ФПД: 88367732351991 [14:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142645&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117424&fm=88367732351991&tin=02508201610067®Number=0000000000091782&sum=70000 [14:26:46]written 0, free lines is 4095 [14:26:46]OFD Sender: Processing packet 117424 [packets to send 76, broken 75] [14:26:46]ProducePacketName [14:26:46]name=ofd_packets/00117424 [14:26:46]OFD Sender: To server: pG, [14:26:46]CommunicateWithHost lk.salyk.kg:30040 [14:26:46]ConnectInit lk.salyk.kg [14:26:46]Connected sock=10 [14:26: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 36 37 0F 01 00 00 A2 0F 07 01 94 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7C 00 00 00 F4 03 04 00 A5 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B0 CA 01 00 35 04 06 00 50 5E B7 4B E3 F7 E3 BF 9E 23 9D EA 16 35 [14:26: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 36 37 4F 00 00 00 6E 4D 47 00 F6 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 36 37 10 04 04 00 B0 CA 01 00 F4 03 04 00 63 F9 1D 67 B6 04 01 00 00 3F 6A 5D 4B EB EF FC 7A [14:26:46]CommunicateWithHost err = 0 [14:26:46]CheckOFDResponse [14:26:46]1017 (14) - 77093643461234 [14:26:46]1041 (16) - 0000000000871767 [14:26:46]1040 (4) - 117424 [14:26:46]1012 (4) - 27.10.2024 08:27 [14:26:46]1206 (1) - 0 [14:26:46]OFD Sender: Remove packet 117424 [14:26:46]ProducePacketName [14:26:46]name=ofd_packets/00117424 [14:26:46]NVStorageDeleteData [14:26:46]Write to MH i2c: 01 00 00 96 18 AE [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 07 00 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 07 00 96 18 00 00 00 00 00 B1 0C 72 [14:26:46]RasterBufferAndPrint [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]written 0, free lines is 3253 [14:26:46]MH_Cut [14:26:46]Write to MH i2c: D1 01 00 9D 18 01 87 [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 9D 18 00 86 [14:26:46]Write to MH i2c: 01 00 00 9E 18 B6 [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]OFD Sender: No OFD packet to send [14:26:47]*** Cut start [14:26:47]*** Purtial cut [14:26:47]*** Stage 1: CUTSNS_PIN = 1 [14:26:47]Read from MH i2c: 01 [14:26:47]MH_I2C_Read... [14:26:47]*** Stop cut motor [14:26:47]*** Cut end [14:26:47]Read from MH i2c: 01 07 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 FF 0F CB [14:26:47]process_action close_receipt done [14:26:47]requested_data is exist [14:26:47]produce_requested_data [14:26:47]requested_item fm.sn is exist - process it [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 11 00 00 [14:26:47]Write to MH i2c: E2 08 00 9F 18 80 11 00 00 00 00 00 00 31 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 9F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 88 [14:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:26:47]wFMCommunicate OK [14:26:47]requested_item fd.num is exist - process it [14:26:47]SAM_PROTO_GetFieldsCounters [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 00 00 [14:26:47]Write to MH i2c: E2 08 00 A0 18 80 13 00 00 00 00 00 00 34 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 A0 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B0 CA 01 00 0E 04 04 00 1E 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 6A [14:26: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B0 CA 01 00 0E 04 04 00 1E 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 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetFieldsCounters done [14:26:47]requested_item shift.num is exist - process it [14:26:47]requested_item shift.opened is exist - process it [14:26:47]req_shift_opened [14:26:47]FM_GetShiftState [14:26:47]SAM_PROTO_GetShiftState [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 01 00 [14:26:47]Write to MH i2c: E2 08 00 A1 18 80 13 01 00 00 00 00 00 36 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 A1 18 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 75 [14:26:47]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetShiftState done [14:26:47]FM_GetShiftState done [14:26:47]req_shift_opened done [14:26:47]requested_item shift.open_date is exist - process it [14:26:47]req_shift_open_date [14:26:47]req_shift_open_date done [14:26:47]produce_requested_data done [14:26:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117424,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:26:47]process_action_free close_receipt [14:26:47]json_value_free [14:26:47]json_value_free done [14:26:47]process_json_proto returns [14:26:47]Send response to host [14:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117424,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:26:47]free response buf [14:26:47]execute_script done [14:26:47]execute_script returns [14:26:47]free content buf [14:26:47]Sock 9.Close socket [14:26:47]Sock 9.Thread stoped [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:25]accept exits with 7 [14:27:25]New connection [14:27:25]New thread 3067600228 created [14:27:25]Thread 3067456868 joined [14:27:25]Waiting for new connection... [14:27:25] Sock 7.Parse request [14:27:25]Sock 7.Check first char [14:27:25]Sock 7.First char is OK [14:27:25]request: POST /json_proto HTTP/1.0 [14:27:25]Method: POST [14:27:25]URL: /json_proto [14:27:25]Method is POST - this is cgi request [14:27:25]url: /json_proto [14:27:25]query_string will be loaded in cgi processing [14:27:25]execute_cgi json_proto POST (null) [14:27:25]execute_cgi path=json_proto method=POST [14:27:25]POST find Content-Length [14:27:25]Host: 172.17.96.67:8080 [14:27:25]Content-Length: 677 [14:27:25]Content-Type: application/json [14:27:25] [14:27:25]POST finish read [14:27:25]Found Content-Length = 677 [14:27:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:27:25]execute_script... [14:27: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)245201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:27:25]POST & json_proto [14:27:25]process_json_proto [14:27:25]json parsed OK: [14:27:25]protocol is kg_v1.0 [14:27:25]action value=close_receipt [14:27:25]process_action close_receipt [14:27:25]cmd_close_receipt [14:27:25]MH_GetDate [14:27:25]Write to MH i2c: F0 00 00 A2 18 A9 [14:27:25]Write i2c OK [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: F0 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: F0 09 00 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: F0 09 00 A2 18 00 CF 4D 1E 67 2B 09 1E 67 0C [14:27:25]GetLastDocTimeStamp 1730039205 [14:27:25]current date 1730039247 [14:27:25]FM_GetShiftState [14:27:25]SAM_PROTO_GetShiftState [14:27:25]wFMCommunicate request_size=4 [14:27:25]MH_SAM_APDU [14:27:25]CAPDU: 80 13 01 00 [14:27:25]Write to MH i2c: E2 08 00 A3 18 80 13 01 00 00 00 00 00 38 [14:27:25]Write i2c OK [14:27:25]MH_I2C_Read... [14:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:26]Read from MH i2c: E2 [14:27:26]MH_I2C_Read... [14:27:26]Read from MH i2c: E2 0E 00 [14:27:26]MH_I2C_Read... [14:27:26]Read from MH i2c: E2 0E 00 A3 18 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 77 [14:27:26]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:27:26]wFMCommunicate OK [14:27:26]SAM_PROTO_GetShiftState done [14:27:26]FM_GetShiftState done [14:27:26]opened in 1729987372 [14:27:26]opened+sec_in_day 1730073772 [14:27:26]quantity*price = 60009 [14:27:26]sum+1 = 60010 [14:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 125 27.10.2024 14:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117425 ФПД: 208190335603006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142727&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117425&fm=208190335603006&tin=02508201610067®Number=0000000000091782&sum=60000 [14:27:27]StoreToDocumentArchive [14:27:27]shift 542 fd 117425 [14:27:27]save to /storage/0542/doc_00117425 [14:27:27]save last doc name /storage/0542/doc_00117425 to /storage/kkm_last_doc_name [14:27:27]save OK [14:27:27]Clear old archive folders... [14:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:27]tlvbuf is 01704870 [14:27:27]SAM_PROTO_ClearQueue [14:27:27]wFMCommunicate request_size=4 [14:27:27]MH_SAM_APDU [14:27:27]CAPDU: 80 09 00 00 [14:27:27]Write to MH i2c: E2 08 00 B0 18 80 09 00 00 00 00 00 00 3A [14:27:27]Write i2c OK [14:27:27]MH_I2C_Read... [14:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:27]Read from MH i2c: E2 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 03 00 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 03 00 B0 18 00 90 00 3C [14:27:27]RAPDU: 90 00 [14:27:27]wFMCommunicate OK [14:27:27]SAM_PROTO_ClearQueue done [14:27:27]KKMCreateOFDPacket [14:27:27]OFDProtocolAddRootSTLVToBuf [14:27:27]FM_MakeSignedData [14:27:27]FM_MakeSignedData [14:27:27]SAM_PROTO_SignData [14:27:27]wFMCommunicate request_size=4 [14:27:27]MH_SAM_APDU [14:27:27]CAPDU: 80 0D 01 02 [14:27:27]Write to MH i2c: E2 08 00 B1 18 80 0D 01 02 00 00 00 00 42 [14:27:27]Write i2c OK [14:27:27]MH_I2C_Read... [14:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:27]Read from MH i2c: E2 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 03 00 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 03 00 B1 18 00 90 00 3D [14:27:27]RAPDU: 90 00 [14:27:27]wFMCommunicate OK [14:27:27]wFMCommunicate request_size=255 [14:27:27]MH_SAM_APDU [14:27: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 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 7D 00 00 00 F4 03 04 00 CF 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B1 CA 01 00 35 04 06 00 BD [14:27:27]Write to MH i2c: E2 02 01 B2 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 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 7D 00 00 00 F4 03 04 00 CF 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B1 CA 01 00 35 04 06 00 BD 00 00 28 [14:27:27]Write i2c OK [14:27:27]MH_I2C_Read... [14:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:27]Read from MH i2c: E2 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 03 00 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 03 00 B2 18 00 90 00 3E [14:27:27]RAPDU: 90 00 [14:27:27]wFMCommunicate OK [14:27:27]wFMCommunicate request_size=10 [14:27:27]MH_SAM_APDU [14:27:27]CAPDU: 80 0D 02 02 05 59 16 FF D1 3E [14:27:27]Write to MH i2c: E2 0D 00 B3 18 80 0D 02 02 05 00 59 16 FF D1 3E 00 00 CC [14:27:27]Write i2c OK [14:27:27]MH_I2C_Read... [14:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:27]Read from MH i2c: E2 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 03 00 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 03 00 B3 18 00 90 00 3F [14:27:27]RAPDU: 90 00 [14:27:27]wFMCommunicate OK [14:27:27]wFMCommunicate request_size=4 [14:27:27]MH_SAM_APDU [14:27:27]CAPDU: 80 0D 03 02 [14:27:27]Write to MH i2c: E2 08 00 B4 18 80 0D 03 02 00 00 00 00 47 [14:27:27]Write i2c OK [14:27:27]MH_I2C_Read... [14:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:27]Read from MH i2c: E2 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 0B 00 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 0B 00 B4 18 00 7C E7 85 C7 4A C2 AE CF 90 00 80 [14:27:27]RAPDU: 7C E7 85 C7 4A C2 AE CF 90 00 [14:27:27]wFMCommunicate OK [14:27:27]SAM_PROTO_SignData done [14:27:27]FM_MakeSignedData done [14:27:27]CreateOFDProtocolMessage [14:27:27]wFMCommunicate request_size=4 [14:27:27]MH_SAM_APDU [14:27:27]CAPDU: 80 11 00 00 [14:27:27]Write to MH i2c: E2 08 00 B5 18 80 11 00 00 00 00 00 00 47 [14:27:27]Write i2c OK [14:27:27]MH_I2C_Read... [14:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:27]Read from MH i2c: E2 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 17 00 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: E2 17 00 B5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9E [14:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:27:27]wFMCommunicate OK [14:27:27]CreateOFDProtocolMessage done [14:27:27]OFDSenderStorePacket 117425 [14:27:27]StoreOFDPacket docnum=117425 [14:27:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 63 E0 07 01 A8 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 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 7D 00 00 00 F4 03 04 00 CF 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B1 CA 01 00 35 04 06 00 BD 59 16 FF D1 3E 7C E7 85 C7 4A C2 AE CF [14:27:27]CheckFolder [14:27:27]dirname=/storage/ofd_packets [14:27:27]CheckFolder done [14:27:27]ProducePacketName [14:27:27]name=ofd_packets/00117425 [14:27:27]NVStorageSaveData ofd_packets/00117425 [14:27:27]File name is /storage/ofd_packets/00117425 [14:27:27]Write 301 bytes [14:27:27]NVStorageSaveData done [14:27:27]OFDSenderStorePacket done [14:27:27]KKMCreateOFDPacket done [14:27:27]NVStorageSaveData kkm_last_timestamp [14:27:27]File name is /storage/kkm_last_timestamp [14:27:27]Write 4 bytes [14:27:27]NVStorageSaveData done [14:27:27]ExternCall_PrintAddStr [14:27:27]wPrintStart [14:27:27]Write to MH i2c: 01 00 00 B6 18 CE [14:27:27]Write i2c OK [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: 01 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: 01 07 00 [14:27:27]MH_I2C_Read... [14:27:27]Read from MH i2c: 01 07 00 B6 18 00 00 00 00 00 FF 0F E3 [14:27:27]RasterBufferAndPrint [14:27:27]line Счет N : (1)245201 [14:27:27]line ИНН: 02508201610067 [14:27:27]line Контрольно-Кассовый Чек [14:27:27]line ПРОДАЖА [14:27:27]line ТРК (МРК, ГНК) : 21 [14:27:27]line Товар: 2710124130 [14:27:27]line Аи-92-К-2 [14:27:27]line 8.970 * 66.90 [14:27:27]line = 600.09 [14:27:27]line НДС 12% НСП 1% [14:27:27]line > о реализуемом товаре [14:27:27]line ОКРУГЛЕНИЕ: -0.09 [14:27:27]line ИТОГО: 600.00 [14:27:27]line Внесено: 600.00 [14:27:27]line СДАЧА: 0.00 [14:27:27]line НСП 1% : 5.31 [14:27:27]line НДС 12% : 63.73 [14:27:27]line Наличными: 600.00 [14:27:27]line Безнал.: 0.00 [14:27:27]line Место: АЗС № 173 "Партнер Нефть" [14:27:27]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:27:27]line СНО: Общий режим [14:27:27]line Чек 125 27.10.2024 14:27 [14:27:27]line Смена: 542 ФФД: 1.0 [14:27:27]line ЗНМ: 0300000115 [14:27:27]line РНМ: 0000000000091782 [14:27:27]line Версия ККМ: 001 [14:27:27]line ФМ: 0000000000871767 [14:27:27]line ФД: 117425 [14:27:27]line ФПД: 208190335603006 [14:27:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142727&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117425&fm=208190335603006&tin=02508201610067®Number=0000000000091782&sum=60000 [14:27:28]written 0, free lines is 4095 [14:27:28]OFD Sender: Processing packet 117425 [packets to send 76, broken 75] [14:27:28]ProducePacketName [14:27:28]name=ofd_packets/00117425 [14:27:28]OFD Sender: To server: pG, [14:27:28]CommunicateWithHost lk.salyk.kg:30040 [14:27:28]ConnectInit lk.salyk.kg [14:27:28]Connected sock=10 [14:27: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 36 37 0F 01 00 00 63 E0 07 01 A8 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 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 7D 00 00 00 F4 03 04 00 CF 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B1 CA 01 00 35 04 06 00 BD 59 16 FF D1 3E 7C E7 85 C7 4A C2 AE CF [14:27: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 36 37 4F 00 00 00 DE CB 47 00 0F 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 36 37 10 04 04 00 B1 CA 01 00 F4 03 04 00 8D F9 1D 67 B6 04 01 00 00 46 CA 75 01 5A 21 A1 BF [14:27:28]CommunicateWithHost err = 0 [14:27:28]CheckOFDResponse [14:27:28]1017 (14) - 77093643461234 [14:27:28]1041 (16) - 0000000000871767 [14:27:28]1040 (4) - 117425 [14:27:28]1012 (4) - 27.10.2024 08:27 [14:27:28]1206 (1) - 0 [14:27:28]OFD Sender: Remove packet 117425 [14:27:28]ProducePacketName [14:27:28]name=ofd_packets/00117425 [14:27:28]NVStorageDeleteData [14:27:28]Write to MH i2c: 01 00 00 E0 18 F8 [14:27:28]Write i2c OK [14:27:28]MH_I2C_Read... [14:27:28]Read from MH i2c: 01 [14:27:28]MH_I2C_Read... [14:27:28]Read from MH i2c: 01 07 00 [14:27:28]MH_I2C_Read... [14:27:28]Read from MH i2c: 01 07 00 E0 18 00 00 00 00 00 B3 0C BE [14:27:28]RasterBufferAndPrint [14:27:28]line [14:27:28]line [14:27:28]line [14:27:28]line [14:27:28]line [14:27:28]written 0, free lines is 3255 [14:27:28]MH_Cut [14:27:28]Write to MH i2c: D1 01 00 E7 18 01 D1 [14:27:28]Write i2c OK [14:27:28]MH_I2C_Read... [14:27:28]Read from MH i2c: D1 [14:27:28]MH_I2C_Read... [14:27:28]Read from MH i2c: D1 01 00 [14:27:28]MH_I2C_Read... [14:27:28]Read from MH i2c: D1 01 00 E7 18 00 D0 [14:27:28]Write to MH i2c: 01 00 00 E8 18 00 [14:27:28]Write i2c OK [14:27:28]MH_I2C_Read... [14:27:28]OFD Sender: No OFD packet to send [14:27:29]*** Cut start [14:27:29]*** Purtial cut [14:27:29]*** Stage 1: CUTSNS_PIN = 1 [14:27:29]Read from MH i2c: 01 [14:27:29]MH_I2C_Read... [14:27:29]*** Stop cut motor [14:27:29]*** Cut end [14:27:29]Read from MH i2c: 01 07 00 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: 01 07 00 E8 18 00 00 00 00 00 FF 0F 15 [14:27:29]process_action close_receipt done [14:27:29]requested_data is exist [14:27:29]produce_requested_data [14:27:29]requested_item fm.sn is exist - process it [14:27:29]wFMCommunicate request_size=4 [14:27:29]MH_SAM_APDU [14:27:29]CAPDU: 80 11 00 00 [14:27:29]Write to MH i2c: E2 08 00 E9 18 80 11 00 00 00 00 00 00 7B [14:27:29]Write i2c OK [14:27:29]MH_I2C_Read... [14:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:29]Read from MH i2c: E2 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 17 00 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 17 00 E9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D2 [14:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:27:29]wFMCommunicate OK [14:27:29]requested_item fd.num is exist - process it [14:27:29]SAM_PROTO_GetFieldsCounters [14:27:29]wFMCommunicate request_size=4 [14:27:29]MH_SAM_APDU [14:27:29]CAPDU: 80 13 00 00 [14:27:29]Write to MH i2c: E2 08 00 EA 18 80 13 00 00 00 00 00 00 7E [14:27:29]Write i2c OK [14:27:29]MH_I2C_Read... [14:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:29]Read from MH i2c: E2 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 62 00 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 62 00 EA 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B1 CA 01 00 0E 04 04 00 1E 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 B8 [14:27: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B1 CA 01 00 0E 04 04 00 1E 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 [14:27:29]wFMCommunicate OK [14:27:29]SAM_PROTO_GetFieldsCounters done [14:27:29]requested_item shift.num is exist - process it [14:27:29]requested_item shift.opened is exist - process it [14:27:29]req_shift_opened [14:27:29]FM_GetShiftState [14:27:29]SAM_PROTO_GetShiftState [14:27:29]wFMCommunicate request_size=4 [14:27:29]MH_SAM_APDU [14:27:29]CAPDU: 80 13 01 00 [14:27:29]Write to MH i2c: E2 08 00 EB 18 80 13 01 00 00 00 00 00 80 [14:27:29]Write i2c OK [14:27:29]MH_I2C_Read... [14:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:29]Read from MH i2c: E2 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 0E 00 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 0E 00 EB 18 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 BF [14:27:29]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:27:29]wFMCommunicate OK [14:27:29]SAM_PROTO_GetShiftState done [14:27:29]FM_GetShiftState done [14:27:29]req_shift_opened done [14:27:29]requested_item shift.open_date is exist - process it [14:27:29]req_shift_open_date [14:27:29]req_shift_open_date done [14:27:29]produce_requested_data done [14:27:29]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117425,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:27:29]process_action_free close_receipt [14:27:29]json_value_free [14:27:29]json_value_free done [14:27:29]process_json_proto returns [14:27:29]Send response to host [14:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117425,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:27:29]free response buf [14:27:29]execute_script done [14:27:29]execute_script returns [14:27:29]free content buf [14:27:29]Sock 7.Close socket [14:27:29]Sock 7.Thread stoped [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31: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:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:04]accept exits with 9 [14:34:04]New connection [14:34:04]New thread 3067456868 created [14:34:04]Thread 3067600228 joined [14:34:04]Waiting for new connection... [14:34:04] Sock 9.Parse request [14:34:04]Sock 9.Check first char [14:34:04]Sock 9.First char is OK [14:34:04]request: POST /json_proto HTTP/1.0 [14:34:04]Method: POST [14:34:04]URL: /json_proto [14:34:04]Method is POST - this is cgi request [14:34:04]url: /json_proto [14:34:04]query_string will be loaded in cgi processing [14:34:04]execute_cgi json_proto POST (null) [14:34:04]execute_cgi path=json_proto method=POST [14:34:04]POST find Content-Length [14:34:04]Host: 172.17.96.67:8080 [14:34:04]Content-Length: 677 [14:34:04]Content-Type: application/json [14:34:04] [14:34:04]POST finish read [14:34:04]Found Content-Length = 677 [14:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:34:04]execute_script... [14:34: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)245202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:34:04]POST & json_proto [14:34:04]process_json_proto [14:34:04]json parsed OK: [14:34:04]protocol is kg_v1.0 [14:34:04]action value=close_receipt [14:34:04]process_action close_receipt [14:34:04]cmd_close_receipt [14:34:04]MH_GetDate [14:34:04]Write to MH i2c: F0 00 00 EC 18 F3 [14:34:04]Write i2c OK [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: F0 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: F0 09 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: F0 09 00 EC 18 00 5E 4F 1E 67 2B 09 1E 67 E7 [14:34:04]GetLastDocTimeStamp 1730039247 [14:34:04]current date 1730039646 [14:34:04]FM_GetShiftState [14:34:04]SAM_PROTO_GetShiftState [14:34:04]wFMCommunicate request_size=4 [14:34:04]MH_SAM_APDU [14:34:04]CAPDU: 80 13 01 00 [14:34:04]Write to MH i2c: E2 08 00 ED 18 80 13 01 00 00 00 00 00 82 [14:34:04]Write i2c OK [14:34:04]MH_I2C_Read... [14:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:04]Read from MH i2c: E2 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 0E 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 0E 00 ED 18 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C1 [14:34:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:34:04]wFMCommunicate OK [14:34:04]SAM_PROTO_GetShiftState done [14:34:04]FM_GetShiftState done [14:34:04]opened in 1729987372 [14:34:04]opened+sec_in_day 1730073772 [14:34:04]quantity*price = 30038 [14:34:04]sum+1 = 30039 [14:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 126 27.10.2024 14:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117426 ФПД: 211013482316368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143406&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117426&fm=211013482316368&tin=02508201610067®Number=0000000000091782&sum=30000 [14:34:05]StoreToDocumentArchive [14:34:05]shift 542 fd 117426 [14:34:05]save to /storage/0542/doc_00117426 [14:34:05]save last doc name /storage/0542/doc_00117426 to /storage/kkm_last_doc_name [14:34:05]save OK [14:34:05]Clear old archive folders... [14:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:05]tlvbuf is B6FF32A0 [14:34:05]SAM_PROTO_ClearQueue [14:34:05]wFMCommunicate request_size=4 [14:34:05]MH_SAM_APDU [14:34:05]CAPDU: 80 09 00 00 [14:34:05]Write to MH i2c: E2 08 00 FA 18 80 09 00 00 00 00 00 00 84 [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:05]Read from MH i2c: E2 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 FA 18 00 90 00 86 [14:34:05]RAPDU: 90 00 [14:34:05]wFMCommunicate OK [14:34:05]SAM_PROTO_ClearQueue done [14:34:05]KKMCreateOFDPacket [14:34:05]OFDProtocolAddRootSTLVToBuf [14:34:05]FM_MakeSignedData [14:34:05]FM_MakeSignedData [14:34:05]SAM_PROTO_SignData [14:34:05]wFMCommunicate request_size=4 [14:34:05]MH_SAM_APDU [14:34:05]CAPDU: 80 0D 01 02 [14:34:05]Write to MH i2c: E2 08 00 FB 18 80 0D 01 02 00 00 00 00 8C [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:05]Read from MH i2c: E2 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 FB 18 00 90 00 87 [14:34:05]RAPDU: 90 00 [14:34:05]wFMCommunicate OK [14:34:05]wFMCommunicate request_size=255 [14:34:05]MH_SAM_APDU [14:34: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 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 7E 00 00 00 F4 03 04 00 5E 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B2 CA 01 00 35 04 06 00 BF [14:34:05]Write to MH i2c: E2 02 01 FC 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 7E 00 00 00 F4 03 04 00 5E 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B2 CA 01 00 35 04 06 00 BF 00 00 1E [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 FC 18 00 90 00 88 [14:34:06]RAPDU: 90 00 [14:34:06]wFMCommunicate OK [14:34:06]wFMCommunicate request_size=10 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 0D 02 02 05 EA 67 A8 02 50 [14:34:06]Write to MH i2c: E2 0D 00 FD 18 80 0D 02 02 05 00 EA 67 A8 02 50 00 00 E4 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 FD 18 00 90 00 89 [14:34:06]RAPDU: 90 00 [14:34:06]wFMCommunicate OK [14:34:06]wFMCommunicate request_size=4 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 0D 03 02 [14:34:06]Write to MH i2c: E2 08 00 FE 18 80 0D 03 02 00 00 00 00 91 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 0B 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 0B 00 FE 18 00 71 19 2A 2B 08 6C FD B8 90 00 9A [14:34:06]RAPDU: 71 19 2A 2B 08 6C FD B8 90 00 [14:34:06]wFMCommunicate OK [14:34:06]SAM_PROTO_SignData done [14:34:06]FM_MakeSignedData done [14:34:06]CreateOFDProtocolMessage [14:34:06]wFMCommunicate request_size=4 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 11 00 00 [14:34:06]Write to MH i2c: E2 08 00 FF 18 80 11 00 00 00 00 00 00 91 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 17 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 17 00 FF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E8 [14:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:34:06]wFMCommunicate OK [14:34:06]CreateOFDProtocolMessage done [14:34:06]OFDSenderStorePacket 117426 [14:34:06]StoreOFDPacket docnum=117426 [14:34:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 29 AC 07 01 44 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7E 00 00 00 F4 03 04 00 5E 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B2 CA 01 00 35 04 06 00 BF EA 67 A8 02 50 71 19 2A 2B 08 6C FD B8 [14:34:06]CheckFolder [14:34:06]dirname=/storage/ofd_packets [14:34:06]CheckFolder done [14:34:06]ProducePacketName [14:34:06]name=ofd_packets/00117426 [14:34:06]NVStorageSaveData ofd_packets/00117426 [14:34:06]File name is /storage/ofd_packets/00117426 [14:34:06]Write 301 bytes [14:34:06]NVStorageSaveData done [14:34:06]OFDSenderStorePacket done [14:34:06]KKMCreateOFDPacket done [14:34:06]NVStorageSaveData kkm_last_timestamp [14:34:06]File name is /storage/kkm_last_timestamp [14:34:06]Write 4 bytes [14:34:06]NVStorageSaveData done [14:34:06]ExternCall_PrintAddStr [14:34:06]wPrintStart [14:34:06]Write to MH i2c: 01 00 00 00 19 19 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 07 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 07 00 00 19 00 00 00 00 00 FF 0F 2E [14:34:06]RasterBufferAndPrint [14:34:06]line Счет N : (1)245202 [14:34:06]line ИНН: 02508201610067 [14:34:06]line Контрольно-Кассовый Чек [14:34:06]line ПРОДАЖА [14:34:06]line ТРК (МРК, ГНК) : 21 [14:34:06]line Товар: 2710124130 [14:34:06]line Аи-92-К-2 [14:34:06]line 4.490 * 66.90 [14:34:06]line = 300.38 [14:34:06]line НДС 12% НСП 1% [14:34:06]line > о реализуемом товаре [14:34:06]line ОКРУГЛЕНИЕ: -0.38 [14:34:06]line ИТОГО: 300.00 [14:34:06]line Внесено: 300.00 [14:34:06]line СДАЧА: 0.00 [14:34:06]line НСП 1% : 2.66 [14:34:06]line НДС 12% : 31.90 [14:34:06]line Наличными: 300.00 [14:34:06]line Безнал.: 0.00 [14:34:06]line Место: АЗС № 173 "Партнер Нефть" [14:34:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:34:06]line СНО: Общий режим [14:34:06]line Чек 126 27.10.2024 14:34 [14:34:06]line Смена: 542 ФФД: 1.0 [14:34:06]line ЗНМ: 0300000115 [14:34:06]line РНМ: 0000000000091782 [14:34:06]line Версия ККМ: 001 [14:34:06]line ФМ: 0000000000871767 [14:34:06]line ФД: 117426 [14:34:06]line ФПД: 211013482316368 [14:34:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143406&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117426&fm=211013482316368&tin=02508201610067®Number=0000000000091782&sum=30000 [14:34:06]OFD Sender: Processing packet 117426 [packets to send 76, broken 75] [14:34:06]ProducePacketName [14:34:06]name=ofd_packets/00117426 [14:34:06]OFD Sender: To server: pG, [14:34:06]CommunicateWithHost lk.salyk.kg:30040 [14:34:06]ConnectInit lk.salyk.kg [14:34:06]written 0, free lines is 4095 [14:34:06]Connected sock=10 [14:34: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 36 37 0F 01 00 00 29 AC 07 01 44 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7E 00 00 00 F4 03 04 00 5E 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B2 CA 01 00 35 04 06 00 BF EA 67 A8 02 50 71 19 2A 2B 08 6C FD B8 [14:34: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 36 37 4F 00 00 00 D3 4E 47 00 C1 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 36 37 10 04 04 00 B2 CA 01 00 F4 03 04 00 1B FB 1D 67 B6 04 01 00 00 91 14 EE 8E 13 0A D4 86 [14:34:07]CommunicateWithHost err = 0 [14:34:07]CheckOFDResponse [14:34:07]1017 (14) - 77093643461234 [14:34:07]1041 (16) - 0000000000871767 [14:34:07]1040 (4) - 117426 [14:34:07]1012 (4) - 27.10.2024 08:34 [14:34:07]1206 (1) - 0 [14:34:07]OFD Sender: Remove packet 117426 [14:34:07]ProducePacketName [14:34:07]name=ofd_packets/00117426 [14:34:07]NVStorageDeleteData [14:34:07]Write to MH i2c: 01 00 00 2A 19 43 [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: 01 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: 01 07 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 B7 0C 0D [14:34:07]RasterBufferAndPrint [14:34:07]line [14:34:07]line [14:34:07]line [14:34:07]line [14:34:07]line [14:34:07]written 0, free lines is 3259 [14:34:07]MH_Cut [14:34:07]Write to MH i2c: D1 01 00 31 19 01 1C [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: D1 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: D1 01 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: D1 01 00 31 19 00 1B [14:34:07]Write to MH i2c: 01 00 00 32 19 4B [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]OFD Sender: No OFD packet to send [14:34:08]*** Cut start [14:34:08]*** Purtial cut [14:34:08]*** Stage 1: CUTSNS_PIN = 1 [14:34:08]Read from MH i2c: 01 [14:34:08]MH_I2C_Read... [14:34:08]*** Stop cut motor [14:34:08]*** Cut end [14:34:08]Read from MH i2c: 01 07 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: 01 07 00 32 19 00 00 00 00 00 FF 0F 60 [14:34:08]process_action close_receipt done [14:34:08]requested_data is exist [14:34:08]produce_requested_data [14:34:08]requested_item fm.sn is exist - process it [14:34:08]wFMCommunicate request_size=4 [14:34:08]MH_SAM_APDU [14:34:08]CAPDU: 80 11 00 00 [14:34:08]Write to MH i2c: E2 08 00 33 19 80 11 00 00 00 00 00 00 C6 [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:08]Read from MH i2c: E2 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 17 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 17 00 33 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1D [14:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:34:08]wFMCommunicate OK [14:34:08]requested_item fd.num is exist - process it [14:34:08]SAM_PROTO_GetFieldsCounters [14:34:08]wFMCommunicate request_size=4 [14:34:08]MH_SAM_APDU [14:34:08]CAPDU: 80 13 00 00 [14:34:08]Write to MH i2c: E2 08 00 34 19 80 13 00 00 00 00 00 00 C9 [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:08]Read from MH i2c: E2 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 62 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 62 00 34 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B2 CA 01 00 0E 04 04 00 1E 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 07 [14:34: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B2 CA 01 00 0E 04 04 00 1E 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 [14:34:08]wFMCommunicate OK [14:34:08]SAM_PROTO_GetFieldsCounters done [14:34:08]requested_item shift.num is exist - process it [14:34:08]requested_item shift.opened is exist - process it [14:34:08]req_shift_opened [14:34:08]FM_GetShiftState [14:34:08]SAM_PROTO_GetShiftState [14:34:08]wFMCommunicate request_size=4 [14:34:08]MH_SAM_APDU [14:34:08]CAPDU: 80 13 01 00 [14:34:08]Write to MH i2c: E2 08 00 35 19 80 13 01 00 00 00 00 00 CB [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:08]Read from MH i2c: E2 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 0E 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 0E 00 35 19 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 0A [14:34:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:34:08]wFMCommunicate OK [14:34:08]SAM_PROTO_GetShiftState done [14:34:08]FM_GetShiftState done [14:34:08]req_shift_opened done [14:34:08]requested_item shift.open_date is exist - process it [14:34:08]req_shift_open_date [14:34:08]req_shift_open_date done [14:34:08]produce_requested_data done [14:34:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117426,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:34:08]process_action_free close_receipt [14:34:08]json_value_free [14:34:08]json_value_free done [14:34:08]process_json_proto returns [14:34:08]Send response to host [14:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117426,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:34:08]free response buf [14:34:08]execute_script done [14:34:08]execute_script returns [14:34:08]free content buf [14:34:08]Sock 9.Close socket [14:34:08]Sock 9.Thread stoped [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]accept exits with 7 [14:35:17]New connection [14:35:17]New thread 3067600228 created [14:35:17]Thread 3067456868 joined [14:35:17]Waiting for new connection... [14:35:17] Sock 7.Parse request [14:35:17]Sock 7.Check first char [14:35:17]Sock 7.First char is OK [14:35:17]request: POST /json_proto HTTP/1.0 [14:35:17]Method: POST [14:35:17]URL: /json_proto [14:35:17]Method is POST - this is cgi request [14:35:17]url: /json_proto [14:35:17]query_string will be loaded in cgi processing [14:35:17]execute_cgi json_proto POST (null) [14:35:17]execute_cgi path=json_proto method=POST [14:35:17]POST find Content-Length [14:35:17]Host: 172.17.96.67:8080 [14:35:17]Content-Length: 679 [14:35:17]Content-Type: application/json [14:35:17] [14:35:17]POST finish read [14:35:17]Found Content-Length = 679 [14:35:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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 }]} ], "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:35:17]execute_script... [14:35: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)245203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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 }]} ], "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:35:17]POST & json_proto [14:35:17]process_json_proto [14:35:17]json parsed OK: [14:35:17]protocol is kg_v1.0 [14:35:17]action value=close_receipt [14:35:17]process_action close_receipt [14:35:17]cmd_close_receipt [14:35:17]MH_GetDate [14:35:17]Write to MH i2c: F0 00 00 36 19 3E [14:35:17]Write i2c OK [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: F0 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: F0 09 00 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: F0 09 00 36 19 00 A7 4F 1E 67 2B 09 1E 67 7B [14:35:17]GetLastDocTimeStamp 1730039646 [14:35:17]current date 1730039719 [14:35:17]FM_GetShiftState [14:35:17]SAM_PROTO_GetShiftState [14:35:17]wFMCommunicate request_size=4 [14:35:17]MH_SAM_APDU [14:35:17]CAPDU: 80 13 01 00 [14:35:17]Write to MH i2c: E2 08 00 37 19 80 13 01 00 00 00 00 00 CD [14:35:17]Write i2c OK [14:35:17]MH_I2C_Read... [14:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:17]Read from MH i2c: E2 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: E2 0E 00 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: E2 0E 00 37 19 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 0C [14:35:17]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:35:17]wFMCommunicate OK [14:35:17]SAM_PROTO_GetShiftState done [14:35:17]FM_GetShiftState done [14:35:17]opened in 1729987372 [14:35:17]opened+sec_in_day 1730073772 [14:35:17]quantity*price = 120015 [14:35:17]sum+1 = 120016 [14:35:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 127 27.10.2024 14:35 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117427 ФПД: 17668036484866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143519&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117427&fm=17668036484866&tin=02508201610067®Number=0000000000091782&sum=120000 [14:35:18]StoreToDocumentArchive [14:35:18]shift 542 fd 117427 [14:35:18]save to /storage/0542/doc_00117427 [14:35:18]save last doc name /storage/0542/doc_00117427 to /storage/kkm_last_doc_name [14:35:18]save OK [14:35:18]Clear old archive folders... [14:35:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:35:18]tlvbuf is 0170F040 [14:35:18]SAM_PROTO_ClearQueue [14:35:18]wFMCommunicate request_size=4 [14:35:18]MH_SAM_APDU [14:35:18]CAPDU: 80 09 00 00 [14:35:18]Write to MH i2c: E2 08 00 44 19 80 09 00 00 00 00 00 00 CF [14:35:18]Write i2c OK [14:35:18]MH_I2C_Read... [14:35:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:18]Read from MH i2c: E2 [14:35:18]MH_I2C_Read... [14:35:18]Read from MH i2c: E2 03 00 [14:35:18]MH_I2C_Read... [14:35:18]Read from MH i2c: E2 03 00 44 19 00 90 00 D1 [14:35:18]RAPDU: 90 00 [14:35:18]wFMCommunicate OK [14:35:18]SAM_PROTO_ClearQueue done [14:35:18]KKMCreateOFDPacket [14:35:18]OFDProtocolAddRootSTLVToBuf [14:35:18]FM_MakeSignedData [14:35:18]FM_MakeSignedData [14:35:18]SAM_PROTO_SignData [14:35:18]wFMCommunicate request_size=4 [14:35:18]MH_SAM_APDU [14:35:18]CAPDU: 80 0D 01 02 [14:35:18]Write to MH i2c: E2 08 00 45 19 80 0D 01 02 00 00 00 00 D7 [14:35:18]Write i2c OK [14:35:18]MH_I2C_Read... [14:35:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:18]Read from MH i2c: E2 [14:35:18]MH_I2C_Read... [14:35:18]Read from MH i2c: E2 03 00 [14:35:18]MH_I2C_Read... [14:35:18]Read from MH i2c: E2 03 00 45 19 00 90 00 D2 [14:35:18]RAPDU: 90 00 [14:35:18]wFMCommunicate OK [14:35:18]wFMCommunicate request_size=255 [14:35:18]MH_SAM_APDU [14:35: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 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 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 7F 00 00 00 F4 03 04 00 A7 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B3 CA 01 00 35 04 06 00 10 11 A9 09 [14:35:18]Write to MH i2c: E2 02 01 46 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 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 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 7F 00 00 00 F4 03 04 00 A7 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B3 CA 01 00 35 04 06 00 10 11 A9 09 00 00 38 [14:35:18]Write i2c OK [14:35:18]MH_I2C_Read... [14:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:19]Read from MH i2c: E2 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 03 00 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 03 00 46 19 00 90 00 D3 [14:35:19]RAPDU: 90 00 [14:35:19]wFMCommunicate OK [14:35:19]wFMCommunicate request_size=7 [14:35:19]MH_SAM_APDU [14:35:19]CAPDU: 80 0D 02 02 02 DF 02 [14:35:19]Write to MH i2c: E2 0A 00 47 19 80 0D 02 02 02 00 DF 02 00 00 BF [14:35:19]Write i2c OK [14:35:19]MH_I2C_Read... [14:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:19]Read from MH i2c: E2 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 03 00 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 03 00 47 19 00 90 00 D4 [14:35:19]RAPDU: 90 00 [14:35:19]wFMCommunicate OK [14:35:19]wFMCommunicate request_size=4 [14:35:19]MH_SAM_APDU [14:35:19]CAPDU: 80 0D 03 02 [14:35:19]Write to MH i2c: E2 08 00 48 19 80 0D 03 02 00 00 00 00 DC [14:35:19]Write i2c OK [14:35:19]MH_I2C_Read... [14:35:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:19]Read from MH i2c: E2 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 0B 00 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 0B 00 48 19 00 59 D3 E3 79 DB 8B 82 D2 90 00 1F [14:35:19]RAPDU: 59 D3 E3 79 DB 8B 82 D2 90 00 [14:35:19]wFMCommunicate OK [14:35:19]SAM_PROTO_SignData done [14:35:19]FM_MakeSignedData done [14:35:19]CreateOFDProtocolMessage [14:35:19]wFMCommunicate request_size=4 [14:35:19]MH_SAM_APDU [14:35:19]CAPDU: 80 11 00 00 [14:35:19]Write to MH i2c: E2 08 00 49 19 80 11 00 00 00 00 00 00 DC [14:35:19]Write i2c OK [14:35:19]MH_I2C_Read... [14:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:19]Read from MH i2c: E2 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 17 00 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 17 00 49 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 33 [14:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:35:19]wFMCommunicate OK [14:35:19]CreateOFDProtocolMessage done [14:35:19]OFDSenderStorePacket 117427 [14:35:19]StoreOFDPacket docnum=117427 [14:35:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 0A B9 04 01 93 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 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 7F 00 00 00 F4 03 04 00 A7 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B3 CA 01 00 35 04 06 00 10 11 A9 09 DF 02 59 D3 E3 79 DB 8B 82 D2 [14:35:19]CheckFolder [14:35:19]dirname=/storage/ofd_packets [14:35:19]CheckFolder done [14:35:19]ProducePacketName [14:35:19]name=ofd_packets/00117427 [14:35:19]NVStorageSaveData ofd_packets/00117427 [14:35:19]File name is /storage/ofd_packets/00117427 [14:35:19]Write 298 bytes [14:35:19]NVStorageSaveData done [14:35:19]OFDSenderStorePacket done [14:35:19]KKMCreateOFDPacket done [14:35:19]NVStorageSaveData kkm_last_timestamp [14:35:19]File name is /storage/kkm_last_timestamp [14:35:19]Write 4 bytes [14:35:19]NVStorageSaveData done [14:35:19]ExternCall_PrintAddStr [14:35:19]wPrintStart [14:35:19]Write to MH i2c: 01 00 00 4A 19 63 [14:35:19]Write i2c OK [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: 01 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: 01 07 00 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: 01 07 00 4A 19 00 00 00 00 00 FF 0F 78 [14:35:19]RasterBufferAndPrint [14:35:19]line Счет N : (1)245203 [14:35:19]line ИНН: 02508201610067 [14:35:19]line Контрольно-Кассовый Чек [14:35:19]line ПРОДАЖА [14:35:19]line ТРК (МРК, ГНК) : 23 [14:35:19]line Товар: 2710194210 [14:35:19]line ДТ-К-2 [14:35:19]line 15.750 * 76.20 [14:35:19]line = 1200.15 [14:35:19]line НДС 12% НСП 1% [14:35:19]line > о реализуемом товаре [14:35:19]line ОКРУГЛЕНИЕ: -0.15 [14:35:19]line ИТОГО: 1200.00 [14:35:19]line Внесено: 1200.00 [14:35:19]line СДАЧА: 0.00 [14:35:19]line НСП 1% : 10.62 [14:35:19]line НДС 12% : 127.45 [14:35:19]line Наличными: 1200.00 [14:35:19]line Безнал.: 0.00 [14:35:19]line Место: АЗС № 173 "Партнер Нефть" [14:35:19]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:35:19]line СНО: Общий режим [14:35:19]line Чек 127 27.10.2024 14:35 [14:35:19]line Смена: 542 ФФД: 1.0 [14:35:19]line ЗНМ: 0300000115 [14:35:19]line РНМ: 0000000000091782 [14:35:19]line Версия ККМ: 001 [14:35:19]line ФМ: 0000000000871767 [14:35:19]line ФД: 117427 [14:35:19]line ФПД: 17668036484866 [14:35:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143519&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117427&fm=17668036484866&tin=02508201610067®Number=0000000000091782&sum=120000 [14:35:19]OFD Sender: Processing packet 117427 [packets to send 76, broken 75] [14:35:19]ProducePacketName [14:35:19]name=ofd_packets/00117427 [14:35:19]OFD Sender: To server: pG, [14:35:19]CommunicateWithHost lk.salyk.kg:30040 [14:35:19]ConnectInit lk.salyk.kg [14:35:19]written 0, free lines is 4095 [14:35:19]Connected sock=11 [14:35: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 36 37 0C 01 00 00 0A B9 04 01 93 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 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 7F 00 00 00 F4 03 04 00 A7 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B3 CA 01 00 35 04 06 00 10 11 A9 09 DF 02 59 D3 E3 79 DB 8B 82 D2 [14:35: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 36 37 4F 00 00 00 BF F3 47 00 8C 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 36 37 10 04 04 00 B3 CA 01 00 F4 03 04 00 64 FB 1D 67 B6 04 01 00 00 6A 8E E1 9C 06 0F DE 8B [14:35:19]CommunicateWithHost err = 0 [14:35:19]CheckOFDResponse [14:35:19]1017 (14) - 77093643461234 [14:35:19]1041 (16) - 0000000000871767 [14:35:19]1040 (4) - 117427 [14:35:19]1012 (4) - 27.10.2024 08:35 [14:35:19]1206 (1) - 0 [14:35:19]OFD Sender: Remove packet 117427 [14:35:19]ProducePacketName [14:35:19]name=ofd_packets/00117427 [14:35:19]NVStorageDeleteData [14:35:20]Write to MH i2c: 01 00 00 74 19 8D [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 74 19 00 00 00 00 00 B5 0C 55 [14:35:20]RasterBufferAndPrint [14:35:20]line [14:35:20]line [14:35:20]line [14:35:20]line [14:35:20]line [14:35:20]written 0, free lines is 3257 [14:35:20]MH_Cut [14:35:20]Write to MH i2c: D1 01 00 7B 19 01 66 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: D1 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: D1 01 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: D1 01 00 7B 19 00 65 [14:35:20]Write to MH i2c: 01 00 00 7C 19 95 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]OFD Sender: No OFD packet to send [14:35:20]*** Cut start [14:35:20]*** Purtial cut [14:35:20]*** Stage 1: CUTSNS_PIN = 1 [14:35:21]Read from MH i2c: 01 [14:35:21]MH_I2C_Read... [14:35:21]*** Stop cut motor [14:35:21]*** Cut end [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 7C 19 00 00 00 00 00 FF 0F AA [14:35:21]process_action close_receipt done [14:35:21]requested_data is exist [14:35:21]produce_requested_data [14:35:21]requested_item fm.sn is exist - process it [14:35:21]wFMCommunicate request_size=4 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 11 00 00 [14:35:21]Write to MH i2c: E2 08 00 7D 19 80 11 00 00 00 00 00 00 10 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 17 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 17 00 7D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 67 [14:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:35:21]wFMCommunicate OK [14:35:21]requested_item fd.num is exist - process it [14:35:21]SAM_PROTO_GetFieldsCounters [14:35:21]wFMCommunicate request_size=4 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 13 00 00 [14:35:21]Write to MH i2c: E2 08 00 7E 19 80 13 00 00 00 00 00 00 13 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 62 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 62 00 7E 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B3 CA 01 00 0E 04 04 00 1E 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 55 [14:35: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B3 CA 01 00 0E 04 04 00 1E 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 [14:35:21]wFMCommunicate OK [14:35:21]SAM_PROTO_GetFieldsCounters done [14:35:21]requested_item shift.num is exist - process it [14:35:21]requested_item shift.opened is exist - process it [14:35:21]req_shift_opened [14:35:21]FM_GetShiftState [14:35:21]SAM_PROTO_GetShiftState [14:35:21]wFMCommunicate request_size=4 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 13 01 00 [14:35:21]Write to MH i2c: E2 08 00 7F 19 80 13 01 00 00 00 00 00 15 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 0E 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 0E 00 7F 19 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 54 [14:35:21]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:35:21]wFMCommunicate OK [14:35:21]SAM_PROTO_GetShiftState done [14:35:21]FM_GetShiftState done [14:35:21]req_shift_opened done [14:35:21]requested_item shift.open_date is exist - process it [14:35:21]req_shift_open_date [14:35:21]req_shift_open_date done [14:35:21]produce_requested_data done [14:35:21]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117427,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:35:21]process_action_free close_receipt [14:35:21]json_value_free [14:35:21]json_value_free done [14:35:21]process_json_proto returns [14:35:21]Send response to host [14:35:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117427,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:35:21]free response buf [14:35:21]execute_script done [14:35:21]execute_script returns [14:35:21]free content buf [14:35:21]Sock 7.Close socket [14:35:21]Sock 7.Thread stoped [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:38:57]accept exits with 9 [14:38:57]New connection [14:38:57]New thread 3067456868 created [14:38:57]Thread 3067600228 joined [14:38:57]Waiting for new connection... [14:38:57] Sock 9.Parse request [14:38:57]Sock 9.Check first char [14:38:57]Sock 9.First char is OK [14:38:57]request: POST /json_proto HTTP/1.0 [14:38:57]Method: POST [14:38:57]URL: /json_proto [14:38:57]Method is POST - this is cgi request [14:38:57]url: /json_proto [14:38:57]query_string will be loaded in cgi processing [14:38:57]execute_cgi json_proto POST (null) [14:38:57]execute_cgi path=json_proto method=POST [14:38:57]POST find Content-Length [14:38:57]Host: 172.17.96.67:8080 [14:38:57]Content-Length: 677 [14:38:57]Content-Type: application/json [14:38:57] [14:38:57]POST finish read [14:38:57]Found Content-Length = 677 [14:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:38:57]execute_script... [14:38: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)245205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:38:57]POST & json_proto [14:38:57]process_json_proto [14:38:57]json parsed OK: [14:38:57]protocol is kg_v1.0 [14:38:57]action value=close_receipt [14:38:57]process_action close_receipt [14:38:57]cmd_close_receipt [14:38:57]MH_GetDate [14:38:57]Write to MH i2c: F0 00 00 80 19 88 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: F0 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: F0 09 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: F0 09 00 80 19 00 83 50 1E 67 2B 09 1E 67 A2 [14:38:57]GetLastDocTimeStamp 1730039719 [14:38:57]current date 1730039939 [14:38:57]FM_GetShiftState [14:38:57]SAM_PROTO_GetShiftState [14:38:57]wFMCommunicate request_size=4 [14:38:57]MH_SAM_APDU [14:38:57]CAPDU: 80 13 01 00 [14:38:57]Write to MH i2c: E2 08 00 81 19 80 13 01 00 00 00 00 00 17 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:57]Read from MH i2c: E2 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 0E 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 0E 00 81 19 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 56 [14:38:57]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:38:57]wFMCommunicate OK [14:38:57]SAM_PROTO_GetShiftState done [14:38:57]FM_GetShiftState done [14:38:57]opened in 1729987372 [14:38:57]opened+sec_in_day 1730073772 [14:38:57]quantity*price = 20003 [14:38:57]sum+1 = 20004 [14:38:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 128 27.10.2024 14:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117428 ФПД: 47910765327185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143859&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117428&fm=47910765327185&tin=02508201610067®Number=0000000000091782&sum=20000 [14:38:58]StoreToDocumentArchive [14:38:58]shift 542 fd 117428 [14:38:58]save to /storage/0542/doc_00117428 [14:38:58]save last doc name /storage/0542/doc_00117428 to /storage/kkm_last_doc_name [14:38:58]save OK [14:38:58]Clear old archive folders... [14:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:58]tlvbuf is B6F5F980 [14:38:58]SAM_PROTO_ClearQueue [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 09 00 00 [14:38:58]Write to MH i2c: E2 08 00 8E 19 80 09 00 00 00 00 00 00 19 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [14:38:58]RAPDU: 90 00 [14:38:58]wFMCommunicate OK [14:38:58]SAM_PROTO_ClearQueue done [14:38:58]KKMCreateOFDPacket [14:38:58]OFDProtocolAddRootSTLVToBuf [14:38:58]FM_MakeSignedData [14:38:58]FM_MakeSignedData [14:38:58]SAM_PROTO_SignData [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 0D 01 02 [14:38:58]Write to MH i2c: E2 08 00 8F 19 80 0D 01 02 00 00 00 00 21 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 8F 19 00 90 00 1C [14:38:58]RAPDU: 90 00 [14:38:58]wFMCommunicate OK [14:38:58]wFMCommunicate request_size=255 [14:38:58]MH_SAM_APDU [14:38: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 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 80 00 00 00 F4 03 04 00 83 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B4 CA 01 00 35 04 06 00 2B [14:38:58]Write to MH i2c: E2 02 01 90 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 80 00 00 00 F4 03 04 00 83 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B4 CA 01 00 35 04 06 00 2B 00 00 17 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 90 19 00 90 00 1D [14:38:59]RAPDU: 90 00 [14:38:59]wFMCommunicate OK [14:38:59]wFMCommunicate request_size=10 [14:38:59]MH_SAM_APDU [14:38:59]CAPDU: 80 0D 02 02 05 93 18 25 F3 51 [14:38:59]Write to MH i2c: E2 0D 00 91 19 80 0D 02 02 05 00 93 18 25 F3 51 00 00 42 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 91 19 00 90 00 1E [14:38:59]RAPDU: 90 00 [14:38:59]wFMCommunicate OK [14:38:59]wFMCommunicate request_size=4 [14:38:59]MH_SAM_APDU [14:38:59]CAPDU: 80 0D 03 02 [14:38:59]Write to MH i2c: E2 08 00 92 19 80 0D 03 02 00 00 00 00 26 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 0B 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 0B 00 92 19 00 FD 4D 90 E2 5D 26 E6 B2 90 00 FE [14:38:59]RAPDU: FD 4D 90 E2 5D 26 E6 B2 90 00 [14:38:59]wFMCommunicate OK [14:38:59]SAM_PROTO_SignData done [14:38:59]FM_MakeSignedData done [14:38:59]CreateOFDProtocolMessage [14:38:59]wFMCommunicate request_size=4 [14:38:59]MH_SAM_APDU [14:38:59]CAPDU: 80 11 00 00 [14:38:59]Write to MH i2c: E2 08 00 93 19 80 11 00 00 00 00 00 00 26 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 17 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 17 00 93 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7D [14:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:38:59]wFMCommunicate OK [14:38:59]CreateOFDProtocolMessage done [14:38:59]OFDSenderStorePacket 117428 [14:38:59]StoreOFDPacket docnum=117428 [14:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 04 41 07 01 39 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 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 80 00 00 00 F4 03 04 00 83 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B4 CA 01 00 35 04 06 00 2B 93 18 25 F3 51 FD 4D 90 E2 5D 26 E6 B2 [14:38:59]CheckFolder [14:38:59]dirname=/storage/ofd_packets [14:38:59]CheckFolder done [14:38:59]ProducePacketName [14:38:59]name=ofd_packets/00117428 [14:38:59]NVStorageSaveData ofd_packets/00117428 [14:38:59]File name is /storage/ofd_packets/00117428 [14:38:59]Write 301 bytes [14:38:59]NVStorageSaveData done [14:38:59]OFDSenderStorePacket done [14:38:59]KKMCreateOFDPacket done [14:38:59]NVStorageSaveData kkm_last_timestamp [14:38:59]File name is /storage/kkm_last_timestamp [14:38:59]Write 4 bytes [14:38:59]NVStorageSaveData done [14:38:59]ExternCall_PrintAddStr [14:38:59]wPrintStart [14:38:59]Write to MH i2c: 01 00 00 94 19 AD [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 FF 0F C2 [14:38:59]RasterBufferAndPrint [14:38:59]line Счет N : (1)245205 [14:38:59]line ИНН: 02508201610067 [14:38:59]line Контрольно-Кассовый Чек [14:38:59]line ПРОДАЖА [14:38:59]line ТРК (МРК, ГНК) : 21 [14:38:59]line Товар: 2710124130 [14:38:59]line Аи-92-К-2 [14:38:59]line 2.990 * 66.90 [14:38:59]line = 200.03 [14:38:59]line НДС 12% НСП 1% [14:38:59]line > о реализуемом товаре [14:38:59]line ОКРУГЛЕНИЕ: -0.03 [14:38:59]line ИТОГО: 200.00 [14:38:59]line Внесено: 200.00 [14:38:59]line СДАЧА: 0.00 [14:38:59]line НСП 1% : 1.77 [14:38:59]line НДС 12% : 21.24 [14:38:59]line Наличными: 200.00 [14:38:59]line Безнал.: 0.00 [14:38:59]line Место: АЗС № 173 "Партнер Нефть" [14:38:59]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:38:59]line СНО: Общий режим [14:38:59]line Чек 128 27.10.2024 14:38 [14:38:59]line Смена: 542 ФФД: 1.0 [14:38:59]line ЗНМ: 0300000115 [14:38:59]line РНМ: 0000000000091782 [14:38:59]line Версия ККМ: 001 [14:38:59]line ФМ: 0000000000871767 [14:38:59]line ФД: 117428 [14:38:59]line ФПД: 47910765327185 [14:38:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143859&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117428&fm=47910765327185&tin=02508201610067®Number=0000000000091782&sum=20000 [14:38:59]OFD Sender: Processing packet 117428 [packets to send 76, broken 75] [14:38:59]ProducePacketName [14:38:59]name=ofd_packets/00117428 [14:38:59]OFD Sender: To server: pG, [14:38:59]CommunicateWithHost lk.salyk.kg:30040 [14:38:59]written 0, free lines is 4095 [14:38:59]ConnectInit lk.salyk.kg [14:38:59]Connected sock=10 [14:38: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 36 37 0F 01 00 00 04 41 07 01 39 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 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 80 00 00 00 F4 03 04 00 83 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B4 CA 01 00 35 04 06 00 2B 93 18 25 F3 51 FD 4D 90 E2 5D 26 E6 B2 [14:38: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 36 37 4F 00 00 00 15 78 47 00 76 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 36 37 10 04 04 00 B4 CA 01 00 F4 03 04 00 40 FC 1D 67 B6 04 01 00 00 2A 5F C1 18 90 9F 24 BE [14:38:59]CommunicateWithHost err = 0 [14:38:59]CheckOFDResponse [14:38:59]1017 (14) - 77093643461234 [14:38:59]1041 (16) - 0000000000871767 [14:38:59]1040 (4) - 117428 [14:38:59]1012 (4) - 27.10.2024 08:39 [14:38:59]1206 (1) - 0 [14:38:59]OFD Sender: Remove packet 117428 [14:38:59]ProducePacketName [14:38:59]name=ofd_packets/00117428 [14:38:59]NVStorageDeleteData [14:39:00]Write to MH i2c: 01 00 00 BE 19 D7 [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: 01 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: 01 07 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: 01 07 00 BE 19 00 00 00 00 00 B1 0C 9B [14:39:00]RasterBufferAndPrint [14:39:00]line [14:39:00]line [14:39:00]line [14:39:00]line [14:39:00]line [14:39:00]written 0, free lines is 3255 [14:39:00]MH_Cut [14:39:00]Write to MH i2c: D1 01 00 C5 19 01 B0 [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: D1 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: D1 01 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: D1 01 00 C5 19 00 AF [14:39:00]Write to MH i2c: 01 00 00 C6 19 DF [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]OFD Sender: No OFD packet to send [14:39:00]*** Cut start [14:39:00]*** Purtial cut [14:39:00]*** Stage 1: CUTSNS_PIN = 1 [14:39:01]Read from MH i2c: 01 [14:39:01]MH_I2C_Read... [14:39:01]*** Stop cut motor [14:39:01]*** Cut end [14:39:01]Read from MH i2c: 01 07 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: 01 07 00 C6 19 00 00 00 00 00 FF 0F F4 [14:39:01]process_action close_receipt done [14:39:01]requested_data is exist [14:39:01]produce_requested_data [14:39:01]requested_item fm.sn is exist - process it [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 11 00 00 [14:39:01]Write to MH i2c: E2 08 00 C7 19 80 11 00 00 00 00 00 00 5A [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 17 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 17 00 C7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B1 [14:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:39:01]wFMCommunicate OK [14:39:01]requested_item fd.num is exist - process it [14:39:01]SAM_PROTO_GetFieldsCounters [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 13 00 00 [14:39:01]Write to MH i2c: E2 08 00 C8 19 80 13 00 00 00 00 00 00 5D [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 62 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 62 00 C8 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B4 CA 01 00 0E 04 04 00 1E 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 A3 [14:39: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B4 CA 01 00 0E 04 04 00 1E 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 [14:39:01]wFMCommunicate OK [14:39:01]SAM_PROTO_GetFieldsCounters done [14:39:01]requested_item shift.num is exist - process it [14:39:01]requested_item shift.opened is exist - process it [14:39:01]req_shift_opened [14:39:01]FM_GetShiftState [14:39:01]SAM_PROTO_GetShiftState [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 13 01 00 [14:39:01]Write to MH i2c: E2 08 00 C9 19 80 13 01 00 00 00 00 00 5F [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0E 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0E 00 C9 19 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 9E [14:39:01]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:39:01]wFMCommunicate OK [14:39:01]SAM_PROTO_GetShiftState done [14:39:01]FM_GetShiftState done [14:39:01]req_shift_opened done [14:39:01]requested_item shift.open_date is exist - process it [14:39:01]req_shift_open_date [14:39:01]req_shift_open_date done [14:39:01]produce_requested_data done [14:39:01]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117428,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:39:01]process_action_free close_receipt [14:39:01]json_value_free [14:39:01]json_value_free done [14:39:01]process_json_proto returns [14:39:01]Send response to host [14:39:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117428,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:39:01]free response buf [14:39:01]execute_script done [14:39:01]execute_script returns [14:39:01]free content buf [14:39:01]Sock 9.Close socket [14:39:01]Sock 9.Thread stoped [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:22]accept exits with 7 [14:39:22]New connection [14:39:22]New thread 3067600228 created [14:39:22]Thread 3067456868 joined [14:39:22]Waiting for new connection... [14:39:22] Sock 7.Parse request [14:39:22]Sock 7.Check first char [14:39:22]Sock 7.First char is OK [14:39:22]request: POST /json_proto HTTP/1.0 [14:39:22]Method: POST [14:39:22]URL: /json_proto [14:39:22]Method is POST - this is cgi request [14:39:22]url: /json_proto [14:39:22]query_string will be loaded in cgi processing [14:39:22]execute_cgi json_proto POST (null) [14:39:22]execute_cgi path=json_proto method=POST [14:39:22]POST find Content-Length [14:39:22]Host: 172.17.96.67:8080 [14:39:22]Content-Length: 984 [14:39:22]Content-Type: application/json [14:39:22] [14:39:22]POST finish read [14:39:22]Found Content-Length = 984 [14:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:22]execute_script... [14:39: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)245204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:22]POST & json_proto [14:39:22]process_json_proto [14:39:22]json parsed OK: [14:39:22]protocol is kg_v1.0 [14:39:22]action value=close_receipt [14:39:22]process_action close_receipt [14:39:22]cmd_close_receipt [14:39:22]MH_GetDate [14:39:22]Write to MH i2c: F0 00 00 CA 19 D2 [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: F0 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: F0 09 00 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: F0 09 00 CA 19 00 9C 50 1E 67 2B 09 1E 67 05 [14:39:22]GetLastDocTimeStamp 1730039939 [14:39:22]current date 1730039964 [14:39:22]FM_GetShiftState [14:39:22]SAM_PROTO_GetShiftState [14:39:22]wFMCommunicate request_size=4 [14:39:22]MH_SAM_APDU [14:39:22]CAPDU: 80 13 01 00 [14:39:22]Write to MH i2c: E2 08 00 CB 19 80 13 01 00 00 00 00 00 61 [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:22]Read from MH i2c: E2 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: E2 0E 00 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: E2 0E 00 CB 19 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A0 [14:39:22]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:39:22]wFMCommunicate OK [14:39:22]SAM_PROTO_GetShiftState done [14:39:22]FM_GetShiftState done [14:39:22]opened in 1729987372 [14:39:22]opened+sec_in_day 1730073772 [14:39:22]quantity*price = 150054 [14:39:22]sum+1 = 150055 [14:39:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 129 27.10.2024 14:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 22.77 сом ФМ: 0000000000871767 ФД: 117429 ФПД: 221864634385974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143924&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117429&fm=221864634385974&tin=02508201610067®Number=0000000000091782&sum=150000 [14:39:23]StoreToDocumentArchive [14:39:23]shift 542 fd 117429 [14:39:23]save to /storage/0542/doc_00117429 [14:39:23]save last doc name /storage/0542/doc_00117429 to /storage/kkm_last_doc_name [14:39:23]save OK [14:39:23]Clear old archive folders... [14:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:23]tlvbuf is 0170FE50 [14:39:23]SAM_PROTO_ClearQueue [14:39:23]wFMCommunicate request_size=4 [14:39:23]MH_SAM_APDU [14:39:23]CAPDU: 80 09 00 00 [14:39:23]Write to MH i2c: E2 08 00 D8 19 80 09 00 00 00 00 00 00 63 [14:39:23]Write i2c OK [14:39:23]MH_I2C_Read... [14:39:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:23]Read from MH i2c: E2 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 03 00 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [14:39:23]RAPDU: 90 00 [14:39:23]wFMCommunicate OK [14:39:23]SAM_PROTO_ClearQueue done [14:39:23]KKMCreateOFDPacket [14:39:23]OFDProtocolAddRootSTLVToBuf [14:39:23]FM_MakeSignedData [14:39:23]FM_MakeSignedData [14:39:23]SAM_PROTO_SignData [14:39:23]wFMCommunicate request_size=4 [14:39:23]MH_SAM_APDU [14:39:23]CAPDU: 80 0D 01 02 [14:39:23]Write to MH i2c: E2 08 00 D9 19 80 0D 01 02 00 00 00 00 6B [14:39:23]Write i2c OK [14:39:23]MH_I2C_Read... [14:39:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:23]Read from MH i2c: E2 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 03 00 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [14:39:23]RAPDU: 90 00 [14:39:23]wFMCommunicate OK [14:39:23]wFMCommunicate request_size=255 [14:39:23]MH_SAM_APDU [14:39: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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 81 00 00 00 F4 03 04 00 9C 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CA 01 00 35 04 06 00 C9 [14:39:23]Write to MH i2c: E2 02 01 DA 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 81 00 00 00 F4 03 04 00 9C 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CA 01 00 35 04 06 00 C9 00 00 8E [14:39:23]Write i2c OK [14:39:23]MH_I2C_Read... [14:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:23]Read from MH i2c: E2 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 03 00 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 03 00 DA 19 00 90 00 67 [14:39:23]RAPDU: 90 00 [14:39:23]wFMCommunicate OK [14:39:23]wFMCommunicate request_size=10 [14:39:23]MH_SAM_APDU [14:39:23]CAPDU: 80 0D 02 02 05 C8 E2 B8 86 36 [14:39:23]Write to MH i2c: E2 0D 00 DB 19 80 0D 02 02 05 00 C8 E2 B8 86 36 00 00 96 [14:39:23]Write i2c OK [14:39:23]MH_I2C_Read... [14:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:23]Read from MH i2c: E2 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 03 00 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 03 00 DB 19 00 90 00 68 [14:39:23]RAPDU: 90 00 [14:39:23]wFMCommunicate OK [14:39:23]wFMCommunicate request_size=4 [14:39:23]MH_SAM_APDU [14:39:23]CAPDU: 80 0D 03 02 [14:39:23]Write to MH i2c: E2 08 00 DC 19 80 0D 03 02 00 00 00 00 70 [14:39:23]Write i2c OK [14:39:23]MH_I2C_Read... [14:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:24]Read from MH i2c: E2 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 0B 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 0B 00 DC 19 00 58 FF 67 A5 BD 06 CB 5E 90 00 C0 [14:39:24]RAPDU: 58 FF 67 A5 BD 06 CB 5E 90 00 [14:39:24]wFMCommunicate OK [14:39:24]SAM_PROTO_SignData done [14:39:24]FM_MakeSignedData done [14:39:24]CreateOFDProtocolMessage [14:39:24]wFMCommunicate request_size=4 [14:39:24]MH_SAM_APDU [14:39:24]CAPDU: 80 11 00 00 [14:39:24]Write to MH i2c: E2 08 00 DD 19 80 11 00 00 00 00 00 00 70 [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:24]Read from MH i2c: E2 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 17 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 17 00 DD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C7 [14:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:39:24]wFMCommunicate OK [14:39:24]CreateOFDProtocolMessage done [14:39:24]OFDSenderStorePacket 117429 [14:39:24]StoreOFDPacket docnum=117429 [14:39:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 51 33 07 01 DD 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 81 00 00 00 F4 03 04 00 9C 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CA 01 00 35 04 06 00 C9 C8 E2 B8 86 36 58 FF 67 A5 BD 06 CB 5E [14:39:24]CheckFolder [14:39:24]dirname=/storage/ofd_packets [14:39:24]CheckFolder done [14:39:24]ProducePacketName [14:39:24]name=ofd_packets/00117429 [14:39:24]NVStorageSaveData ofd_packets/00117429 [14:39:24]File name is /storage/ofd_packets/00117429 [14:39:24]Write 301 bytes [14:39:24]NVStorageSaveData done [14:39:24]OFDSenderStorePacket done [14:39:24]KKMCreateOFDPacket done [14:39:24]NVStorageSaveData kkm_last_timestamp [14:39:24]File name is /storage/kkm_last_timestamp [14:39:24]Write 4 bytes [14:39:24]NVStorageSaveData done [14:39:24]ExternCall_PrintAddStr [14:39:24]wPrintStart [14:39:24]Write to MH i2c: 01 00 00 DE 19 F7 [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 DE 19 00 00 00 00 00 FF 0F 0C [14:39:24]RasterBufferAndPrint [14:39:24]line Счет N : (1)245204 [14:39:24]line ИНН: 02508201610067 [14:39:24]line Контрольно-Кассовый Чек [14:39:24]line ПРОДАЖА [14:39:24]line ТРК (МРК, ГНК) : 11 [14:39:24]line Товар: 2710124130 [14:39:24]line Аи-92-К-2 [14:39:24]line 22.770 * 65.90 [14:39:24]line = 1500.54 [14:39:24]line НДС 12% НСП 1% [14:39:24]line > о реализуемом товаре [14:39:24]line ОКРУГЛЕНИЕ: -0.54 [14:39:24]line ИТОГО: 1500.00 [14:39:24]line Внесено: 1500.00 [14:39:24]line СДАЧА: 0.00 [14:39:24]line НСП 1% : 13.28 [14:39:24]line НДС 12% : 159.35 [14:39:24]line Наличными: 1500.00 [14:39:24]line Безнал.: 0.00 [14:39:24]line Место: АЗС № 173 "Партнер Нефть" [14:39:24]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:39:24]line СНО: Общий режим [14:39:24]line Чек 129 27.10.2024 14:39 [14:39:24]line Смена: 542 ФФД: 1.0 [14:39:24]line ЗНМ: 0300000115 [14:39:24]line РНМ: 0000000000091782 [14:39:24]line Версия ККМ: 001 [14:39:24]line [14:39:24]line Дисконтная программа [14:39:24]line АИ-92 [14:39:24]line номер 173 [14:39:24]line сэкономлено 22.77 сом [14:39:24]line ФМ: 0000000000871767 [14:39:24]line ФД: 117429 [14:39:24]line ФПД: 221864634385974 [14:39:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143924&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117429&fm=221864634385974&tin=02508201610067®Number=0000000000091782&sum=150000 [14:39:24]OFD Sender: Processing packet 117429 [packets to send 76, broken 75] [14:39:24]ProducePacketName [14:39:24]name=ofd_packets/00117429 [14:39:24]OFD Sender: To server: pG, [14:39:24]CommunicateWithHost lk.salyk.kg:30040 [14:39:24]ConnectInit lk.salyk.kg [14:39:24]written 0, free lines is 4095 [14:39:24]Connected sock=10 [14:39: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 36 37 0F 01 00 00 51 33 07 01 DD 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 81 00 00 00 F4 03 04 00 9C 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CA 01 00 35 04 06 00 C9 C8 E2 B8 86 36 58 FF 67 A5 BD 06 CB 5E [14:39: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 36 37 4F 00 00 00 B9 F6 47 00 FB 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CA 01 00 F4 03 04 00 59 FC 1D 67 B6 04 01 00 00 D4 DF 19 A5 8A 94 6B E9 [14:39:24]CommunicateWithHost err = 0 [14:39:24]CheckOFDResponse [14:39:24]1017 (14) - 77093643461234 [14:39:24]1041 (16) - 0000000000871767 [14:39:24]1040 (4) - 117429 [14:39:24]1012 (4) - 27.10.2024 08:39 [14:39:24]1206 (1) - 0 [14:39:24]OFD Sender: Remove packet 117429 [14:39:24]ProducePacketName [14:39:24]name=ofd_packets/00117429 [14:39:24]NVStorageDeleteData [14:39:24]Write to MH i2c: 01 00 00 0D 1A 27 [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 0D 1A 00 00 00 00 00 5C 0C 96 [14:39:24]RasterBufferAndPrint [14:39:24]line [14:39:24]line [14:39:24]line [14:39:24]line [14:39:24]line [14:39:24]written 0, free lines is 3169 [14:39:24]MH_Cut [14:39:24]Write to MH i2c: D1 01 00 14 1A 01 00 [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: D1 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: D1 01 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: D1 01 00 14 1A 00 FF [14:39:24]Write to MH i2c: 01 00 00 15 1A 2F [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:25]OFD Sender: No OFD packet to send [14:39:25]*** Cut start [14:39:25]*** Purtial cut [14:39:25]*** Stage 1: CUTSNS_PIN = 1 [14:39:26]Read from MH i2c: 01 [14:39:26]MH_I2C_Read... [14:39:26]*** Stop cut motor [14:39:26]*** Cut end [14:39:26]Read from MH i2c: 01 07 00 [14:39:26]MH_I2C_Read... [14:39:26]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 FF 0F 44 [14:39:26]process_action close_receipt done [14:39:26]requested_data is exist [14:39:26]produce_requested_data [14:39:26]requested_item fm.sn is exist - process it [14:39:26]wFMCommunicate request_size=4 [14:39:26]MH_SAM_APDU [14:39:26]CAPDU: 80 11 00 00 [14:39:26]Write to MH i2c: E2 08 00 16 1A 80 11 00 00 00 00 00 00 AA [14:39:26]Write i2c OK [14:39:26]MH_I2C_Read... [14:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:26]Read from MH i2c: E2 [14:39:26]MH_I2C_Read... [14:39:26]Read from MH i2c: E2 17 00 [14:39:26]MH_I2C_Read... [14:39:26]Read from MH i2c: E2 17 00 16 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 01 [14:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:39:26]wFMCommunicate OK [14:39:26]requested_item fd.num is exist - process it [14:39:26]SAM_PROTO_GetFieldsCounters [14:39:26]wFMCommunicate request_size=4 [14:39:26]MH_SAM_APDU [14:39:26]CAPDU: 80 13 00 00 [14:39:26]Write to MH i2c: E2 08 00 17 1A 80 13 00 00 00 00 00 00 AD [14:39:26]Write i2c OK [14:39:26]MH_I2C_Read... [14:39:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:26]Read from MH i2c: E2 [14:39:26]MH_I2C_Read... [14:39:26]Read from MH i2c: E2 62 00 [14:39:26]MH_I2C_Read... [14:39:26]Read from MH i2c: E2 62 00 17 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B5 CA 01 00 0E 04 04 00 1E 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 F7 [14:39: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B5 CA 01 00 0E 04 04 00 1E 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 [14:39:26]wFMCommunicate OK [14:39:26]SAM_PROTO_GetFieldsCounters done [14:39:26]requested_item shift.num is exist - process it [14:39:26]requested_item shift.opened is exist - process it [14:39:26]req_shift_opened [14:39:26]FM_GetShiftState [14:39:26]SAM_PROTO_GetShiftState [14:39:26]wFMCommunicate request_size=4 [14:39:26]MH_SAM_APDU [14:39:26]CAPDU: 80 13 01 00 [14:39:26]Write to MH i2c: E2 08 00 18 1A 80 13 01 00 00 00 00 00 AF [14:39:26]Write i2c OK [14:39:26]MH_I2C_Read... [14:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:26]Read from MH i2c: E2 [14:39:26]MH_I2C_Read... [14:39:26]Read from MH i2c: E2 0E 00 [14:39:26]MH_I2C_Read... [14:39:26]Read from MH i2c: E2 0E 00 18 1A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 EE [14:39:26]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:39:26]wFMCommunicate OK [14:39:26]SAM_PROTO_GetShiftState done [14:39:26]FM_GetShiftState done [14:39:26]req_shift_opened done [14:39:26]requested_item shift.open_date is exist - process it [14:39:26]req_shift_open_date [14:39:26]req_shift_open_date done [14:39:26]produce_requested_data done [14:39:26]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117429,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:39:26]process_action_free close_receipt [14:39:26]json_value_free [14:39:26]json_value_free done [14:39:26]process_json_proto returns [14:39:26]Send response to host [14:39:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117429,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:39:26]free response buf [14:39:26]execute_script done [14:39:26]execute_script returns [14:39:26]free content buf [14:39:26]Sock 7.Close socket [14:39:26]Sock 7.Thread stoped [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:44]accept exits with 9 [14:58:44]New connection [14:58:44]New thread 3067456868 created [14:58:44]Thread 3067600228 joined [14:58:44]Waiting for new connection... [14:58:44] Sock 9.Parse request [14:58:44]Sock 9.Check first char [14:58:44]Sock 9.First char is OK [14:58:44]request: POST /json_proto HTTP/1.0 [14:58:44]Method: POST [14:58:44]URL: /json_proto [14:58:44]Method is POST - this is cgi request [14:58:44]url: /json_proto [14:58:44]query_string will be loaded in cgi processing [14:58:44]execute_cgi json_proto POST (null) [14:58:44]execute_cgi path=json_proto method=POST [14:58:44]POST find Content-Length [14:58:44]Host: 172.17.96.67:8080 [14:58:44]Content-Length: 677 [14:58:44]Content-Type: application/json [14:58:44] [14:58:44]POST finish read [14:58:44]Found Content-Length = 677 [14:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:58:44]execute_script... [14:58:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:58:44]POST & json_proto [14:58:44]process_json_proto [14:58:44]json parsed OK: [14:58:44]protocol is kg_v1.0 [14:58:44]action value=close_receipt [14:58:44]process_action close_receipt [14:58:44]cmd_close_receipt [14:58:44]MH_GetDate [14:58:44]Write to MH i2c: F0 00 00 19 1A 22 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: F0 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: F0 09 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: F0 09 00 19 1A 00 26 55 1E 67 2B 09 1E 67 E4 [14:58:44]GetLastDocTimeStamp 1730039964 [14:58:44]current date 1730041126 [14:58:44]FM_GetShiftState [14:58:44]SAM_PROTO_GetShiftState [14:58:44]wFMCommunicate request_size=4 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 13 01 00 [14:58:44]Write to MH i2c: E2 08 00 1A 1A 80 13 01 00 00 00 00 00 B1 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0E 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0E 00 1A 1A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F0 [14:58:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:58:44]wFMCommunicate OK [14:58:44]SAM_PROTO_GetShiftState done [14:58:44]FM_GetShiftState done [14:58:44]opened in 1729987372 [14:58:44]opened+sec_in_day 1730073772 [14:58:44]quantity*price = 20003 [14:58:44]sum+1 = 20004 [14:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 130 27.10.2024 14:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117430 ФПД: 146463002574500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145846&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117430&fm=146463002574500&tin=02508201610067®Number=0000000000091782&sum=20000 [14:58:45]StoreToDocumentArchive [14:58:45]shift 542 fd 117430 [14:58:45]save to /storage/0542/doc_00117430 [14:58:45]save last doc name /storage/0542/doc_00117430 to /storage/kkm_last_doc_name [14:58:45]save OK [14:58:45]Clear old archive folders... [14:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:45]tlvbuf is 01700850 [14:58:45]SAM_PROTO_ClearQueue [14:58:45]wFMCommunicate request_size=4 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 09 00 00 [14:58:45]Write to MH i2c: E2 08 00 27 1A 80 09 00 00 00 00 00 00 B3 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 27 1A 00 90 00 B5 [14:58:45]RAPDU: 90 00 [14:58:45]wFMCommunicate OK [14:58:45]SAM_PROTO_ClearQueue done [14:58:45]KKMCreateOFDPacket [14:58:45]OFDProtocolAddRootSTLVToBuf [14:58:45]FM_MakeSignedData [14:58:45]FM_MakeSignedData [14:58:45]SAM_PROTO_SignData [14:58:45]wFMCommunicate request_size=4 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 0D 01 02 [14:58:45]Write to MH i2c: E2 08 00 28 1A 80 0D 01 02 00 00 00 00 BB [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 28 1A 00 90 00 B6 [14:58:45]RAPDU: 90 00 [14:58:45]wFMCommunicate OK [14:58:45]wFMCommunicate request_size=255 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 82 00 00 00 F4 03 04 00 26 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B6 CA 01 00 35 04 06 00 85 [14:58:45]Write to MH i2c: E2 02 01 29 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 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 82 00 00 00 F4 03 04 00 26 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B6 CA 01 00 35 04 06 00 85 00 00 B7 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 03 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 03 00 29 1A 00 90 00 B7 [14:58:46]RAPDU: 90 00 [14:58:46]wFMCommunicate OK [14:58:46]wFMCommunicate request_size=10 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 0D 02 02 05 35 13 3D BE A4 [14:58:46]Write to MH i2c: E2 0D 00 2A 1A 80 0D 02 02 05 00 35 13 3D BE A4 00 00 AF [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 03 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 03 00 2A 1A 00 90 00 B8 [14:58:46]RAPDU: 90 00 [14:58:46]wFMCommunicate OK [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 0D 03 02 [14:58:46]Write to MH i2c: E2 08 00 2B 1A 80 0D 03 02 00 00 00 00 C0 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 0B 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 0B 00 2B 1A 00 7E 5A 69 3A 81 FB D0 36 90 00 BE [14:58:46]RAPDU: 7E 5A 69 3A 81 FB D0 36 90 00 [14:58:46]wFMCommunicate OK [14:58:46]SAM_PROTO_SignData done [14:58:46]FM_MakeSignedData done [14:58:46]CreateOFDProtocolMessage [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 11 00 00 [14:58:46]Write to MH i2c: E2 08 00 2C 1A 80 11 00 00 00 00 00 00 C0 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 17 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 17 00 2C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 17 [14:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:58:46]wFMCommunicate OK [14:58:46]CreateOFDProtocolMessage done [14:58:46]OFDSenderStorePacket 117430 [14:58:46]StoreOFDPacket docnum=117430 [14:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 DF AA 07 01 14 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 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 82 00 00 00 F4 03 04 00 26 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B6 CA 01 00 35 04 06 00 85 35 13 3D BE A4 7E 5A 69 3A 81 FB D0 36 [14:58:46]CheckFolder [14:58:46]dirname=/storage/ofd_packets [14:58:46]CheckFolder done [14:58:46]ProducePacketName [14:58:46]name=ofd_packets/00117430 [14:58:46]NVStorageSaveData ofd_packets/00117430 [14:58:46]File name is /storage/ofd_packets/00117430 [14:58:46]Write 301 bytes [14:58:46]NVStorageSaveData done [14:58:46]OFDSenderStorePacket done [14:58:46]KKMCreateOFDPacket done [14:58:46]NVStorageSaveData kkm_last_timestamp [14:58:46]File name is /storage/kkm_last_timestamp [14:58:46]Write 4 bytes [14:58:46]NVStorageSaveData done [14:58:46]ExternCall_PrintAddStr [14:58:46]wPrintStart [14:58:46]Write to MH i2c: 01 00 00 2D 1A 47 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 2D 1A 00 00 00 00 00 FF 0F 5C [14:58:46]RasterBufferAndPrint [14:58:46]line Счет N : (1)245206 [14:58:46]line ИНН: 02508201610067 [14:58:46]line Контрольно-Кассовый Чек [14:58:46]line ПРОДАЖА [14:58:46]line ТРК (МРК, ГНК) : 21 [14:58:46]line Товар: 2710124130 [14:58:46]line Аи-92-К-2 [14:58:46]line 2.990 * 66.90 [14:58:46]line = 200.03 [14:58:46]line НДС 12% НСП 1% [14:58:46]line > о реализуемом товаре [14:58:46]line ОКРУГЛЕНИЕ: -0.03 [14:58:46]line ИТОГО: 200.00 [14:58:46]line Внесено: 200.00 [14:58:46]line СДАЧА: 0.00 [14:58:46]line НСП 1% : 1.77 [14:58:46]line НДС 12% : 21.24 [14:58:46]line Наличными: 200.00 [14:58:46]line Безнал.: 0.00 [14:58:46]line Место: АЗС № 173 "Партнер Нефть" [14:58:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:58:46]line СНО: Общий режим [14:58:46]line Чек 130 27.10.2024 14:58 [14:58:46]line Смена: 542 ФФД: 1.0 [14:58:46]line ЗНМ: 0300000115 [14:58:46]line РНМ: 0000000000091782 [14:58:46]line Версия ККМ: 001 [14:58:46]line ФМ: 0000000000871767 [14:58:46]line ФД: 117430 [14:58:46]line ФПД: 146463002574500 [14:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145846&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117430&fm=146463002574500&tin=02508201610067®Number=0000000000091782&sum=20000 [14:58:46]written 0, free lines is 4095 [14:58:46]OFD Sender: Processing packet 117430 [packets to send 76, broken 75] [14:58:46]ProducePacketName [14:58:46]name=ofd_packets/00117430 [14:58:46]OFD Sender: To server: pG, [14:58:46]CommunicateWithHost lk.salyk.kg:30040 [14:58:46]ConnectInit lk.salyk.kg [14:58:46]Connected sock=10 [14:58: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 36 37 0F 01 00 00 DF AA 07 01 14 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 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 82 00 00 00 F4 03 04 00 26 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B6 CA 01 00 35 04 06 00 85 35 13 3D BE A4 7E 5A 69 3A 81 FB D0 36 [14:58: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 36 37 4F 00 00 00 A1 E1 47 00 CB 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 36 37 10 04 04 00 B6 CA 01 00 F4 03 04 00 E3 00 1E 67 B6 04 01 00 00 34 DE C6 E9 E2 9C 49 B2 [14:58:46]CommunicateWithHost err = 0 [14:58:46]CheckOFDResponse [14:58:46]1017 (14) - 77093643461234 [14:58:46]1041 (16) - 0000000000871767 [14:58:46]1040 (4) - 117430 [14:58:46]1012 (4) - 27.10.2024 08:59 [14:58:46]1206 (1) - 0 [14:58:46]OFD Sender: Remove packet 117430 [14:58:46]ProducePacketName [14:58:46]name=ofd_packets/00117430 [14:58:46]NVStorageDeleteData [14:58:47]Write to MH i2c: 01 00 00 57 1A 71 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: 01 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: 01 07 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: 01 07 00 57 1A 00 00 00 00 00 B3 0C 37 [14:58:47]RasterBufferAndPrint [14:58:47]line [14:58:47]line [14:58:47]line [14:58:47]line [14:58:47]line [14:58:47]written 0, free lines is 3255 [14:58:47]MH_Cut [14:58:47]Write to MH i2c: D1 01 00 5E 1A 01 4A [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: D1 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: D1 01 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: D1 01 00 5E 1A 00 49 [14:58:47]Write to MH i2c: 01 00 00 5F 1A 79 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]OFD Sender: No OFD packet to send [14:58:47]*** Cut start [14:58:47]*** Purtial cut [14:58:47]*** Stage 1: CUTSNS_PIN = 1 [14:58:48]Read from MH i2c: 01 [14:58:48]MH_I2C_Read... [14:58:48]*** Stop cut motor [14:58:48]*** Cut end [14:58:48]Read from MH i2c: 01 07 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: 01 07 00 5F 1A 00 00 00 00 00 FF 0F 8E [14:58:48]process_action close_receipt done [14:58:48]requested_data is exist [14:58:48]produce_requested_data [14:58:48]requested_item fm.sn is exist - process it [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 11 00 00 [14:58:48]Write to MH i2c: E2 08 00 60 1A 80 11 00 00 00 00 00 00 F4 [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 17 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 17 00 60 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4B [14:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:58:48]wFMCommunicate OK [14:58:48]requested_item fd.num is exist - process it [14:58:48]SAM_PROTO_GetFieldsCounters [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 13 00 00 [14:58:48]Write to MH i2c: E2 08 00 61 1A 80 13 00 00 00 00 00 00 F7 [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 62 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 62 00 61 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B6 CA 01 00 0E 04 04 00 1E 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 45 [14:58: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B6 CA 01 00 0E 04 04 00 1E 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 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_GetFieldsCounters done [14:58:48]requested_item shift.num is exist - process it [14:58:48]requested_item shift.opened is exist - process it [14:58:48]req_shift_opened [14:58:48]FM_GetShiftState [14:58:48]SAM_PROTO_GetShiftState [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 13 01 00 [14:58:48]Write to MH i2c: E2 08 00 62 1A 80 13 01 00 00 00 00 00 F9 [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 0E 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 0E 00 62 1A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 38 [14:58:48]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_GetShiftState done [14:58:48]FM_GetShiftState done [14:58:48]req_shift_opened done [14:58:48]requested_item shift.open_date is exist - process it [14:58:48]req_shift_open_date [14:58:48]req_shift_open_date done [14:58:48]produce_requested_data done [14:58:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117430,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [14:58:48]process_action_free close_receipt [14:58:48]json_value_free [14:58:48]json_value_free done [14:58:48]process_json_proto returns [14:58:48]Send response to host [14:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117430,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [14:58:48]free response buf [14:58:48]execute_script done [14:58:48]execute_script returns [14:58:48]free content buf [14:58:48]Sock 9.Close socket [14:58:48]Sock 9.Thread stoped [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [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 [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:40]accept exits with 7 [15:24:40]New connection [15:24:40]New thread 3067600228 created [15:24:40]Thread 3067456868 joined [15:24:40]Waiting for new connection... [15:24:40] Sock 7.Parse request [15:24:40]Sock 7.Check first char [15:24:40]Sock 7.First char is OK [15:24:40]request: POST /json_proto HTTP/1.0 [15:24:40]Method: POST [15:24:40]URL: /json_proto [15:24:40]Method is POST - this is cgi request [15:24:40]url: /json_proto [15:24:40]query_string will be loaded in cgi processing [15:24:40]execute_cgi json_proto POST (null) [15:24:40]execute_cgi path=json_proto method=POST [15:24:40]POST find Content-Length [15:24:40]Host: 172.17.96.67:8080 [15:24:40]Content-Length: 677 [15:24:40]Content-Type: application/json [15:24:40] [15:24:40]POST finish read [15:24:40]Found Content-Length = 677 [15:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:24:40]execute_script... [15:24: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)245207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:24:40]POST & json_proto [15:24:40]process_json_proto [15:24:40]json parsed OK: [15:24:40]protocol is kg_v1.0 [15:24:40]action value=close_receipt [15:24:40]process_action close_receipt [15:24:40]cmd_close_receipt [15:24:40]MH_GetDate [15:24:40]Write to MH i2c: F0 00 00 63 1A 6C [15:24:40]Write i2c OK [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: F0 [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: F0 09 00 [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: F0 09 00 63 1A 00 3A 5B 1E 67 2B 09 1E 67 48 [15:24:40]GetLastDocTimeStamp 1730041126 [15:24:40]current date 1730042682 [15:24:40]FM_GetShiftState [15:24:40]SAM_PROTO_GetShiftState [15:24:40]wFMCommunicate request_size=4 [15:24:40]MH_SAM_APDU [15:24:40]CAPDU: 80 13 01 00 [15:24:40]Write to MH i2c: E2 08 00 64 1A 80 13 01 00 00 00 00 00 FB [15:24:40]Write i2c OK [15:24:40]MH_I2C_Read... [15:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:40]Read from MH i2c: E2 [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: E2 0E 00 [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: E2 0E 00 64 1A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 3A [15:24:40]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:24:40]wFMCommunicate OK [15:24:40]SAM_PROTO_GetShiftState done [15:24:40]FM_GetShiftState done [15:24:40]opened in 1729987372 [15:24:40]opened+sec_in_day 1730073772 [15:24:40]quantity*price = 50041 [15:24:40]sum+1 = 50042 [15:24: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 131 27.10.2024 15:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117431 ФПД: 124657778881136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117431&fm=124657778881136&tin=02508201610067®Number=0000000000091782&sum=50000 [15:24:41]StoreToDocumentArchive [15:24:41]shift 542 fd 117431 [15:24:41]save to /storage/0542/doc_00117431 [15:24:41]save last doc name /storage/0542/doc_00117431 to /storage/kkm_last_doc_name [15:24:41]save OK [15:24:41]Clear old archive folders... [15:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:41]tlvbuf is 017745A0 [15:24:41]SAM_PROTO_ClearQueue [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 09 00 00 [15:24:41]Write to MH i2c: E2 08 00 71 1A 80 09 00 00 00 00 00 00 FD [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 71 1A 00 90 00 FF [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]SAM_PROTO_ClearQueue done [15:24:41]KKMCreateOFDPacket [15:24:41]OFDProtocolAddRootSTLVToBuf [15:24:41]FM_MakeSignedData [15:24:41]FM_MakeSignedData [15:24:41]SAM_PROTO_SignData [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 0D 01 02 [15:24:41]Write to MH i2c: E2 08 00 72 1A 80 0D 01 02 00 00 00 00 05 [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 72 1A 00 90 00 00 [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]wFMCommunicate request_size=255 [15:24:41]MH_SAM_APDU [15:24: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 83 00 00 00 F4 03 04 00 3A 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B7 CA 01 00 35 04 06 00 71 [15:24:41]Write to MH i2c: E2 02 01 73 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B7 CA 01 00 35 04 06 00 71 00 00 47 [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 73 1A 00 90 00 01 [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]wFMCommunicate request_size=10 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 0D 02 02 05 60 26 A0 F2 70 [15:24:41]Write to MH i2c: E2 0D 00 74 1A 80 0D 02 02 05 00 60 26 A0 F2 70 00 00 9A [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 74 1A 00 90 00 02 [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 0D 03 02 [15:24:41]Write to MH i2c: E2 08 00 75 1A 80 0D 03 02 00 00 00 00 0A [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 0B 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 0B 00 75 1A 00 3A A6 03 48 C6 E3 BB 47 90 00 E1 [15:24:41]RAPDU: 3A A6 03 48 C6 E3 BB 47 90 00 [15:24:41]wFMCommunicate OK [15:24:41]SAM_PROTO_SignData done [15:24:41]FM_MakeSignedData done [15:24:41]CreateOFDProtocolMessage [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 11 00 00 [15:24:41]Write to MH i2c: E2 08 00 76 1A 80 11 00 00 00 00 00 00 0A [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:42]Read from MH i2c: E2 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 17 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 17 00 76 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 61 [15:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:24:42]wFMCommunicate OK [15:24:42]CreateOFDProtocolMessage done [15:24:42]OFDSenderStorePacket 117431 [15:24:42]StoreOFDPacket docnum=117431 [15:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8C 84 07 01 61 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B7 CA 01 00 35 04 06 00 71 60 26 A0 F2 70 3A A6 03 48 C6 E3 BB 47 [15:24:42]CheckFolder [15:24:42]dirname=/storage/ofd_packets [15:24:42]CheckFolder done [15:24:42]ProducePacketName [15:24:42]name=ofd_packets/00117431 [15:24:42]NVStorageSaveData ofd_packets/00117431 [15:24:42]File name is /storage/ofd_packets/00117431 [15:24:42]Write 301 bytes [15:24:42]NVStorageSaveData done [15:24:42]OFDSenderStorePacket done [15:24:42]KKMCreateOFDPacket done [15:24:42]NVStorageSaveData kkm_last_timestamp [15:24:42]File name is /storage/kkm_last_timestamp [15:24:42]Write 4 bytes [15:24:42]NVStorageSaveData done [15:24:42]ExternCall_PrintAddStr [15:24:42]wPrintStart [15:24:42]Write to MH i2c: 01 00 00 77 1A 91 [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 77 1A 00 00 00 00 00 FF 0F A6 [15:24:42]RasterBufferAndPrint [15:24:42]line Счет N : (1)245207 [15:24:42]line ИНН: 02508201610067 [15:24:42]line Контрольно-Кассовый Чек [15:24:42]line ПРОДАЖА [15:24:42]line ТРК (МРК, ГНК) : 21 [15:24:42]line Товар: 2710124130 [15:24:42]line Аи-92-К-2 [15:24:42]line 7.480 * 66.90 [15:24:42]line = 500.41 [15:24:42]line НДС 12% НСП 1% [15:24:42]line > о реализуемом товаре [15:24:42]line ОКРУГЛЕНИЕ: -0.41 [15:24:42]line ИТОГО: 500.00 [15:24:42]line Внесено: 500.00 [15:24:42]line СДАЧА: 0.00 [15:24:42]line НСП 1% : 4.43 [15:24:42]line НДС 12% : 53.14 [15:24:42]line Наличными: 500.00 [15:24:42]line Безнал.: 0.00 [15:24:42]line Место: АЗС № 173 "Партнер Нефть" [15:24:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:24:42]line СНО: Общий режим [15:24:42]line Чек 131 27.10.2024 15:24 [15:24:42]line Смена: 542 ФФД: 1.0 [15:24:42]line ЗНМ: 0300000115 [15:24:42]line РНМ: 0000000000091782 [15:24:42]line Версия ККМ: 001 [15:24:42]line ФМ: 0000000000871767 [15:24:42]line ФД: 117431 [15:24:42]line ФПД: 124657778881136 [15:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117431&fm=124657778881136&tin=02508201610067®Number=0000000000091782&sum=50000 [15:24:42]OFD Sender: Processing packet 117431 [packets to send 76, broken 75] [15:24:42]ProducePacketName [15:24:42]name=ofd_packets/00117431 [15:24:42]OFD Sender: To server: pG, [15:24:42]CommunicateWithHost lk.salyk.kg:30040 [15:24:42]ConnectInit lk.salyk.kg [15:24:42]written 0, free lines is 4095 [15:24:42]Connected sock=10 [15:24: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 36 37 0F 01 00 00 8C 84 07 01 61 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B7 CA 01 00 35 04 06 00 71 60 26 A0 F2 70 3A A6 03 48 C6 E3 BB 47 [15:24: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 36 37 4F 00 00 00 B4 E5 47 00 BC 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 36 37 10 04 04 00 B7 CA 01 00 F4 03 04 00 F7 06 1E 67 B6 04 01 00 00 E6 AB FE 63 2B DF 9D 99 [15:24:42]CommunicateWithHost err = 0 [15:24:42]CheckOFDResponse [15:24:42]1017 (14) - 77093643461234 [15:24:42]1041 (16) - 0000000000871767 [15:24:42]1040 (4) - 117431 [15:24:42]1012 (4) - 27.10.2024 09:25 [15:24:42]1206 (1) - 0 [15:24:42]OFD Sender: Remove packet 117431 [15:24:42]ProducePacketName [15:24:42]name=ofd_packets/00117431 [15:24:42]NVStorageDeleteData [15:24:42]Write to MH i2c: 01 00 00 A1 1A BB [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 A1 1A 00 00 00 00 00 B3 0C 81 [15:24:42]RasterBufferAndPrint [15:24:42]line [15:24:42]line [15:24:42]line [15:24:42]line [15:24:42]line [15:24:42]written 0, free lines is 3257 [15:24:42]MH_Cut [15:24:42]Write to MH i2c: D1 01 00 A8 1A 01 94 [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: D1 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: D1 01 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: D1 01 00 A8 1A 00 93 [15:24:42]Write to MH i2c: 01 00 00 A9 1A C3 [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:43]OFD Sender: No OFD packet to send [15:24:43]*** Cut start [15:24:43]*** Purtial cut [15:24:43]*** Stage 1: CUTSNS_PIN = 1 [15:24:43]Read from MH i2c: 01 [15:24:44]MH_I2C_Read... [15:24:44]*** Stop cut motor [15:24:44]*** Cut end [15:24:44]Read from MH i2c: 01 07 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: 01 07 00 A9 1A 00 00 00 00 00 FF 0F D8 [15:24:44]process_action close_receipt done [15:24:44]requested_data is exist [15:24:44]produce_requested_data [15:24:44]requested_item fm.sn is exist - process it [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 11 00 00 [15:24:44]Write to MH i2c: E2 08 00 AA 1A 80 11 00 00 00 00 00 00 3E [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 17 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 17 00 AA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 95 [15:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:24:44]wFMCommunicate OK [15:24:44]requested_item fd.num is exist - process it [15:24:44]SAM_PROTO_GetFieldsCounters [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 13 00 00 [15:24:44]Write to MH i2c: E2 08 00 AB 1A 80 13 00 00 00 00 00 00 41 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 62 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 62 00 AB 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B7 CA 01 00 0E 04 04 00 1E 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 93 [15:24:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B7 CA 01 00 0E 04 04 00 1E 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 [15:24:44]wFMCommunicate OK [15:24:44]SAM_PROTO_GetFieldsCounters done [15:24:44]requested_item shift.num is exist - process it [15:24:44]requested_item shift.opened is exist - process it [15:24:44]req_shift_opened [15:24:44]FM_GetShiftState [15:24:44]SAM_PROTO_GetShiftState [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 13 01 00 [15:24:44]Write to MH i2c: E2 08 00 AC 1A 80 13 01 00 00 00 00 00 43 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 0E 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 0E 00 AC 1A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 82 [15:24:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:24:44]wFMCommunicate OK [15:24:44]SAM_PROTO_GetShiftState done [15:24:44]FM_GetShiftState done [15:24:44]req_shift_opened done [15:24:44]requested_item shift.open_date is exist - process it [15:24:44]req_shift_open_date [15:24:44]req_shift_open_date done [15:24:44]produce_requested_data done [15:24:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117431,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:24:44]process_action_free close_receipt [15:24:44]json_value_free [15:24:44]json_value_free done [15:24:44]process_json_proto returns [15:24:44]Send response to host [15:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117431,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:24:44]free response buf [15:24:44]execute_script done [15:24:44]execute_script returns [15:24:44]free content buf [15:24:44]Sock 7.Close socket [15:24:44]Sock 7.Thread stoped [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:41]accept exits with 9 [15:27:41]New connection [15:27:41]New thread 3067456868 created [15:27:41]Thread 3067600228 joined [15:27:41]Waiting for new connection... [15:27:41] Sock 9.Parse request [15:27:41]Sock 9.Check first char [15:27:41]Sock 9.First char is OK [15:27:41]request: POST /json_proto HTTP/1.0 [15:27:41]Method: POST [15:27:41]URL: /json_proto [15:27:41]Method is POST - this is cgi request [15:27:41]url: /json_proto [15:27:41]query_string will be loaded in cgi processing [15:27:41]execute_cgi json_proto POST (null) [15:27:41]execute_cgi path=json_proto method=POST [15:27:41]POST find Content-Length [15:27:41]Host: 172.17.96.67:8080 [15:27:41]Content-Length: 677 [15:27:41]Content-Type: application/json [15:27:41] [15:27:41]POST finish read [15:27:41]Found Content-Length = 677 [15:27:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:27:41]execute_script... [15:27: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)245208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:27:41]POST & json_proto [15:27:41]process_json_proto [15:27:41]json parsed OK: [15:27:41]protocol is kg_v1.0 [15:27:41]action value=close_receipt [15:27:41]process_action close_receipt [15:27:41]cmd_close_receipt [15:27:41]MH_GetDate [15:27:41]Write to MH i2c: F0 00 00 AD 1A B6 [15:27:41]Write i2c OK [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: F0 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: F0 09 00 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: F0 09 00 AD 1A 00 EF 5B 1E 67 2B 09 1E 67 47 [15:27:41]GetLastDocTimeStamp 1730042682 [15:27:41]current date 1730042863 [15:27:41]FM_GetShiftState [15:27:41]SAM_PROTO_GetShiftState [15:27:41]wFMCommunicate request_size=4 [15:27:41]MH_SAM_APDU [15:27:41]CAPDU: 80 13 01 00 [15:27:41]Write to MH i2c: E2 08 00 AE 1A 80 13 01 00 00 00 00 00 45 [15:27:41]Write i2c OK [15:27:41]MH_I2C_Read... [15:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:41]Read from MH i2c: E2 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 0E 00 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 0E 00 AE 1A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 84 [15:27:41]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:27:41]wFMCommunicate OK [15:27:41]SAM_PROTO_GetShiftState done [15:27:41]FM_GetShiftState done [15:27:41]opened in 1729987372 [15:27:41]opened+sec_in_day 1730073772 [15:27:41]quantity*price = 20003 [15:27:41]sum+1 = 20004 [15:27:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 132 27.10.2024 15:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117432 ФПД: 106352587016015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152743&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117432&fm=106352587016015&tin=02508201610067®Number=0000000000091782&sum=20000 [15:27:42]StoreToDocumentArchive [15:27:42]shift 542 fd 117432 [15:27:42]save to /storage/0542/doc_00117432 [15:27:42]save last doc name /storage/0542/doc_00117432 to /storage/kkm_last_doc_name [15:27:42]save OK [15:27:42]Clear old archive folders... [15:27:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:42]tlvbuf is 01773F30 [15:27:42]SAM_PROTO_ClearQueue [15:27:42]wFMCommunicate request_size=4 [15:27:42]MH_SAM_APDU [15:27:42]CAPDU: 80 09 00 00 [15:27:42]Write to MH i2c: E2 08 00 BB 1A 80 09 00 00 00 00 00 00 47 [15:27:42]Write i2c OK [15:27:42]MH_I2C_Read... [15:27:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:42]Read from MH i2c: E2 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: E2 03 00 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: E2 03 00 BB 1A 00 90 00 49 [15:27:42]RAPDU: 90 00 [15:27:42]wFMCommunicate OK [15:27:42]SAM_PROTO_ClearQueue done [15:27:42]KKMCreateOFDPacket [15:27:42]OFDProtocolAddRootSTLVToBuf [15:27:42]FM_MakeSignedData [15:27:42]FM_MakeSignedData [15:27:42]SAM_PROTO_SignData [15:27:42]wFMCommunicate request_size=4 [15:27:42]MH_SAM_APDU [15:27:42]CAPDU: 80 0D 01 02 [15:27:42]Write to MH i2c: E2 08 00 BC 1A 80 0D 01 02 00 00 00 00 4F [15:27:42]Write i2c OK [15:27:42]MH_I2C_Read... [15:27:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:43]Read from MH i2c: E2 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 03 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 03 00 BC 1A 00 90 00 4A [15:27:43]RAPDU: 90 00 [15:27:43]wFMCommunicate OK [15:27:43]wFMCommunicate request_size=255 [15:27:43]MH_SAM_APDU [15:27: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 84 00 00 00 F4 03 04 00 EF 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B8 CA 01 00 35 04 06 00 60 [15:27:43]Write to MH i2c: E2 02 01 BD 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 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 EF 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B8 CA 01 00 35 04 06 00 60 00 00 F9 [15:27:43]Write i2c OK [15:27:43]MH_I2C_Read... [15:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:43]Read from MH i2c: E2 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 03 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 03 00 BD 1A 00 90 00 4B [15:27:43]RAPDU: 90 00 [15:27:43]wFMCommunicate OK [15:27:43]wFMCommunicate request_size=10 [15:27:43]MH_SAM_APDU [15:27:43]CAPDU: 80 0D 02 02 05 BA 24 2B 87 4F [15:27:43]Write to MH i2c: E2 0D 00 BE 1A 80 0D 02 02 05 00 BA 24 2B 87 4F 00 00 3B [15:27:43]Write i2c OK [15:27:43]MH_I2C_Read... [15:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:43]Read from MH i2c: E2 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 03 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 03 00 BE 1A 00 90 00 4C [15:27:43]RAPDU: 90 00 [15:27:43]wFMCommunicate OK [15:27:43]wFMCommunicate request_size=4 [15:27:43]MH_SAM_APDU [15:27:43]CAPDU: 80 0D 03 02 [15:27:43]Write to MH i2c: E2 08 00 BF 1A 80 0D 03 02 00 00 00 00 54 [15:27:43]Write i2c OK [15:27:43]MH_I2C_Read... [15:27:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:43]Read from MH i2c: E2 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 0B 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 0B 00 BF 1A 00 63 56 17 22 96 A3 0F C5 90 00 54 [15:27:43]RAPDU: 63 56 17 22 96 A3 0F C5 90 00 [15:27:43]wFMCommunicate OK [15:27:43]SAM_PROTO_SignData done [15:27:43]FM_MakeSignedData done [15:27:43]CreateOFDProtocolMessage [15:27:43]wFMCommunicate request_size=4 [15:27:43]MH_SAM_APDU [15:27:43]CAPDU: 80 11 00 00 [15:27:43]Write to MH i2c: E2 08 00 C0 1A 80 11 00 00 00 00 00 00 54 [15:27:43]Write i2c OK [15:27:43]MH_I2C_Read... [15:27:43]OFD Sender: No OFD packet to send [15:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:43]Read from MH i2c: E2 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 17 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 17 00 C0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AB [15:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:27:43]wFMCommunicate OK [15:27:43]CreateOFDProtocolMessage done [15:27:43]OFDSenderStorePacket 117432 [15:27:43]StoreOFDPacket docnum=117432 [15:27:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 1D 13 07 01 55 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 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 EF 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B8 CA 01 00 35 04 06 00 60 BA 24 2B 87 4F 63 56 17 22 96 A3 0F C5 [15:27:43]CheckFolder [15:27:43]dirname=/storage/ofd_packets [15:27:43]CheckFolder done [15:27:43]ProducePacketName [15:27:43]name=ofd_packets/00117432 [15:27:43]NVStorageSaveData ofd_packets/00117432 [15:27:43]File name is /storage/ofd_packets/00117432 [15:27:43]Write 301 bytes [15:27:43]NVStorageSaveData done [15:27:43]OFDSenderStorePacket done [15:27:43]KKMCreateOFDPacket done [15:27:43]NVStorageSaveData kkm_last_timestamp [15:27:43]File name is /storage/kkm_last_timestamp [15:27:43]Write 4 bytes [15:27:43]NVStorageSaveData done [15:27:43]ExternCall_PrintAddStr [15:27:43]wPrintStart [15:27:43]Write to MH i2c: 01 00 00 C1 1A DB [15:27:43]Write i2c OK [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: 01 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: 01 07 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: 01 07 00 C1 1A 00 00 00 00 00 FF 0F F0 [15:27:43]RasterBufferAndPrint [15:27:43]line Счет N : (1)245208 [15:27:43]line ИНН: 02508201610067 [15:27:43]line Контрольно-Кассовый Чек [15:27:43]line ПРОДАЖА [15:27:43]line ТРК (МРК, ГНК) : 11 [15:27:43]line Товар: 2710124130 [15:27:43]line Аи-92-К-2 [15:27:43]line 2.990 * 66.90 [15:27:43]line = 200.03 [15:27:43]line НДС 12% НСП 1% [15:27:43]line > о реализуемом товаре [15:27:43]line ОКРУГЛЕНИЕ: -0.03 [15:27:43]line ИТОГО: 200.00 [15:27:43]line Внесено: 200.00 [15:27:43]line СДАЧА: 0.00 [15:27:43]line НСП 1% : 1.77 [15:27:43]line НДС 12% : 21.24 [15:27:43]line Наличными: 200.00 [15:27:43]line Безнал.: 0.00 [15:27:43]line Место: АЗС № 173 "Партнер Нефть" [15:27:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:27:43]line СНО: Общий режим [15:27:43]line Чек 132 27.10.2024 15:27 [15:27:43]line Смена: 542 ФФД: 1.0 [15:27:43]line ЗНМ: 0300000115 [15:27:43]line РНМ: 0000000000091782 [15:27:43]line Версия ККМ: 001 [15:27:43]line ФМ: 0000000000871767 [15:27:43]line ФД: 117432 [15:27:43]line ФПД: 106352587016015 [15:27:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152743&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117432&fm=106352587016015&tin=02508201610067®Number=0000000000091782&sum=20000 [15:27:43]OFD Sender: Processing packet 117432 [packets to send 76, broken 75] [15:27:43]ProducePacketName [15:27:43]name=ofd_packets/00117432 [15:27:43]OFD Sender: To server: pG, [15:27:43]CommunicateWithHost lk.salyk.kg:30040 [15:27:43]ConnectInit lk.salyk.kg [15:27:43]written 0, free lines is 4095 [15:27:43]Connected sock=10 [15:27: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 36 37 0F 01 00 00 1D 13 07 01 55 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 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 EF 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B8 CA 01 00 35 04 06 00 60 BA 24 2B 87 4F 63 56 17 22 96 A3 0F C5 [15:27: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 36 37 4F 00 00 00 DB 73 47 00 9E 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 36 37 10 04 04 00 B8 CA 01 00 F4 03 04 00 AD 07 1E 67 B6 04 01 00 00 CF 61 AA FF 34 DB 2A 9C [15:27:44]CommunicateWithHost err = 0 [15:27:44]CheckOFDResponse [15:27:44]1017 (14) - 77093643461234 [15:27:44]1041 (16) - 0000000000871767 [15:27:44]1040 (4) - 117432 [15:27:44]1012 (4) - 27.10.2024 09:28 [15:27:44]1206 (1) - 0 [15:27:44]OFD Sender: Remove packet 117432 [15:27:44]ProducePacketName [15:27:44]name=ofd_packets/00117432 [15:27:44]NVStorageDeleteData [15:27:44]Write to MH i2c: 01 00 00 EB 1A 05 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: 01 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: 01 07 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: 01 07 00 EB 1A 00 00 00 00 00 B7 0C CF [15:27:44]RasterBufferAndPrint [15:27:44]line [15:27:44]line [15:27:44]line [15:27:44]line [15:27:44]line [15:27:44]written 0, free lines is 3262 [15:27:44]MH_Cut [15:27:44]Write to MH i2c: D1 01 00 F2 1A 01 DE [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: D1 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: D1 01 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: D1 01 00 F2 1A 00 DD [15:27:44]Write to MH i2c: 01 00 00 F3 1A 0D [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]OFD Sender: No OFD packet to send [15:27:45]*** Cut start [15:27:45]*** Purtial cut [15:27:45]*** Stage 1: CUTSNS_PIN = 1 [15:27:45]Read from MH i2c: 01 [15:27:45]MH_I2C_Read... [15:27:45]*** Stop cut motor [15:27:45]*** Cut end [15:27:45]Read from MH i2c: 01 07 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: 01 07 00 F3 1A 00 00 00 00 00 FF 0F 22 [15:27:45]process_action close_receipt done [15:27:45]requested_data is exist [15:27:45]produce_requested_data [15:27:45]requested_item fm.sn is exist - process it [15:27:45]wFMCommunicate request_size=4 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 11 00 00 [15:27:45]Write to MH i2c: E2 08 00 F4 1A 80 11 00 00 00 00 00 00 88 [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 17 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 17 00 F4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DF [15:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:27:45]wFMCommunicate OK [15:27:45]requested_item fd.num is exist - process it [15:27:45]SAM_PROTO_GetFieldsCounters [15:27:45]wFMCommunicate request_size=4 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 13 00 00 [15:27:45]Write to MH i2c: E2 08 00 F5 1A 80 13 00 00 00 00 00 00 8B [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 62 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 62 00 F5 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B8 CA 01 00 0E 04 04 00 1E 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 E1 [15:27: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B8 CA 01 00 0E 04 04 00 1E 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 [15:27:45]wFMCommunicate OK [15:27:45]SAM_PROTO_GetFieldsCounters done [15:27:45]requested_item shift.num is exist - process it [15:27:45]requested_item shift.opened is exist - process it [15:27:45]req_shift_opened [15:27:45]FM_GetShiftState [15:27:45]SAM_PROTO_GetShiftState [15:27:45]wFMCommunicate request_size=4 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 13 01 00 [15:27:45]Write to MH i2c: E2 08 00 F6 1A 80 13 01 00 00 00 00 00 8D [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 0E 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 0E 00 F6 1A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 CC [15:27:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:27:45]wFMCommunicate OK [15:27:45]SAM_PROTO_GetShiftState done [15:27:45]FM_GetShiftState done [15:27:45]req_shift_opened done [15:27:45]requested_item shift.open_date is exist - process it [15:27:45]req_shift_open_date [15:27:45]req_shift_open_date done [15:27:45]produce_requested_data done [15:27:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117432,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:27:45]process_action_free close_receipt [15:27:45]json_value_free [15:27:45]json_value_free done [15:27:45]process_json_proto returns [15:27:45]Send response to host [15:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117432,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:27:45]free response buf [15:27:45]execute_script done [15:27:45]execute_script returns [15:27:45]free content buf [15:27:45]Sock 9.Close socket [15:27:45]Sock 9.Thread stoped [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [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:21]accept exits with 7 [15:33:21]New connection [15:33:21]New thread 3067600228 created [15:33:21]Thread 3067456868 joined [15:33:21]Waiting for new connection... [15:33:21] Sock 7.Parse request [15:33:21]Sock 7.Check first char [15:33:21]Sock 7.First char is OK [15:33:21]request: POST /json_proto HTTP/1.0 [15:33:21]Method: POST [15:33:21]URL: /json_proto [15:33:21]Method is POST - this is cgi request [15:33:21]url: /json_proto [15:33:21]query_string will be loaded in cgi processing [15:33:21]execute_cgi json_proto POST (null) [15:33:21]execute_cgi path=json_proto method=POST [15:33:21]POST find Content-Length [15:33:21]Host: 172.17.96.67:8080 [15:33:21]Content-Length: 677 [15:33:21]Content-Type: application/json [15:33:21] [15:33:21]POST finish read [15:33:21]Found Content-Length = 677 [15:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [15:33:21]execute_script... [15:33: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)245209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [15:33:21]POST & json_proto [15:33:21]process_json_proto [15:33:21]json parsed OK: [15:33:21]protocol is kg_v1.0 [15:33:21]action value=close_receipt [15:33:21]process_action close_receipt [15:33:21]cmd_close_receipt [15:33:21]MH_GetDate [15:33:21]Write to MH i2c: F0 00 00 F7 1A 00 [15:33:21]Write i2c OK [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: F0 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: F0 09 00 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: F0 09 00 F7 1A 00 43 5D 1E 67 2B 09 1E 67 E7 [15:33:21]GetLastDocTimeStamp 1730042863 [15:33:21]current date 1730043203 [15:33:21]FM_GetShiftState [15:33:21]SAM_PROTO_GetShiftState [15:33:21]wFMCommunicate request_size=4 [15:33:21]MH_SAM_APDU [15:33:21]CAPDU: 80 13 01 00 [15:33:21]Write to MH i2c: E2 08 00 F8 1A 80 13 01 00 00 00 00 00 8F [15:33:21]Write i2c OK [15:33:21]MH_I2C_Read... [15:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:21]Read from MH i2c: E2 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 0E 00 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 0E 00 F8 1A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 CE [15:33:21]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:33:21]wFMCommunicate OK [15:33:21]SAM_PROTO_GetShiftState done [15:33:21]FM_GetShiftState done [15:33:21]opened in 1729987372 [15:33:21]opened+sec_in_day 1730073772 [15:33:21]quantity*price = 30038 [15:33:21]sum+1 = 30039 [15:33: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 133 27.10.2024 15:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117433 ФПД: 15231451516535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153323&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117433&fm=15231451516535&tin=02508201610067®Number=0000000000091782&sum=30000 [15:33:22]StoreToDocumentArchive [15:33:22]shift 542 fd 117433 [15:33:22]save to /storage/0542/doc_00117433 [15:33:22]save last doc name /storage/0542/doc_00117433 to /storage/kkm_last_doc_name [15:33:22]save OK [15:33:22]Clear old archive folders... [15:33:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:22]tlvbuf is 01704F40 [15:33:22]SAM_PROTO_ClearQueue [15:33:22]wFMCommunicate request_size=4 [15:33:22]MH_SAM_APDU [15:33:22]CAPDU: 80 09 00 00 [15:33:22]Write to MH i2c: E2 08 00 05 1B 80 09 00 00 00 00 00 00 92 [15:33:22]Write i2c OK [15:33:22]MH_I2C_Read... [15:33:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:22]Read from MH i2c: E2 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 03 00 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 03 00 05 1B 00 90 00 94 [15:33:22]RAPDU: 90 00 [15:33:22]wFMCommunicate OK [15:33:22]SAM_PROTO_ClearQueue done [15:33:22]KKMCreateOFDPacket [15:33:22]OFDProtocolAddRootSTLVToBuf [15:33:22]FM_MakeSignedData [15:33:22]FM_MakeSignedData [15:33:22]SAM_PROTO_SignData [15:33:22]wFMCommunicate request_size=4 [15:33:22]MH_SAM_APDU [15:33:22]CAPDU: 80 0D 01 02 [15:33:22]Write to MH i2c: E2 08 00 06 1B 80 0D 01 02 00 00 00 00 9A [15:33:22]Write i2c OK [15:33:22]MH_I2C_Read... [15:33:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:22]Read from MH i2c: E2 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 03 00 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 03 00 06 1B 00 90 00 95 [15:33:22]RAPDU: 90 00 [15:33:22]wFMCommunicate OK [15:33:22]wFMCommunicate request_size=255 [15:33:22]MH_SAM_APDU [15:33: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 85 00 00 00 F4 03 04 00 43 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B9 CA 01 00 35 04 06 00 0D [15:33:22]Write to MH i2c: E2 02 01 07 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 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 85 00 00 00 F4 03 04 00 43 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B9 CA 01 00 35 04 06 00 0D 00 00 7B [15:33:22]Write i2c OK [15:33:22]MH_I2C_Read... [15:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:23]Read from MH i2c: E2 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: E2 03 00 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: E2 03 00 07 1B 00 90 00 96 [15:33:23]RAPDU: 90 00 [15:33:23]wFMCommunicate OK [15:33:23]wFMCommunicate request_size=10 [15:33:23]MH_SAM_APDU [15:33:23]CAPDU: 80 0D 02 02 05 DA 59 41 CE 77 [15:33:23]Write to MH i2c: E2 0D 00 08 1B 80 0D 02 02 05 00 DA 59 41 CE 77 00 00 60 [15:33:23]Write i2c OK [15:33:23]MH_I2C_Read... [15:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:23]Read from MH i2c: E2 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: E2 03 00 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: E2 03 00 08 1B 00 90 00 97 [15:33:23]RAPDU: 90 00 [15:33:23]wFMCommunicate OK [15:33:23]wFMCommunicate request_size=4 [15:33:23]MH_SAM_APDU [15:33:23]CAPDU: 80 0D 03 02 [15:33:23]Write to MH i2c: E2 08 00 09 1B 80 0D 03 02 00 00 00 00 9F [15:33:23]Write i2c OK [15:33:23]MH_I2C_Read... [15:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:23]Read from MH i2c: E2 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: E2 0B 00 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: E2 0B 00 09 1B 00 5D 32 E8 DE 8A 9D A5 96 90 00 57 [15:33:23]RAPDU: 5D 32 E8 DE 8A 9D A5 96 90 00 [15:33:23]wFMCommunicate OK [15:33:23]SAM_PROTO_SignData done [15:33:23]FM_MakeSignedData done [15:33:23]CreateOFDProtocolMessage [15:33:23]wFMCommunicate request_size=4 [15:33:23]MH_SAM_APDU [15:33:23]CAPDU: 80 11 00 00 [15:33:23]Write to MH i2c: E2 08 00 0A 1B 80 11 00 00 00 00 00 00 9F [15:33:23]Write i2c OK [15:33:23]MH_I2C_Read... [15:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:23]Read from MH i2c: E2 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: E2 17 00 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: E2 17 00 0A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F6 [15:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:33:23]wFMCommunicate OK [15:33:23]CreateOFDProtocolMessage done [15:33:23]OFDSenderStorePacket 117433 [15:33:23]StoreOFDPacket docnum=117433 [15:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 95 0D 07 01 09 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 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 85 00 00 00 F4 03 04 00 43 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B9 CA 01 00 35 04 06 00 0D DA 59 41 CE 77 5D 32 E8 DE 8A 9D A5 96 [15:33:23]CheckFolder [15:33:23]dirname=/storage/ofd_packets [15:33:23]CheckFolder done [15:33:23]ProducePacketName [15:33:23]name=ofd_packets/00117433 [15:33:23]NVStorageSaveData ofd_packets/00117433 [15:33:23]File name is /storage/ofd_packets/00117433 [15:33:23]Write 301 bytes [15:33:23]NVStorageSaveData done [15:33:23]OFDSenderStorePacket done [15:33:23]KKMCreateOFDPacket done [15:33:23]NVStorageSaveData kkm_last_timestamp [15:33:23]File name is /storage/kkm_last_timestamp [15:33:23]Write 4 bytes [15:33:23]NVStorageSaveData done [15:33:23]ExternCall_PrintAddStr [15:33:23]wPrintStart [15:33:23]Write to MH i2c: 01 00 00 0B 1B 26 [15:33:23]Write i2c OK [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: 01 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: 01 07 00 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: 01 07 00 0B 1B 00 00 00 00 00 FF 0F 3B [15:33:23]RasterBufferAndPrint [15:33:23]line Счет N : (1)245209 [15:33:23]line ИНН: 02508201610067 [15:33:23]line Контрольно-Кассовый Чек [15:33:23]line ПРОДАЖА [15:33:23]line ТРК (МРК, ГНК) : 21 [15:33:23]line Товар: 2710124130 [15:33:23]line Аи-92-К-2 [15:33:23]line 4.490 * 66.90 [15:33:23]line = 300.38 [15:33:23]line НДС 12% НСП 1% [15:33:23]line > о реализуемом товаре [15:33:23]line ОКРУГЛЕНИЕ: -0.38 [15:33:23]line ИТОГО: 300.00 [15:33:23]line Внесено: 300.00 [15:33:23]line СДАЧА: 0.00 [15:33:23]line НСП 1% : 2.66 [15:33:23]line НДС 12% : 31.90 [15:33:23]line Наличными: 300.00 [15:33:23]line Безнал.: 0.00 [15:33:23]line Место: АЗС № 173 "Партнер Нефть" [15:33:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:33:23]line СНО: Общий режим [15:33:23]line Чек 133 27.10.2024 15:33 [15:33:23]line Смена: 542 ФФД: 1.0 [15:33:23]line ЗНМ: 0300000115 [15:33:23]line РНМ: 0000000000091782 [15:33:23]line Версия ККМ: 001 [15:33:23]line ФМ: 0000000000871767 [15:33:23]line ФД: 117433 [15:33:23]line ФПД: 15231451516535 [15:33:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153323&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117433&fm=15231451516535&tin=02508201610067®Number=0000000000091782&sum=30000 [15:33:23]written 0, free lines is 4095 [15:33:23]OFD Sender: Processing packet 117433 [packets to send 76, broken 75] [15:33:23]ProducePacketName [15:33:23]name=ofd_packets/00117433 [15:33:23]OFD Sender: To server: pG, [15:33:23]CommunicateWithHost lk.salyk.kg:30040 [15:33:23]ConnectInit lk.salyk.kg [15:33:23]Connected sock=10 [15:33: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 36 37 0F 01 00 00 95 0D 07 01 09 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 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 85 00 00 00 F4 03 04 00 43 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B9 CA 01 00 35 04 06 00 0D DA 59 41 CE 77 5D 32 E8 DE 8A 9D A5 96 [15:33: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 36 37 4F 00 00 00 EF 71 47 00 CB 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 36 37 10 04 04 00 B9 CA 01 00 F4 03 04 00 00 09 1E 67 B6 04 01 00 00 E7 71 51 BD CF 29 93 30 [15:33:23]CommunicateWithHost err = 0 [15:33:23]CheckOFDResponse [15:33:23]1017 (14) - 77093643461234 [15:33:23]1041 (16) - 0000000000871767 [15:33:23]1040 (4) - 117433 [15:33:23]1012 (4) - 27.10.2024 09:33 [15:33:23]1206 (1) - 0 [15:33:23]OFD Sender: Remove packet 117433 [15:33:23]ProducePacketName [15:33:23]name=ofd_packets/00117433 [15:33:23]NVStorageDeleteData [15:33:23]Write to MH i2c: 01 00 00 35 1B 50 [15:33:23]Write i2c OK [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: 01 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: 01 07 00 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: 01 07 00 35 1B 00 00 00 00 00 AD 0C 10 [15:33:23]RasterBufferAndPrint [15:33:23]line [15:33:23]line [15:33:23]line [15:33:23]line [15:33:23]line [15:33:23]written 0, free lines is 3251 [15:33:23]MH_Cut [15:33:23]Write to MH i2c: D1 01 00 3C 1B 01 29 [15:33:23]Write i2c OK [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: D1 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: D1 01 00 [15:33:23]MH_I2C_Read... [15:33:23]Read from MH i2c: D1 01 00 3C 1B 00 28 [15:33:23]Write to MH i2c: 01 00 00 3D 1B 58 [15:33:23]Write i2c OK [15:33:23]MH_I2C_Read... [15:33:24]OFD Sender: No OFD packet to send [15:33:24]*** Cut start [15:33:24]*** Purtial cut [15:33:24]*** Stage 1: CUTSNS_PIN = 1 [15:33:25]Read from MH i2c: 01 [15:33:25]MH_I2C_Read... [15:33:25]*** Stop cut motor [15:33:25]*** Cut end [15:33:25]Read from MH i2c: 01 07 00 [15:33:25]MH_I2C_Read... [15:33:25]Read from MH i2c: 01 07 00 3D 1B 00 00 00 00 00 FF 0F 6D [15:33:25]process_action close_receipt done [15:33:25]requested_data is exist [15:33:25]produce_requested_data [15:33:25]requested_item fm.sn is exist - process it [15:33:25]wFMCommunicate request_size=4 [15:33:25]MH_SAM_APDU [15:33:25]CAPDU: 80 11 00 00 [15:33:25]Write to MH i2c: E2 08 00 3E 1B 80 11 00 00 00 00 00 00 D3 [15:33:25]Write i2c OK [15:33:25]MH_I2C_Read... [15:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:25]Read from MH i2c: E2 [15:33:25]MH_I2C_Read... [15:33:25]Read from MH i2c: E2 17 00 [15:33:25]MH_I2C_Read... [15:33:25]Read from MH i2c: E2 17 00 3E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2A [15:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:33:25]wFMCommunicate OK [15:33:25]requested_item fd.num is exist - process it [15:33:25]SAM_PROTO_GetFieldsCounters [15:33:25]wFMCommunicate request_size=4 [15:33:25]MH_SAM_APDU [15:33:25]CAPDU: 80 13 00 00 [15:33:25]Write to MH i2c: E2 08 00 3F 1B 80 13 00 00 00 00 00 00 D6 [15:33:25]Write i2c OK [15:33:25]MH_I2C_Read... [15:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:25]Read from MH i2c: E2 [15:33:25]MH_I2C_Read... [15:33:25]Read from MH i2c: E2 62 00 [15:33:25]MH_I2C_Read... [15:33:25]Read from MH i2c: E2 62 00 3F 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B9 CA 01 00 0E 04 04 00 1E 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 30 [15:33: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B9 CA 01 00 0E 04 04 00 1E 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 [15:33:25]wFMCommunicate OK [15:33:25]SAM_PROTO_GetFieldsCounters done [15:33:25]requested_item shift.num is exist - process it [15:33:25]requested_item shift.opened is exist - process it [15:33:25]req_shift_opened [15:33:25]FM_GetShiftState [15:33:25]SAM_PROTO_GetShiftState [15:33:25]wFMCommunicate request_size=4 [15:33:25]MH_SAM_APDU [15:33:25]CAPDU: 80 13 01 00 [15:33:25]Write to MH i2c: E2 08 00 40 1B 80 13 01 00 00 00 00 00 D8 [15:33:25]Write i2c OK [15:33:25]MH_I2C_Read... [15:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:25]Read from MH i2c: E2 [15:33:25]MH_I2C_Read... [15:33:25]Read from MH i2c: E2 0E 00 [15:33:25]MH_I2C_Read... [15:33:25]Read from MH i2c: E2 0E 00 40 1B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 17 [15:33:25]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:33:25]wFMCommunicate OK [15:33:25]SAM_PROTO_GetShiftState done [15:33:25]FM_GetShiftState done [15:33:25]req_shift_opened done [15:33:25]requested_item shift.open_date is exist - process it [15:33:25]req_shift_open_date [15:33:25]req_shift_open_date done [15:33:25]produce_requested_data done [15:33:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117433,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:33:25]process_action_free close_receipt [15:33:25]json_value_free [15:33:25]json_value_free done [15:33:25]process_json_proto returns [15:33:25]Send response to host [15:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117433,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:33:25]free response buf [15:33:25]execute_script done [15:33:25]execute_script returns [15:33:25]free content buf [15:33:25]Sock 7.Close socket [15:33:25]Sock 7.Thread stoped [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:50]accept exits with 9 [15:33:50]New connection [15:33:50]New thread 3067456868 created [15:33:50]Thread 3067600228 joined [15:33:50]Waiting for new connection... [15:33:50] Sock 9.Parse request [15:33:50]Sock 9.Check first char [15:33:50]Sock 9.First char is OK [15:33:50]request: POST /json_proto HTTP/1.0 [15:33:50]Method: POST [15:33:50]URL: /json_proto [15:33:50]Method is POST - this is cgi request [15:33:50]url: /json_proto [15:33:50]query_string will be loaded in cgi processing [15:33:50]execute_cgi json_proto POST (null) [15:33:50]execute_cgi path=json_proto method=POST [15:33:50]POST find Content-Length [15:33:50]Host: 172.17.96.67:8080 [15:33:50]Content-Length: 677 [15:33:50]Content-Type: application/json [15:33:50] [15:33:50]POST finish read [15:33:50]Found Content-Length = 677 [15:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [15:33:50]execute_script... [15: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)245210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [15:33:50]POST & json_proto [15:33:50]process_json_proto [15:33:50]json parsed OK: [15:33:50]protocol is kg_v1.0 [15:33:50]action value=close_receipt [15:33:50]process_action close_receipt [15:33:50]cmd_close_receipt [15:33:50]MH_GetDate [15:33:50]Write to MH i2c: F0 00 00 41 1B 4B [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: F0 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: F0 09 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: F0 09 00 41 1B 00 60 5D 1E 67 2B 09 1E 67 4F [15:33:50]GetLastDocTimeStamp 1730043203 [15:33:50]current date 1730043232 [15:33:50]FM_GetShiftState [15:33:50]SAM_PROTO_GetShiftState [15:33:50]wFMCommunicate request_size=4 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 13 01 00 [15:33:50]Write to MH i2c: E2 08 00 42 1B 80 13 01 00 00 00 00 00 DA [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 0E 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 0E 00 42 1B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 19 [15:33:50]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:33:50]wFMCommunicate OK [15:33:50]SAM_PROTO_GetShiftState done [15:33:50]FM_GetShiftState done [15:33:50]opened in 1729987372 [15:33:50]opened+sec_in_day 1730073772 [15:33:50]quantity*price = 30038 [15:33:50]sum+1 = 30039 [15:33: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 134 27.10.2024 15:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117434 ФПД: 38989072998786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153352&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117434&fm=38989072998786&tin=02508201610067®Number=0000000000091782&sum=30000 [15:33:51]StoreToDocumentArchive [15:33:51]shift 542 fd 117434 [15:33:51]save to /storage/0542/doc_00117434 [15:33:51]save last doc name /storage/0542/doc_00117434 to /storage/kkm_last_doc_name [15:33:51]save OK [15:33:51]Clear old archive folders... [15:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:51]tlvbuf is 016FABC0 [15:33:51]SAM_PROTO_ClearQueue [15:33:51]wFMCommunicate request_size=4 [15:33:51]MH_SAM_APDU [15:33:51]CAPDU: 80 09 00 00 [15:33:51]Write to MH i2c: E2 08 00 4F 1B 80 09 00 00 00 00 00 00 DC [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:51]Read from MH i2c: E2 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 4F 1B 00 90 00 DE [15:33:51]RAPDU: 90 00 [15:33:51]wFMCommunicate OK [15:33:51]SAM_PROTO_ClearQueue done [15:33:51]KKMCreateOFDPacket [15:33:51]OFDProtocolAddRootSTLVToBuf [15:33:51]FM_MakeSignedData [15:33:51]FM_MakeSignedData [15:33:51]SAM_PROTO_SignData [15:33:51]wFMCommunicate request_size=4 [15:33:51]MH_SAM_APDU [15:33:51]CAPDU: 80 0D 01 02 [15:33:51]Write to MH i2c: E2 08 00 50 1B 80 0D 01 02 00 00 00 00 E4 [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:51]Read from MH i2c: E2 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 50 1B 00 90 00 DF [15:33:51]RAPDU: 90 00 [15:33:51]wFMCommunicate OK [15:33:51]wFMCommunicate request_size=255 [15:33:51]MH_SAM_APDU [15: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 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 86 00 00 00 F4 03 04 00 60 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BA CA 01 00 35 04 06 00 23 [15:33:51]Write to MH i2c: E2 02 01 51 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 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 86 00 00 00 F4 03 04 00 60 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BA CA 01 00 35 04 06 00 23 00 00 FA [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:52]Read from MH i2c: E2 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: E2 03 00 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: E2 03 00 51 1B 00 90 00 E0 [15:33:52]RAPDU: 90 00 [15:33:52]wFMCommunicate OK [15:33:52]wFMCommunicate request_size=10 [15:33:52]MH_SAM_APDU [15:33:52]CAPDU: 80 0D 02 02 05 75 D9 D8 A1 82 [15:33:52]Write to MH i2c: E2 0D 00 52 1B 80 0D 02 02 05 00 75 D9 D8 A1 82 00 00 3A [15:33:52]Write i2c OK [15:33:52]MH_I2C_Read... [15:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:52]Read from MH i2c: E2 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: E2 03 00 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: E2 03 00 52 1B 00 90 00 E1 [15:33:52]RAPDU: 90 00 [15:33:52]wFMCommunicate OK [15:33:52]wFMCommunicate request_size=4 [15:33:52]MH_SAM_APDU [15:33:52]CAPDU: 80 0D 03 02 [15:33:52]Write to MH i2c: E2 08 00 53 1B 80 0D 03 02 00 00 00 00 E9 [15:33:52]Write i2c OK [15:33:52]MH_I2C_Read... [15:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:52]Read from MH i2c: E2 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: E2 0B 00 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: E2 0B 00 53 1B 00 EE 11 DF D9 10 2D 62 BC 90 00 FC [15:33:52]RAPDU: EE 11 DF D9 10 2D 62 BC 90 00 [15:33:52]wFMCommunicate OK [15:33:52]SAM_PROTO_SignData done [15:33:52]FM_MakeSignedData done [15:33:52]CreateOFDProtocolMessage [15:33:52]wFMCommunicate request_size=4 [15:33:52]MH_SAM_APDU [15:33:52]CAPDU: 80 11 00 00 [15:33:52]Write to MH i2c: E2 08 00 54 1B 80 11 00 00 00 00 00 00 E9 [15:33:52]Write i2c OK [15:33:52]MH_I2C_Read... [15:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:52]Read from MH i2c: E2 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: E2 17 00 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: E2 17 00 54 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 40 [15:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:33:52]wFMCommunicate OK [15:33:52]CreateOFDProtocolMessage done [15:33:52]OFDSenderStorePacket 117434 [15:33:52]StoreOFDPacket docnum=117434 [15:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 50 BC 07 01 7B 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 86 00 00 00 F4 03 04 00 60 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BA CA 01 00 35 04 06 00 23 75 D9 D8 A1 82 EE 11 DF D9 10 2D 62 BC [15:33:52]CheckFolder [15:33:52]dirname=/storage/ofd_packets [15:33:52]CheckFolder done [15:33:52]ProducePacketName [15:33:52]name=ofd_packets/00117434 [15:33:52]NVStorageSaveData ofd_packets/00117434 [15:33:52]File name is /storage/ofd_packets/00117434 [15:33:52]Write 301 bytes [15:33:52]NVStorageSaveData done [15:33:52]OFDSenderStorePacket done [15:33:52]KKMCreateOFDPacket done [15:33:52]NVStorageSaveData kkm_last_timestamp [15:33:52]File name is /storage/kkm_last_timestamp [15:33:52]Write 4 bytes [15:33:52]NVStorageSaveData done [15:33:52]ExternCall_PrintAddStr [15:33:52]wPrintStart [15:33:52]Write to MH i2c: 01 00 00 55 1B 70 [15:33:52]Write i2c OK [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: 01 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: 01 07 00 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: 01 07 00 55 1B 00 00 00 00 00 FF 0F 85 [15:33:52]RasterBufferAndPrint [15:33:52]line Счет N : (1)245210 [15:33:52]line ИНН: 02508201610067 [15:33:52]line Контрольно-Кассовый Чек [15:33:52]line ПРОДАЖА [15:33:52]line ТРК (МРК, ГНК) : 11 [15:33:52]line Товар: 2710124130 [15:33:52]line Аи-92-К-2 [15:33:52]line 4.490 * 66.90 [15:33:52]line = 300.38 [15:33:52]line НДС 12% НСП 1% [15:33:52]line > о реализуемом товаре [15:33:52]line ОКРУГЛЕНИЕ: -0.38 [15:33:52]line ИТОГО: 300.00 [15:33:52]line Внесено: 300.00 [15:33:52]line СДАЧА: 0.00 [15:33:52]line НСП 1% : 2.66 [15:33:52]line НДС 12% : 31.90 [15:33:52]line Наличными: 300.00 [15:33:52]line Безнал.: 0.00 [15:33:52]line Место: АЗС № 173 "Партнер Нефть" [15:33:52]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:33:52]line СНО: Общий режим [15:33:52]line Чек 134 27.10.2024 15:33 [15:33:52]line Смена: 542 ФФД: 1.0 [15:33:52]line ЗНМ: 0300000115 [15:33:52]line РНМ: 0000000000091782 [15:33:52]line Версия ККМ: 001 [15:33:52]line ФМ: 0000000000871767 [15:33:52]line ФД: 117434 [15:33:52]line ФПД: 38989072998786 [15:33:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153352&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117434&fm=38989072998786&tin=02508201610067®Number=0000000000091782&sum=30000 [15:33:52]OFD Sender: Processing packet 117434 [packets to send 76, broken 75] [15:33:52]ProducePacketName [15:33:52]name=ofd_packets/00117434 [15:33:52]OFD Sender: To server: pG, [15:33:52]CommunicateWithHost lk.salyk.kg:30040 [15:33:52]ConnectInit lk.salyk.kg [15:33:52]written 0, free lines is 4095 [15:33:52]Connected sock=10 [15: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 36 37 0F 01 00 00 50 BC 07 01 7B 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 86 00 00 00 F4 03 04 00 60 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BA CA 01 00 35 04 06 00 23 75 D9 D8 A1 82 EE 11 DF D9 10 2D 62 BC [15:33: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 36 37 4F 00 00 00 34 5A 47 00 36 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 36 37 10 04 04 00 BA CA 01 00 F4 03 04 00 1D 09 1E 67 B6 04 01 00 00 C1 A3 CE F7 CF 5E C6 15 [15:33:53]CommunicateWithHost err = 0 [15:33:53]CheckOFDResponse [15:33:53]1017 (14) - 77093643461234 [15:33:53]1041 (16) - 0000000000871767 [15:33:53]1040 (4) - 117434 [15:33:53]1012 (4) - 27.10.2024 09:34 [15:33:53]1206 (1) - 0 [15:33:53]OFD Sender: Remove packet 117434 [15:33:53]ProducePacketName [15:33:53]name=ofd_packets/00117434 [15:33:53]NVStorageDeleteData [15:33:53]Write to MH i2c: 01 00 00 7F 1B 9A [15:33:53]Write i2c OK [15:33:53]MH_I2C_Read... [15:33:53]Read from MH i2c: 01 [15:33:53]MH_I2C_Read... [15:33:53]Read from MH i2c: 01 07 00 [15:33:53]MH_I2C_Read... [15:33:53]Read from MH i2c: 01 07 00 7F 1B 00 00 00 00 00 BF 0C 6C [15:33:53]RasterBufferAndPrint [15:33:53]line [15:33:53]line [15:33:53]line [15:33:53]line [15:33:53]line [15:33:53]written 0, free lines is 3269 [15:33:53]MH_Cut [15:33:53]Write to MH i2c: D1 01 00 86 1B 01 73 [15:33:53]Write i2c OK [15:33:53]MH_I2C_Read... [15:33:53]Read from MH i2c: D1 [15:33:53]MH_I2C_Read... [15:33:53]Read from MH i2c: D1 01 00 [15:33:53]MH_I2C_Read... [15:33:53]Read from MH i2c: D1 01 00 86 1B 00 72 [15:33:53]Write to MH i2c: 01 00 00 87 1B A2 [15:33:53]Write i2c OK [15:33:53]MH_I2C_Read... [15:33:53]OFD Sender: No OFD packet to send [15:33:53]*** Cut start [15:33:53]*** Purtial cut [15:33:53]*** Stage 1: CUTSNS_PIN = 1 [15:33:54]Read from MH i2c: 01 [15:33:54]MH_I2C_Read... [15:33:54]*** Stop cut motor [15:33:54]*** Cut end [15:33:54]Read from MH i2c: 01 07 00 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: 01 07 00 87 1B 00 00 00 00 00 FF 0F B7 [15:33:54]process_action close_receipt done [15:33:54]requested_data is exist [15:33:54]produce_requested_data [15:33:54]requested_item fm.sn is exist - process it [15:33:54]wFMCommunicate request_size=4 [15:33:54]MH_SAM_APDU [15:33:54]CAPDU: 80 11 00 00 [15:33:54]Write to MH i2c: E2 08 00 88 1B 80 11 00 00 00 00 00 00 1D [15:33:54]Write i2c OK [15:33:54]MH_I2C_Read... [15:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:54]Read from MH i2c: E2 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 17 00 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 17 00 88 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 74 [15:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:33:54]wFMCommunicate OK [15:33:54]requested_item fd.num is exist - process it [15:33:54]SAM_PROTO_GetFieldsCounters [15:33:54]wFMCommunicate request_size=4 [15:33:54]MH_SAM_APDU [15:33:54]CAPDU: 80 13 00 00 [15:33:54]Write to MH i2c: E2 08 00 89 1B 80 13 00 00 00 00 00 00 20 [15:33:54]Write i2c OK [15:33:54]MH_I2C_Read... [15:33:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:54]Read from MH i2c: E2 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 62 00 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 62 00 89 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BA CA 01 00 0E 04 04 00 1E 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 7E [15: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BA CA 01 00 0E 04 04 00 1E 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 [15:33:54]wFMCommunicate OK [15:33:54]SAM_PROTO_GetFieldsCounters done [15:33:54]requested_item shift.num is exist - process it [15:33:54]requested_item shift.opened is exist - process it [15:33:54]req_shift_opened [15:33:54]FM_GetShiftState [15:33:54]SAM_PROTO_GetShiftState [15:33:54]wFMCommunicate request_size=4 [15:33:54]MH_SAM_APDU [15:33:54]CAPDU: 80 13 01 00 [15:33:54]Write to MH i2c: E2 08 00 8A 1B 80 13 01 00 00 00 00 00 22 [15:33:54]Write i2c OK [15:33:54]MH_I2C_Read... [15:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:54]Read from MH i2c: E2 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 0E 00 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 0E 00 8A 1B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 61 [15:33:54]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:33:54]wFMCommunicate OK [15:33:54]SAM_PROTO_GetShiftState done [15:33:54]FM_GetShiftState done [15:33:54]req_shift_opened done [15:33:54]requested_item shift.open_date is exist - process it [15:33:54]req_shift_open_date [15:33:54]req_shift_open_date done [15:33:54]produce_requested_data done [15:33:54]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117434,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:33:54]process_action_free close_receipt [15:33:54]json_value_free [15:33:54]json_value_free done [15:33:54]process_json_proto returns [15:33:54]Send response to host [15:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117434,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:33:54]free response buf [15:33:54]execute_script done [15:33:54]execute_script returns [15:33:54]free content buf [15:33:54]Sock 9.Close socket [15:33:54]Sock 9.Thread stoped [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:29]accept exits with 7 [15:35:29]New connection [15:35:29]New thread 3067600228 created [15:35:29]Thread 3067456868 joined [15:35:29]Waiting for new connection... [15:35:29] Sock 7.Parse request [15:35:29]Sock 7.Check first char [15:35:29]Sock 7.First char is OK [15:35:29]request: POST /json_proto HTTP/1.0 [15:35:29]Method: POST [15:35:29]URL: /json_proto [15:35:29]Method is POST - this is cgi request [15:35:29]url: /json_proto [15:35:29]query_string will be loaded in cgi processing [15:35:29]execute_cgi json_proto POST (null) [15:35:29]execute_cgi path=json_proto method=POST [15:35:29]POST find Content-Length [15:35:29]Host: 172.17.96.67:8080 [15:35:29]Content-Length: 677 [15:35:29]Content-Type: application/json [15:35:29] [15:35:29]POST finish read [15:35:29]Found Content-Length = 677 [15:35:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:35:29]execute_script... [15:35: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)245211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:35:29]POST & json_proto [15:35:29]process_json_proto [15:35:29]json parsed OK: [15:35:29]protocol is kg_v1.0 [15:35:29]action value=close_receipt [15:35:29]process_action close_receipt [15:35:29]cmd_close_receipt [15:35:29]MH_GetDate [15:35:29]Write to MH i2c: F0 00 00 8B 1B 95 [15:35:29]Write i2c OK [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: F0 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: F0 09 00 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: F0 09 00 8B 1B 00 C3 5D 1E 67 2B 09 1E 67 FC [15:35:29]GetLastDocTimeStamp 1730043232 [15:35:29]current date 1730043331 [15:35:29]FM_GetShiftState [15:35:29]SAM_PROTO_GetShiftState [15:35:29]wFMCommunicate request_size=4 [15:35:29]MH_SAM_APDU [15:35:29]CAPDU: 80 13 01 00 [15:35:29]Write to MH i2c: E2 08 00 8C 1B 80 13 01 00 00 00 00 00 24 [15:35:29]Write i2c OK [15:35:29]MH_I2C_Read... [15:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:29]Read from MH i2c: E2 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: E2 0E 00 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: E2 0E 00 8C 1B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 63 [15:35:29]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:35:29]wFMCommunicate OK [15:35:29]SAM_PROTO_GetShiftState done [15:35:29]FM_GetShiftState done [15:35:29]opened in 1729987372 [15:35:29]opened+sec_in_day 1730073772 [15:35:29]quantity*price = 50041 [15:35:29]sum+1 = 50042 [15:35: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 135 27.10.2024 15:35 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117435 ФПД: 91732138009464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153531&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117435&fm=91732138009464&tin=02508201610067®Number=0000000000091782&sum=50000 [15:35:30]StoreToDocumentArchive [15:35:30]shift 542 fd 117435 [15:35:30]save to /storage/0542/doc_00117435 [15:35:30]save last doc name /storage/0542/doc_00117435 to /storage/kkm_last_doc_name [15:35:30]save OK [15:35:30]Clear old archive folders... [15:35:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:30]tlvbuf is 01700410 [15:35:30]SAM_PROTO_ClearQueue [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 09 00 00 [15:35:30]Write to MH i2c: E2 08 00 99 1B 80 09 00 00 00 00 00 00 26 [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 99 1B 00 90 00 28 [15:35:30]RAPDU: 90 00 [15:35:30]wFMCommunicate OK [15:35:30]SAM_PROTO_ClearQueue done [15:35:30]KKMCreateOFDPacket [15:35:30]OFDProtocolAddRootSTLVToBuf [15:35:30]FM_MakeSignedData [15:35:30]FM_MakeSignedData [15:35:30]SAM_PROTO_SignData [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 0D 01 02 [15:35:30]Write to MH i2c: E2 08 00 9A 1B 80 0D 01 02 00 00 00 00 2E [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 9A 1B 00 90 00 29 [15:35:30]RAPDU: 90 00 [15:35:30]wFMCommunicate OK [15:35:30]wFMCommunicate request_size=255 [15:35:30]MH_SAM_APDU [15:35: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 87 00 00 00 F4 03 04 00 C3 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BB CA 01 00 35 04 06 00 53 [15:35:30]Write to MH i2c: E2 02 01 9B 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 87 00 00 00 F4 03 04 00 C3 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BB CA 01 00 35 04 06 00 53 00 00 E5 [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 9B 1B 00 90 00 2A [15:35:30]RAPDU: 90 00 [15:35:30]wFMCommunicate OK [15:35:30]wFMCommunicate request_size=10 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 0D 02 02 05 6E 0D 80 23 78 [15:35:30]Write to MH i2c: E2 0D 00 9C 1B 80 0D 02 02 05 00 6E 0D 80 23 78 00 00 D1 [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 9C 1B 00 90 00 2B [15:35:30]RAPDU: 90 00 [15:35:30]wFMCommunicate OK [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 0D 03 02 [15:35:30]Write to MH i2c: E2 08 00 9D 1B 80 0D 03 02 00 00 00 00 33 [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 0B 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 0B 00 9D 1B 00 C0 63 16 A9 E8 42 B1 DD 90 00 CE [15:35:30]RAPDU: C0 63 16 A9 E8 42 B1 DD 90 00 [15:35:30]wFMCommunicate OK [15:35:30]SAM_PROTO_SignData done [15:35:30]FM_MakeSignedData done [15:35:30]CreateOFDProtocolMessage [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 11 00 00 [15:35:30]Write to MH i2c: E2 08 00 9E 1B 80 11 00 00 00 00 00 00 33 [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 17 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 17 00 9E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8A [15:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:35:30]wFMCommunicate OK [15:35:30]CreateOFDProtocolMessage done [15:35:30]OFDSenderStorePacket 117435 [15:35:30]StoreOFDPacket docnum=117435 [15:35:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 AF 7A 07 01 64 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 C3 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BB CA 01 00 35 04 06 00 53 6E 0D 80 23 78 C0 63 16 A9 E8 42 B1 DD [15:35:30]CheckFolder [15:35:30]dirname=/storage/ofd_packets [15:35:30]CheckFolder done [15:35:30]ProducePacketName [15:35:30]name=ofd_packets/00117435 [15:35:30]NVStorageSaveData ofd_packets/00117435 [15:35:30]File name is /storage/ofd_packets/00117435 [15:35:30]Write 301 bytes [15:35:30]NVStorageSaveData done [15:35:30]OFDSenderStorePacket done [15:35:30]KKMCreateOFDPacket done [15:35:30]NVStorageSaveData kkm_last_timestamp [15:35:30]File name is /storage/kkm_last_timestamp [15:35:30]Write 4 bytes [15:35:30]NVStorageSaveData done [15:35:30]ExternCall_PrintAddStr [15:35:30]wPrintStart [15:35:30]Write to MH i2c: 01 00 00 9F 1B BA [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: 01 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: 01 07 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: 01 07 00 9F 1B 00 00 00 00 00 FF 0F CF [15:35:30]RasterBufferAndPrint [15:35:30]line Счет N : (1)245211 [15:35:30]line ИНН: 02508201610067 [15:35:30]line Контрольно-Кассовый Чек [15:35:30]line ПРОДАЖА [15:35:30]line ТРК (МРК, ГНК) : 11 [15:35:30]line Товар: 2710124130 [15:35:30]line Аи-92-К-2 [15:35:30]line 7.480 * 66.90 [15:35:30]line = 500.41 [15:35:30]line НДС 12% НСП 1% [15:35:30]line > о реализуемом товаре [15:35:30]line ОКРУГЛЕНИЕ: -0.41 [15:35:30]line ИТОГО: 500.00 [15:35:30]line Внесено: 500.00 [15:35:30]line СДАЧА: 0.00 [15:35:30]line НСП 1% : 4.43 [15:35:30]line НДС 12% : 53.14 [15:35:30]line Наличными: 500.00 [15:35:30]line Безнал.: 0.00 [15:35:30]line Место: АЗС № 173 "Партнер Нефть" [15:35:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:35:30]line СНО: Общий режим [15:35:30]line Чек 135 27.10.2024 15:35 [15:35:30]line Смена: 542 ФФД: 1.0 [15:35:30]line ЗНМ: 0300000115 [15:35:30]line РНМ: 0000000000091782 [15:35:30]line Версия ККМ: 001 [15:35:30]line ФМ: 0000000000871767 [15:35:30]line ФД: 117435 [15:35:30]line ФПД: 91732138009464 [15:35:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153531&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117435&fm=91732138009464&tin=02508201610067®Number=0000000000091782&sum=50000 [15:35:31]written 0, free lines is 4095 [15:35:31]OFD Sender: Processing packet 117435 [packets to send 76, broken 75] [15:35:31]ProducePacketName [15:35:31]name=ofd_packets/00117435 [15:35:31]OFD Sender: To server: pG, [15:35:31]CommunicateWithHost lk.salyk.kg:30040 [15:35:31]ConnectInit lk.salyk.kg [15:35:31]Connected sock=10 [15:35: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 36 37 0F 01 00 00 AF 7A 07 01 64 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 C3 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BB CA 01 00 35 04 06 00 53 6E 0D 80 23 78 C0 63 16 A9 E8 42 B1 DD [15:35: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 36 37 4F 00 00 00 BC 1D 47 00 2A 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 36 37 10 04 04 00 BB CA 01 00 F4 03 04 00 80 09 1E 67 B6 04 01 00 00 89 18 B8 0D A3 F8 AC 60 [15:35:31]CommunicateWithHost err = 0 [15:35:31]CheckOFDResponse [15:35:31]1017 (14) - 77093643461234 [15:35:31]1041 (16) - 0000000000871767 [15:35:31]1040 (4) - 117435 [15:35:31]1012 (4) - 27.10.2024 09:36 [15:35:31]1206 (1) - 0 [15:35:31]OFD Sender: Remove packet 117435 [15:35:31]ProducePacketName [15:35:31]name=ofd_packets/00117435 [15:35:31]NVStorageDeleteData [15:35:31]Write to MH i2c: 01 00 00 C9 1B E4 [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: 01 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: 01 07 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: 01 07 00 C9 1B 00 00 00 00 00 B3 0C AA [15:35:31]RasterBufferAndPrint [15:35:31]line [15:35:31]line [15:35:31]line [15:35:31]line [15:35:31]line [15:35:31]written 0, free lines is 3257 [15:35:31]MH_Cut [15:35:31]Write to MH i2c: D1 01 00 D0 1B 01 BD [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: D1 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: D1 01 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: D1 01 00 D0 1B 00 BC [15:35:31]Write to MH i2c: 01 00 00 D1 1B EC [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:32]OFD Sender: No OFD packet to send [15:35:32]*** Cut start [15:35:32]*** Purtial cut [15:35:32]*** Stage 1: CUTSNS_PIN = 1 [15:35:32]Read from MH i2c: 01 [15:35:32]MH_I2C_Read... [15:35:32]*** Stop cut motor [15:35:32]*** Cut end [15:35:32]Read from MH i2c: 01 07 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 D1 1B 00 00 00 00 00 FF 0F 01 [15:35:32]process_action close_receipt done [15:35:32]requested_data is exist [15:35:32]produce_requested_data [15:35:32]requested_item fm.sn is exist - process it [15:35:32]wFMCommunicate request_size=4 [15:35:32]MH_SAM_APDU [15:35:32]CAPDU: 80 11 00 00 [15:35:32]Write to MH i2c: E2 08 00 D2 1B 80 11 00 00 00 00 00 00 67 [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 17 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 17 00 D2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BE [15:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:35:32]wFMCommunicate OK [15:35:32]requested_item fd.num is exist - process it [15:35:32]SAM_PROTO_GetFieldsCounters [15:35:32]wFMCommunicate request_size=4 [15:35:32]MH_SAM_APDU [15:35:32]CAPDU: 80 13 00 00 [15:35:32]Write to MH i2c: E2 08 00 D3 1B 80 13 00 00 00 00 00 00 6A [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 62 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 62 00 D3 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BB CA 01 00 0E 04 04 00 1E 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 CC [15:35: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BB CA 01 00 0E 04 04 00 1E 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 [15:35:33]wFMCommunicate OK [15:35:33]SAM_PROTO_GetFieldsCounters done [15:35:33]requested_item shift.num is exist - process it [15:35:33]requested_item shift.opened is exist - process it [15:35:33]req_shift_opened [15:35:33]FM_GetShiftState [15:35:33]SAM_PROTO_GetShiftState [15:35:33]wFMCommunicate request_size=4 [15:35:33]MH_SAM_APDU [15:35:33]CAPDU: 80 13 01 00 [15:35:33]Write to MH i2c: E2 08 00 D4 1B 80 13 01 00 00 00 00 00 6C [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:33]Read from MH i2c: E2 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 0E 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 0E 00 D4 1B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AB [15:35:33]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:35:33]wFMCommunicate OK [15:35:33]SAM_PROTO_GetShiftState done [15:35:33]FM_GetShiftState done [15:35:33]req_shift_opened done [15:35:33]requested_item shift.open_date is exist - process it [15:35:33]req_shift_open_date [15:35:33]req_shift_open_date done [15:35:33]produce_requested_data done [15:35:33]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117435,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:35:33]process_action_free close_receipt [15:35:33]json_value_free [15:35:33]json_value_free done [15:35:33]process_json_proto returns [15:35:33]Send response to host [15:35:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117435,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:35:33]free response buf [15:35:33]execute_script done [15:35:33]execute_script returns [15:35:33]free content buf [15:35:33]Sock 7.Close socket [15:35:33]Sock 7.Thread stoped [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:51]accept exits with 9 [15:37:51]New connection [15:37:51]New thread 3067456868 created [15:37:51]Thread 3067600228 joined [15:37:51]Waiting for new connection... [15:37:51] Sock 9.Parse request [15:37:51]Sock 9.Check first char [15:37:51]Sock 9.First char is OK [15:37:51]request: POST /json_proto HTTP/1.0 [15:37:51]Method: POST [15:37:51]URL: /json_proto [15:37:51]Method is POST - this is cgi request [15:37:51]url: /json_proto [15:37:51]query_string will be loaded in cgi processing [15:37:51]execute_cgi json_proto POST (null) [15:37:51]execute_cgi path=json_proto method=POST [15:37:51]POST find Content-Length [15:37:51]Host: 172.17.96.67:8080 [15:37:51]Content-Length: 678 [15:37:51]Content-Type: application/json [15:37:51] [15:37:51]POST finish read [15:37:51]Found Content-Length = 678 [15:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:37:51]execute_script... [15: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)245212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:37:51]POST & json_proto [15:37:51]process_json_proto [15:37:51]json parsed OK: [15:37:51]protocol is kg_v1.0 [15:37:51]action value=close_receipt [15:37:51]process_action close_receipt [15:37:51]cmd_close_receipt [15:37:51]MH_GetDate [15:37:51]Write to MH i2c: F0 00 00 D5 1B DF [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: F0 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: F0 09 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: F0 09 00 D5 1B 00 51 5E 1E 67 2B 09 1E 67 D5 [15:37:51]GetLastDocTimeStamp 1730043331 [15:37:51]current date 1730043473 [15:37:51]FM_GetShiftState [15:37:51]SAM_PROTO_GetShiftState [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 13 01 00 [15:37:51]Write to MH i2c: E2 08 00 D6 1B 80 13 01 00 00 00 00 00 6E [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 0E 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 0E 00 D6 1B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AD [15:37:51]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:37:51]wFMCommunicate OK [15:37:51]SAM_PROTO_GetShiftState done [15:37:51]FM_GetShiftState done [15:37:51]opened in 1729987372 [15:37:51]opened+sec_in_day 1730073772 [15:37:51]quantity*price = 70044 [15:37:51]sum+1 = 70045 [15:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 136 27.10.2024 15:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117436 ФПД: 147738920661219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153753&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117436&fm=147738920661219&tin=02508201610067®Number=0000000000091782&sum=70000 [15:37:52]StoreToDocumentArchive [15:37:52]shift 542 fd 117436 [15:37:52]save to /storage/0542/doc_00117436 [15:37:52]save last doc name /storage/0542/doc_00117436 to /storage/kkm_last_doc_name [15:37:52]save OK [15:37:52]Clear old archive folders... [15:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:52]tlvbuf is 017247A0 [15:37:52]SAM_PROTO_ClearQueue [15:37:52]wFMCommunicate request_size=4 [15:37:52]MH_SAM_APDU [15:37:52]CAPDU: 80 09 00 00 [15:37:52]Write to MH i2c: E2 08 00 E3 1B 80 09 00 00 00 00 00 00 70 [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 E3 1B 00 90 00 72 [15:37:52]RAPDU: 90 00 [15:37:52]wFMCommunicate OK [15:37:52]SAM_PROTO_ClearQueue done [15:37:52]KKMCreateOFDPacket [15:37:52]OFDProtocolAddRootSTLVToBuf [15:37:52]FM_MakeSignedData [15:37:52]FM_MakeSignedData [15:37:52]SAM_PROTO_SignData [15:37:52]wFMCommunicate request_size=4 [15:37:52]MH_SAM_APDU [15:37:52]CAPDU: 80 0D 01 02 [15:37:52]Write to MH i2c: E2 08 00 E4 1B 80 0D 01 02 00 00 00 00 78 [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [15:37:52]RAPDU: 90 00 [15:37:52]wFMCommunicate OK [15:37:52]wFMCommunicate request_size=255 [15:37:52]MH_SAM_APDU [15:37: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 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 88 00 00 00 F4 03 04 00 51 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CA 01 00 35 04 06 00 86 [15:37:52]Write to MH i2c: E2 02 01 E5 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 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 88 00 00 00 F4 03 04 00 51 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CA 01 00 35 04 06 00 86 00 00 03 [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [15:37:52]RAPDU: 90 00 [15:37:52]wFMCommunicate OK [15:37:52]wFMCommunicate request_size=10 [15:37:52]MH_SAM_APDU [15:37:52]CAPDU: 80 0D 02 02 05 5E 25 E2 B0 E3 [15:37:52]Write to MH i2c: E2 0D 00 E6 1B 80 0D 02 02 05 00 5E 25 E2 B0 E3 00 00 7D [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [15:37:52]RAPDU: 90 00 [15:37:52]wFMCommunicate OK [15:37:52]wFMCommunicate request_size=4 [15:37:52]MH_SAM_APDU [15:37:52]CAPDU: 80 0D 03 02 [15:37:52]Write to MH i2c: E2 08 00 E7 1B 80 0D 03 02 00 00 00 00 7D [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 0B 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 0B 00 E7 1B 00 39 C4 6E B3 E6 A4 C3 3E 90 00 27 [15:37:52]RAPDU: 39 C4 6E B3 E6 A4 C3 3E 90 00 [15:37:52]wFMCommunicate OK [15:37:52]SAM_PROTO_SignData done [15:37:52]FM_MakeSignedData done [15:37:52]CreateOFDProtocolMessage [15:37:52]wFMCommunicate request_size=4 [15:37:52]MH_SAM_APDU [15:37:52]CAPDU: 80 11 00 00 [15:37:52]Write to MH i2c: E2 08 00 E8 1B 80 11 00 00 00 00 00 00 7D [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 17 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 17 00 E8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D4 [15:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:37:52]wFMCommunicate OK [15:37:52]CreateOFDProtocolMessage done [15:37:52]OFDSenderStorePacket 117436 [15:37:52]StoreOFDPacket docnum=117436 [15:37:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 46 00 07 01 C1 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 88 00 00 00 F4 03 04 00 51 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CA 01 00 35 04 06 00 86 5E 25 E2 B0 E3 39 C4 6E B3 E6 A4 C3 3E [15:37:52]CheckFolder [15:37:52]dirname=/storage/ofd_packets [15:37:52]CheckFolder done [15:37:52]ProducePacketName [15:37:52]name=ofd_packets/00117436 [15:37:52]NVStorageSaveData ofd_packets/00117436 [15:37:52]File name is /storage/ofd_packets/00117436 [15:37:52]Write 301 bytes [15:37:52]NVStorageSaveData done [15:37:52]OFDSenderStorePacket done [15:37:52]KKMCreateOFDPacket done [15:37:52]NVStorageSaveData kkm_last_timestamp [15:37:52]File name is /storage/kkm_last_timestamp [15:37:52]Write 4 bytes [15:37:52]NVStorageSaveData done [15:37:52]ExternCall_PrintAddStr [15:37:52]wPrintStart [15:37:52]Write to MH i2c: 01 00 00 E9 1B 04 [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: 01 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: 01 07 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: 01 07 00 E9 1B 00 00 00 00 00 FF 0F 19 [15:37:52]RasterBufferAndPrint [15:37:52]line Счет N : (1)245212 [15:37:52]line ИНН: 02508201610067 [15:37:52]line Контрольно-Кассовый Чек [15:37:52]line ПРОДАЖА [15:37:52]line ТРК (МРК, ГНК) : 21 [15:37:52]line Товар: 2710124130 [15:37:52]line Аи-92-К-2 [15:37:52]line 10.470 * 66.90 [15:37:52]line = 700.44 [15:37:52]line НДС 12% НСП 1% [15:37:52]line > о реализуемом товаре [15:37:52]line ОКРУГЛЕНИЕ: -0.44 [15:37:52]line ИТОГО: 700.00 [15:37:52]line Внесено: 700.00 [15:37:52]line СДАЧА: 0.00 [15:37:52]line НСП 1% : 6.20 [15:37:52]line НДС 12% : 74.38 [15:37:52]line Наличными: 700.00 [15:37:52]line Безнал.: 0.00 [15:37:52]line Место: АЗС № 173 "Партнер Нефть" [15:37:52]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:37:52]line СНО: Общий режим [15:37:52]line Чек 136 27.10.2024 15:37 [15:37:52]line Смена: 542 ФФД: 1.0 [15:37:52]line ЗНМ: 0300000115 [15:37:52]line РНМ: 0000000000091782 [15:37:52]line Версия ККМ: 001 [15:37:52]line ФМ: 0000000000871767 [15:37:52]line ФД: 117436 [15:37:52]line ФПД: 147738920661219 [15:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153753&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117436&fm=147738920661219&tin=02508201610067®Number=0000000000091782&sum=70000 [15:37:53]OFD Sender: Processing packet 117436 [packets to send 76, broken 75] [15:37:53]ProducePacketName [15:37:53]name=ofd_packets/00117436 [15:37:53]OFD Sender: To server: pG, [15:37:53]CommunicateWithHost lk.salyk.kg:30040 [15:37:53]ConnectInit lk.salyk.kg [15:37:53]written 0, free lines is 4095 [15:37:53]Connected sock=10 [15: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 36 37 0F 01 00 00 46 00 07 01 C1 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 88 00 00 00 F4 03 04 00 51 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CA 01 00 35 04 06 00 86 5E 25 E2 B0 E3 39 C4 6E B3 E6 A4 C3 3E [15:37: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 36 37 4F 00 00 00 AF 92 47 00 D3 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 36 37 10 04 04 00 BC CA 01 00 F4 03 04 00 0E 0A 1E 67 B6 04 01 00 00 1B 75 D4 A4 E7 81 0A CB [15:37:53]CommunicateWithHost err = 0 [15:37:53]CheckOFDResponse [15:37:53]1017 (14) - 77093643461234 [15:37:53]1041 (16) - 0000000000871767 [15:37:53]1040 (4) - 117436 [15:37:53]1012 (4) - 27.10.2024 09:38 [15:37:53]1206 (1) - 0 [15:37:53]OFD Sender: Remove packet 117436 [15:37:53]ProducePacketName [15:37:53]name=ofd_packets/00117436 [15:37:53]NVStorageDeleteData [15:37:53]Write to MH i2c: 01 00 00 13 1C 2F [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: 01 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: 01 07 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: 01 07 00 13 1C 00 00 00 00 00 B5 0C F7 [15:37:53]RasterBufferAndPrint [15:37:53]line [15:37:53]line [15:37:53]line [15:37:53]line [15:37:53]line [15:37:53]written 0, free lines is 3259 [15:37:53]MH_Cut [15:37:53]Write to MH i2c: D1 01 00 1A 1C 01 08 [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: D1 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: D1 01 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: D1 01 00 1A 1C 00 07 [15:37:53]Write to MH i2c: 01 00 00 1B 1C 37 [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]OFD Sender: No OFD packet to send [15:37:54]*** Cut start [15:37:54]*** Purtial cut [15:37:54]*** Stage 1: CUTSNS_PIN = 1 [15:37:54]Read from MH i2c: 01 [15:37:54]MH_I2C_Read... [15:37:54]*** Stop cut motor [15:37:54]*** Cut end [15:37:54]Read from MH i2c: 01 07 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: 01 07 00 1B 1C 00 00 00 00 00 FF 0F 4C [15:37:54]process_action close_receipt done [15:37:54]requested_data is exist [15:37:54]produce_requested_data [15:37:54]requested_item fm.sn is exist - process it [15:37:54]wFMCommunicate request_size=4 [15:37:54]MH_SAM_APDU [15:37:54]CAPDU: 80 11 00 00 [15:37:54]Write to MH i2c: E2 08 00 1C 1C 80 11 00 00 00 00 00 00 B2 [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:54]Read from MH i2c: E2 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 17 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 17 00 1C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 09 [15:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:37:54]wFMCommunicate OK [15:37:54]requested_item fd.num is exist - process it [15:37:54]SAM_PROTO_GetFieldsCounters [15:37:54]wFMCommunicate request_size=4 [15:37:54]MH_SAM_APDU [15:37:54]CAPDU: 80 13 00 00 [15:37:54]Write to MH i2c: E2 08 00 1D 1C 80 13 00 00 00 00 00 00 B5 [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:54]Read from MH i2c: E2 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 62 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 62 00 1D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BC CA 01 00 0E 04 04 00 1E 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 1B [15:37: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BC CA 01 00 0E 04 04 00 1E 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 [15:37:54]wFMCommunicate OK [15:37:54]SAM_PROTO_GetFieldsCounters done [15:37:54]requested_item shift.num is exist - process it [15:37:54]requested_item shift.opened is exist - process it [15:37:54]req_shift_opened [15:37:54]FM_GetShiftState [15:37:54]SAM_PROTO_GetShiftState [15:37:54]wFMCommunicate request_size=4 [15:37:54]MH_SAM_APDU [15:37:54]CAPDU: 80 13 01 00 [15:37:54]Write to MH i2c: E2 08 00 1E 1C 80 13 01 00 00 00 00 00 B7 [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 0E 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 0E 00 1E 1C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F6 [15:37:55]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:37:55]wFMCommunicate OK [15:37:55]SAM_PROTO_GetShiftState done [15:37:55]FM_GetShiftState done [15:37:55]req_shift_opened done [15:37:55]requested_item shift.open_date is exist - process it [15:37:55]req_shift_open_date [15:37:55]req_shift_open_date done [15:37:55]produce_requested_data done [15:37:55]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117436,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:37:55]process_action_free close_receipt [15:37:55]json_value_free [15:37:55]json_value_free done [15:37:55]process_json_proto returns [15:37:55]Send response to host [15:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117436,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:37:55]free response buf [15:37:55]execute_script done [15:37:55]execute_script returns [15:37:55]free content buf [15:37:55]Sock 9.Close socket [15:37:55]Sock 9.Thread stoped [15:37:59]OFD Sender: No OFD packet to send [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:20]accept exits with 7 [15:39:20]New connection [15:39:20]New thread 3067600228 created [15:39:20]Thread 3067456868 joined [15:39:20]Waiting for new connection... [15:39:20] Sock 7.Parse request [15:39:20]Sock 7.Check first char [15:39:20]Sock 7.First char is OK [15:39:20]request: POST /json_proto HTTP/1.0 [15:39:20]Method: POST [15:39:20]URL: /json_proto [15:39:20]Method is POST - this is cgi request [15:39:20]url: /json_proto [15:39:20]query_string will be loaded in cgi processing [15:39:20]execute_cgi json_proto POST (null) [15:39:20]execute_cgi path=json_proto method=POST [15:39:20]POST find Content-Length [15:39:20]Host: 172.17.96.67:8080 [15:39:20]Content-Length: 682 [15:39:20]Content-Type: application/json [15:39:20] [15:39:20]POST finish read [15:39:20]Found Content-Length = 682 [15:39:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:39:20]execute_script... [15:39: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)245213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:39:20]POST & json_proto [15:39:20]process_json_proto [15:39:20]json parsed OK: [15:39:20]protocol is kg_v1.0 [15:39:20]action value=close_receipt [15:39:20]process_action close_receipt [15:39:20]cmd_close_receipt [15:39:20]MH_GetDate [15:39:20]Write to MH i2c: F0 00 00 1F 1C 2A [15:39:20]Write i2c OK [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: F0 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: F0 09 00 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: F0 09 00 1F 1C 00 AA 5E 1E 67 2B 09 1E 67 79 [15:39:20]GetLastDocTimeStamp 1730043473 [15:39:20]current date 1730043562 [15:39:20]FM_GetShiftState [15:39:20]SAM_PROTO_GetShiftState [15:39:20]wFMCommunicate request_size=4 [15:39:20]MH_SAM_APDU [15:39:20]CAPDU: 80 13 01 00 [15:39:20]Write to MH i2c: E2 08 00 20 1C 80 13 01 00 00 00 00 00 B9 [15:39:20]Write i2c OK [15:39:20]MH_I2C_Read... [15:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:20]Read from MH i2c: E2 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: E2 0E 00 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: E2 0E 00 20 1C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F8 [15:39:20]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:39:20]wFMCommunicate OK [15:39:20]SAM_PROTO_GetShiftState done [15:39:20]FM_GetShiftState done [15:39:20]opened in 1729987372 [15:39:20]opened+sec_in_day 1730073772 [15:39:20]quantity*price = 100015 [15:39:20]sum+1 = 100017 [15:39: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 137 27.10.2024 15:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117437 ФПД: 104537525808821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153922&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117437&fm=104537525808821&tin=02508201610067®Number=0000000000091782&sum=100000 [15:39:21]StoreToDocumentArchive [15:39:21]shift 542 fd 117437 [15:39:21]save to /storage/0542/doc_00117437 [15:39:21]save last doc name /storage/0542/doc_00117437 to /storage/kkm_last_doc_name [15:39:21]save OK [15:39:21]Clear old archive folders... [15:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:21]tlvbuf is 016DE710 [15:39:21]SAM_PROTO_ClearQueue [15:39:21]wFMCommunicate request_size=4 [15:39:21]MH_SAM_APDU [15:39:21]CAPDU: 80 09 00 00 [15:39:21]Write to MH i2c: E2 08 00 2D 1C 80 09 00 00 00 00 00 00 BB [15:39:21]Write i2c OK [15:39:21]MH_I2C_Read... [15:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:21]Read from MH i2c: E2 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 03 00 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 03 00 2D 1C 00 90 00 BD [15:39:21]RAPDU: 90 00 [15:39:21]wFMCommunicate OK [15:39:21]SAM_PROTO_ClearQueue done [15:39:21]KKMCreateOFDPacket [15:39:21]OFDProtocolAddRootSTLVToBuf [15:39:21]FM_MakeSignedData [15:39:21]FM_MakeSignedData [15:39:21]SAM_PROTO_SignData [15:39:21]wFMCommunicate request_size=4 [15:39:21]MH_SAM_APDU [15:39:21]CAPDU: 80 0D 01 02 [15:39:21]Write to MH i2c: E2 08 00 2E 1C 80 0D 01 02 00 00 00 00 C3 [15:39:21]Write i2c OK [15:39:21]MH_I2C_Read... [15:39:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:22]Read from MH i2c: E2 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 2E 1C 00 90 00 BE [15:39:22]RAPDU: 90 00 [15:39:22]wFMCommunicate OK [15:39:22]wFMCommunicate request_size=255 [15:39:22]MH_SAM_APDU [15:39: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 89 00 00 00 F4 03 04 00 AA 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CA 01 00 35 04 06 00 5F [15:39:22]Write to MH i2c: E2 02 01 2F 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 89 00 00 00 F4 03 04 00 AA 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CA 01 00 35 04 06 00 5F 00 00 6C [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:22]Read from MH i2c: E2 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [15:39:22]RAPDU: 90 00 [15:39:22]wFMCommunicate OK [15:39:22]wFMCommunicate request_size=10 [15:39:22]MH_SAM_APDU [15:39:22]CAPDU: 80 0D 02 02 05 13 8A 17 6E B5 [15:39:22]Write to MH i2c: E2 0D 00 30 1C 80 0D 02 02 05 00 13 8A 17 6E B5 00 00 A7 [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:22]Read from MH i2c: E2 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [15:39:22]RAPDU: 90 00 [15:39:22]wFMCommunicate OK [15:39:22]wFMCommunicate request_size=4 [15:39:22]MH_SAM_APDU [15:39:22]CAPDU: 80 0D 03 02 [15:39:22]Write to MH i2c: E2 08 00 31 1C 80 0D 03 02 00 00 00 00 C8 [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:22]Read from MH i2c: E2 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 0B 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 0B 00 31 1C 00 9C 53 AD 73 5B 72 E0 40 90 00 C5 [15:39:22]RAPDU: 9C 53 AD 73 5B 72 E0 40 90 00 [15:39:22]wFMCommunicate OK [15:39:22]SAM_PROTO_SignData done [15:39:22]FM_MakeSignedData done [15:39:22]CreateOFDProtocolMessage [15:39:22]wFMCommunicate request_size=4 [15:39:22]MH_SAM_APDU [15:39:22]CAPDU: 80 11 00 00 [15:39:22]Write to MH i2c: E2 08 00 32 1C 80 11 00 00 00 00 00 00 C8 [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:22]Read from MH i2c: E2 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 17 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 17 00 32 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1F [15:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:39:22]wFMCommunicate OK [15:39:22]CreateOFDProtocolMessage done [15:39:22]OFDSenderStorePacket 117437 [15:39:22]StoreOFDPacket docnum=117437 [15:39:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 39 AE 07 01 6F 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 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 89 00 00 00 F4 03 04 00 AA 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CA 01 00 35 04 06 00 5F 13 8A 17 6E B5 9C 53 AD 73 5B 72 E0 40 [15:39:22]CheckFolder [15:39:22]dirname=/storage/ofd_packets [15:39:22]CheckFolder done [15:39:22]ProducePacketName [15:39:22]name=ofd_packets/00117437 [15:39:22]NVStorageSaveData ofd_packets/00117437 [15:39:22]File name is /storage/ofd_packets/00117437 [15:39:22]Write 301 bytes [15:39:22]NVStorageSaveData done [15:39:22]OFDSenderStorePacket done [15:39:22]KKMCreateOFDPacket done [15:39:22]NVStorageSaveData kkm_last_timestamp [15:39:22]File name is /storage/kkm_last_timestamp [15:39:22]Write 4 bytes [15:39:22]NVStorageSaveData done [15:39:22]ExternCall_PrintAddStr [15:39:22]wPrintStart [15:39:22]Write to MH i2c: 01 00 00 33 1C 4F [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: 01 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: 01 07 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: 01 07 00 33 1C 00 00 00 00 00 FF 0F 64 [15:39:22]RasterBufferAndPrint [15:39:22]line Счет N : (1)245213 [15:39:22]line ИНН: 02508201610067 [15:39:22]line Контрольно-Кассовый Чек [15:39:22]line ПРОДАЖА [15:39:22]line ТРК (МРК, ГНК) : 11 [15:39:22]line Товар: 2710124130 [15:39:22]line Аи-92-К-2 [15:39:22]line 14.950 * 66.90 [15:39:22]line = 1000.16 [15:39:22]line НДС 12% НСП 1% [15:39:22]line > о реализуемом товаре [15:39:22]line ОКРУГЛЕНИЕ: -0.16 [15:39:22]line ИТОГО: 1000.00 [15:39:22]line Внесено: 1000.00 [15:39:22]line СДАЧА: 0.00 [15:39:22]line НСП 1% : 8.85 [15:39:22]line НДС 12% : 106.21 [15:39:22]line Наличными: 1000.00 [15:39:22]line Безнал.: 0.00 [15:39:22]line Место: АЗС № 173 "Партнер Нефть" [15:39:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:39:22]line СНО: Общий режим [15:39:22]line Чек 137 27.10.2024 15:39 [15:39:22]line Смена: 542 ФФД: 1.0 [15:39:22]line ЗНМ: 0300000115 [15:39:22]line РНМ: 0000000000091782 [15:39:22]line Версия ККМ: 001 [15:39:22]line ФМ: 0000000000871767 [15:39:22]line ФД: 117437 [15:39:22]line ФПД: 104537525808821 [15:39:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153922&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117437&fm=104537525808821&tin=02508201610067®Number=0000000000091782&sum=100000 [15:39:22]OFD Sender: Processing packet 117437 [packets to send 76, broken 75] [15:39:22]ProducePacketName [15:39:22]name=ofd_packets/00117437 [15:39:22]OFD Sender: To server: pG, [15:39:22]CommunicateWithHost lk.salyk.kg:30040 [15:39:22]ConnectInit lk.salyk.kg [15:39:22]written 0, free lines is 4095 [15:39:22]Connected sock=9 [15:39: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 36 37 0F 01 00 00 39 AE 07 01 6F 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 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 89 00 00 00 F4 03 04 00 AA 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CA 01 00 35 04 06 00 5F 13 8A 17 6E B5 9C 53 AD 73 5B 72 E0 40 [15:39: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 36 37 4F 00 00 00 82 70 47 00 D7 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 36 37 10 04 04 00 BD CA 01 00 F4 03 04 00 68 0A 1E 67 B6 04 01 00 00 AF FB 3D 46 8B B3 2D 3E [15:39:23]CommunicateWithHost err = 0 [15:39:23]CheckOFDResponse [15:39:23]1017 (14) - 77093643461234 [15:39:23]1041 (16) - 0000000000871767 [15:39:23]1040 (4) - 117437 [15:39:23]1012 (4) - 27.10.2024 09:39 [15:39:23]1206 (1) - 0 [15:39:23]OFD Sender: Remove packet 117437 [15:39:23]ProducePacketName [15:39:23]name=ofd_packets/00117437 [15:39:23]NVStorageDeleteData [15:39:23]Write to MH i2c: 01 00 00 5D 1C 79 [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: 01 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: 01 07 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 AD 0C 39 [15:39:23]RasterBufferAndPrint [15:39:23]line [15:39:23]line [15:39:23]line [15:39:23]line [15:39:23]line [15:39:23]written 0, free lines is 3249 [15:39:23]MH_Cut [15:39:23]Write to MH i2c: D1 01 00 64 1C 01 52 [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: D1 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: D1 01 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: D1 01 00 64 1C 00 51 [15:39:23]Write to MH i2c: 01 00 00 65 1C 81 [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]OFD Sender: No OFD packet to send [15:39:24]*** Cut start [15:39:24]*** Purtial cut [15:39:24]*** Stage 1: CUTSNS_PIN = 1 [15:39:24]Read from MH i2c: 01 [15:39:24]MH_I2C_Read... [15:39:24]*** Stop cut motor [15:39:24]*** Cut end [15:39:24]Read from MH i2c: 01 07 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: 01 07 00 65 1C 00 00 00 00 00 FF 0F 96 [15:39:24]process_action close_receipt done [15:39:24]requested_data is exist [15:39:24]produce_requested_data [15:39:24]requested_item fm.sn is exist - process it [15:39:24]wFMCommunicate request_size=4 [15:39:24]MH_SAM_APDU [15:39:24]CAPDU: 80 11 00 00 [15:39:24]Write to MH i2c: E2 08 00 66 1C 80 11 00 00 00 00 00 00 FC [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:24]Read from MH i2c: E2 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 17 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 17 00 66 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 53 [15:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:39:24]wFMCommunicate OK [15:39:24]requested_item fd.num is exist - process it [15:39:24]SAM_PROTO_GetFieldsCounters [15:39:24]wFMCommunicate request_size=4 [15:39:24]MH_SAM_APDU [15:39:24]CAPDU: 80 13 00 00 [15:39:24]Write to MH i2c: E2 08 00 67 1C 80 13 00 00 00 00 00 00 FF [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:24]Read from MH i2c: E2 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 62 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 62 00 67 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BD CA 01 00 0E 04 04 00 1E 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 69 [15:39: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BD CA 01 00 0E 04 04 00 1E 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 [15:39:24]wFMCommunicate OK [15:39:24]SAM_PROTO_GetFieldsCounters done [15:39:24]requested_item shift.num is exist - process it [15:39:24]requested_item shift.opened is exist - process it [15:39:24]req_shift_opened [15:39:24]FM_GetShiftState [15:39:24]SAM_PROTO_GetShiftState [15:39:24]wFMCommunicate request_size=4 [15:39:24]MH_SAM_APDU [15:39:24]CAPDU: 80 13 01 00 [15:39:24]Write to MH i2c: E2 08 00 68 1C 80 13 01 00 00 00 00 00 01 [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:24]Read from MH i2c: E2 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 0E 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 0E 00 68 1C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 40 [15:39:24]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:39:24]wFMCommunicate OK [15:39:24]SAM_PROTO_GetShiftState done [15:39:24]FM_GetShiftState done [15:39:24]req_shift_opened done [15:39:24]requested_item shift.open_date is exist - process it [15:39:24]req_shift_open_date [15:39:24]req_shift_open_date done [15:39:24]produce_requested_data done [15:39:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117437,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:39:24]process_action_free close_receipt [15:39:24]json_value_free [15:39:24]json_value_free done [15:39:24]process_json_proto returns [15:39:24]Send response to host [15:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117437,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:39:24]free response buf [15:39:24]execute_script done [15:39:24]execute_script returns [15:39:24]free content buf [15:39:24]Sock 7.Close socket [15:39:24]Sock 7.Thread stoped [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]accept exits with 10 [15:43:28]New connection [15:43:28]New thread 3067456868 created [15:43:28]Thread 3067600228 joined [15:43:28]Waiting for new connection... [15:43:28] Sock 10.Parse request [15:43:28]Sock 10.Check first char [15:43:28]Sock 10.First char is OK [15:43:28]request: POST /json_proto HTTP/1.0 [15:43:28]Method: POST [15:43:28]URL: /json_proto [15:43:28]Method is POST - this is cgi request [15:43:28]url: /json_proto [15:43:28]query_string will be loaded in cgi processing [15:43:28]execute_cgi json_proto POST (null) [15:43:28]execute_cgi path=json_proto method=POST [15:43:28]POST find Content-Length [15:43:28]Host: 172.17.96.67:8080 [15:43:28]Content-Length: 678 [15:43:28]Content-Type: application/json [15:43:28] [15:43:28]POST finish read [15:43:28]Found Content-Length = 678 [15:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:43:28]execute_script... [15:43: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)245214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:43:28]POST & json_proto [15:43:28]process_json_proto [15:43:28]json parsed OK: [15:43:28]protocol is kg_v1.0 [15:43:28]action value=close_receipt [15:43:28]process_action close_receipt [15:43:28]cmd_close_receipt [15:43:28]MH_GetDate [15:43:28]Write to MH i2c: F0 00 00 69 1C 74 [15:43:28]Write i2c OK [15:43:28]MH_I2C_Read... [15:43:28]Read from MH i2c: F0 [15:43:28]MH_I2C_Read... [15:43:28]Read from MH i2c: F0 09 00 [15:43:28]MH_I2C_Read... [15:43:28]Read from MH i2c: F0 09 00 69 1C 00 A2 5F 1E 67 2B 09 1E 67 BC [15:43:28]GetLastDocTimeStamp 1730043562 [15:43:28]current date 1730043810 [15:43:28]FM_GetShiftState [15:43:28]SAM_PROTO_GetShiftState [15:43:28]wFMCommunicate request_size=4 [15:43:28]MH_SAM_APDU [15:43:28]CAPDU: 80 13 01 00 [15:43:28]Write to MH i2c: E2 08 00 6A 1C 80 13 01 00 00 00 00 00 03 [15:43:28]Write i2c OK [15:43:28]MH_I2C_Read... [15:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:28]Read from MH i2c: E2 [15:43:28]MH_I2C_Read... [15:43:28]Read from MH i2c: E2 0E 00 [15:43:28]MH_I2C_Read... [15:43:28]Read from MH i2c: E2 0E 00 6A 1C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 42 [15:43:28]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:43:28]wFMCommunicate OK [15:43:28]SAM_PROTO_GetShiftState done [15:43:28]FM_GetShiftState done [15:43:28]opened in 1729987372 [15:43:28]opened+sec_in_day 1730073772 [15:43:28]quantity*price = 70044 [15:43:28]sum+1 = 70045 [15:43:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 138 27.10.2024 15:43 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117438 ФПД: 98564142625362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154330&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117438&fm=98564142625362&tin=02508201610067®Number=0000000000091782&sum=70000 [15:43:29]StoreToDocumentArchive [15:43:29]shift 542 fd 117438 [15:43:29]save to /storage/0542/doc_00117438 [15:43:29]save last doc name /storage/0542/doc_00117438 to /storage/kkm_last_doc_name [15:43:29]save OK [15:43:29]Clear old archive folders... [15:43:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:29]tlvbuf is 01724690 [15:43:29]SAM_PROTO_ClearQueue [15:43:29]wFMCommunicate request_size=4 [15:43:29]MH_SAM_APDU [15:43:29]CAPDU: 80 09 00 00 [15:43:29]Write to MH i2c: E2 08 00 77 1C 80 09 00 00 00 00 00 00 05 [15:43:29]Write i2c OK [15:43:29]MH_I2C_Read... [15:43:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:29]Read from MH i2c: E2 [15:43:29]MH_I2C_Read... [15:43:29]Read from MH i2c: E2 03 00 [15:43:29]MH_I2C_Read... [15:43:29]Read from MH i2c: E2 03 00 77 1C 00 90 00 07 [15:43:29]RAPDU: 90 00 [15:43:29]wFMCommunicate OK [15:43:29]SAM_PROTO_ClearQueue done [15:43:29]KKMCreateOFDPacket [15:43:29]OFDProtocolAddRootSTLVToBuf [15:43:29]FM_MakeSignedData [15:43:29]FM_MakeSignedData [15:43:29]SAM_PROTO_SignData [15:43:29]wFMCommunicate request_size=4 [15:43:29]MH_SAM_APDU [15:43:29]CAPDU: 80 0D 01 02 [15:43:29]Write to MH i2c: E2 08 00 78 1C 80 0D 01 02 00 00 00 00 0D [15:43:29]Write i2c OK [15:43:29]MH_I2C_Read... [15:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:30]Read from MH i2c: E2 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 03 00 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 03 00 78 1C 00 90 00 08 [15:43:30]RAPDU: 90 00 [15:43:30]wFMCommunicate OK [15:43:30]wFMCommunicate request_size=255 [15:43:30]MH_SAM_APDU [15:43: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 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 8A 00 00 00 F4 03 04 00 A2 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CA 01 00 35 04 06 00 59 [15:43:30]Write to MH i2c: E2 02 01 79 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 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 8A 00 00 00 F4 03 04 00 A2 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CA 01 00 35 04 06 00 59 00 00 C1 [15:43:30]Write i2c OK [15:43:30]MH_I2C_Read... [15:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:30]Read from MH i2c: E2 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 03 00 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 03 00 79 1C 00 90 00 09 [15:43:30]RAPDU: 90 00 [15:43:30]wFMCommunicate OK [15:43:30]wFMCommunicate request_size=10 [15:43:30]MH_SAM_APDU [15:43:30]CAPDU: 80 0D 02 02 05 A4 C0 B5 72 52 [15:43:30]Write to MH i2c: E2 0D 00 7A 1C 80 0D 02 02 05 00 A4 C0 B5 72 52 00 00 F7 [15:43:30]Write i2c OK [15:43:30]MH_I2C_Read... [15:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:30]Read from MH i2c: E2 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 03 00 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [15:43:30]RAPDU: 90 00 [15:43:30]wFMCommunicate OK [15:43:30]wFMCommunicate request_size=4 [15:43:30]MH_SAM_APDU [15:43:30]CAPDU: 80 0D 03 02 [15:43:30]Write to MH i2c: E2 08 00 7B 1C 80 0D 03 02 00 00 00 00 12 [15:43:30]Write i2c OK [15:43:30]MH_I2C_Read... [15:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:30]Read from MH i2c: E2 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 0B 00 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 0B 00 7B 1C 00 B7 C2 FB 42 92 7D B5 14 90 00 A1 [15:43:30]RAPDU: B7 C2 FB 42 92 7D B5 14 90 00 [15:43:30]wFMCommunicate OK [15:43:30]SAM_PROTO_SignData done [15:43:30]FM_MakeSignedData done [15:43:30]CreateOFDProtocolMessage [15:43:30]wFMCommunicate request_size=4 [15:43:30]MH_SAM_APDU [15:43:30]CAPDU: 80 11 00 00 [15:43:30]Write to MH i2c: E2 08 00 7C 1C 80 11 00 00 00 00 00 00 12 [15:43:30]Write i2c OK [15:43:30]MH_I2C_Read... [15:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:30]Read from MH i2c: E2 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 17 00 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: E2 17 00 7C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 69 [15:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:43:30]wFMCommunicate OK [15:43:30]CreateOFDProtocolMessage done [15:43:30]OFDSenderStorePacket 117438 [15:43:30]StoreOFDPacket docnum=117438 [15:43:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F5 79 07 01 14 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8A 00 00 00 F4 03 04 00 A2 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CA 01 00 35 04 06 00 59 A4 C0 B5 72 52 B7 C2 FB 42 92 7D B5 14 [15:43:30]CheckFolder [15:43:30]dirname=/storage/ofd_packets [15:43:30]CheckFolder done [15:43:30]ProducePacketName [15:43:30]name=ofd_packets/00117438 [15:43:30]NVStorageSaveData ofd_packets/00117438 [15:43:30]File name is /storage/ofd_packets/00117438 [15:43:30]Write 301 bytes [15:43:30]NVStorageSaveData done [15:43:30]OFDSenderStorePacket done [15:43:30]KKMCreateOFDPacket done [15:43:30]NVStorageSaveData kkm_last_timestamp [15:43:30]File name is /storage/kkm_last_timestamp [15:43:30]Write 4 bytes [15:43:30]NVStorageSaveData done [15:43:30]ExternCall_PrintAddStr [15:43:30]wPrintStart [15:43:30]Write to MH i2c: 01 00 00 7D 1C 99 [15:43:30]Write i2c OK [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: 01 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: 01 07 00 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: 01 07 00 7D 1C 00 00 00 00 00 FF 0F AE [15:43:30]RasterBufferAndPrint [15:43:30]line Счет N : (1)245214 [15:43:30]line ИНН: 02508201610067 [15:43:30]line Контрольно-Кассовый Чек [15:43:30]line ПРОДАЖА [15:43:30]line ТРК (МРК, ГНК) : 21 [15:43:30]line Товар: 2710124130 [15:43:30]line Аи-92-К-2 [15:43:30]line 10.470 * 66.90 [15:43:30]line = 700.44 [15:43:30]line НДС 12% НСП 1% [15:43:30]line > о реализуемом товаре [15:43:30]line ОКРУГЛЕНИЕ: -0.44 [15:43:30]line ИТОГО: 700.00 [15:43:30]line Внесено: 700.00 [15:43:30]line СДАЧА: 0.00 [15:43:30]line НСП 1% : 6.20 [15:43:30]line НДС 12% : 74.38 [15:43:30]line Наличными: 700.00 [15:43:30]line Безнал.: 0.00 [15:43:30]line Место: АЗС № 173 "Партнер Нефть" [15:43:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:43:30]line СНО: Общий режим [15:43:30]line Чек 138 27.10.2024 15:43 [15:43:30]line Смена: 542 ФФД: 1.0 [15:43:30]line ЗНМ: 0300000115 [15:43:30]line РНМ: 0000000000091782 [15:43:30]line Версия ККМ: 001 [15:43:30]line ФМ: 0000000000871767 [15:43:30]line ФД: 117438 [15:43:30]line ФПД: 98564142625362 [15:43:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154330&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117438&fm=98564142625362&tin=02508201610067®Number=0000000000091782&sum=70000 [15:43:30]written 0, free lines is 4095 [15:43:30]OFD Sender: Processing packet 117438 [packets to send 76, broken 75] [15:43:30]ProducePacketName [15:43:30]name=ofd_packets/00117438 [15:43:30]OFD Sender: To server: pG, [15:43:30]CommunicateWithHost lk.salyk.kg:30040 [15:43:30]ConnectInit lk.salyk.kg [15:43:30]Connected sock=11 [15:43: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 36 37 0F 01 00 00 F5 79 07 01 14 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8A 00 00 00 F4 03 04 00 A2 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CA 01 00 35 04 06 00 59 A4 C0 B5 72 52 B7 C2 FB 42 92 7D B5 14 [15:43: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 36 37 4F 00 00 00 5A 67 47 00 F9 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 36 37 10 04 04 00 BE CA 01 00 F4 03 04 00 60 0B 1E 67 B6 04 01 00 00 87 7F 66 9C F2 46 49 A8 [15:43:31]CommunicateWithHost err = 0 [15:43:31]CheckOFDResponse [15:43:31]1017 (14) - 77093643461234 [15:43:31]1041 (16) - 0000000000871767 [15:43:31]1040 (4) - 117438 [15:43:31]1012 (4) - 27.10.2024 09:44 [15:43:31]1206 (1) - 0 [15:43:31]OFD Sender: Remove packet 117438 [15:43:31]ProducePacketName [15:43:31]name=ofd_packets/00117438 [15:43:31]NVStorageDeleteData [15:43:31]Write to MH i2c: 01 00 00 A7 1C C3 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: 01 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: 01 07 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: 01 07 00 A7 1C 00 00 00 00 00 AA 0C 80 [15:43:31]RasterBufferAndPrint [15:43:31]line [15:43:31]line [15:43:31]line [15:43:31]line [15:43:31]line [15:43:31]written 0, free lines is 3245 [15:43:31]MH_Cut [15:43:31]Write to MH i2c: D1 01 00 AE 1C 01 9C [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: D1 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: D1 01 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: D1 01 00 AE 1C 00 9B [15:43:31]Write to MH i2c: 01 00 00 AF 1C CB [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]OFD Sender: No OFD packet to send [15:43:32]*** Cut start [15:43:32]*** Purtial cut [15:43:32]*** Stage 1: CUTSNS_PIN = 1 [15:43:32]Read from MH i2c: 01 [15:43:32]MH_I2C_Read... [15:43:32]*** Stop cut motor [15:43:32]*** Cut end [15:43:32]Read from MH i2c: 01 07 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: 01 07 00 AF 1C 00 00 00 00 00 FF 0F E0 [15:43:32]process_action close_receipt done [15:43:32]requested_data is exist [15:43:32]produce_requested_data [15:43:32]requested_item fm.sn is exist - process it [15:43:32]wFMCommunicate request_size=4 [15:43:32]MH_SAM_APDU [15:43:32]CAPDU: 80 11 00 00 [15:43:32]Write to MH i2c: E2 08 00 B0 1C 80 11 00 00 00 00 00 00 46 [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:32]Read from MH i2c: E2 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 17 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 17 00 B0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9D [15:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:43:32]wFMCommunicate OK [15:43:32]requested_item fd.num is exist - process it [15:43:32]SAM_PROTO_GetFieldsCounters [15:43:32]wFMCommunicate request_size=4 [15:43:32]MH_SAM_APDU [15:43:32]CAPDU: 80 13 00 00 [15:43:32]Write to MH i2c: E2 08 00 B1 1C 80 13 00 00 00 00 00 00 49 [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:32]Read from MH i2c: E2 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 62 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 62 00 B1 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BE CA 01 00 0E 04 04 00 1E 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 B7 [15:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BE CA 01 00 0E 04 04 00 1E 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 [15:43:32]wFMCommunicate OK [15:43:32]SAM_PROTO_GetFieldsCounters done [15:43:32]requested_item shift.num is exist - process it [15:43:32]requested_item shift.opened is exist - process it [15:43:32]req_shift_opened [15:43:32]FM_GetShiftState [15:43:32]SAM_PROTO_GetShiftState [15:43:32]wFMCommunicate request_size=4 [15:43:32]MH_SAM_APDU [15:43:32]CAPDU: 80 13 01 00 [15:43:32]Write to MH i2c: E2 08 00 B2 1C 80 13 01 00 00 00 00 00 4B [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:32]Read from MH i2c: E2 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 0E 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 0E 00 B2 1C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8A [15:43:32]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:43:32]wFMCommunicate OK [15:43:32]SAM_PROTO_GetShiftState done [15:43:32]FM_GetShiftState done [15:43:32]req_shift_opened done [15:43:32]requested_item shift.open_date is exist - process it [15:43:32]req_shift_open_date [15:43:32]req_shift_open_date done [15:43:32]produce_requested_data done [15:43:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117438,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:43:32]process_action_free close_receipt [15:43:32]json_value_free [15:43:32]json_value_free done [15:43:32]process_json_proto returns [15:43:32]Send response to host [15:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117438,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:43:32]free response buf [15:43:32]execute_script done [15:43:32]execute_script returns [15:43:32]free content buf [15:43:32]Sock 10.Close socket [15:43:32]Sock 10.Thread stoped [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:55]accept exits with 7 [15:43:55]New connection [15:43:55]New thread 3067600228 created [15:43:55]Thread 3067456868 joined [15:43:55]Waiting for new connection... [15:43:55] Sock 7.Parse request [15:43:55]Sock 7.Check first char [15:43:55]Sock 7.First char is OK [15:43:55]request: POST /json_proto HTTP/1.0 [15:43:55]Method: POST [15:43:55]URL: /json_proto [15:43:55]Method is POST - this is cgi request [15:43:55]url: /json_proto [15:43:55]query_string will be loaded in cgi processing [15:43:55]execute_cgi json_proto POST (null) [15:43:55]execute_cgi path=json_proto method=POST [15:43:55]POST find Content-Length [15:43:55]Host: 172.17.96.67:8080 [15:43:55]Content-Length: 678 [15:43:55]Content-Type: application/json [15:43:55] [15:43:55]POST finish read [15:43:55]Found Content-Length = 678 [15:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:43:55]execute_script... [15:43: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)245215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:43:55]POST & json_proto [15:43:55]process_json_proto [15:43:55]json parsed OK: [15:43:55]protocol is kg_v1.0 [15:43:55]action value=close_receipt [15:43:55]process_action close_receipt [15:43:55]cmd_close_receipt [15:43:55]MH_GetDate [15:43:55]Write to MH i2c: F0 00 00 B3 1C BE [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: F0 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: F0 09 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: F0 09 00 B3 1C 00 BD 5F 1E 67 2B 09 1E 67 21 [15:43:55]GetLastDocTimeStamp 1730043810 [15:43:55]current date 1730043837 [15:43:55]FM_GetShiftState [15:43:55]SAM_PROTO_GetShiftState [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 13 01 00 [15:43:55]Write to MH i2c: E2 08 00 B4 1C 80 13 01 00 00 00 00 00 4D [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 0E 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 0E 00 B4 1C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8C [15:43:55]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:43:55]wFMCommunicate OK [15:43:55]SAM_PROTO_GetShiftState done [15:43:55]FM_GetShiftState done [15:43:55]opened in 1729987372 [15:43:55]opened+sec_in_day 1730073772 [15:43:55]quantity*price = 70044 [15:43:55]sum+1 = 70045 [15:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 139 27.10.2024 15:43 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117439 ФПД: 118215859972015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154357&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117439&fm=118215859972015&tin=02508201610067®Number=0000000000091782&sum=70000 [15:43:56]StoreToDocumentArchive [15:43:56]shift 542 fd 117439 [15:43:56]save to /storage/0542/doc_00117439 [15:43:56]save last doc name /storage/0542/doc_00117439 to /storage/kkm_last_doc_name [15:43:56]save OK [15:43:56]Clear old archive folders... [15:43:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:56]tlvbuf is 016DE950 [15:43:56]SAM_PROTO_ClearQueue [15:43:56]wFMCommunicate request_size=4 [15:43:56]MH_SAM_APDU [15:43:56]CAPDU: 80 09 00 00 [15:43:56]Write to MH i2c: E2 08 00 C1 1C 80 09 00 00 00 00 00 00 4F [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:56]Read from MH i2c: E2 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 03 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 03 00 C1 1C 00 90 00 51 [15:43:56]RAPDU: 90 00 [15:43:56]wFMCommunicate OK [15:43:56]SAM_PROTO_ClearQueue done [15:43:56]KKMCreateOFDPacket [15:43:56]OFDProtocolAddRootSTLVToBuf [15:43:56]FM_MakeSignedData [15:43:56]FM_MakeSignedData [15:43:56]SAM_PROTO_SignData [15:43:56]wFMCommunicate request_size=4 [15:43:56]MH_SAM_APDU [15:43:56]CAPDU: 80 0D 01 02 [15:43:56]Write to MH i2c: E2 08 00 C2 1C 80 0D 01 02 00 00 00 00 57 [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:56]Read from MH i2c: E2 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 03 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 03 00 C2 1C 00 90 00 52 [15:43:56]RAPDU: 90 00 [15:43:56]wFMCommunicate OK [15:43:56]wFMCommunicate request_size=255 [15:43:56]MH_SAM_APDU [15:43: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 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 8B 00 00 00 F4 03 04 00 BD 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CA 01 00 35 04 06 00 6B [15:43:56]Write to MH i2c: E2 02 01 C3 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 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 8B 00 00 00 F4 03 04 00 BD 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CA 01 00 35 04 06 00 6B 00 00 3A [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]OFD Sender: No OFD packet to send [15:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:56]Read from MH i2c: E2 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 03 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 03 00 C3 1C 00 90 00 53 [15:43:56]RAPDU: 90 00 [15:43:56]wFMCommunicate OK [15:43:56]wFMCommunicate request_size=10 [15:43:56]MH_SAM_APDU [15:43:56]CAPDU: 80 0D 02 02 05 84 46 57 27 AF [15:43:56]Write to MH i2c: E2 0D 00 C4 1C 80 0D 02 02 05 00 84 46 57 27 AF 00 00 5B [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:56]Read from MH i2c: E2 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 03 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 03 00 C4 1C 00 90 00 54 [15:43:56]RAPDU: 90 00 [15:43:56]wFMCommunicate OK [15:43:56]wFMCommunicate request_size=4 [15:43:56]MH_SAM_APDU [15:43:56]CAPDU: 80 0D 03 02 [15:43:56]Write to MH i2c: E2 08 00 C5 1C 80 0D 03 02 00 00 00 00 5C [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:56]Read from MH i2c: E2 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 0B 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 0B 00 C5 1C 00 D8 44 FF 9C 84 8E 52 08 90 00 80 [15:43:56]RAPDU: D8 44 FF 9C 84 8E 52 08 90 00 [15:43:56]wFMCommunicate OK [15:43:56]SAM_PROTO_SignData done [15:43:56]FM_MakeSignedData done [15:43:56]CreateOFDProtocolMessage [15:43:56]wFMCommunicate request_size=4 [15:43:56]MH_SAM_APDU [15:43:56]CAPDU: 80 11 00 00 [15:43:56]Write to MH i2c: E2 08 00 C6 1C 80 11 00 00 00 00 00 00 5C [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:56]Read from MH i2c: E2 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 17 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 17 00 C6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B3 [15:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:43:56]wFMCommunicate OK [15:43:56]CreateOFDProtocolMessage done [15:43:56]OFDSenderStorePacket 117439 [15:43:56]StoreOFDPacket docnum=117439 [15:43:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 10 66 07 01 22 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 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 8B 00 00 00 F4 03 04 00 BD 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CA 01 00 35 04 06 00 6B 84 46 57 27 AF D8 44 FF 9C 84 8E 52 08 [15:43:56]CheckFolder [15:43:56]dirname=/storage/ofd_packets [15:43:56]CheckFolder done [15:43:56]ProducePacketName [15:43:56]name=ofd_packets/00117439 [15:43:56]NVStorageSaveData ofd_packets/00117439 [15:43:56]File name is /storage/ofd_packets/00117439 [15:43:56]Write 301 bytes [15:43:56]NVStorageSaveData done [15:43:56]OFDSenderStorePacket done [15:43:56]KKMCreateOFDPacket done [15:43:56]NVStorageSaveData kkm_last_timestamp [15:43:56]File name is /storage/kkm_last_timestamp [15:43:56]Write 4 bytes [15:43:56]NVStorageSaveData done [15:43:56]ExternCall_PrintAddStr [15:43:56]wPrintStart [15:43:56]Write to MH i2c: 01 00 00 C7 1C E3 [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: 01 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: 01 07 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: 01 07 00 C7 1C 00 00 00 00 00 FF 0F F8 [15:43:56]RasterBufferAndPrint [15:43:56]line Счет N : (1)245215 [15:43:56]line ИНН: 02508201610067 [15:43:56]line Контрольно-Кассовый Чек [15:43:56]line ПРОДАЖА [15:43:56]line ТРК (МРК, ГНК) : 11 [15:43:56]line Товар: 2710124130 [15:43:56]line Аи-92-К-2 [15:43:56]line 10.470 * 66.90 [15:43:56]line = 700.44 [15:43:56]line НДС 12% НСП 1% [15:43:56]line > о реализуемом товаре [15:43:56]line ОКРУГЛЕНИЕ: -0.44 [15:43:56]line ИТОГО: 700.00 [15:43:56]line Внесено: 700.00 [15:43:56]line СДАЧА: 0.00 [15:43:56]line НСП 1% : 6.20 [15:43:56]line НДС 12% : 74.38 [15:43:56]line Наличными: 700.00 [15:43:56]line Безнал.: 0.00 [15:43:56]line Место: АЗС № 173 "Партнер Нефть" [15:43:56]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:43:56]line СНО: Общий режим [15:43:56]line Чек 139 27.10.2024 15:43 [15:43:56]line Смена: 542 ФФД: 1.0 [15:43:56]line ЗНМ: 0300000115 [15:43:56]line РНМ: 0000000000091782 [15:43:56]line Версия ККМ: 001 [15:43:56]line ФМ: 0000000000871767 [15:43:56]line ФД: 117439 [15:43:56]line ФПД: 118215859972015 [15:43:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154357&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117439&fm=118215859972015&tin=02508201610067®Number=0000000000091782&sum=70000 [15:43:57]OFD Sender: Processing packet 117439 [packets to send 76, broken 75] [15:43:57]ProducePacketName [15:43:57]name=ofd_packets/00117439 [15:43:57]OFD Sender: To server: pG, [15:43:57]CommunicateWithHost lk.salyk.kg:30040 [15:43:57]ConnectInit lk.salyk.kg [15:43:57]written 0, free lines is 4095 [15:43:57]Connected sock=11 [15:43: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 36 37 0F 01 00 00 10 66 07 01 22 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 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 8B 00 00 00 F4 03 04 00 BD 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CA 01 00 35 04 06 00 6B 84 46 57 27 AF D8 44 FF 9C 84 8E 52 08 [15:43: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 36 37 4F 00 00 00 82 E6 47 00 7D 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CA 01 00 F4 03 04 00 7A 0B 1E 67 B6 04 01 00 00 B0 85 F1 2A 97 33 72 29 [15:43:57]CommunicateWithHost err = 0 [15:43:57]CheckOFDResponse [15:43:57]1017 (14) - 77093643461234 [15:43:57]1041 (16) - 0000000000871767 [15:43:57]1040 (4) - 117439 [15:43:57]1012 (4) - 27.10.2024 09:44 [15:43:57]1206 (1) - 0 [15:43:57]OFD Sender: Remove packet 117439 [15:43:57]ProducePacketName [15:43:57]name=ofd_packets/00117439 [15:43:57]NVStorageDeleteData [15:43:57]Write to MH i2c: 01 00 00 F1 1C 0D [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: 01 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: 01 07 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: 01 07 00 F1 1C 00 00 00 00 00 A8 0C C8 [15:43:57]RasterBufferAndPrint [15:43:57]line [15:43:57]line [15:43:57]line [15:43:57]line [15:43:57]line [15:43:57]written 0, free lines is 3242 [15:43:57]MH_Cut [15:43:57]Write to MH i2c: D1 01 00 F8 1C 01 E6 [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: D1 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: D1 01 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: D1 01 00 F8 1C 00 E5 [15:43:57]Write to MH i2c: 01 00 00 F9 1C 15 [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:58]OFD Sender: No OFD packet to send [15:43:58]*** Cut start [15:43:58]*** Purtial cut [15:43:58]*** Stage 1: CUTSNS_PIN = 1 [15:43:58]Read from MH i2c: 01 [15:43:58]MH_I2C_Read... [15:43:58]*** Stop cut motor [15:43:58]*** Cut end [15:43:58]Read from MH i2c: 01 07 00 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: 01 07 00 F9 1C 00 00 00 00 00 FF 0F 2A [15:43:58]process_action close_receipt done [15:43:58]requested_data is exist [15:43:58]produce_requested_data [15:43:58]requested_item fm.sn is exist - process it [15:43:58]wFMCommunicate request_size=4 [15:43:58]MH_SAM_APDU [15:43:58]CAPDU: 80 11 00 00 [15:43:58]Write to MH i2c: E2 08 00 FA 1C 80 11 00 00 00 00 00 00 90 [15:43:58]Write i2c OK [15:43:58]MH_I2C_Read... [15:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:58]Read from MH i2c: E2 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: E2 17 00 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: E2 17 00 FA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E7 [15:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:43:58]wFMCommunicate OK [15:43:58]requested_item fd.num is exist - process it [15:43:58]SAM_PROTO_GetFieldsCounters [15:43:58]wFMCommunicate request_size=4 [15:43:58]MH_SAM_APDU [15:43:58]CAPDU: 80 13 00 00 [15:43:58]Write to MH i2c: E2 08 00 FB 1C 80 13 00 00 00 00 00 00 93 [15:43:58]Write i2c OK [15:43:58]MH_I2C_Read... [15:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:59]Read from MH i2c: E2 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 62 00 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 62 00 FB 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BF CA 01 00 0E 04 04 00 1E 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 05 [15:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BF CA 01 00 0E 04 04 00 1E 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 [15:43:59]wFMCommunicate OK [15:43:59]SAM_PROTO_GetFieldsCounters done [15:43:59]requested_item shift.num is exist - process it [15:43:59]requested_item shift.opened is exist - process it [15:43:59]req_shift_opened [15:43:59]FM_GetShiftState [15:43:59]SAM_PROTO_GetShiftState [15:43:59]wFMCommunicate request_size=4 [15:43:59]MH_SAM_APDU [15:43:59]CAPDU: 80 13 01 00 [15:43:59]Write to MH i2c: E2 08 00 FC 1C 80 13 01 00 00 00 00 00 95 [15:43:59]Write i2c OK [15:43:59]MH_I2C_Read... [15:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:59]Read from MH i2c: E2 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 0E 00 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 0E 00 FC 1C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D4 [15:43:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:43:59]wFMCommunicate OK [15:43:59]SAM_PROTO_GetShiftState done [15:43:59]FM_GetShiftState done [15:43:59]req_shift_opened done [15:43:59]requested_item shift.open_date is exist - process it [15:43:59]req_shift_open_date [15:43:59]req_shift_open_date done [15:43:59]produce_requested_data done [15:43:59]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117439,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:43:59]process_action_free close_receipt [15:43:59]json_value_free [15:43:59]json_value_free done [15:43:59]process_json_proto returns [15:43:59]Send response to host [15:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117439,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:43:59]free response buf [15:43:59]execute_script done [15:43:59]execute_script returns [15:43:59]free content buf [15:43:59]Sock 7.Close socket [15:43:59]Sock 7.Thread stoped [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]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:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:17]accept exits with 9 [15:48:17]New connection [15:48:17]New thread 3067456868 created [15:48:17]Thread 3067600228 joined [15:48:17]Waiting for new connection... [15:48:17] Sock 9.Parse request [15:48:17]Sock 9.Check first char [15:48:17]Sock 9.First char is OK [15:48:17]request: POST /json_proto HTTP/1.0 [15:48:17]Method: POST [15:48:17]URL: /json_proto [15:48:17]Method is POST - this is cgi request [15:48:17]url: /json_proto [15:48:17]query_string will be loaded in cgi processing [15:48:17]execute_cgi json_proto POST (null) [15:48:17]execute_cgi path=json_proto method=POST [15:48:17]POST find Content-Length [15:48:17]Host: 172.17.96.67:8080 [15:48:17]Content-Length: 769 [15:48:17]Content-Type: application/json [15:48:17] [15:48:17]POST finish read [15:48:17]Found Content-Length = 769 [15:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:17]execute_script... [15:48:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:17]POST & json_proto [15:48:17]process_json_proto [15:48:17]json parsed OK: [15:48:17]protocol is kg_v1.0 [15:48:17]action value=close_receipt [15:48:17]process_action close_receipt [15:48:17]cmd_close_receipt [15:48:17]MH_GetDate [15:48:17]Write to MH i2c: F0 00 00 FD 1C 08 [15:48:17]Write i2c OK [15:48:17]MH_I2C_Read... [15:48:17]Read from MH i2c: F0 [15:48:17]MH_I2C_Read... [15:48:17]Read from MH i2c: F0 09 00 [15:48:17]MH_I2C_Read... [15:48:17]Read from MH i2c: F0 09 00 FD 1C 00 C3 60 1E 67 2B 09 1E 67 72 [15:48:17]GetLastDocTimeStamp 1730043837 [15:48:17]current date 1730044099 [15:48:17]FM_GetShiftState [15:48:17]SAM_PROTO_GetShiftState [15:48:17]wFMCommunicate request_size=4 [15:48:17]MH_SAM_APDU [15:48:17]CAPDU: 80 13 01 00 [15:48:17]Write to MH i2c: E2 08 00 FE 1C 80 13 01 00 00 00 00 00 97 [15:48:17]Write i2c OK [15:48:17]MH_I2C_Read... [15:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:17]Read from MH i2c: E2 [15:48:17]MH_I2C_Read... [15:48:17]Read from MH i2c: E2 0E 00 [15:48:17]MH_I2C_Read... [15:48:17]Read from MH i2c: E2 0E 00 FE 1C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D6 [15:48:17]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:48:17]wFMCommunicate OK [15:48:17]SAM_PROTO_GetShiftState done [15:48:17]FM_GetShiftState done [15:48:17]opened in 1729987372 [15:48:17]opened+sec_in_day 1730073772 [15:48:17]quantity*price = 150056 [15:48:17]sum+1 = 150058 [15:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 140 27.10.2024 15:48 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117440 ФПД: 207654557770081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154819&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117440&fm=207654557770081&tin=02508201610067®Number=0000000000091782&sum=150057 [15:48:18]StoreToDocumentArchive [15:48:18]shift 542 fd 117440 [15:48:18]save to /storage/0542/doc_00117440 [15:48:18]save last doc name /storage/0542/doc_00117440 to /storage/kkm_last_doc_name [15:48:18]save OK [15:48:18]Clear old archive folders... [15:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:18]tlvbuf is 01774260 [15:48:18]SAM_PROTO_ClearQueue [15:48:18]wFMCommunicate request_size=4 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 09 00 00 [15:48:18]Write to MH i2c: E2 08 00 0B 1D 80 09 00 00 00 00 00 00 9A [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 0B 1D 00 90 00 9C [15:48:18]RAPDU: 90 00 [15:48:18]wFMCommunicate OK [15:48:18]SAM_PROTO_ClearQueue done [15:48:18]KKMCreateOFDPacket [15:48:18]OFDProtocolAddRootSTLVToBuf [15:48:18]FM_MakeSignedData [15:48:18]FM_MakeSignedData [15:48:18]SAM_PROTO_SignData [15:48:18]wFMCommunicate request_size=4 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 0D 01 02 [15:48:18]Write to MH i2c: E2 08 00 0C 1D 80 0D 01 02 00 00 00 00 A2 [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [15:48:18]RAPDU: 90 00 [15:48:18]wFMCommunicate OK [15:48:18]wFMCommunicate request_size=255 [15:48:18]MH_SAM_APDU [15:48: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C3 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CA 01 00 35 04 06 00 BC [15:48:18]Write to MH i2c: E2 02 01 0D 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C3 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CA 01 00 35 04 06 00 BC 00 00 8C [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]OFD Sender: No OFD packet to send [15:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [15:48:18]RAPDU: 90 00 [15:48:18]wFMCommunicate OK [15:48:18]wFMCommunicate request_size=10 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 0D 02 02 05 DC 58 26 E1 61 [15:48:18]Write to MH i2c: E2 0D 00 0E 1D 80 0D 02 02 05 00 DC 58 26 E1 61 00 00 4B [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 0E 1D 00 90 00 9F [15:48:18]RAPDU: 90 00 [15:48:18]wFMCommunicate OK [15:48:18]wFMCommunicate request_size=4 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 0D 03 02 [15:48:18]Write to MH i2c: E2 08 00 0F 1D 80 0D 03 02 00 00 00 00 A7 [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 0B 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 0B 00 0F 1D 00 22 C6 37 32 48 D3 C9 8A 90 00 67 [15:48:18]RAPDU: 22 C6 37 32 48 D3 C9 8A 90 00 [15:48:18]wFMCommunicate OK [15:48:18]SAM_PROTO_SignData done [15:48:18]FM_MakeSignedData done [15:48:18]CreateOFDProtocolMessage [15:48:18]wFMCommunicate request_size=4 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 11 00 00 [15:48:18]Write to MH i2c: E2 08 00 10 1D 80 11 00 00 00 00 00 00 A7 [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 17 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 17 00 10 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FE [15:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:48:18]wFMCommunicate OK [15:48:18]CreateOFDProtocolMessage done [15:48:18]OFDSenderStorePacket 117440 [15:48:18]StoreOFDPacket docnum=117440 [15:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6C 61 07 01 7B 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C3 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CA 01 00 35 04 06 00 BC DC 58 26 E1 61 22 C6 37 32 48 D3 C9 8A [15:48:18]CheckFolder [15:48:18]dirname=/storage/ofd_packets [15:48:18]CheckFolder done [15:48:18]ProducePacketName [15:48:18]name=ofd_packets/00117440 [15:48:18]NVStorageSaveData ofd_packets/00117440 [15:48:18]File name is /storage/ofd_packets/00117440 [15:48:18]Write 301 bytes [15:48:18]NVStorageSaveData done [15:48:18]OFDSenderStorePacket done [15:48:18]KKMCreateOFDPacket done [15:48:18]NVStorageSaveData kkm_last_timestamp [15:48:18]File name is /storage/kkm_last_timestamp [15:48:18]Write 4 bytes [15:48:18]NVStorageSaveData done [15:48:18]ExternCall_PrintAddStr [15:48:18]wPrintStart [15:48:18]Write to MH i2c: 01 00 00 11 1D 2E [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: 01 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: 01 07 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: 01 07 00 11 1D 00 00 00 00 00 FF 0F 43 [15:48:18]RasterBufferAndPrint [15:48:18]line Счет N : (1)245216 [15:48:18]line ИНН: 02508201610067 [15:48:18]line Контрольно-Кассовый Чек [15:48:18]line ПРОДАЖА [15:48:18]line ТРК (МРК, ГНК) : 21 [15:48:18]line Товар: 2710124130 [15:48:18]line Аи-92-К-2 [15:48:18]line 22.430 * 66.90 [15:48:18]line = 1500.57 [15:48:18]line НДС 12% НСП 1% [15:48:18]line > о реализуемом товаре [15:48:18]line ИТОГО: 1500.57 [15:48:18]line НСП 1% : 13.28 [15:48:18]line НДС 12% : 159.35 [15:48:18]line Наличными: 0.00 [15:48:18]line Безнал.: 1500.57 [15:48:18]line Место: АЗС № 173 "Партнер Нефть" [15:48:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:48:18]line СНО: Общий режим [15:48:18]line Чек 140 27.10.2024 15:48 [15:48:18]line Смена: 542 ФФД: 1.0 [15:48:18]line ЗНМ: 0300000115 [15:48:18]line РНМ: 0000000000091782 [15:48:18]line Версия ККМ: 001 [15:48:18]line Платежная система: Mbank [15:48:18]line ФМ: 0000000000871767 [15:48:18]line ФД: 117440 [15:48:18]line ФПД: 207654557770081 [15:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154819&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117440&fm=207654557770081&tin=02508201610067®Number=0000000000091782&sum=150057 [15:48:19]written 0, free lines is 4095 [15:48:19]OFD Sender: Processing packet 117440 [packets to send 76, broken 75] [15:48:19]ProducePacketName [15:48:19]name=ofd_packets/00117440 [15:48:19]OFD Sender: To server: pG, [15:48:19]CommunicateWithHost lk.salyk.kg:30040 [15:48:19]ConnectInit lk.salyk.kg [15:48:19]Connected sock=10 [15:48:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6C 61 07 01 7B 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C3 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CA 01 00 35 04 06 00 BC DC 58 26 E1 61 22 C6 37 32 48 D3 C9 8A [15:48: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 36 37 4F 00 00 00 FB A9 47 00 50 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 36 37 10 04 04 00 C0 CA 01 00 F4 03 04 00 80 0C 1E 67 B6 04 01 00 00 07 2B C9 25 3C B6 11 3D [15:48:19]CommunicateWithHost err = 0 [15:48:19]CheckOFDResponse [15:48:19]1017 (14) - 77093643461234 [15:48:19]1041 (16) - 0000000000871767 [15:48:19]1040 (4) - 117440 [15:48:19]1012 (4) - 27.10.2024 09:48 [15:48:19]1206 (1) - 0 [15:48:19]OFD Sender: Remove packet 117440 [15:48:19]ProducePacketName [15:48:19]name=ofd_packets/00117440 [15:48:19]NVStorageDeleteData [15:48:19]Write to MH i2c: 01 00 00 39 1D 56 [15:48:19]Write i2c OK [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: 01 [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: 01 07 00 [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: 01 07 00 39 1D 00 00 00 00 00 DE 0C 47 [15:48:19]RasterBufferAndPrint [15:48:19]line [15:48:19]line [15:48:19]line [15:48:19]line [15:48:19]line [15:48:19]written 0, free lines is 3298 [15:48:19]MH_Cut [15:48:19]Write to MH i2c: D1 01 00 40 1D 01 2F [15:48:19]Write i2c OK [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: D1 [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: D1 01 00 [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: D1 01 00 40 1D 00 2E [15:48:19]Write to MH i2c: 01 00 00 41 1D 5E [15:48:19]Write i2c OK [15:48:19]MH_I2C_Read... [15:48:19]OFD Sender: No OFD packet to send [15:48:20]*** Cut start [15:48:20]*** Purtial cut [15:48:20]*** Stage 1: CUTSNS_PIN = 1 [15:48:20]Read from MH i2c: 01 [15:48:20]MH_I2C_Read... [15:48:20]*** Stop cut motor [15:48:20]*** Cut end [15:48:20]Read from MH i2c: 01 07 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: 01 07 00 41 1D 00 00 00 00 00 FF 0F 73 [15:48:20]process_action close_receipt done [15:48:20]requested_data is exist [15:48:20]produce_requested_data [15:48:20]requested_item fm.sn is exist - process it [15:48:20]wFMCommunicate request_size=4 [15:48:20]MH_SAM_APDU [15:48:20]CAPDU: 80 11 00 00 [15:48:20]Write to MH i2c: E2 08 00 42 1D 80 11 00 00 00 00 00 00 D9 [15:48:20]Write i2c OK [15:48:20]MH_I2C_Read... [15:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:20]Read from MH i2c: E2 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 17 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 17 00 42 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 30 [15:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:48:20]wFMCommunicate OK [15:48:20]requested_item fd.num is exist - process it [15:48:20]SAM_PROTO_GetFieldsCounters [15:48:20]wFMCommunicate request_size=4 [15:48:20]MH_SAM_APDU [15:48:20]CAPDU: 80 13 00 00 [15:48:20]Write to MH i2c: E2 08 00 43 1D 80 13 00 00 00 00 00 00 DC [15:48:20]Write i2c OK [15:48:20]MH_I2C_Read... [15:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:20]Read from MH i2c: E2 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 62 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 62 00 43 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C0 CA 01 00 0E 04 04 00 1E 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 52 [15:48: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C0 CA 01 00 0E 04 04 00 1E 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 [15:48:20]wFMCommunicate OK [15:48:20]SAM_PROTO_GetFieldsCounters done [15:48:20]requested_item shift.num is exist - process it [15:48:20]requested_item shift.opened is exist - process it [15:48:20]req_shift_opened [15:48:20]FM_GetShiftState [15:48:20]SAM_PROTO_GetShiftState [15:48:20]wFMCommunicate request_size=4 [15:48:20]MH_SAM_APDU [15:48:20]CAPDU: 80 13 01 00 [15:48:20]Write to MH i2c: E2 08 00 44 1D 80 13 01 00 00 00 00 00 DE [15:48:20]Write i2c OK [15:48:20]MH_I2C_Read... [15:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:20]Read from MH i2c: E2 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 0E 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 0E 00 44 1D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1D [15:48:20]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [15:48:20]wFMCommunicate OK [15:48:20]SAM_PROTO_GetShiftState done [15:48:20]FM_GetShiftState done [15:48:20]req_shift_opened done [15:48:20]requested_item shift.open_date is exist - process it [15:48:20]req_shift_open_date [15:48:20]req_shift_open_date done [15:48:20]produce_requested_data done [15:48:20]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117440,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [15:48:20]process_action_free close_receipt [15:48:20]json_value_free [15:48:20]json_value_free done [15:48:20]process_json_proto returns [15:48:20]Send response to host [15:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117440,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [15:48:20]free response buf [15:48:20]execute_script done [15:48:20]execute_script returns [15:48:20]free content buf [15:48:20]Sock 9.Close socket [15:48:20]Sock 9.Thread stoped [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:14]accept exits with 7 [16:00:14]New connection [16:00:14]New thread 3067600228 created [16:00:14]Thread 3067456868 joined [16:00:14]Waiting for new connection... [16:00:14] Sock 7.Parse request [16:00:14]Sock 7.Check first char [16:00:14]Sock 7.First char is OK [16:00:14]request: POST /json_proto HTTP/1.0 [16:00:14]Method: POST [16:00:14]URL: /json_proto [16:00:14]Method is POST - this is cgi request [16:00:14]url: /json_proto [16:00:14]query_string will be loaded in cgi processing [16:00:14]execute_cgi json_proto POST (null) [16:00:14]execute_cgi path=json_proto method=POST [16:00:14]POST find Content-Length [16:00:14]Host: 172.17.96.67:8080 [16:00:14]Content-Length: 677 [16:00:14]Content-Type: application/json [16:00:14] [16:00:14]POST finish read [16:00:14]Found Content-Length = 677 [16:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:14]execute_script... [16:00: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)245217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:14]POST & json_proto [16:00:14]process_json_proto [16:00:14]json parsed OK: [16:00:14]protocol is kg_v1.0 [16:00:14]action value=close_receipt [16:00:14]process_action close_receipt [16:00:14]cmd_close_receipt [16:00:14]MH_GetDate [16:00:14]Write to MH i2c: F0 00 00 45 1D 51 [16:00:14]Write i2c OK [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: F0 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: F0 09 00 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: F0 09 00 45 1D 00 90 63 1E 67 2B 09 1E 67 8B [16:00:14]GetLastDocTimeStamp 1730044099 [16:00:14]current date 1730044816 [16:00:14]FM_GetShiftState [16:00:14]SAM_PROTO_GetShiftState [16:00:14]wFMCommunicate request_size=4 [16:00:14]MH_SAM_APDU [16:00:14]CAPDU: 80 13 01 00 [16:00:14]Write to MH i2c: E2 08 00 46 1D 80 13 01 00 00 00 00 00 E0 [16:00:14]Write i2c OK [16:00:14]MH_I2C_Read... [16:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:14]Read from MH i2c: E2 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: E2 0E 00 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: E2 0E 00 46 1D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1F [16:00:14]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:00:14]wFMCommunicate OK [16:00:14]SAM_PROTO_GetShiftState done [16:00:14]FM_GetShiftState done [16:00:14]opened in 1729987372 [16:00:14]opened+sec_in_day 1730073772 [16:00:14]quantity*price = 15052 [16:00:14]sum+1 = 15054 [16:00:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 141 27.10.2024 16:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117441 ФПД: 50624425213015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160016&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117441&fm=50624425213015&tin=02508201610067®Number=0000000000091782&sum=15000 [16:00:15]StoreToDocumentArchive [16:00:15]shift 542 fd 117441 [16:00:15]save to /storage/0542/doc_00117441 [16:00:15]save last doc name /storage/0542/doc_00117441 to /storage/kkm_last_doc_name [16:00:15]save OK [16:00:15]Clear old archive folders... [16:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:15]tlvbuf is 01769220 [16:00:15]SAM_PROTO_ClearQueue [16:00:15]wFMCommunicate request_size=4 [16:00:15]MH_SAM_APDU [16:00:15]CAPDU: 80 09 00 00 [16:00:15]Write to MH i2c: E2 08 00 53 1D 80 09 00 00 00 00 00 00 E2 [16:00:15]Write i2c OK [16:00:15]MH_I2C_Read... [16:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:15]Read from MH i2c: E2 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 03 00 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 03 00 53 1D 00 90 00 E4 [16:00:15]RAPDU: 90 00 [16:00:15]wFMCommunicate OK [16:00:15]SAM_PROTO_ClearQueue done [16:00:15]KKMCreateOFDPacket [16:00:15]OFDProtocolAddRootSTLVToBuf [16:00:15]FM_MakeSignedData [16:00:15]FM_MakeSignedData [16:00:15]SAM_PROTO_SignData [16:00:15]wFMCommunicate request_size=4 [16:00:15]MH_SAM_APDU [16:00:15]CAPDU: 80 0D 01 02 [16:00:15]Write to MH i2c: E2 08 00 54 1D 80 0D 01 02 00 00 00 00 EA [16:00:15]Write i2c OK [16:00:15]MH_I2C_Read... [16:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:15]Read from MH i2c: E2 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 03 00 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 03 00 54 1D 00 90 00 E5 [16:00:15]RAPDU: 90 00 [16:00:15]wFMCommunicate OK [16:00:15]wFMCommunicate request_size=255 [16:00:15]MH_SAM_APDU [16:00: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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 90 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CA 01 00 35 04 06 00 2E [16:00:15]Write to MH i2c: E2 02 01 55 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 90 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CA 01 00 35 04 06 00 2E 00 00 58 [16:00:15]Write i2c OK [16:00:15]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 55 1D 00 90 00 E6 [16:00:16]RAPDU: 90 00 [16:00:16]wFMCommunicate OK [16:00:16]wFMCommunicate request_size=10 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 0D 02 02 05 0A EA E1 BC 57 [16:00:16]Write to MH i2c: E2 0D 00 56 1D 80 0D 02 02 05 00 0A EA E1 BC 57 00 00 DF [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 56 1D 00 90 00 E7 [16:00:16]RAPDU: 90 00 [16:00:16]wFMCommunicate OK [16:00:16]wFMCommunicate request_size=4 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 0D 03 02 [16:00:16]Write to MH i2c: E2 08 00 57 1D 80 0D 03 02 00 00 00 00 EF [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 0B 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 0B 00 57 1D 00 33 41 5D F1 A6 27 61 21 90 00 01 [16:00:16]RAPDU: 33 41 5D F1 A6 27 61 21 90 00 [16:00:16]wFMCommunicate OK [16:00:16]SAM_PROTO_SignData done [16:00:16]FM_MakeSignedData done [16:00:16]CreateOFDProtocolMessage [16:00:16]wFMCommunicate request_size=4 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 11 00 00 [16:00:16]Write to MH i2c: E2 08 00 58 1D 80 11 00 00 00 00 00 00 EF [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 17 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 17 00 58 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 46 [16:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:00:16]wFMCommunicate OK [16:00:16]CreateOFDProtocolMessage done [16:00:16]OFDSenderStorePacket 117441 [16:00:16]StoreOFDPacket docnum=117441 [16:00:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 AC 0D 07 01 B5 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 90 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CA 01 00 35 04 06 00 2E 0A EA E1 BC 57 33 41 5D F1 A6 27 61 21 [16:00:16]CheckFolder [16:00:16]dirname=/storage/ofd_packets [16:00:16]CheckFolder done [16:00:16]ProducePacketName [16:00:16]name=ofd_packets/00117441 [16:00:16]NVStorageSaveData ofd_packets/00117441 [16:00:16]File name is /storage/ofd_packets/00117441 [16:00:16]Write 301 bytes [16:00:16]NVStorageSaveData done [16:00:16]OFDSenderStorePacket done [16:00:16]KKMCreateOFDPacket done [16:00:16]NVStorageSaveData kkm_last_timestamp [16:00:16]File name is /storage/kkm_last_timestamp [16:00:16]Write 4 bytes [16:00:16]NVStorageSaveData done [16:00:16]ExternCall_PrintAddStr [16:00:16]wPrintStart [16:00:16]Write to MH i2c: 01 00 00 59 1D 76 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: 01 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: 01 07 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: 01 07 00 59 1D 00 00 00 00 00 FF 0F 8B [16:00:16]RasterBufferAndPrint [16:00:16]line Счет N : (1)245217 [16:00:16]line ИНН: 02508201610067 [16:00:16]line Контрольно-Кассовый Чек [16:00:16]line ПРОДАЖА [16:00:16]line ТРК (МРК, ГНК) : 11 [16:00:16]line Товар: 2710124130 [16:00:16]line Аи-92-К-2 [16:00:16]line 2.250 * 66.90 [16:00:16]line = 150.53 [16:00:16]line НДС 12% НСП 1% [16:00:16]line > о реализуемом товаре [16:00:16]line ОКРУГЛЕНИЕ: -0.53 [16:00:16]line ИТОГО: 150.00 [16:00:16]line Внесено: 150.00 [16:00:16]line СДАЧА: 0.00 [16:00:16]line НСП 1% : 1.33 [16:00:16]line НДС 12% : 15.98 [16:00:16]line Наличными: 150.00 [16:00:16]line Безнал.: 0.00 [16:00:16]line Место: АЗС № 173 "Партнер Нефть" [16:00:16]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:00:16]line СНО: Общий режим [16:00:16]line Чек 141 27.10.2024 16:00 [16:00:16]line Смена: 542 ФФД: 1.0 [16:00:16]line ЗНМ: 0300000115 [16:00:16]line РНМ: 0000000000091782 [16:00:16]line Версия ККМ: 001 [16:00:16]line ФМ: 0000000000871767 [16:00:16]line ФД: 117441 [16:00:16]line ФПД: 50624425213015 [16:00:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160016&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117441&fm=50624425213015&tin=02508201610067®Number=0000000000091782&sum=15000 [16:00:16]OFD Sender: Processing packet 117441 [packets to send 76, broken 75] [16:00:16]ProducePacketName [16:00:16]name=ofd_packets/00117441 [16:00:16]OFD Sender: To server: pG, [16:00:16]CommunicateWithHost lk.salyk.kg:30040 [16:00:16]ConnectInit lk.salyk.kg [16:00:16]written 0, free lines is 4095 [16:00:16]Connected sock=10 [16:00: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 36 37 0F 01 00 00 AC 0D 07 01 B5 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 90 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CA 01 00 35 04 06 00 2E 0A EA E1 BC 57 33 41 5D F1 A6 27 61 21 [16:00: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 36 37 4F 00 00 00 D3 1D 47 00 C7 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 36 37 10 04 04 00 C1 CA 01 00 F4 03 04 00 4D 0F 1E 67 B6 04 01 00 00 66 4D 3B DF A6 5A C7 30 [16:00:16]CommunicateWithHost err = 0 [16:00:16]CheckOFDResponse [16:00:16]1017 (14) - 77093643461234 [16:00:16]1041 (16) - 0000000000871767 [16:00:16]1040 (4) - 117441 [16:00:16]1012 (4) - 27.10.2024 10:00 [16:00:16]1206 (1) - 0 [16:00:16]OFD Sender: Remove packet 117441 [16:00:16]ProducePacketName [16:00:16]name=ofd_packets/00117441 [16:00:16]NVStorageDeleteData [16:00:16]Write to MH i2c: 01 00 00 83 1D A0 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: 01 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: 01 07 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: 01 07 00 83 1D 00 00 00 00 00 AA 0C 5D [16:00:16]RasterBufferAndPrint [16:00:16]line [16:00:16]line [16:00:16]line [16:00:16]line [16:00:16]line [16:00:16]written 0, free lines is 3245 [16:00:17]MH_Cut [16:00:17]Write to MH i2c: D1 01 00 8A 1D 01 79 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: D1 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: D1 01 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: D1 01 00 8A 1D 00 78 [16:00:17]Write to MH i2c: 01 00 00 8B 1D A8 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]OFD Sender: No OFD packet to send [16:00:17]*** Cut start [16:00:17]*** Purtial cut [16:00:17]*** Stage 1: CUTSNS_PIN = 1 [16:00:18]Read from MH i2c: 01 [16:00:18]MH_I2C_Read... [16:00:18]*** Stop cut motor [16:00:18]*** Cut end [16:00:18]Read from MH i2c: 01 07 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 07 00 8B 1D 00 00 00 00 00 FF 0F BD [16:00:18]process_action close_receipt done [16:00:18]requested_data is exist [16:00:18]produce_requested_data [16:00:18]requested_item fm.sn is exist - process it [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 11 00 00 [16:00:18]Write to MH i2c: E2 08 00 8C 1D 80 11 00 00 00 00 00 00 23 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 17 00 [16:00:18]MH_I2C_Read... [16:00:18]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 36 37 90 00 7A [16:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:00:18]wFMCommunicate OK [16:00:18]requested_item fd.num is exist - process it [16:00:18]SAM_PROTO_GetFieldsCounters [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 13 00 00 [16:00:18]Write to MH i2c: E2 08 00 8D 1D 80 13 00 00 00 00 00 00 26 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 62 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 62 00 8D 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CA 01 00 0E 04 04 00 1E 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 A0 [16: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CA 01 00 0E 04 04 00 1E 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 [16:00:18]wFMCommunicate OK [16:00:18]SAM_PROTO_GetFieldsCounters done [16:00:18]requested_item shift.num is exist - process it [16:00:18]requested_item shift.opened is exist - process it [16:00:18]req_shift_opened [16:00:18]FM_GetShiftState [16:00:18]SAM_PROTO_GetShiftState [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 13 01 00 [16:00:18]Write to MH i2c: E2 08 00 8E 1D 80 13 01 00 00 00 00 00 28 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 0E 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 0E 00 8E 1D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 67 [16:00:18]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:00:18]wFMCommunicate OK [16:00:18]SAM_PROTO_GetShiftState done [16:00:18]FM_GetShiftState done [16:00:18]req_shift_opened done [16:00:18]requested_item shift.open_date is exist - process it [16:00:18]req_shift_open_date [16:00:18]req_shift_open_date done [16:00:18]produce_requested_data done [16:00:18]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117441,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:00:18]process_action_free close_receipt [16:00:18]json_value_free [16:00:18]json_value_free done [16:00:18]process_json_proto returns [16:00:18]Send response to host [16:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117441,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:00:18]free response buf [16:00:18]execute_script done [16:00:18]execute_script returns [16:00:18]free content buf [16:00:18]Sock 7.Close socket [16:00:18]Sock 7.Thread stoped [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:00]accept exits with 9 [16:09:00]New connection [16:09:00]New thread 3067456868 created [16:09:00]Thread 3067600228 joined [16:09:00]Waiting for new connection... [16:09:00] Sock 9.Parse request [16:09:00]Sock 9.Check first char [16:09:00]Sock 9.First char is OK [16:09:00]request: POST /json_proto HTTP/1.0 [16:09:00]Method: POST [16:09:00]URL: /json_proto [16:09:00]Method is POST - this is cgi request [16:09:00]url: /json_proto [16:09:00]query_string will be loaded in cgi processing [16:09:00]execute_cgi json_proto POST (null) [16:09:00]execute_cgi path=json_proto method=POST [16:09:00]POST find Content-Length [16:09:00]Host: 172.17.96.67:8080 [16:09:00]Content-Length: 677 [16:09:00]Content-Type: application/json [16:09:00] [16:09:00]POST finish read [16:09:00]Found Content-Length = 677 [16:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:09:00]execute_script... [16:09: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)245218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:09:00]POST & json_proto [16:09:00]process_json_proto [16:09:00]json parsed OK: [16:09:00]protocol is kg_v1.0 [16:09:00]action value=close_receipt [16:09:00]process_action close_receipt [16:09:00]cmd_close_receipt [16:09:00]MH_GetDate [16:09:00]Write to MH i2c: F0 00 00 8F 1D 9B [16:09:00]Write i2c OK [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: F0 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: F0 09 00 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: F0 09 00 8F 1D 00 9E 65 1E 67 2B 09 1E 67 E5 [16:09:00]GetLastDocTimeStamp 1730044816 [16:09:00]current date 1730045342 [16:09:00]FM_GetShiftState [16:09:00]SAM_PROTO_GetShiftState [16:09:00]wFMCommunicate request_size=4 [16:09:00]MH_SAM_APDU [16:09:00]CAPDU: 80 13 01 00 [16:09:00]Write to MH i2c: E2 08 00 90 1D 80 13 01 00 00 00 00 00 2A [16:09:00]Write i2c OK [16:09:00]MH_I2C_Read... [16:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:00]Read from MH i2c: E2 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 0E 00 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 0E 00 90 1D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 69 [16:09:00]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:09:00]wFMCommunicate OK [16:09:00]SAM_PROTO_GetShiftState done [16:09:00]FM_GetShiftState done [16:09:00]opened in 1729987372 [16:09:00]opened+sec_in_day 1730073772 [16:09:00]quantity*price = 50041 [16:09:00]sum+1 = 50042 [16:09: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 142 27.10.2024 16:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117442 ФПД: 114807831828255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160902&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117442&fm=114807831828255&tin=02508201610067®Number=0000000000091782&sum=50000 [16:09:01]StoreToDocumentArchive [16:09:01]shift 542 fd 117442 [16:09:01]save to /storage/0542/doc_00117442 [16:09:01]save last doc name /storage/0542/doc_00117442 to /storage/kkm_last_doc_name [16:09:01]save OK [16:09:01]Clear old archive folders... [16:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:01]tlvbuf is 016E63C0 [16:09:01]SAM_PROTO_ClearQueue [16:09:01]wFMCommunicate request_size=4 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 09 00 00 [16:09:01]Write to MH i2c: E2 08 00 9D 1D 80 09 00 00 00 00 00 00 2C [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 9D 1D 00 90 00 2E [16:09:01]RAPDU: 90 00 [16:09:01]wFMCommunicate OK [16:09:01]SAM_PROTO_ClearQueue done [16:09:01]KKMCreateOFDPacket [16:09:01]OFDProtocolAddRootSTLVToBuf [16:09:01]FM_MakeSignedData [16:09:01]FM_MakeSignedData [16:09:01]SAM_PROTO_SignData [16:09:01]wFMCommunicate request_size=4 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 0D 01 02 [16:09:01]Write to MH i2c: E2 08 00 9E 1D 80 0D 01 02 00 00 00 00 34 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 9E 1D 00 90 00 2F [16:09:01]RAPDU: 90 00 [16:09:01]wFMCommunicate OK [16:09:01]wFMCommunicate request_size=255 [16:09:01]MH_SAM_APDU [16:09: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9E 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CA 01 00 35 04 06 00 68 [16:09:01]Write to MH i2c: E2 02 01 9F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9E 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CA 01 00 35 04 06 00 68 00 00 F1 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 9F 1D 00 90 00 30 [16:09:01]RAPDU: 90 00 [16:09:01]wFMCommunicate OK [16:09:01]wFMCommunicate request_size=10 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 0D 02 02 05 6A C8 08 97 1F [16:09:01]Write to MH i2c: E2 0D 00 A0 1D 80 0D 02 02 05 00 6A C8 08 97 1F 00 00 31 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 A0 1D 00 90 00 31 [16:09:01]RAPDU: 90 00 [16:09:01]wFMCommunicate OK [16:09:01]wFMCommunicate request_size=4 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 0D 03 02 [16:09:01]Write to MH i2c: E2 08 00 A1 1D 80 0D 03 02 00 00 00 00 39 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 0B 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 0B 00 A1 1D 00 40 EC 75 8E DC BB AC EC 90 00 98 [16:09:01]RAPDU: 40 EC 75 8E DC BB AC EC 90 00 [16:09:01]wFMCommunicate OK [16:09:01]SAM_PROTO_SignData done [16:09:01]FM_MakeSignedData done [16:09:01]CreateOFDProtocolMessage [16:09:01]wFMCommunicate request_size=4 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 11 00 00 [16:09:01]Write to MH i2c: E2 08 00 A2 1D 80 11 00 00 00 00 00 00 39 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:02]Read from MH i2c: E2 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 17 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 17 00 A2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 90 [16:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:09:02]wFMCommunicate OK [16:09:02]CreateOFDProtocolMessage done [16:09:02]OFDSenderStorePacket 117442 [16:09:02]StoreOFDPacket docnum=117442 [16:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 BD 98 07 01 90 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 8E 00 00 00 F4 03 04 00 9E 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CA 01 00 35 04 06 00 68 6A C8 08 97 1F 40 EC 75 8E DC BB AC EC [16:09:02]CheckFolder [16:09:02]dirname=/storage/ofd_packets [16:09:02]CheckFolder done [16:09:02]ProducePacketName [16:09:02]name=ofd_packets/00117442 [16:09:02]NVStorageSaveData ofd_packets/00117442 [16:09:02]File name is /storage/ofd_packets/00117442 [16:09:02]Write 301 bytes [16:09:02]NVStorageSaveData done [16:09:02]OFDSenderStorePacket done [16:09:02]KKMCreateOFDPacket done [16:09:02]NVStorageSaveData kkm_last_timestamp [16:09:02]File name is /storage/kkm_last_timestamp [16:09:02]Write 4 bytes [16:09:02]NVStorageSaveData done [16:09:02]ExternCall_PrintAddStr [16:09:02]wPrintStart [16:09:02]Write to MH i2c: 01 00 00 A3 1D C0 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 07 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 FF 0F D5 [16:09:02]RasterBufferAndPrint [16:09:02]line Счет N : (1)245218 [16:09:02]line ИНН: 02508201610067 [16:09:02]line Контрольно-Кассовый Чек [16:09:02]line ПРОДАЖА [16:09:02]line ТРК (МРК, ГНК) : 21 [16:09:02]line Товар: 2710124130 [16:09:02]line Аи-92-К-2 [16:09:02]line 7.480 * 66.90 [16:09:02]line = 500.41 [16:09:02]line НДС 12% НСП 1% [16:09:02]line > о реализуемом товаре [16:09:02]line ОКРУГЛЕНИЕ: -0.41 [16:09:02]line ИТОГО: 500.00 [16:09:02]line Внесено: 500.00 [16:09:02]line СДАЧА: 0.00 [16:09:02]line НСП 1% : 4.43 [16:09:02]line НДС 12% : 53.14 [16:09:02]line Наличными: 500.00 [16:09:02]line Безнал.: 0.00 [16:09:02]line Место: АЗС № 173 "Партнер Нефть" [16:09:02]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:09:02]line СНО: Общий режим [16:09:02]line Чек 142 27.10.2024 16:09 [16:09:02]line Смена: 542 ФФД: 1.0 [16:09:02]line ЗНМ: 0300000115 [16:09:02]line РНМ: 0000000000091782 [16:09:02]line Версия ККМ: 001 [16:09:02]line ФМ: 0000000000871767 [16:09:02]line ФД: 117442 [16:09:02]line ФПД: 114807831828255 [16:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160902&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117442&fm=114807831828255&tin=02508201610067®Number=0000000000091782&sum=50000 [16:09:02]OFD Sender: Processing packet 117442 [packets to send 76, broken 75] [16:09:02]ProducePacketName [16:09:02]name=ofd_packets/00117442 [16:09:02]OFD Sender: To server: pG, [16:09:02]CommunicateWithHost lk.salyk.kg:30040 [16:09:02]ConnectInit lk.salyk.kg [16:09:02]written 0, free lines is 4095 [16:09:02]Connected sock=10 [16:09: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 36 37 0F 01 00 00 BD 98 07 01 90 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 8E 00 00 00 F4 03 04 00 9E 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CA 01 00 35 04 06 00 68 6A C8 08 97 1F 40 EC 75 8E DC BB AC EC [16:09: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 36 37 4F 00 00 00 C5 02 47 00 D6 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 36 37 10 04 04 00 C2 CA 01 00 F4 03 04 00 5B 11 1E 67 B6 04 01 00 00 A6 9C B0 87 D0 C6 7B FF [16:09:02]CommunicateWithHost err = 0 [16:09:02]CheckOFDResponse [16:09:02]1017 (14) - 77093643461234 [16:09:02]1041 (16) - 0000000000871767 [16:09:02]1040 (4) - 117442 [16:09:02]1012 (4) - 27.10.2024 10:09 [16:09:02]1206 (1) - 0 [16:09:02]OFD Sender: Remove packet 117442 [16:09:02]ProducePacketName [16:09:02]name=ofd_packets/00117442 [16:09:02]NVStorageDeleteData [16:09:02]Write to MH i2c: 01 00 00 CD 1D EA [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 07 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 07 00 CD 1D 00 00 00 00 00 A6 0C A3 [16:09:02]RasterBufferAndPrint [16:09:02]line [16:09:02]line [16:09:02]line [16:09:02]line [16:09:02]line [16:09:02]written 0, free lines is 3242 [16:09:02]MH_Cut [16:09:02]Write to MH i2c: D1 01 00 D4 1D 01 C3 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: D1 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: D1 01 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: D1 01 00 D4 1D 00 C2 [16:09:02]Write to MH i2c: 01 00 00 D5 1D F2 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:03]OFD Sender: No OFD packet to send [16:09:03]*** Cut start [16:09:03]*** Purtial cut [16:09:03]*** Stage 1: CUTSNS_PIN = 1 [16:09:03]Read from MH i2c: 01 [16:09:03]MH_I2C_Read... [16:09:03]*** Stop cut motor [16:09:03]*** Cut end [16:09:03]Read from MH i2c: 01 07 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: 01 07 00 D5 1D 00 00 00 00 00 FF 0F 07 [16:09:03]process_action close_receipt done [16:09:03]requested_data is exist [16:09:03]produce_requested_data [16:09:03]requested_item fm.sn is exist - process it [16:09:03]wFMCommunicate request_size=4 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 11 00 00 [16:09:03]Write to MH i2c: E2 08 00 D6 1D 80 11 00 00 00 00 00 00 6D [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:04]Read from MH i2c: E2 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 17 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 17 00 D6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C4 [16:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:09:04]wFMCommunicate OK [16:09:04]requested_item fd.num is exist - process it [16:09:04]SAM_PROTO_GetFieldsCounters [16:09:04]wFMCommunicate request_size=4 [16:09:04]MH_SAM_APDU [16:09:04]CAPDU: 80 13 00 00 [16:09:04]Write to MH i2c: E2 08 00 D7 1D 80 13 00 00 00 00 00 00 70 [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:04]Read from MH i2c: E2 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 62 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 62 00 D7 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C2 CA 01 00 0E 04 04 00 1E 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 EE [16:09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C2 CA 01 00 0E 04 04 00 1E 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 [16:09:04]wFMCommunicate OK [16:09:04]SAM_PROTO_GetFieldsCounters done [16:09:04]requested_item shift.num is exist - process it [16:09:04]requested_item shift.opened is exist - process it [16:09:04]req_shift_opened [16:09:04]FM_GetShiftState [16:09:04]SAM_PROTO_GetShiftState [16:09:04]wFMCommunicate request_size=4 [16:09:04]MH_SAM_APDU [16:09:04]CAPDU: 80 13 01 00 [16:09:04]Write to MH i2c: E2 08 00 D8 1D 80 13 01 00 00 00 00 00 72 [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:04]Read from MH i2c: E2 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 0E 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 0E 00 D8 1D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B1 [16:09:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:09:04]wFMCommunicate OK [16:09:04]SAM_PROTO_GetShiftState done [16:09:04]FM_GetShiftState done [16:09:04]req_shift_opened done [16:09:04]requested_item shift.open_date is exist - process it [16:09:04]req_shift_open_date [16:09:04]req_shift_open_date done [16:09:04]produce_requested_data done [16:09:04]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117442,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:09:04]process_action_free close_receipt [16:09:04]json_value_free [16:09:04]json_value_free done [16:09:04]process_json_proto returns [16:09:04]Send response to host [16:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117442,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:09:04]free response buf [16:09:04]execute_script done [16:09:04]execute_script returns [16:09:04]free content buf [16:09:04]Sock 9.Close socket [16:09:04]Sock 9.Thread stoped [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:35]accept exits with 7 [16:25:35]New connection [16:25:35]New thread 3067600228 created [16:25:35]Thread 3067456868 joined [16:25:35]Waiting for new connection... [16:25:35] Sock 7.Parse request [16:25:35]Sock 7.Check first char [16:25:35]Sock 7.First char is OK [16:25:35]request: POST /json_proto HTTP/1.0 [16:25:35]Method: POST [16:25:35]URL: /json_proto [16:25:35]Method is POST - this is cgi request [16:25:35]url: /json_proto [16:25:35]query_string will be loaded in cgi processing [16:25:35]execute_cgi json_proto POST (null) [16:25:35]execute_cgi path=json_proto method=POST [16:25:35]POST find Content-Length [16:25:35]Host: 172.17.96.67:8080 [16:25:35]Content-Length: 677 [16:25:35]Content-Type: application/json [16:25:35] [16:25:35]POST finish read [16:25:35]Found Content-Length = 677 [16:25:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:25:35]execute_script... [16:25: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)245219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:25:35]POST & json_proto [16:25:35]process_json_proto [16:25:35]json parsed OK: [16:25:35]protocol is kg_v1.0 [16:25:35]action value=close_receipt [16:25:35]process_action close_receipt [16:25:35]cmd_close_receipt [16:25:35]MH_GetDate [16:25:35]Write to MH i2c: F0 00 00 D9 1D E5 [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: F0 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: F0 09 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: F0 09 00 D9 1D 00 81 69 1E 67 2B 09 1E 67 16 [16:25:35]GetLastDocTimeStamp 1730045342 [16:25:35]current date 1730046337 [16:25:35]FM_GetShiftState [16:25:35]SAM_PROTO_GetShiftState [16:25:35]wFMCommunicate request_size=4 [16:25:35]MH_SAM_APDU [16:25:35]CAPDU: 80 13 01 00 [16:25:35]Write to MH i2c: E2 08 00 DA 1D 80 13 01 00 00 00 00 00 74 [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:35]Read from MH i2c: E2 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 0E 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 0E 00 DA 1D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B3 [16:25:35]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:25:35]wFMCommunicate OK [16:25:35]SAM_PROTO_GetShiftState done [16:25:35]FM_GetShiftState done [16:25:35]opened in 1729987372 [16:25:35]opened+sec_in_day 1730073772 [16:25:35]quantity*price = 40006 [16:25:35]sum+1 = 40007 [16:25:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 143 27.10.2024 16:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117443 ФПД: 160783008001679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162537&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117443&fm=160783008001679&tin=02508201610067®Number=0000000000091782&sum=40000 [16:25:36]StoreToDocumentArchive [16:25:36]shift 542 fd 117443 [16:25:36]save to /storage/0542/doc_00117443 [16:25:36]save last doc name /storage/0542/doc_00117443 to /storage/kkm_last_doc_name [16:25:36]save OK [16:25:36]Clear old archive folders... [16:25:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:36]tlvbuf is B6F5F7A0 [16:25:36]SAM_PROTO_ClearQueue [16:25:36]wFMCommunicate request_size=4 [16:25:36]MH_SAM_APDU [16:25:36]CAPDU: 80 09 00 00 [16:25:36]Write to MH i2c: E2 08 00 E7 1D 80 09 00 00 00 00 00 00 76 [16:25:36]Write i2c OK [16:25:36]MH_I2C_Read... [16:25:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:36]Read from MH i2c: E2 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: E2 03 00 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: E2 03 00 E7 1D 00 90 00 78 [16:25:36]RAPDU: 90 00 [16:25:36]wFMCommunicate OK [16:25:36]SAM_PROTO_ClearQueue done [16:25:36]KKMCreateOFDPacket [16:25:36]OFDProtocolAddRootSTLVToBuf [16:25:36]FM_MakeSignedData [16:25:36]FM_MakeSignedData [16:25:36]SAM_PROTO_SignData [16:25:36]wFMCommunicate request_size=4 [16:25:36]MH_SAM_APDU [16:25:36]CAPDU: 80 0D 01 02 [16:25:36]Write to MH i2c: E2 08 00 E8 1D 80 0D 01 02 00 00 00 00 7E [16:25:36]Write i2c OK [16:25:36]MH_I2C_Read... [16:25:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:36]Read from MH i2c: E2 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: E2 03 00 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: E2 03 00 E8 1D 00 90 00 79 [16:25:36]RAPDU: 90 00 [16:25:36]wFMCommunicate OK [16:25:36]wFMCommunicate request_size=255 [16:25:36]MH_SAM_APDU [16:25: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 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 8F 00 00 00 F4 03 04 00 81 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CA 01 00 35 04 06 00 92 [16:25:36]Write to MH i2c: E2 02 01 E9 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 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 8F 00 00 00 F4 03 04 00 81 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CA 01 00 35 04 06 00 92 00 00 1D [16:25:36]Write i2c OK [16:25:36]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:37]Read from MH i2c: E2 03 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 03 00 E9 1D 00 90 00 7A [16:25:37]RAPDU: 90 00 [16:25:37]wFMCommunicate OK [16:25:37]wFMCommunicate request_size=10 [16:25:37]MH_SAM_APDU [16:25:37]CAPDU: 80 0D 02 02 05 3B 36 13 EE 8F [16:25:37]Write to MH i2c: E2 0D 00 EA 1D 80 0D 02 02 05 00 3B 36 13 EE 8F 00 00 8C [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 03 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 03 00 EA 1D 00 90 00 7B [16:25:37]RAPDU: 90 00 [16:25:37]wFMCommunicate OK [16:25:37]wFMCommunicate request_size=4 [16:25:37]MH_SAM_APDU [16:25:37]CAPDU: 80 0D 03 02 [16:25:37]Write to MH i2c: E2 08 00 EB 1D 80 0D 03 02 00 00 00 00 83 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 0B 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 0B 00 EB 1D 00 1E 1E A4 AD 90 0F DB 6E 90 00 F9 [16:25:37]RAPDU: 1E 1E A4 AD 90 0F DB 6E 90 00 [16:25:37]wFMCommunicate OK [16:25:37]SAM_PROTO_SignData done [16:25:37]FM_MakeSignedData done [16:25:37]CreateOFDProtocolMessage [16:25:37]wFMCommunicate request_size=4 [16:25:37]MH_SAM_APDU [16:25:37]CAPDU: 80 11 00 00 [16:25:37]Write to MH i2c: E2 08 00 EC 1D 80 11 00 00 00 00 00 00 83 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 17 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 17 00 EC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DA [16:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:25:37]wFMCommunicate OK [16:25:37]CreateOFDProtocolMessage done [16:25:37]OFDSenderStorePacket 117443 [16:25:37]StoreOFDPacket docnum=117443 [16:25:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5B 1B 07 01 01 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 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 8F 00 00 00 F4 03 04 00 81 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CA 01 00 35 04 06 00 92 3B 36 13 EE 8F 1E 1E A4 AD 90 0F DB 6E [16:25:37]CheckFolder [16:25:37]dirname=/storage/ofd_packets [16:25:37]CheckFolder done [16:25:37]ProducePacketName [16:25:37]name=ofd_packets/00117443 [16:25:37]NVStorageSaveData ofd_packets/00117443 [16:25:37]File name is /storage/ofd_packets/00117443 [16:25:37]Write 301 bytes [16:25:37]NVStorageSaveData done [16:25:37]OFDSenderStorePacket done [16:25:37]KKMCreateOFDPacket done [16:25:37]NVStorageSaveData kkm_last_timestamp [16:25:37]File name is /storage/kkm_last_timestamp [16:25:37]Write 4 bytes [16:25:37]NVStorageSaveData done [16:25:37]ExternCall_PrintAddStr [16:25:37]wPrintStart [16:25:37]Write to MH i2c: 01 00 00 ED 1D 0A [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 ED 1D 00 00 00 00 00 FF 0F 1F [16:25:37]RasterBufferAndPrint [16:25:37]line Счет N : (1)245219 [16:25:37]line ИНН: 02508201610067 [16:25:37]line Контрольно-Кассовый Чек [16:25:37]line ПРОДАЖА [16:25:37]line ТРК (МРК, ГНК) : 21 [16:25:37]line Товар: 2710124130 [16:25:37]line Аи-92-К-2 [16:25:37]line 5.980 * 66.90 [16:25:37]line = 400.06 [16:25:37]line НДС 12% НСП 1% [16:25:37]line > о реализуемом товаре [16:25:37]line ОКРУГЛЕНИЕ: -0.06 [16:25:37]line ИТОГО: 400.00 [16:25:37]line Внесено: 400.00 [16:25:37]line СДАЧА: 0.00 [16:25:37]line НСП 1% : 3.54 [16:25:37]line НДС 12% : 42.48 [16:25:37]line Наличными: 400.00 [16:25:37]line Безнал.: 0.00 [16:25:37]line Место: АЗС № 173 "Партнер Нефть" [16:25:37]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:25:37]line СНО: Общий режим [16:25:37]line Чек 143 27.10.2024 16:25 [16:25:37]line Смена: 542 ФФД: 1.0 [16:25:37]line ЗНМ: 0300000115 [16:25:37]line РНМ: 0000000000091782 [16:25:37]line Версия ККМ: 001 [16:25:37]line ФМ: 0000000000871767 [16:25:37]line ФД: 117443 [16:25:37]line ФПД: 160783008001679 [16:25:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162537&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117443&fm=160783008001679&tin=02508201610067®Number=0000000000091782&sum=40000 [16:25:37]OFD Sender: Processing packet 117443 [packets to send 76, broken 75] [16:25:37]ProducePacketName [16:25:37]name=ofd_packets/00117443 [16:25:37]OFD Sender: To server: pG, [16:25:37]CommunicateWithHost lk.salyk.kg:30040 [16:25:37]ConnectInit lk.salyk.kg [16:25:37]written 0, free lines is 4095 [16:25:38]Write to MH i2c: 01 00 00 17 1E 35 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: 01 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: 01 07 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: 01 07 00 17 1E 00 00 00 00 00 B7 0C FF [16:25:38]RasterBufferAndPrint [16:25:38]line [16:25:38]line [16:25:38]line [16:25:38]line [16:25:38]line [16:25:38]written 0, free lines is 3259 [16:25:38]MH_Cut [16:25:38]Write to MH i2c: D1 01 00 1E 1E 01 0E [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: D1 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: D1 01 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: D1 01 00 1E 1E 00 0D [16:25:38]Write to MH i2c: 01 00 00 1F 1E 3D [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** Cut start [16:25:38]*** Purtial cut [16:25:38]*** Stage 1: CUTSNS_PIN = 1 [16:25:39]Read from MH i2c: 01 [16:25:39]MH_I2C_Read... [16:25:39]*** Stop cut motor [16:25:39]*** Cut end [16:25:39]Read from MH i2c: 01 07 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 1F 1E 00 00 00 00 00 FF 0F 52 [16:25:39]process_action close_receipt done [16:25:39]requested_data is exist [16:25:39]produce_requested_data [16:25:39]requested_item fm.sn is exist - process it [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 11 00 00 [16:25:39]Write to MH i2c: E2 08 00 20 1E 80 11 00 00 00 00 00 00 B8 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 17 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 17 00 20 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0F [16:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:25:39]wFMCommunicate OK [16:25:39]requested_item fd.num is exist - process it [16:25:39]SAM_PROTO_GetFieldsCounters [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 13 00 00 [16:25:39]Write to MH i2c: E2 08 00 21 1E 80 13 00 00 00 00 00 00 BB [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 62 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 62 00 21 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CA 01 00 0E 04 04 00 1E 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 3D [16:25: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CA 01 00 0E 04 04 00 1E 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 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_GetFieldsCounters done [16:25:39]requested_item shift.num is exist - process it [16:25:39]requested_item shift.opened is exist - process it [16:25:39]req_shift_opened [16:25:39]FM_GetShiftState [16:25:39]SAM_PROTO_GetShiftState [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 13 01 00 [16:25:39]Write to MH i2c: E2 08 00 22 1E 80 13 01 00 00 00 00 00 BD [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 22 1E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FC [16:25:39]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_GetShiftState done [16:25:39]FM_GetShiftState done [16:25:39]req_shift_opened done [16:25:39]requested_item shift.open_date is exist - process it [16:25:39]req_shift_open_date [16:25:39]req_shift_open_date done [16:25:39]produce_requested_data done [16:25:39]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117443,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:25:39]process_action_free close_receipt [16:25:39]json_value_free [16:25:39]json_value_free done [16:25:39]process_json_proto returns [16:25:39]Send response to host [16:25:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117443,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:25:39]free response buf [16:25:39]execute_script done [16:25:39]execute_script returns [16:25:39]free content buf [16:25:39]Sock 7.Close socket [16:25:39]Sock 7.Thread stoped [16:26:58]accept exits with 9 [16:26:58]New connection [16:26:58]New thread 3067456868 created [16:26:58]Thread 3067600228 joined [16:26:58]Waiting for new connection... [16:26:58] Sock 9.Parse request [16:26:58]Sock 9.Check first char [16:26:58]Sock 9.First char is OK [16:26:58]request: POST /json_proto HTTP/1.0 [16:26:58]Method: POST [16:26:58]URL: /json_proto [16:26:58]Method is POST - this is cgi request [16:26:58]url: /json_proto [16:26:58]query_string will be loaded in cgi processing [16:26:58]execute_cgi json_proto POST (null) [16:26:58]execute_cgi path=json_proto method=POST [16:26:58]POST find Content-Length [16:26:58]Host: 172.17.96.67:8080 [16:26:58]Content-Length: 766 [16:26:58]Content-Type: application/json [16:26:58] [16:26:58]POST finish read [16:26:58]Found Content-Length = 766 [16:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:26:58]execute_script... [16:26: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)245220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:26:58]POST & json_proto [16:26:58]process_json_proto [16:26:58]json parsed OK: [16:26:58]protocol is kg_v1.0 [16:26:58]action value=close_receipt [16:26:58]process_action close_receipt [16:26:58]cmd_close_receipt [16:26:58]MH_GetDate [16:26:58]Write to MH i2c: F0 00 00 23 1E 30 [16:26:58]Write i2c OK [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: F0 [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: F0 09 00 [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: F0 09 00 23 1E 00 D4 69 1E 67 2B 09 1E 67 B4 [16:26:58]GetLastDocTimeStamp 1730046337 [16:26:58]current date 1730046420 [16:26:58]FM_GetShiftState [16:26:58]SAM_PROTO_GetShiftState [16:26:58]wFMCommunicate request_size=4 [16:26:58]MH_SAM_APDU [16:26:58]CAPDU: 80 13 01 00 [16:26:58]Write to MH i2c: E2 08 00 24 1E 80 13 01 00 00 00 00 00 BF [16:26:58]Write i2c OK [16:26:58]MH_I2C_Read... [16:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:58]Read from MH i2c: E2 [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: E2 0E 00 [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: E2 0E 00 24 1E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FE [16:26:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:26:58]wFMCommunicate OK [16:26:58]SAM_PROTO_GetShiftState done [16:26:58]FM_GetShiftState done [16:26:58]opened in 1729987372 [16:26:58]opened+sec_in_day 1730073772 [16:26:58]quantity*price = 20003 [16:26:58]sum+1 = 20004 [16:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 144 27.10.2024 16:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117444 ФПД: 165606380408974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162700&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117444&fm=165606380408974&tin=02508201610067®Number=0000000000091782&sum=20003 [16:26:59]StoreToDocumentArchive [16:26:59]shift 542 fd 117444 [16:26:59]save to /storage/0542/doc_00117444 [16:26:59]save last doc name /storage/0542/doc_00117444 to /storage/kkm_last_doc_name [16:26:59]save OK [16:26:59]Clear old archive folders... [16:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:59]tlvbuf is 017738D0 [16:26:59]SAM_PROTO_ClearQueue [16:26:59]wFMCommunicate request_size=4 [16:26:59]MH_SAM_APDU [16:26:59]CAPDU: 80 09 00 00 [16:26:59]Write to MH i2c: E2 08 00 31 1E 80 09 00 00 00 00 00 00 C1 [16:26:59]Write i2c OK [16:26:59]MH_I2C_Read... [16:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:59]Read from MH i2c: E2 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 31 1E 00 90 00 C3 [16:26:59]RAPDU: 90 00 [16:26:59]wFMCommunicate OK [16:26:59]SAM_PROTO_ClearQueue done [16:26:59]KKMCreateOFDPacket [16:26:59]OFDProtocolAddRootSTLVToBuf [16:26:59]FM_MakeSignedData [16:26:59]FM_MakeSignedData [16:26:59]SAM_PROTO_SignData [16:26:59]wFMCommunicate request_size=4 [16:26:59]MH_SAM_APDU [16:26:59]CAPDU: 80 0D 01 02 [16:26:59]Write to MH i2c: E2 08 00 32 1E 80 0D 01 02 00 00 00 00 C9 [16:26:59]Write i2c OK [16:26:59]MH_I2C_Read... [16:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:59]Read from MH i2c: E2 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 32 1E 00 90 00 C4 [16:26:59]RAPDU: 90 00 [16:26:59]wFMCommunicate OK [16:26:59]wFMCommunicate request_size=255 [16:26:59]MH_SAM_APDU [16:26: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 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 90 00 00 00 F4 03 04 00 D4 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CA 01 00 35 04 06 00 96 [16:26:59]Write to MH i2c: E2 02 01 33 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 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 90 00 00 00 F4 03 04 00 D4 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CA 01 00 35 04 06 00 96 00 00 BA [16:26:59]Write i2c OK [16:26:59]MH_I2C_Read... [16:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:59]Read from MH i2c: E2 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 33 1E 00 90 00 C5 [16:26:59]RAPDU: 90 00 [16:26:59]wFMCommunicate OK [16:26:59]wFMCommunicate request_size=10 [16:26:59]MH_SAM_APDU [16:26:59]CAPDU: 80 0D 02 02 05 9E 3D 7A 10 8E [16:26:59]Write to MH i2c: E2 0D 00 34 1E 80 0D 02 02 05 00 9E 3D 7A 10 8E 00 00 C9 [16:26:59]Write i2c OK [16:26:59]MH_I2C_Read... [16:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:59]Read from MH i2c: E2 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 34 1E 00 90 00 C6 [16:26:59]RAPDU: 90 00 [16:26:59]wFMCommunicate OK [16:26:59]wFMCommunicate request_size=4 [16:26:59]MH_SAM_APDU [16:26:59]CAPDU: 80 0D 03 02 [16:26:59]Write to MH i2c: E2 08 00 35 1E 80 0D 03 02 00 00 00 00 CE [16:26:59]Write i2c OK [16:26:59]MH_I2C_Read... [16:26:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:59]Read from MH i2c: E2 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 0B 00 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 0B 00 35 1E 00 1C 0B 89 E6 FE D0 21 0D 90 00 61 [16:26:59]RAPDU: 1C 0B 89 E6 FE D0 21 0D 90 00 [16:26:59]wFMCommunicate OK [16:26:59]SAM_PROTO_SignData done [16:26:59]FM_MakeSignedData done [16:26:59]CreateOFDProtocolMessage [16:26:59]wFMCommunicate request_size=4 [16:26:59]MH_SAM_APDU [16:26:59]CAPDU: 80 11 00 00 [16:26:59]Write to MH i2c: E2 08 00 36 1E 80 11 00 00 00 00 00 00 CE [16:26:59]Write i2c OK [16:26:59]MH_I2C_Read... [16:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:00]Read from MH i2c: E2 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 17 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 17 00 36 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 25 [16:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:27:00]wFMCommunicate OK [16:27:00]CreateOFDProtocolMessage done [16:27:00]OFDSenderStorePacket 117444 [16:27:00]StoreOFDPacket docnum=117444 [16:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 34 B7 07 01 03 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 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 90 00 00 00 F4 03 04 00 D4 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CA 01 00 35 04 06 00 96 9E 3D 7A 10 8E 1C 0B 89 E6 FE D0 21 0D [16:27:00]CheckFolder [16:27:00]dirname=/storage/ofd_packets [16:27:00]CheckFolder done [16:27:00]ProducePacketName [16:27:00]name=ofd_packets/00117444 [16:27:00]NVStorageSaveData ofd_packets/00117444 [16:27:00]File name is /storage/ofd_packets/00117444 [16:27:00]Write 301 bytes [16:27:00]NVStorageSaveData done [16:27:00]OFDSenderStorePacket done [16:27:00]KKMCreateOFDPacket done [16:27:00]NVStorageSaveData kkm_last_timestamp [16:27:00]File name is /storage/kkm_last_timestamp [16:27:00]Write 4 bytes [16:27:00]NVStorageSaveData done [16:27:00]ExternCall_PrintAddStr [16:27:00]wPrintStart [16:27:00]Write to MH i2c: 01 00 00 37 1E 55 [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 07 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 07 00 37 1E 00 00 00 00 00 FF 0F 6A [16:27:00]RasterBufferAndPrint [16:27:00]line Счет N : (1)245220 [16:27:00]line ИНН: 02508201610067 [16:27:00]line Контрольно-Кассовый Чек [16:27:00]line ПРОДАЖА [16:27:00]line ТРК (МРК, ГНК) : 21 [16:27:00]line Товар: 2710124130 [16:27:00]line Аи-92-К-2 [16:27:00]line 2.990 * 66.90 [16:27:00]line = 200.03 [16:27:00]line НДС 12% НСП 1% [16:27:00]line > о реализуемом товаре [16:27:00]line ИТОГО: 200.03 [16:27:00]line НСП 1% : 1.77 [16:27:00]line НДС 12% : 21.24 [16:27:00]line Наличными: 0.00 [16:27:00]line Безнал.: 200.03 [16:27:00]line Место: АЗС № 173 "Партнер Нефть" [16:27:00]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:27:00]line СНО: Общий режим [16:27:00]line Чек 144 27.10.2024 16:27 [16:27:00]line Смена: 542 ФФД: 1.0 [16:27:00]line ЗНМ: 0300000115 [16:27:00]line РНМ: 0000000000091782 [16:27:00]line Версия ККМ: 001 [16:27:00]line Платежная система: Mbank [16:27:00]line ФМ: 0000000000871767 [16:27:00]line ФД: 117444 [16:27:00]line ФПД: 165606380408974 [16:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162700&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117444&fm=165606380408974&tin=02508201610067®Number=0000000000091782&sum=20003 [16:27:00]written 0, free lines is 4095 [16:27:00]Write to MH i2c: 01 00 00 5F 1E 7D [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 07 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 07 00 5F 1E 00 00 00 00 00 DC 0C 6C [16:27:00]RasterBufferAndPrint [16:27:00]line [16:27:00]line [16:27:00]line [16:27:00]line [16:27:00]line [16:27:00]written 0, free lines is 3296 [16:27:00]MH_Cut [16:27:00]Write to MH i2c: D1 01 00 66 1E 01 56 [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: D1 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: D1 01 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: D1 01 00 66 1E 00 55 [16:27:00]Write to MH i2c: 01 00 00 67 1E 85 [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:01]*** Cut start [16:27:01]*** Purtial cut [16:27:01]*** Stage 1: CUTSNS_PIN = 1 [16:27:01]Read from MH i2c: 01 [16:27:01]MH_I2C_Read... [16:27:01]*** Stop cut motor [16:27:01]*** Cut end [16:27:01]Read from MH i2c: 01 07 00 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: 01 07 00 67 1E 00 00 00 00 00 FF 0F 9A [16:27:01]process_action close_receipt done [16:27:01]requested_data is exist [16:27:01]produce_requested_data [16:27:01]requested_item fm.sn is exist - process it [16:27:01]wFMCommunicate request_size=4 [16:27:01]MH_SAM_APDU [16:27:01]CAPDU: 80 11 00 00 [16:27:01]Write to MH i2c: E2 08 00 68 1E 80 11 00 00 00 00 00 00 00 [16:27:01]Write i2c OK [16:27:01]MH_I2C_Read... [16:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:01]Read from MH i2c: E2 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 17 00 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 17 00 68 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 57 [16:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:27:01]wFMCommunicate OK [16:27:01]requested_item fd.num is exist - process it [16:27:01]SAM_PROTO_GetFieldsCounters [16:27:01]wFMCommunicate request_size=4 [16:27:01]MH_SAM_APDU [16:27:01]CAPDU: 80 13 00 00 [16:27:01]Write to MH i2c: E2 08 00 69 1E 80 13 00 00 00 00 00 00 03 [16:27:01]Write i2c OK [16:27:01]MH_I2C_Read... [16:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:01]Read from MH i2c: E2 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 62 00 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 62 00 69 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C4 CA 01 00 0E 04 04 00 1E 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 89 [16:27: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C4 CA 01 00 0E 04 04 00 1E 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 [16:27:01]wFMCommunicate OK [16:27:01]SAM_PROTO_GetFieldsCounters done [16:27:01]requested_item shift.num is exist - process it [16:27:01]requested_item shift.opened is exist - process it [16:27:01]req_shift_opened [16:27:01]FM_GetShiftState [16:27:01]SAM_PROTO_GetShiftState [16:27:01]wFMCommunicate request_size=4 [16:27:01]MH_SAM_APDU [16:27:01]CAPDU: 80 13 01 00 [16:27:01]Write to MH i2c: E2 08 00 6A 1E 80 13 01 00 00 00 00 00 05 [16:27:01]Write i2c OK [16:27:01]MH_I2C_Read... [16:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:01]Read from MH i2c: E2 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 0E 00 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 0E 00 6A 1E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 44 [16:27:01]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:27:01]wFMCommunicate OK [16:27:01]SAM_PROTO_GetShiftState done [16:27:01]FM_GetShiftState done [16:27:01]req_shift_opened done [16:27:01]requested_item shift.open_date is exist - process it [16:27:01]req_shift_open_date [16:27:01]req_shift_open_date done [16:27:01]produce_requested_data done [16:27:01]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117444,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:27:01]process_action_free close_receipt [16:27:01]json_value_free [16:27:01]json_value_free done [16:27:01]process_json_proto returns [16:27:01]Send response to host [16:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117444,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:27:01]free response buf [16:27:01]execute_script done [16:27:01]execute_script returns [16:27:01]free content buf [16:27:01]Sock 9.Close socket [16:27:01]Sock 9.Thread stoped [16:27:51]ConnectInit Can't connect to host [16:27:51]CommunicateWithHost connect error [16:27:51]CommunicateWithHost err = -1 [16:27:51]OFD Sender: Server communicate error [16:27:52]OFD Sender: Processing packet 117443 [packets to send 77, broken 75] [16:27:52]ProducePacketName [16:27:52]name=ofd_packets/00117443 [16:27:52]OFD Sender: To server: pG, [16:27:52]CommunicateWithHost lk.salyk.kg:30040 [16:27:52]ConnectInit lk.salyk.kg [16:27:52]Connected sock=9 [16:27: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 36 37 0F 01 00 00 5B 1B 07 01 01 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 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 8F 00 00 00 F4 03 04 00 81 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CA 01 00 35 04 06 00 92 3B 36 13 EE 8F 1E 1E A4 AD 90 0F DB 6E [16:27: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 36 37 4F 00 00 00 8C 60 47 00 C0 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 36 37 10 04 04 00 C3 CA 01 00 F4 03 04 00 C5 15 1E 67 B6 04 01 00 00 D1 7B F9 2B 7A 29 4C 8C [16:27:52]CommunicateWithHost err = 0 [16:27:52]CheckOFDResponse [16:27:52]1017 (14) - 77093643461234 [16:27:52]1041 (16) - 0000000000871767 [16:27:52]1040 (4) - 117443 [16:27:52]1012 (4) - 27.10.2024 10:28 [16:27:52]1206 (1) - 0 [16:27:52]OFD Sender: Remove packet 117443 [16:27:52]ProducePacketName [16:27:52]name=ofd_packets/00117443 [16:27:52]NVStorageDeleteData [16:27:52]OFD Sender: Processing packet 117444 [packets to send 76, broken 75] [16:27:52]ProducePacketName [16:27:52]name=ofd_packets/00117444 [16:27:52]OFD Sender: To server: pG, [16:27:52]CommunicateWithHost lk.salyk.kg:30040 [16:27:52]ConnectInit lk.salyk.kg [16:27:52]Connected sock=9 [16:27: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 36 37 0F 01 00 00 34 B7 07 01 03 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 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 90 00 00 00 F4 03 04 00 D4 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CA 01 00 35 04 06 00 96 9E 3D 7A 10 8E 1C 0B 89 E6 FE D0 21 0D [16:27: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 36 37 4F 00 00 00 6F 64 47 00 9C 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 36 37 10 04 04 00 C4 CA 01 00 F4 03 04 00 C6 15 1E 67 B6 04 01 00 00 6D 47 2D 81 FF 90 54 6F [16:27:53]CommunicateWithHost err = 0 [16:27:53]CheckOFDResponse [16:27:53]1017 (14) - 77093643461234 [16:27:53]1041 (16) - 0000000000871767 [16:27:53]1040 (4) - 117444 [16:27:53]1012 (4) - 27.10.2024 10:28 [16:27:53]1206 (1) - 0 [16:27:53]OFD Sender: Remove packet 117444 [16:27:53]ProducePacketName [16:27:53]name=ofd_packets/00117444 [16:27:53]NVStorageDeleteData [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:17]accept exits with 7 [16:30:17]New connection [16:30:17]New thread 3067600228 created [16:30:17]Thread 3067456868 joined [16:30:17]Waiting for new connection... [16:30:17] Sock 7.Parse request [16:30:17]Sock 7.Check first char [16:30:17]Sock 7.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.96.67: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)245221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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)245221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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 6B 1E 78 [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 6B 1E 00 9B 6A 1E 67 2B 09 1E 67 C4 [16:30:17]GetLastDocTimeStamp 1730046420 [16:30:17]current date 1730046619 [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 6C 1E 80 13 01 00 00 00 00 00 07 [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 6C 1E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 46 [16:30:17]RAPDU: 09 00 01 2C 83 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 1729987372 [16:30:17]opened+sec_in_day 1730073772 [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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 145 27.10.2024 16:30 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117445 ФПД: 138758850526293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163019&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117445&fm=138758850526293&tin=02508201610067®Number=0000000000091782&sum=50041 [16:30:18]StoreToDocumentArchive [16:30:18]shift 542 fd 117445 [16:30:18]save to /storage/0542/doc_00117445 [16:30:18]save last doc name /storage/0542/doc_00117445 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 01708CF0 [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 79 1E 80 09 00 00 00 00 00 00 09 [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 79 1E 00 90 00 0B [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 7A 1E 80 0D 01 02 00 00 00 00 11 [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 7A 1E 00 90 00 0C [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 91 00 00 00 F4 03 04 00 9B 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CA 01 00 35 04 06 00 7E [16:30:18]Write to MH i2c: E2 02 01 7B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 91 00 00 00 F4 03 04 00 9B 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CA 01 00 35 04 06 00 7E 00 00 3E [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 7B 1E 00 90 00 0D [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 33 4F FE BC 55 [16:30:18]Write to MH i2c: E2 0D 00 7C 1E 80 0D 02 02 05 00 33 4F FE BC 55 00 00 AF [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 7C 1E 00 90 00 0E [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 7D 1E 80 0D 03 02 00 00 00 00 16 [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:18]Read from MH i2c: E2 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 0B 00 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 0B 00 7D 1E 00 54 32 67 2A C5 E0 AB B5 90 00 33 [16:30:18]RAPDU: 54 32 67 2A C5 E0 AB B5 90 00 [16:30:18]wFMCommunicate OK [16:30:18]SAM_PROTO_SignData done [16:30:18]FM_MakeSignedData done [16:30:18]CreateOFDProtocolMessage [16:30:18]wFMCommunicate request_size=4 [16:30:18]MH_SAM_APDU [16:30:18]CAPDU: 80 11 00 00 [16:30:18]Write to MH i2c: E2 08 00 7E 1E 80 11 00 00 00 00 00 00 16 [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:18]Read from MH i2c: E2 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 17 00 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 17 00 7E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6D [16:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:30:18]wFMCommunicate OK [16:30:18]CreateOFDProtocolMessage done [16:30:18]OFDSenderStorePacket 117445 [16:30:18]StoreOFDPacket docnum=117445 [16:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A1 D7 07 01 75 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 91 00 00 00 F4 03 04 00 9B 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CA 01 00 35 04 06 00 7E 33 4F FE BC 55 54 32 67 2A C5 E0 AB B5 [16:30:18]CheckFolder [16:30:18]dirname=/storage/ofd_packets [16:30:18]CheckFolder done [16:30:18]ProducePacketName [16:30:18]name=ofd_packets/00117445 [16:30:18]NVStorageSaveData ofd_packets/00117445 [16:30:18]File name is /storage/ofd_packets/00117445 [16:30:18]Write 301 bytes [16:30:18]NVStorageSaveData done [16:30:18]OFDSenderStorePacket done [16:30:18]KKMCreateOFDPacket done [16:30:18]NVStorageSaveData kkm_last_timestamp [16:30:18]File name is /storage/kkm_last_timestamp [16:30:18]Write 4 bytes [16:30:18]NVStorageSaveData done [16:30:18]ExternCall_PrintAddStr [16:30:18]wPrintStart [16:30:18]Write to MH i2c: 01 00 00 7F 1E 9D [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: 01 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: 01 07 00 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: 01 07 00 7F 1E 00 00 00 00 00 FF 0F B2 [16:30:18]RasterBufferAndPrint [16:30:18]line Счет N : (1)245221 [16:30:18]line ИНН: 02508201610067 [16:30:18]line Контрольно-Кассовый Чек [16:30:18]line ПРОДАЖА [16:30:18]line ТРК (МРК, ГНК) : 11 [16:30:18]line Товар: 2710124130 [16:30:18]line Аи-92-К-2 [16:30:18]line 7.480 * 66.90 [16:30:18]line = 500.41 [16:30:18]line НДС 12% НСП 1% [16:30:18]line > о реализуемом товаре [16:30:18]line ИТОГО: 500.41 [16:30:18]line НСП 1% : 4.43 [16:30:18]line НДС 12% : 53.14 [16:30:18]line Наличными: 0.00 [16:30:18]line Безнал.: 500.41 [16:30:18]line Место: АЗС № 173 "Партнер Нефть" [16:30:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:30:18]line СНО: Общий режим [16:30:18]line Чек 145 27.10.2024 16:30 [16:30:18]line Смена: 542 ФФД: 1.0 [16:30:18]line ЗНМ: 0300000115 [16:30:18]line РНМ: 0000000000091782 [16:30:18]line Версия ККМ: 001 [16:30:18]line Платежная система: Mbank [16:30:18]line ФМ: 0000000000871767 [16:30:18]line ФД: 117445 [16:30:18]line ФПД: 138758850526293 [16:30:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163019&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117445&fm=138758850526293&tin=02508201610067®Number=0000000000091782&sum=50041 [16:30:19]OFD Sender: Processing packet 117445 [packets to send 76, broken 75] [16:30:19]ProducePacketName [16:30:19]name=ofd_packets/00117445 [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 36 37 0F 01 00 00 A1 D7 07 01 75 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 91 00 00 00 F4 03 04 00 9B 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CA 01 00 35 04 06 00 7E 33 4F FE BC 55 54 32 67 2A C5 E0 AB B5 [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 36 37 4F 00 00 00 48 F1 47 00 40 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 36 37 10 04 04 00 C5 CA 01 00 F4 03 04 00 58 16 1E 67 B6 04 01 00 00 65 7F F2 76 65 2B 14 00 [16:30:19]CommunicateWithHost err = 0 [16:30:19]CheckOFDResponse [16:30:19]1017 (14) - 77093643461234 [16:30:19]1041 (16) - 0000000000871767 [16:30:19]1040 (4) - 117445 [16:30:19]1012 (4) - 27.10.2024 10:30 [16:30:19]1206 (1) - 0 [16:30:19]OFD Sender: Remove packet 117445 [16:30:19]ProducePacketName [16:30:19]name=ofd_packets/00117445 [16:30:19]NVStorageDeleteData [16:30:19]Write to MH i2c: 01 00 00 A7 1E C5 [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 A7 1E 00 00 00 00 00 E4 0C BC [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 3304 [16:30:19]MH_Cut [16:30:19]Write to MH i2c: D1 01 00 AE 1E 01 9E [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 AE 1E 00 9D [16:30:19]Write to MH i2c: 01 00 00 AF 1E CD [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 AF 1E 00 00 00 00 00 FF 0F E2 [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 B0 1E 80 11 00 00 00 00 00 00 48 [16:30:20]Write i2c OK [16:30:20]MH_I2C_Read... [16:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:20]Read from MH i2c: E2 [16:30:20]MH_I2C_Read... [16:30:20]Read from MH i2c: E2 17 00 [16:30:20]MH_I2C_Read... [16:30:20]Read from MH i2c: E2 17 00 B0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9F [16:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:30:20]wFMCommunicate OK [16:30:20]requested_item fd.num is exist - process it [16:30:20]SAM_PROTO_GetFieldsCounters [16:30:20]wFMCommunicate request_size=4 [16:30:20]MH_SAM_APDU [16:30:20]CAPDU: 80 13 00 00 [16:30:20]Write to MH i2c: E2 08 00 B1 1E 80 13 00 00 00 00 00 00 4B [16:30:20]Write i2c OK [16:30:20]MH_I2C_Read... [16:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:20]Read from MH i2c: E2 [16:30:20]MH_I2C_Read... [16:30:20]Read from MH i2c: E2 62 00 [16:30:20]MH_I2C_Read... [16:30:20]Read from MH i2c: E2 62 00 B1 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C5 CA 01 00 0E 04 04 00 1E 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 D5 [16:30: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C5 CA 01 00 0E 04 04 00 1E 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 [16:30:20]wFMCommunicate OK [16:30:20]SAM_PROTO_GetFieldsCounters done [16:30:20]requested_item shift.num is exist - process it [16:30:20]requested_item shift.opened is exist - process it [16:30:20]req_shift_opened [16:30:20]FM_GetShiftState [16:30:20]SAM_PROTO_GetShiftState [16:30:20]wFMCommunicate request_size=4 [16:30:20]MH_SAM_APDU [16:30:20]CAPDU: 80 13 01 00 [16:30:20]Write to MH i2c: E2 08 00 B2 1E 80 13 01 00 00 00 00 00 4D [16:30:20]Write i2c OK [16:30:20]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 B2 1E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8C [16:30:21]RAPDU: 09 00 01 2C 83 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":"0000000000871767","fd.num":117445,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [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":"0000000000871767","fd.num":117445,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [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 7.Close socket [16:30:21]Sock 7.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:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:16]accept exits with 9 [16:32:16]New connection [16:32:16]New thread 3067456868 created [16:32:16]Thread 3067600228 joined [16:32:16]Waiting for new connection... [16:32:16] Sock 9.Parse request [16:32:16]Sock 9.Check first char [16:32:16]Sock 9.First char is OK [16:32:16]request: POST /json_proto HTTP/1.0 [16:32:16]Method: POST [16:32:16]URL: /json_proto [16:32:16]Method is POST - this is cgi request [16:32:16]url: /json_proto [16:32:16]query_string will be loaded in cgi processing [16:32:16]execute_cgi json_proto POST (null) [16:32:16]execute_cgi path=json_proto method=POST [16:32:16]POST find Content-Length [16:32:16]Host: 172.17.96.67:8080 [16:32:16]Content-Length: 682 [16:32:16]Content-Type: application/json [16:32:16] [16:32:16]POST finish read [16:32:16]Found Content-Length = 682 [16:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [16:32:16]execute_script... [16:32:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [16:32:16]POST & json_proto [16:32:16]process_json_proto [16:32:16]json parsed OK: [16:32:16]protocol is kg_v1.0 [16:32:16]action value=close_receipt [16:32:16]process_action close_receipt [16:32:16]cmd_close_receipt [16:32:16]MH_GetDate [16:32:16]Write to MH i2c: F0 00 00 B3 1E C0 [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: F0 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: F0 09 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: F0 09 00 B3 1E 00 12 6B 1E 67 2B 09 1E 67 84 [16:32:16]GetLastDocTimeStamp 1730046619 [16:32:16]current date 1730046738 [16:32:16]FM_GetShiftState [16:32:16]SAM_PROTO_GetShiftState [16:32:16]wFMCommunicate request_size=4 [16:32:16]MH_SAM_APDU [16:32:16]CAPDU: 80 13 01 00 [16:32:16]Write to MH i2c: E2 08 00 B4 1E 80 13 01 00 00 00 00 00 4F [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:16]Read from MH i2c: E2 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 0E 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 0E 00 B4 1E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 8E [16:32:16]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:32:16]wFMCommunicate OK [16:32:16]SAM_PROTO_GetShiftState done [16:32:16]FM_GetShiftState done [16:32:16]opened in 1729987372 [16:32:16]opened+sec_in_day 1730073772 [16:32:16]quantity*price = 100015 [16:32:16]sum+1 = 100017 [16:32: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 146 27.10.2024 16:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117446 ФПД: 239047098542120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163218&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117446&fm=239047098542120&tin=02508201610067®Number=0000000000091782&sum=100000 [16:32:17]StoreToDocumentArchive [16:32:17]shift 542 fd 117446 [16:32:17]save to /storage/0542/doc_00117446 [16:32:17]save last doc name /storage/0542/doc_00117446 to /storage/kkm_last_doc_name [16:32:17]save OK [16:32:17]Clear old archive folders... [16:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:17]tlvbuf is 01708850 [16:32:17]SAM_PROTO_ClearQueue [16:32:17]wFMCommunicate request_size=4 [16:32:17]MH_SAM_APDU [16:32:17]CAPDU: 80 09 00 00 [16:32:17]Write to MH i2c: E2 08 00 C1 1E 80 09 00 00 00 00 00 00 51 [16:32:17]Write i2c OK [16:32:17]MH_I2C_Read... [16:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:17]Read from MH i2c: E2 [16:32:17]MH_I2C_Read... [16:32:17]Read from MH i2c: E2 03 00 [16:32:17]MH_I2C_Read... [16:32:17]Read from MH i2c: E2 03 00 C1 1E 00 90 00 53 [16:32:17]RAPDU: 90 00 [16:32:17]wFMCommunicate OK [16:32:17]SAM_PROTO_ClearQueue done [16:32:17]KKMCreateOFDPacket [16:32:17]OFDProtocolAddRootSTLVToBuf [16:32:17]FM_MakeSignedData [16:32:17]FM_MakeSignedData [16:32:17]SAM_PROTO_SignData [16:32:17]wFMCommunicate request_size=4 [16:32:17]MH_SAM_APDU [16:32:17]CAPDU: 80 0D 01 02 [16:32:17]Write to MH i2c: E2 08 00 C2 1E 80 0D 01 02 00 00 00 00 59 [16:32:17]Write i2c OK [16:32:17]MH_I2C_Read... [16:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:17]Read from MH i2c: E2 [16:32:17]MH_I2C_Read... [16:32:17]Read from MH i2c: E2 03 00 [16:32:17]MH_I2C_Read... [16:32:17]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [16:32:17]RAPDU: 90 00 [16:32:17]wFMCommunicate OK [16:32:17]wFMCommunicate request_size=255 [16:32:17]MH_SAM_APDU [16: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 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 92 00 00 00 F4 03 04 00 12 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CA 01 00 35 04 06 00 D9 [16:32:17]Write to MH i2c: E2 02 01 C3 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 92 00 00 00 F4 03 04 00 12 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CA 01 00 35 04 06 00 D9 00 00 03 [16:32:17]Write i2c OK [16:32:17]MH_I2C_Read... [16:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:17]Read from MH i2c: E2 [16:32:17]MH_I2C_Read... [16:32:17]Read from MH i2c: E2 03 00 [16:32:17]MH_I2C_Read... [16:32:17]Read from MH i2c: E2 03 00 C3 1E 00 90 00 55 [16:32:17]RAPDU: 90 00 [16:32:17]wFMCommunicate OK [16:32:17]wFMCommunicate request_size=10 [16:32:17]MH_SAM_APDU [16:32:17]CAPDU: 80 0D 02 02 05 69 7D 64 A8 28 [16:32:17]Write to MH i2c: E2 0D 00 C4 1E 80 0D 02 02 05 00 69 7D 64 A8 28 00 00 80 [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:18]Read from MH i2c: E2 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 03 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 03 00 C4 1E 00 90 00 56 [16:32:18]RAPDU: 90 00 [16:32:18]wFMCommunicate OK [16:32:18]wFMCommunicate request_size=4 [16:32:18]MH_SAM_APDU [16:32:18]CAPDU: 80 0D 03 02 [16:32:18]Write to MH i2c: E2 08 00 C5 1E 80 0D 03 02 00 00 00 00 5E [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:18]Read from MH i2c: E2 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 0B 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 0B 00 C5 1E 00 B6 68 5C 70 9A 46 F1 08 90 00 22 [16:32:18]RAPDU: B6 68 5C 70 9A 46 F1 08 90 00 [16:32:18]wFMCommunicate OK [16:32:18]SAM_PROTO_SignData done [16:32:18]FM_MakeSignedData done [16:32:18]CreateOFDProtocolMessage [16:32:18]wFMCommunicate request_size=4 [16:32:18]MH_SAM_APDU [16:32:18]CAPDU: 80 11 00 00 [16:32:18]Write to MH i2c: E2 08 00 C6 1E 80 11 00 00 00 00 00 00 5E [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:18]Read from MH i2c: E2 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 17 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 17 00 C6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B5 [16:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:32:18]wFMCommunicate OK [16:32:18]CreateOFDProtocolMessage done [16:32:18]OFDSenderStorePacket 117446 [16:32:18]StoreOFDPacket docnum=117446 [16:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 97 DE 07 01 3D 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 92 00 00 00 F4 03 04 00 12 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CA 01 00 35 04 06 00 D9 69 7D 64 A8 28 B6 68 5C 70 9A 46 F1 08 [16:32:18]CheckFolder [16:32:18]dirname=/storage/ofd_packets [16:32:18]CheckFolder done [16:32:18]ProducePacketName [16:32:18]name=ofd_packets/00117446 [16:32:18]NVStorageSaveData ofd_packets/00117446 [16:32:18]File name is /storage/ofd_packets/00117446 [16:32:18]Write 301 bytes [16:32:18]NVStorageSaveData done [16:32:18]OFDSenderStorePacket done [16:32:18]KKMCreateOFDPacket done [16:32:18]NVStorageSaveData kkm_last_timestamp [16:32:18]File name is /storage/kkm_last_timestamp [16:32:18]Write 4 bytes [16:32:18]NVStorageSaveData done [16:32:18]ExternCall_PrintAddStr [16:32:18]wPrintStart [16:32:18]Write to MH i2c: 01 00 00 C7 1E E5 [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: 01 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: 01 07 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: 01 07 00 C7 1E 00 00 00 00 00 FF 0F FA [16:32:18]RasterBufferAndPrint [16:32:18]line Счет N : (1)245222 [16:32:18]line ИНН: 02508201610067 [16:32:18]line Контрольно-Кассовый Чек [16:32:18]line ПРОДАЖА [16:32:18]line ТРК (МРК, ГНК) : 11 [16:32:18]line Товар: 2710124130 [16:32:18]line Аи-92-К-2 [16:32:18]line 14.950 * 66.90 [16:32:18]line = 1000.16 [16:32:18]line НДС 12% НСП 1% [16:32:18]line > о реализуемом товаре [16:32:18]line ОКРУГЛЕНИЕ: -0.16 [16:32:18]line ИТОГО: 1000.00 [16:32:18]line Внесено: 1000.00 [16:32:18]line СДАЧА: 0.00 [16:32:18]line НСП 1% : 8.85 [16:32:18]line НДС 12% : 106.21 [16:32:18]line Наличными: 1000.00 [16:32:18]line Безнал.: 0.00 [16:32:18]line Место: АЗС № 173 "Партнер Нефть" [16:32:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:32:18]line СНО: Общий режим [16:32:18]line Чек 146 27.10.2024 16:32 [16:32:18]line Смена: 542 ФФД: 1.0 [16:32:18]line ЗНМ: 0300000115 [16:32:18]line РНМ: 0000000000091782 [16:32:18]line Версия ККМ: 001 [16:32:18]line ФМ: 0000000000871767 [16:32:18]line ФД: 117446 [16:32:18]line ФПД: 239047098542120 [16:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163218&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117446&fm=239047098542120&tin=02508201610067®Number=0000000000091782&sum=100000 [16:32:18]written 0, free lines is 4095 [16:32:18]OFD Sender: Processing packet 117446 [packets to send 76, broken 75] [16:32:18]ProducePacketName [16:32:18]name=ofd_packets/00117446 [16:32:18]OFD Sender: To server: pG, [16:32:18]CommunicateWithHost lk.salyk.kg:30040 [16:32:18]ConnectInit lk.salyk.kg [16:32:18]Connected sock=10 [16: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 36 37 0F 01 00 00 97 DE 07 01 3D 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 92 00 00 00 F4 03 04 00 12 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CA 01 00 35 04 06 00 D9 69 7D 64 A8 28 B6 68 5C 70 9A 46 F1 08 [16: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 36 37 4F 00 00 00 EE 1F 47 00 EF 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 36 37 10 04 04 00 C6 CA 01 00 F4 03 04 00 CF 16 1E 67 B6 04 01 00 00 F7 BC 07 B2 40 E0 69 B0 [16:32:18]CommunicateWithHost err = 0 [16:32:18]CheckOFDResponse [16:32:18]1017 (14) - 77093643461234 [16:32:18]1041 (16) - 0000000000871767 [16:32:18]1040 (4) - 117446 [16:32:18]1012 (4) - 27.10.2024 10:32 [16:32:18]1206 (1) - 0 [16:32:18]OFD Sender: Remove packet 117446 [16:32:18]ProducePacketName [16:32:18]name=ofd_packets/00117446 [16:32:18]NVStorageDeleteData [16:32:18]Write to MH i2c: 01 00 00 F1 1E 0F [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: 01 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: 01 07 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: 01 07 00 F1 1E 00 00 00 00 00 B7 0C D9 [16:32:18]RasterBufferAndPrint [16:32:18]line [16:32:18]line [16:32:18]line [16:32:18]line [16:32:18]line [16:32:18]written 0, free lines is 3262 [16:32:18]MH_Cut [16:32:18]Write to MH i2c: D1 01 00 F8 1E 01 E8 [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: D1 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: D1 01 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: D1 01 00 F8 1E 00 E7 [16:32:18]Write to MH i2c: 01 00 00 F9 1E 17 [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:19]OFD Sender: No OFD packet to send [16:32:19]*** Cut start [16:32:19]*** Purtial cut [16:32:19]*** Stage 1: CUTSNS_PIN = 1 [16:32:20]Read from MH i2c: 01 [16:32:20]MH_I2C_Read... [16:32:20]*** Stop cut motor [16:32:20]*** Cut end [16:32:20]Read from MH i2c: 01 07 00 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: 01 07 00 F9 1E 00 00 00 00 00 FF 0F 2C [16:32:20]process_action close_receipt done [16:32:20]requested_data is exist [16:32:20]produce_requested_data [16:32:20]requested_item fm.sn is exist - process it [16:32:20]wFMCommunicate request_size=4 [16:32:20]MH_SAM_APDU [16:32:20]CAPDU: 80 11 00 00 [16:32:20]Write to MH i2c: E2 08 00 FA 1E 80 11 00 00 00 00 00 00 92 [16:32:20]Write i2c OK [16:32:20]MH_I2C_Read... [16:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:20]Read from MH i2c: E2 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: E2 17 00 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: E2 17 00 FA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E9 [16:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:32:20]wFMCommunicate OK [16:32:20]requested_item fd.num is exist - process it [16:32:20]SAM_PROTO_GetFieldsCounters [16:32:20]wFMCommunicate request_size=4 [16:32:20]MH_SAM_APDU [16:32:20]CAPDU: 80 13 00 00 [16:32:20]Write to MH i2c: E2 08 00 FB 1E 80 13 00 00 00 00 00 00 95 [16:32:20]Write i2c OK [16:32:20]MH_I2C_Read... [16:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:20]Read from MH i2c: E2 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: E2 62 00 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: E2 62 00 FB 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C6 CA 01 00 0E 04 04 00 1E 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 23 [16:32: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C6 CA 01 00 0E 04 04 00 1E 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 [16:32:20]wFMCommunicate OK [16:32:20]SAM_PROTO_GetFieldsCounters done [16:32:20]requested_item shift.num is exist - process it [16:32:20]requested_item shift.opened is exist - process it [16:32:20]req_shift_opened [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 FC 1E 80 13 01 00 00 00 00 00 97 [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 FC 1E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D6 [16:32:20]RAPDU: 09 00 01 2C 83 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]req_shift_opened done [16:32:20]requested_item shift.open_date is exist - process it [16:32:20]req_shift_open_date [16:32:20]req_shift_open_date done [16:32:20]produce_requested_data done [16:32:20]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117446,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:32:20]process_action_free close_receipt [16:32:20]json_value_free [16:32:20]json_value_free done [16:32:20]process_json_proto returns [16:32:20]Send response to host [16:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117446,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:32:20]free response buf [16:32:20]execute_script done [16:32:20]execute_script returns [16:32:20]free content buf [16:32:20]Sock 9.Close socket [16:32:20]Sock 9.Thread stoped [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:04]accept exits with 7 [16:33:04]New connection [16:33:04]New thread 3067600228 created [16:33:04]Thread 3067456868 joined [16:33:04]Waiting for new connection... [16:33:04] Sock 7.Parse request [16:33:04]Sock 7.Check first char [16:33:04]Sock 7.First char is OK [16:33:04]request: POST /json_proto HTTP/1.0 [16:33:04]Method: POST [16:33:04]URL: /json_proto [16:33:04]Method is POST - this is cgi request [16:33:04]url: /json_proto [16:33:04]query_string will be loaded in cgi processing [16:33:04]execute_cgi json_proto POST (null) [16:33:04]execute_cgi path=json_proto method=POST [16:33:04]POST find Content-Length [16:33:04]Host: 172.17.96.67:8080 [16:33:04]Content-Length: 677 [16:33:04]Content-Type: application/json [16:33:04] [16:33:04]POST finish read [16:33:04]Found Content-Length = 677 [16:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:33:04]execute_script... [16:33:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:33:04]POST & json_proto [16:33:04]process_json_proto [16:33:04]json parsed OK: [16:33:04]protocol is kg_v1.0 [16:33:04]action value=close_receipt [16:33:04]process_action close_receipt [16:33:04]cmd_close_receipt [16:33:04]MH_GetDate [16:33:04]Write to MH i2c: F0 00 00 FD 1E 0A [16:33:04]Write i2c OK [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: F0 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: F0 09 00 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: F0 09 00 FD 1E 00 43 6B 1E 67 2B 09 1E 67 FF [16:33:04]GetLastDocTimeStamp 1730046738 [16:33:04]current date 1730046787 [16:33:04]FM_GetShiftState [16:33:04]SAM_PROTO_GetShiftState [16:33:04]wFMCommunicate request_size=4 [16:33:04]MH_SAM_APDU [16:33:04]CAPDU: 80 13 01 00 [16:33:04]Write to MH i2c: E2 08 00 FE 1E 80 13 01 00 00 00 00 00 99 [16:33:04]Write i2c OK [16:33:04]MH_I2C_Read... [16:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:04]Read from MH i2c: E2 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: E2 0E 00 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: E2 0E 00 FE 1E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D8 [16:33:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:33:04]wFMCommunicate OK [16:33:04]SAM_PROTO_GetShiftState done [16:33:04]FM_GetShiftState done [16:33:04]opened in 1729987372 [16:33:04]opened+sec_in_day 1730073772 [16:33:04]quantity*price = 50041 [16:33:04]sum+1 = 50042 [16:33: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 147 27.10.2024 16:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117447 ФПД: 209018134740566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163307&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117447&fm=209018134740566&tin=02508201610067®Number=0000000000091782&sum=50000 [16:33:06]StoreToDocumentArchive [16:33:06]shift 542 fd 117447 [16:33:06]save to /storage/0542/doc_00117447 [16:33:06]save last doc name /storage/0542/doc_00117447 to /storage/kkm_last_doc_name [16:33:06]save OK [16:33:06]Clear old archive folders... [16:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:06]tlvbuf is 01796550 [16:33:06]SAM_PROTO_ClearQueue [16:33:06]wFMCommunicate request_size=4 [16:33:06]MH_SAM_APDU [16:33:06]CAPDU: 80 09 00 00 [16:33:06]Write to MH i2c: E2 08 00 0B 1F 80 09 00 00 00 00 00 00 9C [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:06]Read from MH i2c: E2 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 03 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 03 00 0B 1F 00 90 00 9E [16:33:06]RAPDU: 90 00 [16:33:06]wFMCommunicate OK [16:33:06]SAM_PROTO_ClearQueue done [16:33:06]KKMCreateOFDPacket [16:33:06]OFDProtocolAddRootSTLVToBuf [16:33:06]FM_MakeSignedData [16:33:06]FM_MakeSignedData [16:33:06]SAM_PROTO_SignData [16:33:06]wFMCommunicate request_size=4 [16:33:06]MH_SAM_APDU [16:33:06]CAPDU: 80 0D 01 02 [16:33:06]Write to MH i2c: E2 08 00 0C 1F 80 0D 01 02 00 00 00 00 A4 [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:06]Read from MH i2c: E2 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 03 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [16:33:06]RAPDU: 90 00 [16:33:06]wFMCommunicate OK [16:33:06]wFMCommunicate request_size=255 [16:33:06]MH_SAM_APDU [16:33:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 43 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CA 01 00 35 04 06 00 BE [16:33:06]Write to MH i2c: E2 02 01 0D 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 93 00 00 00 F4 03 04 00 43 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CA 01 00 35 04 06 00 BE 00 00 6C [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:06]Read from MH i2c: E2 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 03 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [16:33:06]RAPDU: 90 00 [16:33:06]wFMCommunicate OK [16:33:06]wFMCommunicate request_size=10 [16:33:06]MH_SAM_APDU [16:33:06]CAPDU: 80 0D 02 02 05 19 D3 AC 3E 56 [16:33:06]Write to MH i2c: E2 0D 00 0E 1F 80 0D 02 02 05 00 19 D3 AC 3E 56 00 00 DD [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:06]Read from MH i2c: E2 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 03 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 03 00 0E 1F 00 90 00 A1 [16:33:06]RAPDU: 90 00 [16:33:06]wFMCommunicate OK [16:33:06]wFMCommunicate request_size=4 [16:33:06]MH_SAM_APDU [16:33:06]CAPDU: 80 0D 03 02 [16:33:06]Write to MH i2c: E2 08 00 0F 1F 80 0D 03 02 00 00 00 00 A9 [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:06]Read from MH i2c: E2 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 0B 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 0B 00 0F 1F 00 A9 81 28 8E 3B 62 B7 30 90 00 0E [16:33:06]RAPDU: A9 81 28 8E 3B 62 B7 30 90 00 [16:33:06]wFMCommunicate OK [16:33:06]SAM_PROTO_SignData done [16:33:06]FM_MakeSignedData done [16:33:06]CreateOFDProtocolMessage [16:33:06]wFMCommunicate request_size=4 [16:33:06]MH_SAM_APDU [16:33:06]CAPDU: 80 11 00 00 [16:33:06]Write to MH i2c: E2 08 00 10 1F 80 11 00 00 00 00 00 00 A9 [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:06]Read from MH i2c: E2 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 17 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 17 00 10 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 00 [16:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:33:06]wFMCommunicate OK [16:33:06]CreateOFDProtocolMessage done [16:33:06]OFDSenderStorePacket 117447 [16:33:06]StoreOFDPacket docnum=117447 [16:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 55 F8 07 01 B9 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 93 00 00 00 F4 03 04 00 43 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CA 01 00 35 04 06 00 BE 19 D3 AC 3E 56 A9 81 28 8E 3B 62 B7 30 [16:33:06]CheckFolder [16:33:06]dirname=/storage/ofd_packets [16:33:06]CheckFolder done [16:33:06]ProducePacketName [16:33:06]name=ofd_packets/00117447 [16:33:06]NVStorageSaveData ofd_packets/00117447 [16:33:06]File name is /storage/ofd_packets/00117447 [16:33:06]Write 301 bytes [16:33:06]NVStorageSaveData done [16:33:06]OFDSenderStorePacket done [16:33:06]KKMCreateOFDPacket done [16:33:06]NVStorageSaveData kkm_last_timestamp [16:33:06]File name is /storage/kkm_last_timestamp [16:33:06]Write 4 bytes [16:33:06]NVStorageSaveData done [16:33:06]ExternCall_PrintAddStr [16:33:06]wPrintStart [16:33:06]Write to MH i2c: 01 00 00 11 1F 30 [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: 01 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: 01 07 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: 01 07 00 11 1F 00 00 00 00 00 FF 0F 45 [16:33:06]RasterBufferAndPrint [16:33:06]line Счет N : (1)245223 [16:33:06]line ИНН: 02508201610067 [16:33:06]line Контрольно-Кассовый Чек [16:33:06]line ПРОДАЖА [16:33:06]line ТРК (МРК, ГНК) : 21 [16:33:06]line Товар: 2710124130 [16:33:06]line Аи-92-К-2 [16:33:06]line 7.480 * 66.90 [16:33:06]line = 500.41 [16:33:06]line НДС 12% НСП 1% [16:33:06]line > о реализуемом товаре [16:33:06]line ОКРУГЛЕНИЕ: -0.41 [16:33:06]line ИТОГО: 500.00 [16:33:06]line Внесено: 500.00 [16:33:06]line СДАЧА: 0.00 [16:33:06]line НСП 1% : 4.43 [16:33:06]line НДС 12% : 53.14 [16:33:06]line Наличными: 500.00 [16:33:06]line Безнал.: 0.00 [16:33:06]line Место: АЗС № 173 "Партнер Нефть" [16:33:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:33:06]line СНО: Общий режим [16:33:06]line Чек 147 27.10.2024 16:33 [16:33:06]line Смена: 542 ФФД: 1.0 [16:33:06]line ЗНМ: 0300000115 [16:33:06]line РНМ: 0000000000091782 [16:33:06]line Версия ККМ: 001 [16:33:06]line ФМ: 0000000000871767 [16:33:06]line ФД: 117447 [16:33:06]line ФПД: 209018134740566 [16:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163307&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117447&fm=209018134740566&tin=02508201610067®Number=0000000000091782&sum=50000 [16:33:06]written 0, free lines is 4095 [16:33:06]OFD Sender: Processing packet 117447 [packets to send 76, broken 75] [16:33:06]ProducePacketName [16:33:06]name=ofd_packets/00117447 [16:33:06]OFD Sender: To server: pG, [16:33:06]CommunicateWithHost lk.salyk.kg:30040 [16:33:06]ConnectInit lk.salyk.kg [16:33:07]Connected sock=10 [16:33: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 36 37 0F 01 00 00 55 F8 07 01 B9 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 93 00 00 00 F4 03 04 00 43 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CA 01 00 35 04 06 00 BE 19 D3 AC 3E 56 A9 81 28 8E 3B 62 B7 30 [16:33: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 36 37 4F 00 00 00 3A 0D 47 00 4C 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 36 37 10 04 04 00 C7 CA 01 00 F4 03 04 00 00 17 1E 67 B6 04 01 00 00 9B B9 EA 64 17 B6 8B 8E [16:33:07]CommunicateWithHost err = 0 [16:33:07]CheckOFDResponse [16:33:07]1017 (14) - 77093643461234 [16:33:07]1041 (16) - 0000000000871767 [16:33:07]1040 (4) - 117447 [16:33:07]1012 (4) - 27.10.2024 10:33 [16:33:07]1206 (1) - 0 [16:33:07]OFD Sender: Remove packet 117447 [16:33:07]ProducePacketName [16:33:07]name=ofd_packets/00117447 [16:33:07]NVStorageDeleteData [16:33:07]Write to MH i2c: 01 00 00 3B 1F 5A [16:33:07]Write i2c OK [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: 01 [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: 01 07 00 [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: 01 07 00 3B 1F 00 00 00 00 00 B3 0C 20 [16:33:07]RasterBufferAndPrint [16:33:07]line [16:33:07]line [16:33:07]line [16:33:07]line [16:33:07]line [16:33:07]written 0, free lines is 3257 [16:33:07]MH_Cut [16:33:07]Write to MH i2c: D1 01 00 42 1F 01 33 [16:33:07]Write i2c OK [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: D1 [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: D1 01 00 [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: D1 01 00 42 1F 00 32 [16:33:07]Write to MH i2c: 01 00 00 43 1F 62 [16:33:07]Write i2c OK [16:33:07]MH_I2C_Read... [16:33:07]OFD Sender: No OFD packet to send [16:33:08]*** Cut start [16:33:08]*** Purtial cut [16:33:08]*** Stage 1: CUTSNS_PIN = 1 [16:33:08]Read from MH i2c: 01 [16:33:08]MH_I2C_Read... [16:33:08]*** Stop cut motor [16:33:08]*** Cut end [16:33:08]Read from MH i2c: 01 07 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: 01 07 00 43 1F 00 00 00 00 00 FF 0F 77 [16:33:08]process_action close_receipt done [16:33:08]requested_data is exist [16:33:08]produce_requested_data [16:33:08]requested_item fm.sn is exist - process it [16:33:08]wFMCommunicate request_size=4 [16:33:08]MH_SAM_APDU [16:33:08]CAPDU: 80 11 00 00 [16:33:08]Write to MH i2c: E2 08 00 44 1F 80 11 00 00 00 00 00 00 DD [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:08]Read from MH i2c: E2 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 17 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 17 00 44 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 34 [16:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:33:08]wFMCommunicate OK [16:33:08]requested_item fd.num is exist - process it [16:33:08]SAM_PROTO_GetFieldsCounters [16:33:08]wFMCommunicate request_size=4 [16:33:08]MH_SAM_APDU [16:33:08]CAPDU: 80 13 00 00 [16:33:08]Write to MH i2c: E2 08 00 45 1F 80 13 00 00 00 00 00 00 E0 [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:08]Read from MH i2c: E2 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 62 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 62 00 45 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CA 01 00 0E 04 04 00 1E 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 72 [16:33: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CA 01 00 0E 04 04 00 1E 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 [16:33:08]wFMCommunicate OK [16:33:08]SAM_PROTO_GetFieldsCounters done [16:33:08]requested_item shift.num is exist - process it [16:33:08]requested_item shift.opened is exist - process it [16:33:08]req_shift_opened [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 46 1F 80 13 01 00 00 00 00 00 E2 [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 46 1F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 21 [16:33:08]RAPDU: 09 00 01 2C 83 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]req_shift_opened done [16:33:08]requested_item shift.open_date is exist - process it [16:33:08]req_shift_open_date [16:33:08]req_shift_open_date done [16:33:08]produce_requested_data done [16:33:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117447,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:33:08]process_action_free close_receipt [16:33:08]json_value_free [16:33:08]json_value_free done [16:33:08]process_json_proto returns [16:33:08]Send response to host [16:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117447,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:33:08]free response buf [16:33:08]execute_script done [16:33:08]execute_script returns [16:33:08]free content buf [16:33:08]Sock 7.Close socket [16:33:08]Sock 7.Thread stoped [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:31]accept exits with 9 [16:40:31]New connection [16:40:31]New thread 3067456868 created [16:40:31]Thread 3067600228 joined [16:40:31]Waiting for new connection... [16:40:31] Sock 9.Parse request [16:40:31]Sock 9.Check first char [16:40:31]Sock 9.First char is OK [16:40:31]request: POST /json_proto HTTP/1.0 [16:40:31]Method: POST [16:40:31]URL: /json_proto [16:40:31]Method is POST - this is cgi request [16:40:31]url: /json_proto [16:40:31]query_string will be loaded in cgi processing [16:40:31]execute_cgi json_proto POST (null) [16:40:31]execute_cgi path=json_proto method=POST [16:40:31]POST find Content-Length [16:40:31]Host: 172.17.96.67:8080 [16:40:31]Content-Length: 677 [16:40:31]Content-Type: application/json [16:40:31] [16:40:31]POST finish read [16:40:31]Found Content-Length = 677 [16:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:40:31]execute_script... [16:40: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)245224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:40:31]POST & json_proto [16:40:31]process_json_proto [16:40:31]json parsed OK: [16:40:31]protocol is kg_v1.0 [16:40:31]action value=close_receipt [16:40:31]process_action close_receipt [16:40:31]cmd_close_receipt [16:40:31]MH_GetDate [16:40:31]Write to MH i2c: F0 00 00 47 1F 55 [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: F0 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: F0 09 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: F0 09 00 47 1F 00 02 6D 1E 67 2B 09 1E 67 0B [16:40:31]GetLastDocTimeStamp 1730046787 [16:40:31]current date 1730047234 [16:40:31]FM_GetShiftState [16:40:31]SAM_PROTO_GetShiftState [16:40:31]wFMCommunicate request_size=4 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 13 01 00 [16:40:31]Write to MH i2c: E2 08 00 48 1F 80 13 01 00 00 00 00 00 E4 [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 0E 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 0E 00 48 1F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 23 [16:40:31]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:40:31]wFMCommunicate OK [16:40:31]SAM_PROTO_GetShiftState done [16:40:31]FM_GetShiftState done [16:40:31]opened in 1729987372 [16:40:31]opened+sec_in_day 1730073772 [16:40:31]quantity*price = 20003 [16:40:31]sum+1 = 20004 [16:40: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 148 27.10.2024 16:40 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117448 ФПД: 270685671384815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164034&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117448&fm=270685671384815&tin=02508201610067®Number=0000000000091782&sum=20000 [16:40:32]StoreToDocumentArchive [16:40:32]shift 542 fd 117448 [16:40:32]save to /storage/0542/doc_00117448 [16:40:32]save last doc name /storage/0542/doc_00117448 to /storage/kkm_last_doc_name [16:40:32]save OK [16:40:32]Clear old archive folders... [16:40:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:32]tlvbuf is 016DEC00 [16:40:32]SAM_PROTO_ClearQueue [16:40:32]wFMCommunicate request_size=4 [16:40:32]MH_SAM_APDU [16:40:32]CAPDU: 80 09 00 00 [16:40:32]Write to MH i2c: E2 08 00 55 1F 80 09 00 00 00 00 00 00 E6 [16:40:32]Write i2c OK [16:40:32]MH_I2C_Read... [16:40:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:32]Read from MH i2c: E2 [16:40:32]MH_I2C_Read... [16:40:32]Read from MH i2c: E2 03 00 [16:40:32]MH_I2C_Read... [16:40:32]Read from MH i2c: E2 03 00 55 1F 00 90 00 E8 [16:40:33]RAPDU: 90 00 [16:40:33]wFMCommunicate OK [16:40:33]SAM_PROTO_ClearQueue done [16:40:33]KKMCreateOFDPacket [16:40:33]OFDProtocolAddRootSTLVToBuf [16:40:33]FM_MakeSignedData [16:40:33]FM_MakeSignedData [16:40:33]SAM_PROTO_SignData [16:40:33]wFMCommunicate request_size=4 [16:40:33]MH_SAM_APDU [16:40:33]CAPDU: 80 0D 01 02 [16:40:33]Write to MH i2c: E2 08 00 56 1F 80 0D 01 02 00 00 00 00 EE [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:33]Read from MH i2c: E2 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 03 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 03 00 56 1F 00 90 00 E9 [16:40:33]RAPDU: 90 00 [16:40:33]wFMCommunicate OK [16:40:33]wFMCommunicate request_size=255 [16:40:33]MH_SAM_APDU [16:40: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 94 00 00 00 F4 03 04 00 02 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CA 01 00 35 04 06 00 F6 [16:40:33]Write to MH i2c: E2 02 01 57 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 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 94 00 00 00 F4 03 04 00 02 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CA 01 00 35 04 06 00 F6 00 00 73 [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]OFD Sender: No OFD packet to send [16:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:33]Read from MH i2c: E2 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 03 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [16:40:33]RAPDU: 90 00 [16:40:33]wFMCommunicate OK [16:40:33]wFMCommunicate request_size=10 [16:40:33]MH_SAM_APDU [16:40:33]CAPDU: 80 0D 02 02 05 2F EB 49 E6 EF [16:40:33]Write to MH i2c: E2 0D 00 58 1F 80 0D 02 02 05 00 2F EB 49 E6 EF 00 00 33 [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:33]Read from MH i2c: E2 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 03 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [16:40:33]RAPDU: 90 00 [16:40:33]wFMCommunicate OK [16:40:33]wFMCommunicate request_size=4 [16:40:33]MH_SAM_APDU [16:40:33]CAPDU: 80 0D 03 02 [16:40:33]Write to MH i2c: E2 08 00 59 1F 80 0D 03 02 00 00 00 00 F3 [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:33]Read from MH i2c: E2 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 0B 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 0B 00 59 1F 00 AE ED 85 68 A2 14 32 9F 90 00 03 [16:40:33]RAPDU: AE ED 85 68 A2 14 32 9F 90 00 [16:40:33]wFMCommunicate OK [16:40:33]SAM_PROTO_SignData done [16:40:33]FM_MakeSignedData done [16:40:33]CreateOFDProtocolMessage [16:40:33]wFMCommunicate request_size=4 [16:40:33]MH_SAM_APDU [16:40:33]CAPDU: 80 11 00 00 [16:40:33]Write to MH i2c: E2 08 00 5A 1F 80 11 00 00 00 00 00 00 F3 [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:33]Read from MH i2c: E2 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 17 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 17 00 5A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4A [16:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:40:33]wFMCommunicate OK [16:40:33]CreateOFDProtocolMessage done [16:40:33]OFDSenderStorePacket 117448 [16:40:33]StoreOFDPacket docnum=117448 [16:40:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B4 02 07 01 0D 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 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 94 00 00 00 F4 03 04 00 02 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CA 01 00 35 04 06 00 F6 2F EB 49 E6 EF AE ED 85 68 A2 14 32 9F [16:40:33]CheckFolder [16:40:33]dirname=/storage/ofd_packets [16:40:33]CheckFolder done [16:40:33]ProducePacketName [16:40:33]name=ofd_packets/00117448 [16:40:33]NVStorageSaveData ofd_packets/00117448 [16:40:33]File name is /storage/ofd_packets/00117448 [16:40:33]Write 301 bytes [16:40:33]NVStorageSaveData done [16:40:33]OFDSenderStorePacket done [16:40:33]KKMCreateOFDPacket done [16:40:33]NVStorageSaveData kkm_last_timestamp [16:40:33]File name is /storage/kkm_last_timestamp [16:40:33]Write 4 bytes [16:40:33]NVStorageSaveData done [16:40:33]ExternCall_PrintAddStr [16:40:33]wPrintStart [16:40:33]Write to MH i2c: 01 00 00 5B 1F 7A [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: 01 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: 01 07 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: 01 07 00 5B 1F 00 00 00 00 00 FF 0F 8F [16:40:33]RasterBufferAndPrint [16:40:33]line Счет N : (1)245224 [16:40:33]line ИНН: 02508201610067 [16:40:33]line Контрольно-Кассовый Чек [16:40:33]line ПРОДАЖА [16:40:33]line ТРК (МРК, ГНК) : 11 [16:40:33]line Товар: 2710124130 [16:40:33]line Аи-92-К-2 [16:40:33]line 2.990 * 66.90 [16:40:33]line = 200.03 [16:40:33]line НДС 12% НСП 1% [16:40:33]line > о реализуемом товаре [16:40:33]line ОКРУГЛЕНИЕ: -0.03 [16:40:33]line ИТОГО: 200.00 [16:40:33]line Внесено: 200.00 [16:40:33]line СДАЧА: 0.00 [16:40:33]line НСП 1% : 1.77 [16:40:33]line НДС 12% : 21.24 [16:40:33]line Наличными: 200.00 [16:40:33]line Безнал.: 0.00 [16:40:33]line Место: АЗС № 173 "Партнер Нефть" [16:40:33]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:40:33]line СНО: Общий режим [16:40:33]line Чек 148 27.10.2024 16:40 [16:40:33]line Смена: 542 ФФД: 1.0 [16:40:33]line ЗНМ: 0300000115 [16:40:33]line РНМ: 0000000000091782 [16:40:33]line Версия ККМ: 001 [16:40:33]line ФМ: 0000000000871767 [16:40:33]line ФД: 117448 [16:40:33]line ФПД: 270685671384815 [16:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164034&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117448&fm=270685671384815&tin=02508201610067®Number=0000000000091782&sum=20000 [16:40:33]OFD Sender: Processing packet 117448 [packets to send 76, broken 75] [16:40:33]ProducePacketName [16:40:33]name=ofd_packets/00117448 [16:40:33]OFD Sender: To server: pG, [16:40:33]CommunicateWithHost lk.salyk.kg:30040 [16:40:33]ConnectInit lk.salyk.kg [16:40:33]written 0, free lines is 4095 [16:40:33]Connected sock=11 [16:40: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 36 37 0F 01 00 00 B4 02 07 01 0D 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 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 94 00 00 00 F4 03 04 00 02 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CA 01 00 35 04 06 00 F6 2F EB 49 E6 EF AE ED 85 68 A2 14 32 9F [16:40: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 36 37 4F 00 00 00 E1 EC 47 00 F2 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 36 37 10 04 04 00 C8 CA 01 00 F4 03 04 00 BE 18 1E 67 B6 04 01 00 00 EC 94 CE D3 CE D5 C5 F2 [16:40:33]CommunicateWithHost err = 0 [16:40:33]CheckOFDResponse [16:40:33]1017 (14) - 77093643461234 [16:40:33]1041 (16) - 0000000000871767 [16:40:33]1040 (4) - 117448 [16:40:33]1012 (4) - 27.10.2024 10:41 [16:40:33]1206 (1) - 0 [16:40:33]OFD Sender: Remove packet 117448 [16:40:33]ProducePacketName [16:40:33]name=ofd_packets/00117448 [16:40:33]NVStorageDeleteData [16:40:33]Write to MH i2c: 01 00 00 85 1F A4 [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: 01 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: 01 07 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: 01 07 00 85 1F 00 00 00 00 00 B1 0C 68 [16:40:33]RasterBufferAndPrint [16:40:33]line [16:40:33]line [16:40:33]line [16:40:33]line [16:40:33]line [16:40:33]written 0, free lines is 3253 [16:40:33]MH_Cut [16:40:33]Write to MH i2c: D1 01 00 8C 1F 01 7D [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: D1 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: D1 01 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: D1 01 00 8C 1F 00 7C [16:40:33]Write to MH i2c: 01 00 00 8D 1F AC [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:34]OFD Sender: No OFD packet to send [16:40:34]*** Cut start [16:40:34]*** Purtial cut [16:40:34]*** Stage 1: CUTSNS_PIN = 1 [16:40:35]Read from MH i2c: 01 [16:40:35]MH_I2C_Read... [16:40:35]*** Stop cut motor [16:40:35]*** Cut end [16:40:35]Read from MH i2c: 01 07 00 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 FF 0F C1 [16:40:35]process_action close_receipt done [16:40:35]requested_data is exist [16:40:35]produce_requested_data [16:40:35]requested_item fm.sn is exist - process it [16:40:35]wFMCommunicate request_size=4 [16:40:35]MH_SAM_APDU [16:40:35]CAPDU: 80 11 00 00 [16:40:35]Write to MH i2c: E2 08 00 8E 1F 80 11 00 00 00 00 00 00 27 [16:40:35]Write i2c OK [16:40:35]MH_I2C_Read... [16:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:35]Read from MH i2c: E2 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: E2 17 00 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: E2 17 00 8E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7E [16:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:40:35]wFMCommunicate OK [16:40:35]requested_item fd.num is exist - process it [16:40:35]SAM_PROTO_GetFieldsCounters [16:40:35]wFMCommunicate request_size=4 [16:40:35]MH_SAM_APDU [16:40:35]CAPDU: 80 13 00 00 [16:40:35]Write to MH i2c: E2 08 00 8F 1F 80 13 00 00 00 00 00 00 2A [16:40:35]Write i2c OK [16:40:35]MH_I2C_Read... [16:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:35]Read from MH i2c: E2 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: E2 62 00 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: E2 62 00 8F 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C8 CA 01 00 0E 04 04 00 1E 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 C0 [16:40: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C8 CA 01 00 0E 04 04 00 1E 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 [16:40:35]wFMCommunicate OK [16:40:35]SAM_PROTO_GetFieldsCounters done [16:40:35]requested_item shift.num is exist - process it [16:40:35]requested_item shift.opened is exist - process it [16:40:35]req_shift_opened [16:40:35]FM_GetShiftState [16:40:35]SAM_PROTO_GetShiftState [16:40:35]wFMCommunicate request_size=4 [16:40:35]MH_SAM_APDU [16:40:35]CAPDU: 80 13 01 00 [16:40:35]Write to MH i2c: E2 08 00 90 1F 80 13 01 00 00 00 00 00 2C [16:40:35]Write i2c OK [16:40:35]MH_I2C_Read... [16:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:35]Read from MH i2c: E2 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: E2 0E 00 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: E2 0E 00 90 1F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6B [16:40:35]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:40:35]wFMCommunicate OK [16:40:35]SAM_PROTO_GetShiftState done [16:40:35]FM_GetShiftState done [16:40:35]req_shift_opened done [16:40:35]requested_item shift.open_date is exist - process it [16:40:35]req_shift_open_date [16:40:35]req_shift_open_date done [16:40:35]produce_requested_data done [16:40:35]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117448,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:40:35]process_action_free close_receipt [16:40:35]json_value_free [16:40:35]json_value_free done [16:40:35]process_json_proto returns [16:40:35]Send response to host [16:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117448,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:40:35]free response buf [16:40:35]execute_script done [16:40:35]execute_script returns [16:40:35]free content buf [16:40:35]Sock 9.Close socket [16:40:35]Sock 9.Thread stoped [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:04]accept exits with 7 [16:43:04]New connection [16:43:04]New thread 3067600228 created [16:43:04]Thread 3067456868 joined [16:43:04]Waiting for new connection... [16:43:04] Sock 7.Parse request [16:43:04]Sock 7.Check first char [16:43:04]Sock 7.First char is OK [16:43:04]request: POST /json_proto HTTP/1.0 [16:43:04]Method: POST [16:43:04]URL: /json_proto [16:43:04]Method is POST - this is cgi request [16:43:04]url: /json_proto [16:43:04]query_string will be loaded in cgi processing [16:43:04]execute_cgi json_proto POST (null) [16:43:04]execute_cgi path=json_proto method=POST [16:43:04]POST find Content-Length [16:43:04]Host: 172.17.96.67:8080 [16:43:04]Content-Length: 677 [16:43:04]Content-Type: application/json [16:43:04] [16:43:04]POST finish read [16:43:04]Found Content-Length = 677 [16:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:43:04]execute_script... [16:43: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)245225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:43:04]POST & json_proto [16:43:04]process_json_proto [16:43:04]json parsed OK: [16:43:04]protocol is kg_v1.0 [16:43:04]action value=close_receipt [16:43:04]process_action close_receipt [16:43:04]cmd_close_receipt [16:43:04]MH_GetDate [16:43:04]Write to MH i2c: F0 00 00 91 1F 9F [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: F0 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: F0 09 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: F0 09 00 91 1F 00 9B 6D 1E 67 2B 09 1E 67 EE [16:43:04]GetLastDocTimeStamp 1730047234 [16:43:04]current date 1730047387 [16:43:04]FM_GetShiftState [16:43:04]SAM_PROTO_GetShiftState [16:43:04]wFMCommunicate request_size=4 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 13 01 00 [16:43:04]Write to MH i2c: E2 08 00 92 1F 80 13 01 00 00 00 00 00 2E [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 0E 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 0E 00 92 1F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6D [16:43:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:43:04]wFMCommunicate OK [16:43:04]SAM_PROTO_GetShiftState done [16:43:04]FM_GetShiftState done [16:43:04]opened in 1729987372 [16:43:04]opened+sec_in_day 1730073772 [16:43:04]quantity*price = 20003 [16:43:04]sum+1 = 20004 [16:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 149 27.10.2024 16:43 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117449 ФПД: 1876614361261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164307&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117449&fm=1876614361261&tin=02508201610067®Number=0000000000091782&sum=20000 [16:43:06]StoreToDocumentArchive [16:43:06]shift 542 fd 117449 [16:43:06]save to /storage/0542/doc_00117449 [16:43:06]save last doc name /storage/0542/doc_00117449 to /storage/kkm_last_doc_name [16:43:06]save OK [16:43:06]Clear old archive folders... [16:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:06]tlvbuf is 01783F30 [16:43:06]SAM_PROTO_ClearQueue [16:43:06]wFMCommunicate request_size=4 [16:43:06]MH_SAM_APDU [16:43:06]CAPDU: 80 09 00 00 [16:43:06]Write to MH i2c: E2 08 00 9F 1F 80 09 00 00 00 00 00 00 30 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 9F 1F 00 90 00 32 [16:43:06]RAPDU: 90 00 [16:43:06]wFMCommunicate OK [16:43:06]SAM_PROTO_ClearQueue done [16:43:06]KKMCreateOFDPacket [16:43:06]OFDProtocolAddRootSTLVToBuf [16:43:06]FM_MakeSignedData [16:43:06]FM_MakeSignedData [16:43:06]SAM_PROTO_SignData [16:43:06]wFMCommunicate request_size=4 [16:43:06]MH_SAM_APDU [16:43:06]CAPDU: 80 0D 01 02 [16:43:06]Write to MH i2c: E2 08 00 A0 1F 80 0D 01 02 00 00 00 00 38 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 A0 1F 00 90 00 33 [16:43:06]RAPDU: 90 00 [16:43:06]wFMCommunicate OK [16:43:06]wFMCommunicate request_size=255 [16:43:06]MH_SAM_APDU [16:43: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 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 95 00 00 00 F4 03 04 00 9B 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C9 CA 01 00 35 04 06 00 01 [16:43:06]Write to MH i2c: E2 02 01 A1 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 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 95 00 00 00 F4 03 04 00 9B 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C9 CA 01 00 35 04 06 00 01 00 00 63 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 A1 1F 00 90 00 34 [16:43:06]RAPDU: 90 00 [16:43:06]wFMCommunicate OK [16:43:06]wFMCommunicate request_size=10 [16:43:06]MH_SAM_APDU [16:43:06]CAPDU: 80 0D 02 02 05 B4 EE EE B0 AD [16:43:06]Write to MH i2c: E2 0D 00 A2 1F 80 0D 02 02 05 00 B4 EE EE B0 AD 00 00 32 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [16:43:06]RAPDU: 90 00 [16:43:06]wFMCommunicate OK [16:43:06]wFMCommunicate request_size=4 [16:43:06]MH_SAM_APDU [16:43:06]CAPDU: 80 0D 03 02 [16:43:06]Write to MH i2c: E2 08 00 A3 1F 80 0D 03 02 00 00 00 00 3D [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 0B 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 0B 00 A3 1F 00 18 AF 01 0C 2D 20 A2 B5 90 00 B6 [16:43:06]RAPDU: 18 AF 01 0C 2D 20 A2 B5 90 00 [16:43:06]wFMCommunicate OK [16:43:06]SAM_PROTO_SignData done [16:43:06]FM_MakeSignedData done [16:43:06]CreateOFDProtocolMessage [16:43:06]wFMCommunicate request_size=4 [16:43:06]MH_SAM_APDU [16:43:06]CAPDU: 80 11 00 00 [16:43:06]Write to MH i2c: E2 08 00 A4 1F 80 11 00 00 00 00 00 00 3D [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 17 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 17 00 A4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 94 [16:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:43:06]wFMCommunicate OK [16:43:06]CreateOFDProtocolMessage done [16:43:06]OFDSenderStorePacket 117449 [16:43:06]StoreOFDPacket docnum=117449 [16:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 1B 98 07 01 94 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 9B 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C9 CA 01 00 35 04 06 00 01 B4 EE EE B0 AD 18 AF 01 0C 2D 20 A2 B5 [16:43:06]CheckFolder [16:43:06]dirname=/storage/ofd_packets [16:43:06]CheckFolder done [16:43:06]ProducePacketName [16:43:06]name=ofd_packets/00117449 [16:43:06]NVStorageSaveData ofd_packets/00117449 [16:43:06]File name is /storage/ofd_packets/00117449 [16:43:06]Write 301 bytes [16:43:06]NVStorageSaveData done [16:43:06]OFDSenderStorePacket done [16:43:06]KKMCreateOFDPacket done [16:43:06]NVStorageSaveData kkm_last_timestamp [16:43:06]File name is /storage/kkm_last_timestamp [16:43:06]Write 4 bytes [16:43:06]NVStorageSaveData done [16:43:06]ExternCall_PrintAddStr [16:43:06]wPrintStart [16:43:06]Write to MH i2c: 01 00 00 A5 1F C4 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 07 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 07 00 A5 1F 00 00 00 00 00 FF 0F D9 [16:43:06]RasterBufferAndPrint [16:43:06]line Счет N : (1)245225 [16:43:06]line ИНН: 02508201610067 [16:43:06]line Контрольно-Кассовый Чек [16:43:06]line ПРОДАЖА [16:43:06]line ТРК (МРК, ГНК) : 21 [16:43:06]line Товар: 2710124130 [16:43:06]line Аи-92-К-2 [16:43:06]line 2.990 * 66.90 [16:43:06]line = 200.03 [16:43:06]line НДС 12% НСП 1% [16:43:06]line > о реализуемом товаре [16:43:06]line ОКРУГЛЕНИЕ: -0.03 [16:43:06]line ИТОГО: 200.00 [16:43:06]line Внесено: 200.00 [16:43:06]line СДАЧА: 0.00 [16:43:06]line НСП 1% : 1.77 [16:43:06]line НДС 12% : 21.24 [16:43:06]line Наличными: 200.00 [16:43:06]line Безнал.: 0.00 [16:43:06]line Место: АЗС № 173 "Партнер Нефть" [16:43:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:43:06]line СНО: Общий режим [16:43:06]line Чек 149 27.10.2024 16:43 [16:43:06]line Смена: 542 ФФД: 1.0 [16:43:06]line ЗНМ: 0300000115 [16:43:06]line РНМ: 0000000000091782 [16:43:06]line Версия ККМ: 001 [16:43:06]line ФМ: 0000000000871767 [16:43:06]line ФД: 117449 [16:43:06]line ФПД: 1876614361261 [16:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164307&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117449&fm=1876614361261&tin=02508201610067®Number=0000000000091782&sum=20000 [16:43:06]written 0, free lines is 4095 [16:43:06]OFD Sender: Processing packet 117449 [packets to send 76, broken 75] [16:43:06]ProducePacketName [16:43:06]name=ofd_packets/00117449 [16:43:06]OFD Sender: To server: pG, [16:43:06]CommunicateWithHost lk.salyk.kg:30040 [16:43:06]ConnectInit lk.salyk.kg [16:43:06]Write to MH i2c: 01 00 00 CF 1F EE [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 07 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 07 00 CF 1F 00 00 00 00 00 AB 0C AC [16:43:06]RasterBufferAndPrint [16:43:06]line [16:43:06]line [16:43:06]line [16:43:06]line [16:43:06]line [16:43:06]written 0, free lines is 3249 [16:43:07]Connected sock=10 [16:43: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 36 37 0F 01 00 00 1B 98 07 01 94 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 9B 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C9 CA 01 00 35 04 06 00 01 B4 EE EE B0 AD 18 AF 01 0C 2D 20 A2 B5 [16:43:07]MH_Cut [16:43:07]Write to MH i2c: D1 01 00 D6 1F 01 C7 [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: D1 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: D1 01 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: D1 01 00 D6 1F 00 C6 [16:43:07]Write to MH i2c: 01 00 00 D7 1F F6 [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43: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 36 37 4F 00 00 00 75 D8 47 00 E5 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 36 37 10 04 04 00 C9 CA 01 00 F4 03 04 00 58 19 1E 67 B6 04 01 00 00 9F 5D 5D 47 45 27 FF D6 [16:43:07]CommunicateWithHost err = 0 [16:43:07]CheckOFDResponse [16:43:07]1017 (14) - 77093643461234 [16:43:07]1041 (16) - 0000000000871767 [16:43:07]1040 (4) - 117449 [16:43:07]1012 (4) - 27.10.2024 10:43 [16:43:07]1206 (1) - 0 [16:43:07]OFD Sender: Remove packet 117449 [16:43:07]ProducePacketName [16:43:07]name=ofd_packets/00117449 [16:43:07]NVStorageDeleteData [16:43:07]OFD Sender: No OFD packet to send [16:43:07]*** Cut start [16:43:07]*** Purtial cut [16:43:07]*** Stage 1: CUTSNS_PIN = 1 [16:43:08]Read from MH i2c: 01 [16:43:08]MH_I2C_Read... [16:43:08]*** Stop cut motor [16:43:08]*** Cut end [16:43:08]Read from MH i2c: 01 07 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: 01 07 00 D7 1F 00 00 00 00 00 FF 0F 0B [16:43:08]process_action close_receipt done [16:43:08]requested_data is exist [16:43:08]produce_requested_data [16:43:08]requested_item fm.sn is exist - process it [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 11 00 00 [16:43:08]Write to MH i2c: E2 08 00 D8 1F 80 11 00 00 00 00 00 00 71 [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 17 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 17 00 D8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C8 [16:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:43:08]wFMCommunicate OK [16:43:08]requested_item fd.num is exist - process it [16:43:08]SAM_PROTO_GetFieldsCounters [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 13 00 00 [16:43:08]Write to MH i2c: E2 08 00 D9 1F 80 13 00 00 00 00 00 00 74 [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 62 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 62 00 D9 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C9 CA 01 00 0E 04 04 00 1E 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 0E [16:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C9 CA 01 00 0E 04 04 00 1E 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 [16:43:08]wFMCommunicate OK [16:43:08]SAM_PROTO_GetFieldsCounters done [16:43:08]requested_item shift.num is exist - process it [16:43:08]requested_item shift.opened is exist - process it [16:43:08]req_shift_opened [16:43:08]FM_GetShiftState [16:43:08]SAM_PROTO_GetShiftState [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 13 01 00 [16:43:08]Write to MH i2c: E2 08 00 DA 1F 80 13 01 00 00 00 00 00 76 [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 0E 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 0E 00 DA 1F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B5 [16:43:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:43:08]wFMCommunicate OK [16:43:08]SAM_PROTO_GetShiftState done [16:43:08]FM_GetShiftState done [16:43:08]req_shift_opened done [16:43:08]requested_item shift.open_date is exist - process it [16:43:08]req_shift_open_date [16:43:08]req_shift_open_date done [16:43:08]produce_requested_data done [16:43:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117449,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:43:08]process_action_free close_receipt [16:43:08]json_value_free [16:43:08]json_value_free done [16:43:08]process_json_proto returns [16:43:08]Send response to host [16:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117449,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:43:08]free response buf [16:43:08]execute_script done [16:43:08]execute_script returns [16:43:08]free content buf [16:43:08]Sock 7.Close socket [16:43:08]Sock 7.Thread stoped [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:56]accept exits with 9 [16:44:56]New connection [16:44:56]New thread 3067456868 created [16:44:56]Thread 3067600228 joined [16:44:56]Waiting for new connection... [16:44:56] Sock 9.Parse request [16:44:56]Sock 9.Check first char [16:44:56]Sock 9.First char is OK [16:44:56]request: POST /json_proto HTTP/1.0 [16:44:56]Method: POST [16:44:56]URL: /json_proto [16:44:56]Method is POST - this is cgi request [16:44:56]url: /json_proto [16:44:56]query_string will be loaded in cgi processing [16:44:56]execute_cgi json_proto POST (null) [16:44:56]execute_cgi path=json_proto method=POST [16:44:56]POST find Content-Length [16:44:56]Host: 172.17.96.67:8080 [16:44:56]Content-Length: 677 [16:44:56]Content-Type: application/json [16:44:56] [16:44:56]POST finish read [16:44:56]Found Content-Length = 677 [16:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:44:56]execute_script... [16:44: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)245226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:44:56]POST & json_proto [16:44:56]process_json_proto [16:44:56]json parsed OK: [16:44:56]protocol is kg_v1.0 [16:44:56]action value=close_receipt [16:44:56]process_action close_receipt [16:44:56]cmd_close_receipt [16:44:56]MH_GetDate [16:44:56]Write to MH i2c: F0 00 00 DB 1F E9 [16:44:56]Write i2c OK [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: F0 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: F0 09 00 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: F0 09 00 DB 1F 00 0A 6E 1E 67 2B 09 1E 67 A8 [16:44:56]GetLastDocTimeStamp 1730047387 [16:44:56]current date 1730047498 [16:44:56]FM_GetShiftState [16:44:56]SAM_PROTO_GetShiftState [16:44:56]wFMCommunicate request_size=4 [16:44:56]MH_SAM_APDU [16:44:56]CAPDU: 80 13 01 00 [16:44:56]Write to MH i2c: E2 08 00 DC 1F 80 13 01 00 00 00 00 00 78 [16:44:56]Write i2c OK [16:44:56]MH_I2C_Read... [16:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:56]Read from MH i2c: E2 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: E2 0E 00 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: E2 0E 00 DC 1F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B7 [16:44:56]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:44:56]wFMCommunicate OK [16:44:56]SAM_PROTO_GetShiftState done [16:44:56]FM_GetShiftState done [16:44:56]opened in 1729987372 [16:44:56]opened+sec_in_day 1730073772 [16:44:56]quantity*price = 50041 [16:44:56]sum+1 = 50042 [16:44: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 150 27.10.2024 16:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117450 ФПД: 54873097693248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164458&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117450&fm=54873097693248&tin=02508201610067®Number=0000000000091782&sum=50000 [16:44:57]StoreToDocumentArchive [16:44:57]shift 542 fd 117450 [16:44:57]save to /storage/0542/doc_00117450 [16:44:57]save last doc name /storage/0542/doc_00117450 to /storage/kkm_last_doc_name [16:44:57]save OK [16:44:57]Clear old archive folders... [16:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:57]tlvbuf is 01784310 [16:44:57]SAM_PROTO_ClearQueue [16:44:57]wFMCommunicate request_size=4 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 09 00 00 [16:44:57]Write to MH i2c: E2 08 00 E9 1F 80 09 00 00 00 00 00 00 7A [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 E9 1F 00 90 00 7C [16:44:57]RAPDU: 90 00 [16:44:57]wFMCommunicate OK [16:44:57]SAM_PROTO_ClearQueue done [16:44:57]KKMCreateOFDPacket [16:44:57]OFDProtocolAddRootSTLVToBuf [16:44:57]FM_MakeSignedData [16:44:57]FM_MakeSignedData [16:44:57]SAM_PROTO_SignData [16:44:57]wFMCommunicate request_size=4 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 0D 01 02 [16:44:57]Write to MH i2c: E2 08 00 EA 1F 80 0D 01 02 00 00 00 00 82 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 EA 1F 00 90 00 7D [16:44:57]RAPDU: 90 00 [16:44:57]wFMCommunicate OK [16:44:57]wFMCommunicate request_size=255 [16:44:57]MH_SAM_APDU [16:44: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 96 00 00 00 F4 03 04 00 0A 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CA CA 01 00 35 04 06 00 31 [16:44:57]Write to MH i2c: E2 02 01 EB 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 96 00 00 00 F4 03 04 00 0A 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CA CA 01 00 35 04 06 00 31 00 00 8D [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 EB 1F 00 90 00 7E [16:44:57]RAPDU: 90 00 [16:44:57]wFMCommunicate OK [16:44:57]wFMCommunicate request_size=10 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 0D 02 02 05 E8 23 7E E8 40 [16:44:57]Write to MH i2c: E2 0D 00 EC 1F 80 0D 02 02 05 00 E8 23 7E E8 40 00 00 40 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [16:44:57]RAPDU: 90 00 [16:44:57]wFMCommunicate OK [16:44:57]wFMCommunicate request_size=4 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 0D 03 02 [16:44:57]Write to MH i2c: E2 08 00 ED 1F 80 0D 03 02 00 00 00 00 87 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 0B 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 0B 00 ED 1F 00 53 95 22 55 D4 AB F1 40 90 00 97 [16:44:57]RAPDU: 53 95 22 55 D4 AB F1 40 90 00 [16:44:57]wFMCommunicate OK [16:44:57]SAM_PROTO_SignData done [16:44:57]FM_MakeSignedData done [16:44:57]CreateOFDProtocolMessage [16:44:57]wFMCommunicate request_size=4 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 11 00 00 [16:44:57]Write to MH i2c: E2 08 00 EE 1F 80 11 00 00 00 00 00 00 87 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 17 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 17 00 EE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DE [16:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:44:57]wFMCommunicate OK [16:44:57]CreateOFDProtocolMessage done [16:44:57]OFDSenderStorePacket 117450 [16:44:57]StoreOFDPacket docnum=117450 [16:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 77 89 07 01 1A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0A 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CA CA 01 00 35 04 06 00 31 E8 23 7E E8 40 53 95 22 55 D4 AB F1 40 [16:44:57]CheckFolder [16:44:57]dirname=/storage/ofd_packets [16:44:57]CheckFolder done [16:44:57]ProducePacketName [16:44:57]name=ofd_packets/00117450 [16:44:57]NVStorageSaveData ofd_packets/00117450 [16:44:57]File name is /storage/ofd_packets/00117450 [16:44:57]Write 301 bytes [16:44:57]NVStorageSaveData done [16:44:57]OFDSenderStorePacket done [16:44:57]KKMCreateOFDPacket done [16:44:57]NVStorageSaveData kkm_last_timestamp [16:44:57]File name is /storage/kkm_last_timestamp [16:44:57]Write 4 bytes [16:44:57]NVStorageSaveData done [16:44:57]ExternCall_PrintAddStr [16:44:57]wPrintStart [16:44:57]Write to MH i2c: 01 00 00 EF 1F 0E [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: 01 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: 01 07 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: 01 07 00 EF 1F 00 00 00 00 00 FF 0F 23 [16:44:57]RasterBufferAndPrint [16:44:57]line Счет N : (1)245226 [16:44:57]line ИНН: 02508201610067 [16:44:57]line Контрольно-Кассовый Чек [16:44:57]line ПРОДАЖА [16:44:57]line ТРК (МРК, ГНК) : 21 [16:44:57]line Товар: 2710124130 [16:44:57]line Аи-92-К-2 [16:44:57]line 7.480 * 66.90 [16:44:57]line = 500.41 [16:44:57]line НДС 12% НСП 1% [16:44:57]line > о реализуемом товаре [16:44:57]line ОКРУГЛЕНИЕ: -0.41 [16:44:57]line ИТОГО: 500.00 [16:44:57]line Внесено: 500.00 [16:44:57]line СДАЧА: 0.00 [16:44:57]line НСП 1% : 4.43 [16:44:57]line НДС 12% : 53.14 [16:44:57]line Наличными: 500.00 [16:44:57]line Безнал.: 0.00 [16:44:57]line Место: АЗС № 173 "Партнер Нефть" [16:44:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:44:57]line СНО: Общий режим [16:44:57]line Чек 150 27.10.2024 16:44 [16:44:57]line Смена: 542 ФФД: 1.0 [16:44:57]line ЗНМ: 0300000115 [16:44:57]line РНМ: 0000000000091782 [16:44:57]line Версия ККМ: 001 [16:44:57]line ФМ: 0000000000871767 [16:44:57]line ФД: 117450 [16:44:57]line ФПД: 54873097693248 [16:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164458&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117450&fm=54873097693248&tin=02508201610067®Number=0000000000091782&sum=50000 [16:44:58]written 0, free lines is 4095 [16:44:58]OFD Sender: Processing packet 117450 [packets to send 76, broken 75] [16:44:58]ProducePacketName [16:44:58]name=ofd_packets/00117450 [16:44:58]OFD Sender: To server: pG, [16:44:58]CommunicateWithHost lk.salyk.kg:30040 [16:44:58]ConnectInit lk.salyk.kg [16:44:58]Connected sock=10 [16:44: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 36 37 0F 01 00 00 77 89 07 01 1A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0A 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CA CA 01 00 35 04 06 00 31 E8 23 7E E8 40 53 95 22 55 D4 AB F1 40 [16:44: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 36 37 4F 00 00 00 D2 38 47 00 D3 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 36 37 10 04 04 00 CA CA 01 00 F4 03 04 00 C7 19 1E 67 B6 04 01 00 00 C1 0C 7A 50 FF 74 41 C8 [16:44:58]CommunicateWithHost err = 0 [16:44:58]CheckOFDResponse [16:44:58]1017 (14) - 77093643461234 [16:44:58]1041 (16) - 0000000000871767 [16:44:58]1040 (4) - 117450 [16:44:58]1012 (4) - 27.10.2024 10:45 [16:44:58]1206 (1) - 0 [16:44:58]OFD Sender: Remove packet 117450 [16:44:58]ProducePacketName [16:44:58]name=ofd_packets/00117450 [16:44:58]NVStorageDeleteData [16:44:58]Write to MH i2c: 01 00 00 19 20 39 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: 01 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: 01 07 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: 01 07 00 19 20 00 00 00 00 00 AF 0C FB [16:44:58]RasterBufferAndPrint [16:44:58]line [16:44:58]line [16:44:58]line [16:44:58]line [16:44:58]line [16:44:58]written 0, free lines is 3253 [16:44:58]MH_Cut [16:44:58]Write to MH i2c: D1 01 00 20 20 01 12 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: D1 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: D1 01 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: D1 01 00 20 20 00 11 [16:44:58]Write to MH i2c: 01 00 00 21 20 41 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:59]OFD Sender: No OFD packet to send [16:44:59]*** Cut start [16:44:59]*** Purtial cut [16:44:59]*** Stage 1: CUTSNS_PIN = 1 [16:44:59]Read from MH i2c: 01 [16:44:59]MH_I2C_Read... [16:44:59]*** Stop cut motor [16:44:59]*** Cut end [16:44:59]Read from MH i2c: 01 07 00 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 FF 0F 56 [16:44:59]process_action close_receipt done [16:44:59]requested_data is exist [16:44:59]produce_requested_data [16:44:59]requested_item fm.sn is exist - process it [16:44:59]wFMCommunicate request_size=4 [16:44:59]MH_SAM_APDU [16:44:59]CAPDU: 80 11 00 00 [16:44:59]Write to MH i2c: E2 08 00 22 20 80 11 00 00 00 00 00 00 BC [16:44:59]Write i2c OK [16:44:59]MH_I2C_Read... [16:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:59]Read from MH i2c: E2 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: E2 17 00 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: E2 17 00 22 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 13 [16:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:44:59]wFMCommunicate OK [16:44:59]requested_item fd.num is exist - process it [16:44:59]SAM_PROTO_GetFieldsCounters [16:44:59]wFMCommunicate request_size=4 [16:44:59]MH_SAM_APDU [16:44:59]CAPDU: 80 13 00 00 [16:44:59]Write to MH i2c: E2 08 00 23 20 80 13 00 00 00 00 00 00 BF [16:44:59]Write i2c OK [16:44:59]MH_I2C_Read... [16:44:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:59]Read from MH i2c: E2 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: E2 62 00 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: E2 62 00 23 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CA CA 01 00 0E 04 04 00 1E 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 5D [16:44: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CA CA 01 00 0E 04 04 00 1E 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 [16:44:59]wFMCommunicate OK [16:44:59]SAM_PROTO_GetFieldsCounters done [16:44:59]requested_item shift.num is exist - process it [16:44:59]requested_item shift.opened is exist - process it [16:44:59]req_shift_opened [16:44:59]FM_GetShiftState [16:44:59]SAM_PROTO_GetShiftState [16:44:59]wFMCommunicate request_size=4 [16:44:59]MH_SAM_APDU [16:44:59]CAPDU: 80 13 01 00 [16:44:59]Write to MH i2c: E2 08 00 24 20 80 13 01 00 00 00 00 00 C1 [16:44:59]Write i2c OK [16:44:59]MH_I2C_Read... [16:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:59]Read from MH i2c: E2 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: E2 0E 00 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: E2 0E 00 24 20 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 00 [16:44:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:44:59]wFMCommunicate OK [16:44:59]SAM_PROTO_GetShiftState done [16:44:59]FM_GetShiftState done [16:44:59]req_shift_opened done [16:44:59]requested_item shift.open_date is exist - process it [16:44:59]req_shift_open_date [16:44:59]req_shift_open_date done [16:44:59]produce_requested_data done [16:44:59]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117450,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:44:59]process_action_free close_receipt [16:44:59]json_value_free [16:44:59]json_value_free done [16:44:59]process_json_proto returns [16:44:59]Send response to host [16:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117450,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:44:59]free response buf [16:44:59]execute_script done [16:44:59]execute_script returns [16:44:59]free content buf [16:44:59]Sock 9.Close socket [16:44:59]Sock 9.Thread stoped [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:55]accept exits with 7 [16:49:55]New connection [16:49:55]New thread 3067600228 created [16:49:55]Thread 3067456868 joined [16:49:55]Waiting for new connection... [16:49:55] Sock 7.Parse request [16:49:55]Sock 7.Check first char [16:49:55]Sock 7.First char is OK [16:49:55]request: POST /json_proto HTTP/1.0 [16:49:55]Method: POST [16:49:55]URL: /json_proto [16:49:55]Method is POST - this is cgi request [16:49:55]url: /json_proto [16:49:55]query_string will be loaded in cgi processing [16:49:55]execute_cgi json_proto POST (null) [16:49:55]execute_cgi path=json_proto method=POST [16:49:55]POST find Content-Length [16:49:55]Host: 172.17.96.67:8080 [16:49:55]Content-Length: 677 [16:49:55]Content-Type: application/json [16:49:55] [16:49:55]POST finish read [16:49:55]Found Content-Length = 677 [16:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:49:55]execute_script... [16:49: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)245228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:49:55]POST & json_proto [16:49:55]process_json_proto [16:49:55]json parsed OK: [16:49:55]protocol is kg_v1.0 [16:49:55]action value=close_receipt [16:49:55]process_action close_receipt [16:49:55]cmd_close_receipt [16:49:55]MH_GetDate [16:49:55]Write to MH i2c: F0 00 00 25 20 34 [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: F0 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: F0 09 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: F0 09 00 25 20 00 35 6F 1E 67 2B 09 1E 67 1F [16:49:55]GetLastDocTimeStamp 1730047498 [16:49:55]current date 1730047797 [16:49:55]FM_GetShiftState [16:49:55]SAM_PROTO_GetShiftState [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 13 01 00 [16:49:55]Write to MH i2c: E2 08 00 26 20 80 13 01 00 00 00 00 00 C3 [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 0E 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 0E 00 26 20 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 02 [16:49:55]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:49:55]wFMCommunicate OK [16:49:55]SAM_PROTO_GetShiftState done [16:49:55]FM_GetShiftState done [16:49:55]opened in 1729987372 [16:49:55]opened+sec_in_day 1730073772 [16:49:55]quantity*price = 50041 [16:49:55]sum+1 = 50042 [16:49: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 151 27.10.2024 16:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117451 ФПД: 129776191915633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164958&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117451&fm=129776191915633&tin=02508201610067®Number=0000000000091782&sum=50000 [16:49:56]StoreToDocumentArchive [16:49:56]shift 542 fd 117451 [16:49:56]save to /storage/0542/doc_00117451 [16:49:56]save last doc name /storage/0542/doc_00117451 to /storage/kkm_last_doc_name [16:49:56]save OK [16:49:56]Clear old archive folders... [16:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:56]tlvbuf is 016DA0A0 [16:49:56]SAM_PROTO_ClearQueue [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 09 00 00 [16:49:56]Write to MH i2c: E2 08 00 33 20 80 09 00 00 00 00 00 00 C5 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 33 20 00 90 00 C7 [16:49:56]RAPDU: 90 00 [16:49:56]wFMCommunicate OK [16:49:56]SAM_PROTO_ClearQueue done [16:49:56]KKMCreateOFDPacket [16:49:56]OFDProtocolAddRootSTLVToBuf [16:49:56]FM_MakeSignedData [16:49:56]FM_MakeSignedData [16:49:56]SAM_PROTO_SignData [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 0D 01 02 [16:49:56]Write to MH i2c: E2 08 00 34 20 80 0D 01 02 00 00 00 00 CD [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 34 20 00 90 00 C8 [16:49:56]RAPDU: 90 00 [16:49:56]wFMCommunicate OK [16:49:56]wFMCommunicate request_size=255 [16:49:56]MH_SAM_APDU [16:49: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 97 00 00 00 F4 03 04 00 36 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CB CA 01 00 35 04 06 00 76 [16:49:56]Write to MH i2c: E2 02 01 35 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 97 00 00 00 F4 03 04 00 36 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CB CA 01 00 35 04 06 00 76 00 00 4C [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:57]Read from MH i2c: E2 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 03 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 03 00 35 20 00 90 00 C9 [16:49:57]RAPDU: 90 00 [16:49:57]wFMCommunicate OK [16:49:57]wFMCommunicate request_size=10 [16:49:57]MH_SAM_APDU [16:49:57]CAPDU: 80 0D 02 02 05 07 DF D1 C6 71 [16:49:57]Write to MH i2c: E2 0D 00 36 20 80 0D 02 02 05 00 07 DF D1 C6 71 00 00 C8 [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:57]Read from MH i2c: E2 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 03 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 03 00 36 20 00 90 00 CA [16:49:57]RAPDU: 90 00 [16:49:57]wFMCommunicate OK [16:49:57]wFMCommunicate request_size=4 [16:49:57]MH_SAM_APDU [16:49:57]CAPDU: 80 0D 03 02 [16:49:57]Write to MH i2c: E2 08 00 37 20 80 0D 03 02 00 00 00 00 D2 [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:57]Read from MH i2c: E2 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 0B 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 0B 00 37 20 00 3F 1A D0 85 3B 7B C2 B9 90 00 B2 [16:49:57]RAPDU: 3F 1A D0 85 3B 7B C2 B9 90 00 [16:49:57]wFMCommunicate OK [16:49:57]SAM_PROTO_SignData done [16:49:57]FM_MakeSignedData done [16:49:57]CreateOFDProtocolMessage [16:49:57]wFMCommunicate request_size=4 [16:49:57]MH_SAM_APDU [16:49:57]CAPDU: 80 11 00 00 [16:49:57]Write to MH i2c: E2 08 00 38 20 80 11 00 00 00 00 00 00 D2 [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:57]Read from MH i2c: E2 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 17 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 17 00 38 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 29 [16:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:49:57]wFMCommunicate OK [16:49:57]CreateOFDProtocolMessage done [16:49:57]OFDSenderStorePacket 117451 [16:49:57]StoreOFDPacket docnum=117451 [16:49:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FC 51 07 01 33 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 97 00 00 00 F4 03 04 00 36 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CB CA 01 00 35 04 06 00 76 07 DF D1 C6 71 3F 1A D0 85 3B 7B C2 B9 [16:49:57]CheckFolder [16:49:57]dirname=/storage/ofd_packets [16:49:57]CheckFolder done [16:49:57]ProducePacketName [16:49:57]name=ofd_packets/00117451 [16:49:57]NVStorageSaveData ofd_packets/00117451 [16:49:57]File name is /storage/ofd_packets/00117451 [16:49:57]Write 301 bytes [16:49:57]NVStorageSaveData done [16:49:57]OFDSenderStorePacket done [16:49:57]KKMCreateOFDPacket done [16:49:57]NVStorageSaveData kkm_last_timestamp [16:49:57]File name is /storage/kkm_last_timestamp [16:49:57]Write 4 bytes [16:49:57]NVStorageSaveData done [16:49:57]OFD Sender: Processing packet 117451 [packets to send 76, broken 75] [16:49:57]ProducePacketName [16:49:57]name=ofd_packets/00117451 [16:49:57]OFD Sender: To server: pG, [16:49:57]CommunicateWithHost lk.salyk.kg:30040 [16:49:57]ConnectInit lk.salyk.kg [16:49:57]ExternCall_PrintAddStr [16:49:57]wPrintStart [16:49:57]Write to MH i2c: 01 00 00 39 20 59 [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: 01 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: 01 07 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: 01 07 00 39 20 00 00 00 00 00 FF 0F 6E [16:49:57]RasterBufferAndPrint [16:49:57]line Счет N : (1)245228 [16:49:57]line ИНН: 02508201610067 [16:49:57]line Контрольно-Кассовый Чек [16:49:57]line ПРОДАЖА [16:49:57]line ТРК (МРК, ГНК) : 11 [16:49:57]line Товар: 2710124130 [16:49:57]line Аи-92-К-2 [16:49:57]line 7.480 * 66.90 [16:49:57]line = 500.41 [16:49:57]line НДС 12% НСП 1% [16:49:57]line > о реализуемом товаре [16:49:57]line ОКРУГЛЕНИЕ: -0.41 [16:49:57]line ИТОГО: 500.00 [16:49:57]line Внесено: 500.00 [16:49:57]line СДАЧА: 0.00 [16:49:57]line НСП 1% : 4.43 [16:49:57]line НДС 12% : 53.14 [16:49:57]line Наличными: 500.00 [16:49:57]line Безнал.: 0.00 [16:49:57]line Место: АЗС № 173 "Партнер Нефть" [16:49:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:49:57]line СНО: Общий режим [16:49:57]line Чек 151 27.10.2024 16:49 [16:49:57]line Смена: 542 ФФД: 1.0 [16:49:57]line ЗНМ: 0300000115 [16:49:57]line РНМ: 0000000000091782 [16:49:57]line Версия ККМ: 001 [16:49:57]line ФМ: 0000000000871767 [16:49:57]line ФД: 117451 [16:49:57]line ФПД: 129776191915633 [16:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164958&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117451&fm=129776191915633&tin=02508201610067®Number=0000000000091782&sum=50000 [16:49:57]Connected sock=11 [16:49: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 36 37 0F 01 00 00 FC 51 07 01 33 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 97 00 00 00 F4 03 04 00 36 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CB CA 01 00 35 04 06 00 76 07 DF D1 C6 71 3F 1A D0 85 3B 7B C2 B9 [16:49:57]written 0, free lines is 4095 [16:49: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 36 37 4F 00 00 00 BE 86 47 00 49 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CB CA 01 00 F4 03 04 00 F2 1A 1E 67 B6 04 01 00 00 66 16 E2 B6 70 8D 69 5A [16:49:57]CommunicateWithHost err = 0 [16:49:57]CheckOFDResponse [16:49:57]1017 (14) - 77093643461234 [16:49:57]1041 (16) - 0000000000871767 [16:49:57]1040 (4) - 117451 [16:49:57]1012 (4) - 27.10.2024 10:50 [16:49:57]1206 (1) - 0 [16:49:57]OFD Sender: Remove packet 117451 [16:49:57]ProducePacketName [16:49:57]name=ofd_packets/00117451 [16:49:57]NVStorageDeleteData [16:49:58]Write to MH i2c: 01 00 00 63 20 83 [16:49:58]Write i2c OK [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: 01 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: 01 07 00 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: 01 07 00 63 20 00 00 00 00 00 AB 0C 41 [16:49:58]RasterBufferAndPrint [16:49:58]line [16:49:58]line [16:49:58]line [16:49:58]line [16:49:58]line [16:49:58]written 0, free lines is 3249 [16:49:58]MH_Cut [16:49:58]Write to MH i2c: D1 01 00 6A 20 01 5C [16:49:58]Write i2c OK [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: D1 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: D1 01 00 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: D1 01 00 6A 20 00 5B [16:49:58]Write to MH i2c: 01 00 00 6B 20 8B [16:49:58]Write i2c OK [16:49:58]MH_I2C_Read... [16:49:58]OFD Sender: No OFD packet to send [16:49:58]*** Cut start [16:49:58]*** Purtial cut [16:49:58]*** Stage 1: CUTSNS_PIN = 1 [16:49:59]Read from MH i2c: 01 [16:49:59]MH_I2C_Read... [16:49:59]*** Stop cut motor [16:49:59]*** Cut end [16:49:59]Read from MH i2c: 01 07 00 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: 01 07 00 6B 20 00 00 00 00 00 FF 0F A0 [16:49:59]process_action close_receipt done [16:49:59]requested_data is exist [16:49:59]produce_requested_data [16:49:59]requested_item fm.sn is exist - process it [16:49:59]wFMCommunicate request_size=4 [16:49:59]MH_SAM_APDU [16:49:59]CAPDU: 80 11 00 00 [16:49:59]Write to MH i2c: E2 08 00 6C 20 80 11 00 00 00 00 00 00 06 [16:49:59]Write i2c OK [16:49:59]MH_I2C_Read... [16:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:59]Read from MH i2c: E2 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 17 00 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 17 00 6C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5D [16:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:49:59]wFMCommunicate OK [16:49:59]requested_item fd.num is exist - process it [16:49:59]SAM_PROTO_GetFieldsCounters [16:49:59]wFMCommunicate request_size=4 [16:49:59]MH_SAM_APDU [16:49:59]CAPDU: 80 13 00 00 [16:49:59]Write to MH i2c: E2 08 00 6D 20 80 13 00 00 00 00 00 00 09 [16:49:59]Write i2c OK [16:49:59]MH_I2C_Read... [16:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:59]Read from MH i2c: E2 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 62 00 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 62 00 6D 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CB CA 01 00 0E 04 04 00 1E 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 AB [16:49: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CB CA 01 00 0E 04 04 00 1E 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 [16:49:59]wFMCommunicate OK [16:49:59]SAM_PROTO_GetFieldsCounters done [16:49:59]requested_item shift.num is exist - process it [16:49:59]requested_item shift.opened is exist - process it [16:49:59]req_shift_opened [16:49:59]FM_GetShiftState [16:49:59]SAM_PROTO_GetShiftState [16:49:59]wFMCommunicate request_size=4 [16:49:59]MH_SAM_APDU [16:49:59]CAPDU: 80 13 01 00 [16:49:59]Write to MH i2c: E2 08 00 6E 20 80 13 01 00 00 00 00 00 0B [16:49:59]Write i2c OK [16:49:59]MH_I2C_Read... [16:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:59]Read from MH i2c: E2 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 0E 00 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 0E 00 6E 20 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 4A [16:49:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:49:59]wFMCommunicate OK [16:49:59]SAM_PROTO_GetShiftState done [16:49:59]FM_GetShiftState done [16:49:59]req_shift_opened done [16:49:59]requested_item shift.open_date is exist - process it [16:49:59]req_shift_open_date [16:49:59]req_shift_open_date done [16:49:59]produce_requested_data done [16:49:59]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117451,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:49:59]process_action_free close_receipt [16:49:59]json_value_free [16:49:59]json_value_free done [16:49:59]process_json_proto returns [16:49:59]Send response to host [16:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117451,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:49:59]free response buf [16:49:59]execute_script done [16:49:59]execute_script returns [16:49:59]free content buf [16:49:59]Sock 7.Close socket [16:49:59]Sock 7.Thread stoped [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:07]accept exits with 9 [16:51:07]New connection [16:51:07]New thread 3067456868 created [16:51:07]Thread 3067600228 joined [16:51:07]Waiting for new connection... [16:51:07] Sock 9.Parse request [16:51:07]Sock 9.Check first char [16:51:07]Sock 9.First char is OK [16:51:07]request: POST /json_proto HTTP/1.0 [16:51:07]Method: POST [16:51:07]URL: /json_proto [16:51:07]Method is POST - this is cgi request [16:51:07]url: /json_proto [16:51:07]query_string will be loaded in cgi processing [16:51:07]execute_cgi json_proto POST (null) [16:51:07]execute_cgi path=json_proto method=POST [16:51:07]POST find Content-Length [16:51:07]Host: 172.17.96.67:8080 [16:51:07]Content-Length: 984 [16:51:07]Content-Type: application/json [16:51:07] [16:51:07]POST finish read [16:51:07]Found Content-Length = 984 [16:51:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:07]execute_script... [16:51: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)245227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:07]POST & json_proto [16:51:07]process_json_proto [16:51:07]json parsed OK: [16:51:07]protocol is kg_v1.0 [16:51:07]action value=close_receipt [16:51:07]process_action close_receipt [16:51:07]cmd_close_receipt [16:51:07]MH_GetDate [16:51:07]Write to MH i2c: F0 00 00 6F 20 7E [16:51:07]Write i2c OK [16:51:07]MH_I2C_Read... [16:51:07]Read from MH i2c: F0 [16:51:07]MH_I2C_Read... [16:51:07]Read from MH i2c: F0 09 00 [16:51:07]MH_I2C_Read... [16:51:07]Read from MH i2c: F0 09 00 6F 20 00 7E 6F 1E 67 2B 09 1E 67 B2 [16:51:07]GetLastDocTimeStamp 1730047798 [16:51:07]current date 1730047870 [16:51:07]FM_GetShiftState [16:51:07]SAM_PROTO_GetShiftState [16:51:07]wFMCommunicate request_size=4 [16:51:07]MH_SAM_APDU [16:51:07]CAPDU: 80 13 01 00 [16:51:07]Write to MH i2c: E2 08 00 70 20 80 13 01 00 00 00 00 00 0D [16:51:08]Write i2c OK [16:51:08]MH_I2C_Read... [16:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:08]Read from MH i2c: E2 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 0E 00 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 0E 00 70 20 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 4C [16:51:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:51:08]wFMCommunicate OK [16:51:08]SAM_PROTO_GetShiftState done [16:51:08]FM_GetShiftState done [16:51:08]opened in 1729987372 [16:51:08]opened+sec_in_day 1730073772 [16:51:08]quantity*price = 200006 [16:51:08]sum+1 = 200008 [16:51:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 152 27.10.2024 16:51 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 30.35 сом ФМ: 0000000000871767 ФД: 117452 ФПД: 84077392940719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165110&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117452&fm=84077392940719&tin=02508201610067®Number=0000000000091782&sum=200000 [16:51:09]StoreToDocumentArchive [16:51:09]shift 542 fd 117452 [16:51:09]save to /storage/0542/doc_00117452 [16:51:09]save last doc name /storage/0542/doc_00117452 to /storage/kkm_last_doc_name [16:51:09]save OK [16:51:09]Clear old archive folders... [16:51:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:09]tlvbuf is 016D5A60 [16:51:09]SAM_PROTO_ClearQueue [16:51:09]wFMCommunicate request_size=4 [16:51:09]MH_SAM_APDU [16:51:09]CAPDU: 80 09 00 00 [16:51:09]Write to MH i2c: E2 08 00 7D 20 80 09 00 00 00 00 00 00 0F [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:09]Read from MH i2c: E2 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 03 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 03 00 7D 20 00 90 00 11 [16:51:09]RAPDU: 90 00 [16:51:09]wFMCommunicate OK [16:51:09]SAM_PROTO_ClearQueue done [16:51:09]KKMCreateOFDPacket [16:51:09]OFDProtocolAddRootSTLVToBuf [16:51:09]FM_MakeSignedData [16:51:09]FM_MakeSignedData [16:51:09]SAM_PROTO_SignData [16:51:09]wFMCommunicate request_size=4 [16:51:09]MH_SAM_APDU [16:51:09]CAPDU: 80 0D 01 02 [16:51:09]Write to MH i2c: E2 08 00 7E 20 80 0D 01 02 00 00 00 00 17 [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:09]Read from MH i2c: E2 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 03 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 03 00 7E 20 00 90 00 12 [16:51:09]RAPDU: 90 00 [16:51:09]wFMCommunicate OK [16:51:09]wFMCommunicate request_size=255 [16:51:09]MH_SAM_APDU [16:51: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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7E 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CC CA 01 00 35 04 06 00 4C [16:51:09]Write to MH i2c: E2 02 01 7F 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7E 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CC CA 01 00 35 04 06 00 4C 00 00 3D [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:09]Read from MH i2c: E2 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 03 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 03 00 7F 20 00 90 00 13 [16:51:09]RAPDU: 90 00 [16:51:09]wFMCommunicate OK [16:51:09]wFMCommunicate request_size=10 [16:51:09]MH_SAM_APDU [16:51:09]CAPDU: 80 0D 02 02 05 77 CB 23 CE AF [16:51:09]Write to MH i2c: E2 0D 00 80 20 80 0D 02 02 05 00 77 CB 23 CE AF 00 00 06 [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:09]Read from MH i2c: E2 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 03 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 03 00 80 20 00 90 00 14 [16:51:09]RAPDU: 90 00 [16:51:09]wFMCommunicate OK [16:51:09]wFMCommunicate request_size=4 [16:51:09]MH_SAM_APDU [16:51:09]CAPDU: 80 0D 03 02 [16:51:09]Write to MH i2c: E2 08 00 81 20 80 0D 03 02 00 00 00 00 1C [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:09]Read from MH i2c: E2 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 0B 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 0B 00 81 20 00 51 60 F6 CE 85 D6 22 C6 90 00 D5 [16:51:09]RAPDU: 51 60 F6 CE 85 D6 22 C6 90 00 [16:51:09]wFMCommunicate OK [16:51:09]SAM_PROTO_SignData done [16:51:09]FM_MakeSignedData done [16:51:09]CreateOFDProtocolMessage [16:51:09]wFMCommunicate request_size=4 [16:51:09]MH_SAM_APDU [16:51:09]CAPDU: 80 11 00 00 [16:51:09]Write to MH i2c: E2 08 00 82 20 80 11 00 00 00 00 00 00 1C [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:09]Read from MH i2c: E2 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 17 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 17 00 82 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 73 [16:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:51:09]wFMCommunicate OK [16:51:09]CreateOFDProtocolMessage done [16:51:09]OFDSenderStorePacket 117452 [16:51:09]StoreOFDPacket docnum=117452 [16:51:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CE 05 07 01 2B 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7E 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CC CA 01 00 35 04 06 00 4C 77 CB 23 CE AF 51 60 F6 CE 85 D6 22 C6 [16:51:09]CheckFolder [16:51:09]dirname=/storage/ofd_packets [16:51:09]CheckFolder done [16:51:09]ProducePacketName [16:51:09]name=ofd_packets/00117452 [16:51:09]NVStorageSaveData ofd_packets/00117452 [16:51:09]File name is /storage/ofd_packets/00117452 [16:51:09]Write 301 bytes [16:51:09]NVStorageSaveData done [16:51:09]OFDSenderStorePacket done [16:51:09]KKMCreateOFDPacket done [16:51:09]NVStorageSaveData kkm_last_timestamp [16:51:09]File name is /storage/kkm_last_timestamp [16:51:09]Write 4 bytes [16:51:09]NVStorageSaveData done [16:51:09]ExternCall_PrintAddStr [16:51:09]wPrintStart [16:51:09]Write to MH i2c: 01 00 00 83 20 A3 [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: 01 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: 01 07 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: 01 07 00 83 20 00 00 00 00 00 FF 0F B8 [16:51:09]RasterBufferAndPrint [16:51:09]line Счет N : (1)245227 [16:51:09]line ИНН: 02508201610067 [16:51:09]line Контрольно-Кассовый Чек [16:51:09]line ПРОДАЖА [16:51:09]line ТРК (МРК, ГНК) : 21 [16:51:09]line Товар: 2710124130 [16:51:09]line Аи-92-К-2 [16:51:09]line 30.350 * 65.90 [16:51:09]line = 2000.07 [16:51:09]line НДС 12% НСП 1% [16:51:09]line > о реализуемом товаре [16:51:09]line ОКРУГЛЕНИЕ: -0.07 [16:51:09]line ИТОГО: 2000.00 [16:51:09]line Внесено: 2000.00 [16:51:09]line СДАЧА: 0.00 [16:51:09]line НСП 1% : 17.70 [16:51:09]line НДС 12% : 212.40 [16:51:09]line Наличными: 2000.00 [16:51:09]line Безнал.: 0.00 [16:51:09]line Место: АЗС № 173 "Партнер Нефть" [16:51:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:51:09]line СНО: Общий режим [16:51:09]line Чек 152 27.10.2024 16:51 [16:51:09]line Смена: 542 ФФД: 1.0 [16:51:09]line ЗНМ: 0300000115 [16:51:09]line РНМ: 0000000000091782 [16:51:09]line Версия ККМ: 001 [16:51:09]line [16:51:09]line Дисконтная программа [16:51:09]line АИ-92 [16:51:09]line номер 173 [16:51:09]line сэкономлено 30.35 сом [16:51:09]line ФМ: 0000000000871767 [16:51:09]line ФД: 117452 [16:51:09]line ФПД: 84077392940719 [16:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165110&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117452&fm=84077392940719&tin=02508201610067®Number=0000000000091782&sum=200000 [16:51:10]OFD Sender: Processing packet 117452 [packets to send 76, broken 75] [16:51:10]ProducePacketName [16:51:10]name=ofd_packets/00117452 [16:51:10]OFD Sender: To server: pG, [16:51:10]CommunicateWithHost lk.salyk.kg:30040 [16:51:10]ConnectInit lk.salyk.kg [16:51:10]written 0, free lines is 4095 [16:51:10]Connected sock=11 [16:51: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 36 37 0F 01 00 00 CE 05 07 01 2B 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7E 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CC CA 01 00 35 04 06 00 4C 77 CB 23 CE AF 51 60 F6 CE 85 D6 22 C6 [16:51: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 36 37 4F 00 00 00 32 D2 47 00 4C 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 36 37 10 04 04 00 CC CA 01 00 F4 03 04 00 3B 1B 1E 67 B6 04 01 00 00 60 68 87 42 ED 78 A5 26 [16:51:10]CommunicateWithHost err = 0 [16:51:10]CheckOFDResponse [16:51:10]1017 (14) - 77093643461234 [16:51:10]1041 (16) - 0000000000871767 [16:51:10]1040 (4) - 117452 [16:51:10]1012 (4) - 27.10.2024 10:51 [16:51:10]1206 (1) - 0 [16:51:10]OFD Sender: Remove packet 117452 [16:51:10]ProducePacketName [16:51:10]name=ofd_packets/00117452 [16:51:10]NVStorageDeleteData [16:51:10]Write to MH i2c: 01 00 00 B2 20 D2 [16:51:10]Write i2c OK [16:51:10]MH_I2C_Read... [16:51:10]Read from MH i2c: 01 [16:51:10]MH_I2C_Read... [16:51:10]Read from MH i2c: 01 07 00 [16:51:10]MH_I2C_Read... [16:51:10]Read from MH i2c: 01 07 00 B2 20 00 00 00 00 00 61 0C 46 [16:51:10]RasterBufferAndPrint [16:51:10]line [16:51:10]line [16:51:10]line [16:51:10]line [16:51:10]line [16:51:10]written 0, free lines is 3174 [16:51:10]MH_Cut [16:51:10]Write to MH i2c: D1 01 00 B9 20 01 AB [16:51:10]Write i2c OK [16:51:10]MH_I2C_Read... [16:51:10]Read from MH i2c: D1 [16:51:10]MH_I2C_Read... [16:51:10]Read from MH i2c: D1 01 00 [16:51:10]MH_I2C_Read... [16:51:10]Read from MH i2c: D1 01 00 B9 20 00 AA [16:51:10]Write to MH i2c: 01 00 00 BA 20 DA [16:51:10]Write i2c OK [16:51:10]MH_I2C_Read... [16:51:10]OFD Sender: No OFD packet to send [16:51:11]*** Cut start [16:51:11]*** Purtial cut [16:51:11]*** Stage 1: CUTSNS_PIN = 1 [16:51:11]Read from MH i2c: 01 [16:51:11]MH_I2C_Read... [16:51:11]*** Stop cut motor [16:51:11]*** Cut end [16:51:11]Read from MH i2c: 01 07 00 [16:51:11]MH_I2C_Read... [16:51:11]Read from MH i2c: 01 07 00 BA 20 00 00 00 00 00 FF 0F EF [16:51:11]process_action close_receipt done [16:51:11]requested_data is exist [16:51:11]produce_requested_data [16:51:11]requested_item fm.sn is exist - process it [16:51:11]wFMCommunicate request_size=4 [16:51:11]MH_SAM_APDU [16:51:11]CAPDU: 80 11 00 00 [16:51:11]Write to MH i2c: E2 08 00 BB 20 80 11 00 00 00 00 00 00 55 [16:51:11]Write i2c OK [16:51:11]MH_I2C_Read... [16:51:11]Read from MH i2c: E2 [16:51:11]MH_I2C_Read... [16:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:11]Read from MH i2c: E2 17 00 [16:51:11]MH_I2C_Read... [16:51:11]Read from MH i2c: E2 17 00 BB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AC [16:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:51:11]wFMCommunicate OK [16:51:11]requested_item fd.num is exist - process it [16:51:11]SAM_PROTO_GetFieldsCounters [16:51:11]wFMCommunicate request_size=4 [16:51:11]MH_SAM_APDU [16:51:11]CAPDU: 80 13 00 00 [16:51:11]Write to MH i2c: E2 08 00 BC 20 80 13 00 00 00 00 00 00 58 [16:51:11]Write i2c OK [16:51:11]MH_I2C_Read... [16:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:11]Read from MH i2c: E2 [16:51:11]MH_I2C_Read... [16:51:11]Read from MH i2c: E2 62 00 [16:51:11]MH_I2C_Read... [16:51:11]Read from MH i2c: E2 62 00 BC 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CC CA 01 00 0E 04 04 00 1E 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 FE [16:51: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CC CA 01 00 0E 04 04 00 1E 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 [16:51:11]wFMCommunicate OK [16:51:11]SAM_PROTO_GetFieldsCounters done [16:51:11]requested_item shift.num is exist - process it [16:51:11]requested_item shift.opened is exist - process it [16:51:11]req_shift_opened [16:51:11]FM_GetShiftState [16:51:11]SAM_PROTO_GetShiftState [16:51:11]wFMCommunicate request_size=4 [16:51:11]MH_SAM_APDU [16:51:11]CAPDU: 80 13 01 00 [16:51:11]Write to MH i2c: E2 08 00 BD 20 80 13 01 00 00 00 00 00 5A [16:51:11]Write i2c OK [16:51:11]MH_I2C_Read... [16:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:11]Read from MH i2c: E2 [16:51:11]MH_I2C_Read... [16:51:11]Read from MH i2c: E2 0E 00 [16:51:11]MH_I2C_Read... [16:51:11]Read from MH i2c: E2 0E 00 BD 20 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 99 [16:51:11]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:51:11]wFMCommunicate OK [16:51:11]SAM_PROTO_GetShiftState done [16:51:11]FM_GetShiftState done [16:51:11]req_shift_opened done [16:51:11]requested_item shift.open_date is exist - process it [16:51:11]req_shift_open_date [16:51:11]req_shift_open_date done [16:51:11]produce_requested_data done [16:51:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117452,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:51:11]process_action_free close_receipt [16:51:11]json_value_free [16:51:11]json_value_free done [16:51:11]process_json_proto returns [16:51:11]Send response to host [16:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117452,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:51:11]free response buf [16:51:11]execute_script done [16:51:11]execute_script returns [16:51:11]free content buf [16:51:11]Sock 9.Close socket [16:51:11]Sock 9.Thread stoped [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:51:58]accept exits with 7 [16:51:58]New connection [16:51:58]New thread 3067600228 created [16:51:58]Thread 3067456868 joined [16:51:58]Waiting for new connection... [16:51:58] Sock 7.Parse request [16:51:58]Sock 7.Check first char [16:51:58]Sock 7.First char is OK [16:51:58]request: POST /json_proto HTTP/1.0 [16:51:58]Method: POST [16:51:58]URL: /json_proto [16:51:58]Method is POST - this is cgi request [16:51:58]url: /json_proto [16:51:58]query_string will be loaded in cgi processing [16:51:58]execute_cgi json_proto POST (null) [16:51:58]execute_cgi path=json_proto method=POST [16:51:58]POST find Content-Length [16:51:58]Host: 172.17.96.67:8080 [16:51:58]Content-Length: 677 [16:51:58]Content-Type: application/json [16:51:58] [16:51:58]POST finish read [16:51:58]Found Content-Length = 677 [16:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:51:58]execute_script... [16:51:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:51:58]POST & json_proto [16:51:58]process_json_proto [16:51:58]json parsed OK: [16:51:58]protocol is kg_v1.0 [16:51:58]action value=close_receipt [16:51:58]process_action close_receipt [16:51:58]cmd_close_receipt [16:51:58]MH_GetDate [16:51:58]Write to MH i2c: F0 00 00 BE 20 CD [16:51:58]Write i2c OK [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: F0 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: F0 09 00 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: F0 09 00 BE 20 00 B0 6F 1E 67 2B 09 1E 67 33 [16:51:58]GetLastDocTimeStamp 1730047870 [16:51:58]current date 1730047920 [16:51:58]FM_GetShiftState [16:51:58]SAM_PROTO_GetShiftState [16:51:58]wFMCommunicate request_size=4 [16:51:58]MH_SAM_APDU [16:51:58]CAPDU: 80 13 01 00 [16:51:58]Write to MH i2c: E2 08 00 BF 20 80 13 01 00 00 00 00 00 5C [16:51:58]Write i2c OK [16:51:58]MH_I2C_Read... [16:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:58]Read from MH i2c: E2 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: E2 0E 00 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: E2 0E 00 BF 20 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 9B [16:51:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:51:58]wFMCommunicate OK [16:51:58]SAM_PROTO_GetShiftState done [16:51:58]FM_GetShiftState done [16:51:58]opened in 1729987372 [16:51:58]opened+sec_in_day 1730073772 [16:51:58]quantity*price = 50041 [16:51:58]sum+1 = 50042 [16:51:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 153 27.10.2024 16:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117453 ФПД: 145639206689917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165200&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117453&fm=145639206689917&tin=02508201610067®Number=0000000000091782&sum=50000 [16:51:59]StoreToDocumentArchive [16:51:59]shift 542 fd 117453 [16:51:59]save to /storage/0542/doc_00117453 [16:51:59]save last doc name /storage/0542/doc_00117453 to /storage/kkm_last_doc_name [16:51:59]save OK [16:51:59]Clear old archive folders... [16:51:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:59]tlvbuf is B6F467A0 [16:51:59]SAM_PROTO_ClearQueue [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 09 00 00 [16:51:59]Write to MH i2c: E2 08 00 CC 20 80 09 00 00 00 00 00 00 5E [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 CC 20 00 90 00 60 [16:51:59]RAPDU: 90 00 [16:51:59]wFMCommunicate OK [16:51:59]SAM_PROTO_ClearQueue done [16:51:59]KKMCreateOFDPacket [16:51:59]OFDProtocolAddRootSTLVToBuf [16:51:59]FM_MakeSignedData [16:51:59]FM_MakeSignedData [16:51:59]SAM_PROTO_SignData [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 0D 01 02 [16:51:59]Write to MH i2c: E2 08 00 CD 20 80 0D 01 02 00 00 00 00 66 [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 CD 20 00 90 00 61 [16:51:59]RAPDU: 90 00 [16:51:59]wFMCommunicate OK [16:51:59]wFMCommunicate request_size=255 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B0 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CD CA 01 00 35 04 06 00 84 [16:51:59]Write to MH i2c: E2 02 01 CE 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B0 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CD CA 01 00 35 04 06 00 84 00 00 71 [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 CE 20 00 90 00 62 [16:51:59]RAPDU: 90 00 [16:51:59]wFMCommunicate OK [16:51:59]wFMCommunicate request_size=10 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 0D 02 02 05 75 45 2E 1C 7D [16:51:59]Write to MH i2c: E2 0D 00 CF 20 80 0D 02 02 05 00 75 45 2E 1C 7D 00 00 F4 [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 CF 20 00 90 00 63 [16:51:59]RAPDU: 90 00 [16:51:59]wFMCommunicate OK [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 0D 03 02 [16:51:59]Write to MH i2c: E2 08 00 D0 20 80 0D 03 02 00 00 00 00 6B [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 0B 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 0B 00 D0 20 00 7E 09 B9 1F 0F EC A0 39 90 00 9F [16:51:59]RAPDU: 7E 09 B9 1F 0F EC A0 39 90 00 [16:51:59]wFMCommunicate OK [16:51:59]SAM_PROTO_SignData done [16:51:59]FM_MakeSignedData done [16:51:59]CreateOFDProtocolMessage [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 11 00 00 [16:51:59]Write to MH i2c: E2 08 00 D1 20 80 11 00 00 00 00 00 00 6B [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 17 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 17 00 D1 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C2 [16:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:51:59]wFMCommunicate OK [16:51:59]CreateOFDProtocolMessage done [16:51:59]OFDSenderStorePacket 117453 [16:51:59]StoreOFDPacket docnum=117453 [16:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B5 82 07 01 66 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B0 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CD CA 01 00 35 04 06 00 84 75 45 2E 1C 7D 7E 09 B9 1F 0F EC A0 39 [16:51:59]CheckFolder [16:51:59]dirname=/storage/ofd_packets [16:51:59]CheckFolder done [16:51:59]ProducePacketName [16:51:59]name=ofd_packets/00117453 [16:51:59]NVStorageSaveData ofd_packets/00117453 [16:51:59]File name is /storage/ofd_packets/00117453 [16:51:59]Write 301 bytes [16:51:59]NVStorageSaveData done [16:51:59]OFDSenderStorePacket done [16:51:59]KKMCreateOFDPacket done [16:51:59]NVStorageSaveData kkm_last_timestamp [16:51:59]File name is /storage/kkm_last_timestamp [16:51:59]Write 4 bytes [16:51:59]NVStorageSaveData done [16:51:59]ExternCall_PrintAddStr [16:51:59]wPrintStart [16:51:59]Write to MH i2c: 01 00 00 D2 20 F2 [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: 01 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: 01 07 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: 01 07 00 D2 20 00 00 00 00 00 FF 0F 07 [16:51:59]RasterBufferAndPrint [16:51:59]line Счет N : (1)245229 [16:51:59]line ИНН: 02508201610067 [16:51:59]line Контрольно-Кассовый Чек [16:51:59]line ПРОДАЖА [16:51:59]line ТРК (МРК, ГНК) : 11 [16:51:59]line Товар: 2710124130 [16:51:59]line Аи-92-К-2 [16:51:59]line 7.480 * 66.90 [16:51:59]line = 500.41 [16:51:59]line НДС 12% НСП 1% [16:51:59]line > о реализуемом товаре [16:51:59]line ОКРУГЛЕНИЕ: -0.41 [16:51:59]line ИТОГО: 500.00 [16:51:59]line Внесено: 500.00 [16:51:59]line СДАЧА: 0.00 [16:51:59]line НСП 1% : 4.43 [16:51:59]line НДС 12% : 53.14 [16:51:59]line Наличными: 500.00 [16:51:59]line Безнал.: 0.00 [16:51:59]line Место: АЗС № 173 "Партнер Нефть" [16:51:59]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:51:59]line СНО: Общий режим [16:51:59]line Чек 153 27.10.2024 16:52 [16:51:59]line Смена: 542 ФФД: 1.0 [16:51:59]line ЗНМ: 0300000115 [16:51:59]line РНМ: 0000000000091782 [16:51:59]line Версия ККМ: 001 [16:51:59]line ФМ: 0000000000871767 [16:51:59]line ФД: 117453 [16:51:59]line ФПД: 145639206689917 [16:51:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165200&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117453&fm=145639206689917&tin=02508201610067®Number=0000000000091782&sum=50000 [16:52:00]written 0, free lines is 4095 [16:52:00]OFD Sender: Processing packet 117453 [packets to send 76, broken 75] [16:52:00]ProducePacketName [16:52:00]name=ofd_packets/00117453 [16:52:00]OFD Sender: To server: pG, [16:52:00]CommunicateWithHost lk.salyk.kg:30040 [16:52:00]ConnectInit lk.salyk.kg [16:52:00]Connected sock=10 [16:52:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B5 82 07 01 66 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B0 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CD CA 01 00 35 04 06 00 84 75 45 2E 1C 7D 7E 09 B9 1F 0F EC A0 39 [16:52: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 36 37 4F 00 00 00 7E D5 47 00 17 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 36 37 10 04 04 00 CD CA 01 00 F4 03 04 00 6D 1B 1E 67 B6 04 01 00 00 99 21 F8 79 22 C5 F8 C3 [16:52:00]CommunicateWithHost err = 0 [16:52:00]CheckOFDResponse [16:52:00]1017 (14) - 77093643461234 [16:52:00]1041 (16) - 0000000000871767 [16:52:00]1040 (4) - 117453 [16:52:00]1012 (4) - 27.10.2024 10:52 [16:52:00]1206 (1) - 0 [16:52:00]OFD Sender: Remove packet 117453 [16:52:00]ProducePacketName [16:52:00]name=ofd_packets/00117453 [16:52:00]NVStorageDeleteData [16:52:00]Write to MH i2c: 01 00 00 FC 20 1C [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: 01 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: 01 07 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: 01 07 00 FC 20 00 00 00 00 00 B3 0C E2 [16:52:00]RasterBufferAndPrint [16:52:00]line [16:52:00]line [16:52:00]line [16:52:00]line [16:52:00]line [16:52:00]written 0, free lines is 3257 [16:52:00]MH_Cut [16:52:00]Write to MH i2c: D1 01 00 03 21 01 F6 [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: D1 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: D1 01 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: D1 01 00 03 21 00 F5 [16:52:00]Write to MH i2c: 01 00 00 04 21 25 [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:01]OFD Sender: No OFD packet to send [16:52:01]*** Cut start [16:52:01]*** Purtial cut [16:52:01]*** Stage 1: CUTSNS_PIN = 1 [16:52:01]Read from MH i2c: 01 [16:52:01]MH_I2C_Read... [16:52:01]*** Stop cut motor [16:52:01]*** Cut end [16:52:01]Read from MH i2c: 01 07 00 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: 01 07 00 04 21 00 00 00 00 00 FF 0F 3A [16:52:01]process_action close_receipt done [16:52:01]requested_data is exist [16:52:01]produce_requested_data [16:52:01]requested_item fm.sn is exist - process it [16:52:01]wFMCommunicate request_size=4 [16:52:01]MH_SAM_APDU [16:52:01]CAPDU: 80 11 00 00 [16:52:01]Write to MH i2c: E2 08 00 05 21 80 11 00 00 00 00 00 00 A0 [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:01]Read from MH i2c: E2 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 17 00 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 17 00 05 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F7 [16:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:52:01]wFMCommunicate OK [16:52:01]requested_item fd.num is exist - process it [16:52:01]SAM_PROTO_GetFieldsCounters [16:52:01]wFMCommunicate request_size=4 [16:52:01]MH_SAM_APDU [16:52:01]CAPDU: 80 13 00 00 [16:52:01]Write to MH i2c: E2 08 00 06 21 80 13 00 00 00 00 00 00 A3 [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 62 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 62 00 06 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CD CA 01 00 0E 04 04 00 1E 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 4D [16:52: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CD CA 01 00 0E 04 04 00 1E 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 [16:52:02]wFMCommunicate OK [16:52:02]SAM_PROTO_GetFieldsCounters done [16:52:02]requested_item shift.num is exist - process it [16:52:02]requested_item shift.opened is exist - process it [16:52:02]req_shift_opened [16:52:02]FM_GetShiftState [16:52:02]SAM_PROTO_GetShiftState [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 13 01 00 [16:52:02]Write to MH i2c: E2 08 00 07 21 80 13 01 00 00 00 00 00 A5 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 0E 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 0E 00 07 21 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E4 [16:52:02]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:52:02]wFMCommunicate OK [16:52:02]SAM_PROTO_GetShiftState done [16:52:02]FM_GetShiftState done [16:52:02]req_shift_opened done [16:52:02]requested_item shift.open_date is exist - process it [16:52:02]req_shift_open_date [16:52:02]req_shift_open_date done [16:52:02]produce_requested_data done [16:52:02]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117453,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:52:02]process_action_free close_receipt [16:52:02]json_value_free [16:52:02]json_value_free done [16:52:02]process_json_proto returns [16:52:02]Send response to host [16:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117453,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:52:02]free response buf [16:52:02]execute_script done [16:52:02]execute_script returns [16:52:02]free content buf [16:52:02]Sock 7.Close socket [16:52:02]Sock 7.Thread stoped [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54: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:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:23]accept exits with 9 [16:56:23]New connection [16:56:23]New thread 3067456868 created [16:56:23]Thread 3067600228 joined [16:56:23]Waiting for new connection... [16:56:23] Sock 9.Parse request [16:56:23]Sock 9.Check first char [16:56:23]Sock 9.First char is OK [16:56:23]request: POST /json_proto HTTP/1.0 [16:56:23]Method: POST [16:56:23]URL: /json_proto [16:56:23]Method is POST - this is cgi request [16:56:23]url: /json_proto [16:56:23]query_string will be loaded in cgi processing [16:56:23]execute_cgi json_proto POST (null) [16:56:23]execute_cgi path=json_proto method=POST [16:56:23]POST find Content-Length [16:56:23]Host: 172.17.96.67:8080 [16:56:23]Content-Length: 682 [16:56:23]Content-Type: application/json [16:56:23] [16:56:23]POST finish read [16:56:23]Found Content-Length = 682 [16:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [16:56:23]execute_script... [16:56: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)245230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [16:56:23]POST & json_proto [16:56:23]process_json_proto [16:56:23]json parsed OK: [16:56:23]protocol is kg_v1.0 [16:56:23]action value=close_receipt [16:56:23]process_action close_receipt [16:56:23]cmd_close_receipt [16:56:23]MH_GetDate [16:56:23]Write to MH i2c: F0 00 00 08 21 18 [16:56:23]Write i2c OK [16:56:23]MH_I2C_Read... [16:56:23]Read from MH i2c: F0 [16:56:23]MH_I2C_Read... [16:56:23]Read from MH i2c: F0 09 00 [16:56:23]MH_I2C_Read... [16:56:23]Read from MH i2c: F0 09 00 08 21 00 B9 70 1E 67 2B 09 1E 67 88 [16:56:23]GetLastDocTimeStamp 1730047920 [16:56:23]current date 1730048185 [16:56:23]FM_GetShiftState [16:56:23]SAM_PROTO_GetShiftState [16:56:23]wFMCommunicate request_size=4 [16:56:23]MH_SAM_APDU [16:56:23]CAPDU: 80 13 01 00 [16:56:23]Write to MH i2c: E2 08 00 09 21 80 13 01 00 00 00 00 00 A7 [16:56:23]Write i2c OK [16:56:23]MH_I2C_Read... [16:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:23]Read from MH i2c: E2 [16:56:23]MH_I2C_Read... [16:56:23]Read from MH i2c: E2 0E 00 [16:56:23]MH_I2C_Read... [16:56:23]Read from MH i2c: E2 0E 00 09 21 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E6 [16:56:23]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:56:23]wFMCommunicate OK [16:56:23]SAM_PROTO_GetShiftState done [16:56:23]FM_GetShiftState done [16:56:23]opened in 1729987372 [16:56:23]opened+sec_in_day 1730073772 [16:56:23]quantity*price = 100015 [16:56:23]sum+1 = 100017 [16:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 154 27.10.2024 16:56 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117454 ФПД: 49000373212642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165625&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117454&fm=49000373212642&tin=02508201610067®Number=0000000000091782&sum=100000 [16:56:24]StoreToDocumentArchive [16:56:24]shift 542 fd 117454 [16:56:24]save to /storage/0542/doc_00117454 [16:56:24]save last doc name /storage/0542/doc_00117454 to /storage/kkm_last_doc_name [16:56:24]save OK [16:56:24]Clear old archive folders... [16:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:24]tlvbuf is B6F5FB70 [16:56:24]SAM_PROTO_ClearQueue [16:56:24]wFMCommunicate request_size=4 [16:56:24]MH_SAM_APDU [16:56:24]CAPDU: 80 09 00 00 [16:56:24]Write to MH i2c: E2 08 00 16 21 80 09 00 00 00 00 00 00 A9 [16:56:24]Write i2c OK [16:56:24]MH_I2C_Read... [16:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:24]Read from MH i2c: E2 [16:56:24]MH_I2C_Read... [16:56:24]Read from MH i2c: E2 03 00 [16:56:24]MH_I2C_Read... [16:56:24]Read from MH i2c: E2 03 00 16 21 00 90 00 AB [16:56:24]RAPDU: 90 00 [16:56:24]wFMCommunicate OK [16:56:24]SAM_PROTO_ClearQueue done [16:56:24]KKMCreateOFDPacket [16:56:24]OFDProtocolAddRootSTLVToBuf [16:56:24]FM_MakeSignedData [16:56:24]FM_MakeSignedData [16:56:24]SAM_PROTO_SignData [16:56:24]wFMCommunicate request_size=4 [16:56:24]MH_SAM_APDU [16:56:24]CAPDU: 80 0D 01 02 [16:56:24]Write to MH i2c: E2 08 00 17 21 80 0D 01 02 00 00 00 00 B1 [16:56:24]Write i2c OK [16:56:24]MH_I2C_Read... [16:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:24]Read from MH i2c: E2 [16:56:24]MH_I2C_Read... [16:56:24]Read from MH i2c: E2 03 00 [16:56:24]MH_I2C_Read... [16:56:24]Read from MH i2c: E2 03 00 17 21 00 90 00 AC [16:56:24]RAPDU: 90 00 [16:56:24]wFMCommunicate OK [16:56:24]wFMCommunicate request_size=255 [16:56:24]MH_SAM_APDU [16:56: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 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 9A 00 00 00 F4 03 04 00 B9 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CE CA 01 00 35 04 06 00 2C [16:56:24]Write to MH i2c: E2 02 01 18 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 9A 00 00 00 F4 03 04 00 B9 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CE CA 01 00 35 04 06 00 2C 00 00 6A [16:56:24]Write i2c OK [16:56:24]MH_I2C_Read... [16:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:24]Read from MH i2c: E2 [16:56:24]MH_I2C_Read... [16:56:24]Read from MH i2c: E2 03 00 [16:56:24]MH_I2C_Read... [16:56:24]Read from MH i2c: E2 03 00 18 21 00 90 00 AD [16:56:24]RAPDU: 90 00 [16:56:24]wFMCommunicate OK [16:56:24]wFMCommunicate request_size=10 [16:56:24]MH_SAM_APDU [16:56:24]CAPDU: 80 0D 02 02 05 90 C9 D6 D5 E2 [16:56:24]Write to MH i2c: E2 0D 00 19 21 80 0D 02 02 05 00 90 C9 D6 D5 E2 00 00 A4 [16:56:24]Write i2c OK [16:56:24]MH_I2C_Read... [16:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:24]Read from MH i2c: E2 [16:56:24]MH_I2C_Read... [16:56:24]Read from MH i2c: E2 03 00 [16:56:24]MH_I2C_Read... [16:56:24]Read from MH i2c: E2 03 00 19 21 00 90 00 AE [16:56:24]RAPDU: 90 00 [16:56:24]wFMCommunicate OK [16:56:24]wFMCommunicate request_size=4 [16:56:24]MH_SAM_APDU [16:56:24]CAPDU: 80 0D 03 02 [16:56:24]Write to MH i2c: E2 08 00 1A 21 80 0D 03 02 00 00 00 00 B6 [16:56:24]Write i2c OK [16:56:24]MH_I2C_Read... [16:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:25]Read from MH i2c: E2 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: E2 0B 00 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: E2 0B 00 1A 21 00 B4 96 4C 91 6F 7D 82 39 90 00 85 [16:56:25]RAPDU: B4 96 4C 91 6F 7D 82 39 90 00 [16:56:25]wFMCommunicate OK [16:56:25]SAM_PROTO_SignData done [16:56:25]FM_MakeSignedData done [16:56:25]CreateOFDProtocolMessage [16:56:25]wFMCommunicate request_size=4 [16:56:25]MH_SAM_APDU [16:56:25]CAPDU: 80 11 00 00 [16:56:25]Write to MH i2c: E2 08 00 1B 21 80 11 00 00 00 00 00 00 B6 [16:56:25]Write i2c OK [16:56:25]MH_I2C_Read... [16:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:25]Read from MH i2c: E2 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: E2 17 00 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: E2 17 00 1B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0D [16:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:56:25]wFMCommunicate OK [16:56:25]CreateOFDProtocolMessage done [16:56:25]OFDSenderStorePacket 117454 [16:56:25]StoreOFDPacket docnum=117454 [16:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9C 8F 07 01 BB 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9A 00 00 00 F4 03 04 00 B9 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CE CA 01 00 35 04 06 00 2C 90 C9 D6 D5 E2 B4 96 4C 91 6F 7D 82 39 [16:56:25]CheckFolder [16:56:25]dirname=/storage/ofd_packets [16:56:25]CheckFolder done [16:56:25]ProducePacketName [16:56:25]name=ofd_packets/00117454 [16:56:25]NVStorageSaveData ofd_packets/00117454 [16:56:25]File name is /storage/ofd_packets/00117454 [16:56:25]Write 301 bytes [16:56:25]NVStorageSaveData done [16:56:25]OFDSenderStorePacket done [16:56:25]KKMCreateOFDPacket done [16:56:25]NVStorageSaveData kkm_last_timestamp [16:56:25]File name is /storage/kkm_last_timestamp [16:56:25]Write 4 bytes [16:56:25]NVStorageSaveData done [16:56:25]ExternCall_PrintAddStr [16:56:25]wPrintStart [16:56:25]Write to MH i2c: 01 00 00 1C 21 3D [16:56:25]Write i2c OK [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: 01 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: 01 07 00 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: 01 07 00 1C 21 00 00 00 00 00 FF 0F 52 [16:56:25]RasterBufferAndPrint [16:56:25]line Счет N : (1)245230 [16:56:25]line ИНН: 02508201610067 [16:56:25]line Контрольно-Кассовый Чек [16:56:25]line ПРОДАЖА [16:56:25]line ТРК (МРК, ГНК) : 11 [16:56:25]line Товар: 2710124130 [16:56:25]line Аи-92-К-2 [16:56:25]line 14.950 * 66.90 [16:56:25]line = 1000.16 [16:56:25]line НДС 12% НСП 1% [16:56:25]line > о реализуемом товаре [16:56:25]line ОКРУГЛЕНИЕ: -0.16 [16:56:25]line ИТОГО: 1000.00 [16:56:25]line Внесено: 1000.00 [16:56:25]line СДАЧА: 0.00 [16:56:25]line НСП 1% : 8.85 [16:56:25]line НДС 12% : 106.21 [16:56:25]line Наличными: 1000.00 [16:56:25]line Безнал.: 0.00 [16:56:25]line Место: АЗС № 173 "Партнер Нефть" [16:56:25]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:56:25]line СНО: Общий режим [16:56:25]line Чек 154 27.10.2024 16:56 [16:56:25]line Смена: 542 ФФД: 1.0 [16:56:25]line ЗНМ: 0300000115 [16:56:25]line РНМ: 0000000000091782 [16:56:25]line Версия ККМ: 001 [16:56:25]line ФМ: 0000000000871767 [16:56:25]line ФД: 117454 [16:56:25]line ФПД: 49000373212642 [16:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165625&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117454&fm=49000373212642&tin=02508201610067®Number=0000000000091782&sum=100000 [16:56:25]written 0, free lines is 4095 [16:56:25]OFD Sender: Processing packet 117454 [packets to send 76, broken 75] [16:56:25]ProducePacketName [16:56:25]name=ofd_packets/00117454 [16:56:25]OFD Sender: To server: pG, [16:56:25]CommunicateWithHost lk.salyk.kg:30040 [16:56:25]ConnectInit lk.salyk.kg [16:56:25]Connected sock=10 [16:56: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 36 37 0F 01 00 00 9C 8F 07 01 BB 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9A 00 00 00 F4 03 04 00 B9 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CE CA 01 00 35 04 06 00 2C 90 C9 D6 D5 E2 B4 96 4C 91 6F 7D 82 39 [16:56: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 36 37 4F 00 00 00 C0 CD 47 00 46 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 36 37 10 04 04 00 CE CA 01 00 F4 03 04 00 76 1C 1E 67 B6 04 01 00 00 80 D2 CD 53 87 47 E0 C5 [16:56:25]CommunicateWithHost err = 0 [16:56:25]CheckOFDResponse [16:56:25]1017 (14) - 77093643461234 [16:56:25]1041 (16) - 0000000000871767 [16:56:25]1040 (4) - 117454 [16:56:25]1012 (4) - 27.10.2024 10:56 [16:56:25]1206 (1) - 0 [16:56:25]OFD Sender: Remove packet 117454 [16:56:25]ProducePacketName [16:56:25]name=ofd_packets/00117454 [16:56:25]NVStorageDeleteData [16:56:25]Write to MH i2c: 01 00 00 46 21 67 [16:56:25]Write i2c OK [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: 01 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: 01 07 00 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 B3 0C 2D [16:56:25]RasterBufferAndPrint [16:56:25]line [16:56:25]line [16:56:25]line [16:56:25]line [16:56:25]line [16:56:25]written 0, free lines is 3255 [16:56:25]MH_Cut [16:56:25]Write to MH i2c: D1 01 00 4D 21 01 40 [16:56:25]Write i2c OK [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: D1 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: D1 01 00 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: D1 01 00 4D 21 00 3F [16:56:25]Write to MH i2c: 01 00 00 4E 21 6F [16:56:25]Write i2c OK [16:56:25]MH_I2C_Read... [16:56:26]OFD Sender: No OFD packet to send [16:56:26]*** Cut start [16:56:26]*** Purtial cut [16:56:26]*** Stage 1: CUTSNS_PIN = 1 [16:56:26]Read from MH i2c: 01 [16:56:27]MH_I2C_Read... [16:56:27]*** Stop cut motor [16:56:27]*** Cut end [16:56:27]Read from MH i2c: 01 07 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 07 00 4E 21 00 00 00 00 00 FF 0F 84 [16:56:27]process_action close_receipt done [16:56:27]requested_data is exist [16:56:27]produce_requested_data [16:56:27]requested_item fm.sn is exist - process it [16:56:27]wFMCommunicate request_size=4 [16:56:27]MH_SAM_APDU [16:56:27]CAPDU: 80 11 00 00 [16:56:27]Write to MH i2c: E2 08 00 4F 21 80 11 00 00 00 00 00 00 EA [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:27]Read from MH i2c: E2 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: E2 17 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: E2 17 00 4F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 41 [16:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:56:27]wFMCommunicate OK [16:56:27]requested_item fd.num is exist - process it [16:56:27]SAM_PROTO_GetFieldsCounters [16:56:27]wFMCommunicate request_size=4 [16:56:27]MH_SAM_APDU [16:56:27]CAPDU: 80 13 00 00 [16:56:27]Write to MH i2c: E2 08 00 50 21 80 13 00 00 00 00 00 00 ED [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:27]Read from MH i2c: E2 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: E2 62 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: E2 62 00 50 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CE CA 01 00 0E 04 04 00 1E 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 9B [16:56: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CE CA 01 00 0E 04 04 00 1E 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 [16:56:27]wFMCommunicate OK [16:56:27]SAM_PROTO_GetFieldsCounters done [16:56:27]requested_item shift.num is exist - process it [16:56:27]requested_item shift.opened is exist - process it [16:56:27]req_shift_opened [16:56:27]FM_GetShiftState [16:56:27]SAM_PROTO_GetShiftState [16:56:27]wFMCommunicate request_size=4 [16:56:27]MH_SAM_APDU [16:56:27]CAPDU: 80 13 01 00 [16:56:27]Write to MH i2c: E2 08 00 51 21 80 13 01 00 00 00 00 00 EF [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:27]Read from MH i2c: E2 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: E2 0E 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: E2 0E 00 51 21 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2E [16:56:27]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:56:27]wFMCommunicate OK [16:56:27]SAM_PROTO_GetShiftState done [16:56:27]FM_GetShiftState done [16:56:27]req_shift_opened done [16:56:27]requested_item shift.open_date is exist - process it [16:56:27]req_shift_open_date [16:56:27]req_shift_open_date done [16:56:27]produce_requested_data done [16:56:27]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117454,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:56:27]process_action_free close_receipt [16:56:27]json_value_free [16:56:27]json_value_free done [16:56:27]process_json_proto returns [16:56:27]Send response to host [16:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117454,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:56:27]free response buf [16:56:27]execute_script done [16:56:27]execute_script returns [16:56:27]free content buf [16:56:27]Sock 9.Close socket [16:56:27]Sock 9.Thread stoped [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:10]accept exits with 7 [16:58:10]New connection [16:58:10]New thread 3067600228 created [16:58:10]Thread 3067456868 joined [16:58:10]Waiting for new connection... [16:58:10] Sock 7.Parse request [16:58:10]Sock 7.Check first char [16:58:10]Sock 7.First char is OK [16:58:10]request: POST /json_proto HTTP/1.0 [16:58:10]Method: POST [16:58:10]URL: /json_proto [16:58:10]Method is POST - this is cgi request [16:58:10]url: /json_proto [16:58:10]query_string will be loaded in cgi processing [16:58:10]execute_cgi json_proto POST (null) [16:58:10]execute_cgi path=json_proto method=POST [16:58:10]POST find Content-Length [16:58:10]Host: 172.17.96.67:8080 [16:58:10]Content-Length: 984 [16:58:10]Content-Type: application/json [16:58:10] [16:58:10]POST finish read [16:58:10]Found Content-Length = 984 [16:58:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.180, "sum" : 1461.66, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.18 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1461.00, "payments": [ { "type": 0, "sum" : 1461.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:10]execute_script... [16:58: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)245231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.180, "sum" : 1461.66, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.18 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1461.00, "payments": [ { "type": 0, "sum" : 1461.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:10]POST & json_proto [16:58:10]process_json_proto [16:58:10]json parsed OK: [16:58:10]protocol is kg_v1.0 [16:58:10]action value=close_receipt [16:58:10]process_action close_receipt [16:58:10]cmd_close_receipt [16:58:10]MH_GetDate [16:58:10]Write to MH i2c: F0 00 00 52 21 62 [16:58:10]Write i2c OK [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: F0 [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: F0 09 00 [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: F0 09 00 52 21 00 25 71 1E 67 2B 09 1E 67 3F [16:58:10]GetLastDocTimeStamp 1730048185 [16:58:10]current date 1730048293 [16:58:10]FM_GetShiftState [16:58:10]SAM_PROTO_GetShiftState [16:58:10]wFMCommunicate request_size=4 [16:58:10]MH_SAM_APDU [16:58:10]CAPDU: 80 13 01 00 [16:58:10]Write to MH i2c: E2 08 00 53 21 80 13 01 00 00 00 00 00 F1 [16:58:10]Write i2c OK [16:58:10]MH_I2C_Read... [16:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:10]Read from MH i2c: E2 [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: E2 0E 00 [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: E2 0E 00 53 21 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 30 [16:58:10]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:58:10]wFMCommunicate OK [16:58:10]SAM_PROTO_GetShiftState done [16:58:10]FM_GetShiftState done [16:58:10]opened in 1729987372 [16:58:10]opened+sec_in_day 1730073772 [16:58:10]quantity*price = 146166 [16:58:10]sum+1 = 146167 [16:58:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1461.00 Внесено: 1500.00 СДАЧА: 39.00 НСП 1% : 12.93 НДС 12% : 155.22 Наличными: 1461.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 155 27.10.2024 16:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 22.18 сом ФМ: 0000000000871767 ФД: 117455 ФПД: 88361062151665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165813&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117455&fm=88361062151665&tin=02508201610067®Number=0000000000091782&sum=146100 [16:58:12]StoreToDocumentArchive [16:58:12]shift 542 fd 117455 [16:58:12]save to /storage/0542/doc_00117455 [16:58:12]save last doc name /storage/0542/doc_00117455 to /storage/kkm_last_doc_name [16:58:12]save OK [16:58:12]Clear old archive folders... [16:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:12]tlvbuf is 01773E00 [16:58:12]SAM_PROTO_ClearQueue [16:58:12]wFMCommunicate request_size=4 [16:58:12]MH_SAM_APDU [16:58:12]CAPDU: 80 09 00 00 [16:58:12]Write to MH i2c: E2 08 00 60 21 80 09 00 00 00 00 00 00 F3 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 03 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 03 00 60 21 00 90 00 F5 [16:58:12]RAPDU: 90 00 [16:58:12]wFMCommunicate OK [16:58:12]SAM_PROTO_ClearQueue done [16:58:12]KKMCreateOFDPacket [16:58:12]OFDProtocolAddRootSTLVToBuf [16:58:12]FM_MakeSignedData [16:58:12]FM_MakeSignedData [16:58:12]SAM_PROTO_SignData [16:58:12]wFMCommunicate request_size=4 [16:58:12]MH_SAM_APDU [16:58:12]CAPDU: 80 0D 01 02 [16:58:12]Write to MH i2c: E2 08 00 61 21 80 0D 01 02 00 00 00 00 FB [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 03 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 03 00 61 21 00 90 00 F6 [16:58:12]RAPDU: 90 00 [16:58:12]wFMCommunicate OK [16:58:12]wFMCommunicate request_size=255 [16:58:12]MH_SAM_APDU [16:58: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 A4 56 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F6 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 3C 00 00 00 00 07 04 06 00 B4 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 25 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CF CA 01 00 35 04 06 00 50 [16:58:12]Write to MH i2c: E2 02 01 62 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 A4 56 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F6 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 3C 00 00 00 00 07 04 06 00 B4 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 25 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CF CA 01 00 35 04 06 00 50 00 00 9B [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 03 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 03 00 62 21 00 90 00 F7 [16:58:12]RAPDU: 90 00 [16:58:12]wFMCommunicate OK [16:58:12]wFMCommunicate request_size=10 [16:58:12]MH_SAM_APDU [16:58:12]CAPDU: 80 0D 02 02 05 5D 29 B8 B5 F1 [16:58:12]Write to MH i2c: E2 0D 00 63 21 80 0D 02 02 05 00 5D 29 B8 B5 F1 00 00 EC [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 03 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 03 00 63 21 00 90 00 F8 [16:58:12]RAPDU: 90 00 [16:58:12]wFMCommunicate OK [16:58:12]wFMCommunicate request_size=4 [16:58:12]MH_SAM_APDU [16:58:12]CAPDU: 80 0D 03 02 [16:58:12]Write to MH i2c: E2 08 00 64 21 80 0D 03 02 00 00 00 00 00 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 0B 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 0B 00 64 21 00 13 A6 19 63 15 46 CD 79 90 00 D7 [16:58:12]RAPDU: 13 A6 19 63 15 46 CD 79 90 00 [16:58:12]wFMCommunicate OK [16:58:12]SAM_PROTO_SignData done [16:58:12]FM_MakeSignedData done [16:58:12]CreateOFDProtocolMessage [16:58:12]wFMCommunicate request_size=4 [16:58:12]MH_SAM_APDU [16:58:12]CAPDU: 80 11 00 00 [16:58:12]Write to MH i2c: E2 08 00 65 21 80 11 00 00 00 00 00 00 00 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 17 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 17 00 65 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 57 [16:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:58:12]wFMCommunicate OK [16:58:12]CreateOFDProtocolMessage done [16:58:12]OFDSenderStorePacket 117455 [16:58:12]StoreOFDPacket docnum=117455 [16:58:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A0 9D 07 01 43 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 A4 56 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F6 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 3C 00 00 00 00 07 04 06 00 B4 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 25 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CF CA 01 00 35 04 06 00 50 5D 29 B8 B5 F1 13 A6 19 63 15 46 CD 79 [16:58:12]CheckFolder [16:58:12]dirname=/storage/ofd_packets [16:58:12]CheckFolder done [16:58:12]ProducePacketName [16:58:12]name=ofd_packets/00117455 [16:58:12]NVStorageSaveData ofd_packets/00117455 [16:58:12]File name is /storage/ofd_packets/00117455 [16:58:12]Write 301 bytes [16:58:12]NVStorageSaveData done [16:58:12]OFDSenderStorePacket done [16:58:12]KKMCreateOFDPacket done [16:58:12]NVStorageSaveData kkm_last_timestamp [16:58:12]File name is /storage/kkm_last_timestamp [16:58:12]Write 4 bytes [16:58:12]NVStorageSaveData done [16:58:12]ExternCall_PrintAddStr [16:58:12]wPrintStart [16:58:12]Write to MH i2c: 01 00 00 66 21 87 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 07 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 07 00 66 21 00 00 00 00 00 FF 0F 9C [16:58:12]RasterBufferAndPrint [16:58:12]line Счет N : (1)245231 [16:58:12]line ИНН: 02508201610067 [16:58:12]line Контрольно-Кассовый Чек [16:58:12]line ПРОДАЖА [16:58:12]line ТРК (МРК, ГНК) : 21 [16:58:12]line Товар: 2710124130 [16:58:12]line Аи-92-К-2 [16:58:12]line 22.180 * 65.90 [16:58:12]line = 1461.66 [16:58:12]line НДС 12% НСП 1% [16:58:12]line > о реализуемом товаре [16:58:12]line ОКРУГЛЕНИЕ: -0.66 [16:58:12]line ИТОГО: 1461.00 [16:58:12]line Внесено: 1500.00 [16:58:12]line СДАЧА: 39.00 [16:58:12]line НСП 1% : 12.93 [16:58:12]line НДС 12% : 155.22 [16:58:12]line Наличными: 1461.00 [16:58:12]line Безнал.: 0.00 [16:58:12]line Место: АЗС № 173 "Партнер Нефть" [16:58:12]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:58:12]line СНО: Общий режим [16:58:12]line Чек 155 27.10.2024 16:58 [16:58:12]line Смена: 542 ФФД: 1.0 [16:58:12]line ЗНМ: 0300000115 [16:58:12]line РНМ: 0000000000091782 [16:58:12]line Версия ККМ: 001 [16:58:12]line [16:58:12]line Дисконтная программа [16:58:12]line АИ-92 [16:58:12]line номер 173 [16:58:12]line сэкономлено 22.18 сом [16:58:12]line ФМ: 0000000000871767 [16:58:12]line ФД: 117455 [16:58:12]line ФПД: 88361062151665 [16:58:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165813&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117455&fm=88361062151665&tin=02508201610067®Number=0000000000091782&sum=146100 [16:58:12]OFD Sender: Processing packet 117455 [packets to send 76, broken 75] [16:58:12]ProducePacketName [16:58:12]name=ofd_packets/00117455 [16:58:12]OFD Sender: To server: pG, [16:58:12]CommunicateWithHost lk.salyk.kg:30040 [16:58:12]ConnectInit lk.salyk.kg [16:58:12]written 0, free lines is 4095 [16:58:13]Connected sock=10 [16:58: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 36 37 0F 01 00 00 A0 9D 07 01 43 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 A4 56 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F6 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 3C 00 00 00 00 07 04 06 00 B4 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 25 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CF CA 01 00 35 04 06 00 50 5D 29 B8 B5 F1 13 A6 19 63 15 46 CD 79 [16:58: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 36 37 4F 00 00 00 62 6C 47 00 19 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 36 37 10 04 04 00 CF CA 01 00 F4 03 04 00 E2 1C 1E 67 B6 04 01 00 00 9B D9 7D 6B E5 84 C0 47 [16:58:13]CommunicateWithHost err = 0 [16:58:13]CheckOFDResponse [16:58:13]1017 (14) - 77093643461234 [16:58:13]1041 (16) - 0000000000871767 [16:58:13]1040 (4) - 117455 [16:58:13]1012 (4) - 27.10.2024 10:58 [16:58:13]1206 (1) - 0 [16:58:13]OFD Sender: Remove packet 117455 [16:58:13]ProducePacketName [16:58:13]name=ofd_packets/00117455 [16:58:13]NVStorageDeleteData [16:58:13]Write to MH i2c: 01 00 00 95 21 B6 [16:58:13]Write i2c OK [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: 01 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: 01 07 00 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: 01 07 00 95 21 00 00 00 00 00 5E 0C 27 [16:58:13]RasterBufferAndPrint [16:58:13]line [16:58:13]line [16:58:13]line [16:58:13]line [16:58:13]line [16:58:13]written 0, free lines is 3172 [16:58:13]MH_Cut [16:58:13]Write to MH i2c: D1 01 00 9C 21 01 8F [16:58:13]Write i2c OK [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: D1 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: D1 01 00 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: D1 01 00 9C 21 00 8E [16:58:13]Write to MH i2c: 01 00 00 9D 21 BE [16:58:13]Write i2c OK [16:58:13]MH_I2C_Read... [16:58:13]OFD Sender: No OFD packet to send [16:58:14]*** Cut start [16:58:14]*** Purtial cut [16:58:14]*** Stage 1: CUTSNS_PIN = 1 [16:58:14]Read from MH i2c: 01 [16:58:14]MH_I2C_Read... [16:58:14]*** Stop cut motor [16:58:14]*** Cut end [16:58:14]Read from MH i2c: 01 07 00 [16:58:14]MH_I2C_Read... [16:58:14]Read from MH i2c: 01 07 00 9D 21 00 00 00 00 00 FF 0F D3 [16:58:14]process_action close_receipt done [16:58:14]requested_data is exist [16:58:14]produce_requested_data [16:58:14]requested_item fm.sn is exist - process it [16:58:14]wFMCommunicate request_size=4 [16:58:14]MH_SAM_APDU [16:58:14]CAPDU: 80 11 00 00 [16:58:14]Write to MH i2c: E2 08 00 9E 21 80 11 00 00 00 00 00 00 39 [16:58:14]Write i2c OK [16:58:14]MH_I2C_Read... [16:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:14]Read from MH i2c: E2 [16:58:14]MH_I2C_Read... [16:58:14]Read from MH i2c: E2 17 00 [16:58:14]MH_I2C_Read... [16:58:14]Read from MH i2c: E2 17 00 9E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 90 [16:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:58:14]wFMCommunicate OK [16:58:14]requested_item fd.num is exist - process it [16:58:14]SAM_PROTO_GetFieldsCounters [16:58:14]wFMCommunicate request_size=4 [16:58:14]MH_SAM_APDU [16:58:14]CAPDU: 80 13 00 00 [16:58:14]Write to MH i2c: E2 08 00 9F 21 80 13 00 00 00 00 00 00 3C [16:58:14]Write i2c OK [16:58:14]MH_I2C_Read... [16:58:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:14]Read from MH i2c: E2 [16:58:14]MH_I2C_Read... [16:58:14]Read from MH i2c: E2 62 00 [16:58:14]MH_I2C_Read... [16:58:14]Read from MH i2c: E2 62 00 9F 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CF CA 01 00 0E 04 04 00 1E 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 EE [16:58: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CF CA 01 00 0E 04 04 00 1E 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 [16:58:14]wFMCommunicate OK [16:58:14]SAM_PROTO_GetFieldsCounters done [16:58:14]requested_item shift.num is exist - process it [16:58:14]requested_item shift.opened is exist - process it [16:58:14]req_shift_opened [16:58:14]FM_GetShiftState [16:58:14]SAM_PROTO_GetShiftState [16:58:14]wFMCommunicate request_size=4 [16:58:14]MH_SAM_APDU [16:58:14]CAPDU: 80 13 01 00 [16:58:14]Write to MH i2c: E2 08 00 A0 21 80 13 01 00 00 00 00 00 3E [16:58:14]Write i2c OK [16:58:14]MH_I2C_Read... [16:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:14]Read from MH i2c: E2 [16:58:14]MH_I2C_Read... [16:58:14]Read from MH i2c: E2 0E 00 [16:58:14]MH_I2C_Read... [16:58:14]Read from MH i2c: E2 0E 00 A0 21 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 7D [16:58:14]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [16:58:14]wFMCommunicate OK [16:58:14]SAM_PROTO_GetShiftState done [16:58:14]FM_GetShiftState done [16:58:14]req_shift_opened done [16:58:14]requested_item shift.open_date is exist - process it [16:58:14]req_shift_open_date [16:58:14]req_shift_open_date done [16:58:14]produce_requested_data done [16:58:14]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117455,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [16:58:14]process_action_free close_receipt [16:58:14]json_value_free [16:58:14]json_value_free done [16:58:14]process_json_proto returns [16:58:14]Send response to host [16:58:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117455,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [16:58:14]free response buf [16:58:14]execute_script done [16:58:14]execute_script returns [16:58:14]free content buf [16:58:14]Sock 7.Close socket [16:58:14]Sock 7.Thread stoped [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:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:54]accept exits with 9 [17:00:54]New connection [17:00:54]New thread 3067456868 created [17:00:54]Thread 3067600228 joined [17:00:54]Waiting for new connection... [17:00:54] Sock 9.Parse request [17:00:54]Sock 9.Check first char [17:00:54]Sock 9.First char is OK [17:00:54]request: POST /json_proto HTTP/1.0 [17:00:54]Method: POST [17:00:54]URL: /json_proto [17:00:54]Method is POST - this is cgi request [17:00:54]url: /json_proto [17:00:54]query_string will be loaded in cgi processing [17:00:54]execute_cgi json_proto POST (null) [17:00:54]execute_cgi path=json_proto method=POST [17:00:54]POST find Content-Length [17:00:54]Host: 172.17.96.67:8080 [17:00:54]Content-Length: 678 [17:00:54]Content-Type: application/json [17:00:54] [17:00:54]POST finish read [17:00:54]Found Content-Length = 678 [17:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [17:00:54]execute_script... [17:00:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [17:00:54]POST & json_proto [17:00:54]process_json_proto [17:00:54]json parsed OK: [17:00:54]protocol is kg_v1.0 [17:00:54]action value=close_receipt [17:00:54]process_action close_receipt [17:00:54]cmd_close_receipt [17:00:54]MH_GetDate [17:00:54]Write to MH i2c: F0 00 00 A1 21 B1 [17:00:54]Write i2c OK [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: F0 [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: F0 09 00 [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: F0 09 00 A1 21 00 C8 71 1E 67 2B 09 1E 67 31 [17:00:54]GetLastDocTimeStamp 1730048293 [17:00:54]current date 1730048456 [17:00:54]FM_GetShiftState [17:00:54]SAM_PROTO_GetShiftState [17:00:54]wFMCommunicate request_size=4 [17:00:54]MH_SAM_APDU [17:00:54]CAPDU: 80 13 01 00 [17:00:54]Write to MH i2c: E2 08 00 A2 21 80 13 01 00 00 00 00 00 40 [17:00:54]Write i2c OK [17:00:54]MH_I2C_Read... [17:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:54]Read from MH i2c: E2 [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: E2 0E 00 [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: E2 0E 00 A2 21 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 7F [17:00:54]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:00:54]wFMCommunicate OK [17:00:54]SAM_PROTO_GetShiftState done [17:00:54]FM_GetShiftState done [17:00:54]opened in 1729987372 [17:00:54]opened+sec_in_day 1730073772 [17:00:54]quantity*price = 70044 [17:00:54]sum+1 = 70045 [17:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 156 27.10.2024 17:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117456 ФПД: 62893752021776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170056&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117456&fm=62893752021776&tin=02508201610067®Number=0000000000091782&sum=70000 [17:00:55]StoreToDocumentArchive [17:00:55]shift 542 fd 117456 [17:00:55]save to /storage/0542/doc_00117456 [17:00:55]save last doc name /storage/0542/doc_00117456 to /storage/kkm_last_doc_name [17:00:55]save OK [17:00:55]Clear old archive folders... [17:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:55]tlvbuf is 01769770 [17:00:55]SAM_PROTO_ClearQueue [17:00:55]wFMCommunicate request_size=4 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 09 00 00 [17:00:55]Write to MH i2c: E2 08 00 AF 21 80 09 00 00 00 00 00 00 42 [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:55]Read from MH i2c: E2 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 AF 21 00 90 00 44 [17:00:55]RAPDU: 90 00 [17:00:55]wFMCommunicate OK [17:00:55]SAM_PROTO_ClearQueue done [17:00:55]KKMCreateOFDPacket [17:00:55]OFDProtocolAddRootSTLVToBuf [17:00:55]FM_MakeSignedData [17:00:55]FM_MakeSignedData [17:00:55]SAM_PROTO_SignData [17:00:55]wFMCommunicate request_size=4 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 0D 01 02 [17:00:55]Write to MH i2c: E2 08 00 B0 21 80 0D 01 02 00 00 00 00 4A [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:55]Read from MH i2c: E2 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 B0 21 00 90 00 45 [17:00:55]RAPDU: 90 00 [17:00:55]wFMCommunicate OK [17:00:55]wFMCommunicate request_size=255 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9C 00 00 00 F4 03 04 00 C8 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D0 CA 01 00 35 04 06 00 39 [17:00:55]Write to MH i2c: E2 02 01 B1 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 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 9C 00 00 00 F4 03 04 00 C8 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D0 CA 01 00 35 04 06 00 39 00 00 3A [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 B1 21 00 90 00 46 [17:00:56]RAPDU: 90 00 [17:00:56]wFMCommunicate OK [17:00:56]wFMCommunicate request_size=10 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 0D 02 02 05 33 97 BF 73 10 [17:00:56]Write to MH i2c: E2 0D 00 B2 21 80 0D 02 02 05 00 33 97 BF 73 10 00 00 63 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 B2 21 00 90 00 47 [17:00:56]RAPDU: 90 00 [17:00:56]wFMCommunicate OK [17:00:56]wFMCommunicate request_size=4 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 0D 03 02 [17:00:56]Write to MH i2c: E2 08 00 B3 21 80 0D 03 02 00 00 00 00 4F [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 0B 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 0B 00 B3 21 00 D5 30 D3 41 EC 9E B9 2C 90 00 D8 [17:00:56]RAPDU: D5 30 D3 41 EC 9E B9 2C 90 00 [17:00:56]wFMCommunicate OK [17:00:56]SAM_PROTO_SignData done [17:00:56]FM_MakeSignedData done [17:00:56]CreateOFDProtocolMessage [17:00:56]wFMCommunicate request_size=4 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 11 00 00 [17:00:56]Write to MH i2c: E2 08 00 B4 21 80 11 00 00 00 00 00 00 4F [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 17 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 17 00 B4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A6 [17:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:00:56]wFMCommunicate OK [17:00:56]CreateOFDProtocolMessage done [17:00:56]OFDSenderStorePacket 117456 [17:00:56]StoreOFDPacket docnum=117456 [17:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7E B9 07 01 95 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 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 9C 00 00 00 F4 03 04 00 C8 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D0 CA 01 00 35 04 06 00 39 33 97 BF 73 10 D5 30 D3 41 EC 9E B9 2C [17:00:56]CheckFolder [17:00:56]dirname=/storage/ofd_packets [17:00:56]CheckFolder done [17:00:56]ProducePacketName [17:00:56]name=ofd_packets/00117456 [17:00:56]NVStorageSaveData ofd_packets/00117456 [17:00:56]File name is /storage/ofd_packets/00117456 [17:00:56]Write 301 bytes [17:00:56]NVStorageSaveData done [17:00:56]OFDSenderStorePacket done [17:00:56]KKMCreateOFDPacket done [17:00:56]NVStorageSaveData kkm_last_timestamp [17:00:56]File name is /storage/kkm_last_timestamp [17:00:56]Write 4 bytes [17:00:56]NVStorageSaveData done [17:00:56]ExternCall_PrintAddStr [17:00:56]wPrintStart [17:00:56]Write to MH i2c: 01 00 00 B5 21 D6 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 07 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 07 00 B5 21 00 00 00 00 00 FF 0F EB [17:00:56]RasterBufferAndPrint [17:00:56]line Счет N : (1)245232 [17:00:56]line ИНН: 02508201610067 [17:00:56]line Контрольно-Кассовый Чек [17:00:56]line ПРОДАЖА [17:00:56]line ТРК (МРК, ГНК) : 11 [17:00:56]line Товар: 2710124130 [17:00:56]line Аи-92-К-2 [17:00:56]line 10.470 * 66.90 [17:00:56]line = 700.44 [17:00:56]line НДС 12% НСП 1% [17:00:56]line > о реализуемом товаре [17:00:56]line ОКРУГЛЕНИЕ: -0.44 [17:00:56]line ИТОГО: 700.00 [17:00:56]line Внесено: 700.00 [17:00:56]line СДАЧА: 0.00 [17:00:56]line НСП 1% : 6.20 [17:00:56]line НДС 12% : 74.38 [17:00:56]line Наличными: 700.00 [17:00:56]line Безнал.: 0.00 [17:00:56]line Место: АЗС № 173 "Партнер Нефть" [17:00:56]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:00:56]line СНО: Общий режим [17:00:56]line Чек 156 27.10.2024 17:00 [17:00:56]line Смена: 542 ФФД: 1.0 [17:00:56]line ЗНМ: 0300000115 [17:00:56]line РНМ: 0000000000091782 [17:00:56]line Версия ККМ: 001 [17:00:56]line ФМ: 0000000000871767 [17:00:56]line ФД: 117456 [17:00:56]line ФПД: 62893752021776 [17:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170056&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117456&fm=62893752021776&tin=02508201610067®Number=0000000000091782&sum=70000 [17:00:56]OFD Sender: Processing packet 117456 [packets to send 76, broken 75] [17:00:56]ProducePacketName [17:00:56]name=ofd_packets/00117456 [17:00:56]OFD Sender: To server: pG, [17:00:56]CommunicateWithHost lk.salyk.kg:30040 [17:00:56]ConnectInit lk.salyk.kg [17:00:56]written 0, free lines is 4095 [17:00:56]Connected sock=10 [17:00: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 36 37 0F 01 00 00 7E B9 07 01 95 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 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 9C 00 00 00 F4 03 04 00 C8 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D0 CA 01 00 35 04 06 00 39 33 97 BF 73 10 D5 30 D3 41 EC 9E B9 2C [17:00: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 36 37 4F 00 00 00 F9 D0 47 00 2A 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D0 CA 01 00 F4 03 04 00 85 1D 1E 67 B6 04 01 00 00 04 63 C0 EA 65 77 E4 A6 [17:00:56]CommunicateWithHost err = 0 [17:00:56]CheckOFDResponse [17:00:56]1017 (14) - 77093643461234 [17:00:56]1041 (16) - 0000000000871767 [17:00:56]1040 (4) - 117456 [17:00:56]1012 (4) - 27.10.2024 11:01 [17:00:56]1206 (1) - 0 [17:00:56]OFD Sender: Remove packet 117456 [17:00:56]ProducePacketName [17:00:56]name=ofd_packets/00117456 [17:00:56]NVStorageDeleteData [17:00:56]Write to MH i2c: 01 00 00 DF 21 00 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 07 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 07 00 DF 21 00 00 00 00 00 B5 0C C8 [17:00:56]RasterBufferAndPrint [17:00:56]line [17:00:56]line [17:00:56]line [17:00:56]line [17:00:56]line [17:00:56]written 0, free lines is 3259 [17:00:56]MH_Cut [17:00:56]Write to MH i2c: D1 01 00 E6 21 01 D9 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: D1 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: D1 01 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: D1 01 00 E6 21 00 D8 [17:00:56]Write to MH i2c: 01 00 00 E7 21 08 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:57]OFD Sender: No OFD packet to send [17:00:57]*** Cut start [17:00:57]*** Purtial cut [17:00:57]*** Stage 1: CUTSNS_PIN = 1 [17:00:58]Read from MH i2c: 01 [17:00:58]MH_I2C_Read... [17:00:58]*** Stop cut motor [17:00:58]*** Cut end [17:00:58]Read from MH i2c: 01 07 00 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: 01 07 00 E7 21 00 00 00 00 00 FF 0F 1D [17:00:58]process_action close_receipt done [17:00:58]requested_data is exist [17:00:58]produce_requested_data [17:00:58]requested_item fm.sn is exist - process it [17:00:58]wFMCommunicate request_size=4 [17:00:58]MH_SAM_APDU [17:00:58]CAPDU: 80 11 00 00 [17:00:58]Write to MH i2c: E2 08 00 E8 21 80 11 00 00 00 00 00 00 83 [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:58]Read from MH i2c: E2 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 17 00 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 17 00 E8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DA [17:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:00:58]wFMCommunicate OK [17:00:58]requested_item fd.num is exist - process it [17:00:58]SAM_PROTO_GetFieldsCounters [17:00:58]wFMCommunicate request_size=4 [17:00:58]MH_SAM_APDU [17:00:58]CAPDU: 80 13 00 00 [17:00:58]Write to MH i2c: E2 08 00 E9 21 80 13 00 00 00 00 00 00 86 [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:58]Read from MH i2c: E2 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 62 00 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 62 00 E9 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D0 CA 01 00 0E 04 04 00 1E 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 3C [17:00: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D0 CA 01 00 0E 04 04 00 1E 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 [17:00:58]wFMCommunicate OK [17:00:58]SAM_PROTO_GetFieldsCounters done [17:00:58]requested_item shift.num is exist - process it [17:00:58]requested_item shift.opened is exist - process it [17:00:58]req_shift_opened [17:00:58]FM_GetShiftState [17:00:58]SAM_PROTO_GetShiftState [17:00:58]wFMCommunicate request_size=4 [17:00:58]MH_SAM_APDU [17:00:58]CAPDU: 80 13 01 00 [17:00:58]Write to MH i2c: E2 08 00 EA 21 80 13 01 00 00 00 00 00 88 [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:58]Read from MH i2c: E2 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 0E 00 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 0E 00 EA 21 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C7 [17:00:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:00:58]wFMCommunicate OK [17:00:58]SAM_PROTO_GetShiftState done [17:00:58]FM_GetShiftState done [17:00:58]req_shift_opened done [17:00:58]requested_item shift.open_date is exist - process it [17:00:58]req_shift_open_date [17:00:58]req_shift_open_date done [17:00:58]produce_requested_data done [17:00:58]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117456,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:00:58]process_action_free close_receipt [17:00:58]json_value_free [17:00:58]json_value_free done [17:00:58]process_json_proto returns [17:00:58]Send response to host [17:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117456,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:00:58]free response buf [17:00:58]execute_script done [17:00:58]execute_script returns [17:00:58]free content buf [17:00:58]Sock 9.Close socket [17:00:58]Sock 9.Thread stoped [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:01]accept exits with 7 [17:02:01]New connection [17:02:01]New thread 3067600228 created [17:02:01]Thread 3067456868 joined [17:02:01]Waiting for new connection... [17:02:01] Sock 7.Parse request [17:02:01]Sock 7.Check first char [17:02:01]Sock 7.First char is OK [17:02:01]request: POST /json_proto HTTP/1.0 [17:02:01]Method: POST [17:02:01]URL: /json_proto [17:02:01]Method is POST - this is cgi request [17:02:01]url: /json_proto [17:02:01]query_string will be loaded in cgi processing [17:02:01]execute_cgi json_proto POST (null) [17:02:01]execute_cgi path=json_proto method=POST [17:02:01]POST find Content-Length [17:02:01]Host: 172.17.96.67:8080 [17:02:01]Content-Length: 677 [17:02:01]Content-Type: application/json [17:02:01] [17:02:01]POST finish read [17:02:01]Found Content-Length = 677 [17:02:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:02:01]execute_script... [17:02: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)245233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:02:01]POST & json_proto [17:02:01]process_json_proto [17:02:01]json parsed OK: [17:02:01]protocol is kg_v1.0 [17:02:01]action value=close_receipt [17:02:01]process_action close_receipt [17:02:01]cmd_close_receipt [17:02:01]MH_GetDate [17:02:01]Write to MH i2c: F0 00 00 EB 21 FB [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: F0 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: F0 09 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: F0 09 00 EB 21 00 0C 72 1E 67 2B 09 1E 67 C0 [17:02:01]GetLastDocTimeStamp 1730048456 [17:02:01]current date 1730048524 [17:02:01]FM_GetShiftState [17:02:01]SAM_PROTO_GetShiftState [17:02:01]wFMCommunicate request_size=4 [17:02:01]MH_SAM_APDU [17:02:01]CAPDU: 80 13 01 00 [17:02:01]Write to MH i2c: E2 08 00 EC 21 80 13 01 00 00 00 00 00 8A [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 0E 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 0E 00 EC 21 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C9 [17:02:01]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:02:01]wFMCommunicate OK [17:02:01]SAM_PROTO_GetShiftState done [17:02:01]FM_GetShiftState done [17:02:01]opened in 1729987372 [17:02:01]opened+sec_in_day 1730073772 [17:02:01]quantity*price = 30038 [17:02:01]sum+1 = 30039 [17:02:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 157 27.10.2024 17:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117457 ФПД: 90832801170385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170204&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117457&fm=90832801170385&tin=02508201610067®Number=0000000000091782&sum=30000 [17:02:03]StoreToDocumentArchive [17:02:03]shift 542 fd 117457 [17:02:03]save to /storage/0542/doc_00117457 [17:02:03]save last doc name /storage/0542/doc_00117457 to /storage/kkm_last_doc_name [17:02:03]save OK [17:02:03]Clear old archive folders... [17:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:03]tlvbuf is 016DEC50 [17:02:03]SAM_PROTO_ClearQueue [17:02:03]wFMCommunicate request_size=4 [17:02:03]MH_SAM_APDU [17:02:03]CAPDU: 80 09 00 00 [17:02:03]Write to MH i2c: E2 08 00 F9 21 80 09 00 00 00 00 00 00 8C [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:03]Read from MH i2c: E2 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 03 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 03 00 F9 21 00 90 00 8E [17:02:03]RAPDU: 90 00 [17:02:03]wFMCommunicate OK [17:02:03]SAM_PROTO_ClearQueue done [17:02:03]KKMCreateOFDPacket [17:02:03]OFDProtocolAddRootSTLVToBuf [17:02:03]FM_MakeSignedData [17:02:03]FM_MakeSignedData [17:02:03]SAM_PROTO_SignData [17:02:03]wFMCommunicate request_size=4 [17:02:03]MH_SAM_APDU [17:02:03]CAPDU: 80 0D 01 02 [17:02:03]Write to MH i2c: E2 08 00 FA 21 80 0D 01 02 00 00 00 00 94 [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:03]Read from MH i2c: E2 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 03 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 03 00 FA 21 00 90 00 8F [17:02:03]RAPDU: 90 00 [17:02:03]wFMCommunicate OK [17:02:03]wFMCommunicate request_size=255 [17:02:03]MH_SAM_APDU [17:02: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 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 9D 00 00 00 F4 03 04 00 0C 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D1 CA 01 00 35 04 06 00 52 [17:02:03]Write to MH i2c: E2 02 01 FB 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 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 9D 00 00 00 F4 03 04 00 0C 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D1 CA 01 00 35 04 06 00 52 00 00 C8 [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:03]Read from MH i2c: E2 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 03 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 03 00 FB 21 00 90 00 90 [17:02:03]RAPDU: 90 00 [17:02:03]wFMCommunicate OK [17:02:03]wFMCommunicate request_size=10 [17:02:03]MH_SAM_APDU [17:02:03]CAPDU: 80 0D 02 02 05 9C A8 D9 03 D1 [17:02:03]Write to MH i2c: E2 0D 00 FC 21 80 0D 02 02 05 00 9C A8 D9 03 D1 00 00 92 [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:03]Read from MH i2c: E2 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 03 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 03 00 FC 21 00 90 00 91 [17:02:03]RAPDU: 90 00 [17:02:03]wFMCommunicate OK [17:02:03]wFMCommunicate request_size=4 [17:02:03]MH_SAM_APDU [17:02:03]CAPDU: 80 0D 03 02 [17:02:03]Write to MH i2c: E2 08 00 FD 21 80 0D 03 02 00 00 00 00 99 [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:03]Read from MH i2c: E2 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 0B 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 0B 00 FD 21 00 AA 85 3A 53 3D B6 89 16 90 00 E8 [17:02:03]RAPDU: AA 85 3A 53 3D B6 89 16 90 00 [17:02:03]wFMCommunicate OK [17:02:03]SAM_PROTO_SignData done [17:02:03]FM_MakeSignedData done [17:02:03]CreateOFDProtocolMessage [17:02:03]wFMCommunicate request_size=4 [17:02:03]MH_SAM_APDU [17:02:03]CAPDU: 80 11 00 00 [17:02:03]Write to MH i2c: E2 08 00 FE 21 80 11 00 00 00 00 00 00 99 [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:03]Read from MH i2c: E2 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 17 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 17 00 FE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F0 [17:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:02:03]wFMCommunicate OK [17:02:03]CreateOFDProtocolMessage done [17:02:03]OFDSenderStorePacket 117457 [17:02:03]StoreOFDPacket docnum=117457 [17:02:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7C B4 07 01 00 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 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 9D 00 00 00 F4 03 04 00 0C 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D1 CA 01 00 35 04 06 00 52 9C A8 D9 03 D1 AA 85 3A 53 3D B6 89 16 [17:02:03]CheckFolder [17:02:03]dirname=/storage/ofd_packets [17:02:03]CheckFolder done [17:02:03]ProducePacketName [17:02:03]name=ofd_packets/00117457 [17:02:03]NVStorageSaveData ofd_packets/00117457 [17:02:03]File name is /storage/ofd_packets/00117457 [17:02:03]Write 301 bytes [17:02:03]NVStorageSaveData done [17:02:03]OFDSenderStorePacket done [17:02:03]KKMCreateOFDPacket done [17:02:03]NVStorageSaveData kkm_last_timestamp [17:02:03]File name is /storage/kkm_last_timestamp [17:02:03]Write 4 bytes [17:02:03]NVStorageSaveData done [17:02:03]ExternCall_PrintAddStr [17:02:03]wPrintStart [17:02:03]Write to MH i2c: 01 00 00 FF 21 20 [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: 01 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: 01 07 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: 01 07 00 FF 21 00 00 00 00 00 FF 0F 35 [17:02:03]RasterBufferAndPrint [17:02:03]line Счет N : (1)245233 [17:02:03]line ИНН: 02508201610067 [17:02:03]line Контрольно-Кассовый Чек [17:02:03]line ПРОДАЖА [17:02:03]line ТРК (МРК, ГНК) : 21 [17:02:03]line Товар: 2710124130 [17:02:03]line Аи-92-К-2 [17:02:03]line 4.490 * 66.90 [17:02:03]line = 300.38 [17:02:03]line НДС 12% НСП 1% [17:02:03]line > о реализуемом товаре [17:02:03]line ОКРУГЛЕНИЕ: -0.38 [17:02:03]line ИТОГО: 300.00 [17:02:03]line Внесено: 300.00 [17:02:03]line СДАЧА: 0.00 [17:02:03]line НСП 1% : 2.66 [17:02:03]line НДС 12% : 31.90 [17:02:03]line Наличными: 300.00 [17:02:03]line Безнал.: 0.00 [17:02:03]line Место: АЗС № 173 "Партнер Нефть" [17:02:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:02:03]line СНО: Общий режим [17:02:03]line Чек 157 27.10.2024 17:02 [17:02:03]line Смена: 542 ФФД: 1.0 [17:02:03]line ЗНМ: 0300000115 [17:02:03]line РНМ: 0000000000091782 [17:02:03]line Версия ККМ: 001 [17:02:03]line ФМ: 0000000000871767 [17:02:03]line ФД: 117457 [17:02:03]line ФПД: 90832801170385 [17:02:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170204&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117457&fm=90832801170385&tin=02508201610067®Number=0000000000091782&sum=30000 [17:02:03]OFD Sender: Processing packet 117457 [packets to send 76, broken 75] [17:02:03]ProducePacketName [17:02:03]name=ofd_packets/00117457 [17:02:03]OFD Sender: To server: pG, [17:02:03]CommunicateWithHost lk.salyk.kg:30040 [17:02:03]ConnectInit lk.salyk.kg [17:02:03]written 0, free lines is 4095 [17:02:04]Connected sock=10 [17:02: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 36 37 0F 01 00 00 7C B4 07 01 00 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 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 9D 00 00 00 F4 03 04 00 0C 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D1 CA 01 00 35 04 06 00 52 9C A8 D9 03 D1 AA 85 3A 53 3D B6 89 16 [17:02: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 36 37 4F 00 00 00 25 A0 47 00 AE 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 36 37 10 04 04 00 D1 CA 01 00 F4 03 04 00 C9 1D 1E 67 B6 04 01 00 00 3C E5 16 79 35 A6 40 31 [17:02:04]CommunicateWithHost err = 0 [17:02:04]CheckOFDResponse [17:02:04]1017 (14) - 77093643461234 [17:02:04]1041 (16) - 0000000000871767 [17:02:04]1040 (4) - 117457 [17:02:04]1012 (4) - 27.10.2024 11:02 [17:02:04]1206 (1) - 0 [17:02:04]OFD Sender: Remove packet 117457 [17:02:04]ProducePacketName [17:02:04]name=ofd_packets/00117457 [17:02:04]NVStorageDeleteData [17:02:04]Write to MH i2c: 01 00 00 29 22 4B [17:02:04]Write i2c OK [17:02:04]MH_I2C_Read... [17:02:04]Read from MH i2c: 01 [17:02:04]MH_I2C_Read... [17:02:04]Read from MH i2c: 01 07 00 [17:02:04]MH_I2C_Read... [17:02:04]Read from MH i2c: 01 07 00 29 22 00 00 00 00 00 C7 0C 25 [17:02:04]RasterBufferAndPrint [17:02:04]line [17:02:04]line [17:02:04]line [17:02:04]line [17:02:04]line [17:02:04]written 0, free lines is 3276 [17:02:04]MH_Cut [17:02:04]Write to MH i2c: D1 01 00 30 22 01 24 [17:02:04]Write i2c OK [17:02:04]MH_I2C_Read... [17:02:04]Read from MH i2c: D1 [17:02:04]MH_I2C_Read... [17:02:04]Read from MH i2c: D1 01 00 [17:02:04]MH_I2C_Read... [17:02:04]Read from MH i2c: D1 01 00 30 22 00 23 [17:02:04]Write to MH i2c: 01 00 00 31 22 53 [17:02:04]Write i2c OK [17:02:04]MH_I2C_Read... [17:02:04]OFD Sender: No OFD packet to send [17:02:05]*** Cut start [17:02:05]*** Purtial cut [17:02:05]*** Stage 1: CUTSNS_PIN = 1 [17:02:05]Read from MH i2c: 01 [17:02:05]MH_I2C_Read... [17:02:05]*** Stop cut motor [17:02:05]*** Cut end [17:02:05]Read from MH i2c: 01 07 00 [17:02:05]MH_I2C_Read... [17:02:05]Read from MH i2c: 01 07 00 31 22 00 00 00 00 00 FF 0F 68 [17:02:05]process_action close_receipt done [17:02:05]requested_data is exist [17:02:05]produce_requested_data [17:02:05]requested_item fm.sn is exist - process it [17:02:05]wFMCommunicate request_size=4 [17:02:05]MH_SAM_APDU [17:02:05]CAPDU: 80 11 00 00 [17:02:05]Write to MH i2c: E2 08 00 32 22 80 11 00 00 00 00 00 00 CE [17:02:05]Write i2c OK [17:02:05]MH_I2C_Read... [17:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:05]Read from MH i2c: E2 [17:02:05]MH_I2C_Read... [17:02:05]Read from MH i2c: E2 17 00 [17:02:05]MH_I2C_Read... [17:02:05]Read from MH i2c: E2 17 00 32 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 25 [17:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:02:05]wFMCommunicate OK [17:02:05]requested_item fd.num is exist - process it [17:02:05]SAM_PROTO_GetFieldsCounters [17:02:05]wFMCommunicate request_size=4 [17:02:05]MH_SAM_APDU [17:02:05]CAPDU: 80 13 00 00 [17:02:05]Write to MH i2c: E2 08 00 33 22 80 13 00 00 00 00 00 00 D1 [17:02:05]Write i2c OK [17:02:05]MH_I2C_Read... [17:02:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:05]Read from MH i2c: E2 [17:02:05]MH_I2C_Read... [17:02:05]Read from MH i2c: E2 62 00 [17:02:05]MH_I2C_Read... [17:02:05]Read from MH i2c: E2 62 00 33 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D1 CA 01 00 0E 04 04 00 1E 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 8B [17:02: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D1 CA 01 00 0E 04 04 00 1E 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 [17:02:05]wFMCommunicate OK [17:02:05]SAM_PROTO_GetFieldsCounters done [17:02:05]requested_item shift.num is exist - process it [17:02:05]requested_item shift.opened is exist - process it [17:02:05]req_shift_opened [17:02:05]FM_GetShiftState [17:02:05]SAM_PROTO_GetShiftState [17:02:05]wFMCommunicate request_size=4 [17:02:05]MH_SAM_APDU [17:02:05]CAPDU: 80 13 01 00 [17:02:05]Write to MH i2c: E2 08 00 34 22 80 13 01 00 00 00 00 00 D3 [17:02:05]Write i2c OK [17:02:05]MH_I2C_Read... [17:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:05]Read from MH i2c: E2 [17:02:05]MH_I2C_Read... [17:02:05]Read from MH i2c: E2 0E 00 [17:02:05]MH_I2C_Read... [17:02:05]Read from MH i2c: E2 0E 00 34 22 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 12 [17:02:05]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:02:05]wFMCommunicate OK [17:02:05]SAM_PROTO_GetShiftState done [17:02:05]FM_GetShiftState done [17:02:05]req_shift_opened done [17:02:05]requested_item shift.open_date is exist - process it [17:02:05]req_shift_open_date [17:02:05]req_shift_open_date done [17:02:05]produce_requested_data done [17:02:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117457,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:02:05]process_action_free close_receipt [17:02:05]json_value_free [17:02:05]json_value_free done [17:02:05]process_json_proto returns [17:02:05]Send response to host [17:02:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117457,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:02:05]free response buf [17:02:05]execute_script done [17:02:05]execute_script returns [17:02:05]free content buf [17:02:05]Sock 7.Close socket [17:02:05]Sock 7.Thread stoped [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:42]accept exits with 9 [17:03:42]New connection [17:03:42]New thread 3067456868 created [17:03:42]Thread 3067600228 joined [17:03:42]Waiting for new connection... [17:03:42] Sock 9.Parse request [17:03:42]Sock 9.Check first char [17:03:42]Sock 9.First char is OK [17:03:42]request: POST /json_proto HTTP/1.0 [17:03:42]Method: POST [17:03:42]URL: /json_proto [17:03:42]Method is POST - this is cgi request [17:03:42]url: /json_proto [17:03:42]query_string will be loaded in cgi processing [17:03:42]execute_cgi json_proto POST (null) [17:03:42]execute_cgi path=json_proto method=POST [17:03:42]POST find Content-Length [17:03:42]Host: 172.17.96.67:8080 [17:03:42]Content-Length: 677 [17:03:42]Content-Type: application/json [17:03:42] [17:03:42]POST finish read [17:03:42]Found Content-Length = 677 [17:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:03:42]execute_script... [17:03: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)245234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:03:42]POST & json_proto [17:03:42]process_json_proto [17:03:42]json parsed OK: [17:03:42]protocol is kg_v1.0 [17:03:42]action value=close_receipt [17:03:42]process_action close_receipt [17:03:42]cmd_close_receipt [17:03:42]MH_GetDate [17:03:42]Write to MH i2c: F0 00 00 35 22 46 [17:03:42]Write i2c OK [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: F0 [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: F0 09 00 [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: F0 09 00 35 22 00 70 72 1E 67 2B 09 1E 67 6F [17:03:42]GetLastDocTimeStamp 1730048524 [17:03:42]current date 1730048624 [17:03:42]FM_GetShiftState [17:03:42]SAM_PROTO_GetShiftState [17:03:42]wFMCommunicate request_size=4 [17:03:42]MH_SAM_APDU [17:03:42]CAPDU: 80 13 01 00 [17:03:42]Write to MH i2c: E2 08 00 36 22 80 13 01 00 00 00 00 00 D5 [17:03:42]Write i2c OK [17:03:42]MH_I2C_Read... [17:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:42]Read from MH i2c: E2 [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: E2 0E 00 [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: E2 0E 00 36 22 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 14 [17:03:42]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:03:42]wFMCommunicate OK [17:03:42]SAM_PROTO_GetShiftState done [17:03:42]FM_GetShiftState done [17:03:42]opened in 1729987372 [17:03:42]opened+sec_in_day 1730073772 [17:03:42]quantity*price = 50041 [17:03:42]sum+1 = 50042 [17:03: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 158 27.10.2024 17:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117458 ФПД: 34219106869765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170344&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117458&fm=34219106869765&tin=02508201610067®Number=0000000000091782&sum=50000 [17:03:43]StoreToDocumentArchive [17:03:43]shift 542 fd 117458 [17:03:43]save to /storage/0542/doc_00117458 [17:03:43]save last doc name /storage/0542/doc_00117458 to /storage/kkm_last_doc_name [17:03:43]save OK [17:03:43]Clear old archive folders... [17:03:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:43]tlvbuf is 01711B10 [17:03:43]SAM_PROTO_ClearQueue [17:03:43]wFMCommunicate request_size=4 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 09 00 00 [17:03:43]Write to MH i2c: E2 08 00 43 22 80 09 00 00 00 00 00 00 D7 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 03 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [17:03:43]RAPDU: 90 00 [17:03:43]wFMCommunicate OK [17:03:43]SAM_PROTO_ClearQueue done [17:03:43]KKMCreateOFDPacket [17:03:43]OFDProtocolAddRootSTLVToBuf [17:03:43]FM_MakeSignedData [17:03:43]FM_MakeSignedData [17:03:43]SAM_PROTO_SignData [17:03:43]wFMCommunicate request_size=4 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 0D 01 02 [17:03:43]Write to MH i2c: E2 08 00 44 22 80 0D 01 02 00 00 00 00 DF [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 03 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 03 00 44 22 00 90 00 DA [17:03:43]RAPDU: 90 00 [17:03:43]wFMCommunicate OK [17:03:43]wFMCommunicate request_size=255 [17:03:43]MH_SAM_APDU [17:03: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 9E 00 00 00 F4 03 04 00 70 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CA 01 00 35 04 06 00 1F [17:03:43]Write to MH i2c: E2 02 01 45 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 9E 00 00 00 F4 03 04 00 70 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CA 01 00 35 04 06 00 1F 00 00 52 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 03 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 03 00 45 22 00 90 00 DB [17:03:43]RAPDU: 90 00 [17:03:43]wFMCommunicate OK [17:03:43]wFMCommunicate request_size=10 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 0D 02 02 05 1F 41 B5 A2 05 [17:03:43]Write to MH i2c: E2 0D 00 46 22 80 0D 02 02 05 00 1F 41 B5 A2 05 00 00 A8 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 03 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 03 00 46 22 00 90 00 DC [17:03:43]RAPDU: 90 00 [17:03:43]wFMCommunicate OK [17:03:43]wFMCommunicate request_size=4 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 0D 03 02 [17:03:43]Write to MH i2c: E2 08 00 47 22 80 0D 03 02 00 00 00 00 E4 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 0B 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 0B 00 47 22 00 9C 9C 0A B9 FC CA 8B AD 90 00 DE [17:03:43]RAPDU: 9C 9C 0A B9 FC CA 8B AD 90 00 [17:03:43]wFMCommunicate OK [17:03:43]SAM_PROTO_SignData done [17:03:43]FM_MakeSignedData done [17:03:43]CreateOFDProtocolMessage [17:03:43]wFMCommunicate request_size=4 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 11 00 00 [17:03:43]Write to MH i2c: E2 08 00 48 22 80 11 00 00 00 00 00 00 E4 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 17 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 17 00 48 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3B [17:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:03:43]wFMCommunicate OK [17:03:43]CreateOFDProtocolMessage done [17:03:43]OFDSenderStorePacket 117458 [17:03:43]StoreOFDPacket docnum=117458 [17:03:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5E DB 07 01 37 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 9E 00 00 00 F4 03 04 00 70 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CA 01 00 35 04 06 00 1F 1F 41 B5 A2 05 9C 9C 0A B9 FC CA 8B AD [17:03:43]CheckFolder [17:03:43]dirname=/storage/ofd_packets [17:03:43]CheckFolder done [17:03:43]ProducePacketName [17:03:43]name=ofd_packets/00117458 [17:03:43]NVStorageSaveData ofd_packets/00117458 [17:03:43]File name is /storage/ofd_packets/00117458 [17:03:43]Write 301 bytes [17:03:43]NVStorageSaveData done [17:03:43]OFDSenderStorePacket done [17:03:43]KKMCreateOFDPacket done [17:03:43]NVStorageSaveData kkm_last_timestamp [17:03:43]File name is /storage/kkm_last_timestamp [17:03:43]Write 4 bytes [17:03:43]NVStorageSaveData done [17:03:43]ExternCall_PrintAddStr [17:03:43]wPrintStart [17:03:43]Write to MH i2c: 01 00 00 49 22 6B [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: 01 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: 01 07 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: 01 07 00 49 22 00 00 00 00 00 FF 0F 80 [17:03:43]RasterBufferAndPrint [17:03:43]line Счет N : (1)245234 [17:03:43]line ИНН: 02508201610067 [17:03:43]line Контрольно-Кассовый Чек [17:03:43]line ПРОДАЖА [17:03:43]line ТРК (МРК, ГНК) : 11 [17:03:43]line Товар: 2710124130 [17:03:43]line Аи-92-К-2 [17:03:43]line 7.480 * 66.90 [17:03:43]line = 500.41 [17:03:43]line НДС 12% НСП 1% [17:03:43]line > о реализуемом товаре [17:03:43]line ОКРУГЛЕНИЕ: -0.41 [17:03:43]line ИТОГО: 500.00 [17:03:43]line Внесено: 500.00 [17:03:43]line СДАЧА: 0.00 [17:03:43]line НСП 1% : 4.43 [17:03:43]line НДС 12% : 53.14 [17:03:43]line Наличными: 500.00 [17:03:43]line Безнал.: 0.00 [17:03:43]line Место: АЗС № 173 "Партнер Нефть" [17:03:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:03:43]line СНО: Общий режим [17:03:43]line Чек 158 27.10.2024 17:03 [17:03:43]line Смена: 542 ФФД: 1.0 [17:03:43]line ЗНМ: 0300000115 [17:03:43]line РНМ: 0000000000091782 [17:03:43]line Версия ККМ: 001 [17:03:43]line ФМ: 0000000000871767 [17:03:43]line ФД: 117458 [17:03:43]line ФПД: 34219106869765 [17:03:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170344&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117458&fm=34219106869765&tin=02508201610067®Number=0000000000091782&sum=50000 [17:03:44]written 0, free lines is 4095 [17:03:44]OFD Sender: Processing packet 117458 [packets to send 76, broken 75] [17:03:44]ProducePacketName [17:03:44]name=ofd_packets/00117458 [17:03:44]OFD Sender: To server: pG, [17:03:44]CommunicateWithHost lk.salyk.kg:30040 [17:03:44]ConnectInit lk.salyk.kg [17:03:44]Connected sock=10 [17:03: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 36 37 0F 01 00 00 5E DB 07 01 37 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 9E 00 00 00 F4 03 04 00 70 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CA 01 00 35 04 06 00 1F 1F 41 B5 A2 05 9C 9C 0A B9 FC CA 8B AD [17:03: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 36 37 4F 00 00 00 63 31 47 00 A5 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CA 01 00 F4 03 04 00 2D 1E 1E 67 B6 04 01 00 00 2D 2D FF 3A 4C FF 2C A1 [17:03:44]CommunicateWithHost err = 0 [17:03:44]CheckOFDResponse [17:03:44]1017 (14) - 77093643461234 [17:03:44]1041 (16) - 0000000000871767 [17:03:44]1040 (4) - 117458 [17:03:44]1012 (4) - 27.10.2024 11:04 [17:03:44]1206 (1) - 0 [17:03:44]OFD Sender: Remove packet 117458 [17:03:44]ProducePacketName [17:03:44]name=ofd_packets/00117458 [17:03:44]NVStorageDeleteData [17:03:44]Write to MH i2c: 01 00 00 73 22 95 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: 01 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: 01 07 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: 01 07 00 73 22 00 00 00 00 00 B9 0C 61 [17:03:44]RasterBufferAndPrint [17:03:44]line [17:03:44]line [17:03:44]line [17:03:44]line [17:03:44]line [17:03:44]written 0, free lines is 3262 [17:03:44]MH_Cut [17:03:44]Write to MH i2c: D1 01 00 7A 22 01 6E [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: D1 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: D1 01 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: D1 01 00 7A 22 00 6D [17:03:44]Write to MH i2c: 01 00 00 7B 22 9D [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]OFD Sender: No OFD packet to send [17:03:45]*** Cut start [17:03:45]*** Purtial cut [17:03:45]*** Stage 1: CUTSNS_PIN = 1 [17:03:45]Read from MH i2c: 01 [17:03:45]MH_I2C_Read... [17:03:45]*** Stop cut motor [17:03:45]*** Cut end [17:03:45]Read from MH i2c: 01 07 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 07 00 7B 22 00 00 00 00 00 FF 0F B2 [17:03:45]process_action close_receipt done [17:03:45]requested_data is exist [17:03:45]produce_requested_data [17:03:45]requested_item fm.sn is exist - process it [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 11 00 00 [17:03:45]Write to MH i2c: E2 08 00 7C 22 80 11 00 00 00 00 00 00 18 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 17 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 17 00 7C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6F [17:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:03:45]wFMCommunicate OK [17:03:45]requested_item fd.num is exist - process it [17:03:45]SAM_PROTO_GetFieldsCounters [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 13 00 00 [17:03:45]Write to MH i2c: E2 08 00 7D 22 80 13 00 00 00 00 00 00 1B [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 62 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 62 00 7D 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D2 CA 01 00 0E 04 04 00 1E 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 D9 [17:03: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D2 CA 01 00 0E 04 04 00 1E 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 [17:03:45]wFMCommunicate OK [17:03:45]SAM_PROTO_GetFieldsCounters done [17:03:45]requested_item shift.num is exist - process it [17:03:45]requested_item shift.opened is exist - process it [17:03:45]req_shift_opened [17:03:45]FM_GetShiftState [17:03:45]SAM_PROTO_GetShiftState [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 13 01 00 [17:03:45]Write to MH i2c: E2 08 00 7E 22 80 13 01 00 00 00 00 00 1D [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 0E 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 0E 00 7E 22 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 5C [17:03:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:03:45]wFMCommunicate OK [17:03:45]SAM_PROTO_GetShiftState done [17:03:45]FM_GetShiftState done [17:03:45]req_shift_opened done [17:03:45]requested_item shift.open_date is exist - process it [17:03:45]req_shift_open_date [17:03:45]req_shift_open_date done [17:03:45]produce_requested_data done [17:03:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117458,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:03:45]process_action_free close_receipt [17:03:45]json_value_free [17:03:45]json_value_free done [17:03:45]process_json_proto returns [17:03:45]Send response to host [17:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117458,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:03:45]free response buf [17:03:45]execute_script done [17:03:45]execute_script returns [17:03:45]free content buf [17:03:45]Sock 9.Close socket [17:03:45]Sock 9.Thread stoped [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:20]accept exits with 7 [17:06:20]New connection [17:06:20]New thread 3067600228 created [17:06:20]Thread 3067456868 joined [17:06:20]Waiting for new connection... [17:06:20] Sock 7.Parse request [17:06:20]Sock 7.Check first char [17:06:20]Sock 7.First char is OK [17:06:20]request: POST /json_proto HTTP/1.0 [17:06:20]Method: POST [17:06:20]URL: /json_proto [17:06:20]Method is POST - this is cgi request [17:06:20]url: /json_proto [17:06:20]query_string will be loaded in cgi processing [17:06:20]execute_cgi json_proto POST (null) [17:06:20]execute_cgi path=json_proto method=POST [17:06:20]POST find Content-Length [17:06:20]Host: 172.17.96.67:8080 [17:06:20]Content-Length: 677 [17:06:20]Content-Type: application/json [17:06:20] [17:06:20]POST finish read [17:06:20]Found Content-Length = 677 [17:06:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:06:20]execute_script... [17:06: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)245235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:06:20]POST & json_proto [17:06:20]process_json_proto [17:06:20]json parsed OK: [17:06:20]protocol is kg_v1.0 [17:06:20]action value=close_receipt [17:06:20]process_action close_receipt [17:06:20]cmd_close_receipt [17:06:20]MH_GetDate [17:06:20]Write to MH i2c: F0 00 00 7F 22 90 [17:06:20]Write i2c OK [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: F0 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: F0 09 00 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: F0 09 00 7F 22 00 0E 73 1E 67 2B 09 1E 67 58 [17:06:20]GetLastDocTimeStamp 1730048624 [17:06:20]current date 1730048782 [17:06:20]FM_GetShiftState [17:06:20]SAM_PROTO_GetShiftState [17:06:20]wFMCommunicate request_size=4 [17:06:20]MH_SAM_APDU [17:06:20]CAPDU: 80 13 01 00 [17:06:20]Write to MH i2c: E2 08 00 80 22 80 13 01 00 00 00 00 00 1F [17:06:20]Write i2c OK [17:06:20]MH_I2C_Read... [17:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:20]Read from MH i2c: E2 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: E2 0E 00 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: E2 0E 00 80 22 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 5E [17:06:20]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:06:20]wFMCommunicate OK [17:06:20]SAM_PROTO_GetShiftState done [17:06:20]FM_GetShiftState done [17:06:20]opened in 1729987372 [17:06:20]opened+sec_in_day 1730073772 [17:06:20]quantity*price = 50041 [17:06:20]sum+1 = 50042 [17:06: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 159 27.10.2024 17:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117459 ФПД: 66440511054975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170622&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117459&fm=66440511054975&tin=02508201610067®Number=0000000000091782&sum=50000 [17:06:21]StoreToDocumentArchive [17:06:21]shift 542 fd 117459 [17:06:21]save to /storage/0542/doc_00117459 [17:06:21]save last doc name /storage/0542/doc_00117459 to /storage/kkm_last_doc_name [17:06:21]save OK [17:06:21]Clear old archive folders... [17:06:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:21]tlvbuf is B6F46360 [17:06:21]SAM_PROTO_ClearQueue [17:06:21]wFMCommunicate request_size=4 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 09 00 00 [17:06:21]Write to MH i2c: E2 08 00 8D 22 80 09 00 00 00 00 00 00 21 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:21]Read from MH i2c: E2 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 03 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 03 00 8D 22 00 90 00 23 [17:06:21]RAPDU: 90 00 [17:06:21]wFMCommunicate OK [17:06:21]SAM_PROTO_ClearQueue done [17:06:21]KKMCreateOFDPacket [17:06:21]OFDProtocolAddRootSTLVToBuf [17:06:21]FM_MakeSignedData [17:06:21]FM_MakeSignedData [17:06:21]SAM_PROTO_SignData [17:06:21]wFMCommunicate request_size=4 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 0D 01 02 [17:06:21]Write to MH i2c: E2 08 00 8E 22 80 0D 01 02 00 00 00 00 29 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:21]Read from MH i2c: E2 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 03 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 03 00 8E 22 00 90 00 24 [17:06:21]RAPDU: 90 00 [17:06:21]wFMCommunicate OK [17:06:21]wFMCommunicate request_size=255 [17:06:21]MH_SAM_APDU [17:06: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 9F 00 00 00 F4 03 04 00 0E 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D3 CA 01 00 35 04 06 00 3C [17:06:21]Write to MH i2c: E2 02 01 8F 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 9F 00 00 00 F4 03 04 00 0E 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D3 CA 01 00 35 04 06 00 3C 00 00 5A [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:21]Read from MH i2c: E2 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 03 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [17:06:21]RAPDU: 90 00 [17:06:21]wFMCommunicate OK [17:06:21]wFMCommunicate request_size=10 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 0D 02 02 05 6D 63 0F 64 7F [17:06:21]Write to MH i2c: E2 0D 00 90 22 80 0D 02 02 05 00 6D 63 0F 64 7F 00 00 F8 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:21]Read from MH i2c: E2 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 03 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [17:06:21]RAPDU: 90 00 [17:06:21]wFMCommunicate OK [17:06:21]wFMCommunicate request_size=4 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 0D 03 02 [17:06:21]Write to MH i2c: E2 08 00 91 22 80 0D 03 02 00 00 00 00 2E [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:21]Read from MH i2c: E2 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 0B 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 0B 00 91 22 00 1C F5 D7 75 04 CC 8E 45 90 00 2F [17:06:21]RAPDU: 1C F5 D7 75 04 CC 8E 45 90 00 [17:06:21]wFMCommunicate OK [17:06:21]SAM_PROTO_SignData done [17:06:21]FM_MakeSignedData done [17:06:21]CreateOFDProtocolMessage [17:06:21]wFMCommunicate request_size=4 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 11 00 00 [17:06:21]Write to MH i2c: E2 08 00 92 22 80 11 00 00 00 00 00 00 2E [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:21]Read from MH i2c: E2 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 17 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 17 00 92 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 85 [17:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:06:21]wFMCommunicate OK [17:06:21]CreateOFDProtocolMessage done [17:06:21]OFDSenderStorePacket 117459 [17:06:21]StoreOFDPacket docnum=117459 [17:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F9 0D 07 01 59 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0E 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D3 CA 01 00 35 04 06 00 3C 6D 63 0F 64 7F 1C F5 D7 75 04 CC 8E 45 [17:06:21]CheckFolder [17:06:21]dirname=/storage/ofd_packets [17:06:21]CheckFolder done [17:06:21]ProducePacketName [17:06:21]name=ofd_packets/00117459 [17:06:21]NVStorageSaveData ofd_packets/00117459 [17:06:21]File name is /storage/ofd_packets/00117459 [17:06:21]Write 301 bytes [17:06:21]NVStorageSaveData done [17:06:21]OFDSenderStorePacket done [17:06:21]KKMCreateOFDPacket done [17:06:21]NVStorageSaveData kkm_last_timestamp [17:06:21]File name is /storage/kkm_last_timestamp [17:06:21]Write 4 bytes [17:06:21]NVStorageSaveData done [17:06:21]ExternCall_PrintAddStr [17:06:21]wPrintStart [17:06:21]Write to MH i2c: 01 00 00 93 22 B5 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: 01 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: 01 07 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: 01 07 00 93 22 00 00 00 00 00 FF 0F CA [17:06:21]RasterBufferAndPrint [17:06:21]line Счет N : (1)245235 [17:06:21]line ИНН: 02508201610067 [17:06:21]line Контрольно-Кассовый Чек [17:06:21]line ПРОДАЖА [17:06:21]line ТРК (МРК, ГНК) : 11 [17:06:21]line Товар: 2710124130 [17:06:21]line Аи-92-К-2 [17:06:21]line 7.480 * 66.90 [17:06:21]line = 500.41 [17:06:21]line НДС 12% НСП 1% [17:06:21]line > о реализуемом товаре [17:06:21]line ОКРУГЛЕНИЕ: -0.41 [17:06:21]line ИТОГО: 500.00 [17:06:21]line Внесено: 500.00 [17:06:21]line СДАЧА: 0.00 [17:06:21]line НСП 1% : 4.43 [17:06:21]line НДС 12% : 53.14 [17:06:21]line Наличными: 500.00 [17:06:21]line Безнал.: 0.00 [17:06:21]line Место: АЗС № 173 "Партнер Нефть" [17:06:21]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:06:21]line СНО: Общий режим [17:06:21]line Чек 159 27.10.2024 17:06 [17:06:21]line Смена: 542 ФФД: 1.0 [17:06:21]line ЗНМ: 0300000115 [17:06:21]line РНМ: 0000000000091782 [17:06:21]line Версия ККМ: 001 [17:06:21]line ФМ: 0000000000871767 [17:06:21]line ФД: 117459 [17:06:21]line ФПД: 66440511054975 [17:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170622&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117459&fm=66440511054975&tin=02508201610067®Number=0000000000091782&sum=50000 [17:06:22]written 0, free lines is 4095 [17:06:22]OFD Sender: Processing packet 117459 [packets to send 76, broken 75] [17:06:22]ProducePacketName [17:06:22]name=ofd_packets/00117459 [17:06:22]OFD Sender: To server: pG, [17:06:22]CommunicateWithHost lk.salyk.kg:30040 [17:06:22]ConnectInit lk.salyk.kg [17:06:22]Write to MH i2c: 01 00 00 BD 22 DF [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: 01 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: 01 07 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: 01 07 00 BD 22 00 00 00 00 00 B3 0C A5 [17:06:22]RasterBufferAndPrint [17:06:22]line [17:06:22]line [17:06:22]line [17:06:22]line [17:06:22]line [17:06:22]written 0, free lines is 3255 [17:06:22]MH_Cut [17:06:22]Write to MH i2c: D1 01 00 C4 22 01 B8 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: D1 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: D1 01 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: D1 01 00 C4 22 00 B7 [17:06:22]Write to MH i2c: 01 00 00 C5 22 E7 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:23]*** Cut start [17:06:23]*** Purtial cut [17:06:23]*** Stage 1: CUTSNS_PIN = 1 [17:06:23]Read from MH i2c: 01 [17:06:23]MH_I2C_Read... [17:06:23]*** Stop cut motor [17:06:23]*** Cut end [17:06:23]Read from MH i2c: 01 07 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 FF 0F FC [17:06:23]process_action close_receipt done [17:06:23]requested_data is exist [17:06:23]produce_requested_data [17:06:23]requested_item fm.sn is exist - process it [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 11 00 00 [17:06:23]Write to MH i2c: E2 08 00 C6 22 80 11 00 00 00 00 00 00 62 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 17 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 17 00 C6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B9 [17:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:06:23]wFMCommunicate OK [17:06:23]requested_item fd.num is exist - process it [17:06:23]SAM_PROTO_GetFieldsCounters [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 13 00 00 [17:06:23]Write to MH i2c: E2 08 00 C7 22 80 13 00 00 00 00 00 00 65 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 62 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 62 00 C7 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D3 CA 01 00 0E 04 04 00 1E 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 27 [17:06: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D3 CA 01 00 0E 04 04 00 1E 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 [17:06:23]wFMCommunicate OK [17:06:23]SAM_PROTO_GetFieldsCounters done [17:06:23]requested_item shift.num is exist - process it [17:06:23]requested_item shift.opened is exist - process it [17:06:23]req_shift_opened [17:06:23]FM_GetShiftState [17:06:23]SAM_PROTO_GetShiftState [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 13 01 00 [17:06:23]Write to MH i2c: E2 08 00 C8 22 80 13 01 00 00 00 00 00 67 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:24]Read from MH i2c: E2 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 0E 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 0E 00 C8 22 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A6 [17:06:24]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:06:24]wFMCommunicate OK [17:06:24]SAM_PROTO_GetShiftState done [17:06:24]FM_GetShiftState done [17:06:24]req_shift_opened done [17:06:24]requested_item shift.open_date is exist - process it [17:06:24]req_shift_open_date [17:06:24]req_shift_open_date done [17:06:24]produce_requested_data done [17:06:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117459,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:06:24]process_action_free close_receipt [17:06:24]json_value_free [17:06:24]json_value_free done [17:06:24]process_json_proto returns [17:06:24]Send response to host [17:06:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117459,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:06:24]free response buf [17:06:24]execute_script done [17:06:24]execute_script returns [17:06:24]free content buf [17:06:24]Sock 7.Close socket [17:06:24]Sock 7.Thread stoped [17:07:27]accept exits with 9 [17:07:27]New connection [17:07:27]New thread 3067456868 created [17:07:27]Thread 3067600228 joined [17:07:27]Waiting for new connection... [17:07:27] Sock 9.Parse request [17:07:27]Sock 9.Check first char [17:07:27]Sock 9.First char is OK [17:07:27]request: POST /json_proto HTTP/1.0 [17:07:27]Method: POST [17:07:27]URL: /json_proto [17:07:27]Method is POST - this is cgi request [17:07:27]url: /json_proto [17:07:27]query_string will be loaded in cgi processing [17:07:27]execute_cgi json_proto POST (null) [17:07:27]execute_cgi path=json_proto method=POST [17:07:27]POST find Content-Length [17:07:27]Host: 172.17.96.67:8080 [17:07:27]Content-Length: 677 [17:07:27]Content-Type: application/json [17:07:27] [17:07:27]POST finish read [17:07:27]Found Content-Length = 677 [17:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:07:27]execute_script... [17:07: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)245236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:07:27]POST & json_proto [17:07:27]process_json_proto [17:07:27]json parsed OK: [17:07:27]protocol is kg_v1.0 [17:07:27]action value=close_receipt [17:07:27]process_action close_receipt [17:07:27]cmd_close_receipt [17:07:27]MH_GetDate [17:07:27]Write to MH i2c: F0 00 00 C9 22 DA [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: F0 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: F0 09 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: F0 09 00 C9 22 00 51 73 1E 67 2B 09 1E 67 E5 [17:07:27]GetLastDocTimeStamp 1730048782 [17:07:27]current date 1730048849 [17:07:27]FM_GetShiftState [17:07:27]SAM_PROTO_GetShiftState [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 13 01 00 [17:07:27]Write to MH i2c: E2 08 00 CA 22 80 13 01 00 00 00 00 00 69 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0E 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0E 00 CA 22 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A8 [17:07:27]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:07:27]wFMCommunicate OK [17:07:27]SAM_PROTO_GetShiftState done [17:07:27]FM_GetShiftState done [17:07:27]opened in 1729987372 [17:07:27]opened+sec_in_day 1730073772 [17:07:27]quantity*price = 60009 [17:07:27]sum+1 = 60010 [17:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 160 27.10.2024 17:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117460 ФПД: 86523885791388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170729&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117460&fm=86523885791388&tin=02508201610067®Number=0000000000091782&sum=60000 [17:07:28]StoreToDocumentArchive [17:07:28]shift 542 fd 117460 [17:07:28]save to /storage/0542/doc_00117460 [17:07:28]save last doc name /storage/0542/doc_00117460 to /storage/kkm_last_doc_name [17:07:28]save OK [17:07:28]Clear old archive folders... [17:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:28]tlvbuf is 01708BD0 [17:07:28]SAM_PROTO_ClearQueue [17:07:28]wFMCommunicate request_size=4 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 09 00 00 [17:07:28]Write to MH i2c: E2 08 00 D7 22 80 09 00 00 00 00 00 00 6B [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [17:07:28]RAPDU: 90 00 [17:07:28]wFMCommunicate OK [17:07:28]SAM_PROTO_ClearQueue done [17:07:28]KKMCreateOFDPacket [17:07:28]OFDProtocolAddRootSTLVToBuf [17:07:28]FM_MakeSignedData [17:07:28]FM_MakeSignedData [17:07:28]SAM_PROTO_SignData [17:07:28]wFMCommunicate request_size=4 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 0D 01 02 [17:07:28]Write to MH i2c: E2 08 00 D8 22 80 0D 01 02 00 00 00 00 73 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [17:07:28]RAPDU: 90 00 [17:07:28]wFMCommunicate OK [17:07:28]wFMCommunicate request_size=255 [17:07:28]MH_SAM_APDU [17:07: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 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 A0 00 00 00 F4 03 04 00 51 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D4 CA 01 00 35 04 06 00 4E [17:07:28]Write to MH i2c: E2 02 01 D9 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 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 A0 00 00 00 F4 03 04 00 51 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D4 CA 01 00 35 04 06 00 4E 00 00 D8 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [17:07:28]RAPDU: 90 00 [17:07:28]wFMCommunicate OK [17:07:28]wFMCommunicate request_size=10 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 0D 02 02 05 B1 69 7A 28 9C [17:07:28]Write to MH i2c: E2 0D 00 DA 22 80 0D 02 02 05 00 B1 69 7A 28 9C 00 00 D8 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [17:07:28]RAPDU: 90 00 [17:07:28]wFMCommunicate OK [17:07:28]wFMCommunicate request_size=4 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 0D 03 02 [17:07:28]Write to MH i2c: E2 08 00 DB 22 80 0D 03 02 00 00 00 00 78 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 0B 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 0B 00 DB 22 00 02 DC B4 39 A5 3A D8 D1 90 00 CC [17:07:28]RAPDU: 02 DC B4 39 A5 3A D8 D1 90 00 [17:07:28]wFMCommunicate OK [17:07:28]SAM_PROTO_SignData done [17:07:28]FM_MakeSignedData done [17:07:28]CreateOFDProtocolMessage [17:07:28]wFMCommunicate request_size=4 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 11 00 00 [17:07:28]Write to MH i2c: E2 08 00 DC 22 80 11 00 00 00 00 00 00 78 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 17 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 17 00 DC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CF [17:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:07:28]wFMCommunicate OK [17:07:28]CreateOFDProtocolMessage done [17:07:28]OFDSenderStorePacket 117460 [17:07:28]StoreOFDPacket docnum=117460 [17:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 80 96 07 01 D8 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 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 A0 00 00 00 F4 03 04 00 51 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D4 CA 01 00 35 04 06 00 4E B1 69 7A 28 9C 02 DC B4 39 A5 3A D8 D1 [17:07:28]CheckFolder [17:07:28]dirname=/storage/ofd_packets [17:07:28]CheckFolder done [17:07:28]ProducePacketName [17:07:28]name=ofd_packets/00117460 [17:07:28]NVStorageSaveData ofd_packets/00117460 [17:07:28]File name is /storage/ofd_packets/00117460 [17:07:28]Write 301 bytes [17:07:28]NVStorageSaveData done [17:07:28]OFDSenderStorePacket done [17:07:28]KKMCreateOFDPacket done [17:07:28]NVStorageSaveData kkm_last_timestamp [17:07:28]File name is /storage/kkm_last_timestamp [17:07:28]Write 4 bytes [17:07:28]NVStorageSaveData done [17:07:28]ExternCall_PrintAddStr [17:07:28]wPrintStart [17:07:28]Write to MH i2c: 01 00 00 DD 22 FF [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 07 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 07 00 DD 22 00 00 00 00 00 FF 0F 14 [17:07:28]RasterBufferAndPrint [17:07:28]line Счет N : (1)245236 [17:07:28]line ИНН: 02508201610067 [17:07:28]line Контрольно-Кассовый Чек [17:07:28]line ПРОДАЖА [17:07:28]line ТРК (МРК, ГНК) : 11 [17:07:28]line Товар: 2710124130 [17:07:28]line Аи-92-К-2 [17:07:28]line 8.970 * 66.90 [17:07:28]line = 600.09 [17:07:28]line НДС 12% НСП 1% [17:07:28]line > о реализуемом товаре [17:07:28]line ОКРУГЛЕНИЕ: -0.09 [17:07:28]line ИТОГО: 600.00 [17:07:28]line Внесено: 600.00 [17:07:28]line СДАЧА: 0.00 [17:07:28]line НСП 1% : 5.31 [17:07:28]line НДС 12% : 63.73 [17:07:28]line Наличными: 600.00 [17:07:28]line Безнал.: 0.00 [17:07:28]line Место: АЗС № 173 "Партнер Нефть" [17:07:28]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:07:28]line СНО: Общий режим [17:07:28]line Чек 160 27.10.2024 17:07 [17:07:28]line Смена: 542 ФФД: 1.0 [17:07:28]line ЗНМ: 0300000115 [17:07:28]line РНМ: 0000000000091782 [17:07:28]line Версия ККМ: 001 [17:07:28]line ФМ: 0000000000871767 [17:07:28]line ФД: 117460 [17:07:28]line ФПД: 86523885791388 [17:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170729&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117460&fm=86523885791388&tin=02508201610067®Number=0000000000091782&sum=60000 [17:07:29]written 0, free lines is 4095 [17:07:29]Write to MH i2c: 01 00 00 07 23 2A [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: 01 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: 01 07 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 B5 0C F2 [17:07:29]RasterBufferAndPrint [17:07:29]line [17:07:29]line [17:07:29]line [17:07:29]line [17:07:29]line [17:07:29]written 0, free lines is 3258 [17:07:29]MH_Cut [17:07:29]Write to MH i2c: D1 01 00 0E 23 01 03 [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: D1 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: D1 01 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: D1 01 00 0E 23 00 02 [17:07:29]Write to MH i2c: 01 00 00 0F 23 32 [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:30]*** Cut start [17:07:30]*** Purtial cut [17:07:30]*** Stage 1: CUTSNS_PIN = 1 [17:07:30]Read from MH i2c: 01 [17:07:30]MH_I2C_Read... [17:07:30]*** Stop cut motor [17:07:30]*** Cut end [17:07:30]Read from MH i2c: 01 07 00 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: 01 07 00 0F 23 00 00 00 00 00 FF 0F 47 [17:07:30]process_action close_receipt done [17:07:30]requested_data is exist [17:07:30]produce_requested_data [17:07:30]requested_item fm.sn is exist - process it [17:07:30]wFMCommunicate request_size=4 [17:07:30]MH_SAM_APDU [17:07:30]CAPDU: 80 11 00 00 [17:07:30]Write to MH i2c: E2 08 00 10 23 80 11 00 00 00 00 00 00 AD [17:07:30]Write i2c OK [17:07:30]MH_I2C_Read... [17:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:30]Read from MH i2c: E2 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 17 00 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 17 00 10 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 04 [17:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:07:30]wFMCommunicate OK [17:07:30]requested_item fd.num is exist - process it [17:07:30]SAM_PROTO_GetFieldsCounters [17:07:30]wFMCommunicate request_size=4 [17:07:30]MH_SAM_APDU [17:07:30]CAPDU: 80 13 00 00 [17:07:30]Write to MH i2c: E2 08 00 11 23 80 13 00 00 00 00 00 00 B0 [17:07:30]Write i2c OK [17:07:30]MH_I2C_Read... [17:07:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:30]Read from MH i2c: E2 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 62 00 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 62 00 11 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D4 CA 01 00 0E 04 04 00 1E 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 76 [17:07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D4 CA 01 00 0E 04 04 00 1E 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 [17:07:30]wFMCommunicate OK [17:07:30]SAM_PROTO_GetFieldsCounters done [17:07:30]requested_item shift.num is exist - process it [17:07:30]requested_item shift.opened is exist - process it [17:07:30]req_shift_opened [17:07:30]FM_GetShiftState [17:07:30]SAM_PROTO_GetShiftState [17:07:30]wFMCommunicate request_size=4 [17:07:30]MH_SAM_APDU [17:07:30]CAPDU: 80 13 01 00 [17:07:30]Write to MH i2c: E2 08 00 12 23 80 13 01 00 00 00 00 00 B2 [17:07:30]Write i2c OK [17:07:30]MH_I2C_Read... [17:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:31]Read from MH i2c: E2 [17:07:31]MH_I2C_Read... [17:07:31]Read from MH i2c: E2 0E 00 [17:07:31]MH_I2C_Read... [17:07:31]Read from MH i2c: E2 0E 00 12 23 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F1 [17:07:31]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:07:31]wFMCommunicate OK [17:07:31]SAM_PROTO_GetShiftState done [17:07:31]FM_GetShiftState done [17:07:31]req_shift_opened done [17:07:31]requested_item shift.open_date is exist - process it [17:07:31]req_shift_open_date [17:07:31]req_shift_open_date done [17:07:31]produce_requested_data done [17:07:31]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117460,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:07:31]process_action_free close_receipt [17:07:31]json_value_free [17:07:31]json_value_free done [17:07:31]process_json_proto returns [17:07:31]Send response to host [17:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117460,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:07:31]free response buf [17:07:31]execute_script done [17:07:31]execute_script returns [17:07:31]free content buf [17:07:31]Sock 9.Close socket [17:07:31]Sock 9.Thread stoped [17:08:34]ConnectInit Can't connect to host [17:08:34]CommunicateWithHost connect error [17:08:34]CommunicateWithHost err = -1 [17:08:34]OFD Sender: Server communicate error [17:08:34]OFD Sender: Processing packet 117459 [packets to send 77, broken 75] [17:08:34]ProducePacketName [17:08:34]name=ofd_packets/00117459 [17:08:34]OFD Sender: To server: pG, [17:08:34]CommunicateWithHost lk.salyk.kg:30040 [17:08:34]ConnectInit lk.salyk.kg [17:08:34]Connected sock=9 [17: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 36 37 0F 01 00 00 F9 0D 07 01 59 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0E 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D3 CA 01 00 35 04 06 00 3C 6D 63 0F 64 7F 1C F5 D7 75 04 CC 8E 45 [17: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 36 37 4F 00 00 00 66 DA 47 00 11 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 36 37 10 04 04 00 D3 CA 01 00 F4 03 04 00 4F 1F 1E 67 B6 04 01 00 00 3E 4D 98 80 0A 08 94 D1 [17:08:34]CommunicateWithHost err = 0 [17:08:34]CheckOFDResponse [17:08:34]1017 (14) - 77093643461234 [17:08:34]1041 (16) - 0000000000871767 [17:08:34]1040 (4) - 117459 [17:08:34]1012 (4) - 27.10.2024 11:09 [17:08:34]1206 (1) - 0 [17:08:34]OFD Sender: Remove packet 117459 [17:08:34]ProducePacketName [17:08:34]name=ofd_packets/00117459 [17:08:34]NVStorageDeleteData [17:08:35]OFD Sender: Processing packet 117460 [packets to send 76, broken 75] [17:08:35]ProducePacketName [17:08:35]name=ofd_packets/00117460 [17:08:35]OFD Sender: To server: pG, [17:08:35]CommunicateWithHost lk.salyk.kg:30040 [17:08:35]ConnectInit lk.salyk.kg [17:08:35]Connected sock=9 [17:08: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 36 37 0F 01 00 00 80 96 07 01 D8 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 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 A0 00 00 00 F4 03 04 00 51 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D4 CA 01 00 35 04 06 00 4E B1 69 7A 28 9C 02 DC B4 39 A5 3A D8 D1 [17:08: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 36 37 4F 00 00 00 49 55 47 00 27 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 36 37 10 04 04 00 D4 CA 01 00 F4 03 04 00 50 1F 1E 67 B6 04 01 00 00 B6 74 69 C3 BC 47 44 52 [17:08:35]CommunicateWithHost err = 0 [17:08:35]CheckOFDResponse [17:08:35]1017 (14) - 77093643461234 [17:08:35]1041 (16) - 0000000000871767 [17:08:35]1040 (4) - 117460 [17:08:35]1012 (4) - 27.10.2024 11:09 [17:08:35]1206 (1) - 0 [17:08:35]OFD Sender: Remove packet 117460 [17:08:35]ProducePacketName [17:08:35]name=ofd_packets/00117460 [17:08:35]NVStorageDeleteData [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:44]accept exits with 7 [17:09:44]New connection [17:09:44]New thread 3067600228 created [17:09:44]Thread 3067456868 joined [17:09:44]Waiting for new connection... [17:09:44] Sock 7.Parse request [17:09:44]Sock 7.Check first char [17:09:44]Sock 7.First char is OK [17:09:44]request: POST /json_proto HTTP/1.0 [17:09:44]Method: POST [17:09:44]URL: /json_proto [17:09:44]Method is POST - this is cgi request [17:09:44]url: /json_proto [17:09:44]query_string will be loaded in cgi processing [17:09:44]execute_cgi json_proto POST (null) [17:09:44]execute_cgi path=json_proto method=POST [17:09:44]POST find Content-Length [17:09:44]Host: 172.17.96.67:8080 [17:09:44]Content-Length: 677 [17:09:44]Content-Type: application/json [17:09:44] [17:09:44]POST finish read [17:09:44]Found Content-Length = 677 [17:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:09:44]execute_script... [17:09:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:09:44]POST & json_proto [17:09:44]process_json_proto [17:09:44]json parsed OK: [17:09:44]protocol is kg_v1.0 [17:09:44]action value=close_receipt [17:09:44]process_action close_receipt [17:09:44]cmd_close_receipt [17:09:44]MH_GetDate [17:09:44]Write to MH i2c: F0 00 00 13 23 25 [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: F0 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: F0 09 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: F0 09 00 13 23 00 DA 73 1E 67 2B 09 1E 67 B9 [17:09:44]GetLastDocTimeStamp 1730048849 [17:09:44]current date 1730048986 [17:09:44]FM_GetShiftState [17:09:44]SAM_PROTO_GetShiftState [17:09:44]wFMCommunicate request_size=4 [17:09:44]MH_SAM_APDU [17:09:44]CAPDU: 80 13 01 00 [17:09:44]Write to MH i2c: E2 08 00 14 23 80 13 01 00 00 00 00 00 B4 [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 0E 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 0E 00 14 23 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F3 [17:09:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:09:44]wFMCommunicate OK [17:09:44]SAM_PROTO_GetShiftState done [17:09:44]FM_GetShiftState done [17:09:44]opened in 1729987372 [17:09:44]opened+sec_in_day 1730073772 [17:09:44]quantity*price = 30038 [17:09:44]sum+1 = 30039 [17:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 161 27.10.2024 17:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117461 ФПД: 47027420841471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170946&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117461&fm=47027420841471&tin=02508201610067®Number=0000000000091782&sum=30000 [17:09:45]StoreToDocumentArchive [17:09:45]shift 542 fd 117461 [17:09:45]save to /storage/0542/doc_00117461 [17:09:45]save last doc name /storage/0542/doc_00117461 to /storage/kkm_last_doc_name [17:09:45]save OK [17:09:45]Clear old archive folders... [17:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:45]tlvbuf is B6F46210 [17:09:45]SAM_PROTO_ClearQueue [17:09:45]wFMCommunicate request_size=4 [17:09:45]MH_SAM_APDU [17:09:45]CAPDU: 80 09 00 00 [17:09:45]Write to MH i2c: E2 08 00 21 23 80 09 00 00 00 00 00 00 B6 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:45]Read from MH i2c: E2 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 03 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 03 00 21 23 00 90 00 B8 [17:09:45]RAPDU: 90 00 [17:09:45]wFMCommunicate OK [17:09:45]SAM_PROTO_ClearQueue done [17:09:45]KKMCreateOFDPacket [17:09:45]OFDProtocolAddRootSTLVToBuf [17:09:45]FM_MakeSignedData [17:09:45]FM_MakeSignedData [17:09:45]SAM_PROTO_SignData [17:09:45]wFMCommunicate request_size=4 [17:09:45]MH_SAM_APDU [17:09:45]CAPDU: 80 0D 01 02 [17:09:45]Write to MH i2c: E2 08 00 22 23 80 0D 01 02 00 00 00 00 BE [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:45]Read from MH i2c: E2 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 03 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 03 00 22 23 00 90 00 B9 [17:09:45]RAPDU: 90 00 [17:09:45]wFMCommunicate OK [17:09:45]wFMCommunicate request_size=255 [17:09:45]MH_SAM_APDU [17:09:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A1 00 00 00 F4 03 04 00 DA 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D5 CA 01 00 35 04 06 00 2A [17:09:45]Write to MH i2c: E2 02 01 23 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 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 A1 00 00 00 F4 03 04 00 DA 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D5 CA 01 00 35 04 06 00 2A 00 00 A1 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:45]Read from MH i2c: E2 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 03 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [17:09:45]RAPDU: 90 00 [17:09:45]wFMCommunicate OK [17:09:45]wFMCommunicate request_size=10 [17:09:45]MH_SAM_APDU [17:09:45]CAPDU: 80 0D 02 02 05 C5 6C B6 C5 FF [17:09:45]Write to MH i2c: E2 0D 00 24 23 80 0D 02 02 05 00 C5 6C B6 C5 FF 00 00 76 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:45]Read from MH i2c: E2 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 03 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 03 00 24 23 00 90 00 BB [17:09:45]RAPDU: 90 00 [17:09:45]wFMCommunicate OK [17:09:45]wFMCommunicate request_size=4 [17:09:45]MH_SAM_APDU [17:09:45]CAPDU: 80 0D 03 02 [17:09:45]Write to MH i2c: E2 08 00 25 23 80 0D 03 02 00 00 00 00 C3 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:45]Read from MH i2c: E2 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 0B 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 0B 00 25 23 00 79 27 07 0F 3F 15 C3 C2 90 00 53 [17:09:45]RAPDU: 79 27 07 0F 3F 15 C3 C2 90 00 [17:09:45]wFMCommunicate OK [17:09:45]SAM_PROTO_SignData done [17:09:45]FM_MakeSignedData done [17:09:45]CreateOFDProtocolMessage [17:09:45]wFMCommunicate request_size=4 [17:09:45]MH_SAM_APDU [17:09:45]CAPDU: 80 11 00 00 [17:09:45]Write to MH i2c: E2 08 00 26 23 80 11 00 00 00 00 00 00 C3 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:45]Read from MH i2c: E2 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 17 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 17 00 26 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1A [17:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:09:45]wFMCommunicate OK [17:09:45]CreateOFDProtocolMessage done [17:09:45]OFDSenderStorePacket 117461 [17:09:45]StoreOFDPacket docnum=117461 [17:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 61 C0 07 01 42 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 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 A1 00 00 00 F4 03 04 00 DA 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D5 CA 01 00 35 04 06 00 2A C5 6C B6 C5 FF 79 27 07 0F 3F 15 C3 C2 [17:09:45]CheckFolder [17:09:45]dirname=/storage/ofd_packets [17:09:45]CheckFolder done [17:09:45]ProducePacketName [17:09:45]name=ofd_packets/00117461 [17:09:45]NVStorageSaveData ofd_packets/00117461 [17:09:45]File name is /storage/ofd_packets/00117461 [17:09:45]Write 301 bytes [17:09:45]NVStorageSaveData done [17:09:45]OFDSenderStorePacket done [17:09:45]KKMCreateOFDPacket done [17:09:45]NVStorageSaveData kkm_last_timestamp [17:09:45]File name is /storage/kkm_last_timestamp [17:09:45]Write 4 bytes [17:09:45]NVStorageSaveData done [17:09:45]OFD Sender: Processing packet 117461 [packets to send 76, broken 75] [17:09:45]ProducePacketName [17:09:45]name=ofd_packets/00117461 [17:09:45]OFD Sender: To server: pG, [17:09:45]CommunicateWithHost lk.salyk.kg:30040 [17:09:45]ConnectInit lk.salyk.kg [17:09:45]ExternCall_PrintAddStr [17:09:45]wPrintStart [17:09:45]Write to MH i2c: 01 00 00 27 23 4A [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 07 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 FF 0F 5F [17:09:45]RasterBufferAndPrint [17:09:45]line Счет N : (1)245237 [17:09:45]line ИНН: 02508201610067 [17:09:45]line Контрольно-Кассовый Чек [17:09:45]line ПРОДАЖА [17:09:45]line ТРК (МРК, ГНК) : 11 [17:09:45]line Товар: 2710124130 [17:09:45]line Аи-92-К-2 [17:09:45]line 4.490 * 66.90 [17:09:45]line = 300.38 [17:09:45]line НДС 12% НСП 1% [17:09:45]line > о реализуемом товаре [17:09:45]line ОКРУГЛЕНИЕ: -0.38 [17:09:45]line ИТОГО: 300.00 [17:09:45]line Внесено: 300.00 [17:09:45]line СДАЧА: 0.00 [17:09:45]line НСП 1% : 2.66 [17:09:45]line НДС 12% : 31.90 [17:09:45]line Наличными: 300.00 [17:09:45]line Безнал.: 0.00 [17:09:45]line Место: АЗС № 173 "Партнер Нефть" [17:09:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:09:45]line СНО: Общий режим [17:09:45]line Чек 161 27.10.2024 17:09 [17:09:45]line Смена: 542 ФФД: 1.0 [17:09:45]line ЗНМ: 0300000115 [17:09:45]line РНМ: 0000000000091782 [17:09:45]line Версия ККМ: 001 [17:09:45]line ФМ: 0000000000871767 [17:09:45]line ФД: 117461 [17:09:45]line ФПД: 47027420841471 [17:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170946&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117461&fm=47027420841471&tin=02508201610067®Number=0000000000091782&sum=30000 [17:09:46]Connected sock=11 [17:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 61 C0 07 01 42 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 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 A1 00 00 00 F4 03 04 00 DA 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D5 CA 01 00 35 04 06 00 2A C5 6C B6 C5 FF 79 27 07 0F 3F 15 C3 C2 [17:09:46]written 0, free lines is 4095 [17:09: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 36 37 4F 00 00 00 D4 51 47 00 67 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 36 37 10 04 04 00 D5 CA 01 00 F4 03 04 00 97 1F 1E 67 B6 04 01 00 00 68 19 4C CA 64 E9 15 CF [17:09:46]CommunicateWithHost err = 0 [17:09:46]CheckOFDResponse [17:09:46]1017 (14) - 77093643461234 [17:09:46]1041 (16) - 0000000000871767 [17:09:46]1040 (4) - 117461 [17:09:46]1012 (4) - 27.10.2024 11:10 [17:09:46]1206 (1) - 0 [17:09:46]OFD Sender: Remove packet 117461 [17:09:46]ProducePacketName [17:09:46]name=ofd_packets/00117461 [17:09:46]NVStorageDeleteData [17:09:46]Write to MH i2c: 01 00 00 51 23 74 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: 01 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: 01 07 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: 01 07 00 51 23 00 00 00 00 00 B1 0C 38 [17:09:46]RasterBufferAndPrint [17:09:46]line [17:09:46]line [17:09:46]line [17:09:46]line [17:09:46]line [17:09:46]written 0, free lines is 3255 [17:09:46]MH_Cut [17:09:46]Write to MH i2c: D1 01 00 58 23 01 4D [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: D1 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: D1 01 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: D1 01 00 58 23 00 4C [17:09:46]Write to MH i2c: 01 00 00 59 23 7C [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]OFD Sender: No OFD packet to send [17:09:47]*** Cut start [17:09:47]*** Purtial cut [17:09:47]*** Stage 1: CUTSNS_PIN = 1 [17:09:47]Read from MH i2c: 01 [17:09:47]MH_I2C_Read... [17:09:47]*** Stop cut motor [17:09:47]*** Cut end [17:09:47]Read from MH i2c: 01 07 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: 01 07 00 59 23 00 00 00 00 00 FF 0F 91 [17:09:47]process_action close_receipt done [17:09:47]requested_data is exist [17:09:47]produce_requested_data [17:09:47]requested_item fm.sn is exist - process it [17:09:47]wFMCommunicate request_size=4 [17:09:47]MH_SAM_APDU [17:09:47]CAPDU: 80 11 00 00 [17:09:47]Write to MH i2c: E2 08 00 5A 23 80 11 00 00 00 00 00 00 F7 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:47]Read from MH i2c: E2 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 17 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 17 00 5A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4E [17:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:09:47]wFMCommunicate OK [17:09:47]requested_item fd.num is exist - process it [17:09:47]SAM_PROTO_GetFieldsCounters [17:09:47]wFMCommunicate request_size=4 [17:09:47]MH_SAM_APDU [17:09:47]CAPDU: 80 13 00 00 [17:09:47]Write to MH i2c: E2 08 00 5B 23 80 13 00 00 00 00 00 00 FA [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:47]Read from MH i2c: E2 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 62 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 62 00 5B 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D5 CA 01 00 0E 04 04 00 1E 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 C4 [17:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D5 CA 01 00 0E 04 04 00 1E 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 [17:09:47]wFMCommunicate OK [17:09:47]SAM_PROTO_GetFieldsCounters done [17:09:47]requested_item shift.num is exist - process it [17:09:47]requested_item shift.opened is exist - process it [17:09:47]req_shift_opened [17:09:47]FM_GetShiftState [17:09:47]SAM_PROTO_GetShiftState [17:09:47]wFMCommunicate request_size=4 [17:09:47]MH_SAM_APDU [17:09:47]CAPDU: 80 13 01 00 [17:09:47]Write to MH i2c: E2 08 00 5C 23 80 13 01 00 00 00 00 00 FC [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:47]Read from MH i2c: E2 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 0E 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 0E 00 5C 23 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 3B [17:09:47]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:09:47]wFMCommunicate OK [17:09:47]SAM_PROTO_GetShiftState done [17:09:47]FM_GetShiftState done [17:09:47]req_shift_opened done [17:09:47]requested_item shift.open_date is exist - process it [17:09:47]req_shift_open_date [17:09:47]req_shift_open_date done [17:09:47]produce_requested_data done [17:09:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117461,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:09:47]process_action_free close_receipt [17:09:47]json_value_free [17:09:47]json_value_free done [17:09:47]process_json_proto returns [17:09:47]Send response to host [17:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117461,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:09:47]free response buf [17:09:47]execute_script done [17:09:47]execute_script returns [17:09:47]free content buf [17:09:47]Sock 7.Close socket [17:09:47]Sock 7.Thread stoped [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:45]accept exits with 9 [17:25:45]New connection [17:25:45]New thread 3067456868 created [17:25:45]Thread 3067600228 joined [17:25:45]Waiting for new connection... [17:25:45] Sock 9.Parse request [17:25:45]Sock 9.Check first char [17:25:45]Sock 9.First char is OK [17:25:45]request: POST /json_proto HTTP/1.0 [17:25:45]Method: POST [17:25:45]URL: /json_proto [17:25:45]Method is POST - this is cgi request [17:25:45]url: /json_proto [17:25:45]query_string will be loaded in cgi processing [17:25:45]execute_cgi json_proto POST (null) [17:25:45]execute_cgi path=json_proto method=POST [17:25:45]POST find Content-Length [17:25:45]Host: 172.17.96.67:8080 [17:25:45]Content-Length: 679 [17:25:45]Content-Type: application/json [17:25:45] [17:25:45]POST finish read [17:25:45]Found Content-Length = 679 [17:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [17:25:45]execute_script... [17: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)245238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [17:25:45]POST & json_proto [17:25:45]process_json_proto [17:25:45]json parsed OK: [17:25:45]protocol is kg_v1.0 [17:25:45]action value=close_receipt [17:25:45]process_action close_receipt [17:25:45]cmd_close_receipt [17:25:45]MH_GetDate [17:25:45]Write to MH i2c: F0 00 00 5D 23 6F [17:25:45]Write i2c OK [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: F0 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: F0 09 00 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: F0 09 00 5D 23 00 9B 77 1E 67 2B 09 1E 67 C8 [17:25:45]GetLastDocTimeStamp 1730048986 [17:25:45]current date 1730049947 [17:25:45]FM_GetShiftState [17:25:45]SAM_PROTO_GetShiftState [17:25:45]wFMCommunicate request_size=4 [17:25:45]MH_SAM_APDU [17:25:45]CAPDU: 80 13 01 00 [17:25:45]Write to MH i2c: E2 08 00 5E 23 80 13 01 00 00 00 00 00 FE [17:25:45]Write i2c OK [17:25:45]MH_I2C_Read... [17:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:45]Read from MH i2c: E2 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: E2 0E 00 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: E2 0E 00 5E 23 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 3D [17:25:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:25:45]wFMCommunicate OK [17:25:45]SAM_PROTO_GetShiftState done [17:25:45]FM_GetShiftState done [17:25:45]opened in 1729987372 [17:25:45]opened+sec_in_day 1730073772 [17:25:45]quantity*price = 100050 [17:25:45]sum+1 = 100052 [17:25:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 162 27.10.2024 17:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117462 ФПД: 259357920759916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172547&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117462&fm=259357920759916&tin=02508201610067®Number=0000000000091782&sum=100000 [17:25:46]StoreToDocumentArchive [17:25:46]shift 542 fd 117462 [17:25:46]save to /storage/0542/doc_00117462 [17:25:46]save last doc name /storage/0542/doc_00117462 to /storage/kkm_last_doc_name [17:25:46]save OK [17:25:46]Clear old archive folders... [17:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:25:46]tlvbuf is 01773E00 [17:25:46]SAM_PROTO_ClearQueue [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 09 00 00 [17:25:46]Write to MH i2c: E2 08 00 6B 23 80 09 00 00 00 00 00 00 00 [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [17:25:46]RAPDU: 90 00 [17:25:46]wFMCommunicate OK [17:25:46]SAM_PROTO_ClearQueue done [17:25:46]KKMCreateOFDPacket [17:25:46]OFDProtocolAddRootSTLVToBuf [17:25:46]FM_MakeSignedData [17:25:46]FM_MakeSignedData [17:25:46]SAM_PROTO_SignData [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 0D 01 02 [17:25:46]Write to MH i2c: E2 08 00 6C 23 80 0D 01 02 00 00 00 00 08 [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 6C 23 00 90 00 03 [17:25:46]RAPDU: 90 00 [17:25:46]wFMCommunicate OK [17:25:46]wFMCommunicate request_size=255 [17:25:46]MH_SAM_APDU [17:25: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 A2 00 00 00 F4 03 04 00 9B 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D6 CA 01 00 35 04 06 00 EB E2 78 BC [17:25:46]Write to MH i2c: E2 02 01 6D 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 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 A2 00 00 00 F4 03 04 00 9B 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D6 CA 01 00 35 04 06 00 EB E2 78 BC 00 00 8B [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [17:25:46]RAPDU: 90 00 [17:25:46]wFMCommunicate OK [17:25:46]wFMCommunicate request_size=7 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 0D 02 02 02 90 6C [17:25:46]Write to MH i2c: E2 0A 00 6E 23 80 0D 02 02 02 00 90 6C 00 00 0B [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 6E 23 00 90 00 05 [17:25:46]RAPDU: 90 00 [17:25:46]wFMCommunicate OK [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 0D 03 02 [17:25:46]Write to MH i2c: E2 08 00 6F 23 80 0D 03 02 00 00 00 00 0D [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 0B 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 0B 00 6F 23 00 4F A6 9D EC 13 C3 71 C9 90 00 9C [17:25:46]RAPDU: 4F A6 9D EC 13 C3 71 C9 90 00 [17:25:46]wFMCommunicate OK [17:25:46]SAM_PROTO_SignData done [17:25:46]FM_MakeSignedData done [17:25:46]CreateOFDProtocolMessage [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 11 00 00 [17:25:46]Write to MH i2c: E2 08 00 70 23 80 11 00 00 00 00 00 00 0D [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 17 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 17 00 70 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 64 [17:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:25:46]wFMCommunicate OK [17:25:46]CreateOFDProtocolMessage done [17:25:46]OFDSenderStorePacket 117462 [17:25:46]StoreOFDPacket docnum=117462 [17:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 91 AC 04 01 13 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 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 A2 00 00 00 F4 03 04 00 9B 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D6 CA 01 00 35 04 06 00 EB E2 78 BC 90 6C 4F A6 9D EC 13 C3 71 C9 [17:25:46]CheckFolder [17:25:46]dirname=/storage/ofd_packets [17:25:46]CheckFolder done [17:25:46]ProducePacketName [17:25:46]name=ofd_packets/00117462 [17:25:46]NVStorageSaveData ofd_packets/00117462 [17:25:46]File name is /storage/ofd_packets/00117462 [17:25:46]Write 298 bytes [17:25:46]NVStorageSaveData done [17:25:46]OFDSenderStorePacket done [17:25:46]KKMCreateOFDPacket done [17:25:46]NVStorageSaveData kkm_last_timestamp [17:25:46]File name is /storage/kkm_last_timestamp [17:25:46]Write 4 bytes [17:25:46]NVStorageSaveData done [17:25:46]ExternCall_PrintAddStr [17:25:46]wPrintStart [17:25:46]Write to MH i2c: 01 00 00 71 23 94 [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: 01 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: 01 07 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: 01 07 00 71 23 00 00 00 00 00 FF 0F A9 [17:25:46]RasterBufferAndPrint [17:25:46]line Счет N : (1)245238 [17:25:46]line ИНН: 02508201610067 [17:25:46]line Контрольно-Кассовый Чек [17:25:46]line ПРОДАЖА [17:25:46]line ТРК (МРК, ГНК) : 13 [17:25:46]line Товар: 2710194210 [17:25:46]line ДТ-К-2 [17:25:46]line 13.130 * 76.20 [17:25:46]line = 1000.51 [17:25:46]line НДС 12% НСП 1% [17:25:46]line > о реализуемом товаре [17:25:46]line ОКРУГЛЕНИЕ: -0.51 [17:25:46]line ИТОГО: 1000.00 [17:25:46]line Внесено: 1000.00 [17:25:46]line СДАЧА: 0.00 [17:25:46]line НСП 1% : 8.85 [17:25:46]line НДС 12% : 106.25 [17:25:46]line Наличными: 1000.00 [17:25:46]line Безнал.: 0.00 [17:25:46]line Место: АЗС № 173 "Партнер Нефть" [17:25:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:25:46]line СНО: Общий режим [17:25:46]line Чек 162 27.10.2024 17:25 [17:25:46]line Смена: 542 ФФД: 1.0 [17:25:46]line ЗНМ: 0300000115 [17:25:46]line РНМ: 0000000000091782 [17:25:46]line Версия ККМ: 001 [17:25:46]line ФМ: 0000000000871767 [17:25:46]line ФД: 117462 [17:25:46]line ФПД: 259357920759916 [17:25:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172547&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117462&fm=259357920759916&tin=02508201610067®Number=0000000000091782&sum=100000 [17:25:47]OFD Sender: Processing packet 117462 [packets to send 76, broken 75] [17:25:47]ProducePacketName [17:25:47]name=ofd_packets/00117462 [17:25:47]OFD Sender: To server: pG, [17:25:47]CommunicateWithHost lk.salyk.kg:30040 [17:25:47]ConnectInit lk.salyk.kg [17:25:47]written 0, free lines is 4095 [17:25:47]Connected sock=10 [17: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 36 37 0C 01 00 00 91 AC 04 01 13 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 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 A2 00 00 00 F4 03 04 00 9B 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D6 CA 01 00 35 04 06 00 EB E2 78 BC 90 6C 4F A6 9D EC 13 C3 71 C9 [17: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 36 37 4F 00 00 00 97 30 47 00 1A 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 36 37 10 04 04 00 D6 CA 01 00 F4 03 04 00 58 23 1E 67 B6 04 01 00 00 CF A6 BE 33 AA 75 FD 3D [17:25:47]CommunicateWithHost err = 0 [17:25:47]CheckOFDResponse [17:25:47]1017 (14) - 77093643461234 [17:25:47]1041 (16) - 0000000000871767 [17:25:47]1040 (4) - 117462 [17:25:47]1012 (4) - 27.10.2024 11:26 [17:25:47]1206 (1) - 0 [17:25:47]OFD Sender: Remove packet 117462 [17:25:47]ProducePacketName [17:25:47]name=ofd_packets/00117462 [17:25:47]NVStorageDeleteData [17:25:47]Write to MH i2c: 01 00 00 9B 23 BE [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: 01 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: 01 07 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: 01 07 00 9B 23 00 00 00 00 00 B7 0C 88 [17:25:47]RasterBufferAndPrint [17:25:47]line [17:25:47]line [17:25:47]line [17:25:47]line [17:25:47]line [17:25:47]written 0, free lines is 3262 [17:25:47]MH_Cut [17:25:47]Write to MH i2c: D1 01 00 A2 23 01 97 [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: D1 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: D1 01 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: D1 01 00 A2 23 00 96 [17:25:47]Write to MH i2c: 01 00 00 A3 23 C6 [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]OFD Sender: No OFD packet to send [17:25:48]*** Cut start [17:25:48]*** Purtial cut [17:25:48]*** Stage 1: CUTSNS_PIN = 1 [17:25:48]Read from MH i2c: 01 [17:25:48]MH_I2C_Read... [17:25:48]*** Stop cut motor [17:25:48]*** Cut end [17:25:48]Read from MH i2c: 01 07 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: 01 07 00 A3 23 00 00 00 00 00 FF 0F DB [17:25:48]process_action close_receipt done [17:25:48]requested_data is exist [17:25:48]produce_requested_data [17:25:48]requested_item fm.sn is exist - process it [17:25:48]wFMCommunicate request_size=4 [17:25:48]MH_SAM_APDU [17:25:48]CAPDU: 80 11 00 00 [17:25:48]Write to MH i2c: E2 08 00 A4 23 80 11 00 00 00 00 00 00 41 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: E2 [17:25:48]MH_I2C_Read... [17:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:48]Read from MH i2c: E2 17 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: E2 17 00 A4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 98 [17:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:25:48]wFMCommunicate OK [17:25:48]requested_item fd.num is exist - process it [17:25:48]SAM_PROTO_GetFieldsCounters [17:25:48]wFMCommunicate request_size=4 [17:25:48]MH_SAM_APDU [17:25:48]CAPDU: 80 13 00 00 [17:25:48]Write to MH i2c: E2 08 00 A5 23 80 13 00 00 00 00 00 00 44 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:48]Read from MH i2c: E2 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: E2 62 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: E2 62 00 A5 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D6 CA 01 00 0E 04 04 00 1E 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 12 [17:25: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D6 CA 01 00 0E 04 04 00 1E 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 [17:25:48]wFMCommunicate OK [17:25:48]SAM_PROTO_GetFieldsCounters done [17:25:48]requested_item shift.num is exist - process it [17:25:48]requested_item shift.opened is exist - process it [17:25:48]req_shift_opened [17:25:48]FM_GetShiftState [17:25:48]SAM_PROTO_GetShiftState [17:25:48]wFMCommunicate request_size=4 [17:25:48]MH_SAM_APDU [17:25:48]CAPDU: 80 13 01 00 [17:25:48]Write to MH i2c: E2 08 00 A6 23 80 13 01 00 00 00 00 00 46 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:48]Read from MH i2c: E2 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: E2 0E 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: E2 0E 00 A6 23 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 85 [17:25:48]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:25:48]wFMCommunicate OK [17:25:48]SAM_PROTO_GetShiftState done [17:25:48]FM_GetShiftState done [17:25:48]req_shift_opened done [17:25:48]requested_item shift.open_date is exist - process it [17:25:48]req_shift_open_date [17:25:48]req_shift_open_date done [17:25:48]produce_requested_data done [17:25:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117462,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:25:48]process_action_free close_receipt [17:25:48]json_value_free [17:25:48]json_value_free done [17:25:48]process_json_proto returns [17:25:48]Send response to host [17:25:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117462,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:25:48]free response buf [17:25:48]execute_script done [17:25:48]execute_script returns [17:25:48]free content buf [17:25:48]Sock 9.Close socket [17:25:48]Sock 9.Thread stoped [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:46:59]accept exits with 7 [17:46:59]New connection [17:46:59]New thread 3067600228 created [17:46:59]Thread 3067456868 joined [17:46:59]Waiting for new connection... [17:46:59] Sock 7.Parse request [17:46:59]Sock 7.Check first char [17:46:59]Sock 7.First char is OK [17:46:59]request: POST /json_proto HTTP/1.0 [17:46:59]Method: POST [17:46:59]URL: /json_proto [17:46:59]Method is POST - this is cgi request [17:46:59]url: /json_proto [17:46:59]query_string will be loaded in cgi processing [17:46:59]execute_cgi json_proto POST (null) [17:46:59]execute_cgi path=json_proto method=POST [17:46:59]POST find Content-Length [17:46:59]Host: 172.17.96.67:8080 [17:46:59]Content-Length: 682 [17:46:59]Content-Type: application/json [17:46:59] [17:46:59]POST finish read [17:46:59]Found Content-Length = 682 [17:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:46:59]execute_script... [17:46: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)245239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:46:59]POST & json_proto [17:46:59]process_json_proto [17:46:59]json parsed OK: [17:46:59]protocol is kg_v1.0 [17:46:59]action value=close_receipt [17:46:59]process_action close_receipt [17:46:59]cmd_close_receipt [17:46:59]MH_GetDate [17:46:59]Write to MH i2c: F0 00 00 A7 23 B9 [17:46:59]Write i2c OK [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: F0 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: F0 09 00 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: F0 09 00 A7 23 00 96 7C 1E 67 2B 09 1E 67 12 [17:46:59]GetLastDocTimeStamp 1730049947 [17:46:59]current date 1730051222 [17:46:59]FM_GetShiftState [17:46:59]SAM_PROTO_GetShiftState [17:46:59]wFMCommunicate request_size=4 [17:46:59]MH_SAM_APDU [17:46:59]CAPDU: 80 13 01 00 [17:46:59]Write to MH i2c: E2 08 00 A8 23 80 13 01 00 00 00 00 00 48 [17:46:59]Write i2c OK [17:46:59]MH_I2C_Read... [17:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:59]Read from MH i2c: E2 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 0E 00 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 0E 00 A8 23 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 87 [17:46:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:46:59]wFMCommunicate OK [17:46:59]SAM_PROTO_GetShiftState done [17:46:59]FM_GetShiftState done [17:46:59]opened in 1729987372 [17:46:59]opened+sec_in_day 1730073772 [17:46:59]quantity*price = 100015 [17:46:59]sum+1 = 100017 [17:46: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 163 27.10.2024 17:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117463 ФПД: 186738929424678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174702&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117463&fm=186738929424678&tin=02508201610067®Number=0000000000091782&sum=100000 [17:47:01]StoreToDocumentArchive [17:47:01]shift 542 fd 117463 [17:47:01]save to /storage/0542/doc_00117463 [17:47:01]save last doc name /storage/0542/doc_00117463 to /storage/kkm_last_doc_name [17:47:01]save OK [17:47:01]Clear old archive folders... [17:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:01]tlvbuf is 01783FB0 [17:47:01]SAM_PROTO_ClearQueue [17:47:01]wFMCommunicate request_size=4 [17:47:01]MH_SAM_APDU [17:47:01]CAPDU: 80 09 00 00 [17:47:01]Write to MH i2c: E2 08 00 B5 23 80 09 00 00 00 00 00 00 4A [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:01]Read from MH i2c: E2 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 03 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 03 00 B5 23 00 90 00 4C [17:47:01]RAPDU: 90 00 [17:47:01]wFMCommunicate OK [17:47:01]SAM_PROTO_ClearQueue done [17:47:01]KKMCreateOFDPacket [17:47:01]OFDProtocolAddRootSTLVToBuf [17:47:01]FM_MakeSignedData [17:47:01]FM_MakeSignedData [17:47:01]SAM_PROTO_SignData [17:47:01]wFMCommunicate request_size=4 [17:47:01]MH_SAM_APDU [17:47:01]CAPDU: 80 0D 01 02 [17:47:01]Write to MH i2c: E2 08 00 B6 23 80 0D 01 02 00 00 00 00 52 [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:01]Read from MH i2c: E2 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 03 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 03 00 B6 23 00 90 00 4D [17:47:01]RAPDU: 90 00 [17:47:01]wFMCommunicate OK [17:47:01]wFMCommunicate request_size=255 [17:47:01]MH_SAM_APDU [17:47: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 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 A3 00 00 00 F4 03 04 00 96 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D7 CA 01 00 35 04 06 00 A9 [17:47:01]Write to MH i2c: E2 02 01 B7 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 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 A3 00 00 00 F4 03 04 00 96 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D7 CA 01 00 35 04 06 00 A9 00 00 83 [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:01]Read from MH i2c: E2 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 03 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 03 00 B7 23 00 90 00 4E [17:47:01]RAPDU: 90 00 [17:47:01]wFMCommunicate OK [17:47:01]wFMCommunicate request_size=10 [17:47:01]MH_SAM_APDU [17:47:01]CAPDU: 80 0D 02 02 05 D6 8B 8D D9 26 [17:47:01]Write to MH i2c: E2 0D 00 B8 23 80 0D 02 02 05 00 D6 8B 8D D9 26 00 00 4C [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:01]Read from MH i2c: E2 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 03 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 03 00 B8 23 00 90 00 4F [17:47:01]RAPDU: 90 00 [17:47:01]wFMCommunicate OK [17:47:01]wFMCommunicate request_size=4 [17:47:01]MH_SAM_APDU [17:47:01]CAPDU: 80 0D 03 02 [17:47:01]Write to MH i2c: E2 08 00 B9 23 80 0D 03 02 00 00 00 00 57 [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:01]Read from MH i2c: E2 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 0B 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 0B 00 B9 23 00 F0 07 5C 1E 23 C3 B0 85 90 00 E4 [17:47:01]RAPDU: F0 07 5C 1E 23 C3 B0 85 90 00 [17:47:01]wFMCommunicate OK [17:47:01]SAM_PROTO_SignData done [17:47:01]FM_MakeSignedData done [17:47:01]CreateOFDProtocolMessage [17:47:01]wFMCommunicate request_size=4 [17:47:01]MH_SAM_APDU [17:47:01]CAPDU: 80 11 00 00 [17:47:01]Write to MH i2c: E2 08 00 BA 23 80 11 00 00 00 00 00 00 57 [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:01]Read from MH i2c: E2 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 17 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: E2 17 00 BA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AE [17:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:47:01]wFMCommunicate OK [17:47:01]CreateOFDProtocolMessage done [17:47:01]OFDSenderStorePacket 117463 [17:47:01]StoreOFDPacket docnum=117463 [17:47:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 09 01 07 01 99 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A3 00 00 00 F4 03 04 00 96 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D7 CA 01 00 35 04 06 00 A9 D6 8B 8D D9 26 F0 07 5C 1E 23 C3 B0 85 [17:47:01]CheckFolder [17:47:01]dirname=/storage/ofd_packets [17:47:01]CheckFolder done [17:47:01]ProducePacketName [17:47:01]name=ofd_packets/00117463 [17:47:01]NVStorageSaveData ofd_packets/00117463 [17:47:01]File name is /storage/ofd_packets/00117463 [17:47:01]Write 301 bytes [17:47:01]NVStorageSaveData done [17:47:01]OFDSenderStorePacket done [17:47:01]KKMCreateOFDPacket done [17:47:01]NVStorageSaveData kkm_last_timestamp [17:47:01]File name is /storage/kkm_last_timestamp [17:47:01]Write 4 bytes [17:47:01]NVStorageSaveData done [17:47:01]ExternCall_PrintAddStr [17:47:01]wPrintStart [17:47:01]Write to MH i2c: 01 00 00 BB 23 DE [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: 01 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: 01 07 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: 01 07 00 BB 23 00 00 00 00 00 FF 0F F3 [17:47:01]RasterBufferAndPrint [17:47:01]line Счет N : (1)245239 [17:47:01]line ИНН: 02508201610067 [17:47:01]line Контрольно-Кассовый Чек [17:47:01]line ПРОДАЖА [17:47:01]line ТРК (МРК, ГНК) : 11 [17:47:01]line Товар: 2710124130 [17:47:01]line Аи-92-К-2 [17:47:01]line 14.950 * 66.90 [17:47:01]line = 1000.16 [17:47:01]line НДС 12% НСП 1% [17:47:01]line > о реализуемом товаре [17:47:01]line ОКРУГЛЕНИЕ: -0.16 [17:47:01]line ИТОГО: 1000.00 [17:47:01]line Внесено: 1000.00 [17:47:01]line СДАЧА: 0.00 [17:47:01]line НСП 1% : 8.85 [17:47:01]line НДС 12% : 106.21 [17:47:01]line Наличными: 1000.00 [17:47:01]line Безнал.: 0.00 [17:47:01]line Место: АЗС № 173 "Партнер Нефть" [17:47:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:47:01]line СНО: Общий режим [17:47:01]line Чек 163 27.10.2024 17:47 [17:47:01]line Смена: 542 ФФД: 1.0 [17:47:01]line ЗНМ: 0300000115 [17:47:01]line РНМ: 0000000000091782 [17:47:01]line Версия ККМ: 001 [17:47:01]line ФМ: 0000000000871767 [17:47:01]line ФД: 117463 [17:47:01]line ФПД: 186738929424678 [17:47:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174702&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117463&fm=186738929424678&tin=02508201610067®Number=0000000000091782&sum=100000 [17:47:01]OFD Sender: Processing packet 117463 [packets to send 76, broken 75] [17:47:01]ProducePacketName [17:47:01]name=ofd_packets/00117463 [17:47:01]OFD Sender: To server: pG, [17:47:01]CommunicateWithHost lk.salyk.kg:30040 [17:47:01]ConnectInit lk.salyk.kg [17:47:01]written 0, free lines is 4095 [17:47:02]Connected sock=9 [17:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 09 01 07 01 99 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A3 00 00 00 F4 03 04 00 96 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D7 CA 01 00 35 04 06 00 A9 D6 8B 8D D9 26 F0 07 5C 1E 23 C3 B0 85 [17:47: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 36 37 4F 00 00 00 0A 1F 47 00 91 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 36 37 10 04 04 00 D7 CA 01 00 F4 03 04 00 53 28 1E 67 B6 04 01 00 00 F9 41 9E 7D DA 78 77 33 [17:47:02]CommunicateWithHost err = 0 [17:47:02]CheckOFDResponse [17:47:02]1017 (14) - 77093643461234 [17:47:02]1041 (16) - 0000000000871767 [17:47:02]1040 (4) - 117463 [17:47:02]1012 (4) - 27.10.2024 11:47 [17:47:02]1206 (1) - 0 [17:47:02]OFD Sender: Remove packet 117463 [17:47:02]ProducePacketName [17:47:02]name=ofd_packets/00117463 [17:47:02]NVStorageDeleteData [17:47:02]Write to MH i2c: 01 00 00 E5 23 08 [17:47:02]Write i2c OK [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: 01 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: 01 07 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: 01 07 00 E5 23 00 00 00 00 00 BC 0C D7 [17:47:02]RasterBufferAndPrint [17:47:02]line [17:47:02]line [17:47:02]line [17:47:02]line [17:47:02]line [17:47:02]written 0, free lines is 3268 [17:47:02]MH_Cut [17:47:02]Write to MH i2c: D1 01 00 EC 23 01 E1 [17:47:02]Write i2c OK [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: D1 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: D1 01 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: D1 01 00 EC 23 00 E0 [17:47:02]Write to MH i2c: 01 00 00 ED 23 10 [17:47:02]Write i2c OK [17:47:02]MH_I2C_Read... [17:47:02]OFD Sender: No OFD packet to send [17:47:03]*** Cut start [17:47:03]*** Purtial cut [17:47:03]*** Stage 1: CUTSNS_PIN = 1 [17:47:03]Read from MH i2c: 01 [17:47:03]MH_I2C_Read... [17:47:03]*** Stop cut motor [17:47:03]*** Cut end [17:47:03]Read from MH i2c: 01 07 00 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: 01 07 00 ED 23 00 00 00 00 00 FF 0F 25 [17:47:03]process_action close_receipt done [17:47:03]requested_data is exist [17:47:03]produce_requested_data [17:47:03]requested_item fm.sn is exist - process it [17:47:03]wFMCommunicate request_size=4 [17:47:03]MH_SAM_APDU [17:47:03]CAPDU: 80 11 00 00 [17:47:03]Write to MH i2c: E2 08 00 EE 23 80 11 00 00 00 00 00 00 8B [17:47:03]Write i2c OK [17:47:03]MH_I2C_Read... [17:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:03]Read from MH i2c: E2 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: E2 17 00 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: E2 17 00 EE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E2 [17:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:47:03]wFMCommunicate OK [17:47:03]requested_item fd.num is exist - process it [17:47:03]SAM_PROTO_GetFieldsCounters [17:47:03]wFMCommunicate request_size=4 [17:47:03]MH_SAM_APDU [17:47:03]CAPDU: 80 13 00 00 [17:47:03]Write to MH i2c: E2 08 00 EF 23 80 13 00 00 00 00 00 00 8E [17:47:03]Write i2c OK [17:47:03]MH_I2C_Read... [17:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:03]Read from MH i2c: E2 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: E2 62 00 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: E2 62 00 EF 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D7 CA 01 00 0E 04 04 00 1E 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 60 [17:47: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D7 CA 01 00 0E 04 04 00 1E 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 [17:47:03]wFMCommunicate OK [17:47:03]SAM_PROTO_GetFieldsCounters done [17:47:03]requested_item shift.num is exist - process it [17:47:03]requested_item shift.opened is exist - process it [17:47:03]req_shift_opened [17:47:03]FM_GetShiftState [17:47:03]SAM_PROTO_GetShiftState [17:47:03]wFMCommunicate request_size=4 [17:47:03]MH_SAM_APDU [17:47:03]CAPDU: 80 13 01 00 [17:47:03]Write to MH i2c: E2 08 00 F0 23 80 13 01 00 00 00 00 00 90 [17:47:03]Write i2c OK [17:47:03]MH_I2C_Read... [17:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:03]Read from MH i2c: E2 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: E2 0E 00 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: E2 0E 00 F0 23 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 CF [17:47:03]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:47:03]wFMCommunicate OK [17:47:03]SAM_PROTO_GetShiftState done [17:47:03]FM_GetShiftState done [17:47:03]req_shift_opened done [17:47:03]requested_item shift.open_date is exist - process it [17:47:03]req_shift_open_date [17:47:03]req_shift_open_date done [17:47:03]produce_requested_data done [17:47:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117463,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:47:03]process_action_free close_receipt [17:47:03]json_value_free [17:47:03]json_value_free done [17:47:03]process_json_proto returns [17:47:03]Send response to host [17:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117463,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:47:03]free response buf [17:47:03]execute_script done [17:47:03]execute_script returns [17:47:03]free content buf [17:47:03]Sock 7.Close socket [17:47:03]Sock 7.Thread stoped [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:16]accept exits with 10 [17:51:16]New connection [17:51:16]New thread 3067456868 created [17:51:16]Thread 3067600228 joined [17:51:16]Waiting for new connection... [17:51:16] Sock 10.Parse request [17:51:16]Sock 10.Check first char [17:51:16]Sock 10.First char is OK [17:51:16]request: POST /json_proto HTTP/1.0 [17:51:16]Method: POST [17:51:16]URL: /json_proto [17:51:16]Method is POST - this is cgi request [17:51:16]url: /json_proto [17:51:16]query_string will be loaded in cgi processing [17:51:16]execute_cgi json_proto POST (null) [17:51:16]execute_cgi path=json_proto method=POST [17:51:16]POST find Content-Length [17:51:16]Host: 172.17.96.67:8080 [17:51:16]Content-Length: 984 [17:51:16]Content-Type: application/json [17:51:16] [17:51:16]POST finish read [17:51:16]Found Content-Length = 984 [17:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:16]execute_script... [17:51: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)245240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:16]POST & json_proto [17:51:16]process_json_proto [17:51:16]json parsed OK: [17:51:16]protocol is kg_v1.0 [17:51:16]action value=close_receipt [17:51:16]process_action close_receipt [17:51:16]cmd_close_receipt [17:51:16]MH_GetDate [17:51:16]Write to MH i2c: F0 00 00 F1 23 03 [17:51:16]Write i2c OK [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 09 00 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 09 00 F1 23 00 97 7D 1E 67 2B 09 1E 67 5E [17:51:16]GetLastDocTimeStamp 1730051222 [17:51:16]current date 1730051479 [17:51:16]FM_GetShiftState [17:51:16]SAM_PROTO_GetShiftState [17:51:16]wFMCommunicate request_size=4 [17:51:16]MH_SAM_APDU [17:51:16]CAPDU: 80 13 01 00 [17:51:16]Write to MH i2c: E2 08 00 F2 23 80 13 01 00 00 00 00 00 92 [17:51:16]Write i2c OK [17:51:16]MH_I2C_Read... [17:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:16]Read from MH i2c: E2 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: E2 0E 00 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: E2 0E 00 F2 23 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 D1 [17:51:16]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:51:16]wFMCommunicate OK [17:51:16]SAM_PROTO_GetShiftState done [17:51:16]FM_GetShiftState done [17:51:16]opened in 1729987372 [17:51:16]opened+sec_in_day 1730073772 [17:51:16]quantity*price = 150054 [17:51:16]sum+1 = 150055 [17:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 164 27.10.2024 17:51 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 22.77 сом ФМ: 0000000000871767 ФД: 117464 ФПД: 132594133814914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175119&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117464&fm=132594133814914&tin=02508201610067®Number=0000000000091782&sum=150000 [17:51:17]StoreToDocumentArchive [17:51:17]shift 542 fd 117464 [17:51:17]save to /storage/0542/doc_00117464 [17:51:17]save last doc name /storage/0542/doc_00117464 to /storage/kkm_last_doc_name [17:51:17]save OK [17:51:17]Clear old archive folders... [17:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:17]tlvbuf is 01784290 [17:51:17]SAM_PROTO_ClearQueue [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 09 00 00 [17:51:17]Write to MH i2c: E2 08 00 FF 23 80 09 00 00 00 00 00 00 94 [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 FF 23 00 90 00 96 [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]SAM_PROTO_ClearQueue done [17:51:17]KKMCreateOFDPacket [17:51:17]OFDProtocolAddRootSTLVToBuf [17:51:17]FM_MakeSignedData [17:51:17]FM_MakeSignedData [17:51:17]SAM_PROTO_SignData [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 0D 01 02 [17:51:17]Write to MH i2c: E2 08 00 00 24 80 0D 01 02 00 00 00 00 9D [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 00 24 00 90 00 98 [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]wFMCommunicate request_size=255 [17:51:17]MH_SAM_APDU [17:51: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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 A4 00 00 00 F4 03 04 00 97 7D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D8 CA 01 00 35 04 06 00 78 [17:51:17]Write to MH i2c: E2 02 01 01 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 A4 00 00 00 F4 03 04 00 97 7D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D8 CA 01 00 35 04 06 00 78 00 00 DD [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 01 24 00 90 00 99 [17:51:18]RAPDU: 90 00 [17:51:18]wFMCommunicate OK [17:51:18]wFMCommunicate request_size=10 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 0D 02 02 05 97 FA 3E CE 82 [17:51:18]Write to MH i2c: E2 0D 00 02 24 80 0D 02 02 05 00 97 FA 3E CE 82 00 00 C9 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]OFD Sender: No OFD packet to send [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:18]Read from MH i2c: E2 03 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 02 24 00 90 00 9A [17:51:18]RAPDU: 90 00 [17:51:18]wFMCommunicate OK [17:51:18]wFMCommunicate request_size=4 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 0D 03 02 [17:51:18]Write to MH i2c: E2 08 00 03 24 80 0D 03 02 00 00 00 00 A2 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 0B 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 0B 00 03 24 00 28 2F 4E 3E CE F9 69 49 90 00 FF [17:51:18]RAPDU: 28 2F 4E 3E CE F9 69 49 90 00 [17:51:18]wFMCommunicate OK [17:51:18]SAM_PROTO_SignData done [17:51:18]FM_MakeSignedData done [17:51:18]CreateOFDProtocolMessage [17:51:18]wFMCommunicate request_size=4 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 11 00 00 [17:51:18]Write to MH i2c: E2 08 00 04 24 80 11 00 00 00 00 00 00 A2 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 17 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 17 00 04 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F9 [17:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:51:18]wFMCommunicate OK [17:51:18]CreateOFDProtocolMessage done [17:51:18]OFDSenderStorePacket 117464 [17:51:18]StoreOFDPacket docnum=117464 [17:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 10 42 07 01 2B 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 A4 00 00 00 F4 03 04 00 97 7D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D8 CA 01 00 35 04 06 00 78 97 FA 3E CE 82 28 2F 4E 3E CE F9 69 49 [17:51:18]CheckFolder [17:51:18]dirname=/storage/ofd_packets [17:51:18]CheckFolder done [17:51:18]ProducePacketName [17:51:18]name=ofd_packets/00117464 [17:51:18]NVStorageSaveData ofd_packets/00117464 [17:51:18]File name is /storage/ofd_packets/00117464 [17:51:18]Write 301 bytes [17:51:18]NVStorageSaveData done [17:51:18]OFDSenderStorePacket done [17:51:18]KKMCreateOFDPacket done [17:51:18]NVStorageSaveData kkm_last_timestamp [17:51:18]File name is /storage/kkm_last_timestamp [17:51:18]Write 4 bytes [17:51:18]NVStorageSaveData done [17:51:18]ExternCall_PrintAddStr [17:51:18]wPrintStart [17:51:18]Write to MH i2c: 01 00 00 05 24 29 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 05 24 00 00 00 00 00 FF 0F 3E [17:51:18]RasterBufferAndPrint [17:51:18]line Счет N : (1)245240 [17:51:18]line ИНН: 02508201610067 [17:51:18]line Контрольно-Кассовый Чек [17:51:18]line ПРОДАЖА [17:51:18]line ТРК (МРК, ГНК) : 11 [17:51:18]line Товар: 2710124130 [17:51:18]line Аи-92-К-2 [17:51:18]line 22.770 * 65.90 [17:51:18]line = 1500.54 [17:51:18]line НДС 12% НСП 1% [17:51:18]line > о реализуемом товаре [17:51:18]line ОКРУГЛЕНИЕ: -0.54 [17:51:18]line ИТОГО: 1500.00 [17:51:18]line Внесено: 1500.00 [17:51:18]line СДАЧА: 0.00 [17:51:18]line НСП 1% : 13.28 [17:51:18]line НДС 12% : 159.35 [17:51:18]line Наличными: 1500.00 [17:51:18]line Безнал.: 0.00 [17:51:18]line Место: АЗС № 173 "Партнер Нефть" [17:51:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:51:18]line СНО: Общий режим [17:51:18]line Чек 164 27.10.2024 17:51 [17:51:18]line Смена: 542 ФФД: 1.0 [17:51:18]line ЗНМ: 0300000115 [17:51:18]line РНМ: 0000000000091782 [17:51:18]line Версия ККМ: 001 [17:51:18]line [17:51:18]line Дисконтная программа [17:51:18]line АИ-92 [17:51:18]line номер 173 [17:51:18]line сэкономлено 22.77 сом [17:51:18]line ФМ: 0000000000871767 [17:51:18]line ФД: 117464 [17:51:18]line ФПД: 132594133814914 [17:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175119&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117464&fm=132594133814914&tin=02508201610067®Number=0000000000091782&sum=150000 [17:51:18]OFD Sender: Processing packet 117464 [packets to send 76, broken 75] [17:51:18]ProducePacketName [17:51:18]name=ofd_packets/00117464 [17:51:18]OFD Sender: To server: pG, [17:51:18]CommunicateWithHost lk.salyk.kg:30040 [17:51:18]ConnectInit lk.salyk.kg [17:51:18]written 0, free lines is 4095 [17:51:18]Connected sock=9 [17:51: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 36 37 0F 01 00 00 10 42 07 01 2B 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 A4 00 00 00 F4 03 04 00 97 7D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D8 CA 01 00 35 04 06 00 78 97 FA 3E CE 82 28 2F 4E 3E CE F9 69 49 [17:51: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 36 37 4F 00 00 00 50 54 47 00 DD 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 36 37 10 04 04 00 D8 CA 01 00 F4 03 04 00 53 29 1E 67 B6 04 01 00 00 10 99 72 92 7F 62 14 EC [17:51:18]CommunicateWithHost err = 0 [17:51:18]CheckOFDResponse [17:51:18]1017 (14) - 77093643461234 [17:51:18]1041 (16) - 0000000000871767 [17:51:18]1040 (4) - 117464 [17:51:18]1012 (4) - 27.10.2024 11:51 [17:51:18]1206 (1) - 0 [17:51:18]OFD Sender: Remove packet 117464 [17:51:18]ProducePacketName [17:51:18]name=ofd_packets/00117464 [17:51:18]NVStorageDeleteData [17:51:18]Write to MH i2c: 01 00 00 34 24 58 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 34 24 00 00 00 00 00 5F 0C CA [17:51:18]RasterBufferAndPrint [17:51:18]line [17:51:18]line [17:51:18]line [17:51:18]line [17:51:18]line [17:51:18]written 0, free lines is 3174 [17:51:19]MH_Cut [17:51:19]Write to MH i2c: D1 01 00 3B 24 01 31 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: D1 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: D1 01 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: D1 01 00 3B 24 00 30 [17:51:19]Write to MH i2c: 01 00 00 3C 24 60 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]OFD Sender: No OFD packet to send [17:51:19]*** Cut start [17:51:19]*** Purtial cut [17:51:19]*** Stage 1: CUTSNS_PIN = 1 [17:51:20]Read from MH i2c: 01 [17:51:20]MH_I2C_Read... [17:51:20]*** Stop cut motor [17:51:20]*** Cut end [17:51:20]Read from MH i2c: 01 07 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 07 00 3C 24 00 00 00 00 00 FF 0F 75 [17:51:20]process_action close_receipt done [17:51:20]requested_data is exist [17:51:20]produce_requested_data [17:51:20]requested_item fm.sn is exist - process it [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 11 00 00 [17:51:20]Write to MH i2c: E2 08 00 3D 24 80 11 00 00 00 00 00 00 DB [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 17 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 17 00 3D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 32 [17:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:51:20]wFMCommunicate OK [17:51:20]requested_item fd.num is exist - process it [17:51:20]SAM_PROTO_GetFieldsCounters [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 13 00 00 [17:51:20]Write to MH i2c: E2 08 00 3E 24 80 13 00 00 00 00 00 00 DE [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 62 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 62 00 3E 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D8 CA 01 00 0E 04 04 00 1E 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 B4 [17:51:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D8 CA 01 00 0E 04 04 00 1E 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 [17:51:20]wFMCommunicate OK [17:51:20]SAM_PROTO_GetFieldsCounters done [17:51:20]requested_item shift.num is exist - process it [17:51:20]requested_item shift.opened is exist - process it [17:51:20]req_shift_opened [17:51:20]FM_GetShiftState [17:51:20]SAM_PROTO_GetShiftState [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 13 01 00 [17:51:20]Write to MH i2c: E2 08 00 3F 24 80 13 01 00 00 00 00 00 E0 [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 0E 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 0E 00 3F 24 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1F [17:51:20]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:51:20]wFMCommunicate OK [17:51:20]SAM_PROTO_GetShiftState done [17:51:20]FM_GetShiftState done [17:51:20]req_shift_opened done [17:51:20]requested_item shift.open_date is exist - process it [17:51:20]req_shift_open_date [17:51:20]req_shift_open_date done [17:51:20]produce_requested_data done [17:51:20]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117464,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:51:20]process_action_free close_receipt [17:51:20]json_value_free [17:51:20]json_value_free done [17:51:20]process_json_proto returns [17:51:20]Send response to host [17:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117464,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:51:20]free response buf [17:51:20]execute_script done [17:51:20]execute_script returns [17:51:20]free content buf [17:51:20]Sock 10.Close socket [17:51:20]Sock 10.Thread stoped [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:52]accept exits with 7 [17:53:52]New connection [17:53:52]New thread 3067600228 created [17:53:52]Thread 3067456868 joined [17:53:52]Waiting for new connection... [17:53:52] Sock 7.Parse request [17:53:52]Sock 7.Check first char [17:53:52]Sock 7.First char is OK [17:53:52]request: POST /json_proto HTTP/1.0 [17:53:52]Method: POST [17:53:52]URL: /json_proto [17:53:52]Method is POST - this is cgi request [17:53:52]url: /json_proto [17:53:52]query_string will be loaded in cgi processing [17:53:52]execute_cgi json_proto POST (null) [17:53:52]execute_cgi path=json_proto method=POST [17:53:52]POST find Content-Length [17:53:52]Host: 172.17.96.67:8080 [17:53:52]Content-Length: 677 [17:53:52]Content-Type: application/json [17:53:52] [17:53:52]POST finish read [17:53:52]Found Content-Length = 677 [17:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [17:53:52]execute_script... [17: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)245241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [17:53:52]POST & json_proto [17:53:52]process_json_proto [17:53:52]json parsed OK: [17:53:52]protocol is kg_v1.0 [17:53:52]action value=close_receipt [17:53:52]process_action close_receipt [17:53:52]cmd_close_receipt [17:53:52]MH_GetDate [17:53:52]Write to MH i2c: F0 00 00 40 24 53 [17:53:52]Write i2c OK [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: F0 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: F0 09 00 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: F0 09 00 40 24 00 33 7E 1E 67 2B 09 1E 67 4B [17:53:52]GetLastDocTimeStamp 1730051479 [17:53:52]current date 1730051635 [17:53:52]FM_GetShiftState [17:53:52]SAM_PROTO_GetShiftState [17:53:52]wFMCommunicate request_size=4 [17:53:52]MH_SAM_APDU [17:53:52]CAPDU: 80 13 01 00 [17:53:52]Write to MH i2c: E2 08 00 41 24 80 13 01 00 00 00 00 00 E2 [17:53:52]Write i2c OK [17:53:52]MH_I2C_Read... [17:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:52]Read from MH i2c: E2 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: E2 0E 00 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: E2 0E 00 41 24 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 21 [17:53:52]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:53:52]wFMCommunicate OK [17:53:52]SAM_PROTO_GetShiftState done [17:53:52]FM_GetShiftState done [17:53:52]opened in 1729987372 [17:53:52]opened+sec_in_day 1730073772 [17:53:52]quantity*price = 40006 [17:53:52]sum+1 = 40007 [17:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 165 27.10.2024 17:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117465 ФПД: 100309189607866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175355&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117465&fm=100309189607866&tin=02508201610067®Number=0000000000091782&sum=40000 [17:53:54]StoreToDocumentArchive [17:53:54]shift 542 fd 117465 [17:53:54]save to /storage/0542/doc_00117465 [17:53:54]save last doc name /storage/0542/doc_00117465 to /storage/kkm_last_doc_name [17:53:54]save OK [17:53:54]Clear old archive folders... [17:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:54]tlvbuf is B6FF6B20 [17:53:54]SAM_PROTO_ClearQueue [17:53:54]wFMCommunicate request_size=4 [17:53:54]MH_SAM_APDU [17:53:54]CAPDU: 80 09 00 00 [17:53:54]Write to MH i2c: E2 08 00 4E 24 80 09 00 00 00 00 00 00 E4 [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:54]Read from MH i2c: E2 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 03 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 03 00 4E 24 00 90 00 E6 [17:53:54]RAPDU: 90 00 [17:53:54]wFMCommunicate OK [17:53:54]SAM_PROTO_ClearQueue done [17:53:54]KKMCreateOFDPacket [17:53:54]OFDProtocolAddRootSTLVToBuf [17:53:54]FM_MakeSignedData [17:53:54]FM_MakeSignedData [17:53:54]SAM_PROTO_SignData [17:53:54]wFMCommunicate request_size=4 [17:53:54]MH_SAM_APDU [17:53:54]CAPDU: 80 0D 01 02 [17:53:54]Write to MH i2c: E2 08 00 4F 24 80 0D 01 02 00 00 00 00 EC [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:54]Read from MH i2c: E2 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 03 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 03 00 4F 24 00 90 00 E7 [17:53:54]RAPDU: 90 00 [17:53:54]wFMCommunicate OK [17:53:54]wFMCommunicate request_size=255 [17:53:54]MH_SAM_APDU [17:53: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 A5 00 00 00 F4 03 04 00 33 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D9 CA 01 00 35 04 06 00 5B [17:53:54]Write to MH i2c: E2 02 01 50 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 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 A5 00 00 00 F4 03 04 00 33 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D9 CA 01 00 35 04 06 00 5B 00 00 47 [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:54]Read from MH i2c: E2 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 03 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 03 00 50 24 00 90 00 E8 [17:53:54]RAPDU: 90 00 [17:53:54]wFMCommunicate OK [17:53:54]wFMCommunicate request_size=10 [17:53:54]MH_SAM_APDU [17:53:54]CAPDU: 80 0D 02 02 05 3B 0D 9D 41 BA [17:53:54]Write to MH i2c: E2 0D 00 51 24 80 0D 02 02 05 00 3B 0D 9D 41 BA 00 00 D9 [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:54]Read from MH i2c: E2 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 03 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 03 00 51 24 00 90 00 E9 [17:53:54]RAPDU: 90 00 [17:53:54]wFMCommunicate OK [17:53:54]wFMCommunicate request_size=4 [17:53:54]MH_SAM_APDU [17:53:54]CAPDU: 80 0D 03 02 [17:53:54]Write to MH i2c: E2 08 00 52 24 80 0D 03 02 00 00 00 00 F1 [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:54]OFD Sender: No OFD packet to send [17:53:54]Read from MH i2c: E2 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 0B 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 0B 00 52 24 00 8C 51 4C 8E 65 86 23 CE 90 00 85 [17:53:54]RAPDU: 8C 51 4C 8E 65 86 23 CE 90 00 [17:53:54]wFMCommunicate OK [17:53:54]SAM_PROTO_SignData done [17:53:54]FM_MakeSignedData done [17:53:54]CreateOFDProtocolMessage [17:53:54]wFMCommunicate request_size=4 [17:53:54]MH_SAM_APDU [17:53:54]CAPDU: 80 11 00 00 [17:53:54]Write to MH i2c: E2 08 00 53 24 80 11 00 00 00 00 00 00 F1 [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:54]Read from MH i2c: E2 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 17 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 17 00 53 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 48 [17:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:53:54]wFMCommunicate OK [17:53:54]CreateOFDProtocolMessage done [17:53:54]OFDSenderStorePacket 117465 [17:53:54]StoreOFDPacket docnum=117465 [17:53:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FA 9E 07 01 33 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A5 00 00 00 F4 03 04 00 33 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D9 CA 01 00 35 04 06 00 5B 3B 0D 9D 41 BA 8C 51 4C 8E 65 86 23 CE [17:53:54]CheckFolder [17:53:54]dirname=/storage/ofd_packets [17:53:54]CheckFolder done [17:53:54]ProducePacketName [17:53:54]name=ofd_packets/00117465 [17:53:54]NVStorageSaveData ofd_packets/00117465 [17:53:54]File name is /storage/ofd_packets/00117465 [17:53:54]Write 301 bytes [17:53:54]NVStorageSaveData done [17:53:54]OFDSenderStorePacket done [17:53:54]KKMCreateOFDPacket done [17:53:54]NVStorageSaveData kkm_last_timestamp [17:53:54]File name is /storage/kkm_last_timestamp [17:53:54]Write 4 bytes [17:53:54]NVStorageSaveData done [17:53:54]ExternCall_PrintAddStr [17:53:54]wPrintStart [17:53:54]Write to MH i2c: 01 00 00 54 24 78 [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: 01 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: 01 07 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: 01 07 00 54 24 00 00 00 00 00 FF 0F 8D [17:53:54]RasterBufferAndPrint [17:53:54]line Счет N : (1)245241 [17:53:54]line ИНН: 02508201610067 [17:53:54]line Контрольно-Кассовый Чек [17:53:54]line ПРОДАЖА [17:53:54]line ТРК (МРК, ГНК) : 21 [17:53:54]line Товар: 2710124130 [17:53:54]line Аи-92-К-2 [17:53:54]line 5.980 * 66.90 [17:53:54]line = 400.06 [17:53:54]line НДС 12% НСП 1% [17:53:54]line > о реализуемом товаре [17:53:54]line ОКРУГЛЕНИЕ: -0.06 [17:53:54]line ИТОГО: 400.00 [17:53:54]line Внесено: 400.00 [17:53:54]line СДАЧА: 0.00 [17:53:54]line НСП 1% : 3.54 [17:53:54]line НДС 12% : 42.48 [17:53:54]line Наличными: 400.00 [17:53:54]line Безнал.: 0.00 [17:53:54]line Место: АЗС № 173 "Партнер Нефть" [17:53:54]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:53:54]line СНО: Общий режим [17:53:54]line Чек 165 27.10.2024 17:53 [17:53:54]line Смена: 542 ФФД: 1.0 [17:53:54]line ЗНМ: 0300000115 [17:53:54]line РНМ: 0000000000091782 [17:53:54]line Версия ККМ: 001 [17:53:54]line ФМ: 0000000000871767 [17:53:54]line ФД: 117465 [17:53:54]line ФПД: 100309189607866 [17:53:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175355&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117465&fm=100309189607866&tin=02508201610067®Number=0000000000091782&sum=40000 [17:53:54]OFD Sender: Processing packet 117465 [packets to send 76, broken 75] [17:53:54]ProducePacketName [17:53:54]name=ofd_packets/00117465 [17:53:54]OFD Sender: To server: pG, [17:53:54]CommunicateWithHost lk.salyk.kg:30040 [17:53:54]ConnectInit lk.salyk.kg [17:53:54]written 0, free lines is 4095 [17:53:55]Connected sock=10 [17:53: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 36 37 0F 01 00 00 FA 9E 07 01 33 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A5 00 00 00 F4 03 04 00 33 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D9 CA 01 00 35 04 06 00 5B 3B 0D 9D 41 BA 8C 51 4C 8E 65 86 23 CE [17:53: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 36 37 4F 00 00 00 9B AF 47 00 05 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 36 37 10 04 04 00 D9 CA 01 00 F4 03 04 00 F0 29 1E 67 B6 04 01 00 00 26 18 FF B7 08 F5 22 C3 [17:53:55]CommunicateWithHost err = 0 [17:53:55]CheckOFDResponse [17:53:55]1017 (14) - 77093643461234 [17:53:55]1041 (16) - 0000000000871767 [17:53:55]1040 (4) - 117465 [17:53:55]1012 (4) - 27.10.2024 11:54 [17:53:55]1206 (1) - 0 [17:53:55]OFD Sender: Remove packet 117465 [17:53:55]ProducePacketName [17:53:55]name=ofd_packets/00117465 [17:53:55]NVStorageDeleteData [17:53:55]Write to MH i2c: 01 00 00 7E 24 A2 [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: 01 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: 01 07 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: 01 07 00 7E 24 00 00 00 00 00 B8 0C 6D [17:53:55]RasterBufferAndPrint [17:53:55]line [17:53:55]line [17:53:55]line [17:53:55]line [17:53:55]line [17:53:55]written 0, free lines is 3262 [17:53:55]MH_Cut [17:53:55]Write to MH i2c: D1 01 00 85 24 01 7B [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: D1 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: D1 01 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: D1 01 00 85 24 00 7A [17:53:55]Write to MH i2c: 01 00 00 86 24 AA [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]OFD Sender: No OFD packet to send [17:53:56]*** Cut start [17:53:56]*** Purtial cut [17:53:56]*** Stage 1: CUTSNS_PIN = 1 [17:53:56]Read from MH i2c: 01 [17:53:56]MH_I2C_Read... [17:53:56]*** Stop cut motor [17:53:56]*** Cut end [17:53:56]Read from MH i2c: 01 07 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 07 00 86 24 00 00 00 00 00 FF 0F BF [17:53:56]process_action close_receipt done [17:53:56]requested_data is exist [17:53:56]produce_requested_data [17:53:56]requested_item fm.sn is exist - process it [17:53:56]wFMCommunicate request_size=4 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 11 00 00 [17:53:56]Write to MH i2c: E2 08 00 87 24 80 11 00 00 00 00 00 00 25 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 17 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 17 00 87 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7C [17:53:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:53:56]wFMCommunicate OK [17:53:56]requested_item fd.num is exist - process it [17:53:56]SAM_PROTO_GetFieldsCounters [17:53:56]wFMCommunicate request_size=4 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 13 00 00 [17:53:56]Write to MH i2c: E2 08 00 88 24 80 13 00 00 00 00 00 00 28 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 62 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 62 00 88 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D9 CA 01 00 0E 04 04 00 1E 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 02 [17:53: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D9 CA 01 00 0E 04 04 00 1E 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 [17:53:56]wFMCommunicate OK [17:53:56]SAM_PROTO_GetFieldsCounters done [17:53:56]requested_item shift.num is exist - process it [17:53:56]requested_item shift.opened is exist - process it [17:53:56]req_shift_opened [17:53:56]FM_GetShiftState [17:53:56]SAM_PROTO_GetShiftState [17:53:56]wFMCommunicate request_size=4 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 13 01 00 [17:53:56]Write to MH i2c: E2 08 00 89 24 80 13 01 00 00 00 00 00 2A [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 0E 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 0E 00 89 24 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 69 [17:53:56]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:53:56]wFMCommunicate OK [17:53:56]SAM_PROTO_GetShiftState done [17:53:56]FM_GetShiftState done [17:53:56]req_shift_opened done [17:53:56]requested_item shift.open_date is exist - process it [17:53:56]req_shift_open_date [17:53:56]req_shift_open_date done [17:53:56]produce_requested_data done [17:53:56]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117465,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:53:56]process_action_free close_receipt [17:53:56]json_value_free [17:53:56]json_value_free done [17:53:56]process_json_proto returns [17:53:56]Send response to host [17:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117465,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:53:56]free response buf [17:53:56]execute_script done [17:53:56]execute_script returns [17:53:56]free content buf [17:53:56]Sock 7.Close socket [17:53:56]Sock 7.Thread stoped [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:55:56]accept exits with 9 [17:55:56]New connection [17:55:56]New thread 3067456868 created [17:55:56]Thread 3067600228 joined [17:55:56]Waiting for new connection... [17:55:56] Sock 9.Parse request [17:55:56]Sock 9.Check first char [17:55:56]Sock 9.First char is OK [17:55:56]request: POST /json_proto HTTP/1.0 [17:55:56]Method: POST [17:55:56]URL: /json_proto [17:55:56]Method is POST - this is cgi request [17:55:56]url: /json_proto [17:55:56]query_string will be loaded in cgi processing [17:55:56]execute_cgi json_proto POST (null) [17:55:56]execute_cgi path=json_proto method=POST [17:55:56]POST find Content-Length [17:55:56]Host: 172.17.96.67:8080 [17:55:56]Content-Length: 675 [17:55:56]Content-Type: application/json [17:55:56] [17:55:56]POST finish read [17:55:56]Found Content-Length = 675 [17:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:55:56]execute_script... [17:55: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)245242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:55:56]POST & json_proto [17:55:56]process_json_proto [17:55:56]json parsed OK: [17:55:56]protocol is kg_v1.0 [17:55:56]action value=close_receipt [17:55:56]process_action close_receipt [17:55:56]cmd_close_receipt [17:55:56]MH_GetDate [17:55:56]Write to MH i2c: F0 00 00 8A 24 9D [17:55:56]Write i2c OK [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: F0 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: F0 09 00 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: F0 09 00 8A 24 00 AE 7E 1E 67 2B 09 1E 67 10 [17:55:56]GetLastDocTimeStamp 1730051635 [17:55:56]current date 1730051758 [17:55:56]FM_GetShiftState [17:55:56]SAM_PROTO_GetShiftState [17:55:56]wFMCommunicate request_size=4 [17:55:56]MH_SAM_APDU [17:55:56]CAPDU: 80 13 01 00 [17:55:56]Write to MH i2c: E2 08 00 8B 24 80 13 01 00 00 00 00 00 2C [17:55:56]Write i2c OK [17:55:56]MH_I2C_Read... [17:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:56]Read from MH i2c: E2 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: E2 0E 00 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: E2 0E 00 8B 24 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6B [17:55:56]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:55:56]wFMCommunicate OK [17:55:56]SAM_PROTO_GetShiftState done [17:55:56]FM_GetShiftState done [17:55:56]opened in 1729987372 [17:55:56]opened+sec_in_day 1730073772 [17:55:56]quantity*price = 80010 [17:55:56]sum+1 = 80011 [17:55:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 166 27.10.2024 17:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117466 ФПД: 36450355619184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175558&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117466&fm=36450355619184&tin=02508201610067®Number=0000000000091782&sum=80000 [17:55:57]StoreToDocumentArchive [17:55:57]shift 542 fd 117466 [17:55:57]save to /storage/0542/doc_00117466 [17:55:57]save last doc name /storage/0542/doc_00117466 to /storage/kkm_last_doc_name [17:55:57]save OK [17:55:57]Clear old archive folders... [17:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:55:57]tlvbuf is 01784010 [17:55:57]SAM_PROTO_ClearQueue [17:55:57]wFMCommunicate request_size=4 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 09 00 00 [17:55:57]Write to MH i2c: E2 08 00 98 24 80 09 00 00 00 00 00 00 2E [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 98 24 00 90 00 30 [17:55:57]RAPDU: 90 00 [17:55:57]wFMCommunicate OK [17:55:57]SAM_PROTO_ClearQueue done [17:55:57]KKMCreateOFDPacket [17:55:57]OFDProtocolAddRootSTLVToBuf [17:55:57]FM_MakeSignedData [17:55:57]FM_MakeSignedData [17:55:57]SAM_PROTO_SignData [17:55:57]wFMCommunicate request_size=4 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 0D 01 02 [17:55:57]Write to MH i2c: E2 08 00 99 24 80 0D 01 02 00 00 00 00 36 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 99 24 00 90 00 31 [17:55:57]RAPDU: 90 00 [17:55:57]wFMCommunicate OK [17:55:57]wFMCommunicate request_size=255 [17:55:57]MH_SAM_APDU [17:55: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 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 A6 00 00 00 F4 03 04 00 AE 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DA CA 01 00 35 04 06 00 21 26 C2 7F [17:55:57]Write to MH i2c: E2 02 01 9A 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 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 A6 00 00 00 F4 03 04 00 AE 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DA CA 01 00 35 04 06 00 21 26 C2 7F 00 00 95 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 9A 24 00 90 00 32 [17:55:57]RAPDU: 90 00 [17:55:57]wFMCommunicate OK [17:55:57]wFMCommunicate request_size=7 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 0D 02 02 02 A5 70 [17:55:57]Write to MH i2c: E2 0A 00 9B 24 80 0D 02 02 02 00 A5 70 00 00 52 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 9B 24 00 90 00 33 [17:55:57]RAPDU: 90 00 [17:55:57]wFMCommunicate OK [17:55:57]wFMCommunicate request_size=4 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 0D 03 02 [17:55:57]Write to MH i2c: E2 08 00 9C 24 80 0D 03 02 00 00 00 00 3B [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 0B 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 0B 00 9C 24 00 B6 FC DE 51 2F D5 58 66 90 00 DF [17:55:57]RAPDU: B6 FC DE 51 2F D5 58 66 90 00 [17:55:57]wFMCommunicate OK [17:55:57]SAM_PROTO_SignData done [17:55:57]FM_MakeSignedData done [17:55:57]CreateOFDProtocolMessage [17:55:57]wFMCommunicate request_size=4 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 11 00 00 [17:55:57]Write to MH i2c: E2 08 00 9D 24 80 11 00 00 00 00 00 00 3B [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 17 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 17 00 9D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 92 [17:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:55:57]wFMCommunicate OK [17:55:57]CreateOFDProtocolMessage done [17:55:57]OFDSenderStorePacket 117466 [17:55:57]StoreOFDPacket docnum=117466 [17:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 05 4A 04 01 A8 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 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 A6 00 00 00 F4 03 04 00 AE 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DA CA 01 00 35 04 06 00 21 26 C2 7F A5 70 B6 FC DE 51 2F D5 58 66 [17:55:57]CheckFolder [17:55:57]dirname=/storage/ofd_packets [17:55:57]CheckFolder done [17:55:57]ProducePacketName [17:55:57]name=ofd_packets/00117466 [17:55:57]NVStorageSaveData ofd_packets/00117466 [17:55:57]File name is /storage/ofd_packets/00117466 [17:55:57]Write 298 bytes [17:55:57]NVStorageSaveData done [17:55:57]OFDSenderStorePacket done [17:55:57]KKMCreateOFDPacket done [17:55:57]NVStorageSaveData kkm_last_timestamp [17:55:57]File name is /storage/kkm_last_timestamp [17:55:57]Write 4 bytes [17:55:57]NVStorageSaveData done [17:55:57]ExternCall_PrintAddStr [17:55:57]wPrintStart [17:55:57]Write to MH i2c: 01 00 00 9E 24 C2 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: 01 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: 01 07 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: 01 07 00 9E 24 00 00 00 00 00 FF 0F D7 [17:55:57]RasterBufferAndPrint [17:55:57]line Счет N : (1)245242 [17:55:57]line ИНН: 02508201610067 [17:55:57]line Контрольно-Кассовый Чек [17:55:57]line ПРОДАЖА [17:55:57]line ТРК (МРК, ГНК) : 13 [17:55:57]line Товар: 2710194210 [17:55:57]line ДТ-К-2 [17:55:57]line 10.500 * 76.20 [17:55:57]line = 800.10 [17:55:57]line НДС 12% НСП 1% [17:55:57]line > о реализуемом товаре [17:55:57]line ОКРУГЛЕНИЕ: -0.10 [17:55:57]line ИТОГО: 800.00 [17:55:57]line Внесено: 800.00 [17:55:57]line СДАЧА: 0.00 [17:55:57]line НСП 1% : 7.08 [17:55:57]line НДС 12% : 84.97 [17:55:57]line Наличными: 800.00 [17:55:57]line Безнал.: 0.00 [17:55:57]line Место: АЗС № 173 "Партнер Нефть" [17:55:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:55:57]line СНО: Общий режим [17:55:57]line Чек 166 27.10.2024 17:55 [17:55:57]line Смена: 542 ФФД: 1.0 [17:55:57]line ЗНМ: 0300000115 [17:55:57]line РНМ: 0000000000091782 [17:55:57]line Версия ККМ: 001 [17:55:57]line ФМ: 0000000000871767 [17:55:57]line ФД: 117466 [17:55:57]line ФПД: 36450355619184 [17:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175558&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117466&fm=36450355619184&tin=02508201610067®Number=0000000000091782&sum=80000 [17:55:58]OFD Sender: Processing packet 117466 [packets to send 76, broken 75] [17:55:58]ProducePacketName [17:55:58]name=ofd_packets/00117466 [17:55:58]OFD Sender: To server: pG, [17:55:58]CommunicateWithHost lk.salyk.kg:30040 [17:55:58]ConnectInit lk.salyk.kg [17:55:58]written 0, free lines is 4095 [17:55:58]Connected sock=10 [17:55: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 36 37 0C 01 00 00 05 4A 04 01 A8 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 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 A6 00 00 00 F4 03 04 00 AE 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DA CA 01 00 35 04 06 00 21 26 C2 7F A5 70 B6 FC DE 51 2F D5 58 66 [17:55: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 36 37 4F 00 00 00 86 3F 47 00 42 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 36 37 10 04 04 00 DA CA 01 00 F4 03 04 00 6B 2A 1E 67 B6 04 01 00 00 A0 FE 55 F0 9D B5 C3 2A [17:55:58]CommunicateWithHost err = 0 [17:55:58]CheckOFDResponse [17:55:58]1017 (14) - 77093643461234 [17:55:58]1041 (16) - 0000000000871767 [17:55:58]1040 (4) - 117466 [17:55:58]1012 (4) - 27.10.2024 11:56 [17:55:58]1206 (1) - 0 [17:55:58]OFD Sender: Remove packet 117466 [17:55:58]ProducePacketName [17:55:58]name=ofd_packets/00117466 [17:55:58]NVStorageDeleteData [17:55:58]Write to MH i2c: 01 00 00 C8 24 EC [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: 01 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: 01 07 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: 01 07 00 C8 24 00 00 00 00 00 B2 0C B1 [17:55:58]RasterBufferAndPrint [17:55:58]line [17:55:58]line [17:55:58]line [17:55:58]line [17:55:58]line [17:55:58]written 0, free lines is 3256 [17:55:58]MH_Cut [17:55:58]Write to MH i2c: D1 01 00 CF 24 01 C5 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: D1 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: D1 01 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: D1 01 00 CF 24 00 C4 [17:55:58]Write to MH i2c: 01 00 00 D0 24 F4 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:59]OFD Sender: No OFD packet to send [17:55:59]*** Cut start [17:55:59]*** Purtial cut [17:55:59]*** Stage 1: CUTSNS_PIN = 1 [17:55:59]Read from MH i2c: 01 [17:55:59]MH_I2C_Read... [17:55:59]*** Stop cut motor [17:55:59]*** Cut end [17:55:59]Read from MH i2c: 01 07 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 D0 24 00 00 00 00 00 FF 0F 09 [17:55:59]process_action close_receipt done [17:55:59]requested_data is exist [17:55:59]produce_requested_data [17:55:59]requested_item fm.sn is exist - process it [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 11 00 00 [17:55:59]Write to MH i2c: E2 08 00 D1 24 80 11 00 00 00 00 00 00 6F [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 D1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C6 [17:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:55:59]wFMCommunicate OK [17:55:59]requested_item fd.num is exist - process it [17:55:59]SAM_PROTO_GetFieldsCounters [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 13 00 00 [17:55:59]Write to MH i2c: E2 08 00 D2 24 80 13 00 00 00 00 00 00 72 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 62 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 62 00 D2 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DA CA 01 00 0E 04 04 00 1E 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 50 [17:55: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DA CA 01 00 0E 04 04 00 1E 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 [17:55:59]wFMCommunicate OK [17:55:59]SAM_PROTO_GetFieldsCounters done [17:55:59]requested_item shift.num is exist - process it [17:55:59]requested_item shift.opened is exist - process it [17:55:59]req_shift_opened [17:55:59]FM_GetShiftState [17:55:59]SAM_PROTO_GetShiftState [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 13 01 00 [17:55:59]Write to MH i2c: E2 08 00 D3 24 80 13 01 00 00 00 00 00 74 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:00]Read from MH i2c: E2 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: E2 0E 00 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: E2 0E 00 D3 24 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B3 [17:56:00]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:56:00]wFMCommunicate OK [17:56:00]SAM_PROTO_GetShiftState done [17:56:00]FM_GetShiftState done [17:56:00]req_shift_opened done [17:56:00]requested_item shift.open_date is exist - process it [17:56:00]req_shift_open_date [17:56:00]req_shift_open_date done [17:56:00]produce_requested_data done [17:56:00]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117466,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:56:00]process_action_free close_receipt [17:56:00]json_value_free [17:56:00]json_value_free done [17:56:00]process_json_proto returns [17:56:00]Send response to host [17:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117466,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:56:00]free response buf [17:56:00]execute_script done [17:56:00]execute_script returns [17:56:00]free content buf [17:56:00]Sock 9.Close socket [17:56:00]Sock 9.Thread stoped [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:57]accept exits with 7 [17:57:57]New connection [17:57:57]New thread 3067600228 created [17:57:57]Thread 3067456868 joined [17:57:57]Waiting for new connection... [17:57:57] Sock 7.Parse request [17:57:57]Sock 7.Check first char [17:57:57]Sock 7.First char is OK [17:57:57]request: POST /json_proto HTTP/1.0 [17:57:57]Method: POST [17:57:57]URL: /json_proto [17:57:57]Method is POST - this is cgi request [17:57:57]url: /json_proto [17:57:57]query_string will be loaded in cgi processing [17:57:57]execute_cgi json_proto POST (null) [17:57:57]execute_cgi path=json_proto method=POST [17:57:57]POST find Content-Length [17:57:57]Host: 172.17.96.67:8080 [17:57:57]Content-Length: 679 [17:57:57]Content-Type: application/json [17:57:57] [17:57:57]POST finish read [17:57:57]Found Content-Length = 679 [17:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [17:57:57]execute_script... [17:57: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)245243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [17:57:57]POST & json_proto [17:57:57]process_json_proto [17:57:57]json parsed OK: [17:57:57]protocol is kg_v1.0 [17:57:57]action value=close_receipt [17:57:57]process_action close_receipt [17:57:57]cmd_close_receipt [17:57:57]MH_GetDate [17:57:57]Write to MH i2c: F0 00 00 D4 24 E7 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: F0 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: F0 09 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: F0 09 00 D4 24 00 28 7F 1E 67 2B 09 1E 67 D5 [17:57:57]GetLastDocTimeStamp 1730051758 [17:57:57]current date 1730051880 [17:57:57]FM_GetShiftState [17:57:57]SAM_PROTO_GetShiftState [17:57:57]wFMCommunicate request_size=4 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 13 01 00 [17:57:57]Write to MH i2c: E2 08 00 D5 24 80 13 01 00 00 00 00 00 76 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 0E 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 0E 00 D5 24 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B5 [17:57:57]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:57:57]wFMCommunicate OK [17:57:57]SAM_PROTO_GetShiftState done [17:57:57]FM_GetShiftState done [17:57:57]opened in 1729987372 [17:57:57]opened+sec_in_day 1730073772 [17:57:57]quantity*price = 100050 [17:57:57]sum+1 = 100052 [17:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 167 27.10.2024 17:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117467 ФПД: 247708506226191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175800&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117467&fm=247708506226191&tin=02508201610067®Number=0000000000091782&sum=100000 [17:57:58]StoreToDocumentArchive [17:57:58]shift 542 fd 117467 [17:57:58]save to /storage/0542/doc_00117467 [17:57:58]save last doc name /storage/0542/doc_00117467 to /storage/kkm_last_doc_name [17:57:58]save OK [17:57:58]Clear old archive folders... [17:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:57:58]tlvbuf is 01784020 [17:57:58]SAM_PROTO_ClearQueue [17:57:58]wFMCommunicate request_size=4 [17:57:58]MH_SAM_APDU [17:57:58]CAPDU: 80 09 00 00 [17:57:58]Write to MH i2c: E2 08 00 E2 24 80 09 00 00 00 00 00 00 78 [17:57:58]Write i2c OK [17:57:58]MH_I2C_Read... [17:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:58]Read from MH i2c: E2 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: E2 03 00 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: E2 03 00 E2 24 00 90 00 7A [17:57:58]RAPDU: 90 00 [17:57:58]wFMCommunicate OK [17:57:58]SAM_PROTO_ClearQueue done [17:57:58]KKMCreateOFDPacket [17:57:58]OFDProtocolAddRootSTLVToBuf [17:57:58]FM_MakeSignedData [17:57:58]FM_MakeSignedData [17:57:58]SAM_PROTO_SignData [17:57:58]wFMCommunicate request_size=4 [17:57:58]MH_SAM_APDU [17:57:58]CAPDU: 80 0D 01 02 [17:57:58]Write to MH i2c: E2 08 00 E3 24 80 0D 01 02 00 00 00 00 80 [17:57:58]Write i2c OK [17:57:58]MH_I2C_Read... [17:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:59]Read from MH i2c: E2 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 03 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 03 00 E3 24 00 90 00 7B [17:57:59]RAPDU: 90 00 [17:57:59]wFMCommunicate OK [17:57:59]wFMCommunicate request_size=255 [17:57:59]MH_SAM_APDU [17:57: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 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 A7 00 00 00 F4 03 04 00 28 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DB CA 01 00 35 04 06 00 E1 4A 21 85 [17:57:59]Write to MH i2c: E2 02 01 E4 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 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 A7 00 00 00 F4 03 04 00 28 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DB CA 01 00 35 04 06 00 E1 4A 21 85 00 00 72 [17:57:59]Write i2c OK [17:57:59]MH_I2C_Read... [17:57:59]OFD Sender: No OFD packet to send [17:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:59]Read from MH i2c: E2 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 03 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 03 00 E4 24 00 90 00 7C [17:57:59]RAPDU: 90 00 [17:57:59]wFMCommunicate OK [17:57:59]wFMCommunicate request_size=7 [17:57:59]MH_SAM_APDU [17:57:59]CAPDU: 80 0D 02 02 02 7E 0F [17:57:59]Write to MH i2c: E2 0A 00 E5 24 80 0D 02 02 02 00 7E 0F 00 00 14 [17:57:59]Write i2c OK [17:57:59]MH_I2C_Read... [17:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:59]Read from MH i2c: E2 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 03 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 03 00 E5 24 00 90 00 7D [17:57:59]RAPDU: 90 00 [17:57:59]wFMCommunicate OK [17:57:59]wFMCommunicate request_size=4 [17:57:59]MH_SAM_APDU [17:57:59]CAPDU: 80 0D 03 02 [17:57:59]Write to MH i2c: E2 08 00 E6 24 80 0D 03 02 00 00 00 00 85 [17:57:59]Write i2c OK [17:57:59]MH_I2C_Read... [17:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:59]Read from MH i2c: E2 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 0B 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 0B 00 E6 24 00 61 9C 4D 50 85 B8 3E 7F 90 00 1A [17:57:59]RAPDU: 61 9C 4D 50 85 B8 3E 7F 90 00 [17:57:59]wFMCommunicate OK [17:57:59]SAM_PROTO_SignData done [17:57:59]FM_MakeSignedData done [17:57:59]CreateOFDProtocolMessage [17:57:59]wFMCommunicate request_size=4 [17:57:59]MH_SAM_APDU [17:57:59]CAPDU: 80 11 00 00 [17:57:59]Write to MH i2c: E2 08 00 E7 24 80 11 00 00 00 00 00 00 85 [17:57:59]Write i2c OK [17:57:59]MH_I2C_Read... [17:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:59]Read from MH i2c: E2 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 17 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 17 00 E7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DC [17:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:57:59]wFMCommunicate OK [17:57:59]CreateOFDProtocolMessage done [17:57:59]OFDSenderStorePacket 117467 [17:57:59]StoreOFDPacket docnum=117467 [17:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 C6 97 04 01 AE 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 A7 00 00 00 F4 03 04 00 28 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DB CA 01 00 35 04 06 00 E1 4A 21 85 7E 0F 61 9C 4D 50 85 B8 3E 7F [17:57:59]CheckFolder [17:57:59]dirname=/storage/ofd_packets [17:57:59]CheckFolder done [17:57:59]ProducePacketName [17:57:59]name=ofd_packets/00117467 [17:57:59]NVStorageSaveData ofd_packets/00117467 [17:57:59]File name is /storage/ofd_packets/00117467 [17:57:59]Write 298 bytes [17:57:59]NVStorageSaveData done [17:57:59]OFDSenderStorePacket done [17:57:59]KKMCreateOFDPacket done [17:57:59]NVStorageSaveData kkm_last_timestamp [17:57:59]File name is /storage/kkm_last_timestamp [17:57:59]Write 4 bytes [17:57:59]NVStorageSaveData done [17:57:59]ExternCall_PrintAddStr [17:57:59]wPrintStart [17:57:59]Write to MH i2c: 01 00 00 E8 24 0C [17:57:59]Write i2c OK [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: 01 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: 01 07 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: 01 07 00 E8 24 00 00 00 00 00 FF 0F 21 [17:57:59]RasterBufferAndPrint [17:57:59]line Счет N : (1)245243 [17:57:59]line ИНН: 02508201610067 [17:57:59]line Контрольно-Кассовый Чек [17:57:59]line ПРОДАЖА [17:57:59]line ТРК (МРК, ГНК) : 13 [17:57:59]line Товар: 2710194210 [17:57:59]line ДТ-К-2 [17:57:59]line 13.130 * 76.20 [17:57:59]line = 1000.51 [17:57:59]line НДС 12% НСП 1% [17:57:59]line > о реализуемом товаре [17:57:59]line ОКРУГЛЕНИЕ: -0.51 [17:57:59]line ИТОГО: 1000.00 [17:57:59]line Внесено: 1000.00 [17:57:59]line СДАЧА: 0.00 [17:57:59]line НСП 1% : 8.85 [17:57:59]line НДС 12% : 106.25 [17:57:59]line Наличными: 1000.00 [17:57:59]line Безнал.: 0.00 [17:57:59]line Место: АЗС № 173 "Партнер Нефть" [17:57:59]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:57:59]line СНО: Общий режим [17:57:59]line Чек 167 27.10.2024 17:58 [17:57:59]line Смена: 542 ФФД: 1.0 [17:57:59]line ЗНМ: 0300000115 [17:57:59]line РНМ: 0000000000091782 [17:57:59]line Версия ККМ: 001 [17:57:59]line ФМ: 0000000000871767 [17:57:59]line ФД: 117467 [17:57:59]line ФПД: 247708506226191 [17:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175800&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117467&fm=247708506226191&tin=02508201610067®Number=0000000000091782&sum=100000 [17:57:59]OFD Sender: Processing packet 117467 [packets to send 76, broken 75] [17:57:59]ProducePacketName [17:57:59]name=ofd_packets/00117467 [17:57:59]OFD Sender: To server: pG, [17:57:59]CommunicateWithHost lk.salyk.kg:30040 [17:57:59]ConnectInit lk.salyk.kg [17:57:59]written 0, free lines is 4095 [17:57:59]Connected sock=9 [17:57: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 36 37 0C 01 00 00 C6 97 04 01 AE 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 A7 00 00 00 F4 03 04 00 28 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DB CA 01 00 35 04 06 00 E1 4A 21 85 7E 0F 61 9C 4D 50 85 B8 3E 7F [17:58: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 36 37 4F 00 00 00 33 52 47 00 6A 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 36 37 10 04 04 00 DB CA 01 00 F4 03 04 00 E5 2A 1E 67 B6 04 01 00 00 A0 7C 6B 0A 73 C6 77 84 [17:58:00]CommunicateWithHost err = 0 [17:58:00]CheckOFDResponse [17:58:00]1017 (14) - 77093643461234 [17:58:00]1041 (16) - 0000000000871767 [17:58:00]1040 (4) - 117467 [17:58:00]1012 (4) - 27.10.2024 11:58 [17:58:00]1206 (1) - 0 [17:58:00]OFD Sender: Remove packet 117467 [17:58:00]ProducePacketName [17:58:00]name=ofd_packets/00117467 [17:58:00]NVStorageDeleteData [17:58:00]Write to MH i2c: 01 00 00 12 25 37 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: 01 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: 01 07 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: 01 07 00 12 25 00 00 00 00 00 C1 0C 0B [17:58:00]RasterBufferAndPrint [17:58:00]line [17:58:00]line [17:58:00]line [17:58:00]line [17:58:00]line [17:58:00]written 0, free lines is 3272 [17:58:00]MH_Cut [17:58:00]Write to MH i2c: D1 01 00 19 25 01 10 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: D1 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: D1 01 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: D1 01 00 19 25 00 0F [17:58:00]Write to MH i2c: 01 00 00 1A 25 3F [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]OFD Sender: No OFD packet to send [17:58:00]*** Cut start [17:58:00]*** Purtial cut [17:58:00]*** Stage 1: CUTSNS_PIN = 1 [17:58:01]Read from MH i2c: 01 [17:58:01]MH_I2C_Read... [17:58:01]*** Stop cut motor [17:58:01]*** Cut end [17:58:01]Read from MH i2c: 01 07 00 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: 01 07 00 1A 25 00 00 00 00 00 FF 0F 54 [17:58:01]process_action close_receipt done [17:58:01]requested_data is exist [17:58:01]produce_requested_data [17:58:01]requested_item fm.sn is exist - process it [17:58:01]wFMCommunicate request_size=4 [17:58:01]MH_SAM_APDU [17:58:01]CAPDU: 80 11 00 00 [17:58:01]Write to MH i2c: E2 08 00 1B 25 80 11 00 00 00 00 00 00 BA [17:58:01]Write i2c OK [17:58:01]MH_I2C_Read... [17:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:01]Read from MH i2c: E2 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 17 00 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 17 00 1B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 11 [17:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:58:01]wFMCommunicate OK [17:58:01]requested_item fd.num is exist - process it [17:58:01]SAM_PROTO_GetFieldsCounters [17:58:01]wFMCommunicate request_size=4 [17:58:01]MH_SAM_APDU [17:58:01]CAPDU: 80 13 00 00 [17:58:01]Write to MH i2c: E2 08 00 1C 25 80 13 00 00 00 00 00 00 BD [17:58:01]Write i2c OK [17:58:01]MH_I2C_Read... [17:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:01]Read from MH i2c: E2 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 62 00 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 62 00 1C 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DB CA 01 00 0E 04 04 00 1E 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 9F [17:58: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DB CA 01 00 0E 04 04 00 1E 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 [17:58:01]wFMCommunicate OK [17:58:01]SAM_PROTO_GetFieldsCounters done [17:58:01]requested_item shift.num is exist - process it [17:58:01]requested_item shift.opened is exist - process it [17:58:01]req_shift_opened [17:58:01]FM_GetShiftState [17:58:01]SAM_PROTO_GetShiftState [17:58:01]wFMCommunicate request_size=4 [17:58:01]MH_SAM_APDU [17:58:01]CAPDU: 80 13 01 00 [17:58:01]Write to MH i2c: E2 08 00 1D 25 80 13 01 00 00 00 00 00 BF [17:58:01]Write i2c OK [17:58:01]MH_I2C_Read... [17:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:01]Read from MH i2c: E2 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 0E 00 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 0E 00 1D 25 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FE [17:58:01]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [17:58:01]wFMCommunicate OK [17:58:01]SAM_PROTO_GetShiftState done [17:58:01]FM_GetShiftState done [17:58:01]req_shift_opened done [17:58:01]requested_item shift.open_date is exist - process it [17:58:01]req_shift_open_date [17:58:01]req_shift_open_date done [17:58:01]produce_requested_data done [17:58:01]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117467,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [17:58:01]process_action_free close_receipt [17:58:01]json_value_free [17:58:01]json_value_free done [17:58:01]process_json_proto returns [17:58:01]Send response to host [17:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117467,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [17:58:01]free response buf [17:58:01]execute_script done [17:58:01]execute_script returns [17:58:01]free content buf [17:58:01]Sock 7.Close socket [17:58:01]Sock 7.Thread stoped [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:21]accept exits with 10 [18:01:21]New connection [18:01:21]New thread 3067456868 created [18:01:21]Thread 3067600228 joined [18:01:21]Waiting for new connection... [18:01:21] Sock 10.Parse request [18:01:21]Sock 10.Check first char [18:01:21]Sock 10.First char is OK [18:01:21]request: POST /json_proto HTTP/1.0 [18:01:21]Method: POST [18:01:21]URL: /json_proto [18:01:21]Method is POST - this is cgi request [18:01:21]url: /json_proto [18:01:21]query_string will be loaded in cgi processing [18:01:21]execute_cgi json_proto POST (null) [18:01:21]execute_cgi path=json_proto method=POST [18:01:21]POST find Content-Length [18:01:21]Host: 172.17.96.67:8080 [18:01:21]Content-Length: 766 [18:01:21]Content-Type: application/json [18:01:21] [18:01:21]POST finish read [18:01:21]Found Content-Length = 766 [18:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:01:21]execute_script... [18:01: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)245244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:01:21]POST & json_proto [18:01:21]process_json_proto [18:01:21]json parsed OK: [18:01:21]protocol is kg_v1.0 [18:01:21]action value=close_receipt [18:01:21]process_action close_receipt [18:01:21]cmd_close_receipt [18:01:21]MH_GetDate [18:01:21]Write to MH i2c: F0 00 00 1E 25 32 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: F0 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: F0 09 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: F0 09 00 1E 25 00 F4 7F 1E 67 2B 09 1E 67 EC [18:01:21]GetLastDocTimeStamp 1730051880 [18:01:21]current date 1730052084 [18:01:21]FM_GetShiftState [18:01:21]SAM_PROTO_GetShiftState [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 13 01 00 [18:01:21]Write to MH i2c: E2 08 00 1F 25 80 13 01 00 00 00 00 00 C1 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 0E 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 0E 00 1F 25 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 00 [18:01:21]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:01:21]wFMCommunicate OK [18:01:21]SAM_PROTO_GetShiftState done [18:01:21]FM_GetShiftState done [18:01:21]opened in 1729987372 [18:01:21]opened+sec_in_day 1730073772 [18:01:21]quantity*price = 50041 [18:01:21]sum+1 = 50042 [18:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 168 27.10.2024 18:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117468 ФПД: 232370241574150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180124&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117468&fm=232370241574150&tin=02508201610067®Number=0000000000091782&sum=50041 [18:01:22]StoreToDocumentArchive [18:01:22]shift 542 fd 117468 [18:01:22]save to /storage/0542/doc_00117468 [18:01:22]save last doc name /storage/0542/doc_00117468 to /storage/kkm_last_doc_name [18:01:22]save OK [18:01:22]Clear old archive folders... [18:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:22]tlvbuf is 01784150 [18:01:22]SAM_PROTO_ClearQueue [18:01:22]wFMCommunicate request_size=4 [18:01:22]MH_SAM_APDU [18:01:22]CAPDU: 80 09 00 00 [18:01:22]Write to MH i2c: E2 08 00 2C 25 80 09 00 00 00 00 00 00 C3 [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:22]Read from MH i2c: E2 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 2C 25 00 90 00 C5 [18:01:22]RAPDU: 90 00 [18:01:22]wFMCommunicate OK [18:01:22]SAM_PROTO_ClearQueue done [18:01:22]KKMCreateOFDPacket [18:01:22]OFDProtocolAddRootSTLVToBuf [18:01:22]FM_MakeSignedData [18:01:22]FM_MakeSignedData [18:01:22]SAM_PROTO_SignData [18:01:22]wFMCommunicate request_size=4 [18:01:22]MH_SAM_APDU [18:01:22]CAPDU: 80 0D 01 02 [18:01:22]Write to MH i2c: E2 08 00 2D 25 80 0D 01 02 00 00 00 00 CB [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:22]Read from MH i2c: E2 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 2D 25 00 90 00 C6 [18:01:22]RAPDU: 90 00 [18:01:22]wFMCommunicate OK [18:01:22]wFMCommunicate request_size=255 [18:01:22]MH_SAM_APDU [18:01: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 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 A8 00 00 00 F4 03 04 00 F4 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DC CA 01 00 35 04 06 00 D3 [18:01:22]Write to MH i2c: E2 02 01 2E 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 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 A8 00 00 00 F4 03 04 00 F4 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DC CA 01 00 35 04 06 00 D3 00 00 E9 [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:22]Read from MH i2c: E2 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 2E 25 00 90 00 C7 [18:01:22]RAPDU: 90 00 [18:01:22]wFMCommunicate OK [18:01:22]wFMCommunicate request_size=10 [18:01:22]MH_SAM_APDU [18:01:22]CAPDU: 80 0D 02 02 05 56 E9 B4 95 06 [18:01:22]Write to MH i2c: E2 0D 00 2F 25 80 0D 02 02 05 00 56 E9 B4 95 06 00 00 66 [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:23]Read from MH i2c: E2 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 03 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 03 00 2F 25 00 90 00 C8 [18:01:23]RAPDU: 90 00 [18:01:23]wFMCommunicate OK [18:01:23]wFMCommunicate request_size=4 [18:01:23]MH_SAM_APDU [18:01:23]CAPDU: 80 0D 03 02 [18:01:23]Write to MH i2c: E2 08 00 30 25 80 0D 03 02 00 00 00 00 D0 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:23]Read from MH i2c: E2 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 0B 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 0B 00 30 25 00 04 C3 E8 59 1C F2 F1 1C 90 00 F4 [18:01:23]RAPDU: 04 C3 E8 59 1C F2 F1 1C 90 00 [18:01:23]wFMCommunicate OK [18:01:23]SAM_PROTO_SignData done [18:01:23]FM_MakeSignedData done [18:01:23]CreateOFDProtocolMessage [18:01:23]wFMCommunicate request_size=4 [18:01:23]MH_SAM_APDU [18:01:23]CAPDU: 80 11 00 00 [18:01:23]Write to MH i2c: E2 08 00 31 25 80 11 00 00 00 00 00 00 D0 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:23]Read from MH i2c: E2 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 17 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 17 00 31 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 27 [18:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:01:23]wFMCommunicate OK [18:01:23]CreateOFDProtocolMessage done [18:01:23]OFDSenderStorePacket 117468 [18:01:23]StoreOFDPacket docnum=117468 [18:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 07 55 07 01 3E 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 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 A8 00 00 00 F4 03 04 00 F4 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DC CA 01 00 35 04 06 00 D3 56 E9 B4 95 06 04 C3 E8 59 1C F2 F1 1C [18:01:23]CheckFolder [18:01:23]dirname=/storage/ofd_packets [18:01:23]CheckFolder done [18:01:23]ProducePacketName [18:01:23]name=ofd_packets/00117468 [18:01:23]NVStorageSaveData ofd_packets/00117468 [18:01:23]File name is /storage/ofd_packets/00117468 [18:01:23]Write 301 bytes [18:01:23]NVStorageSaveData done [18:01:23]OFDSenderStorePacket done [18:01:23]KKMCreateOFDPacket done [18:01:23]NVStorageSaveData kkm_last_timestamp [18:01:23]File name is /storage/kkm_last_timestamp [18:01:23]Write 4 bytes [18:01:23]NVStorageSaveData done [18:01:23]ExternCall_PrintAddStr [18:01:23]wPrintStart [18:01:23]Write to MH i2c: 01 00 00 32 25 57 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 07 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 07 00 32 25 00 00 00 00 00 FF 0F 6C [18:01:23]RasterBufferAndPrint [18:01:23]line Счет N : (1)245244 [18:01:23]line ИНН: 02508201610067 [18:01:23]line Контрольно-Кассовый Чек [18:01:23]line ПРОДАЖА [18:01:23]line ТРК (МРК, ГНК) : 21 [18:01:23]line Товар: 2710124130 [18:01:23]line Аи-92-К-2 [18:01:23]line 7.480 * 66.90 [18:01:23]line = 500.41 [18:01:23]line НДС 12% НСП 1% [18:01:23]line > о реализуемом товаре [18:01:23]line ИТОГО: 500.41 [18:01:23]line НСП 1% : 4.43 [18:01:23]line НДС 12% : 53.14 [18:01:23]line Наличными: 0.00 [18:01:23]line Безнал.: 500.41 [18:01:23]line Место: АЗС № 173 "Партнер Нефть" [18:01:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:01:23]line СНО: Общий режим [18:01:23]line Чек 168 27.10.2024 18:01 [18:01:23]line Смена: 542 ФФД: 1.0 [18:01:23]line ЗНМ: 0300000115 [18:01:23]line РНМ: 0000000000091782 [18:01:23]line Версия ККМ: 001 [18:01:23]line Платежная система: Mbank [18:01:23]line ФМ: 0000000000871767 [18:01:23]line ФД: 117468 [18:01:23]line ФПД: 232370241574150 [18:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180124&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117468&fm=232370241574150&tin=02508201610067®Number=0000000000091782&sum=50041 [18:01:23]written 0, free lines is 4095 [18:01:23]OFD Sender: Processing packet 117468 [packets to send 76, broken 75] [18:01:23]ProducePacketName [18:01:23]name=ofd_packets/00117468 [18:01:23]OFD Sender: To server: pG, [18:01:23]CommunicateWithHost lk.salyk.kg:30040 [18:01:23]ConnectInit lk.salyk.kg [18:01:23]Connected sock=9 [18:01: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 36 37 0F 01 00 00 07 55 07 01 3E 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 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 A8 00 00 00 F4 03 04 00 F4 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DC CA 01 00 35 04 06 00 D3 56 E9 B4 95 06 04 C3 E8 59 1C F2 F1 1C [18:01: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 36 37 4F 00 00 00 DC E2 47 00 A4 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 36 37 10 04 04 00 DC CA 01 00 F4 03 04 00 B0 2B 1E 67 B6 04 01 00 00 E9 D1 77 85 1B BD 7A CE [18:01:23]CommunicateWithHost err = 0 [18:01:23]CheckOFDResponse [18:01:23]1017 (14) - 77093643461234 [18:01:23]1041 (16) - 0000000000871767 [18:01:23]1040 (4) - 117468 [18:01:23]1012 (4) - 27.10.2024 12:01 [18:01:23]1206 (1) - 0 [18:01:23]OFD Sender: Remove packet 117468 [18:01:23]ProducePacketName [18:01:23]name=ofd_packets/00117468 [18:01:23]NVStorageDeleteData [18:01:23]Write to MH i2c: 01 00 00 5A 25 7F [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 07 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 07 00 5A 25 00 00 00 00 00 E4 0C 76 [18:01:23]RasterBufferAndPrint [18:01:23]line [18:01:23]line [18:01:23]line [18:01:23]line [18:01:23]line [18:01:23]written 0, free lines is 3306 [18:01:23]MH_Cut [18:01:23]Write to MH i2c: D1 01 00 61 25 01 58 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: D1 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: D1 01 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: D1 01 00 61 25 00 57 [18:01:23]Write to MH i2c: 01 00 00 62 25 87 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]OFD Sender: No OFD packet to send [18:01:24]*** Cut start [18:01:24]*** Purtial cut [18:01:24]*** Stage 1: CUTSNS_PIN = 1 [18:01:24]Read from MH i2c: 01 [18:01:24]MH_I2C_Read... [18:01:24]*** Stop cut motor [18:01:24]*** Cut end [18:01:24]Read from MH i2c: 01 07 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: 01 07 00 62 25 00 00 00 00 00 FF 0F 9C [18:01:24]process_action close_receipt done [18:01:24]requested_data is exist [18:01:24]produce_requested_data [18:01:24]requested_item fm.sn is exist - process it [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 11 00 00 [18:01:24]Write to MH i2c: E2 08 00 63 25 80 11 00 00 00 00 00 00 02 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 17 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 17 00 63 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 59 [18:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:01:24]wFMCommunicate OK [18:01:24]requested_item fd.num is exist - process it [18:01:24]SAM_PROTO_GetFieldsCounters [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 13 00 00 [18:01:24]Write to MH i2c: E2 08 00 64 25 80 13 00 00 00 00 00 00 05 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 62 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 62 00 64 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DC CA 01 00 0E 04 04 00 1E 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 EB [18:01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DC CA 01 00 0E 04 04 00 1E 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 [18:01:24]wFMCommunicate OK [18:01:24]SAM_PROTO_GetFieldsCounters done [18:01:24]requested_item shift.num is exist - process it [18:01:24]requested_item shift.opened is exist - process it [18:01:24]req_shift_opened [18:01:24]FM_GetShiftState [18:01:24]SAM_PROTO_GetShiftState [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 13 01 00 [18:01:24]Write to MH i2c: E2 08 00 65 25 80 13 01 00 00 00 00 00 07 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 0E 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 0E 00 65 25 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 46 [18:01:24]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:01:24]wFMCommunicate OK [18:01:24]SAM_PROTO_GetShiftState done [18:01:24]FM_GetShiftState done [18:01:24]req_shift_opened done [18:01:24]requested_item shift.open_date is exist - process it [18:01:24]req_shift_open_date [18:01:24]req_shift_open_date done [18:01:24]produce_requested_data done [18:01:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117468,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:01:24]process_action_free close_receipt [18:01:24]json_value_free [18:01:24]json_value_free done [18:01:24]process_json_proto returns [18:01:24]Send response to host [18:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117468,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:01:24]free response buf [18:01:24]execute_script done [18:01:24]execute_script returns [18:01:24]free content buf [18:01:24]Sock 10.Close socket [18:01:24]Sock 10.Thread stoped [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:04]accept exits with 7 [18:02:04]New connection [18:02:04]New thread 3067600228 created [18:02:04]Thread 3067456868 joined [18:02:04]Waiting for new connection... [18:02:04] Sock 7.Parse request [18:02:04]Sock 7.Check first char [18:02:04]Sock 7.First char is OK [18:02:04]request: POST /json_proto HTTP/1.0 [18:02:04]Method: POST [18:02:04]URL: /json_proto [18:02:04]Method is POST - this is cgi request [18:02:04]url: /json_proto [18:02:04]query_string will be loaded in cgi processing [18:02:04]execute_cgi json_proto POST (null) [18:02:04]execute_cgi path=json_proto method=POST [18:02:04]POST find Content-Length [18:02:04]Host: 172.17.96.67:8080 [18:02:04]Content-Length: 682 [18:02:04]Content-Type: application/json [18:02:04] [18:02:04]POST finish read [18:02:04]Found Content-Length = 682 [18:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:04]execute_script... [18: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)245245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:04]POST & json_proto [18:02:04]process_json_proto [18:02:04]json parsed OK: [18:02:04]protocol is kg_v1.0 [18:02:04]action value=close_receipt [18:02:04]process_action close_receipt [18:02:04]cmd_close_receipt [18:02:04]MH_GetDate [18:02:04]Write to MH i2c: F0 00 00 66 25 7A [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: F0 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: F0 09 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: F0 09 00 66 25 00 1F 80 1E 67 2B 09 1E 67 60 [18:02:04]GetLastDocTimeStamp 1730052084 [18:02:04]current date 1730052127 [18:02:04]FM_GetShiftState [18:02:04]SAM_PROTO_GetShiftState [18:02:04]wFMCommunicate request_size=4 [18:02:04]MH_SAM_APDU [18:02:04]CAPDU: 80 13 01 00 [18:02:04]Write to MH i2c: E2 08 00 67 25 80 13 01 00 00 00 00 00 09 [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 0E 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 0E 00 67 25 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 48 [18:02:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:02:04]wFMCommunicate OK [18:02:04]SAM_PROTO_GetShiftState done [18:02:04]FM_GetShiftState done [18:02:04]opened in 1729987372 [18:02:04]opened+sec_in_day 1730073772 [18:02:04]quantity*price = 100015 [18:02:04]sum+1 = 100017 [18:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 169 27.10.2024 18:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117469 ФПД: 95271113417454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180207&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117469&fm=95271113417454&tin=02508201610067®Number=0000000000091782&sum=100000 [18:02:05]StoreToDocumentArchive [18:02:05]shift 542 fd 117469 [18:02:05]save to /storage/0542/doc_00117469 [18:02:05]save last doc name /storage/0542/doc_00117469 to /storage/kkm_last_doc_name [18:02:05]save OK [18:02:05]Clear old archive folders... [18:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:05]tlvbuf is B6F46760 [18:02:05]SAM_PROTO_ClearQueue [18:02:05]wFMCommunicate request_size=4 [18:02:05]MH_SAM_APDU [18:02:05]CAPDU: 80 09 00 00 [18:02:05]Write to MH i2c: E2 08 00 74 25 80 09 00 00 00 00 00 00 0B [18:02:05]Write i2c OK [18:02:05]MH_I2C_Read... [18:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:05]Read from MH i2c: E2 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 03 00 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 03 00 74 25 00 90 00 0D [18:02:05]RAPDU: 90 00 [18:02:05]wFMCommunicate OK [18:02:05]SAM_PROTO_ClearQueue done [18:02:05]KKMCreateOFDPacket [18:02:05]OFDProtocolAddRootSTLVToBuf [18:02:05]FM_MakeSignedData [18:02:05]FM_MakeSignedData [18:02:05]SAM_PROTO_SignData [18:02:05]wFMCommunicate request_size=4 [18:02:05]MH_SAM_APDU [18:02:05]CAPDU: 80 0D 01 02 [18:02:05]Write to MH i2c: E2 08 00 75 25 80 0D 01 02 00 00 00 00 13 [18:02:05]Write i2c OK [18:02:05]MH_I2C_Read... [18:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:05]Read from MH i2c: E2 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 03 00 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 03 00 75 25 00 90 00 0E [18:02:05]RAPDU: 90 00 [18:02:05]wFMCommunicate OK [18:02:05]wFMCommunicate request_size=255 [18:02:05]MH_SAM_APDU [18: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 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 A9 00 00 00 F4 03 04 00 1F 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DD CA 01 00 35 04 06 00 56 [18:02:05]Write to MH i2c: E2 02 01 76 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 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 A9 00 00 00 F4 03 04 00 1F 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DD CA 01 00 35 04 06 00 56 00 00 8A [18:02:05]Write i2c OK [18:02:05]MH_I2C_Read... [18:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:06]Read from MH i2c: E2 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 03 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 03 00 76 25 00 90 00 0F [18:02:06]RAPDU: 90 00 [18:02:06]wFMCommunicate OK [18:02:06]wFMCommunicate request_size=10 [18:02:06]MH_SAM_APDU [18:02:06]CAPDU: 80 0D 02 02 05 A6 08 DF 62 EE [18:02:06]Write to MH i2c: E2 0D 00 77 25 80 0D 02 02 05 00 A6 08 DF 62 EE 00 00 FD [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:06]Read from MH i2c: E2 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 03 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 03 00 77 25 00 90 00 10 [18:02:06]RAPDU: 90 00 [18:02:06]wFMCommunicate OK [18:02:06]wFMCommunicate request_size=4 [18:02:06]MH_SAM_APDU [18:02:06]CAPDU: 80 0D 03 02 [18:02:06]Write to MH i2c: E2 08 00 78 25 80 0D 03 02 00 00 00 00 18 [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:06]Read from MH i2c: E2 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 0B 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 0B 00 78 25 00 5F 34 7E 0F 0E 1B 0B 6F 90 00 DC [18:02:06]RAPDU: 5F 34 7E 0F 0E 1B 0B 6F 90 00 [18:02:06]wFMCommunicate OK [18:02:06]SAM_PROTO_SignData done [18:02:06]FM_MakeSignedData done [18:02:06]CreateOFDProtocolMessage [18:02:06]wFMCommunicate request_size=4 [18:02:06]MH_SAM_APDU [18:02:06]CAPDU: 80 11 00 00 [18:02:06]Write to MH i2c: E2 08 00 79 25 80 11 00 00 00 00 00 00 18 [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:06]Read from MH i2c: E2 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 17 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 17 00 79 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6F [18:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:02:06]wFMCommunicate OK [18:02:06]CreateOFDProtocolMessage done [18:02:06]OFDSenderStorePacket 117469 [18:02:06]StoreOFDPacket docnum=117469 [18:02:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 00 CB 07 01 BE 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A9 00 00 00 F4 03 04 00 1F 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DD CA 01 00 35 04 06 00 56 A6 08 DF 62 EE 5F 34 7E 0F 0E 1B 0B 6F [18:02:06]CheckFolder [18:02:06]dirname=/storage/ofd_packets [18:02:06]CheckFolder done [18:02:06]ProducePacketName [18:02:06]name=ofd_packets/00117469 [18:02:06]NVStorageSaveData ofd_packets/00117469 [18:02:06]File name is /storage/ofd_packets/00117469 [18:02:06]Write 301 bytes [18:02:06]NVStorageSaveData done [18:02:06]OFDSenderStorePacket done [18:02:06]KKMCreateOFDPacket done [18:02:06]NVStorageSaveData kkm_last_timestamp [18:02:06]File name is /storage/kkm_last_timestamp [18:02:06]Write 4 bytes [18:02:06]NVStorageSaveData done [18:02:06]ExternCall_PrintAddStr [18:02:06]wPrintStart [18:02:06]Write to MH i2c: 01 00 00 7A 25 9F [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: 01 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: 01 07 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: 01 07 00 7A 25 00 00 00 00 00 FF 0F B4 [18:02:06]RasterBufferAndPrint [18:02:06]line Счет N : (1)245245 [18:02:06]line ИНН: 02508201610067 [18:02:06]line Контрольно-Кассовый Чек [18:02:06]line ПРОДАЖА [18:02:06]line ТРК (МРК, ГНК) : 11 [18:02:06]line Товар: 2710124130 [18:02:06]line Аи-92-К-2 [18:02:06]line 14.950 * 66.90 [18:02:06]line = 1000.16 [18:02:06]line НДС 12% НСП 1% [18:02:06]line > о реализуемом товаре [18:02:06]line ОКРУГЛЕНИЕ: -0.16 [18:02:06]line ИТОГО: 1000.00 [18:02:06]line Внесено: 1000.00 [18:02:06]line СДАЧА: 0.00 [18:02:06]line НСП 1% : 8.85 [18:02:06]line НДС 12% : 106.21 [18:02:06]line Наличными: 1000.00 [18:02:06]line Безнал.: 0.00 [18:02:06]line Место: АЗС № 173 "Партнер Нефть" [18:02:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:02:06]line СНО: Общий режим [18:02:06]line Чек 169 27.10.2024 18:02 [18:02:06]line Смена: 542 ФФД: 1.0 [18:02:06]line ЗНМ: 0300000115 [18:02:06]line РНМ: 0000000000091782 [18:02:06]line Версия ККМ: 001 [18:02:06]line ФМ: 0000000000871767 [18:02:06]line ФД: 117469 [18:02:06]line ФПД: 95271113417454 [18:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180207&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117469&fm=95271113417454&tin=02508201610067®Number=0000000000091782&sum=100000 [18:02:06]written 0, free lines is 4095 [18:02:06]OFD Sender: Processing packet 117469 [packets to send 76, broken 75] [18:02:06]ProducePacketName [18:02:06]name=ofd_packets/00117469 [18:02:06]OFD Sender: To server: pG, [18:02:06]CommunicateWithHost lk.salyk.kg:30040 [18:02:06]ConnectInit lk.salyk.kg [18:02:06]Connected sock=10 [18: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 36 37 0F 01 00 00 00 CB 07 01 BE 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A9 00 00 00 F4 03 04 00 1F 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DD CA 01 00 35 04 06 00 56 A6 08 DF 62 EE 5F 34 7E 0F 0E 1B 0B 6F [18: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 36 37 4F 00 00 00 2F AC 47 00 2A 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 36 37 10 04 04 00 DD CA 01 00 F4 03 04 00 DB 2B 1E 67 B6 04 01 00 00 17 FA 8C BD ED 8D 2D 6F [18:02:06]CommunicateWithHost err = 0 [18:02:06]CheckOFDResponse [18:02:06]1017 (14) - 77093643461234 [18:02:06]1041 (16) - 0000000000871767 [18:02:06]1040 (4) - 117469 [18:02:06]1012 (4) - 27.10.2024 12:02 [18:02:06]1206 (1) - 0 [18:02:06]OFD Sender: Remove packet 117469 [18:02:06]ProducePacketName [18:02:06]name=ofd_packets/00117469 [18:02:06]NVStorageDeleteData [18:02:06]Write to MH i2c: 01 00 00 A4 25 C9 [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: 01 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: 01 07 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: 01 07 00 A4 25 00 00 00 00 00 B6 0C 92 [18:02:06]RasterBufferAndPrint [18:02:06]line [18:02:06]line [18:02:06]line [18:02:06]line [18:02:06]line [18:02:06]written 0, free lines is 3258 [18:02:06]MH_Cut [18:02:06]Write to MH i2c: D1 01 00 AB 25 01 A2 [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: D1 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: D1 01 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: D1 01 00 AB 25 00 A1 [18:02:06]Write to MH i2c: 01 00 00 AC 25 D1 [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:07]OFD Sender: No OFD packet to send [18:02:07]*** Cut start [18:02:07]*** Purtial cut [18:02:07]*** Stage 1: CUTSNS_PIN = 1 [18:02:08]Read from MH i2c: 01 [18:02:08]MH_I2C_Read... [18:02:08]*** Stop cut motor [18:02:08]*** Cut end [18:02:08]Read from MH i2c: 01 07 00 [18:02:08]MH_I2C_Read... [18:02:08]Read from MH i2c: 01 07 00 AC 25 00 00 00 00 00 FF 0F E6 [18:02:08]process_action close_receipt done [18:02:08]requested_data is exist [18:02:08]produce_requested_data [18:02:08]requested_item fm.sn is exist - process it [18:02:08]wFMCommunicate request_size=4 [18:02:08]MH_SAM_APDU [18:02:08]CAPDU: 80 11 00 00 [18:02:08]Write to MH i2c: E2 08 00 AD 25 80 11 00 00 00 00 00 00 4C [18:02:08]Write i2c OK [18:02:08]MH_I2C_Read... [18:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:08]Read from MH i2c: E2 [18:02:08]MH_I2C_Read... [18:02:08]Read from MH i2c: E2 17 00 [18:02:08]MH_I2C_Read... [18:02:08]Read from MH i2c: E2 17 00 AD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A3 [18:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:02:08]wFMCommunicate OK [18:02:08]requested_item fd.num is exist - process it [18:02:08]SAM_PROTO_GetFieldsCounters [18:02:08]wFMCommunicate request_size=4 [18:02:08]MH_SAM_APDU [18:02:08]CAPDU: 80 13 00 00 [18:02:08]Write to MH i2c: E2 08 00 AE 25 80 13 00 00 00 00 00 00 4F [18:02:08]Write i2c OK [18:02:08]MH_I2C_Read... [18:02:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:08]Read from MH i2c: E2 [18:02:08]MH_I2C_Read... [18:02:08]Read from MH i2c: E2 62 00 [18:02:08]MH_I2C_Read... [18:02:08]Read from MH i2c: E2 62 00 AE 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DD CA 01 00 0E 04 04 00 1E 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 39 [18:02: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DD CA 01 00 0E 04 04 00 1E 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 [18:02:08]wFMCommunicate OK [18:02:08]SAM_PROTO_GetFieldsCounters done [18:02:08]requested_item shift.num is exist - process it [18:02:08]requested_item shift.opened is exist - process it [18:02:08]req_shift_opened [18:02:08]FM_GetShiftState [18:02:08]SAM_PROTO_GetShiftState [18:02:08]wFMCommunicate request_size=4 [18:02:08]MH_SAM_APDU [18:02:08]CAPDU: 80 13 01 00 [18:02:08]Write to MH i2c: E2 08 00 AF 25 80 13 01 00 00 00 00 00 51 [18:02:08]Write i2c OK [18:02:08]MH_I2C_Read... [18:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:08]Read from MH i2c: E2 [18:02:08]MH_I2C_Read... [18:02:08]Read from MH i2c: E2 0E 00 [18:02:08]MH_I2C_Read... [18:02:08]Read from MH i2c: E2 0E 00 AF 25 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 90 [18:02:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:02:08]wFMCommunicate OK [18:02:08]SAM_PROTO_GetShiftState done [18:02:08]FM_GetShiftState done [18:02:08]req_shift_opened done [18:02:08]requested_item shift.open_date is exist - process it [18:02:08]req_shift_open_date [18:02:08]req_shift_open_date done [18:02:08]produce_requested_data done [18:02:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117469,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:02:08]process_action_free close_receipt [18:02:08]json_value_free [18:02:08]json_value_free done [18:02:08]process_json_proto returns [18:02:08]Send response to host [18:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117469,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:02:08]free response buf [18:02:08]execute_script done [18:02:08]execute_script returns [18:02:08]free content buf [18:02:08]Sock 7.Close socket [18:02:08]Sock 7.Thread stoped [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:17]accept exits with 9 [18:04:17]New connection [18:04:17]New thread 3067456868 created [18:04:17]Thread 3067600228 joined [18:04:17]Waiting for new connection... [18:04:17] Sock 9.Parse request [18:04:17]Sock 9.Check first char [18:04:17]Sock 9.First char is OK [18:04:17]request: POST /json_proto HTTP/1.0 [18:04:17]Method: POST [18:04:17]URL: /json_proto [18:04:17]Method is POST - this is cgi request [18:04:17]url: /json_proto [18:04:17]query_string will be loaded in cgi processing [18:04:17]execute_cgi json_proto POST (null) [18:04:17]execute_cgi path=json_proto method=POST [18:04:17]POST find Content-Length [18:04:17]Host: 172.17.96.67:8080 [18:04:17]Content-Length: 677 [18:04:17]Content-Type: application/json [18:04:17] [18:04:17]POST finish read [18:04:17]Found Content-Length = 677 [18:04:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:04:17]execute_script... [18:04: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)245246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:04:17]POST & json_proto [18:04:17]process_json_proto [18:04:17]json parsed OK: [18:04:17]protocol is kg_v1.0 [18:04:17]action value=close_receipt [18:04:17]process_action close_receipt [18:04:17]cmd_close_receipt [18:04:17]MH_GetDate [18:04:17]Write to MH i2c: F0 00 00 B0 25 C4 [18:04:17]Write i2c OK [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: F0 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: F0 09 00 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: F0 09 00 B0 25 00 A4 80 1E 67 2B 09 1E 67 2F [18:04:17]GetLastDocTimeStamp 1730052127 [18:04:17]current date 1730052260 [18:04:17]FM_GetShiftState [18:04:17]SAM_PROTO_GetShiftState [18:04:17]wFMCommunicate request_size=4 [18:04:17]MH_SAM_APDU [18:04:17]CAPDU: 80 13 01 00 [18:04:17]Write to MH i2c: E2 08 00 B1 25 80 13 01 00 00 00 00 00 53 [18:04:17]Write i2c OK [18:04:17]MH_I2C_Read... [18:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:17]Read from MH i2c: E2 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: E2 0E 00 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: E2 0E 00 B1 25 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 92 [18:04:17]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:04:17]wFMCommunicate OK [18:04:17]SAM_PROTO_GetShiftState done [18:04:17]FM_GetShiftState done [18:04:17]opened in 1729987372 [18:04:17]opened+sec_in_day 1730073772 [18:04:17]quantity*price = 30038 [18:04:17]sum+1 = 30039 [18:04:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 170 27.10.2024 18:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117470 ФПД: 166560021403980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180420&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117470&fm=166560021403980&tin=02508201610067®Number=0000000000091782&sum=30000 [18:04:18]StoreToDocumentArchive [18:04:18]shift 542 fd 117470 [18:04:18]save to /storage/0542/doc_00117470 [18:04:18]save last doc name /storage/0542/doc_00117470 to /storage/kkm_last_doc_name [18:04:18]save OK [18:04:18]Clear old archive folders... [18:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:18]tlvbuf is 01773BD0 [18:04:18]SAM_PROTO_ClearQueue [18:04:18]wFMCommunicate request_size=4 [18:04:18]MH_SAM_APDU [18:04:18]CAPDU: 80 09 00 00 [18:04:18]Write to MH i2c: E2 08 00 BE 25 80 09 00 00 00 00 00 00 55 [18:04:18]Write i2c OK [18:04:18]MH_I2C_Read... [18:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:18]Read from MH i2c: E2 [18:04:18]MH_I2C_Read... [18:04:18]Read from MH i2c: E2 03 00 [18:04:18]MH_I2C_Read... [18:04:18]Read from MH i2c: E2 03 00 BE 25 00 90 00 57 [18:04:18]RAPDU: 90 00 [18:04:18]wFMCommunicate OK [18:04:18]SAM_PROTO_ClearQueue done [18:04:18]KKMCreateOFDPacket [18:04:18]OFDProtocolAddRootSTLVToBuf [18:04:18]FM_MakeSignedData [18:04:18]FM_MakeSignedData [18:04:18]SAM_PROTO_SignData [18:04:18]wFMCommunicate request_size=4 [18:04:18]MH_SAM_APDU [18:04:18]CAPDU: 80 0D 01 02 [18:04:18]Write to MH i2c: E2 08 00 BF 25 80 0D 01 02 00 00 00 00 5D [18:04:18]Write i2c OK [18:04:18]MH_I2C_Read... [18:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:18]Read from MH i2c: E2 [18:04:18]MH_I2C_Read... [18:04:18]Read from MH i2c: E2 03 00 [18:04:18]MH_I2C_Read... [18:04:18]Read from MH i2c: E2 03 00 BF 25 00 90 00 58 [18:04:18]RAPDU: 90 00 [18:04:18]wFMCommunicate OK [18:04:18]wFMCommunicate request_size=255 [18:04:18]MH_SAM_APDU [18:04: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 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 AA 00 00 00 F4 03 04 00 A4 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DE CA 01 00 35 04 06 00 97 [18:04:18]Write to MH i2c: E2 02 01 C0 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 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 AA 00 00 00 F4 03 04 00 A4 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DE CA 01 00 35 04 06 00 97 00 00 96 [18:04:18]Write i2c OK [18:04:18]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 C0 25 00 90 00 59 [18:04:19]RAPDU: 90 00 [18:04:19]wFMCommunicate OK [18:04:19]wFMCommunicate request_size=10 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 0D 02 02 05 7C 46 E8 D9 4C [18:04:19]Write to MH i2c: E2 0D 00 C1 25 80 0D 02 02 05 00 7C 46 E8 D9 4C 00 00 39 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 C1 25 00 90 00 5A [18:04:19]RAPDU: 90 00 [18:04:19]wFMCommunicate OK [18:04:19]wFMCommunicate request_size=4 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 0D 03 02 [18:04:19]Write to MH i2c: E2 08 00 C2 25 80 0D 03 02 00 00 00 00 62 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 0B 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 0B 00 C2 25 00 01 B5 6A 69 9E 81 70 19 90 00 94 [18:04:19]RAPDU: 01 B5 6A 69 9E 81 70 19 90 00 [18:04:19]wFMCommunicate OK [18:04:19]SAM_PROTO_SignData done [18:04:19]FM_MakeSignedData done [18:04:19]CreateOFDProtocolMessage [18:04:19]wFMCommunicate request_size=4 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 11 00 00 [18:04:19]Write to MH i2c: E2 08 00 C3 25 80 11 00 00 00 00 00 00 62 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 17 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 17 00 C3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B9 [18:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:04:19]wFMCommunicate OK [18:04:19]CreateOFDProtocolMessage done [18:04:19]OFDSenderStorePacket 117470 [18:04:19]StoreOFDPacket docnum=117470 [18:04:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9B 66 07 01 11 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 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 AA 00 00 00 F4 03 04 00 A4 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DE CA 01 00 35 04 06 00 97 7C 46 E8 D9 4C 01 B5 6A 69 9E 81 70 19 [18:04:19]CheckFolder [18:04:19]dirname=/storage/ofd_packets [18:04:19]CheckFolder done [18:04:19]ProducePacketName [18:04:19]name=ofd_packets/00117470 [18:04:19]NVStorageSaveData ofd_packets/00117470 [18:04:19]File name is /storage/ofd_packets/00117470 [18:04:19]Write 301 bytes [18:04:19]NVStorageSaveData done [18:04:19]OFDSenderStorePacket done [18:04:19]KKMCreateOFDPacket done [18:04:19]NVStorageSaveData kkm_last_timestamp [18:04:19]File name is /storage/kkm_last_timestamp [18:04:19]Write 4 bytes [18:04:19]NVStorageSaveData done [18:04:19]ExternCall_PrintAddStr [18:04:19]wPrintStart [18:04:19]Write to MH i2c: 01 00 00 C4 25 E9 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 07 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 07 00 C4 25 00 00 00 00 00 FF 0F FE [18:04:19]RasterBufferAndPrint [18:04:19]line Счет N : (1)245246 [18:04:19]line ИНН: 02508201610067 [18:04:19]line Контрольно-Кассовый Чек [18:04:19]line ПРОДАЖА [18:04:19]line ТРК (МРК, ГНК) : 21 [18:04:19]line Товар: 2710124130 [18:04:19]line Аи-92-К-2 [18:04:19]line 4.490 * 66.90 [18:04:19]line = 300.38 [18:04:19]line НДС 12% НСП 1% [18:04:19]line > о реализуемом товаре [18:04:19]line ОКРУГЛЕНИЕ: -0.38 [18:04:19]line ИТОГО: 300.00 [18:04:19]line Внесено: 300.00 [18:04:19]line СДАЧА: 0.00 [18:04:19]line НСП 1% : 2.66 [18:04:19]line НДС 12% : 31.90 [18:04:19]line Наличными: 300.00 [18:04:19]line Безнал.: 0.00 [18:04:19]line Место: АЗС № 173 "Партнер Нефть" [18:04:19]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:04:19]line СНО: Общий режим [18:04:19]line Чек 170 27.10.2024 18:04 [18:04:19]line Смена: 542 ФФД: 1.0 [18:04:19]line ЗНМ: 0300000115 [18:04:19]line РНМ: 0000000000091782 [18:04:19]line Версия ККМ: 001 [18:04:19]line ФМ: 0000000000871767 [18:04:19]line ФД: 117470 [18:04:19]line ФПД: 166560021403980 [18:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180420&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117470&fm=166560021403980&tin=02508201610067®Number=0000000000091782&sum=30000 [18:04:19]written 0, free lines is 4095 [18:04:19]OFD Sender: Processing packet 117470 [packets to send 76, broken 75] [18:04:19]ProducePacketName [18:04:19]name=ofd_packets/00117470 [18:04:19]OFD Sender: To server: pG, [18:04:19]CommunicateWithHost lk.salyk.kg:30040 [18:04:19]ConnectInit lk.salyk.kg [18:04:19]Connected sock=10 [18:04: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 36 37 0F 01 00 00 9B 66 07 01 11 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 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 AA 00 00 00 F4 03 04 00 A4 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DE CA 01 00 35 04 06 00 97 7C 46 E8 D9 4C 01 B5 6A 69 9E 81 70 19 [18:04: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 36 37 4F 00 00 00 9A D6 47 00 F8 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 36 37 10 04 04 00 DE CA 01 00 F4 03 04 00 61 2C 1E 67 B6 04 01 00 00 48 3E A6 D7 33 12 89 CD [18:04:19]CommunicateWithHost err = 0 [18:04:19]CheckOFDResponse [18:04:19]1017 (14) - 77093643461234 [18:04:19]1041 (16) - 0000000000871767 [18:04:19]1040 (4) - 117470 [18:04:19]1012 (4) - 27.10.2024 12:04 [18:04:19]1206 (1) - 0 [18:04:19]OFD Sender: Remove packet 117470 [18:04:19]ProducePacketName [18:04:19]name=ofd_packets/00117470 [18:04:19]NVStorageDeleteData [18:04:20]Write to MH i2c: 01 00 00 EE 25 13 [18:04:20]Write i2c OK [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: 01 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: 01 07 00 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: 01 07 00 EE 25 00 00 00 00 00 B8 0C DE [18:04:20]RasterBufferAndPrint [18:04:20]line [18:04:20]line [18:04:20]line [18:04:20]line [18:04:20]line [18:04:20]written 0, free lines is 3262 [18:04:20]MH_Cut [18:04:20]Write to MH i2c: D1 01 00 F5 25 01 EC [18:04:20]Write i2c OK [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: D1 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: D1 01 00 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: D1 01 00 F5 25 00 EB [18:04:20]Write to MH i2c: 01 00 00 F6 25 1B [18:04:20]Write i2c OK [18:04:20]MH_I2C_Read... [18:04:20]OFD Sender: No OFD packet to send [18:04:20]*** Cut start [18:04:20]*** Purtial cut [18:04:20]*** Stage 1: CUTSNS_PIN = 1 [18:04:21]Read from MH i2c: 01 [18:04:21]MH_I2C_Read... [18:04:21]*** Stop cut motor [18:04:21]*** Cut end [18:04:21]Read from MH i2c: 01 07 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: 01 07 00 F6 25 00 00 00 00 00 FF 0F 30 [18:04:21]process_action close_receipt done [18:04:21]requested_data is exist [18:04:21]produce_requested_data [18:04:21]requested_item fm.sn is exist - process it [18:04:21]wFMCommunicate request_size=4 [18:04:21]MH_SAM_APDU [18:04:21]CAPDU: 80 11 00 00 [18:04:21]Write to MH i2c: E2 08 00 F7 25 80 11 00 00 00 00 00 00 96 [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:21]Read from MH i2c: E2 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 17 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 17 00 F7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 ED [18:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:04:21]wFMCommunicate OK [18:04:21]requested_item fd.num is exist - process it [18:04:21]SAM_PROTO_GetFieldsCounters [18:04:21]wFMCommunicate request_size=4 [18:04:21]MH_SAM_APDU [18:04:21]CAPDU: 80 13 00 00 [18:04:21]Write to MH i2c: E2 08 00 F8 25 80 13 00 00 00 00 00 00 99 [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:21]Read from MH i2c: E2 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 62 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 62 00 F8 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DE CA 01 00 0E 04 04 00 1E 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 87 [18:04: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DE CA 01 00 0E 04 04 00 1E 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 [18:04:21]wFMCommunicate OK [18:04:21]SAM_PROTO_GetFieldsCounters done [18:04:21]requested_item shift.num is exist - process it [18:04:21]requested_item shift.opened is exist - process it [18:04:21]req_shift_opened [18:04:21]FM_GetShiftState [18:04:21]SAM_PROTO_GetShiftState [18:04:21]wFMCommunicate request_size=4 [18:04:21]MH_SAM_APDU [18:04:21]CAPDU: 80 13 01 00 [18:04:21]Write to MH i2c: E2 08 00 F9 25 80 13 01 00 00 00 00 00 9B [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:21]Read from MH i2c: E2 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 0E 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 0E 00 F9 25 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 DA [18:04:21]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:04:21]wFMCommunicate OK [18:04:21]SAM_PROTO_GetShiftState done [18:04:21]FM_GetShiftState done [18:04:21]req_shift_opened done [18:04:21]requested_item shift.open_date is exist - process it [18:04:21]req_shift_open_date [18:04:21]req_shift_open_date done [18:04:21]produce_requested_data done [18:04:21]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117470,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:04:21]process_action_free close_receipt [18:04:21]json_value_free [18:04:21]json_value_free done [18:04:21]process_json_proto returns [18:04:21]Send response to host [18:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117470,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:04:21]free response buf [18:04:21]execute_script done [18:04:21]execute_script returns [18:04:21]free content buf [18:04:21]Sock 9.Close socket [18:04:21]Sock 9.Thread stoped [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]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:04]accept exits with 7 [18:23:04]New connection [18:23:04]New thread 3067600228 created [18:23:04]Thread 3067456868 joined [18:23:04]Waiting for new connection... [18:23:04] Sock 7.Parse request [18:23:04]Sock 7.Check first char [18:23:04]Sock 7.First char is OK [18:23:04]request: POST /json_proto HTTP/1.0 [18:23:04]Method: POST [18:23:04]URL: /json_proto [18:23:04]Method is POST - this is cgi request [18:23:04]url: /json_proto [18:23:04]query_string will be loaded in cgi processing [18:23:04]execute_cgi json_proto POST (null) [18:23:04]execute_cgi path=json_proto method=POST [18:23:04]POST find Content-Length [18:23:04]Host: 172.17.96.67:8080 [18:23:04]Content-Length: 677 [18:23:04]Content-Type: application/json [18:23:04] [18:23:04]POST finish read [18:23:04]Found Content-Length = 677 [18:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:23:04]execute_script... [18:23:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:23:04]POST & json_proto [18:23:04]process_json_proto [18:23:04]json parsed OK: [18:23:04]protocol is kg_v1.0 [18:23:04]action value=close_receipt [18:23:04]process_action close_receipt [18:23:04]cmd_close_receipt [18:23:04]MH_GetDate [18:23:04]Write to MH i2c: F0 00 00 FA 25 0E [18:23:04]Write i2c OK [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: F0 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: F0 09 00 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: F0 09 00 FA 25 00 0B 85 1E 67 2B 09 1E 67 E5 [18:23:04]GetLastDocTimeStamp 1730052260 [18:23:04]current date 1730053387 [18:23:04]FM_GetShiftState [18:23:04]SAM_PROTO_GetShiftState [18:23:04]wFMCommunicate request_size=4 [18:23:04]MH_SAM_APDU [18:23:04]CAPDU: 80 13 01 00 [18:23:04]Write to MH i2c: E2 08 00 FB 25 80 13 01 00 00 00 00 00 9D [18:23:04]Write i2c OK [18:23:04]MH_I2C_Read... [18:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:04]Read from MH i2c: E2 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: E2 0E 00 [18:23:04]MH_I2C_Read... [18:23:04]Read from MH i2c: E2 0E 00 FB 25 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 DC [18:23:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:23:04]wFMCommunicate OK [18:23:04]SAM_PROTO_GetShiftState done [18:23:04]FM_GetShiftState done [18:23:04]opened in 1729987372 [18:23:04]opened+sec_in_day 1730073772 [18:23:04]quantity*price = 50041 [18:23:04]sum+1 = 50042 [18:23: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 171 27.10.2024 18:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117471 ФПД: 40571939270152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182307&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117471&fm=40571939270152&tin=02508201610067®Number=0000000000091782&sum=50000 [18:23:06]StoreToDocumentArchive [18:23:06]shift 542 fd 117471 [18:23:06]save to /storage/0542/doc_00117471 [18:23:06]save last doc name /storage/0542/doc_00117471 to /storage/kkm_last_doc_name [18:23:06]save OK [18:23:06]Clear old archive folders... [18:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:06]tlvbuf is B6F5F480 [18:23:06]SAM_PROTO_ClearQueue [18:23:06]wFMCommunicate request_size=4 [18:23:06]MH_SAM_APDU [18:23:06]CAPDU: 80 09 00 00 [18:23:06]Write to MH i2c: E2 08 00 08 26 80 09 00 00 00 00 00 00 A0 [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:06]Read from MH i2c: E2 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 03 00 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 03 00 08 26 00 90 00 A2 [18:23:06]RAPDU: 90 00 [18:23:06]wFMCommunicate OK [18:23:06]SAM_PROTO_ClearQueue done [18:23:06]KKMCreateOFDPacket [18:23:06]OFDProtocolAddRootSTLVToBuf [18:23:06]FM_MakeSignedData [18:23:06]FM_MakeSignedData [18:23:06]SAM_PROTO_SignData [18:23:06]wFMCommunicate request_size=4 [18:23:06]MH_SAM_APDU [18:23:06]CAPDU: 80 0D 01 02 [18:23:06]Write to MH i2c: E2 08 00 09 26 80 0D 01 02 00 00 00 00 A8 [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:06]Read from MH i2c: E2 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 03 00 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 03 00 09 26 00 90 00 A3 [18:23:06]RAPDU: 90 00 [18:23:06]wFMCommunicate OK [18:23:06]wFMCommunicate request_size=255 [18:23:06]MH_SAM_APDU [18:23: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 AB 00 00 00 F4 03 04 00 0B 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DF CA 01 00 35 04 06 00 24 [18:23:06]Write to MH i2c: E2 02 01 0A 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 AB 00 00 00 F4 03 04 00 0B 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DF CA 01 00 35 04 06 00 24 00 00 E8 [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:06]Read from MH i2c: E2 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 03 00 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 03 00 0A 26 00 90 00 A4 [18:23:06]RAPDU: 90 00 [18:23:06]wFMCommunicate OK [18:23:06]wFMCommunicate request_size=10 [18:23:06]MH_SAM_APDU [18:23:06]CAPDU: 80 0D 02 02 05 E6 64 07 2E 08 [18:23:06]Write to MH i2c: E2 0D 00 0B 26 80 0D 02 02 05 00 E6 64 07 2E 08 00 00 3C [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:06]Read from MH i2c: E2 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 03 00 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 03 00 0B 26 00 90 00 A5 [18:23:06]RAPDU: 90 00 [18:23:06]wFMCommunicate OK [18:23:06]wFMCommunicate request_size=4 [18:23:06]MH_SAM_APDU [18:23:06]CAPDU: 80 0D 03 02 [18:23:06]Write to MH i2c: E2 08 00 0C 26 80 0D 03 02 00 00 00 00 AD [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:06]Read from MH i2c: E2 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 0B 00 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 0B 00 0C 26 00 8C 2D 36 C3 A1 68 21 89 90 00 13 [18:23:06]RAPDU: 8C 2D 36 C3 A1 68 21 89 90 00 [18:23:06]wFMCommunicate OK [18:23:06]SAM_PROTO_SignData done [18:23:06]FM_MakeSignedData done [18:23:06]CreateOFDProtocolMessage [18:23:06]wFMCommunicate request_size=4 [18:23:06]MH_SAM_APDU [18:23:06]CAPDU: 80 11 00 00 [18:23:06]Write to MH i2c: E2 08 00 0D 26 80 11 00 00 00 00 00 00 AD [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23:06]OFD Sender: No OFD packet to send [18:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:06]Read from MH i2c: E2 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 17 00 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: E2 17 00 0D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 04 [18:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:23:06]wFMCommunicate OK [18:23:06]CreateOFDProtocolMessage done [18:23:06]OFDSenderStorePacket 117471 [18:23:06]StoreOFDPacket docnum=117471 [18:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B8 E5 07 01 D1 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DF CA 01 00 35 04 06 00 24 E6 64 07 2E 08 8C 2D 36 C3 A1 68 21 89 [18:23:06]CheckFolder [18:23:06]dirname=/storage/ofd_packets [18:23:06]CheckFolder done [18:23:06]ProducePacketName [18:23:06]name=ofd_packets/00117471 [18:23:06]NVStorageSaveData ofd_packets/00117471 [18:23:06]File name is /storage/ofd_packets/00117471 [18:23:06]Write 301 bytes [18:23:06]NVStorageSaveData done [18:23:06]OFDSenderStorePacket done [18:23:06]KKMCreateOFDPacket done [18:23:06]NVStorageSaveData kkm_last_timestamp [18:23:06]File name is /storage/kkm_last_timestamp [18:23:06]Write 4 bytes [18:23:06]NVStorageSaveData done [18:23:06]ExternCall_PrintAddStr [18:23:06]wPrintStart [18:23:06]Write to MH i2c: 01 00 00 0E 26 34 [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: 01 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: 01 07 00 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: 01 07 00 0E 26 00 00 00 00 00 FF 0F 49 [18:23:06]RasterBufferAndPrint [18:23:06]line Счет N : (1)245247 [18:23:06]line ИНН: 02508201610067 [18:23:06]line Контрольно-Кассовый Чек [18:23:06]line ПРОДАЖА [18:23:06]line ТРК (МРК, ГНК) : 11 [18:23:06]line Товар: 2710124130 [18:23:06]line Аи-92-К-2 [18:23:06]line 7.480 * 66.90 [18:23:06]line = 500.41 [18:23:06]line НДС 12% НСП 1% [18:23:06]line > о реализуемом товаре [18:23:06]line ОКРУГЛЕНИЕ: -0.41 [18:23:06]line ИТОГО: 500.00 [18:23:06]line Внесено: 500.00 [18:23:06]line СДАЧА: 0.00 [18:23:06]line НСП 1% : 4.43 [18:23:06]line НДС 12% : 53.14 [18:23:06]line Наличными: 500.00 [18:23:06]line Безнал.: 0.00 [18:23:06]line Место: АЗС № 173 "Партнер Нефть" [18:23:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:23:06]line СНО: Общий режим [18:23:06]line Чек 171 27.10.2024 18:23 [18:23:06]line Смена: 542 ФФД: 1.0 [18:23:06]line ЗНМ: 0300000115 [18:23:06]line РНМ: 0000000000091782 [18:23:06]line Версия ККМ: 001 [18:23:06]line ФМ: 0000000000871767 [18:23:06]line ФД: 117471 [18:23:06]line ФПД: 40571939270152 [18:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182307&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117471&fm=40571939270152&tin=02508201610067®Number=0000000000091782&sum=50000 [18:23:06]OFD Sender: Processing packet 117471 [packets to send 76, broken 75] [18:23:06]ProducePacketName [18:23:06]name=ofd_packets/00117471 [18:23:06]OFD Sender: To server: pG, [18:23:06]CommunicateWithHost lk.salyk.kg:30040 [18:23:06]ConnectInit lk.salyk.kg [18:23:06]written 0, free lines is 4095 [18:23:07]Connected sock=11 [18:23: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 36 37 0F 01 00 00 B8 E5 07 01 D1 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DF CA 01 00 35 04 06 00 24 E6 64 07 2E 08 8C 2D 36 C3 A1 68 21 89 [18:23: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 36 37 4F 00 00 00 19 71 47 00 85 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 36 37 10 04 04 00 DF CA 01 00 F4 03 04 00 C8 30 1E 67 B6 04 01 00 00 DB EE 62 80 F0 BB B0 2E [18:23:07]CommunicateWithHost err = 0 [18:23:07]CheckOFDResponse [18:23:07]1017 (14) - 77093643461234 [18:23:07]1041 (16) - 0000000000871767 [18:23:07]1040 (4) - 117471 [18:23:07]1012 (4) - 27.10.2024 12:23 [18:23:07]1206 (1) - 0 [18:23:07]OFD Sender: Remove packet 117471 [18:23:07]ProducePacketName [18:23:07]name=ofd_packets/00117471 [18:23:07]NVStorageDeleteData [18:23:07]Write to MH i2c: 01 00 00 38 26 5E [18:23:07]Write i2c OK [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: 01 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: 01 07 00 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: 01 07 00 38 26 00 00 00 00 00 B1 0C 22 [18:23:07]RasterBufferAndPrint [18:23:07]line [18:23:07]line [18:23:07]line [18:23:07]line [18:23:07]line [18:23:07]written 0, free lines is 3255 [18:23:07]MH_Cut [18:23:07]Write to MH i2c: D1 01 00 3F 26 01 37 [18:23:07]Write i2c OK [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: D1 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: D1 01 00 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: D1 01 00 3F 26 00 36 [18:23:07]Write to MH i2c: 01 00 00 40 26 66 [18:23:07]Write i2c OK [18:23:07]MH_I2C_Read... [18:23:07]OFD Sender: No OFD packet to send [18:23:08]*** Cut start [18:23:08]*** Purtial cut [18:23:08]*** Stage 1: CUTSNS_PIN = 1 [18:23:08]Read from MH i2c: 01 [18:23:08]MH_I2C_Read... [18:23:08]*** Stop cut motor [18:23:08]*** Cut end [18:23:08]Read from MH i2c: 01 07 00 [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: 01 07 00 40 26 00 00 00 00 00 FF 0F 7B [18:23:08]process_action close_receipt done [18:23:08]requested_data is exist [18:23:08]produce_requested_data [18:23:08]requested_item fm.sn is exist - process it [18:23:08]wFMCommunicate request_size=4 [18:23:08]MH_SAM_APDU [18:23:08]CAPDU: 80 11 00 00 [18:23:08]Write to MH i2c: E2 08 00 41 26 80 11 00 00 00 00 00 00 E1 [18:23:08]Write i2c OK [18:23:08]MH_I2C_Read... [18:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:08]Read from MH i2c: E2 [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: E2 17 00 [18:23:08]MH_I2C_Read... [18:23:08]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 36 37 90 00 38 [18:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:23:08]wFMCommunicate OK [18:23:08]requested_item fd.num is exist - process it [18:23:08]SAM_PROTO_GetFieldsCounters [18:23:08]wFMCommunicate request_size=4 [18:23:08]MH_SAM_APDU [18:23:08]CAPDU: 80 13 00 00 [18:23:08]Write to MH i2c: E2 08 00 42 26 80 13 00 00 00 00 00 00 E4 [18:23:08]Write i2c OK [18:23:08]MH_I2C_Read... [18:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:08]Read from MH i2c: E2 [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: E2 62 00 [18:23:08]MH_I2C_Read... [18:23:08]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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DF CA 01 00 0E 04 04 00 1E 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 D6 [18:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DF CA 01 00 0E 04 04 00 1E 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 [18:23:08]wFMCommunicate OK [18:23:08]SAM_PROTO_GetFieldsCounters done [18:23:08]requested_item shift.num is exist - process it [18:23:08]requested_item shift.opened is exist - process it [18:23:08]req_shift_opened [18:23:08]FM_GetShiftState [18:23:08]SAM_PROTO_GetShiftState [18:23:08]wFMCommunicate request_size=4 [18:23:08]MH_SAM_APDU [18:23:08]CAPDU: 80 13 01 00 [18:23:08]Write to MH i2c: E2 08 00 43 26 80 13 01 00 00 00 00 00 E6 [18:23:08]Write i2c OK [18:23:08]MH_I2C_Read... [18:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:08]Read from MH i2c: E2 [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: E2 0E 00 [18:23:08]MH_I2C_Read... [18:23:08]Read from MH i2c: E2 0E 00 43 26 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 25 [18:23:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:23:08]wFMCommunicate OK [18:23:08]SAM_PROTO_GetShiftState done [18:23:08]FM_GetShiftState done [18:23:08]req_shift_opened done [18:23:08]requested_item shift.open_date is exist - process it [18:23:08]req_shift_open_date [18:23:08]req_shift_open_date done [18:23:08]produce_requested_data done [18:23:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117471,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:23:08]process_action_free close_receipt [18:23:08]json_value_free [18:23:08]json_value_free done [18:23:08]process_json_proto returns [18:23:08]Send response to host [18:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117471,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:23:08]free response buf [18:23:08]execute_script done [18:23:08]execute_script returns [18:23:08]free content buf [18:23:08]Sock 7.Close socket [18:23:08]Sock 7.Thread stoped [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:38]accept exits with 10 [18:25:38]New connection [18:25:38]New thread 3067456868 created [18:25:38]Thread 3067600228 joined [18:25:38]Waiting for new connection... [18:25:38] Sock 10.Parse request [18:25:38]Sock 10.Check first char [18:25:38]Sock 10.First char is OK [18:25:38]request: POST /json_proto HTTP/1.0 [18:25:38]Method: POST [18:25:38]URL: /json_proto [18:25:38]Method is POST - this is cgi request [18:25:38]url: /json_proto [18:25:38]query_string will be loaded in cgi processing [18:25:38]execute_cgi json_proto POST (null) [18:25:38]execute_cgi path=json_proto method=POST [18:25:38]POST find Content-Length [18:25:38]Host: 172.17.96.67:8080 [18:25:38]Content-Length: 677 [18:25:38]Content-Type: application/json [18:25:38] [18:25:38]POST finish read [18:25:38]Found Content-Length = 677 [18:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:25:38]execute_script... [18:25: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)245248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:25:38]POST & json_proto [18:25:38]process_json_proto [18:25:38]json parsed OK: [18:25:38]protocol is kg_v1.0 [18:25:38]action value=close_receipt [18:25:38]process_action close_receipt [18:25:38]cmd_close_receipt [18:25:38]MH_GetDate [18:25:38]Write to MH i2c: F0 00 00 44 26 59 [18:25:38]Write i2c OK [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: F0 [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: F0 09 00 [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: F0 09 00 44 26 00 A5 85 1E 67 2B 09 1E 67 CA [18:25:38]GetLastDocTimeStamp 1730053387 [18:25:38]current date 1730053541 [18:25:38]FM_GetShiftState [18:25:38]SAM_PROTO_GetShiftState [18:25:38]wFMCommunicate request_size=4 [18:25:38]MH_SAM_APDU [18:25:38]CAPDU: 80 13 01 00 [18:25:38]Write to MH i2c: E2 08 00 45 26 80 13 01 00 00 00 00 00 E8 [18:25:38]Write i2c OK [18:25:38]MH_I2C_Read... [18:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:38]Read from MH i2c: E2 [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: E2 0E 00 [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: E2 0E 00 45 26 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 27 [18:25:38]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:25:38]wFMCommunicate OK [18:25:38]SAM_PROTO_GetShiftState done [18:25:38]FM_GetShiftState done [18:25:38]opened in 1729987372 [18:25:38]opened+sec_in_day 1730073772 [18:25:38]quantity*price = 30038 [18:25:38]sum+1 = 30039 [18:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 172 27.10.2024 18:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117472 ФПД: 21721131700788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182541&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117472&fm=21721131700788&tin=02508201610067®Number=0000000000091782&sum=30000 [18:25:39]StoreToDocumentArchive [18:25:39]shift 542 fd 117472 [18:25:39]save to /storage/0542/doc_00117472 [18:25:39]save last doc name /storage/0542/doc_00117472 to /storage/kkm_last_doc_name [18:25:39]save OK [18:25:39]Clear old archive folders... [18:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:39]tlvbuf is 01784170 [18:25:39]SAM_PROTO_ClearQueue [18:25:39]wFMCommunicate request_size=4 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 09 00 00 [18:25:39]Write to MH i2c: E2 08 00 52 26 80 09 00 00 00 00 00 00 EA [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 52 26 00 90 00 EC [18:25:39]RAPDU: 90 00 [18:25:39]wFMCommunicate OK [18:25:39]SAM_PROTO_ClearQueue done [18:25:39]KKMCreateOFDPacket [18:25:39]OFDProtocolAddRootSTLVToBuf [18:25:39]FM_MakeSignedData [18:25:39]FM_MakeSignedData [18:25:39]SAM_PROTO_SignData [18:25:39]wFMCommunicate request_size=4 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 0D 01 02 [18:25:39]Write to MH i2c: E2 08 00 53 26 80 0D 01 02 00 00 00 00 F2 [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 53 26 00 90 00 ED [18:25:39]RAPDU: 90 00 [18:25:39]wFMCommunicate OK [18:25:39]wFMCommunicate request_size=255 [18:25:39]MH_SAM_APDU [18:25: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 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 AC 00 00 00 F4 03 04 00 A5 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CA 01 00 35 04 06 00 13 [18:25:39]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 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 AC 00 00 00 F4 03 04 00 A5 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CA 01 00 35 04 06 00 13 00 00 B1 [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 54 26 00 90 00 EE [18:25:39]RAPDU: 90 00 [18:25:39]wFMCommunicate OK [18:25:39]wFMCommunicate request_size=10 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 0D 02 02 05 C1 58 56 D2 34 [18:25:39]Write to MH i2c: E2 0D 00 55 26 80 0D 02 02 05 00 C1 58 56 D2 34 00 00 74 [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 55 26 00 90 00 EF [18:25:39]RAPDU: 90 00 [18:25:39]wFMCommunicate OK [18:25:39]wFMCommunicate request_size=4 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 0D 03 02 [18:25:39]Write to MH i2c: E2 08 00 56 26 80 0D 03 02 00 00 00 00 F7 [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 0B 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 0B 00 56 26 00 55 FC 08 35 C9 22 04 0D 90 00 82 [18:25:39]RAPDU: 55 FC 08 35 C9 22 04 0D 90 00 [18:25:39]wFMCommunicate OK [18:25:39]SAM_PROTO_SignData done [18:25:39]FM_MakeSignedData done [18:25:39]CreateOFDProtocolMessage [18:25:39]wFMCommunicate request_size=4 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 11 00 00 [18:25:39]Write to MH i2c: E2 08 00 57 26 80 11 00 00 00 00 00 00 F7 [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 17 00 [18:25:39]MH_I2C_Read... [18:25:39]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 36 37 90 00 4E [18:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:25:39]wFMCommunicate OK [18:25:39]CreateOFDProtocolMessage done [18:25:39]OFDSenderStorePacket 117472 [18:25:39]StoreOFDPacket docnum=117472 [18:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 56 E6 07 01 51 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 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 AC 00 00 00 F4 03 04 00 A5 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CA 01 00 35 04 06 00 13 C1 58 56 D2 34 55 FC 08 35 C9 22 04 0D [18:25:39]CheckFolder [18:25:39]dirname=/storage/ofd_packets [18:25:39]CheckFolder done [18:25:39]ProducePacketName [18:25:39]name=ofd_packets/00117472 [18:25:39]NVStorageSaveData ofd_packets/00117472 [18:25:39]File name is /storage/ofd_packets/00117472 [18:25:39]Write 301 bytes [18:25:39]NVStorageSaveData done [18:25:39]OFDSenderStorePacket done [18:25:39]KKMCreateOFDPacket done [18:25:39]NVStorageSaveData kkm_last_timestamp [18:25:39]File name is /storage/kkm_last_timestamp [18:25:39]Write 4 bytes [18:25:39]NVStorageSaveData done [18:25:39]ExternCall_PrintAddStr [18:25:39]wPrintStart [18:25:39]Write to MH i2c: 01 00 00 58 26 7E [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: 01 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: 01 07 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: 01 07 00 58 26 00 00 00 00 00 FF 0F 93 [18:25:39]RasterBufferAndPrint [18:25:39]line Счет N : (1)245248 [18:25:39]line ИНН: 02508201610067 [18:25:39]line Контрольно-Кассовый Чек [18:25:39]line ПРОДАЖА [18:25:39]line ТРК (МРК, ГНК) : 11 [18:25:39]line Товар: 2710124130 [18:25:39]line Аи-92-К-2 [18:25:39]line 4.490 * 66.90 [18:25:39]line = 300.38 [18:25:39]line НДС 12% НСП 1% [18:25:39]line > о реализуемом товаре [18:25:39]line ОКРУГЛЕНИЕ: -0.38 [18:25:39]line ИТОГО: 300.00 [18:25:39]line Внесено: 300.00 [18:25:39]line СДАЧА: 0.00 [18:25:39]line НСП 1% : 2.66 [18:25:39]line НДС 12% : 31.90 [18:25:39]line Наличными: 300.00 [18:25:39]line Безнал.: 0.00 [18:25:39]line Место: АЗС № 173 "Партнер Нефть" [18:25:39]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:25:39]line СНО: Общий режим [18:25:39]line Чек 172 27.10.2024 18:25 [18:25:39]line Смена: 542 ФФД: 1.0 [18:25:39]line ЗНМ: 0300000115 [18:25:39]line РНМ: 0000000000091782 [18:25:39]line Версия ККМ: 001 [18:25:39]line ФМ: 0000000000871767 [18:25:39]line ФД: 117472 [18:25:39]line ФПД: 21721131700788 [18:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182541&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117472&fm=21721131700788&tin=02508201610067®Number=0000000000091782&sum=30000 [18:25:40]written 0, free lines is 4095 [18:25:40]OFD Sender: Processing packet 117472 [packets to send 76, broken 75] [18:25:40]ProducePacketName [18:25:40]name=ofd_packets/00117472 [18:25:40]OFD Sender: To server: pG, [18:25:40]CommunicateWithHost lk.salyk.kg:30040 [18:25:40]ConnectInit lk.salyk.kg [18:25:40]Connected sock=9 [18:25: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 36 37 0F 01 00 00 56 E6 07 01 51 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 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 AC 00 00 00 F4 03 04 00 A5 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CA 01 00 35 04 06 00 13 C1 58 56 D2 34 55 FC 08 35 C9 22 04 0D [18:25: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 36 37 4F 00 00 00 6F A1 47 00 30 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CA 01 00 F4 03 04 00 61 31 1E 67 B6 04 01 00 00 9B 96 65 3C EB 19 F5 12 [18:25:40]CommunicateWithHost err = 0 [18:25:40]CheckOFDResponse [18:25:40]1017 (14) - 77093643461234 [18:25:40]1041 (16) - 0000000000871767 [18:25:40]1040 (4) - 117472 [18:25:40]1012 (4) - 27.10.2024 12:26 [18:25:40]1206 (1) - 0 [18:25:40]OFD Sender: Remove packet 117472 [18:25:40]ProducePacketName [18:25:40]name=ofd_packets/00117472 [18:25:40]NVStorageDeleteData [18:25:40]Write to MH i2c: 01 00 00 82 26 A8 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: 01 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: 01 07 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: 01 07 00 82 26 00 00 00 00 00 B9 0C 74 [18:25:40]RasterBufferAndPrint [18:25:40]line [18:25:40]line [18:25:40]line [18:25:40]line [18:25:40]line [18:25:40]written 0, free lines is 3263 [18:25:40]MH_Cut [18:25:40]Write to MH i2c: D1 01 00 89 26 01 81 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: D1 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: D1 01 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: D1 01 00 89 26 00 80 [18:25:40]Write to MH i2c: 01 00 00 8A 26 B0 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:41]OFD Sender: No OFD packet to send [18:25:41]*** Cut start [18:25:41]*** Purtial cut [18:25:41]*** Stage 1: CUTSNS_PIN = 1 [18:25:41]Read from MH i2c: 01 [18:25:41]MH_I2C_Read... [18:25:41]*** Stop cut motor [18:25:41]*** Cut end [18:25:41]Read from MH i2c: 01 07 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: 01 07 00 8A 26 00 00 00 00 00 FF 0F C5 [18:25:41]process_action close_receipt done [18:25:41]requested_data is exist [18:25:41]produce_requested_data [18:25:41]requested_item fm.sn is exist - process it [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 11 00 00 [18:25:41]Write to MH i2c: E2 08 00 8B 26 80 11 00 00 00 00 00 00 2B [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 17 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 17 00 8B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 82 [18:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:25:41]wFMCommunicate OK [18:25:41]requested_item fd.num is exist - process it [18:25:41]SAM_PROTO_GetFieldsCounters [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 13 00 00 [18:25:41]Write to MH i2c: E2 08 00 8C 26 80 13 00 00 00 00 00 00 2E [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 62 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 62 00 8C 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E0 CA 01 00 0E 04 04 00 1E 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 24 [18:25:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E0 CA 01 00 0E 04 04 00 1E 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 [18:25:42]wFMCommunicate OK [18:25:42]SAM_PROTO_GetFieldsCounters done [18:25:42]requested_item shift.num is exist - process it [18:25:42]requested_item shift.opened is exist - process it [18:25:42]req_shift_opened [18:25:42]FM_GetShiftState [18:25:42]SAM_PROTO_GetShiftState [18:25:42]wFMCommunicate request_size=4 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 13 01 00 [18:25:42]Write to MH i2c: E2 08 00 8D 26 80 13 01 00 00 00 00 00 30 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 0E 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 0E 00 8D 26 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6F [18:25:42]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:25:42]wFMCommunicate OK [18:25:42]SAM_PROTO_GetShiftState done [18:25:42]FM_GetShiftState done [18:25:42]req_shift_opened done [18:25:42]requested_item shift.open_date is exist - process it [18:25:42]req_shift_open_date [18:25:42]req_shift_open_date done [18:25:42]produce_requested_data done [18:25:42]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117472,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:25:42]process_action_free close_receipt [18:25:42]json_value_free [18:25:42]json_value_free done [18:25:42]process_json_proto returns [18:25:42]Send response to host [18:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117472,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:25:42]free response buf [18:25:42]execute_script done [18:25:42]execute_script returns [18:25:42]free content buf [18:25:42]Sock 10.Close socket [18:25:42]Sock 10.Thread stoped [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:06]OFD Sender: No OFD packet to send [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:17]accept exits with 7 [18:29:17]New connection [18:29:17]New thread 3067600228 created [18:29:17]Thread 3067456868 joined [18:29:17]Waiting for new connection... [18:29:17] Sock 7.Parse request [18:29:17]Sock 7.Check first char [18:29:17]Sock 7.First char is OK [18:29:17]request: POST /json_proto HTTP/1.0 [18:29:17]Method: POST [18:29:17]URL: /json_proto [18:29:17]Method is POST - this is cgi request [18:29:17]url: /json_proto [18:29:17]query_string will be loaded in cgi processing [18:29:17]execute_cgi json_proto POST (null) [18:29:17]execute_cgi path=json_proto method=POST [18:29:17]POST find Content-Length [18:29:17]Host: 172.17.96.67:8080 [18:29:17]Content-Length: 679 [18:29:17]Content-Type: application/json [18:29:17] [18:29:17]POST finish read [18:29:17]Found Content-Length = 679 [18:29:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [18:29:17]execute_script... [18:29: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)245249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [18:29:17]POST & json_proto [18:29:17]process_json_proto [18:29:17]json parsed OK: [18:29:17]protocol is kg_v1.0 [18:29:17]action value=close_receipt [18:29:17]process_action close_receipt [18:29:17]cmd_close_receipt [18:29:17]MH_GetDate [18:29:17]Write to MH i2c: F0 00 00 8E 26 A3 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: F0 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: F0 09 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: F0 09 00 8E 26 00 80 86 1E 67 2B 09 1E 67 F0 [18:29:17]GetLastDocTimeStamp 1730053541 [18:29:17]current date 1730053760 [18:29:17]FM_GetShiftState [18:29:17]SAM_PROTO_GetShiftState [18:29:17]wFMCommunicate request_size=4 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 13 01 00 [18:29:17]Write to MH i2c: E2 08 00 8F 26 80 13 01 00 00 00 00 00 32 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 0E 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 0E 00 8F 26 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 71 [18:29:17]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:29:17]wFMCommunicate OK [18:29:17]SAM_PROTO_GetShiftState done [18:29:17]FM_GetShiftState done [18:29:17]opened in 1729987372 [18:29:17]opened+sec_in_day 1730073772 [18:29:17]quantity*price = 200025 [18:29:17]sum+1 = 200026 [18:29:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 173 27.10.2024 18:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117473 ФПД: 44526506948137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182920&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117473&fm=44526506948137&tin=02508201610067®Number=0000000000091782&sum=200000 [18:29:18]StoreToDocumentArchive [18:29:18]shift 542 fd 117473 [18:29:18]save to /storage/0542/doc_00117473 [18:29:18]save last doc name /storage/0542/doc_00117473 to /storage/kkm_last_doc_name [18:29:18]save OK [18:29:18]Clear old archive folders... [18:29:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:29:18]tlvbuf is B6F461D0 [18:29:18]SAM_PROTO_ClearQueue [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 09 00 00 [18:29:18]Write to MH i2c: E2 08 00 9C 26 80 09 00 00 00 00 00 00 34 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 9C 26 00 90 00 36 [18:29:18]RAPDU: 90 00 [18:29:18]wFMCommunicate OK [18:29:18]SAM_PROTO_ClearQueue done [18:29:18]KKMCreateOFDPacket [18:29:18]OFDProtocolAddRootSTLVToBuf [18:29:18]FM_MakeSignedData [18:29:18]FM_MakeSignedData [18:29:18]SAM_PROTO_SignData [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 0D 01 02 [18:29:18]Write to MH i2c: E2 08 00 9D 26 80 0D 01 02 00 00 00 00 3C [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 9D 26 00 90 00 37 [18:29:18]RAPDU: 90 00 [18:29:18]wFMCommunicate OK [18:29:18]wFMCommunicate request_size=255 [18:29:18]MH_SAM_APDU [18:29: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 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 AD 00 00 00 F4 03 04 00 80 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E1 CA 01 00 35 04 06 00 28 7F 22 A1 [18:29:18]Write to MH i2c: E2 02 01 9E 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 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 AD 00 00 00 F4 03 04 00 80 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E1 CA 01 00 35 04 06 00 28 7F 22 A1 00 00 20 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 9E 26 00 90 00 38 [18:29:18]RAPDU: 90 00 [18:29:18]wFMCommunicate OK [18:29:18]wFMCommunicate request_size=7 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 0D 02 02 02 36 29 [18:29:18]Write to MH i2c: E2 0A 00 9F 26 80 0D 02 02 02 00 36 29 00 00 A2 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 9F 26 00 90 00 39 [18:29:18]RAPDU: 90 00 [18:29:18]wFMCommunicate OK [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 0D 03 02 [18:29:18]Write to MH i2c: E2 08 00 A0 26 80 0D 03 02 00 00 00 00 41 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0B 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0B 00 A0 26 00 36 41 93 0E C2 19 CB 6F 90 00 6F [18:29:18]RAPDU: 36 41 93 0E C2 19 CB 6F 90 00 [18:29:18]wFMCommunicate OK [18:29:18]SAM_PROTO_SignData done [18:29:18]FM_MakeSignedData done [18:29:18]CreateOFDProtocolMessage [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 11 00 00 [18:29:18]Write to MH i2c: E2 08 00 A1 26 80 11 00 00 00 00 00 00 41 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 17 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 17 00 A1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 98 [18:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:29:18]wFMCommunicate OK [18:29:18]CreateOFDProtocolMessage done [18:29:18]OFDSenderStorePacket 117473 [18:29:18]StoreOFDPacket docnum=117473 [18:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 78 FE 04 01 DF B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 AD 00 00 00 F4 03 04 00 80 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E1 CA 01 00 35 04 06 00 28 7F 22 A1 36 29 36 41 93 0E C2 19 CB 6F [18:29:18]CheckFolder [18:29:18]dirname=/storage/ofd_packets [18:29:18]CheckFolder done [18:29:18]ProducePacketName [18:29:18]name=ofd_packets/00117473 [18:29:18]NVStorageSaveData ofd_packets/00117473 [18:29:18]File name is /storage/ofd_packets/00117473 [18:29:18]Write 298 bytes [18:29:18]NVStorageSaveData done [18:29:18]OFDSenderStorePacket done [18:29:18]KKMCreateOFDPacket done [18:29:18]NVStorageSaveData kkm_last_timestamp [18:29:18]File name is /storage/kkm_last_timestamp [18:29:18]Write 4 bytes [18:29:18]NVStorageSaveData done [18:29:18]ExternCall_PrintAddStr [18:29:18]wPrintStart [18:29:18]Write to MH i2c: 01 00 00 A2 26 C8 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 07 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 07 00 A2 26 00 00 00 00 00 FF 0F DD [18:29:18]RasterBufferAndPrint [18:29:18]line Счет N : (1)245249 [18:29:18]line ИНН: 02508201610067 [18:29:18]line Контрольно-Кассовый Чек [18:29:18]line ПРОДАЖА [18:29:18]line ТРК (МРК, ГНК) : 23 [18:29:18]line Товар: 2710194210 [18:29:18]line ДТ-К-2 [18:29:18]line 26.250 * 76.20 [18:29:18]line = 2000.25 [18:29:18]line НДС 12% НСП 1% [18:29:18]line > о реализуемом товаре [18:29:18]line ОКРУГЛЕНИЕ: -0.25 [18:29:18]line ИТОГО: 2000.00 [18:29:18]line Внесено: 2000.00 [18:29:18]line СДАЧА: 0.00 [18:29:18]line НСП 1% : 17.70 [18:29:18]line НДС 12% : 212.42 [18:29:18]line Наличными: 2000.00 [18:29:18]line Безнал.: 0.00 [18:29:18]line Место: АЗС № 173 "Партнер Нефть" [18:29:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:29:18]line СНО: Общий режим [18:29:18]line Чек 173 27.10.2024 18:29 [18:29:18]line Смена: 542 ФФД: 1.0 [18:29:18]line ЗНМ: 0300000115 [18:29:18]line РНМ: 0000000000091782 [18:29:18]line Версия ККМ: 001 [18:29:18]line ФМ: 0000000000871767 [18:29:18]line ФД: 117473 [18:29:18]line ФПД: 44526506948137 [18:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182920&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117473&fm=44526506948137&tin=02508201610067®Number=0000000000091782&sum=200000 [18:29:19]OFD Sender: Processing packet 117473 [packets to send 76, broken 75] [18:29:19]ProducePacketName [18:29:19]name=ofd_packets/00117473 [18:29:19]OFD Sender: To server: pG, [18:29:19]CommunicateWithHost lk.salyk.kg:30040 [18:29:19]ConnectInit lk.salyk.kg [18:29:19]written 0, free lines is 4095 [18:29:19]Connected sock=10 [18:29: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 36 37 0C 01 00 00 78 FE 04 01 DF B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 AD 00 00 00 F4 03 04 00 80 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E1 CA 01 00 35 04 06 00 28 7F 22 A1 36 29 36 41 93 0E C2 19 CB 6F [18:29: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 36 37 4F 00 00 00 1D 0D 47 00 ED 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 36 37 10 04 04 00 E1 CA 01 00 F4 03 04 00 3C 32 1E 67 B6 04 01 00 00 75 D4 80 FC 38 0D 5B ED [18:29:19]CommunicateWithHost err = 0 [18:29:19]CheckOFDResponse [18:29:19]1017 (14) - 77093643461234 [18:29:19]1041 (16) - 0000000000871767 [18:29:19]1040 (4) - 117473 [18:29:19]1012 (4) - 27.10.2024 12:29 [18:29:19]1206 (1) - 0 [18:29:19]OFD Sender: Remove packet 117473 [18:29:19]ProducePacketName [18:29:19]name=ofd_packets/00117473 [18:29:19]NVStorageDeleteData [18:29:19]Write to MH i2c: 01 00 00 CC 26 F2 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: 01 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: 01 07 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: 01 07 00 CC 26 00 00 00 00 00 B9 0C BE [18:29:19]RasterBufferAndPrint [18:29:19]line [18:29:19]line [18:29:19]line [18:29:19]line [18:29:19]line [18:29:19]written 0, free lines is 3262 [18:29:19]MH_Cut [18:29:19]Write to MH i2c: D1 01 00 D3 26 01 CB [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: D1 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: D1 01 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: D1 01 00 D3 26 00 CA [18:29:19]Write to MH i2c: 01 00 00 D4 26 FA [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:20]OFD Sender: No OFD packet to send [18:29:20]*** Cut start [18:29:20]*** Purtial cut [18:29:20]*** Stage 1: CUTSNS_PIN = 1 [18:29:20]Read from MH i2c: 01 [18:29:20]MH_I2C_Read... [18:29:20]*** Stop cut motor [18:29:20]*** Cut end [18:29:20]Read from MH i2c: 01 07 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: 01 07 00 D4 26 00 00 00 00 00 FF 0F 0F [18:29:20]process_action close_receipt done [18:29:20]requested_data is exist [18:29:20]produce_requested_data [18:29:20]requested_item fm.sn is exist - process it [18:29:20]wFMCommunicate request_size=4 [18:29:20]MH_SAM_APDU [18:29:20]CAPDU: 80 11 00 00 [18:29:20]Write to MH i2c: E2 08 00 D5 26 80 11 00 00 00 00 00 00 75 [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:20]Read from MH i2c: E2 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 17 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 17 00 D5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CC [18:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:29:20]wFMCommunicate OK [18:29:20]requested_item fd.num is exist - process it [18:29:20]SAM_PROTO_GetFieldsCounters [18:29:20]wFMCommunicate request_size=4 [18:29:20]MH_SAM_APDU [18:29:20]CAPDU: 80 13 00 00 [18:29:20]Write to MH i2c: E2 08 00 D6 26 80 13 00 00 00 00 00 00 78 [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:21]Read from MH i2c: E2 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 62 00 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 62 00 D6 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E1 CA 01 00 0E 04 04 00 1E 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 72 [18:29:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E1 CA 01 00 0E 04 04 00 1E 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 [18:29:21]wFMCommunicate OK [18:29:21]SAM_PROTO_GetFieldsCounters done [18:29:21]requested_item shift.num is exist - process it [18:29:21]requested_item shift.opened is exist - process it [18:29:21]req_shift_opened [18:29:21]FM_GetShiftState [18:29:21]SAM_PROTO_GetShiftState [18:29:21]wFMCommunicate request_size=4 [18:29:21]MH_SAM_APDU [18:29:21]CAPDU: 80 13 01 00 [18:29:21]Write to MH i2c: E2 08 00 D7 26 80 13 01 00 00 00 00 00 7A [18:29:21]Write i2c OK [18:29:21]MH_I2C_Read... [18:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:21]Read from MH i2c: E2 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 0E 00 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 0E 00 D7 26 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B9 [18:29:21]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:29:21]wFMCommunicate OK [18:29:21]SAM_PROTO_GetShiftState done [18:29:21]FM_GetShiftState done [18:29:21]req_shift_opened done [18:29:21]requested_item shift.open_date is exist - process it [18:29:21]req_shift_open_date [18:29:21]req_shift_open_date done [18:29:21]produce_requested_data done [18:29:21]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117473,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:29:21]process_action_free close_receipt [18:29:21]json_value_free [18:29:21]json_value_free done [18:29:21]process_json_proto returns [18:29:21]Send response to host [18:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117473,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:29:21]free response buf [18:29:21]execute_script done [18:29:21]execute_script returns [18:29:21]free content buf [18:29:21]Sock 7.Close socket [18:29:21]Sock 7.Thread stoped [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [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:08]accept exits with 9 [18:31:08]New connection [18:31:08]New thread 3067456868 created [18:31:08]Thread 3067600228 joined [18:31:08]Waiting for new connection... [18:31:08] Sock 9.Parse request [18:31:08]Sock 9.Check first char [18:31:08]Sock 9.First char is OK [18:31:08]request: POST /json_proto HTTP/1.0 [18:31:08]Method: POST [18:31:08]URL: /json_proto [18:31:08]Method is POST - this is cgi request [18:31:08]url: /json_proto [18:31:08]query_string will be loaded in cgi processing [18:31:08]execute_cgi json_proto POST (null) [18:31:08]execute_cgi path=json_proto method=POST [18:31:08]POST find Content-Length [18:31:08]Host: 172.17.96.67:8080 [18:31:08]Content-Length: 682 [18:31:08]Content-Type: application/json [18:31:08] [18:31:08]POST finish read [18:31:08]Found Content-Length = 682 [18:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 15.250, "sum" : 1020.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:08]execute_script... [18:31: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)245250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 15.250, "sum" : 1020.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:08]POST & json_proto [18:31:08]process_json_proto [18:31:08]json parsed OK: [18:31:08]protocol is kg_v1.0 [18:31:08]action value=close_receipt [18:31:08]process_action close_receipt [18:31:08]cmd_close_receipt [18:31:08]MH_GetDate [18:31:08]Write to MH i2c: F0 00 00 D8 26 ED [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: F0 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: F0 09 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: F0 09 00 D8 26 00 EF 86 1E 67 2B 09 1E 67 A9 [18:31:08]GetLastDocTimeStamp 1730053760 [18:31:08]current date 1730053871 [18:31:08]FM_GetShiftState [18:31:08]SAM_PROTO_GetShiftState [18:31:08]wFMCommunicate request_size=4 [18:31:08]MH_SAM_APDU [18:31:08]CAPDU: 80 13 01 00 [18:31:08]Write to MH i2c: E2 08 00 D9 26 80 13 01 00 00 00 00 00 7C [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:08]Read from MH i2c: E2 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 0E 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 0E 00 D9 26 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 BB [18:31:08]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:31:08]wFMCommunicate OK [18:31:08]SAM_PROTO_GetShiftState done [18:31:08]FM_GetShiftState done [18:31:08]opened in 1729987372 [18:31:08]opened+sec_in_day 1730073772 [18:31:08]quantity*price = 102022 [18:31:08]sum+1 = 102024 [18:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1020.00 Внесено: 1020.00 СДАЧА: 0.00 НСП 1% : 9.03 НДС 12% : 108.34 Наличными: 1020.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 174 27.10.2024 18:31 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117474 ФПД: 239160481911065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183111&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117474&fm=239160481911065&tin=02508201610067®Number=0000000000091782&sum=102000 [18:31:09]StoreToDocumentArchive [18:31:09]shift 542 fd 117474 [18:31:09]save to /storage/0542/doc_00117474 [18:31:09]save last doc name /storage/0542/doc_00117474 to /storage/kkm_last_doc_name [18:31:09]save OK [18:31:09]Clear old archive folders... [18:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:09]tlvbuf is B6F5FA30 [18:31:09]SAM_PROTO_ClearQueue [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 09 00 00 [18:31:09]Write to MH i2c: E2 08 00 E6 26 80 09 00 00 00 00 00 00 7E [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 E6 26 00 90 00 80 [18:31:09]RAPDU: 90 00 [18:31:09]wFMCommunicate OK [18:31:09]SAM_PROTO_ClearQueue done [18:31:09]KKMCreateOFDPacket [18:31:09]OFDProtocolAddRootSTLVToBuf [18:31:09]FM_MakeSignedData [18:31:09]FM_MakeSignedData [18:31:09]SAM_PROTO_SignData [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 0D 01 02 [18:31:09]Write to MH i2c: E2 08 00 E7 26 80 0D 01 02 00 00 00 00 86 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 E7 26 00 90 00 81 [18:31:09]RAPDU: 90 00 [18:31:09]wFMCommunicate OK [18:31:09]wFMCommunicate request_size=255 [18:31:09]MH_SAM_APDU [18:31: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 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 EF 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E2 CA 01 00 35 04 06 00 D9 [18:31:09]Write to MH i2c: E2 02 01 E8 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 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 EF 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E2 CA 01 00 35 04 06 00 D9 00 00 04 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:10]Read from MH i2c: E2 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 03 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 03 00 E8 26 00 90 00 82 [18:31:10]RAPDU: 90 00 [18:31:10]wFMCommunicate OK [18:31:10]wFMCommunicate request_size=10 [18:31:10]MH_SAM_APDU [18:31:10]CAPDU: 80 0D 02 02 05 83 E3 91 91 19 [18:31:10]Write to MH i2c: E2 0D 00 E9 26 80 0D 02 02 05 00 83 E3 91 91 19 00 00 34 [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:10]Read from MH i2c: E2 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 03 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 03 00 E9 26 00 90 00 83 [18:31:10]RAPDU: 90 00 [18:31:10]wFMCommunicate OK [18:31:10]wFMCommunicate request_size=4 [18:31:10]MH_SAM_APDU [18:31:10]CAPDU: 80 0D 03 02 [18:31:10]Write to MH i2c: E2 08 00 EA 26 80 0D 03 02 00 00 00 00 8B [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:10]Read from MH i2c: E2 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 0B 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 0B 00 EA 26 00 CD 0B 00 94 09 FD 46 16 90 00 5A [18:31:10]RAPDU: CD 0B 00 94 09 FD 46 16 90 00 [18:31:10]wFMCommunicate OK [18:31:10]SAM_PROTO_SignData done [18:31:10]FM_MakeSignedData done [18:31:10]CreateOFDProtocolMessage [18:31:10]wFMCommunicate request_size=4 [18:31:10]MH_SAM_APDU [18:31:10]CAPDU: 80 11 00 00 [18:31:10]Write to MH i2c: E2 08 00 EB 26 80 11 00 00 00 00 00 00 8B [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:10]Read from MH i2c: E2 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 17 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 17 00 EB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E2 [18:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:31:10]wFMCommunicate OK [18:31:10]CreateOFDProtocolMessage done [18:31:10]OFDSenderStorePacket 117474 [18:31:10]StoreOFDPacket docnum=117474 [18:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7E 3B 07 01 5D 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 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 EF 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E2 CA 01 00 35 04 06 00 D9 83 E3 91 91 19 CD 0B 00 94 09 FD 46 16 [18:31:10]CheckFolder [18:31:10]dirname=/storage/ofd_packets [18:31:10]CheckFolder done [18:31:10]ProducePacketName [18:31:10]name=ofd_packets/00117474 [18:31:10]NVStorageSaveData ofd_packets/00117474 [18:31:10]File name is /storage/ofd_packets/00117474 [18:31:10]Write 301 bytes [18:31:10]NVStorageSaveData done [18:31:10]OFDSenderStorePacket done [18:31:10]KKMCreateOFDPacket done [18:31:10]NVStorageSaveData kkm_last_timestamp [18:31:10]File name is /storage/kkm_last_timestamp [18:31:10]Write 4 bytes [18:31:10]NVStorageSaveData done [18:31:10]ExternCall_PrintAddStr [18:31:10]wPrintStart [18:31:10]Write to MH i2c: 01 00 00 EC 26 12 [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 07 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 07 00 EC 26 00 00 00 00 00 FF 0F 27 [18:31:10]RasterBufferAndPrint [18:31:10]line Счет N : (1)245250 [18:31:10]line ИНН: 02508201610067 [18:31:10]line Контрольно-Кассовый Чек [18:31:10]line ПРОДАЖА [18:31:10]line ТРК (МРК, ГНК) : 11 [18:31:10]line Товар: 2710124130 [18:31:10]line Аи-92-К-2 [18:31:10]line 15.250 * 66.90 [18:31:10]line = 1020.23 [18:31:10]line НДС 12% НСП 1% [18:31:10]line > о реализуемом товаре [18:31:10]line ОКРУГЛЕНИЕ: -0.23 [18:31:10]line ИТОГО: 1020.00 [18:31:10]line Внесено: 1020.00 [18:31:10]line СДАЧА: 0.00 [18:31:10]line НСП 1% : 9.03 [18:31:10]line НДС 12% : 108.34 [18:31:10]line Наличными: 1020.00 [18:31:10]line Безнал.: 0.00 [18:31:10]line Место: АЗС № 173 "Партнер Нефть" [18:31:10]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:31:10]line СНО: Общий режим [18:31:10]line Чек 174 27.10.2024 18:31 [18:31:10]line Смена: 542 ФФД: 1.0 [18:31:10]line ЗНМ: 0300000115 [18:31:10]line РНМ: 0000000000091782 [18:31:10]line Версия ККМ: 001 [18:31:10]line ФМ: 0000000000871767 [18:31:10]line ФД: 117474 [18:31:10]line ФПД: 239160481911065 [18:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183111&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117474&fm=239160481911065&tin=02508201610067®Number=0000000000091782&sum=102000 [18:31:10]written 0, free lines is 4095 [18:31:10]OFD Sender: Processing packet 117474 [packets to send 76, broken 75] [18:31:10]ProducePacketName [18:31:10]name=ofd_packets/00117474 [18:31:10]OFD Sender: To server: pG, [18:31:10]CommunicateWithHost lk.salyk.kg:30040 [18:31:10]ConnectInit lk.salyk.kg [18:31:10]Connected sock=11 [18:31: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 36 37 0F 01 00 00 7E 3B 07 01 5D 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 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 EF 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E2 CA 01 00 35 04 06 00 D9 83 E3 91 91 19 CD 0B 00 94 09 FD 46 16 [18:31: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 36 37 4F 00 00 00 2C E4 47 00 4A 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E2 CA 01 00 F4 03 04 00 AB 32 1E 67 B6 04 01 00 00 B2 6C 09 D1 86 2F 68 2A [18:31:10]CommunicateWithHost err = 0 [18:31:10]CheckOFDResponse [18:31:10]1017 (14) - 77093643461234 [18:31:10]1041 (16) - 0000000000871767 [18:31:10]1040 (4) - 117474 [18:31:10]1012 (4) - 27.10.2024 12:31 [18:31:10]1206 (1) - 0 [18:31:10]OFD Sender: Remove packet 117474 [18:31:10]ProducePacketName [18:31:10]name=ofd_packets/00117474 [18:31:10]NVStorageDeleteData [18:31:10]Write to MH i2c: 01 00 00 16 27 3D [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 07 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 07 00 16 27 00 00 00 00 00 C5 0C 15 [18:31:10]RasterBufferAndPrint [18:31:10]line [18:31:10]line [18:31:10]line [18:31:10]line [18:31:10]line [18:31:10]written 0, free lines is 3275 [18:31:10]MH_Cut [18:31:10]Write to MH i2c: D1 01 00 1D 27 01 16 [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: D1 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: D1 01 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: D1 01 00 1D 27 00 15 [18:31:10]Write to MH i2c: 01 00 00 1E 27 45 [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:11]OFD Sender: No OFD packet to send [18:31:11]*** Cut start [18:31:11]*** Purtial cut [18:31:11]*** Stage 1: CUTSNS_PIN = 1 [18:31:11]Read from MH i2c: 01 [18:31:11]MH_I2C_Read... [18:31:11]*** Stop cut motor [18:31:11]*** Cut end [18:31:11]Read from MH i2c: 01 07 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: 01 07 00 1E 27 00 00 00 00 00 FF 0F 5A [18:31:11]process_action close_receipt done [18:31:11]requested_data is exist [18:31:11]produce_requested_data [18:31:11]requested_item fm.sn is exist - process it [18:31:11]wFMCommunicate request_size=4 [18:31:11]MH_SAM_APDU [18:31:11]CAPDU: 80 11 00 00 [18:31:11]Write to MH i2c: E2 08 00 1F 27 80 11 00 00 00 00 00 00 C0 [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:11]Read from MH i2c: E2 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 17 00 [18:31:11]MH_I2C_Read... [18:31:11]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 36 37 90 00 17 [18:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:31:11]wFMCommunicate OK [18:31:11]requested_item fd.num is exist - process it [18:31:11]SAM_PROTO_GetFieldsCounters [18:31:11]wFMCommunicate request_size=4 [18:31:11]MH_SAM_APDU [18:31:11]CAPDU: 80 13 00 00 [18:31:11]Write to MH i2c: E2 08 00 20 27 80 13 00 00 00 00 00 00 C3 [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 62 00 [18:31:12]MH_I2C_Read... [18:31:12]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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E2 CA 01 00 0E 04 04 00 1E 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 C1 [18:31: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E2 CA 01 00 0E 04 04 00 1E 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 [18:31:12]wFMCommunicate OK [18:31:12]SAM_PROTO_GetFieldsCounters done [18:31:12]requested_item shift.num is exist - process it [18:31:12]requested_item shift.opened is exist - process it [18:31:12]req_shift_opened [18:31:12]FM_GetShiftState [18:31:12]SAM_PROTO_GetShiftState [18:31:12]wFMCommunicate request_size=4 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 13 01 00 [18:31:12]Write to MH i2c: E2 08 00 21 27 80 13 01 00 00 00 00 00 C5 [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 0E 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 0E 00 21 27 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 04 [18:31:12]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:31:12]wFMCommunicate OK [18:31:12]SAM_PROTO_GetShiftState done [18:31:12]FM_GetShiftState done [18:31:12]req_shift_opened done [18:31:12]requested_item shift.open_date is exist - process it [18:31:12]req_shift_open_date [18:31:12]req_shift_open_date done [18:31:12]produce_requested_data done [18:31:12]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117474,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:31:12]process_action_free close_receipt [18:31:12]json_value_free [18:31:12]json_value_free done [18:31:12]process_json_proto returns [18:31:12]Send response to host [18:31:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117474,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:31:12]free response buf [18:31:12]execute_script done [18:31:12]execute_script returns [18:31:12]free content buf [18:31:12]Sock 9.Close socket [18:31:12]Sock 9.Thread stoped [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36: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:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [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:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:42]accept exits with 7 [18:42:42]New connection [18:42:42]New thread 3067600228 created [18:42:42]Thread 3067456868 joined [18:42:42]Waiting for new connection... [18:42:42] Sock 7.Parse request [18:42:42]Sock 7.Check first char [18:42:42]Sock 7.First char is OK [18:42:42]request: POST /json_proto HTTP/1.0 [18:42:42]Method: POST [18:42:42]URL: /json_proto [18:42:42]Method is POST - this is cgi request [18:42:42]url: /json_proto [18:42:42]query_string will be loaded in cgi processing [18:42:42]execute_cgi json_proto POST (null) [18:42:42]execute_cgi path=json_proto method=POST [18:42:42]POST find Content-Length [18:42:42]Host: 172.17.96.67:8080 [18:42:42]Content-Length: 677 [18:42:42]Content-Type: application/json [18:42:42] [18:42:42]POST finish read [18:42:42]Found Content-Length = 677 [18:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:42:42]execute_script... [18:42: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)245251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:42:42]POST & json_proto [18:42:42]process_json_proto [18:42:42]json parsed OK: [18:42:42]protocol is kg_v1.0 [18:42:42]action value=close_receipt [18:42:42]process_action close_receipt [18:42:42]cmd_close_receipt [18:42:42]MH_GetDate [18:42:42]Write to MH i2c: F0 00 00 22 27 38 [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: F0 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: F0 09 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: F0 09 00 22 27 00 A4 89 1E 67 2B 09 1E 67 AC [18:42:42]GetLastDocTimeStamp 1730053871 [18:42:42]current date 1730054564 [18:42:42]FM_GetShiftState [18:42:42]SAM_PROTO_GetShiftState [18:42:42]wFMCommunicate request_size=4 [18:42:42]MH_SAM_APDU [18:42:42]CAPDU: 80 13 01 00 [18:42:42]Write to MH i2c: E2 08 00 23 27 80 13 01 00 00 00 00 00 C7 [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:42]Read from MH i2c: E2 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 0E 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 0E 00 23 27 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 06 [18:42:42]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:42:42]wFMCommunicate OK [18:42:42]SAM_PROTO_GetShiftState done [18:42:42]FM_GetShiftState done [18:42:42]opened in 1729987372 [18:42:42]opened+sec_in_day 1730073772 [18:42:42]quantity*price = 50041 [18:42:42]sum+1 = 50042 [18:42: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 175 27.10.2024 18:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117475 ФПД: 52122461892261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184244&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117475&fm=52122461892261&tin=02508201610067®Number=0000000000091782&sum=50000 [18:42:43]StoreToDocumentArchive [18:42:43]shift 542 fd 117475 [18:42:43]save to /storage/0542/doc_00117475 [18:42:43]save last doc name /storage/0542/doc_00117475 to /storage/kkm_last_doc_name [18:42:43]save OK [18:42:43]Clear old archive folders... [18:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:43]tlvbuf is 016FA470 [18:42:43]SAM_PROTO_ClearQueue [18:42:43]wFMCommunicate request_size=4 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 09 00 00 [18:42:43]Write to MH i2c: E2 08 00 30 27 80 09 00 00 00 00 00 00 C9 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 30 27 00 90 00 CB [18:42:43]RAPDU: 90 00 [18:42:43]wFMCommunicate OK [18:42:43]SAM_PROTO_ClearQueue done [18:42:43]KKMCreateOFDPacket [18:42:43]OFDProtocolAddRootSTLVToBuf [18:42:43]FM_MakeSignedData [18:42:43]FM_MakeSignedData [18:42:43]SAM_PROTO_SignData [18:42:43]wFMCommunicate request_size=4 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 0D 01 02 [18:42:43]Write to MH i2c: E2 08 00 31 27 80 0D 01 02 00 00 00 00 D1 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 31 27 00 90 00 CC [18:42:43]RAPDU: 90 00 [18:42:43]wFMCommunicate OK [18:42:43]wFMCommunicate request_size=255 [18:42:43]MH_SAM_APDU [18:42: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 AF 00 00 00 F4 03 04 00 A4 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E3 CA 01 00 35 04 06 00 2F [18:42:43]Write to MH i2c: E2 02 01 32 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 A4 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E3 CA 01 00 35 04 06 00 2F 00 00 C1 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 32 27 00 90 00 CD [18:42:43]RAPDU: 90 00 [18:42:43]wFMCommunicate OK [18:42:43]wFMCommunicate request_size=10 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 0D 02 02 05 67 B4 D3 6E A5 [18:42:43]Write to MH i2c: E2 0D 00 33 27 80 0D 02 02 05 00 67 B4 D3 6E A5 00 00 DF [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 33 27 00 90 00 CE [18:42:43]RAPDU: 90 00 [18:42:43]wFMCommunicate OK [18:42:43]wFMCommunicate request_size=4 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 0D 03 02 [18:42:43]Write to MH i2c: E2 08 00 34 27 80 0D 03 02 00 00 00 00 D6 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 0B 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 0B 00 34 27 00 EF 97 6E BC E6 E6 45 D5 90 00 6D [18:42:43]RAPDU: EF 97 6E BC E6 E6 45 D5 90 00 [18:42:43]wFMCommunicate OK [18:42:43]SAM_PROTO_SignData done [18:42:43]FM_MakeSignedData done [18:42:43]CreateOFDProtocolMessage [18:42:43]wFMCommunicate request_size=4 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 11 00 00 [18:42:43]Write to MH i2c: E2 08 00 35 27 80 11 00 00 00 00 00 00 D6 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 17 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 17 00 35 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2D [18:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:42:43]wFMCommunicate OK [18:42:43]CreateOFDProtocolMessage done [18:42:43]OFDSenderStorePacket 117475 [18:42:43]StoreOFDPacket docnum=117475 [18:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E7 DF 07 01 A6 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 AF 00 00 00 F4 03 04 00 A4 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E3 CA 01 00 35 04 06 00 2F 67 B4 D3 6E A5 EF 97 6E BC E6 E6 45 D5 [18:42:43]CheckFolder [18:42:43]dirname=/storage/ofd_packets [18:42:43]CheckFolder done [18:42:43]ProducePacketName [18:42:43]name=ofd_packets/00117475 [18:42:43]NVStorageSaveData ofd_packets/00117475 [18:42:43]File name is /storage/ofd_packets/00117475 [18:42:43]Write 301 bytes [18:42:43]NVStorageSaveData done [18:42:43]OFDSenderStorePacket done [18:42:43]KKMCreateOFDPacket done [18:42:43]NVStorageSaveData kkm_last_timestamp [18:42:43]File name is /storage/kkm_last_timestamp [18:42:43]Write 4 bytes [18:42:43]NVStorageSaveData done [18:42:43]ExternCall_PrintAddStr [18:42:43]wPrintStart [18:42:43]Write to MH i2c: 01 00 00 36 27 5D [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 07 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 07 00 36 27 00 00 00 00 00 FF 0F 72 [18:42:43]RasterBufferAndPrint [18:42:43]line Счет N : (1)245251 [18:42:43]line ИНН: 02508201610067 [18:42:43]line Контрольно-Кассовый Чек [18:42:43]line ПРОДАЖА [18:42:43]line ТРК (МРК, ГНК) : 21 [18:42:43]line Товар: 2710124130 [18:42:43]line Аи-92-К-2 [18:42:43]line 7.480 * 66.90 [18:42:43]line = 500.41 [18:42:43]line НДС 12% НСП 1% [18:42:43]line > о реализуемом товаре [18:42:43]line ОКРУГЛЕНИЕ: -0.41 [18:42:43]line ИТОГО: 500.00 [18:42:43]line Внесено: 500.00 [18:42:43]line СДАЧА: 0.00 [18:42:43]line НСП 1% : 4.43 [18:42:43]line НДС 12% : 53.14 [18:42:43]line Наличными: 500.00 [18:42:43]line Безнал.: 0.00 [18:42:43]line Место: АЗС № 173 "Партнер Нефть" [18:42:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:42:43]line СНО: Общий режим [18:42:43]line Чек 175 27.10.2024 18:42 [18:42:43]line Смена: 542 ФФД: 1.0 [18:42:43]line ЗНМ: 0300000115 [18:42:43]line РНМ: 0000000000091782 [18:42:43]line Версия ККМ: 001 [18:42:43]line ФМ: 0000000000871767 [18:42:43]line ФД: 117475 [18:42:43]line ФПД: 52122461892261 [18:42:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184244&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117475&fm=52122461892261&tin=02508201610067®Number=0000000000091782&sum=50000 [18:42:44]written 0, free lines is 4095 [18:42:44]OFD Sender: Processing packet 117475 [packets to send 76, broken 75] [18:42:44]ProducePacketName [18:42:44]name=ofd_packets/00117475 [18:42:44]OFD Sender: To server: pG, [18:42:44]CommunicateWithHost lk.salyk.kg:30040 [18:42:44]ConnectInit lk.salyk.kg [18:42:44]Connected sock=10 [18:42:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E7 DF 07 01 A6 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 AF 00 00 00 F4 03 04 00 A4 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E3 CA 01 00 35 04 06 00 2F 67 B4 D3 6E A5 EF 97 6E BC E6 E6 45 D5 [18:42: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 36 37 4F 00 00 00 A3 C8 47 00 60 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 36 37 10 04 04 00 E3 CA 01 00 F4 03 04 00 61 35 1E 67 B6 04 01 00 00 AA 7E CA C1 35 44 24 D6 [18:42:44]CommunicateWithHost err = 0 [18:42:44]CheckOFDResponse [18:42:44]1017 (14) - 77093643461234 [18:42:44]1041 (16) - 0000000000871767 [18:42:44]1040 (4) - 117475 [18:42:44]1012 (4) - 27.10.2024 12:43 [18:42:44]1206 (1) - 0 [18:42:44]OFD Sender: Remove packet 117475 [18:42:44]ProducePacketName [18:42:44]name=ofd_packets/00117475 [18:42:44]NVStorageDeleteData [18:42:44]Write to MH i2c: 01 00 00 60 27 87 [18:42:44]Write i2c OK [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: 01 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: 01 07 00 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: 01 07 00 60 27 00 00 00 00 00 B9 0C 53 [18:42:44]RasterBufferAndPrint [18:42:44]line [18:42:44]line [18:42:44]line [18:42:44]line [18:42:44]line [18:42:44]written 0, free lines is 3265 [18:42:44]MH_Cut [18:42:44]Write to MH i2c: D1 01 00 67 27 01 60 [18:42:44]Write i2c OK [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: D1 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: D1 01 00 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: D1 01 00 67 27 00 5F [18:42:44]Write to MH i2c: 01 00 00 68 27 8F [18:42:44]Write i2c OK [18:42:44]MH_I2C_Read... [18:42:44]OFD Sender: No OFD packet to send [18:42:45]*** Cut start [18:42:45]*** Purtial cut [18:42:45]*** Stage 1: CUTSNS_PIN = 1 [18:42:45]Read from MH i2c: 01 [18:42:45]MH_I2C_Read... [18:42:45]*** Stop cut motor [18:42:45]*** Cut end [18:42:45]Read from MH i2c: 01 07 00 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: 01 07 00 68 27 00 00 00 00 00 FF 0F A4 [18:42:45]process_action close_receipt done [18:42:45]requested_data is exist [18:42:45]produce_requested_data [18:42:45]requested_item fm.sn is exist - process it [18:42:45]wFMCommunicate request_size=4 [18:42:45]MH_SAM_APDU [18:42:45]CAPDU: 80 11 00 00 [18:42:45]Write to MH i2c: E2 08 00 69 27 80 11 00 00 00 00 00 00 0A [18:42:45]Write i2c OK [18:42:45]MH_I2C_Read... [18:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:45]Read from MH i2c: E2 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: E2 17 00 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: E2 17 00 69 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 61 [18:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:42:45]wFMCommunicate OK [18:42:45]requested_item fd.num is exist - process it [18:42:45]SAM_PROTO_GetFieldsCounters [18:42:45]wFMCommunicate request_size=4 [18:42:45]MH_SAM_APDU [18:42:45]CAPDU: 80 13 00 00 [18:42:45]Write to MH i2c: E2 08 00 6A 27 80 13 00 00 00 00 00 00 0D [18:42:45]Write i2c OK [18:42:45]MH_I2C_Read... [18:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:45]Read from MH i2c: E2 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: E2 62 00 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: E2 62 00 6A 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E3 CA 01 00 0E 04 04 00 1E 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 0F [18:42:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E3 CA 01 00 0E 04 04 00 1E 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 [18:42:45]wFMCommunicate OK [18:42:45]SAM_PROTO_GetFieldsCounters done [18:42:45]requested_item shift.num is exist - process it [18:42:45]requested_item shift.opened is exist - process it [18:42:45]req_shift_opened [18:42:45]FM_GetShiftState [18:42:45]SAM_PROTO_GetShiftState [18:42:45]wFMCommunicate request_size=4 [18:42:45]MH_SAM_APDU [18:42:45]CAPDU: 80 13 01 00 [18:42:45]Write to MH i2c: E2 08 00 6B 27 80 13 01 00 00 00 00 00 0F [18:42:45]Write i2c OK [18:42:45]MH_I2C_Read... [18:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:45]Read from MH i2c: E2 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: E2 0E 00 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: E2 0E 00 6B 27 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 4E [18:42:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:42:45]wFMCommunicate OK [18:42:45]SAM_PROTO_GetShiftState done [18:42:45]FM_GetShiftState done [18:42:45]req_shift_opened done [18:42:45]requested_item shift.open_date is exist - process it [18:42:45]req_shift_open_date [18:42:45]req_shift_open_date done [18:42:45]produce_requested_data done [18:42:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117475,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:42:45]process_action_free close_receipt [18:42:45]json_value_free [18:42:45]json_value_free done [18:42:45]process_json_proto returns [18:42:45]Send response to host [18:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117475,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:42:45]free response buf [18:42:45]execute_script done [18:42:45]execute_script returns [18:42:45]free content buf [18:42:45]Sock 7.Close socket [18:42:45]Sock 7.Thread stoped [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:01]accept exits with 9 [18:44:01]New connection [18:44:01]New thread 3067456868 created [18:44:01]Thread 3067600228 joined [18:44:01]Waiting for new connection... [18:44:01] Sock 9.Parse request [18:44:01]Sock 9.Check first char [18:44:01]Sock 9.First char is OK [18:44:01]request: POST /json_proto HTTP/1.0 [18:44:01]Method: POST [18:44:01]URL: /json_proto [18:44:01]Method is POST - this is cgi request [18:44:01]url: /json_proto [18:44:01]query_string will be loaded in cgi processing [18:44:01]execute_cgi json_proto POST (null) [18:44:01]execute_cgi path=json_proto method=POST [18:44:01]POST find Content-Length [18:44:01]Host: 172.17.96.67:8080 [18:44:01]Content-Length: 682 [18:44:01]Content-Type: application/json [18:44:01] [18:44:01]POST finish read [18:44:01]Found Content-Length = 682 [18:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:44:01]execute_script... [18:44: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)245252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:44:01]POST & json_proto [18:44:01]process_json_proto [18:44:01]json parsed OK: [18:44:01]protocol is kg_v1.0 [18:44:01]action value=close_receipt [18:44:01]process_action close_receipt [18:44:01]cmd_close_receipt [18:44:01]MH_GetDate [18:44:01]Write to MH i2c: F0 00 00 6C 27 82 [18:44:01]Write i2c OK [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: F0 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: F0 09 00 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: F0 09 00 6C 27 00 F4 89 1E 67 2B 09 1E 67 46 [18:44:01]GetLastDocTimeStamp 1730054564 [18:44:01]current date 1730054644 [18:44:01]FM_GetShiftState [18:44:01]SAM_PROTO_GetShiftState [18:44:01]wFMCommunicate request_size=4 [18:44:01]MH_SAM_APDU [18:44:01]CAPDU: 80 13 01 00 [18:44:01]Write to MH i2c: E2 08 00 6D 27 80 13 01 00 00 00 00 00 11 [18:44:01]Write i2c OK [18:44:01]MH_I2C_Read... [18:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:01]Read from MH i2c: E2 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 0E 00 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 0E 00 6D 27 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 50 [18:44:01]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:44:01]wFMCommunicate OK [18:44:01]SAM_PROTO_GetShiftState done [18:44:01]FM_GetShiftState done [18:44:01]opened in 1729987372 [18:44:01]opened+sec_in_day 1730073772 [18:44:01]quantity*price = 100015 [18:44:01]sum+1 = 100017 [18:44:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 176 27.10.2024 18:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117476 ФПД: 228260140790542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184404&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117476&fm=228260140790542&tin=02508201610067®Number=0000000000091782&sum=100000 [18:44:02]StoreToDocumentArchive [18:44:02]shift 542 fd 117476 [18:44:02]save to /storage/0542/doc_00117476 [18:44:02]save last doc name /storage/0542/doc_00117476 to /storage/kkm_last_doc_name [18:44:02]save OK [18:44:02]Clear old archive folders... [18:44:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:02]tlvbuf is 01789B70 [18:44:02]SAM_PROTO_ClearQueue [18:44:02]wFMCommunicate request_size=4 [18:44:02]MH_SAM_APDU [18:44:02]CAPDU: 80 09 00 00 [18:44:02]Write to MH i2c: E2 08 00 7A 27 80 09 00 00 00 00 00 00 13 [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:02]Read from MH i2c: E2 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 03 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 03 00 7A 27 00 90 00 15 [18:44:02]RAPDU: 90 00 [18:44:02]wFMCommunicate OK [18:44:02]SAM_PROTO_ClearQueue done [18:44:02]KKMCreateOFDPacket [18:44:02]OFDProtocolAddRootSTLVToBuf [18:44:02]FM_MakeSignedData [18:44:02]FM_MakeSignedData [18:44:02]SAM_PROTO_SignData [18:44:02]wFMCommunicate request_size=4 [18:44:02]MH_SAM_APDU [18:44:02]CAPDU: 80 0D 01 02 [18:44:02]Write to MH i2c: E2 08 00 7B 27 80 0D 01 02 00 00 00 00 1B [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:02]Read from MH i2c: E2 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 03 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 03 00 7B 27 00 90 00 16 [18:44:02]RAPDU: 90 00 [18:44:02]wFMCommunicate OK [18:44:02]wFMCommunicate request_size=255 [18:44:02]MH_SAM_APDU [18:44: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 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 B0 00 00 00 F4 03 04 00 F4 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E4 CA 01 00 35 04 06 00 CF [18:44:02]Write to MH i2c: E2 02 01 7C 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 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 B0 00 00 00 F4 03 04 00 F4 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E4 CA 01 00 35 04 06 00 CF 00 00 F7 [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:02]Read from MH i2c: E2 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 03 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 03 00 7C 27 00 90 00 17 [18:44:02]RAPDU: 90 00 [18:44:02]wFMCommunicate OK [18:44:02]wFMCommunicate request_size=10 [18:44:02]MH_SAM_APDU [18:44:02]CAPDU: 80 0D 02 02 05 99 F4 9B B3 0E [18:44:02]Write to MH i2c: E2 0D 00 7D 27 80 0D 02 02 05 00 99 F4 9B B3 0E 00 00 11 [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 7D 27 00 90 00 18 [18:44:03]RAPDU: 90 00 [18:44:03]wFMCommunicate OK [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 0D 03 02 [18:44:03]Write to MH i2c: E2 08 00 7E 27 80 0D 03 02 00 00 00 00 20 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 0B 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 0B 00 7E 27 00 7A 69 7F 38 08 ED 06 B5 90 00 6B [18:44:03]RAPDU: 7A 69 7F 38 08 ED 06 B5 90 00 [18:44:03]wFMCommunicate OK [18:44:03]SAM_PROTO_SignData done [18:44:03]FM_MakeSignedData done [18:44:03]CreateOFDProtocolMessage [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 11 00 00 [18:44:03]Write to MH i2c: E2 08 00 7F 27 80 11 00 00 00 00 00 00 20 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 17 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 17 00 7F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 77 [18:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:44:03]wFMCommunicate OK [18:44:03]CreateOFDProtocolMessage done [18:44:03]OFDSenderStorePacket 117476 [18:44:03]StoreOFDPacket docnum=117476 [18:44:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 96 94 07 01 8C 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 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 B0 00 00 00 F4 03 04 00 F4 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E4 CA 01 00 35 04 06 00 CF 99 F4 9B B3 0E 7A 69 7F 38 08 ED 06 B5 [18:44:03]CheckFolder [18:44:03]dirname=/storage/ofd_packets [18:44:03]CheckFolder done [18:44:03]ProducePacketName [18:44:03]name=ofd_packets/00117476 [18:44:03]NVStorageSaveData ofd_packets/00117476 [18:44:03]File name is /storage/ofd_packets/00117476 [18:44:03]Write 301 bytes [18:44:03]NVStorageSaveData done [18:44:03]OFDSenderStorePacket done [18:44:03]KKMCreateOFDPacket done [18:44:03]NVStorageSaveData kkm_last_timestamp [18:44:03]File name is /storage/kkm_last_timestamp [18:44:03]Write 4 bytes [18:44:03]NVStorageSaveData done [18:44:03]ExternCall_PrintAddStr [18:44:03]wPrintStart [18:44:03]Write to MH i2c: 01 00 00 80 27 A7 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 07 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 07 00 80 27 00 00 00 00 00 FF 0F BC [18:44:03]RasterBufferAndPrint [18:44:03]line Счет N : (1)245252 [18:44:03]line ИНН: 02508201610067 [18:44:03]line Контрольно-Кассовый Чек [18:44:03]line ПРОДАЖА [18:44:03]line ТРК (МРК, ГНК) : 11 [18:44:03]line Товар: 2710124130 [18:44:03]line Аи-92-К-2 [18:44:03]line 14.950 * 66.90 [18:44:03]line = 1000.16 [18:44:03]line НДС 12% НСП 1% [18:44:03]line > о реализуемом товаре [18:44:03]line ОКРУГЛЕНИЕ: -0.16 [18:44:03]line ИТОГО: 1000.00 [18:44:03]line Внесено: 1000.00 [18:44:03]line СДАЧА: 0.00 [18:44:03]line НСП 1% : 8.85 [18:44:03]line НДС 12% : 106.21 [18:44:03]line Наличными: 1000.00 [18:44:03]line Безнал.: 0.00 [18:44:03]line Место: АЗС № 173 "Партнер Нефть" [18:44:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:44:03]line СНО: Общий режим [18:44:03]line Чек 176 27.10.2024 18:44 [18:44:03]line Смена: 542 ФФД: 1.0 [18:44:03]line ЗНМ: 0300000115 [18:44:03]line РНМ: 0000000000091782 [18:44:03]line Версия ККМ: 001 [18:44:03]line ФМ: 0000000000871767 [18:44:03]line ФД: 117476 [18:44:03]line ФПД: 228260140790542 [18:44:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184404&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117476&fm=228260140790542&tin=02508201610067®Number=0000000000091782&sum=100000 [18:44:03]written 0, free lines is 4095 [18:44:03]OFD Sender: Processing packet 117476 [packets to send 76, broken 75] [18:44:03]ProducePacketName [18:44:03]name=ofd_packets/00117476 [18:44:03]OFD Sender: To server: pG, [18:44:03]CommunicateWithHost lk.salyk.kg:30040 [18:44:03]ConnectInit lk.salyk.kg [18:44:03]Connected sock=10 [18:44: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 36 37 0F 01 00 00 96 94 07 01 8C 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 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 B0 00 00 00 F4 03 04 00 F4 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E4 CA 01 00 35 04 06 00 CF 99 F4 9B B3 0E 7A 69 7F 38 08 ED 06 B5 [18:44: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 36 37 4F 00 00 00 A5 D9 47 00 3A 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 36 37 10 04 04 00 E4 CA 01 00 F4 03 04 00 B1 35 1E 67 B6 04 01 00 00 67 81 3E 2B 5D DC 58 61 [18:44:03]CommunicateWithHost err = 0 [18:44:03]CheckOFDResponse [18:44:03]1017 (14) - 77093643461234 [18:44:03]1041 (16) - 0000000000871767 [18:44:03]1040 (4) - 117476 [18:44:03]1012 (4) - 27.10.2024 12:44 [18:44:03]1206 (1) - 0 [18:44:03]OFD Sender: Remove packet 117476 [18:44:03]ProducePacketName [18:44:03]name=ofd_packets/00117476 [18:44:03]NVStorageDeleteData [18:44:03]Write to MH i2c: 01 00 00 AA 27 D1 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 07 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 07 00 AA 27 00 00 00 00 00 B8 0C 9C [18:44:03]RasterBufferAndPrint [18:44:03]line [18:44:03]line [18:44:03]line [18:44:03]line [18:44:03]line [18:44:03]written 0, free lines is 3263 [18:44:03]MH_Cut [18:44:03]Write to MH i2c: D1 01 00 B1 27 01 AA [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: D1 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: D1 01 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: D1 01 00 B1 27 00 A9 [18:44:03]Write to MH i2c: 01 00 00 B2 27 D9 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:04]OFD Sender: No OFD packet to send [18:44:04]*** Cut start [18:44:04]*** Purtial cut [18:44:04]*** Stage 1: CUTSNS_PIN = 1 [18:44:05]Read from MH i2c: 01 [18:44:05]MH_I2C_Read... [18:44:05]*** Stop cut motor [18:44:05]*** Cut end [18:44:05]Read from MH i2c: 01 07 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: 01 07 00 B2 27 00 00 00 00 00 FF 0F EE [18:44:05]process_action close_receipt done [18:44:05]requested_data is exist [18:44:05]produce_requested_data [18:44:05]requested_item fm.sn is exist - process it [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 11 00 00 [18:44:05]Write to MH i2c: E2 08 00 B3 27 80 11 00 00 00 00 00 00 54 [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:05]Read from MH i2c: E2 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 17 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 17 00 B3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AB [18:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:44:05]wFMCommunicate OK [18:44:05]requested_item fd.num is exist - process it [18:44:05]SAM_PROTO_GetFieldsCounters [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 13 00 00 [18:44:05]Write to MH i2c: E2 08 00 B4 27 80 13 00 00 00 00 00 00 57 [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:05]Read from MH i2c: E2 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 62 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 62 00 B4 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E4 CA 01 00 0E 04 04 00 1E 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 5D [18:44: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E4 CA 01 00 0E 04 04 00 1E 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 [18:44:05]wFMCommunicate OK [18:44:05]SAM_PROTO_GetFieldsCounters done [18:44:05]requested_item shift.num is exist - process it [18:44:05]requested_item shift.opened is exist - process it [18:44:05]req_shift_opened [18:44:05]FM_GetShiftState [18:44:05]SAM_PROTO_GetShiftState [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 13 01 00 [18:44:05]Write to MH i2c: E2 08 00 B5 27 80 13 01 00 00 00 00 00 59 [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:05]Read from MH i2c: E2 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 0E 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 0E 00 B5 27 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 98 [18:44:05]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:44:05]wFMCommunicate OK [18:44:05]SAM_PROTO_GetShiftState done [18:44:05]FM_GetShiftState done [18:44:05]req_shift_opened done [18:44:05]requested_item shift.open_date is exist - process it [18:44:05]req_shift_open_date [18:44:05]req_shift_open_date done [18:44:05]produce_requested_data done [18:44:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117476,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:44:05]process_action_free close_receipt [18:44:05]json_value_free [18:44:05]json_value_free done [18:44:05]process_json_proto returns [18:44:05]Send response to host [18:44:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117476,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:44:05]free response buf [18:44:05]execute_script done [18:44:05]execute_script returns [18:44:05]free content buf [18:44:05]Sock 9.Close socket [18:44:05]Sock 9.Thread stoped [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49: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:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:48]accept exits with 7 [18:57:48]New connection [18:57:48]New thread 3067600228 created [18:57:48]Thread 3067456868 joined [18:57:48]Waiting for new connection... [18:57:48] Sock 7.Parse request [18:57:48]Sock 7.Check first char [18:57:48]Sock 7.First char is OK [18:57:48]request: POST /json_proto HTTP/1.0 [18:57:48]Method: POST [18:57:48]URL: /json_proto [18:57:48]Method is POST - this is cgi request [18:57:48]url: /json_proto [18:57:48]query_string will be loaded in cgi processing [18:57:48]execute_cgi json_proto POST (null) [18:57:48]execute_cgi path=json_proto method=POST [18:57:48]POST find Content-Length [18:57:48]Host: 172.17.96.67:8080 [18:57:48]Content-Length: 677 [18:57:48]Content-Type: application/json [18:57:48] [18:57:48]POST finish read [18:57:48]Found Content-Length = 677 [18:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:57:48]execute_script... [18:57: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)245253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:57:48]POST & json_proto [18:57:48]process_json_proto [18:57:48]json parsed OK: [18:57:48]protocol is kg_v1.0 [18:57:48]action value=close_receipt [18:57:48]process_action close_receipt [18:57:48]cmd_close_receipt [18:57:48]MH_GetDate [18:57:48]Write to MH i2c: F0 00 00 B6 27 CC [18:57:48]Write i2c OK [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: F0 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: F0 09 00 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: F0 09 00 B6 27 00 2F 8D 1E 67 2B 09 1E 67 CF [18:57:48]GetLastDocTimeStamp 1730054644 [18:57:48]current date 1730055471 [18:57:48]FM_GetShiftState [18:57:48]SAM_PROTO_GetShiftState [18:57:48]wFMCommunicate request_size=4 [18:57:48]MH_SAM_APDU [18:57:48]CAPDU: 80 13 01 00 [18:57:48]Write to MH i2c: E2 08 00 B7 27 80 13 01 00 00 00 00 00 5B [18:57:48]Write i2c OK [18:57:48]MH_I2C_Read... [18:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:48]Read from MH i2c: E2 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: E2 0E 00 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: E2 0E 00 B7 27 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 9A [18:57:48]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:57:48]wFMCommunicate OK [18:57:48]SAM_PROTO_GetShiftState done [18:57:48]FM_GetShiftState done [18:57:48]opened in 1729987372 [18:57:48]opened+sec_in_day 1730073772 [18:57:48]quantity*price = 30038 [18:57:48]sum+1 = 30039 [18:57:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 177 27.10.2024 18:57 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117477 ФПД: 254288162797763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185751&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117477&fm=254288162797763&tin=02508201610067®Number=0000000000091782&sum=30000 [18:57:49]StoreToDocumentArchive [18:57:49]shift 542 fd 117477 [18:57:49]save to /storage/0542/doc_00117477 [18:57:49]save last doc name /storage/0542/doc_00117477 to /storage/kkm_last_doc_name [18:57:49]save OK [18:57:49]Clear old archive folders... [18:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:49]tlvbuf is B6F46380 [18:57:49]SAM_PROTO_ClearQueue [18:57:49]wFMCommunicate request_size=4 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 09 00 00 [18:57:49]Write to MH i2c: E2 08 00 C4 27 80 09 00 00 00 00 00 00 5D [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:49]Read from MH i2c: E2 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 C4 27 00 90 00 5F [18:57:49]RAPDU: 90 00 [18:57:49]wFMCommunicate OK [18:57:49]SAM_PROTO_ClearQueue done [18:57:49]KKMCreateOFDPacket [18:57:49]OFDProtocolAddRootSTLVToBuf [18:57:49]FM_MakeSignedData [18:57:49]FM_MakeSignedData [18:57:49]SAM_PROTO_SignData [18:57:49]wFMCommunicate request_size=4 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 0D 01 02 [18:57:49]Write to MH i2c: E2 08 00 C5 27 80 0D 01 02 00 00 00 00 65 [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 C5 27 00 90 00 60 [18:57:50]RAPDU: 90 00 [18:57:50]wFMCommunicate OK [18:57:50]wFMCommunicate request_size=255 [18:57:50]MH_SAM_APDU [18:57: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 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 B1 00 00 00 F4 03 04 00 2F 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E5 CA 01 00 35 04 06 00 E7 [18:57:50]Write to MH i2c: E2 02 01 C6 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 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 B1 00 00 00 F4 03 04 00 2F 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E5 CA 01 00 35 04 06 00 E7 00 00 94 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]OFD Sender: No OFD packet to send [18:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 C6 27 00 90 00 61 [18:57:50]RAPDU: 90 00 [18:57:50]wFMCommunicate OK [18:57:50]wFMCommunicate request_size=10 [18:57:50]MH_SAM_APDU [18:57:50]CAPDU: 80 0D 02 02 05 46 13 9D 38 C3 [18:57:50]Write to MH i2c: E2 0D 00 C7 27 80 0D 02 02 05 00 46 13 9D 38 C3 00 00 63 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 C7 27 00 90 00 62 [18:57:50]RAPDU: 90 00 [18:57:50]wFMCommunicate OK [18:57:50]wFMCommunicate request_size=4 [18:57:50]MH_SAM_APDU [18:57:50]CAPDU: 80 0D 03 02 [18:57:50]Write to MH i2c: E2 08 00 C8 27 80 0D 03 02 00 00 00 00 6A [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 0B 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 0B 00 C8 27 00 4A 0F 4F 57 A4 36 0B BE 90 00 0D [18:57:50]RAPDU: 4A 0F 4F 57 A4 36 0B BE 90 00 [18:57:50]wFMCommunicate OK [18:57:50]SAM_PROTO_SignData done [18:57:50]FM_MakeSignedData done [18:57:50]CreateOFDProtocolMessage [18:57:50]wFMCommunicate request_size=4 [18:57:50]MH_SAM_APDU [18:57:50]CAPDU: 80 11 00 00 [18:57:50]Write to MH i2c: E2 08 00 C9 27 80 11 00 00 00 00 00 00 6A [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 17 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 17 00 C9 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C1 [18:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:57:50]wFMCommunicate OK [18:57:50]CreateOFDProtocolMessage done [18:57:50]OFDSenderStorePacket 117477 [18:57:50]StoreOFDPacket docnum=117477 [18:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 09 16 07 01 FC 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B1 00 00 00 F4 03 04 00 2F 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E5 CA 01 00 35 04 06 00 E7 46 13 9D 38 C3 4A 0F 4F 57 A4 36 0B BE [18:57:50]CheckFolder [18:57:50]dirname=/storage/ofd_packets [18:57:50]CheckFolder done [18:57:50]ProducePacketName [18:57:50]name=ofd_packets/00117477 [18:57:50]NVStorageSaveData ofd_packets/00117477 [18:57:50]File name is /storage/ofd_packets/00117477 [18:57:50]Write 301 bytes [18:57:50]NVStorageSaveData done [18:57:50]OFDSenderStorePacket done [18:57:50]KKMCreateOFDPacket done [18:57:50]NVStorageSaveData kkm_last_timestamp [18:57:50]File name is /storage/kkm_last_timestamp [18:57:50]Write 4 bytes [18:57:50]NVStorageSaveData done [18:57:50]ExternCall_PrintAddStr [18:57:50]wPrintStart [18:57:50]Write to MH i2c: 01 00 00 CA 27 F1 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 07 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 07 00 CA 27 00 00 00 00 00 FF 0F 06 [18:57:50]RasterBufferAndPrint [18:57:50]line Счет N : (1)245253 [18:57:50]line ИНН: 02508201610067 [18:57:50]line Контрольно-Кассовый Чек [18:57:50]line ПРОДАЖА [18:57:50]line ТРК (МРК, ГНК) : 11 [18:57:50]line Товар: 2710124130 [18:57:50]line Аи-92-К-2 [18:57:50]line 4.490 * 66.90 [18:57:50]line = 300.38 [18:57:50]line НДС 12% НСП 1% [18:57:50]line > о реализуемом товаре [18:57:50]line ОКРУГЛЕНИЕ: -0.38 [18:57:50]line ИТОГО: 300.00 [18:57:50]line Внесено: 300.00 [18:57:50]line СДАЧА: 0.00 [18:57:50]line НСП 1% : 2.66 [18:57:50]line НДС 12% : 31.90 [18:57:50]line Наличными: 300.00 [18:57:50]line Безнал.: 0.00 [18:57:50]line Место: АЗС № 173 "Партнер Нефть" [18:57:50]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:57:50]line СНО: Общий режим [18:57:50]line Чек 177 27.10.2024 18:57 [18:57:50]line Смена: 542 ФФД: 1.0 [18:57:50]line ЗНМ: 0300000115 [18:57:50]line РНМ: 0000000000091782 [18:57:50]line Версия ККМ: 001 [18:57:50]line ФМ: 0000000000871767 [18:57:50]line ФД: 117477 [18:57:50]line ФПД: 254288162797763 [18:57:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185751&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117477&fm=254288162797763&tin=02508201610067®Number=0000000000091782&sum=30000 [18:57:50]OFD Sender: Processing packet 117477 [packets to send 76, broken 75] [18:57:50]ProducePacketName [18:57:50]name=ofd_packets/00117477 [18:57:50]OFD Sender: To server: pG, [18:57:50]CommunicateWithHost lk.salyk.kg:30040 [18:57:50]ConnectInit lk.salyk.kg [18:57:50]written 0, free lines is 4095 [18:57:50]Connected sock=10 [18:57: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 36 37 0F 01 00 00 09 16 07 01 FC 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B1 00 00 00 F4 03 04 00 2F 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E5 CA 01 00 35 04 06 00 E7 46 13 9D 38 C3 4A 0F 4F 57 A4 36 0B BE [18:57: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 36 37 4F 00 00 00 6F 07 47 00 93 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 36 37 10 04 04 00 E5 CA 01 00 F4 03 04 00 EC 38 1E 67 B6 04 01 00 00 46 2F E9 3F F8 DB FC 5F [18:57:51]CommunicateWithHost err = 0 [18:57:51]CheckOFDResponse [18:57:51]1017 (14) - 77093643461234 [18:57:51]1041 (16) - 0000000000871767 [18:57:51]1040 (4) - 117477 [18:57:51]1012 (4) - 27.10.2024 12:58 [18:57:51]1206 (1) - 0 [18:57:51]OFD Sender: Remove packet 117477 [18:57:51]ProducePacketName [18:57:51]name=ofd_packets/00117477 [18:57:51]NVStorageDeleteData [18:57:51]Write to MH i2c: 01 00 00 F4 27 1B [18:57:51]Write i2c OK [18:57:51]MH_I2C_Read... [18:57:51]Read from MH i2c: 01 [18:57:51]MH_I2C_Read... [18:57:51]Read from MH i2c: 01 07 00 [18:57:51]MH_I2C_Read... [18:57:51]Read from MH i2c: 01 07 00 F4 27 00 00 00 00 00 BB 0C E9 [18:57:51]RasterBufferAndPrint [18:57:51]line [18:57:51]line [18:57:51]line [18:57:51]line [18:57:51]line [18:57:51]written 0, free lines is 3265 [18:57:51]MH_Cut [18:57:51]Write to MH i2c: D1 01 00 FB 27 01 F4 [18:57:51]Write i2c OK [18:57:51]MH_I2C_Read... [18:57:51]Read from MH i2c: D1 [18:57:51]MH_I2C_Read... [18:57:51]Read from MH i2c: D1 01 00 [18:57:51]MH_I2C_Read... [18:57:51]Read from MH i2c: D1 01 00 FB 27 00 F3 [18:57:51]Write to MH i2c: 01 00 00 FC 27 23 [18:57:51]Write i2c OK [18:57:51]MH_I2C_Read... [18:57:51]OFD Sender: No OFD packet to send [18:57:52]*** Cut start [18:57:52]*** Purtial cut [18:57:52]*** Stage 1: CUTSNS_PIN = 1 [18:57:52]Read from MH i2c: 01 [18:57:52]MH_I2C_Read... [18:57:52]*** Stop cut motor [18:57:52]*** Cut end [18:57:52]Read from MH i2c: 01 07 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: 01 07 00 FC 27 00 00 00 00 00 FF 0F 38 [18:57:52]process_action close_receipt done [18:57:52]requested_data is exist [18:57:52]produce_requested_data [18:57:52]requested_item fm.sn is exist - process it [18:57:52]wFMCommunicate request_size=4 [18:57:52]MH_SAM_APDU [18:57:52]CAPDU: 80 11 00 00 [18:57:52]Write to MH i2c: E2 08 00 FD 27 80 11 00 00 00 00 00 00 9E [18:57:52]Write i2c OK [18:57:52]MH_I2C_Read... [18:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:52]Read from MH i2c: E2 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 17 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 17 00 FD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F5 [18:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:57:52]wFMCommunicate OK [18:57:52]requested_item fd.num is exist - process it [18:57:52]SAM_PROTO_GetFieldsCounters [18:57:52]wFMCommunicate request_size=4 [18:57:52]MH_SAM_APDU [18:57:52]CAPDU: 80 13 00 00 [18:57:52]Write to MH i2c: E2 08 00 FE 27 80 13 00 00 00 00 00 00 A1 [18:57:52]Write i2c OK [18:57:52]MH_I2C_Read... [18:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:52]Read from MH i2c: E2 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 62 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 62 00 FE 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E5 CA 01 00 0E 04 04 00 1E 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 AB [18:57: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E5 CA 01 00 0E 04 04 00 1E 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 [18:57:52]wFMCommunicate OK [18:57:52]SAM_PROTO_GetFieldsCounters done [18:57:52]requested_item shift.num is exist - process it [18:57:52]requested_item shift.opened is exist - process it [18:57:52]req_shift_opened [18:57:52]FM_GetShiftState [18:57:52]SAM_PROTO_GetShiftState [18:57:52]wFMCommunicate request_size=4 [18:57:52]MH_SAM_APDU [18:57:52]CAPDU: 80 13 01 00 [18:57:52]Write to MH i2c: E2 08 00 FF 27 80 13 01 00 00 00 00 00 A3 [18:57:52]Write i2c OK [18:57:52]MH_I2C_Read... [18:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:52]Read from MH i2c: E2 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 0E 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 0E 00 FF 27 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E2 [18:57:52]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:57:52]wFMCommunicate OK [18:57:52]SAM_PROTO_GetShiftState done [18:57:52]FM_GetShiftState done [18:57:52]req_shift_opened done [18:57:52]requested_item shift.open_date is exist - process it [18:57:52]req_shift_open_date [18:57:52]req_shift_open_date done [18:57:52]produce_requested_data done [18:57:52]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117477,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:57:52]process_action_free close_receipt [18:57:52]json_value_free [18:57:52]json_value_free done [18:57:52]process_json_proto returns [18:57:52]Send response to host [18:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117477,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:57:52]free response buf [18:57:52]execute_script done [18:57:52]execute_script returns [18:57:52]free content buf [18:57:52]Sock 7.Close socket [18:57:52]Sock 7.Thread stoped [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:53]accept exits with 9 [18:58:53]New connection [18:58:53]New thread 3067456868 created [18:58:53]Thread 3067600228 joined [18:58:53]Waiting for new connection... [18:58:53] Sock 9.Parse request [18:58:53]Sock 9.Check first char [18:58:53]Sock 9.First char is OK [18:58:53]request: POST /json_proto HTTP/1.0 [18:58:53]Method: POST [18:58:53]URL: /json_proto [18:58:53]Method is POST - this is cgi request [18:58:53]url: /json_proto [18:58:53]query_string will be loaded in cgi processing [18:58:53]execute_cgi json_proto POST (null) [18:58:53]execute_cgi path=json_proto method=POST [18:58:53]POST find Content-Length [18:58:53]Host: 172.17.96.67:8080 [18:58:53]Content-Length: 677 [18:58:53]Content-Type: application/json [18:58:53] [18:58:53]POST finish read [18:58:53]Found Content-Length = 677 [18:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:58:53]execute_script... [18:58:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:58:53]POST & json_proto [18:58:53]process_json_proto [18:58:53]json parsed OK: [18:58:53]protocol is kg_v1.0 [18:58:53]action value=close_receipt [18:58:53]process_action close_receipt [18:58:53]cmd_close_receipt [18:58:53]MH_GetDate [18:58:53]Write to MH i2c: F0 00 00 00 28 17 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: F0 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: F0 09 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: F0 09 00 00 28 00 70 8D 1E 67 2B 09 1E 67 5B [18:58:53]GetLastDocTimeStamp 1730055471 [18:58:53]current date 1730055536 [18:58:53]FM_GetShiftState [18:58:53]SAM_PROTO_GetShiftState [18:58:53]wFMCommunicate request_size=4 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 13 01 00 [18:58:53]Write to MH i2c: E2 08 00 01 28 80 13 01 00 00 00 00 00 A6 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 0E 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 0E 00 01 28 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E5 [18:58:53]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:58:53]wFMCommunicate OK [18:58:53]SAM_PROTO_GetShiftState done [18:58:53]FM_GetShiftState done [18:58:53]opened in 1729987372 [18:58:53]opened+sec_in_day 1730073772 [18:58:53]quantity*price = 50041 [18:58:53]sum+1 = 50042 [18:58: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 178 27.10.2024 18:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117478 ФПД: 45172043604294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185856&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117478&fm=45172043604294&tin=02508201610067®Number=0000000000091782&sum=50000 [18:58:54]StoreToDocumentArchive [18:58:54]shift 542 fd 117478 [18:58:54]save to /storage/0542/doc_00117478 [18:58:54]save last doc name /storage/0542/doc_00117478 to /storage/kkm_last_doc_name [18:58:54]save OK [18:58:54]Clear old archive folders... [18:58:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:54]tlvbuf is 01773BD0 [18:58:54]SAM_PROTO_ClearQueue [18:58:54]wFMCommunicate request_size=4 [18:58:54]MH_SAM_APDU [18:58:54]CAPDU: 80 09 00 00 [18:58:54]Write to MH i2c: E2 08 00 0E 28 80 09 00 00 00 00 00 00 A8 [18:58:54]Write i2c OK [18:58:54]MH_I2C_Read... [18:58:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:54]Read from MH i2c: E2 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 0E 28 00 90 00 AA [18:58:54]RAPDU: 90 00 [18:58:54]wFMCommunicate OK [18:58:54]SAM_PROTO_ClearQueue done [18:58:54]KKMCreateOFDPacket [18:58:54]OFDProtocolAddRootSTLVToBuf [18:58:54]FM_MakeSignedData [18:58:54]FM_MakeSignedData [18:58:54]SAM_PROTO_SignData [18:58:54]wFMCommunicate request_size=4 [18:58:54]MH_SAM_APDU [18:58:54]CAPDU: 80 0D 01 02 [18:58:54]Write to MH i2c: E2 08 00 0F 28 80 0D 01 02 00 00 00 00 B0 [18:58:54]Write i2c OK [18:58:54]MH_I2C_Read... [18:58:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:54]Read from MH i2c: E2 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 0F 28 00 90 00 AB [18:58:54]RAPDU: 90 00 [18:58:54]wFMCommunicate OK [18:58:54]wFMCommunicate request_size=255 [18:58:54]MH_SAM_APDU [18:58:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 70 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CA 01 00 35 04 06 00 29 [18:58:54]Write to MH i2c: E2 02 01 10 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 B2 00 00 00 F4 03 04 00 70 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CA 01 00 35 04 06 00 29 00 00 70 [18:58:54]Write i2c OK [18:58:54]MH_I2C_Read... [18:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:55]Read from MH i2c: E2 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 03 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 03 00 10 28 00 90 00 AC [18:58:55]RAPDU: 90 00 [18:58:55]wFMCommunicate OK [18:58:55]wFMCommunicate request_size=10 [18:58:55]MH_SAM_APDU [18:58:55]CAPDU: 80 0D 02 02 05 15 6F 9C E1 46 [18:58:55]Write to MH i2c: E2 0D 00 11 28 80 0D 02 02 05 00 15 6F 9C E1 46 00 00 04 [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:55]Read from MH i2c: E2 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 03 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 03 00 11 28 00 90 00 AD [18:58:55]RAPDU: 90 00 [18:58:55]wFMCommunicate OK [18:58:55]wFMCommunicate request_size=4 [18:58:55]MH_SAM_APDU [18:58:55]CAPDU: 80 0D 03 02 [18:58:55]Write to MH i2c: E2 08 00 12 28 80 0D 03 02 00 00 00 00 B5 [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:55]Read from MH i2c: E2 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 0B 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 0B 00 12 28 00 3A 8D 5E 2D 7A 89 31 2E 90 00 6A [18:58:55]RAPDU: 3A 8D 5E 2D 7A 89 31 2E 90 00 [18:58:55]wFMCommunicate OK [18:58:55]SAM_PROTO_SignData done [18:58:55]FM_MakeSignedData done [18:58:55]CreateOFDProtocolMessage [18:58:55]wFMCommunicate request_size=4 [18:58:55]MH_SAM_APDU [18:58:55]CAPDU: 80 11 00 00 [18:58:55]Write to MH i2c: E2 08 00 13 28 80 11 00 00 00 00 00 00 B5 [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:55]Read from MH i2c: E2 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 17 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 17 00 13 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0C [18:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:58:55]wFMCommunicate OK [18:58:55]CreateOFDProtocolMessage done [18:58:55]OFDSenderStorePacket 117478 [18:58:55]StoreOFDPacket docnum=117478 [18:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9D C3 07 01 36 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 70 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CA 01 00 35 04 06 00 29 15 6F 9C E1 46 3A 8D 5E 2D 7A 89 31 2E [18:58:55]CheckFolder [18:58:55]dirname=/storage/ofd_packets [18:58:55]CheckFolder done [18:58:55]ProducePacketName [18:58:55]name=ofd_packets/00117478 [18:58:55]NVStorageSaveData ofd_packets/00117478 [18:58:55]File name is /storage/ofd_packets/00117478 [18:58:55]Write 301 bytes [18:58:55]NVStorageSaveData done [18:58:55]OFDSenderStorePacket done [18:58:55]KKMCreateOFDPacket done [18:58:55]NVStorageSaveData kkm_last_timestamp [18:58:55]File name is /storage/kkm_last_timestamp [18:58:55]Write 4 bytes [18:58:55]NVStorageSaveData done [18:58:55]ExternCall_PrintAddStr [18:58:55]wPrintStart [18:58:55]Write to MH i2c: 01 00 00 14 28 3C [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 07 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 07 00 14 28 00 00 00 00 00 FF 0F 51 [18:58:55]RasterBufferAndPrint [18:58:55]line Счет N : (1)245254 [18:58:55]line ИНН: 02508201610067 [18:58:55]line Контрольно-Кассовый Чек [18:58:55]line ПРОДАЖА [18:58:55]line ТРК (МРК, ГНК) : 11 [18:58:55]line Товар: 2710124130 [18:58:55]line Аи-92-К-2 [18:58:55]line 7.480 * 66.90 [18:58:55]line = 500.41 [18:58:55]line НДС 12% НСП 1% [18:58:55]line > о реализуемом товаре [18:58:55]line ОКРУГЛЕНИЕ: -0.41 [18:58:55]line ИТОГО: 500.00 [18:58:55]line Внесено: 500.00 [18:58:55]line СДАЧА: 0.00 [18:58:55]line НСП 1% : 4.43 [18:58:55]line НДС 12% : 53.14 [18:58:55]line Наличными: 500.00 [18:58:55]line Безнал.: 0.00 [18:58:55]line Место: АЗС № 173 "Партнер Нефть" [18:58:55]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:58:55]line СНО: Общий режим [18:58:55]line Чек 178 27.10.2024 18:58 [18:58:55]line Смена: 542 ФФД: 1.0 [18:58:55]line ЗНМ: 0300000115 [18:58:55]line РНМ: 0000000000091782 [18:58:55]line Версия ККМ: 001 [18:58:55]line ФМ: 0000000000871767 [18:58:55]line ФД: 117478 [18:58:55]line ФПД: 45172043604294 [18:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185856&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117478&fm=45172043604294&tin=02508201610067®Number=0000000000091782&sum=50000 [18:58:55]OFD Sender: Processing packet 117478 [packets to send 76, broken 75] [18:58:55]ProducePacketName [18:58:55]name=ofd_packets/00117478 [18:58:55]OFD Sender: To server: pG, [18:58:55]CommunicateWithHost lk.salyk.kg:30040 [18:58:55]ConnectInit lk.salyk.kg [18:58:55]Connected sock=11 [18:58:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9D C3 07 01 36 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 70 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CA 01 00 35 04 06 00 29 15 6F 9C E1 46 3A 8D 5E 2D 7A 89 31 2E [18:58:55]written 0, free lines is 4095 [18:58: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 36 37 4F 00 00 00 DD F8 47 00 75 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CA 01 00 F4 03 04 00 2D 39 1E 67 B6 04 01 00 00 F6 38 F3 BD C0 E6 64 EF [18:58:55]CommunicateWithHost err = 0 [18:58:55]CheckOFDResponse [18:58:55]1017 (14) - 77093643461234 [18:58:55]1041 (16) - 0000000000871767 [18:58:55]1040 (4) - 117478 [18:58:55]1012 (4) - 27.10.2024 12:59 [18:58:55]1206 (1) - 0 [18:58:55]OFD Sender: Remove packet 117478 [18:58:55]ProducePacketName [18:58:55]name=ofd_packets/00117478 [18:58:55]NVStorageDeleteData [18:58:56]Write to MH i2c: 01 00 00 3E 28 66 [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: 01 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: 01 07 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: 01 07 00 3E 28 00 00 00 00 00 BD 0C 36 [18:58:56]RasterBufferAndPrint [18:58:56]line [18:58:56]line [18:58:56]line [18:58:56]line [18:58:56]line [18:58:56]written 0, free lines is 3268 [18:58:56]MH_Cut [18:58:56]Write to MH i2c: D1 01 00 45 28 01 3F [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: D1 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: D1 01 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: D1 01 00 45 28 00 3E [18:58:56]Write to MH i2c: 01 00 00 46 28 6E [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]OFD Sender: No OFD packet to send [18:58:56]*** Cut start [18:58:56]*** Purtial cut [18:58:56]*** Stage 1: CUTSNS_PIN = 1 [18:58:57]Read from MH i2c: 01 [18:58:57]MH_I2C_Read... [18:58:57]*** Stop cut motor [18:58:57]*** Cut end [18:58:57]Read from MH i2c: 01 07 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: 01 07 00 46 28 00 00 00 00 00 FF 0F 83 [18:58:57]process_action close_receipt done [18:58:57]requested_data is exist [18:58:57]produce_requested_data [18:58:57]requested_item fm.sn is exist - process it [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 11 00 00 [18:58:57]Write to MH i2c: E2 08 00 47 28 80 11 00 00 00 00 00 00 E9 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 17 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 17 00 47 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 40 [18:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:58:57]wFMCommunicate OK [18:58:57]requested_item fd.num is exist - process it [18:58:57]SAM_PROTO_GetFieldsCounters [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 13 00 00 [18:58:57]Write to MH i2c: E2 08 00 48 28 80 13 00 00 00 00 00 00 EC [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 62 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 62 00 48 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E6 CA 01 00 0E 04 04 00 1E 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 FA [18:58: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E6 CA 01 00 0E 04 04 00 1E 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 [18:58:57]wFMCommunicate OK [18:58:57]SAM_PROTO_GetFieldsCounters done [18:58:57]requested_item shift.num is exist - process it [18:58:57]requested_item shift.opened is exist - process it [18:58:57]req_shift_opened [18:58:57]FM_GetShiftState [18:58:57]SAM_PROTO_GetShiftState [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 13 01 00 [18:58:57]Write to MH i2c: E2 08 00 49 28 80 13 01 00 00 00 00 00 EE [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 0E 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 0E 00 49 28 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2D [18:58:57]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [18:58:57]wFMCommunicate OK [18:58:57]SAM_PROTO_GetShiftState done [18:58:57]FM_GetShiftState done [18:58:57]req_shift_opened done [18:58:57]requested_item shift.open_date is exist - process it [18:58:57]req_shift_open_date [18:58:57]req_shift_open_date done [18:58:57]produce_requested_data done [18:58:57]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117478,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [18:58:57]process_action_free close_receipt [18:58:57]json_value_free [18:58:57]json_value_free done [18:58:57]process_json_proto returns [18:58:57]Send response to host [18:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117478,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [18:58:57]free response buf [18:58:57]execute_script done [18:58:57]execute_script returns [18:58:57]free content buf [18:58:57]Sock 9.Close socket [18:58:57]Sock 9.Thread stoped [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:35]accept exits with 7 [19:08:35]New connection [19:08:35]New thread 3067600228 created [19:08:35]Thread 3067456868 joined [19:08:35]Waiting for new connection... [19:08:35] Sock 7.Parse request [19:08:35]Sock 7.Check first char [19:08:35]Sock 7.First char is OK [19:08:35]request: POST /json_proto HTTP/1.0 [19:08:35]Method: POST [19:08:35]URL: /json_proto [19:08:35]Method is POST - this is cgi request [19:08:35]url: /json_proto [19:08:35]query_string will be loaded in cgi processing [19:08:35]execute_cgi json_proto POST (null) [19:08:35]execute_cgi path=json_proto method=POST [19:08:35]POST find Content-Length [19:08:35]Host: 172.17.96.67:8080 [19:08:35]Content-Length: 678 [19:08:35]Content-Type: application/json [19:08:35] [19:08:35]POST finish read [19:08:35]Found Content-Length = 678 [19:08:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [19:08:35]execute_script... [19:08: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)245255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [19:08:35]POST & json_proto [19:08:35]process_json_proto [19:08:35]json parsed OK: [19:08:35]protocol is kg_v1.0 [19:08:35]action value=close_receipt [19:08:35]process_action close_receipt [19:08:35]cmd_close_receipt [19:08:35]MH_GetDate [19:08:35]Write to MH i2c: F0 00 00 4A 28 61 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: F0 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: F0 09 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: F0 09 00 4A 28 00 B6 8F 1E 67 2B 09 1E 67 ED [19:08:35]GetLastDocTimeStamp 1730055536 [19:08:35]current date 1730056118 [19:08:35]FM_GetShiftState [19:08:35]SAM_PROTO_GetShiftState [19:08:35]wFMCommunicate request_size=4 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 13 01 00 [19:08:35]Write to MH i2c: E2 08 00 4B 28 80 13 01 00 00 00 00 00 F0 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 0E 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 0E 00 4B 28 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2F [19:08:35]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:08:35]wFMCommunicate OK [19:08:35]SAM_PROTO_GetShiftState done [19:08:35]FM_GetShiftState done [19:08:35]opened in 1729987372 [19:08:35]opened+sec_in_day 1730073772 [19:08:35]quantity*price = 70044 [19:08:35]sum+1 = 70045 [19:08:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 179 27.10.2024 19:08 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117479 ФПД: 119169029746120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190838&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117479&fm=119169029746120&tin=02508201610067®Number=0000000000091782&sum=70000 [19:08:37]StoreToDocumentArchive [19:08:37]shift 542 fd 117479 [19:08:37]save to /storage/0542/doc_00117479 [19:08:37]save last doc name /storage/0542/doc_00117479 to /storage/kkm_last_doc_name [19:08:37]save OK [19:08:37]Clear old archive folders... [19:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:37]tlvbuf is 016DE670 [19:08:37]SAM_PROTO_ClearQueue [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 09 00 00 [19:08:37]Write to MH i2c: E2 08 00 58 28 80 09 00 00 00 00 00 00 F2 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 58 28 00 90 00 F4 [19:08:37]RAPDU: 90 00 [19:08:37]wFMCommunicate OK [19:08:37]SAM_PROTO_ClearQueue done [19:08:37]KKMCreateOFDPacket [19:08:37]OFDProtocolAddRootSTLVToBuf [19:08:37]FM_MakeSignedData [19:08:37]FM_MakeSignedData [19:08:37]SAM_PROTO_SignData [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 0D 01 02 [19:08:37]Write to MH i2c: E2 08 00 59 28 80 0D 01 02 00 00 00 00 FA [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 59 28 00 90 00 F5 [19:08:37]RAPDU: 90 00 [19:08:37]wFMCommunicate OK [19:08:37]wFMCommunicate request_size=255 [19:08:37]MH_SAM_APDU [19:08: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 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 B3 00 00 00 F4 03 04 00 B6 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E7 CA 01 00 35 04 06 00 6C [19:08:37]Write to MH i2c: E2 02 01 5A 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 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 B3 00 00 00 F4 03 04 00 B6 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E7 CA 01 00 35 04 06 00 6C 00 00 57 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 5A 28 00 90 00 F6 [19:08:37]RAPDU: 90 00 [19:08:37]wFMCommunicate OK [19:08:37]wFMCommunicate request_size=10 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 0D 02 02 05 62 33 AF AD C8 [19:08:37]Write to MH i2c: E2 0D 00 5B 28 80 0D 02 02 05 00 62 33 AF AD C8 00 00 C0 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 5B 28 00 90 00 F7 [19:08:37]RAPDU: 90 00 [19:08:37]wFMCommunicate OK [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 0D 03 02 [19:08:37]Write to MH i2c: E2 08 00 5C 28 80 0D 03 02 00 00 00 00 FF [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0B 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0B 00 5C 28 00 8D 03 48 D6 C2 7A E8 75 90 00 47 [19:08:37]RAPDU: 8D 03 48 D6 C2 7A E8 75 90 00 [19:08:37]wFMCommunicate OK [19:08:37]SAM_PROTO_SignData done [19:08:37]FM_MakeSignedData done [19:08:37]CreateOFDProtocolMessage [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 11 00 00 [19:08:37]Write to MH i2c: E2 08 00 5D 28 80 11 00 00 00 00 00 00 FF [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 17 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 17 00 5D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 56 [19:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:08:37]wFMCommunicate OK [19:08:37]CreateOFDProtocolMessage done [19:08:37]OFDSenderStorePacket 117479 [19:08:37]StoreOFDPacket docnum=117479 [19:08:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C5 F1 07 01 F5 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B3 00 00 00 F4 03 04 00 B6 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E7 CA 01 00 35 04 06 00 6C 62 33 AF AD C8 8D 03 48 D6 C2 7A E8 75 [19:08:37]CheckFolder [19:08:37]dirname=/storage/ofd_packets [19:08:37]CheckFolder done [19:08:37]ProducePacketName [19:08:37]name=ofd_packets/00117479 [19:08:37]NVStorageSaveData ofd_packets/00117479 [19:08:37]File name is /storage/ofd_packets/00117479 [19:08:37]Write 301 bytes [19:08:37]NVStorageSaveData done [19:08:37]OFDSenderStorePacket done [19:08:37]KKMCreateOFDPacket done [19:08:37]NVStorageSaveData kkm_last_timestamp [19:08:37]File name is /storage/kkm_last_timestamp [19:08:37]Write 4 bytes [19:08:37]NVStorageSaveData done [19:08:37]ExternCall_PrintAddStr [19:08:37]wPrintStart [19:08:37]Write to MH i2c: 01 00 00 5E 28 86 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: 01 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: 01 07 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: 01 07 00 5E 28 00 00 00 00 00 FF 0F 9B [19:08:37]RasterBufferAndPrint [19:08:37]line Счет N : (1)245255 [19:08:37]line ИНН: 02508201610067 [19:08:37]line Контрольно-Кассовый Чек [19:08:37]line ПРОДАЖА [19:08:37]line ТРК (МРК, ГНК) : 11 [19:08:37]line Товар: 2710124130 [19:08:37]line Аи-92-К-2 [19:08:37]line 10.470 * 66.90 [19:08:37]line = 700.44 [19:08:37]line НДС 12% НСП 1% [19:08:37]line > о реализуемом товаре [19:08:37]line ОКРУГЛЕНИЕ: -0.44 [19:08:37]line ИТОГО: 700.00 [19:08:37]line Внесено: 700.00 [19:08:37]line СДАЧА: 0.00 [19:08:37]line НСП 1% : 6.20 [19:08:37]line НДС 12% : 74.38 [19:08:37]line Наличными: 700.00 [19:08:37]line Безнал.: 0.00 [19:08:37]line Место: АЗС № 173 "Партнер Нефть" [19:08:37]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:08:37]line СНО: Общий режим [19:08:37]line Чек 179 27.10.2024 19:08 [19:08:37]line Смена: 542 ФФД: 1.0 [19:08:37]line ЗНМ: 0300000115 [19:08:37]line РНМ: 0000000000091782 [19:08:37]line Версия ККМ: 001 [19:08:37]line ФМ: 0000000000871767 [19:08:37]line ФД: 117479 [19:08:37]line ФПД: 119169029746120 [19:08:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190838&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117479&fm=119169029746120&tin=02508201610067®Number=0000000000091782&sum=70000 [19:08:37]OFD Sender: Processing packet 117479 [packets to send 76, broken 75] [19:08:37]ProducePacketName [19:08:37]name=ofd_packets/00117479 [19:08:37]OFD Sender: To server: pG, [19:08:37]CommunicateWithHost lk.salyk.kg:30040 [19:08:37]ConnectInit lk.salyk.kg [19:08:37]written 0, free lines is 4095 [19:08:38]Connected sock=10 [19:08: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 36 37 0F 01 00 00 C5 F1 07 01 F5 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B3 00 00 00 F4 03 04 00 B6 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E7 CA 01 00 35 04 06 00 6C 62 33 AF AD C8 8D 03 48 D6 C2 7A E8 75 [19:08: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 36 37 4F 00 00 00 AA 5E 47 00 D2 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 36 37 10 04 04 00 E7 CA 01 00 F4 03 04 00 73 3B 1E 67 B6 04 01 00 00 4A B4 21 A3 6B FD 3A 34 [19:08:38]CommunicateWithHost err = 0 [19:08:38]CheckOFDResponse [19:08:38]1017 (14) - 77093643461234 [19:08:38]1041 (16) - 0000000000871767 [19:08:38]1040 (4) - 117479 [19:08:38]1012 (4) - 27.10.2024 13:09 [19:08:38]1206 (1) - 0 [19:08:38]OFD Sender: Remove packet 117479 [19:08:38]ProducePacketName [19:08:38]name=ofd_packets/00117479 [19:08:38]NVStorageDeleteData [19:08:38]Write to MH i2c: 01 00 00 88 28 B0 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 07 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 07 00 88 28 00 00 00 00 00 B8 0C 7B [19:08:38]RasterBufferAndPrint [19:08:38]line [19:08:38]line [19:08:38]line [19:08:38]line [19:08:38]line [19:08:38]written 0, free lines is 3263 [19:08:38]MH_Cut [19:08:38]Write to MH i2c: D1 01 00 8F 28 01 89 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: D1 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: D1 01 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: D1 01 00 8F 28 00 88 [19:08:38]Write to MH i2c: 01 00 00 90 28 B8 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]OFD Sender: No OFD packet to send [19:08:39]*** Cut start [19:08:39]*** Purtial cut [19:08:39]*** Stage 1: CUTSNS_PIN = 1 [19:08:39]Read from MH i2c: 01 [19:08:39]MH_I2C_Read... [19:08:39]*** Stop cut motor [19:08:39]*** Cut end [19:08:39]Read from MH i2c: 01 07 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: 01 07 00 90 28 00 00 00 00 00 FF 0F CD [19:08:39]process_action close_receipt done [19:08:39]requested_data is exist [19:08:39]produce_requested_data [19:08:39]requested_item fm.sn is exist - process it [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 11 00 00 [19:08:39]Write to MH i2c: E2 08 00 91 28 80 11 00 00 00 00 00 00 33 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:39]Read from MH i2c: E2 17 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 17 00 91 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8A [19:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:08:39]wFMCommunicate OK [19:08:39]requested_item fd.num is exist - process it [19:08:39]SAM_PROTO_GetFieldsCounters [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 13 00 00 [19:08:39]Write to MH i2c: E2 08 00 92 28 80 13 00 00 00 00 00 00 36 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 62 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 62 00 92 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E7 CA 01 00 0E 04 04 00 1E 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 48 [19:08: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E7 CA 01 00 0E 04 04 00 1E 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 [19:08:39]wFMCommunicate OK [19:08:39]SAM_PROTO_GetFieldsCounters done [19:08:39]requested_item shift.num is exist - process it [19:08:39]requested_item shift.opened is exist - process it [19:08:39]req_shift_opened [19:08:39]FM_GetShiftState [19:08:39]SAM_PROTO_GetShiftState [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 13 01 00 [19:08:39]Write to MH i2c: E2 08 00 93 28 80 13 01 00 00 00 00 00 38 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0E 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0E 00 93 28 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 77 [19:08:39]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:08:39]wFMCommunicate OK [19:08:39]SAM_PROTO_GetShiftState done [19:08:39]FM_GetShiftState done [19:08:39]req_shift_opened done [19:08:39]requested_item shift.open_date is exist - process it [19:08:39]req_shift_open_date [19:08:39]req_shift_open_date done [19:08:39]produce_requested_data done [19:08:39]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117479,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [19:08:39]process_action_free close_receipt [19:08:39]json_value_free [19:08:39]json_value_free done [19:08:39]process_json_proto returns [19:08:39]Send response to host [19:08:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117479,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [19:08:39]free response buf [19:08:39]execute_script done [19:08:39]execute_script returns [19:08:39]free content buf [19:08:39]Sock 7.Close socket [19:08:39]Sock 7.Thread stoped [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:53]OFD Sender: No OFD packet to send [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:55]accept exits with 9 [19:11:55]New connection [19:11:55]New thread 3067456868 created [19:11:55]Thread 3067600228 joined [19:11:55]Waiting for new connection... [19:11:55] Sock 9.Parse request [19:11:55]Sock 9.Check first char [19:11:55]Sock 9.First char is OK [19:11:55]request: POST /json_proto HTTP/1.0 [19:11:55]Method: POST [19:11:55]URL: /json_proto [19:11:55]Method is POST - this is cgi request [19:11:55]url: /json_proto [19:11:55]query_string will be loaded in cgi processing [19:11:55]execute_cgi json_proto POST (null) [19:11:55]execute_cgi path=json_proto method=POST [19:11:55]POST find Content-Length [19:11:55]Host: 172.17.96.67:8080 [19:11:55]Content-Length: 677 [19:11:55]Content-Type: application/json [19:11:55] [19:11:55]POST finish read [19:11:55]Found Content-Length = 677 [19:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [19:11:55]execute_script... [19:11: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)245256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [19:11:55]POST & json_proto [19:11:55]process_json_proto [19:11:55]json parsed OK: [19:11:55]protocol is kg_v1.0 [19:11:55]action value=close_receipt [19:11:55]process_action close_receipt [19:11:55]cmd_close_receipt [19:11:55]MH_GetDate [19:11:55]Write to MH i2c: F0 00 00 94 28 AB [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: F0 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: F0 09 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: F0 09 00 94 28 00 7E 90 1E 67 2B 09 1E 67 00 [19:11:55]GetLastDocTimeStamp 1730056118 [19:11:55]current date 1730056318 [19:11:55]FM_GetShiftState [19:11:55]SAM_PROTO_GetShiftState [19:11:55]wFMCommunicate request_size=4 [19:11:55]MH_SAM_APDU [19:11:55]CAPDU: 80 13 01 00 [19:11:55]Write to MH i2c: E2 08 00 95 28 80 13 01 00 00 00 00 00 3A [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:55]Read from MH i2c: E2 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 0E 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 0E 00 95 28 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 79 [19:11:55]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:11:55]wFMCommunicate OK [19:11:55]SAM_PROTO_GetShiftState done [19:11:55]FM_GetShiftState done [19:11:55]opened in 1729987372 [19:11:55]opened+sec_in_day 1730073772 [19:11:55]quantity*price = 30038 [19:11:55]sum+1 = 30039 [19:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 180 27.10.2024 19:11 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117480 ФПД: 248223584588301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191158&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117480&fm=248223584588301&tin=02508201610067®Number=0000000000091782&sum=30000 [19:11:56]StoreToDocumentArchive [19:11:56]shift 542 fd 117480 [19:11:56]save to /storage/0542/doc_00117480 [19:11:56]save last doc name /storage/0542/doc_00117480 to /storage/kkm_last_doc_name [19:11:56]save OK [19:11:56]Clear old archive folders... [19:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:56]tlvbuf is B6FF6230 [19:11:56]SAM_PROTO_ClearQueue [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 09 00 00 [19:11:56]Write to MH i2c: E2 08 00 A2 28 80 09 00 00 00 00 00 00 3C [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 A2 28 00 90 00 3E [19:11:56]RAPDU: 90 00 [19:11:56]wFMCommunicate OK [19:11:56]SAM_PROTO_ClearQueue done [19:11:56]KKMCreateOFDPacket [19:11:56]OFDProtocolAddRootSTLVToBuf [19:11:56]FM_MakeSignedData [19:11:56]FM_MakeSignedData [19:11:56]SAM_PROTO_SignData [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 0D 01 02 [19:11:56]Write to MH i2c: E2 08 00 A3 28 80 0D 01 02 00 00 00 00 44 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 A3 28 00 90 00 3F [19:11:56]RAPDU: 90 00 [19:11:56]wFMCommunicate OK [19:11:56]wFMCommunicate request_size=255 [19:11:56]MH_SAM_APDU [19:11: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 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 B4 00 00 00 F4 03 04 00 7E 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E8 CA 01 00 35 04 06 00 E1 [19:11:56]Write to MH i2c: E2 02 01 A4 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 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 B4 00 00 00 F4 03 04 00 7E 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E8 CA 01 00 35 04 06 00 E1 00 00 C5 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 A4 28 00 90 00 40 [19:11:56]RAPDU: 90 00 [19:11:56]wFMCommunicate OK [19:11:56]wFMCommunicate request_size=10 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 0D 02 02 05 C2 0E 95 92 0D [19:11:56]Write to MH i2c: E2 0D 00 A5 28 80 0D 02 02 05 00 C2 0E 95 92 0D 00 00 55 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 A5 28 00 90 00 41 [19:11:56]RAPDU: 90 00 [19:11:56]wFMCommunicate OK [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 0D 03 02 [19:11:56]Write to MH i2c: E2 08 00 A6 28 80 0D 03 02 00 00 00 00 49 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 0B 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 0B 00 A6 28 00 3F 44 B2 A7 FD 46 A4 9B 90 00 A8 [19:11:56]RAPDU: 3F 44 B2 A7 FD 46 A4 9B 90 00 [19:11:56]wFMCommunicate OK [19:11:56]SAM_PROTO_SignData done [19:11:56]FM_MakeSignedData done [19:11:56]CreateOFDProtocolMessage [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 11 00 00 [19:11:56]Write to MH i2c: E2 08 00 A7 28 80 11 00 00 00 00 00 00 49 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 17 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 17 00 A7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A0 [19:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:11:56]wFMCommunicate OK [19:11:56]CreateOFDProtocolMessage done [19:11:56]OFDSenderStorePacket 117480 [19:11:56]StoreOFDPacket docnum=117480 [19:11:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9F D5 07 01 92 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B4 00 00 00 F4 03 04 00 7E 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E8 CA 01 00 35 04 06 00 E1 C2 0E 95 92 0D 3F 44 B2 A7 FD 46 A4 9B [19:11:56]CheckFolder [19:11:56]dirname=/storage/ofd_packets [19:11:56]CheckFolder done [19:11:56]ProducePacketName [19:11:56]name=ofd_packets/00117480 [19:11:56]NVStorageSaveData ofd_packets/00117480 [19:11:56]File name is /storage/ofd_packets/00117480 [19:11:56]Write 301 bytes [19:11:56]NVStorageSaveData done [19:11:56]OFDSenderStorePacket done [19:11:56]KKMCreateOFDPacket done [19:11:56]NVStorageSaveData kkm_last_timestamp [19:11:56]File name is /storage/kkm_last_timestamp [19:11:56]Write 4 bytes [19:11:56]NVStorageSaveData done [19:11:56]ExternCall_PrintAddStr [19:11:56]wPrintStart [19:11:56]Write to MH i2c: 01 00 00 A8 28 D0 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 07 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 07 00 A8 28 00 00 00 00 00 FF 0F E5 [19:11:56]RasterBufferAndPrint [19:11:56]line Счет N : (1)245256 [19:11:56]line ИНН: 02508201610067 [19:11:56]line Контрольно-Кассовый Чек [19:11:56]line ПРОДАЖА [19:11:56]line ТРК (МРК, ГНК) : 11 [19:11:56]line Товар: 2710124130 [19:11:56]line Аи-92-К-2 [19:11:56]line 4.490 * 66.90 [19:11:56]line = 300.38 [19:11:56]line НДС 12% НСП 1% [19:11:56]line > о реализуемом товаре [19:11:56]line ОКРУГЛЕНИЕ: -0.38 [19:11:56]line ИТОГО: 300.00 [19:11:56]line Внесено: 300.00 [19:11:56]line СДАЧА: 0.00 [19:11:56]line НСП 1% : 2.66 [19:11:56]line НДС 12% : 31.90 [19:11:56]line Наличными: 300.00 [19:11:56]line Безнал.: 0.00 [19:11:56]line Место: АЗС № 173 "Партнер Нефть" [19:11:56]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:11:56]line СНО: Общий режим [19:11:56]line Чек 180 27.10.2024 19:11 [19:11:56]line Смена: 542 ФФД: 1.0 [19:11:56]line ЗНМ: 0300000115 [19:11:56]line РНМ: 0000000000091782 [19:11:56]line Версия ККМ: 001 [19:11:56]line ФМ: 0000000000871767 [19:11:56]line ФД: 117480 [19:11:56]line ФПД: 248223584588301 [19:11:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191158&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117480&fm=248223584588301&tin=02508201610067®Number=0000000000091782&sum=30000 [19:11:57]written 0, free lines is 4095 [19:11:57]OFD Sender: Processing packet 117480 [packets to send 76, broken 75] [19:11:57]ProducePacketName [19:11:57]name=ofd_packets/00117480 [19:11:57]OFD Sender: To server: pG, [19:11:57]CommunicateWithHost lk.salyk.kg:30040 [19:11:57]ConnectInit lk.salyk.kg [19:11:57]Connected sock=10 [19:11: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 36 37 0F 01 00 00 9F D5 07 01 92 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B4 00 00 00 F4 03 04 00 7E 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E8 CA 01 00 35 04 06 00 E1 C2 0E 95 92 0D 3F 44 B2 A7 FD 46 A4 9B [19:11: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 36 37 4F 00 00 00 AC CE 47 00 BD 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 36 37 10 04 04 00 E8 CA 01 00 F4 03 04 00 3A 3C 1E 67 B6 04 01 00 00 36 B2 EE 7B B7 F8 9E E9 [19:11:57]CommunicateWithHost err = 0 [19:11:57]CheckOFDResponse [19:11:57]1017 (14) - 77093643461234 [19:11:57]1041 (16) - 0000000000871767 [19:11:57]1040 (4) - 117480 [19:11:57]1012 (4) - 27.10.2024 13:12 [19:11:57]1206 (1) - 0 [19:11:57]OFD Sender: Remove packet 117480 [19:11:57]ProducePacketName [19:11:57]name=ofd_packets/00117480 [19:11:57]NVStorageDeleteData [19:11:57]Write to MH i2c: 01 00 00 D2 28 FA [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 07 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 B9 0C C6 [19:11:57]RasterBufferAndPrint [19:11:57]line [19:11:57]line [19:11:57]line [19:11:57]line [19:11:57]line [19:11:57]written 0, free lines is 3263 [19:11:57]MH_Cut [19:11:57]Write to MH i2c: D1 01 00 D9 28 01 D3 [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: D1 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: D1 01 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: D1 01 00 D9 28 00 D2 [19:11:57]Write to MH i2c: 01 00 00 DA 28 02 [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:58]OFD Sender: No OFD packet to send [19:11:58]*** Cut start [19:11:58]*** Purtial cut [19:11:58]*** Stage 1: CUTSNS_PIN = 1 [19:11:58]Read from MH i2c: 01 [19:11:58]MH_I2C_Read... [19:11:58]*** Stop cut motor [19:11:58]*** Cut end [19:11:58]Read from MH i2c: 01 07 00 [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: 01 07 00 DA 28 00 00 00 00 00 FF 0F 17 [19:11:58]process_action close_receipt done [19:11:58]requested_data is exist [19:11:58]produce_requested_data [19:11:58]requested_item fm.sn is exist - process it [19:11:58]wFMCommunicate request_size=4 [19:11:58]MH_SAM_APDU [19:11:58]CAPDU: 80 11 00 00 [19:11:58]Write to MH i2c: E2 08 00 DB 28 80 11 00 00 00 00 00 00 7D [19:11:58]Write i2c OK [19:11:58]MH_I2C_Read... [19:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:58]Read from MH i2c: E2 [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: E2 17 00 [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: E2 17 00 DB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D4 [19:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:11:58]wFMCommunicate OK [19:11:58]requested_item fd.num is exist - process it [19:11:58]SAM_PROTO_GetFieldsCounters [19:11:58]wFMCommunicate request_size=4 [19:11:58]MH_SAM_APDU [19:11:58]CAPDU: 80 13 00 00 [19:11:58]Write to MH i2c: E2 08 00 DC 28 80 13 00 00 00 00 00 00 80 [19:11:58]Write i2c OK [19:11:58]MH_I2C_Read... [19:11:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:58]Read from MH i2c: E2 [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: E2 62 00 [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: E2 62 00 DC 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E8 CA 01 00 0E 04 04 00 1E 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 96 [19:11: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E8 CA 01 00 0E 04 04 00 1E 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 [19:11:58]wFMCommunicate OK [19:11:58]SAM_PROTO_GetFieldsCounters done [19:11:58]requested_item shift.num is exist - process it [19:11:58]requested_item shift.opened is exist - process it [19:11:58]req_shift_opened [19:11:58]FM_GetShiftState [19:11:58]SAM_PROTO_GetShiftState [19:11:58]wFMCommunicate request_size=4 [19:11:58]MH_SAM_APDU [19:11:58]CAPDU: 80 13 01 00 [19:11:58]Write to MH i2c: E2 08 00 DD 28 80 13 01 00 00 00 00 00 82 [19:11:58]Write i2c OK [19:11:58]MH_I2C_Read... [19:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:59]Read from MH i2c: E2 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 0E 00 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 0E 00 DD 28 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C1 [19:11:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:11:59]wFMCommunicate OK [19:11:59]SAM_PROTO_GetShiftState done [19:11:59]FM_GetShiftState done [19:11:59]req_shift_opened done [19:11:59]requested_item shift.open_date is exist - process it [19:11:59]req_shift_open_date [19:11:59]req_shift_open_date done [19:11:59]produce_requested_data done [19:11:59]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117480,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [19:11:59]process_action_free close_receipt [19:11:59]json_value_free [19:11:59]json_value_free done [19:11:59]process_json_proto returns [19:11:59]Send response to host [19:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117480,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [19:11:59]free response buf [19:11:59]execute_script done [19:11:59]execute_script returns [19:11:59]free content buf [19:11:59]Sock 9.Close socket [19:11:59]Sock 9.Thread stoped [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:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:36]accept exits with 7 [19:23:36]New connection [19:23:36]New thread 3067600228 created [19:23:36]Thread 3067456868 joined [19:23:36]Waiting for new connection... [19:23:36] Sock 7.Parse request [19:23:36]Sock 7.Check first char [19:23:36]Sock 7.First char is OK [19:23:36]request: POST /json_proto HTTP/1.0 [19:23:36]Method: POST [19:23:36]URL: /json_proto [19:23:36]Method is POST - this is cgi request [19:23:36]url: /json_proto [19:23:36]query_string will be loaded in cgi processing [19:23:36]execute_cgi json_proto POST (null) [19:23:36]execute_cgi path=json_proto method=POST [19:23:36]POST find Content-Length [19:23:36]Host: 172.17.96.67:8080 [19:23:36]Content-Length: 677 [19:23:36]Content-Type: application/json [19:23:36] [19:23:36]POST finish read [19:23:36]Found Content-Length = 677 [19:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:23:36]execute_script... [19:23: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)245257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:23:36]POST & json_proto [19:23:36]process_json_proto [19:23:36]json parsed OK: [19:23:36]protocol is kg_v1.0 [19:23:36]action value=close_receipt [19:23:36]process_action close_receipt [19:23:36]cmd_close_receipt [19:23:36]MH_GetDate [19:23:36]Write to MH i2c: F0 00 00 DE 28 F5 [19:23:36]Write i2c OK [19:23:36]MH_I2C_Read... [19:23:36]Read from MH i2c: F0 [19:23:36]MH_I2C_Read... [19:23:36]Read from MH i2c: F0 09 00 [19:23:36]MH_I2C_Read... [19:23:36]Read from MH i2c: F0 09 00 DE 28 00 3B 93 1E 67 2B 09 1E 67 0A [19:23:36]GetLastDocTimeStamp 1730056318 [19:23:36]current date 1730057019 [19:23:36]FM_GetShiftState [19:23:36]SAM_PROTO_GetShiftState [19:23:36]wFMCommunicate request_size=4 [19:23:36]MH_SAM_APDU [19:23:36]CAPDU: 80 13 01 00 [19:23:36]Write to MH i2c: E2 08 00 DF 28 80 13 01 00 00 00 00 00 84 [19:23:36]Write i2c OK [19:23:36]MH_I2C_Read... [19:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:36]Read from MH i2c: E2 [19:23:36]MH_I2C_Read... [19:23:36]Read from MH i2c: E2 0E 00 [19:23:36]MH_I2C_Read... [19:23:36]Read from MH i2c: E2 0E 00 DF 28 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C3 [19:23:36]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:23:36]wFMCommunicate OK [19:23:36]SAM_PROTO_GetShiftState done [19:23:36]FM_GetShiftState done [19:23:36]opened in 1729987372 [19:23:36]opened+sec_in_day 1730073772 [19:23:36]quantity*price = 50041 [19:23:36]sum+1 = 50042 [19:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 181 27.10.2024 19:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117481 ФПД: 134838108706035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192339&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117481&fm=134838108706035&tin=02508201610067®Number=0000000000091782&sum=50000 [19:23:37]StoreToDocumentArchive [19:23:37]shift 542 fd 117481 [19:23:37]save to /storage/0542/doc_00117481 [19:23:37]save last doc name /storage/0542/doc_00117481 to /storage/kkm_last_doc_name [19:23:37]save OK [19:23:37]Clear old archive folders... [19:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:37]tlvbuf is 016FA730 [19:23:37]SAM_PROTO_ClearQueue [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 09 00 00 [19:23:37]Write to MH i2c: E2 08 00 EC 28 80 09 00 00 00 00 00 00 86 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 03 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 03 00 EC 28 00 90 00 88 [19:23:37]RAPDU: 90 00 [19:23:37]wFMCommunicate OK [19:23:37]SAM_PROTO_ClearQueue done [19:23:37]KKMCreateOFDPacket [19:23:37]OFDProtocolAddRootSTLVToBuf [19:23:37]FM_MakeSignedData [19:23:37]FM_MakeSignedData [19:23:37]SAM_PROTO_SignData [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 0D 01 02 [19:23:37]Write to MH i2c: E2 08 00 ED 28 80 0D 01 02 00 00 00 00 8E [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 03 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [19:23:37]RAPDU: 90 00 [19:23:37]wFMCommunicate OK [19:23:37]wFMCommunicate request_size=255 [19:23:37]MH_SAM_APDU [19:23: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 3B 93 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E9 CA 01 00 35 04 06 00 7A [19:23:37]Write to MH i2c: E2 02 01 EE 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 B5 00 00 00 F4 03 04 00 3B 93 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E9 CA 01 00 35 04 06 00 7A 00 00 76 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [19:23:38]RAPDU: 90 00 [19:23:38]wFMCommunicate OK [19:23:38]wFMCommunicate request_size=10 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 0D 02 02 05 A2 71 92 54 F3 [19:23:38]Write to MH i2c: E2 0D 00 EF 28 80 0D 02 02 05 00 A2 71 92 54 F3 00 00 87 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [19:23:38]RAPDU: 90 00 [19:23:38]wFMCommunicate OK [19:23:38]wFMCommunicate request_size=4 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 0D 03 02 [19:23:38]Write to MH i2c: E2 08 00 F0 28 80 0D 03 02 00 00 00 00 93 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 0B 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 0B 00 F0 28 00 15 93 A0 2F 46 FA C3 90 90 00 9E [19:23:38]RAPDU: 15 93 A0 2F 46 FA C3 90 90 00 [19:23:38]wFMCommunicate OK [19:23:38]SAM_PROTO_SignData done [19:23:38]FM_MakeSignedData done [19:23:38]CreateOFDProtocolMessage [19:23:38]wFMCommunicate request_size=4 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 11 00 00 [19:23:38]Write to MH i2c: E2 08 00 F1 28 80 11 00 00 00 00 00 00 93 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 17 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 17 00 F1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EA [19:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:23:38]wFMCommunicate OK [19:23:38]CreateOFDProtocolMessage done [19:23:38]OFDSenderStorePacket 117481 [19:23:38]StoreOFDPacket docnum=117481 [19:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B3 65 07 01 3B 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 3B 93 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E9 CA 01 00 35 04 06 00 7A A2 71 92 54 F3 15 93 A0 2F 46 FA C3 90 [19:23:38]CheckFolder [19:23:38]dirname=/storage/ofd_packets [19:23:38]CheckFolder done [19:23:38]ProducePacketName [19:23:38]name=ofd_packets/00117481 [19:23:38]NVStorageSaveData ofd_packets/00117481 [19:23:38]File name is /storage/ofd_packets/00117481 [19:23:38]Write 301 bytes [19:23:38]NVStorageSaveData done [19:23:38]OFDSenderStorePacket done [19:23:38]KKMCreateOFDPacket done [19:23:38]NVStorageSaveData kkm_last_timestamp [19:23:38]File name is /storage/kkm_last_timestamp [19:23:38]Write 4 bytes [19:23:38]NVStorageSaveData done [19:23:38]OFD Sender: Processing packet 117481 [packets to send 76, broken 75] [19:23:38]ProducePacketName [19:23:38]name=ofd_packets/00117481 [19:23:38]OFD Sender: To server: pG, [19:23:38]CommunicateWithHost lk.salyk.kg:30040 [19:23:38]ConnectInit lk.salyk.kg [19:23:38]ExternCall_PrintAddStr [19:23:38]wPrintStart [19:23:38]Write to MH i2c: 01 00 00 F2 28 1A [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: 01 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: 01 07 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: 01 07 00 F2 28 00 00 00 00 00 FF 0F 2F [19:23:38]RasterBufferAndPrint [19:23:38]line Счет N : (1)245257 [19:23:38]line ИНН: 02508201610067 [19:23:38]line Контрольно-Кассовый Чек [19:23:38]line ПРОДАЖА [19:23:38]line ТРК (МРК, ГНК) : 21 [19:23:38]line Товар: 2710124130 [19:23:38]line Аи-92-К-2 [19:23:38]line 7.480 * 66.90 [19:23:38]line = 500.41 [19:23:38]line НДС 12% НСП 1% [19:23:38]line > о реализуемом товаре [19:23:38]line ОКРУГЛЕНИЕ: -0.41 [19:23:38]line ИТОГО: 500.00 [19:23:38]line Внесено: 500.00 [19:23:38]line СДАЧА: 0.00 [19:23:38]line НСП 1% : 4.43 [19:23:38]line НДС 12% : 53.14 [19:23:38]line Наличными: 500.00 [19:23:38]line Безнал.: 0.00 [19:23:38]line Место: АЗС № 173 "Партнер Нефть" [19:23:38]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:23:38]line СНО: Общий режим [19:23:38]line Чек 181 27.10.2024 19:23 [19:23:38]line Смена: 542 ФФД: 1.0 [19:23:38]line ЗНМ: 0300000115 [19:23:38]line РНМ: 0000000000091782 [19:23:38]line Версия ККМ: 001 [19:23:38]line ФМ: 0000000000871767 [19:23:38]line ФД: 117481 [19:23:38]line ФПД: 134838108706035 [19:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192339&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117481&fm=134838108706035&tin=02508201610067®Number=0000000000091782&sum=50000 [19:23:38]Connected sock=11 [19:23: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 36 37 0F 01 00 00 B3 65 07 01 3B 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 3B 93 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E9 CA 01 00 35 04 06 00 7A A2 71 92 54 F3 15 93 A0 2F 46 FA C3 90 [19:23:38]written 0, free lines is 4095 [19:23: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 36 37 4F 00 00 00 A4 72 47 00 D7 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 36 37 10 04 04 00 E9 CA 01 00 F4 03 04 00 F7 3E 1E 67 B6 04 01 00 00 3F EA F8 C1 20 2E 40 68 [19:23:38]CommunicateWithHost err = 0 [19:23:38]CheckOFDResponse [19:23:38]1017 (14) - 77093643461234 [19:23:38]1041 (16) - 0000000000871767 [19:23:38]1040 (4) - 117481 [19:23:38]1012 (4) - 27.10.2024 13:24 [19:23:38]1206 (1) - 0 [19:23:38]OFD Sender: Remove packet 117481 [19:23:38]ProducePacketName [19:23:38]name=ofd_packets/00117481 [19:23:38]NVStorageDeleteData [19:23:38]Write to MH i2c: 01 00 00 1C 29 45 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: 01 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: 01 07 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: 01 07 00 1C 29 00 00 00 00 00 B6 0C 0E [19:23:38]RasterBufferAndPrint [19:23:38]line [19:23:38]line [19:23:38]line [19:23:38]line [19:23:38]line [19:23:38]written 0, free lines is 3262 [19:23:38]MH_Cut [19:23:38]Write to MH i2c: D1 01 00 23 29 01 1E [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: D1 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: D1 01 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: D1 01 00 23 29 00 1D [19:23:38]Write to MH i2c: 01 00 00 24 29 4D [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:39]OFD Sender: No OFD packet to send [19:23:39]*** Cut start [19:23:39]*** Purtial cut [19:23:39]*** Stage 1: CUTSNS_PIN = 1 [19:23:40]Read from MH i2c: 01 [19:23:40]*** Stop cut motor [19:23:40]*** Cut end [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: 01 07 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: 01 07 00 24 29 00 00 00 00 00 FF 0F 62 [19:23:40]process_action close_receipt done [19:23:40]requested_data is exist [19:23:40]produce_requested_data [19:23:40]requested_item fm.sn is exist - process it [19:23:40]wFMCommunicate request_size=4 [19:23:40]MH_SAM_APDU [19:23:40]CAPDU: 80 11 00 00 [19:23:40]Write to MH i2c: E2 08 00 25 29 80 11 00 00 00 00 00 00 C8 [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:40]Read from MH i2c: E2 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 17 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 17 00 25 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1F [19:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:23:40]wFMCommunicate OK [19:23:40]requested_item fd.num is exist - process it [19:23:40]SAM_PROTO_GetFieldsCounters [19:23:40]wFMCommunicate request_size=4 [19:23:40]MH_SAM_APDU [19:23:40]CAPDU: 80 13 00 00 [19:23:40]Write to MH i2c: E2 08 00 26 29 80 13 00 00 00 00 00 00 CB [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:40]Read from MH i2c: E2 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 62 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 62 00 26 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E9 CA 01 00 0E 04 04 00 1E 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 E5 [19:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E9 CA 01 00 0E 04 04 00 1E 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 [19:23:40]wFMCommunicate OK [19:23:40]SAM_PROTO_GetFieldsCounters done [19:23:40]requested_item shift.num is exist - process it [19:23:40]requested_item shift.opened is exist - process it [19:23:40]req_shift_opened [19:23:40]FM_GetShiftState [19:23:40]SAM_PROTO_GetShiftState [19:23:40]wFMCommunicate request_size=4 [19:23:40]MH_SAM_APDU [19:23:40]CAPDU: 80 13 01 00 [19:23:40]Write to MH i2c: E2 08 00 27 29 80 13 01 00 00 00 00 00 CD [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:40]Read from MH i2c: E2 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 0E 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 0E 00 27 29 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 0C [19:23:40]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:23:40]wFMCommunicate OK [19:23:40]SAM_PROTO_GetShiftState done [19:23:40]FM_GetShiftState done [19:23:40]req_shift_opened done [19:23:40]requested_item shift.open_date is exist - process it [19:23:40]req_shift_open_date [19:23:40]req_shift_open_date done [19:23:40]produce_requested_data done [19:23:40]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117481,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [19:23:40]process_action_free close_receipt [19:23:40]json_value_free [19:23:40]json_value_free done [19:23:40]process_json_proto returns [19:23:40]Send response to host [19:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117481,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [19:23:40]free response buf [19:23:40]execute_script done [19:23:40]execute_script returns [19:23:40]free content buf [19:23:40]Sock 7.Close socket [19:23:40]Sock 7.Thread stoped [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:33]accept exits with 9 [19:31:33]New connection [19:31:33]New thread 3067456868 created [19:31:33]Thread 3067600228 joined [19:31:33]Waiting for new connection... [19:31:33] Sock 9.Parse request [19:31:33]Sock 9.Check first char [19:31:33]Sock 9.First char is OK [19:31:33]request: POST /json_proto HTTP/1.0 [19:31:33]Method: POST [19:31:33]URL: /json_proto [19:31:33]Method is POST - this is cgi request [19:31:33]url: /json_proto [19:31:33]query_string will be loaded in cgi processing [19:31:33]execute_cgi json_proto POST (null) [19:31:33]execute_cgi path=json_proto method=POST [19:31:33]POST find Content-Length [19:31:33]Host: 172.17.96.67:8080 [19:31:33]Content-Length: 677 [19:31:33]Content-Type: application/json [19:31:33] [19:31:33]POST finish read [19:31:33]Found Content-Length = 677 [19:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:31:33]execute_script... [19:31: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)245258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:31:33]POST & json_proto [19:31:33]process_json_proto [19:31:33]json parsed OK: [19:31:33]protocol is kg_v1.0 [19:31:33]action value=close_receipt [19:31:33]process_action close_receipt [19:31:33]cmd_close_receipt [19:31:33]MH_GetDate [19:31:33]Write to MH i2c: F0 00 00 28 29 40 [19:31:33]Write i2c OK [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: F0 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: F0 09 00 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: F0 09 00 28 29 00 18 95 1E 67 2B 09 1E 67 34 [19:31:33]GetLastDocTimeStamp 1730057019 [19:31:33]current date 1730057496 [19:31:33]FM_GetShiftState [19:31:33]SAM_PROTO_GetShiftState [19:31:33]wFMCommunicate request_size=4 [19:31:33]MH_SAM_APDU [19:31:33]CAPDU: 80 13 01 00 [19:31:33]Write to MH i2c: E2 08 00 29 29 80 13 01 00 00 00 00 00 CF [19:31:33]Write i2c OK [19:31:33]MH_I2C_Read... [19:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:33]Read from MH i2c: E2 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: E2 0E 00 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: E2 0E 00 29 29 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 0E [19:31:33]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:31:33]wFMCommunicate OK [19:31:33]SAM_PROTO_GetShiftState done [19:31:33]FM_GetShiftState done [19:31:33]opened in 1729987372 [19:31:33]opened+sec_in_day 1730073772 [19:31:33]quantity*price = 50041 [19:31:33]sum+1 = 50042 [19:31: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 182 27.10.2024 19:31 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117482 ФПД: 130605050780991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193136&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117482&fm=130605050780991&tin=02508201610067®Number=0000000000091782&sum=50000 [19:31:34]StoreToDocumentArchive [19:31:34]shift 542 fd 117482 [19:31:34]save to /storage/0542/doc_00117482 [19:31:34]save last doc name /storage/0542/doc_00117482 to /storage/kkm_last_doc_name [19:31:34]save OK [19:31:34]Clear old archive folders... [19:31:34]OFD Sender: No OFD packet to send [19:31:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:34]tlvbuf is 017CFE70 [19:31:34]SAM_PROTO_ClearQueue [19:31:34]wFMCommunicate request_size=4 [19:31:34]MH_SAM_APDU [19:31:34]CAPDU: 80 09 00 00 [19:31:34]Write to MH i2c: E2 08 00 36 29 80 09 00 00 00 00 00 00 D1 [19:31:34]Write i2c OK [19:31:34]MH_I2C_Read... [19:31:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:34]Read from MH i2c: E2 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 03 00 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 03 00 36 29 00 90 00 D3 [19:31:34]RAPDU: 90 00 [19:31:34]wFMCommunicate OK [19:31:34]SAM_PROTO_ClearQueue done [19:31:34]KKMCreateOFDPacket [19:31:34]OFDProtocolAddRootSTLVToBuf [19:31:34]FM_MakeSignedData [19:31:34]FM_MakeSignedData [19:31:34]SAM_PROTO_SignData [19:31:34]wFMCommunicate request_size=4 [19:31:34]MH_SAM_APDU [19:31:34]CAPDU: 80 0D 01 02 [19:31:34]Write to MH i2c: E2 08 00 37 29 80 0D 01 02 00 00 00 00 D9 [19:31:34]Write i2c OK [19:31:34]MH_I2C_Read... [19:31:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:34]Read from MH i2c: E2 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 03 00 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 03 00 37 29 00 90 00 D4 [19:31:34]RAPDU: 90 00 [19:31:34]wFMCommunicate OK [19:31:34]wFMCommunicate request_size=255 [19:31:34]MH_SAM_APDU [19:31: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 B6 00 00 00 F4 03 04 00 18 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EA CA 01 00 35 04 06 00 76 [19:31:34]Write to MH i2c: E2 02 01 38 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 18 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EA CA 01 00 35 04 06 00 76 00 00 9E [19:31:34]Write i2c OK [19:31:34]MH_I2C_Read... [19:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:35]Read from MH i2c: E2 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 38 29 00 90 00 D5 [19:31:35]RAPDU: 90 00 [19:31:35]wFMCommunicate OK [19:31:35]wFMCommunicate request_size=10 [19:31:35]MH_SAM_APDU [19:31:35]CAPDU: 80 0D 02 02 05 C8 DB A8 5D 3F [19:31:35]Write to MH i2c: E2 0D 00 39 29 80 0D 02 02 05 00 C8 DB A8 5D 3F 00 00 CD [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:35]Read from MH i2c: E2 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 39 29 00 90 00 D6 [19:31:35]RAPDU: 90 00 [19:31:35]wFMCommunicate OK [19:31:35]wFMCommunicate request_size=4 [19:31:35]MH_SAM_APDU [19:31:35]CAPDU: 80 0D 03 02 [19:31:35]Write to MH i2c: E2 08 00 3A 29 80 0D 03 02 00 00 00 00 DE [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:35]Read from MH i2c: E2 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 0B 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 0B 00 3A 29 00 E5 04 A5 2B 48 63 8D 26 90 00 F6 [19:31:35]RAPDU: E5 04 A5 2B 48 63 8D 26 90 00 [19:31:35]wFMCommunicate OK [19:31:35]SAM_PROTO_SignData done [19:31:35]FM_MakeSignedData done [19:31:35]CreateOFDProtocolMessage [19:31:35]wFMCommunicate request_size=4 [19:31:35]MH_SAM_APDU [19:31:35]CAPDU: 80 11 00 00 [19:31:35]Write to MH i2c: E2 08 00 3B 29 80 11 00 00 00 00 00 00 DE [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:35]Read from MH i2c: E2 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 17 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 17 00 3B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 35 [19:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:31:35]wFMCommunicate OK [19:31:35]CreateOFDProtocolMessage done [19:31:35]OFDSenderStorePacket 117482 [19:31:35]StoreOFDPacket docnum=117482 [19:31:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 12 D5 07 01 DE 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 18 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EA CA 01 00 35 04 06 00 76 C8 DB A8 5D 3F E5 04 A5 2B 48 63 8D 26 [19:31:35]CheckFolder [19:31:35]dirname=/storage/ofd_packets [19:31:35]CheckFolder done [19:31:35]ProducePacketName [19:31:35]name=ofd_packets/00117482 [19:31:35]NVStorageSaveData ofd_packets/00117482 [19:31:35]File name is /storage/ofd_packets/00117482 [19:31:35]Write 301 bytes [19:31:35]NVStorageSaveData done [19:31:35]OFDSenderStorePacket done [19:31:35]KKMCreateOFDPacket done [19:31:35]NVStorageSaveData kkm_last_timestamp [19:31:35]File name is /storage/kkm_last_timestamp [19:31:35]Write 4 bytes [19:31:35]NVStorageSaveData done [19:31:35]ExternCall_PrintAddStr [19:31:35]wPrintStart [19:31:35]Write to MH i2c: 01 00 00 3C 29 65 [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: 01 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: 01 07 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: 01 07 00 3C 29 00 00 00 00 00 FF 0F 7A [19:31:35]RasterBufferAndPrint [19:31:35]line Счет N : (1)245258 [19:31:35]line ИНН: 02508201610067 [19:31:35]line Контрольно-Кассовый Чек [19:31:35]line ПРОДАЖА [19:31:35]line ТРК (МРК, ГНК) : 21 [19:31:35]line Товар: 2710124130 [19:31:35]line Аи-92-К-2 [19:31:35]line 7.480 * 66.90 [19:31:35]line = 500.41 [19:31:35]line НДС 12% НСП 1% [19:31:35]line > о реализуемом товаре [19:31:35]line ОКРУГЛЕНИЕ: -0.41 [19:31:35]line ИТОГО: 500.00 [19:31:35]line Внесено: 500.00 [19:31:35]line СДАЧА: 0.00 [19:31:35]line НСП 1% : 4.43 [19:31:35]line НДС 12% : 53.14 [19:31:35]line Наличными: 500.00 [19:31:35]line Безнал.: 0.00 [19:31:35]line Место: АЗС № 173 "Партнер Нефть" [19:31:35]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:31:35]line СНО: Общий режим [19:31:35]line Чек 182 27.10.2024 19:31 [19:31:35]line Смена: 542 ФФД: 1.0 [19:31:35]line ЗНМ: 0300000115 [19:31:35]line РНМ: 0000000000091782 [19:31:35]line Версия ККМ: 001 [19:31:35]line ФМ: 0000000000871767 [19:31:35]line ФД: 117482 [19:31:35]line ФПД: 130605050780991 [19:31:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193136&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117482&fm=130605050780991&tin=02508201610067®Number=0000000000091782&sum=50000 [19:31:35]OFD Sender: Processing packet 117482 [packets to send 76, broken 75] [19:31:35]ProducePacketName [19:31:35]name=ofd_packets/00117482 [19:31:35]OFD Sender: To server: pG, [19:31:35]CommunicateWithHost lk.salyk.kg:30040 [19:31:35]ConnectInit lk.salyk.kg [19:31:35]written 0, free lines is 4095 [19:31:35]Connected sock=10 [19:31: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 36 37 0F 01 00 00 12 D5 07 01 DE 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 18 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EA CA 01 00 35 04 06 00 76 C8 DB A8 5D 3F E5 04 A5 2B 48 63 8D 26 [19:31: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 36 37 4F 00 00 00 BB 1A 47 00 99 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EA CA 01 00 F4 03 04 00 D5 40 1E 67 B6 04 01 00 00 5A 76 DC 82 6F 22 BD 88 [19:31:35]CommunicateWithHost err = 0 [19:31:35]CheckOFDResponse [19:31:35]1017 (14) - 77093643461234 [19:31:35]1041 (16) - 0000000000871767 [19:31:35]1040 (4) - 117482 [19:31:35]1012 (4) - 27.10.2024 13:32 [19:31:35]1206 (1) - 0 [19:31:35]OFD Sender: Remove packet 117482 [19:31:35]ProducePacketName [19:31:35]name=ofd_packets/00117482 [19:31:35]NVStorageDeleteData [19:31:35]Write to MH i2c: 01 00 00 66 29 8F [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: 01 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: 01 07 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: 01 07 00 66 29 00 00 00 00 00 B6 0C 58 [19:31:35]RasterBufferAndPrint [19:31:35]line [19:31:35]line [19:31:35]line [19:31:35]line [19:31:35]line [19:31:35]written 0, free lines is 3259 [19:31:36]MH_Cut [19:31:36]Write to MH i2c: D1 01 00 6D 29 01 68 [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: D1 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: D1 01 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: D1 01 00 6D 29 00 67 [19:31:36]Write to MH i2c: 01 00 00 6E 29 97 [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]OFD Sender: No OFD packet to send [19:31:36]*** Cut start [19:31:36]*** Purtial cut [19:31:36]*** Stage 1: CUTSNS_PIN = 1 [19:31:37]Read from MH i2c: 01 [19:31:37]MH_I2C_Read... [19:31:37]*** Stop cut motor [19:31:37]*** Cut end [19:31:37]Read from MH i2c: 01 07 00 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: 01 07 00 6E 29 00 00 00 00 00 FF 0F AC [19:31:37]process_action close_receipt done [19:31:37]requested_data is exist [19:31:37]produce_requested_data [19:31:37]requested_item fm.sn is exist - process it [19:31:37]wFMCommunicate request_size=4 [19:31:37]MH_SAM_APDU [19:31:37]CAPDU: 80 11 00 00 [19:31:37]Write to MH i2c: E2 08 00 6F 29 80 11 00 00 00 00 00 00 12 [19:31:37]Write i2c OK [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: E2 [19:31:37]MH_I2C_Read... [19:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:37]Read from MH i2c: E2 17 00 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: E2 17 00 6F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 69 [19:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:31:37]wFMCommunicate OK [19:31:37]requested_item fd.num is exist - process it [19:31:37]SAM_PROTO_GetFieldsCounters [19:31:37]wFMCommunicate request_size=4 [19:31:37]MH_SAM_APDU [19:31:37]CAPDU: 80 13 00 00 [19:31:37]Write to MH i2c: E2 08 00 70 29 80 13 00 00 00 00 00 00 15 [19:31:37]Write i2c OK [19:31:37]MH_I2C_Read... [19:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:37]Read from MH i2c: E2 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: E2 62 00 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: E2 62 00 70 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EA CA 01 00 0E 04 04 00 1E 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 33 [19:31: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EA CA 01 00 0E 04 04 00 1E 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 [19:31:37]wFMCommunicate OK [19:31:37]SAM_PROTO_GetFieldsCounters done [19:31:37]requested_item shift.num is exist - process it [19:31:37]requested_item shift.opened is exist - process it [19:31:37]req_shift_opened [19:31:37]FM_GetShiftState [19:31:37]SAM_PROTO_GetShiftState [19:31:37]wFMCommunicate request_size=4 [19:31:37]MH_SAM_APDU [19:31:37]CAPDU: 80 13 01 00 [19:31:37]Write to MH i2c: E2 08 00 71 29 80 13 01 00 00 00 00 00 17 [19:31:37]Write i2c OK [19:31:37]MH_I2C_Read... [19:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:37]Read from MH i2c: E2 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: E2 0E 00 [19:31:37]MH_I2C_Read... [19:31:37]Read from MH i2c: E2 0E 00 71 29 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 56 [19:31:37]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:31:37]wFMCommunicate OK [19:31:37]SAM_PROTO_GetShiftState done [19:31:37]FM_GetShiftState done [19:31:37]req_shift_opened done [19:31:37]requested_item shift.open_date is exist - process it [19:31:37]req_shift_open_date [19:31:37]req_shift_open_date done [19:31:37]produce_requested_data done [19:31:37]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117482,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [19:31:37]process_action_free close_receipt [19:31:37]json_value_free [19:31:37]json_value_free done [19:31:37]process_json_proto returns [19:31:37]Send response to host [19:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117482,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [19:31:37]free response buf [19:31:37]execute_script done [19:31:37]execute_script returns [19:31:37]free content buf [19:31:37]Sock 9.Close socket [19:31:37]Sock 9.Thread stoped [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:03]accept exits with 7 [19:34:03]New connection [19:34:03]New thread 3067600228 created [19:34:03]Thread 3067456868 joined [19:34:03]Waiting for new connection... [19:34:03] Sock 7.Parse request [19:34:03]Sock 7.Check first char [19:34:03]Sock 7.First char is OK [19:34:03]request: POST /json_proto HTTP/1.0 [19:34:03]Method: POST [19:34:03]URL: /json_proto [19:34:03]Method is POST - this is cgi request [19:34:03]url: /json_proto [19:34:03]query_string will be loaded in cgi processing [19:34:03]execute_cgi json_proto POST (null) [19:34:03]execute_cgi path=json_proto method=POST [19:34:03]POST find Content-Length [19:34:03]Host: 172.17.96.67:8080 [19:34:03]Content-Length: 677 [19:34:03]Content-Type: application/json [19:34:03] [19:34:03]POST finish read [19:34:03]Found Content-Length = 677 [19:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [19:34:03]execute_script... [19:34: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)245259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [19:34:03]POST & json_proto [19:34:03]process_json_proto [19:34:03]json parsed OK: [19:34:03]protocol is kg_v1.0 [19:34:03]action value=close_receipt [19:34:03]process_action close_receipt [19:34:03]cmd_close_receipt [19:34:03]MH_GetDate [19:34:03]Write to MH i2c: F0 00 00 72 29 8A [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: F0 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: F0 09 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: F0 09 00 72 29 00 AE 95 1E 67 2B 09 1E 67 14 [19:34:03]GetLastDocTimeStamp 1730057496 [19:34:03]current date 1730057646 [19:34:03]FM_GetShiftState [19:34:03]SAM_PROTO_GetShiftState [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 13 01 00 [19:34:03]Write to MH i2c: E2 08 00 73 29 80 13 01 00 00 00 00 00 19 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 0E 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 0E 00 73 29 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 58 [19:34:03]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:34:03]wFMCommunicate OK [19:34:03]SAM_PROTO_GetShiftState done [19:34:03]FM_GetShiftState done [19:34:03]opened in 1729987372 [19:34:03]opened+sec_in_day 1730073772 [19:34:03]quantity*price = 30038 [19:34:03]sum+1 = 30039 [19:34: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 183 27.10.2024 19:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117483 ФПД: 81715358217969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193406&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117483&fm=81715358217969&tin=02508201610067®Number=0000000000091782&sum=30000 [19:34:05]StoreToDocumentArchive [19:34:05]shift 542 fd 117483 [19:34:05]save to /storage/0542/doc_00117483 [19:34:05]save last doc name /storage/0542/doc_00117483 to /storage/kkm_last_doc_name [19:34:05]save OK [19:34:05]Clear old archive folders... [19:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:05]tlvbuf is 016DE670 [19:34:05]SAM_PROTO_ClearQueue [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 09 00 00 [19:34:05]Write to MH i2c: E2 08 00 80 29 80 09 00 00 00 00 00 00 1B [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 80 29 00 90 00 1D [19:34:05]RAPDU: 90 00 [19:34:05]wFMCommunicate OK [19:34:05]SAM_PROTO_ClearQueue done [19:34:05]KKMCreateOFDPacket [19:34:05]OFDProtocolAddRootSTLVToBuf [19:34:05]FM_MakeSignedData [19:34:05]FM_MakeSignedData [19:34:05]SAM_PROTO_SignData [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 0D 01 02 [19:34:05]Write to MH i2c: E2 08 00 81 29 80 0D 01 02 00 00 00 00 23 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 81 29 00 90 00 1E [19:34:05]RAPDU: 90 00 [19:34:05]wFMCommunicate OK [19:34:05]wFMCommunicate request_size=255 [19:34:05]MH_SAM_APDU [19:34: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 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 B7 00 00 00 F4 03 04 00 AE 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EB CA 01 00 35 04 06 00 4A [19:34:05]Write to MH i2c: E2 02 01 82 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 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 B7 00 00 00 F4 03 04 00 AE 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EB CA 01 00 35 04 06 00 4A 00 00 48 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 82 29 00 90 00 1F [19:34:05]RAPDU: 90 00 [19:34:05]wFMCommunicate OK [19:34:05]wFMCommunicate request_size=10 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 0D 02 02 05 51 D6 E6 36 F1 [19:34:05]Write to MH i2c: E2 0D 00 83 29 80 0D 02 02 05 00 51 D6 E6 36 F1 00 00 64 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [19:34:05]RAPDU: 90 00 [19:34:05]wFMCommunicate OK [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 0D 03 02 [19:34:05]Write to MH i2c: E2 08 00 84 29 80 0D 03 02 00 00 00 00 28 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 0B 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 0B 00 84 29 00 FE 8D 4E 75 B3 82 28 B8 90 00 8C [19:34:05]RAPDU: FE 8D 4E 75 B3 82 28 B8 90 00 [19:34:05]wFMCommunicate OK [19:34:05]SAM_PROTO_SignData done [19:34:05]FM_MakeSignedData done [19:34:05]CreateOFDProtocolMessage [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 11 00 00 [19:34:05]Write to MH i2c: E2 08 00 85 29 80 11 00 00 00 00 00 00 28 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 17 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 17 00 85 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7F [19:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:34:05]wFMCommunicate OK [19:34:05]CreateOFDProtocolMessage done [19:34:05]OFDSenderStorePacket 117483 [19:34:05]StoreOFDPacket docnum=117483 [19:34:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C6 01 07 01 CE 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 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 B7 00 00 00 F4 03 04 00 AE 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EB CA 01 00 35 04 06 00 4A 51 D6 E6 36 F1 FE 8D 4E 75 B3 82 28 B8 [19:34:05]CheckFolder [19:34:05]dirname=/storage/ofd_packets [19:34:05]CheckFolder done [19:34:05]ProducePacketName [19:34:05]name=ofd_packets/00117483 [19:34:05]NVStorageSaveData ofd_packets/00117483 [19:34:05]File name is /storage/ofd_packets/00117483 [19:34:05]Write 301 bytes [19:34:05]NVStorageSaveData done [19:34:05]OFDSenderStorePacket done [19:34:05]KKMCreateOFDPacket done [19:34:05]NVStorageSaveData kkm_last_timestamp [19:34:05]File name is /storage/kkm_last_timestamp [19:34:05]Write 4 bytes [19:34:05]NVStorageSaveData done [19:34:05]ExternCall_PrintAddStr [19:34:05]wPrintStart [19:34:05]Write to MH i2c: 01 00 00 86 29 AF [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 86 29 00 00 00 00 00 FF 0F C4 [19:34:05]RasterBufferAndPrint [19:34:05]line Счет N : (1)245259 [19:34:05]line ИНН: 02508201610067 [19:34:05]line Контрольно-Кассовый Чек [19:34:05]line ПРОДАЖА [19:34:05]line ТРК (МРК, ГНК) : 11 [19:34:05]line Товар: 2710124130 [19:34:05]line Аи-92-К-2 [19:34:05]line 4.490 * 66.90 [19:34:05]line = 300.38 [19:34:05]line НДС 12% НСП 1% [19:34:05]line > о реализуемом товаре [19:34:05]line ОКРУГЛЕНИЕ: -0.38 [19:34:05]line ИТОГО: 300.00 [19:34:05]line Внесено: 300.00 [19:34:05]line СДАЧА: 0.00 [19:34:05]line НСП 1% : 2.66 [19:34:05]line НДС 12% : 31.90 [19:34:05]line Наличными: 300.00 [19:34:05]line Безнал.: 0.00 [19:34:05]line Место: АЗС № 173 "Партнер Нефть" [19:34:05]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:34:05]line СНО: Общий режим [19:34:05]line Чек 183 27.10.2024 19:34 [19:34:05]line Смена: 542 ФФД: 1.0 [19:34:05]line ЗНМ: 0300000115 [19:34:05]line РНМ: 0000000000091782 [19:34:05]line Версия ККМ: 001 [19:34:05]line ФМ: 0000000000871767 [19:34:05]line ФД: 117483 [19:34:05]line ФПД: 81715358217969 [19:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193406&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117483&fm=81715358217969&tin=02508201610067®Number=0000000000091782&sum=30000 [19:34:05]written 0, free lines is 4095 [19:34:05]OFD Sender: Processing packet 117483 [packets to send 76, broken 75] [19:34:05]ProducePacketName [19:34:05]name=ofd_packets/00117483 [19:34:05]OFD Sender: To server: pG, [19:34:05]CommunicateWithHost lk.salyk.kg:30040 [19:34:05]ConnectInit lk.salyk.kg [19:34:06]Connected sock=10 [19:34: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 36 37 0F 01 00 00 C6 01 07 01 CE 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 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 B7 00 00 00 F4 03 04 00 AE 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EB CA 01 00 35 04 06 00 4A 51 D6 E6 36 F1 FE 8D 4E 75 B3 82 28 B8 [19:34: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 36 37 4F 00 00 00 BB AB 47 00 C0 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 36 37 10 04 04 00 EB CA 01 00 F4 03 04 00 6B 41 1E 67 B6 04 01 00 00 33 C4 0E 99 84 D1 60 41 [19:34:06]CommunicateWithHost err = 0 [19:34:06]CheckOFDResponse [19:34:06]1017 (14) - 77093643461234 [19:34:06]1041 (16) - 0000000000871767 [19:34:06]1040 (4) - 117483 [19:34:06]1012 (4) - 27.10.2024 13:34 [19:34:06]1206 (1) - 0 [19:34:06]OFD Sender: Remove packet 117483 [19:34:06]ProducePacketName [19:34:06]name=ofd_packets/00117483 [19:34:06]NVStorageDeleteData [19:34:06]Write to MH i2c: 01 00 00 B0 29 D9 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 B0 29 00 00 00 00 00 BA 0C A6 [19:34:06]RasterBufferAndPrint [19:34:06]line [19:34:06]line [19:34:06]line [19:34:06]line [19:34:06]line [19:34:06]written 0, free lines is 3267 [19:34:06]MH_Cut [19:34:06]Write to MH i2c: D1 01 00 B7 29 01 B2 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: D1 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: D1 01 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: D1 01 00 B7 29 00 B1 [19:34:06]Write to MH i2c: 01 00 00 B8 29 E1 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]OFD Sender: No OFD packet to send [19:34:07]*** Cut start [19:34:07]*** Purtial cut [19:34:07]*** Stage 1: CUTSNS_PIN = 1 [19:34:07]Read from MH i2c: 01 [19:34:07]MH_I2C_Read... [19:34:07]*** Stop cut motor [19:34:07]*** Cut end [19:34:07]Read from MH i2c: 01 07 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: 01 07 00 B8 29 00 00 00 00 00 FF 0F F6 [19:34:07]process_action close_receipt done [19:34:07]requested_data is exist [19:34:07]produce_requested_data [19:34:07]requested_item fm.sn is exist - process it [19:34:07]wFMCommunicate request_size=4 [19:34:07]MH_SAM_APDU [19:34:07]CAPDU: 80 11 00 00 [19:34:07]Write to MH i2c: E2 08 00 B9 29 80 11 00 00 00 00 00 00 5C [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:07]Read from MH i2c: E2 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 17 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 17 00 B9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B3 [19:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:34:07]wFMCommunicate OK [19:34:07]requested_item fd.num is exist - process it [19:34:07]SAM_PROTO_GetFieldsCounters [19:34:07]wFMCommunicate request_size=4 [19:34:07]MH_SAM_APDU [19:34:07]CAPDU: 80 13 00 00 [19:34:07]Write to MH i2c: E2 08 00 BA 29 80 13 00 00 00 00 00 00 5F [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:07]Read from MH i2c: E2 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 62 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 62 00 BA 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EB CA 01 00 0E 04 04 00 1E 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 81 [19:34: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EB CA 01 00 0E 04 04 00 1E 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 [19:34:07]wFMCommunicate OK [19:34:07]SAM_PROTO_GetFieldsCounters done [19:34:07]requested_item shift.num is exist - process it [19:34:07]requested_item shift.opened is exist - process it [19:34:07]req_shift_opened [19:34:07]FM_GetShiftState [19:34:07]SAM_PROTO_GetShiftState [19:34:07]wFMCommunicate request_size=4 [19:34:07]MH_SAM_APDU [19:34:07]CAPDU: 80 13 01 00 [19:34:07]Write to MH i2c: E2 08 00 BB 29 80 13 01 00 00 00 00 00 61 [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:07]Read from MH i2c: E2 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 BB 29 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A0 [19:34:07]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:34:07]wFMCommunicate OK [19:34:07]SAM_PROTO_GetShiftState done [19:34:07]FM_GetShiftState done [19:34:07]req_shift_opened done [19:34:07]requested_item shift.open_date is exist - process it [19:34:07]req_shift_open_date [19:34:07]req_shift_open_date done [19:34:07]produce_requested_data done [19:34:07]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117483,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [19:34:07]process_action_free close_receipt [19:34:07]json_value_free [19:34:07]json_value_free done [19:34:07]process_json_proto returns [19:34:07]Send response to host [19:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117483,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [19:34:07]free response buf [19:34:07]execute_script done [19:34:07]execute_script returns [19:34:07]free content buf [19:34:07]Sock 7.Close socket [19:34:07]Sock 7.Thread stoped [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:14]accept exits with 9 [19:35:14]New connection [19:35:14]New thread 3067456868 created [19:35:14]Thread 3067600228 joined [19:35:14]Waiting for new connection... [19:35:14] Sock 9.Parse request [19:35:14]Sock 9.Check first char [19:35:14]Sock 9.First char is OK [19:35:14]request: POST /json_proto HTTP/1.0 [19:35:14]Method: POST [19:35:14]URL: /json_proto [19:35:14]Method is POST - this is cgi request [19:35:14]url: /json_proto [19:35:14]query_string will be loaded in cgi processing [19:35:14]execute_cgi json_proto POST (null) [19:35:14]execute_cgi path=json_proto method=POST [19:35:14]POST find Content-Length [19:35:14]Host: 172.17.96.67:8080 [19:35:14]Content-Length: 677 [19:35:14]Content-Type: application/json [19:35:14] [19:35:14]POST finish read [19:35:14]Found Content-Length = 677 [19:35:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:14]execute_script... [19: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)245260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:14]POST & json_proto [19:35:14]process_json_proto [19:35:14]json parsed OK: [19:35:14]protocol is kg_v1.0 [19:35:14]action value=close_receipt [19:35:14]process_action close_receipt [19:35:14]cmd_close_receipt [19:35:14]MH_GetDate [19:35:14]Write to MH i2c: F0 00 00 BC 29 D4 [19:35:14]Write i2c OK [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: F0 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: F0 09 00 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: F0 09 00 BC 29 00 F5 95 1E 67 2B 09 1E 67 A5 [19:35:14]GetLastDocTimeStamp 1730057646 [19:35:14]current date 1730057717 [19:35:14]FM_GetShiftState [19:35:14]SAM_PROTO_GetShiftState [19:35:14]wFMCommunicate request_size=4 [19:35:14]MH_SAM_APDU [19:35:14]CAPDU: 80 13 01 00 [19:35:14]Write to MH i2c: E2 08 00 BD 29 80 13 01 00 00 00 00 00 63 [19:35:14]Write i2c OK [19:35:14]MH_I2C_Read... [19:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:14]Read from MH i2c: E2 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: E2 0E 00 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: E2 0E 00 BD 29 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A2 [19:35:14]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:35:14]wFMCommunicate OK [19:35:14]SAM_PROTO_GetShiftState done [19:35:14]FM_GetShiftState done [19:35:14]opened in 1729987372 [19:35:14]opened+sec_in_day 1730073772 [19:35:14]quantity*price = 50041 [19:35:14]sum+1 = 50042 [19:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 184 27.10.2024 19:35 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117484 ФПД: 137702334291323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193517&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117484&fm=137702334291323&tin=02508201610067®Number=0000000000091782&sum=50000 [19:35:15]StoreToDocumentArchive [19:35:15]shift 542 fd 117484 [19:35:15]save to /storage/0542/doc_00117484 [19:35:15]save last doc name /storage/0542/doc_00117484 to /storage/kkm_last_doc_name [19:35:15]save OK [19:35:15]Clear old archive folders... [19:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:15]tlvbuf is 016D5DE0 [19:35:15]SAM_PROTO_ClearQueue [19:35:15]wFMCommunicate request_size=4 [19:35:15]MH_SAM_APDU [19:35:15]CAPDU: 80 09 00 00 [19:35:15]Write to MH i2c: E2 08 00 CA 29 80 09 00 00 00 00 00 00 65 [19:35:15]Write i2c OK [19:35:15]MH_I2C_Read... [19:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:15]Read from MH i2c: E2 [19:35:15]MH_I2C_Read... [19:35:15]Read from MH i2c: E2 03 00 [19:35:15]MH_I2C_Read... [19:35:15]Read from MH i2c: E2 03 00 CA 29 00 90 00 67 [19:35:15]RAPDU: 90 00 [19:35:15]wFMCommunicate OK [19:35:15]SAM_PROTO_ClearQueue done [19:35:15]KKMCreateOFDPacket [19:35:15]OFDProtocolAddRootSTLVToBuf [19:35:15]FM_MakeSignedData [19:35:15]FM_MakeSignedData [19:35:15]SAM_PROTO_SignData [19:35:15]wFMCommunicate request_size=4 [19:35:15]MH_SAM_APDU [19:35:15]CAPDU: 80 0D 01 02 [19:35:15]Write to MH i2c: E2 08 00 CB 29 80 0D 01 02 00 00 00 00 6D [19:35:15]Write i2c OK [19:35:15]MH_I2C_Read... [19:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:15]Read from MH i2c: E2 [19:35:15]MH_I2C_Read... [19:35:15]Read from MH i2c: E2 03 00 [19:35:15]MH_I2C_Read... [19:35:15]Read from MH i2c: E2 03 00 CB 29 00 90 00 68 [19:35:15]RAPDU: 90 00 [19:35:15]wFMCommunicate OK [19:35:15]wFMCommunicate request_size=255 [19:35:15]MH_SAM_APDU [19: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F5 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EC CA 01 00 35 04 06 00 7D [19:35:15]Write to MH i2c: E2 02 01 CC 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 B8 00 00 00 F4 03 04 00 F5 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EC CA 01 00 35 04 06 00 7D 00 00 1A [19:35:15]Write i2c OK [19:35:15]MH_I2C_Read... [19:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:16]Read from MH i2c: E2 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 03 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 03 00 CC 29 00 90 00 69 [19:35:16]RAPDU: 90 00 [19:35:16]wFMCommunicate OK [19:35:16]wFMCommunicate request_size=10 [19:35:16]MH_SAM_APDU [19:35:16]CAPDU: 80 0D 02 02 05 3D 52 B8 5D 7B [19:35:16]Write to MH i2c: E2 0D 00 CD 29 80 0D 02 02 05 00 3D 52 B8 5D 7B 00 00 99 [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:16]Read from MH i2c: E2 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 03 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [19:35:16]RAPDU: 90 00 [19:35:16]wFMCommunicate OK [19:35:16]wFMCommunicate request_size=4 [19:35:16]MH_SAM_APDU [19:35:16]CAPDU: 80 0D 03 02 [19:35:16]Write to MH i2c: E2 08 00 CE 29 80 0D 03 02 00 00 00 00 72 [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:16]Read from MH i2c: E2 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 0B 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 0B 00 CE 29 00 7E C2 9C 96 9E 64 A0 B0 90 00 37 [19:35:16]RAPDU: 7E C2 9C 96 9E 64 A0 B0 90 00 [19:35:16]wFMCommunicate OK [19:35:16]SAM_PROTO_SignData done [19:35:16]FM_MakeSignedData done [19:35:16]CreateOFDProtocolMessage [19:35:16]wFMCommunicate request_size=4 [19:35:16]MH_SAM_APDU [19:35:16]CAPDU: 80 11 00 00 [19:35:16]Write to MH i2c: E2 08 00 CF 29 80 11 00 00 00 00 00 00 72 [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:16]Read from MH i2c: E2 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 17 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 17 00 CF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C9 [19:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:35:16]wFMCommunicate OK [19:35:16]CreateOFDProtocolMessage done [19:35:16]OFDSenderStorePacket 117484 [19:35:16]StoreOFDPacket docnum=117484 [19:35:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 65 83 07 01 01 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F5 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EC CA 01 00 35 04 06 00 7D 3D 52 B8 5D 7B 7E C2 9C 96 9E 64 A0 B0 [19:35:16]CheckFolder [19:35:16]dirname=/storage/ofd_packets [19:35:16]CheckFolder done [19:35:16]ProducePacketName [19:35:16]name=ofd_packets/00117484 [19:35:16]NVStorageSaveData ofd_packets/00117484 [19:35:16]File name is /storage/ofd_packets/00117484 [19:35:16]Write 301 bytes [19:35:16]NVStorageSaveData done [19:35:16]OFDSenderStorePacket done [19:35:16]KKMCreateOFDPacket done [19:35:16]NVStorageSaveData kkm_last_timestamp [19:35:16]File name is /storage/kkm_last_timestamp [19:35:16]Write 4 bytes [19:35:16]NVStorageSaveData done [19:35:16]ExternCall_PrintAddStr [19:35:16]wPrintStart [19:35:16]Write to MH i2c: 01 00 00 D0 29 F9 [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: 01 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: 01 07 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: 01 07 00 D0 29 00 00 00 00 00 FF 0F 0E [19:35:16]RasterBufferAndPrint [19:35:16]line Счет N : (1)245260 [19:35:16]line ИНН: 02508201610067 [19:35:16]line Контрольно-Кассовый Чек [19:35:16]line ПРОДАЖА [19:35:16]line ТРК (МРК, ГНК) : 21 [19:35:16]line Товар: 2710124130 [19:35:16]line Аи-92-К-2 [19:35:16]line 7.480 * 66.90 [19:35:16]line = 500.41 [19:35:16]line НДС 12% НСП 1% [19:35:16]line > о реализуемом товаре [19:35:16]line ОКРУГЛЕНИЕ: -0.41 [19:35:16]line ИТОГО: 500.00 [19:35:16]line Внесено: 500.00 [19:35:16]line СДАЧА: 0.00 [19:35:16]line НСП 1% : 4.43 [19:35:16]line НДС 12% : 53.14 [19:35:16]line Наличными: 500.00 [19:35:16]line Безнал.: 0.00 [19:35:16]line Место: АЗС № 173 "Партнер Нефть" [19:35:16]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:35:16]line СНО: Общий режим [19:35:16]line Чек 184 27.10.2024 19:35 [19:35:16]line Смена: 542 ФФД: 1.0 [19:35:16]line ЗНМ: 0300000115 [19:35:16]line РНМ: 0000000000091782 [19:35:16]line Версия ККМ: 001 [19:35:16]line ФМ: 0000000000871767 [19:35:16]line ФД: 117484 [19:35:16]line ФПД: 137702334291323 [19:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193517&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117484&fm=137702334291323&tin=02508201610067®Number=0000000000091782&sum=50000 [19:35:16]written 0, free lines is 4095 [19:35:16]OFD Sender: Processing packet 117484 [packets to send 76, broken 75] [19:35:16]ProducePacketName [19:35:16]name=ofd_packets/00117484 [19:35:16]OFD Sender: To server: pG, [19:35:16]CommunicateWithHost lk.salyk.kg:30040 [19:35:16]ConnectInit lk.salyk.kg [19:35:16]Connected sock=10 [19: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 36 37 0F 01 00 00 65 83 07 01 01 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F5 95 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EC CA 01 00 35 04 06 00 7D 3D 52 B8 5D 7B 7E C2 9C 96 9E 64 A0 B0 [19: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 36 37 4F 00 00 00 58 84 47 00 32 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EC CA 01 00 F4 03 04 00 B2 41 1E 67 B6 04 01 00 00 CF 46 64 E8 8E D6 A7 DD [19:35:16]CommunicateWithHost err = 0 [19:35:16]CheckOFDResponse [19:35:16]1017 (14) - 77093643461234 [19:35:16]1041 (16) - 0000000000871767 [19:35:16]1040 (4) - 117484 [19:35:16]1012 (4) - 27.10.2024 13:35 [19:35:16]1206 (1) - 0 [19:35:16]OFD Sender: Remove packet 117484 [19:35:16]ProducePacketName [19:35:16]name=ofd_packets/00117484 [19:35:16]NVStorageDeleteData [19:35:16]Write to MH i2c: 01 00 00 FA 29 23 [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: 01 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: 01 07 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: 01 07 00 FA 29 00 00 00 00 00 BA 0C F0 [19:35:16]RasterBufferAndPrint [19:35:16]line [19:35:16]line [19:35:16]line [19:35:16]line [19:35:16]line [19:35:16]written 0, free lines is 3265 [19:35:16]MH_Cut [19:35:16]Write to MH i2c: D1 01 00 01 2A 01 FD [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: D1 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: D1 01 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: D1 01 00 01 2A 00 FC [19:35:16]Write to MH i2c: 01 00 00 02 2A 2C [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:17]OFD Sender: No OFD packet to send [19:35:17]*** Cut start [19:35:17]*** Purtial cut [19:35:17]*** Stage 1: CUTSNS_PIN = 1 [19:35:18]Read from MH i2c: 01 [19:35:18]MH_I2C_Read... [19:35:18]*** Stop cut motor [19:35:18]*** Cut end [19:35:18]Read from MH i2c: 01 07 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 07 00 02 2A 00 00 00 00 00 FF 0F 41 [19:35:18]process_action close_receipt done [19:35:18]requested_data is exist [19:35:18]produce_requested_data [19:35:18]requested_item fm.sn is exist - process it [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 11 00 00 [19:35:18]Write to MH i2c: E2 08 00 03 2A 80 11 00 00 00 00 00 00 A7 [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 17 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 17 00 03 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FE [19:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:35:18]wFMCommunicate OK [19:35:18]requested_item fd.num is exist - process it [19:35:18]SAM_PROTO_GetFieldsCounters [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 13 00 00 [19:35:18]Write to MH i2c: E2 08 00 04 2A 80 13 00 00 00 00 00 00 AA [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 62 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 62 00 04 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EC CA 01 00 0E 04 04 00 1E 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 D0 [19: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EC CA 01 00 0E 04 04 00 1E 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 [19:35:18]wFMCommunicate OK [19:35:18]SAM_PROTO_GetFieldsCounters done [19:35:18]requested_item shift.num is exist - process it [19:35:18]requested_item shift.opened is exist - process it [19:35:18]req_shift_opened [19:35:18]FM_GetShiftState [19:35:18]SAM_PROTO_GetShiftState [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 13 01 00 [19:35:18]Write to MH i2c: E2 08 00 05 2A 80 13 01 00 00 00 00 00 AC [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0E 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0E 00 05 2A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 EB [19:35:18]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [19:35:18]wFMCommunicate OK [19:35:18]SAM_PROTO_GetShiftState done [19:35:18]FM_GetShiftState done [19:35:18]req_shift_opened done [19:35:18]requested_item shift.open_date is exist - process it [19:35:18]req_shift_open_date [19:35:18]req_shift_open_date done [19:35:18]produce_requested_data done [19:35:18]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117484,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [19:35:18]process_action_free close_receipt [19:35:18]json_value_free [19:35:18]json_value_free done [19:35:18]process_json_proto returns [19:35:18]Send response to host [19:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117484,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [19:35:18]free response buf [19:35:18]execute_script done [19:35:18]execute_script returns [19:35:18]free content buf [19:35:18]Sock 9.Close socket [19:35:18]Sock 9.Thread stoped [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46: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:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:55]accept exits with 7 [20:02:55]New connection [20:02:55]New thread 3067600228 created [20:02:55]Thread 3067456868 joined [20:02:55]Waiting for new connection... [20:02:55] Sock 7.Parse request [20:02:55]Sock 7.Check first char [20:02:55]Sock 7.First char is OK [20:02:55]request: POST /json_proto HTTP/1.0 [20:02:55]Method: POST [20:02:55]URL: /json_proto [20:02:55]Method is POST - this is cgi request [20:02:55]url: /json_proto [20:02:55]query_string will be loaded in cgi processing [20:02:55]execute_cgi json_proto POST (null) [20:02:55]execute_cgi path=json_proto method=POST [20:02:55]POST find Content-Length [20:02:55]Host: 172.17.96.67:8080 [20:02:55]Content-Length: 677 [20:02:55]Content-Type: application/json [20:02:55] [20:02:55]POST finish read [20:02:55]Found Content-Length = 677 [20:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:02:55]execute_script... [20: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)245261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:02:55]POST & json_proto [20:02:55]process_json_proto [20:02:55]json parsed OK: [20:02:55]protocol is kg_v1.0 [20:02:55]action value=close_receipt [20:02:55]process_action close_receipt [20:02:55]cmd_close_receipt [20:02:55]MH_GetDate [20:02:55]Write to MH i2c: F0 00 00 06 2A 1F [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: F0 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: F0 09 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: F0 09 00 06 2A 00 72 9C 1E 67 2B 09 1E 67 74 [20:02:55]GetLastDocTimeStamp 1730057717 [20:02:55]current date 1730059378 [20:02:55]FM_GetShiftState [20:02:55]SAM_PROTO_GetShiftState [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 13 01 00 [20:02:55]Write to MH i2c: E2 08 00 07 2A 80 13 01 00 00 00 00 00 AE [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 0E 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 0E 00 07 2A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 ED [20:02:55]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:02:55]wFMCommunicate OK [20:02:55]SAM_PROTO_GetShiftState done [20:02:55]FM_GetShiftState done [20:02:55]opened in 1729987372 [20:02:55]opened+sec_in_day 1730073772 [20:02:55]quantity*price = 50041 [20:02:55]sum+1 = 50042 [20:02: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 185 27.10.2024 20:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117485 ФПД: 5345116663922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200258&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117485&fm=5345116663922&tin=02508201610067®Number=0000000000091782&sum=50000 [20:02:56]StoreToDocumentArchive [20:02:56]shift 542 fd 117485 [20:02:56]save to /storage/0542/doc_00117485 [20:02:56]save last doc name /storage/0542/doc_00117485 to /storage/kkm_last_doc_name [20:02:56]save OK [20:02:56]Clear old archive folders... [20:02:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:02:56]tlvbuf is 016D5530 [20:02:56]SAM_PROTO_ClearQueue [20:02:56]wFMCommunicate request_size=4 [20:02:56]MH_SAM_APDU [20:02:56]CAPDU: 80 09 00 00 [20:02:56]Write to MH i2c: E2 08 00 14 2A 80 09 00 00 00 00 00 00 B0 [20:02:56]Write i2c OK [20:02:56]MH_I2C_Read... [20:02:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 03 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 03 00 14 2A 00 90 00 B2 [20:02:57]RAPDU: 90 00 [20:02:57]wFMCommunicate OK [20:02:57]SAM_PROTO_ClearQueue done [20:02:57]KKMCreateOFDPacket [20:02:57]OFDProtocolAddRootSTLVToBuf [20:02:57]FM_MakeSignedData [20:02:57]FM_MakeSignedData [20:02:57]SAM_PROTO_SignData [20:02:57]wFMCommunicate request_size=4 [20:02:57]MH_SAM_APDU [20:02:57]CAPDU: 80 0D 01 02 [20:02:57]Write to MH i2c: E2 08 00 15 2A 80 0D 01 02 00 00 00 00 B8 [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 03 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 03 00 15 2A 00 90 00 B3 [20:02:57]RAPDU: 90 00 [20:02:57]wFMCommunicate OK [20:02:57]wFMCommunicate request_size=255 [20:02:57]MH_SAM_APDU [20:02: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 B9 00 00 00 F4 03 04 00 72 9C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 ED CA 01 00 35 04 06 00 04 [20:02:57]Write to MH i2c: E2 02 01 16 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 B9 00 00 00 F4 03 04 00 72 9C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 ED CA 01 00 35 04 06 00 04 00 00 72 [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 03 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 03 00 16 2A 00 90 00 B4 [20:02:57]RAPDU: 90 00 [20:02:57]wFMCommunicate OK [20:02:57]wFMCommunicate request_size=10 [20:02:57]MH_SAM_APDU [20:02:57]CAPDU: 80 0D 02 02 05 DC 81 C7 B0 72 [20:02:57]Write to MH i2c: E2 0D 00 17 2A 80 0D 02 02 05 00 DC 81 C7 B0 72 00 00 0B [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 03 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 03 00 17 2A 00 90 00 B5 [20:02:57]RAPDU: 90 00 [20:02:57]wFMCommunicate OK [20:02:57]wFMCommunicate request_size=4 [20:02:57]MH_SAM_APDU [20:02:57]CAPDU: 80 0D 03 02 [20:02:57]Write to MH i2c: E2 08 00 18 2A 80 0D 03 02 00 00 00 00 BD [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 0B 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 0B 00 18 2A 00 6B 7B 38 ED 71 99 7C 15 90 00 64 [20:02:57]RAPDU: 6B 7B 38 ED 71 99 7C 15 90 00 [20:02:57]wFMCommunicate OK [20:02:57]SAM_PROTO_SignData done [20:02:57]FM_MakeSignedData done [20:02:57]CreateOFDProtocolMessage [20:02:57]wFMCommunicate request_size=4 [20:02:57]MH_SAM_APDU [20:02:57]CAPDU: 80 11 00 00 [20:02:57]Write to MH i2c: E2 08 00 19 2A 80 11 00 00 00 00 00 00 BD [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 17 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 17 00 19 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 14 [20:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:02:57]wFMCommunicate OK [20:02:57]CreateOFDProtocolMessage done [20:02:57]OFDSenderStorePacket 117485 [20:02:57]StoreOFDPacket docnum=117485 [20:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6A 58 07 01 00 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 9C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 ED CA 01 00 35 04 06 00 04 DC 81 C7 B0 72 6B 7B 38 ED 71 99 7C 15 [20:02:57]CheckFolder [20:02:57]dirname=/storage/ofd_packets [20:02:57]CheckFolder done [20:02:57]ProducePacketName [20:02:57]name=ofd_packets/00117485 [20:02:57]NVStorageSaveData ofd_packets/00117485 [20:02:57]File name is /storage/ofd_packets/00117485 [20:02:57]Write 301 bytes [20:02:57]NVStorageSaveData done [20:02:57]OFDSenderStorePacket done [20:02:57]KKMCreateOFDPacket done [20:02:57]NVStorageSaveData kkm_last_timestamp [20:02:57]File name is /storage/kkm_last_timestamp [20:02:57]Write 4 bytes [20:02:57]NVStorageSaveData done [20:02:57]ExternCall_PrintAddStr [20:02:57]wPrintStart [20:02:57]Write to MH i2c: 01 00 00 1A 2A 44 [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 07 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 07 00 1A 2A 00 00 00 00 00 FF 0F 59 [20:02:57]RasterBufferAndPrint [20:02:57]line Счет N : (1)245261 [20:02:57]line ИНН: 02508201610067 [20:02:57]line Контрольно-Кассовый Чек [20:02:57]line ПРОДАЖА [20:02:57]line ТРК (МРК, ГНК) : 21 [20:02:57]line Товар: 2710124130 [20:02:57]line Аи-92-К-2 [20:02:57]line 7.480 * 66.90 [20:02:57]line = 500.41 [20:02:57]line НДС 12% НСП 1% [20:02:57]line > о реализуемом товаре [20:02:57]line ОКРУГЛЕНИЕ: -0.41 [20:02:57]line ИТОГО: 500.00 [20:02:57]line Внесено: 500.00 [20:02:57]line СДАЧА: 0.00 [20:02:57]line НСП 1% : 4.43 [20:02:57]line НДС 12% : 53.14 [20:02:57]line Наличными: 500.00 [20:02:57]line Безнал.: 0.00 [20:02:57]line Место: АЗС № 173 "Партнер Нефть" [20:02:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:02:57]line СНО: Общий режим [20:02:57]line Чек 185 27.10.2024 20:02 [20:02:57]line Смена: 542 ФФД: 1.0 [20:02:57]line ЗНМ: 0300000115 [20:02:57]line РНМ: 0000000000091782 [20:02:57]line Версия ККМ: 001 [20:02:57]line ФМ: 0000000000871767 [20:02:57]line ФД: 117485 [20:02:57]line ФПД: 5345116663922 [20:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200258&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117485&fm=5345116663922&tin=02508201610067®Number=0000000000091782&sum=50000 [20:02:57]written 0, free lines is 4095 [20:02:57]OFD Sender: Processing packet 117485 [packets to send 76, broken 75] [20:02:57]ProducePacketName [20:02:57]name=ofd_packets/00117485 [20:02:57]OFD Sender: To server: pG, [20:02:57]CommunicateWithHost lk.salyk.kg:30040 [20:02:57]ConnectInit lk.salyk.kg [20:02:57]Write to MH i2c: 01 00 00 44 2A 6E [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 07 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 07 00 44 2A 00 00 00 00 00 B4 0C 35 [20:02:57]RasterBufferAndPrint [20:02:57]line [20:02:57]line [20:02:57]line [20:02:57]line [20:02:57]line [20:02:57]written 0, free lines is 3256 [20:02:57]Connected sock=10 [20: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 36 37 0F 01 00 00 6A 58 07 01 00 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 9C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 ED CA 01 00 35 04 06 00 04 DC 81 C7 B0 72 6B 7B 38 ED 71 99 7C 15 [20:02:57]MH_Cut [20:02:57]Write to MH i2c: D1 01 00 4B 2A 01 47 [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: D1 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: D1 01 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: D1 01 00 4B 2A 00 46 [20:02:57]Write to MH i2c: 01 00 00 4C 2A 76 [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02: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 36 37 4F 00 00 00 E7 7C 47 00 DB 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 36 37 10 04 04 00 ED CA 01 00 F4 03 04 00 2F 48 1E 67 B6 04 01 00 00 D3 91 39 D8 7F 7C 49 9F [20:02:58]CommunicateWithHost err = 0 [20:02:58]CheckOFDResponse [20:02:58]1017 (14) - 77093643461234 [20:02:58]1041 (16) - 0000000000871767 [20:02:58]1040 (4) - 117485 [20:02:58]1012 (4) - 27.10.2024 14:03 [20:02:58]1206 (1) - 0 [20:02:58]OFD Sender: Remove packet 117485 [20:02:58]ProducePacketName [20:02:58]name=ofd_packets/00117485 [20:02:58]NVStorageDeleteData [20:02:58]OFD Sender: No OFD packet to send [20:02:58]*** Cut start [20:02:58]*** Purtial cut [20:02:58]*** Stage 1: CUTSNS_PIN = 1 [20:02:59]Read from MH i2c: 01 [20:02:59]MH_I2C_Read... [20:02:59]*** Stop cut motor [20:02:59]*** Cut end [20:02:59]Read from MH i2c: 01 07 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: 01 07 00 4C 2A 00 00 00 00 00 FF 0F 8B [20:02:59]process_action close_receipt done [20:02:59]requested_data is exist [20:02:59]produce_requested_data [20:02:59]requested_item fm.sn is exist - process it [20:02:59]wFMCommunicate request_size=4 [20:02:59]MH_SAM_APDU [20:02:59]CAPDU: 80 11 00 00 [20:02:59]Write to MH i2c: E2 08 00 4D 2A 80 11 00 00 00 00 00 00 F1 [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 [20:02:59]MH_I2C_Read... [20:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:59]Read from MH i2c: E2 17 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 17 00 4D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 48 [20:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:02:59]wFMCommunicate OK [20:02:59]requested_item fd.num is exist - process it [20:02:59]SAM_PROTO_GetFieldsCounters [20:02:59]wFMCommunicate request_size=4 [20:02:59]MH_SAM_APDU [20:02:59]CAPDU: 80 13 00 00 [20:02:59]Write to MH i2c: E2 08 00 4E 2A 80 13 00 00 00 00 00 00 F4 [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:59]Read from MH i2c: E2 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 62 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 62 00 4E 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 ED CA 01 00 0E 04 04 00 1E 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 1E [20: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 ED CA 01 00 0E 04 04 00 1E 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 [20:02:59]wFMCommunicate OK [20:02:59]SAM_PROTO_GetFieldsCounters done [20:02:59]requested_item shift.num is exist - process it [20:02:59]requested_item shift.opened is exist - process it [20:02:59]req_shift_opened [20:02:59]FM_GetShiftState [20:02:59]SAM_PROTO_GetShiftState [20:02:59]wFMCommunicate request_size=4 [20:02:59]MH_SAM_APDU [20:02:59]CAPDU: 80 13 01 00 [20:02:59]Write to MH i2c: E2 08 00 4F 2A 80 13 01 00 00 00 00 00 F6 [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:59]Read from MH i2c: E2 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 0E 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 0E 00 4F 2A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 35 [20:02:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:02:59]wFMCommunicate OK [20:02:59]SAM_PROTO_GetShiftState done [20:02:59]FM_GetShiftState done [20:02:59]req_shift_opened done [20:02:59]requested_item shift.open_date is exist - process it [20:02:59]req_shift_open_date [20:02:59]req_shift_open_date done [20:02:59]produce_requested_data done [20:02:59]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117485,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:02:59]process_action_free close_receipt [20:02:59]json_value_free [20:02:59]json_value_free done [20:02:59]process_json_proto returns [20:02:59]Send response to host [20:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117485,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:02:59]free response buf [20:02:59]execute_script done [20:02:59]execute_script returns [20:02:59]free content buf [20:02:59]Sock 7.Close socket [20:02:59]Sock 7.Thread stoped [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:20]accept exits with 9 [20:05:20]New connection [20:05:20]New thread 3067456868 created [20:05:20]Thread 3067600228 joined [20:05:20]Waiting for new connection... [20:05:20] Sock 9.Parse request [20:05:20]Sock 9.Check first char [20:05:20]Sock 9.First char is OK [20:05:20]request: POST /json_proto HTTP/1.0 [20:05:20]Method: POST [20:05:20]URL: /json_proto [20:05:20]Method is POST - this is cgi request [20:05:20]url: /json_proto [20:05:20]query_string will be loaded in cgi processing [20:05:20]execute_cgi json_proto POST (null) [20:05:20]execute_cgi path=json_proto method=POST [20:05:20]POST find Content-Length [20:05:20]Host: 172.17.96.67:8080 [20:05:20]Content-Length: 682 [20:05:20]Content-Type: application/json [20:05:20] [20:05:20]POST finish read [20:05:20]Found Content-Length = 682 [20:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:05:20]execute_script... [20:05: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)245262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:05:20]POST & json_proto [20:05:20]process_json_proto [20:05:20]json parsed OK: [20:05:20]protocol is kg_v1.0 [20:05:20]action value=close_receipt [20:05:20]process_action close_receipt [20:05:20]cmd_close_receipt [20:05:20]MH_GetDate [20:05:20]Write to MH i2c: F0 00 00 50 2A 69 [20:05:20]Write i2c OK [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: F0 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: F0 09 00 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: F0 09 00 50 2A 00 04 9D 1E 67 2B 09 1E 67 51 [20:05:20]GetLastDocTimeStamp 1730059378 [20:05:20]current date 1730059524 [20:05:20]FM_GetShiftState [20:05:20]SAM_PROTO_GetShiftState [20:05:20]wFMCommunicate request_size=4 [20:05:20]MH_SAM_APDU [20:05:20]CAPDU: 80 13 01 00 [20:05:20]Write to MH i2c: E2 08 00 51 2A 80 13 01 00 00 00 00 00 F8 [20:05:20]Write i2c OK [20:05:20]MH_I2C_Read... [20:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:20]Read from MH i2c: E2 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 0E 00 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 0E 00 51 2A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 37 [20:05:20]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:05:20]wFMCommunicate OK [20:05:20]SAM_PROTO_GetShiftState done [20:05:20]FM_GetShiftState done [20:05:20]opened in 1729987372 [20:05:20]opened+sec_in_day 1730073772 [20:05:20]quantity*price = 100015 [20:05:20]sum+1 = 100017 [20:05: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 186 27.10.2024 20:05 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117486 ФПД: 171872159386282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200524&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117486&fm=171872159386282&tin=02508201610067®Number=0000000000091782&sum=100000 [20:05:22]StoreToDocumentArchive [20:05:22]shift 542 fd 117486 [20:05:22]save to /storage/0542/doc_00117486 [20:05:22]save last doc name /storage/0542/doc_00117486 to /storage/kkm_last_doc_name [20:05:22]save OK [20:05:22]Clear old archive folders... [20:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:22]tlvbuf is 016FAD80 [20:05:22]SAM_PROTO_ClearQueue [20:05:22]wFMCommunicate request_size=4 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 09 00 00 [20:05:22]Write to MH i2c: E2 08 00 5E 2A 80 09 00 00 00 00 00 00 FA [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 03 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [20:05:22]RAPDU: 90 00 [20:05:22]wFMCommunicate OK [20:05:22]SAM_PROTO_ClearQueue done [20:05:22]KKMCreateOFDPacket [20:05:22]OFDProtocolAddRootSTLVToBuf [20:05:22]FM_MakeSignedData [20:05:22]FM_MakeSignedData [20:05:22]SAM_PROTO_SignData [20:05:22]wFMCommunicate request_size=4 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 0D 01 02 [20:05:22]Write to MH i2c: E2 08 00 5F 2A 80 0D 01 02 00 00 00 00 02 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 03 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 03 00 5F 2A 00 90 00 FD [20:05:22]RAPDU: 90 00 [20:05:22]wFMCommunicate OK [20:05:22]wFMCommunicate request_size=255 [20:05:22]MH_SAM_APDU [20:05: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 BA 00 00 00 F4 03 04 00 04 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EE CA 01 00 35 04 06 00 9C [20:05:22]Write to MH i2c: E2 02 01 60 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 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 BA 00 00 00 F4 03 04 00 04 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EE CA 01 00 35 04 06 00 9C 00 00 E3 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 03 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 03 00 60 2A 00 90 00 FE [20:05:22]RAPDU: 90 00 [20:05:22]wFMCommunicate OK [20:05:22]wFMCommunicate request_size=10 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 0D 02 02 05 51 1B 01 CA AA [20:05:22]Write to MH i2c: E2 0D 00 61 2A 80 0D 02 02 05 00 51 1B 01 CA AA 00 00 F0 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 03 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 03 00 61 2A 00 90 00 FF [20:05:22]RAPDU: 90 00 [20:05:22]wFMCommunicate OK [20:05:22]wFMCommunicate request_size=4 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 0D 03 02 [20:05:22]Write to MH i2c: E2 08 00 62 2A 80 0D 03 02 00 00 00 00 07 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 0B 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 0B 00 62 2A 00 23 25 1B 81 D3 74 2B BD 90 00 1B [20:05:22]RAPDU: 23 25 1B 81 D3 74 2B BD 90 00 [20:05:22]wFMCommunicate OK [20:05:22]SAM_PROTO_SignData done [20:05:22]FM_MakeSignedData done [20:05:22]CreateOFDProtocolMessage [20:05:22]wFMCommunicate request_size=4 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 11 00 00 [20:05:22]Write to MH i2c: E2 08 00 63 2A 80 11 00 00 00 00 00 00 07 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 17 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 17 00 63 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5E [20:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:05:22]wFMCommunicate OK [20:05:22]CreateOFDProtocolMessage done [20:05:22]OFDSenderStorePacket 117486 [20:05:22]StoreOFDPacket docnum=117486 [20:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 55 61 07 01 40 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 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 BA 00 00 00 F4 03 04 00 04 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EE CA 01 00 35 04 06 00 9C 51 1B 01 CA AA 23 25 1B 81 D3 74 2B BD [20:05:22]CheckFolder [20:05:22]dirname=/storage/ofd_packets [20:05:22]CheckFolder done [20:05:22]ProducePacketName [20:05:22]name=ofd_packets/00117486 [20:05:22]NVStorageSaveData ofd_packets/00117486 [20:05:22]File name is /storage/ofd_packets/00117486 [20:05:22]Write 301 bytes [20:05:22]NVStorageSaveData done [20:05:22]OFDSenderStorePacket done [20:05:22]KKMCreateOFDPacket done [20:05:22]NVStorageSaveData kkm_last_timestamp [20:05:22]File name is /storage/kkm_last_timestamp [20:05:22]Write 4 bytes [20:05:22]NVStorageSaveData done [20:05:22]ExternCall_PrintAddStr [20:05:22]wPrintStart [20:05:22]Write to MH i2c: 01 00 00 64 2A 8E [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: 01 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: 01 07 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: 01 07 00 64 2A 00 00 00 00 00 FF 0F A3 [20:05:22]RasterBufferAndPrint [20:05:22]line Счет N : (1)245262 [20:05:22]line ИНН: 02508201610067 [20:05:22]line Контрольно-Кассовый Чек [20:05:22]line ПРОДАЖА [20:05:22]line ТРК (МРК, ГНК) : 21 [20:05:22]line Товар: 2710124130 [20:05:22]line Аи-92-К-2 [20:05:22]line 14.950 * 66.90 [20:05:22]line = 1000.16 [20:05:22]line НДС 12% НСП 1% [20:05:22]line > о реализуемом товаре [20:05:22]line ОКРУГЛЕНИЕ: -0.16 [20:05:22]line ИТОГО: 1000.00 [20:05:22]line Внесено: 1000.00 [20:05:22]line СДАЧА: 0.00 [20:05:22]line НСП 1% : 8.85 [20:05:22]line НДС 12% : 106.21 [20:05:22]line Наличными: 1000.00 [20:05:22]line Безнал.: 0.00 [20:05:22]line Место: АЗС № 173 "Партнер Нефть" [20:05:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:05:22]line СНО: Общий режим [20:05:22]line Чек 186 27.10.2024 20:05 [20:05:22]line Смена: 542 ФФД: 1.0 [20:05:22]line ЗНМ: 0300000115 [20:05:22]line РНМ: 0000000000091782 [20:05:22]line Версия ККМ: 001 [20:05:22]line ФМ: 0000000000871767 [20:05:22]line ФД: 117486 [20:05:22]line ФПД: 171872159386282 [20:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200524&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117486&fm=171872159386282&tin=02508201610067®Number=0000000000091782&sum=100000 [20:05:22]written 0, free lines is 4095 [20:05:22]OFD Sender: Processing packet 117486 [packets to send 76, broken 75] [20:05:22]ProducePacketName [20:05:22]name=ofd_packets/00117486 [20:05:22]OFD Sender: To server: pG, [20:05:22]CommunicateWithHost lk.salyk.kg:30040 [20:05:22]ConnectInit lk.salyk.kg [20:05:23]Connected sock=10 [20:05: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 36 37 0F 01 00 00 55 61 07 01 40 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 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 BA 00 00 00 F4 03 04 00 04 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EE CA 01 00 35 04 06 00 9C 51 1B 01 CA AA 23 25 1B 81 D3 74 2B BD [20:05: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 36 37 4F 00 00 00 03 4F 47 00 7B 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 36 37 10 04 04 00 EE CA 01 00 F4 03 04 00 C0 48 1E 67 B6 04 01 00 00 9B 99 37 94 E7 72 53 3B [20:05:23]CommunicateWithHost err = 0 [20:05:23]CheckOFDResponse [20:05:23]1017 (14) - 77093643461234 [20:05:23]1041 (16) - 0000000000871767 [20:05:23]1040 (4) - 117486 [20:05:23]1012 (4) - 27.10.2024 14:05 [20:05:23]1206 (1) - 0 [20:05:23]OFD Sender: Remove packet 117486 [20:05:23]ProducePacketName [20:05:23]name=ofd_packets/00117486 [20:05:23]NVStorageDeleteData [20:05:23]Write to MH i2c: 01 00 00 8E 2A B8 [20:05:23]Write i2c OK [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: 01 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: 01 07 00 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: 01 07 00 8E 2A 00 00 00 00 00 B8 0C 83 [20:05:23]RasterBufferAndPrint [20:05:23]line [20:05:23]line [20:05:23]line [20:05:23]line [20:05:23]line [20:05:23]written 0, free lines is 3264 [20:05:23]MH_Cut [20:05:23]Write to MH i2c: D1 01 00 95 2A 01 91 [20:05:23]Write i2c OK [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: D1 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: D1 01 00 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: D1 01 00 95 2A 00 90 [20:05:23]Write to MH i2c: 01 00 00 96 2A C0 [20:05:23]Write i2c OK [20:05:23]MH_I2C_Read... [20:05:23]OFD Sender: No OFD packet to send [20:05:24]*** Cut start [20:05:24]*** Purtial cut [20:05:24]*** Stage 1: CUTSNS_PIN = 1 [20:05:24]Read from MH i2c: 01 [20:05:24]MH_I2C_Read... [20:05:24]*** Stop cut motor [20:05:24]*** Cut end [20:05:24]Read from MH i2c: 01 07 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: 01 07 00 96 2A 00 00 00 00 00 FF 0F D5 [20:05:24]process_action close_receipt done [20:05:24]requested_data is exist [20:05:24]produce_requested_data [20:05:24]requested_item fm.sn is exist - process it [20:05:24]wFMCommunicate request_size=4 [20:05:24]MH_SAM_APDU [20:05:24]CAPDU: 80 11 00 00 [20:05:24]Write to MH i2c: E2 08 00 97 2A 80 11 00 00 00 00 00 00 3B [20:05:24]Write i2c OK [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 [20:05:24]MH_I2C_Read... [20:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:24]Read from MH i2c: E2 17 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 17 00 97 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 92 [20:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:05:24]wFMCommunicate OK [20:05:24]requested_item fd.num is exist - process it [20:05:24]SAM_PROTO_GetFieldsCounters [20:05:24]wFMCommunicate request_size=4 [20:05:24]MH_SAM_APDU [20:05:24]CAPDU: 80 13 00 00 [20:05:24]Write to MH i2c: E2 08 00 98 2A 80 13 00 00 00 00 00 00 3E [20:05:24]Write i2c OK [20:05:24]MH_I2C_Read... [20:05:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:24]Read from MH i2c: E2 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 62 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 62 00 98 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EE CA 01 00 0E 04 04 00 1E 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 6C [20:05: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EE CA 01 00 0E 04 04 00 1E 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 [20:05:24]wFMCommunicate OK [20:05:24]SAM_PROTO_GetFieldsCounters done [20:05:24]requested_item shift.num is exist - process it [20:05:24]requested_item shift.opened is exist - process it [20:05:24]req_shift_opened [20:05:24]FM_GetShiftState [20:05:24]SAM_PROTO_GetShiftState [20:05:24]wFMCommunicate request_size=4 [20:05:24]MH_SAM_APDU [20:05:24]CAPDU: 80 13 01 00 [20:05:24]Write to MH i2c: E2 08 00 99 2A 80 13 01 00 00 00 00 00 40 [20:05:24]Write i2c OK [20:05:24]MH_I2C_Read... [20:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:24]Read from MH i2c: E2 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 0E 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 0E 00 99 2A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 7F [20:05:24]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:05:24]wFMCommunicate OK [20:05:24]SAM_PROTO_GetShiftState done [20:05:24]FM_GetShiftState done [20:05:24]req_shift_opened done [20:05:24]requested_item shift.open_date is exist - process it [20:05:24]req_shift_open_date [20:05:24]req_shift_open_date done [20:05:24]produce_requested_data done [20:05:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117486,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:05:24]process_action_free close_receipt [20:05:24]json_value_free [20:05:24]json_value_free done [20:05:24]process_json_proto returns [20:05:24]Send response to host [20:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117486,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:05:24]free response buf [20:05:24]execute_script done [20:05:24]execute_script returns [20:05:24]free content buf [20:05:24]Sock 9.Close socket [20:05:24]Sock 9.Thread stoped [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:42]accept exits with 7 [20:09:42]New connection [20:09:42]New thread 3067600228 created [20:09:42]Thread 3067456868 joined [20:09:42]Waiting for new connection... [20:09:42] Sock 7.Parse request [20:09:42]Sock 7.Check first char [20:09:42]Sock 7.First char is OK [20:09:42]request: POST /json_proto HTTP/1.0 [20:09:42]Method: POST [20:09:42]URL: /json_proto [20:09:42]Method is POST - this is cgi request [20:09:42]url: /json_proto [20:09:42]query_string will be loaded in cgi processing [20:09:42]execute_cgi json_proto POST (null) [20:09:42]execute_cgi path=json_proto method=POST [20:09:42]POST find Content-Length [20:09:42]Host: 172.17.96.67:8080 [20:09:42]Content-Length: 682 [20:09:42]Content-Type: application/json [20:09:42] [20:09:42]POST finish read [20:09:42]Found Content-Length = 682 [20:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:09:42]execute_script... [20: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)245263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:09:42]POST & json_proto [20:09:42]process_json_proto [20:09:42]json parsed OK: [20:09:42]protocol is kg_v1.0 [20:09:42]action value=close_receipt [20:09:42]process_action close_receipt [20:09:42]cmd_close_receipt [20:09:42]MH_GetDate [20:09:42]Write to MH i2c: F0 00 00 9A 2A B3 [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: F0 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: F0 09 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: F0 09 00 9A 2A 00 0A 9E 1E 67 2B 09 1E 67 A2 [20:09:42]GetLastDocTimeStamp 1730059524 [20:09:42]current date 1730059786 [20:09:42]FM_GetShiftState [20:09:42]SAM_PROTO_GetShiftState [20:09:42]wFMCommunicate request_size=4 [20:09:42]MH_SAM_APDU [20:09:42]CAPDU: 80 13 01 00 [20:09:42]Write to MH i2c: E2 08 00 9B 2A 80 13 01 00 00 00 00 00 42 [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 0E 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 0E 00 9B 2A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 81 [20:09:42]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:09:42]wFMCommunicate OK [20:09:42]SAM_PROTO_GetShiftState done [20:09:42]FM_GetShiftState done [20:09:42]opened in 1729987372 [20:09:42]opened+sec_in_day 1730073772 [20:09:42]quantity*price = 100015 [20:09:42]sum+1 = 100017 [20:09: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 187 27.10.2024 20:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117487 ФПД: 29208337540185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200946&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117487&fm=29208337540185&tin=02508201610067®Number=0000000000091782&sum=100000 [20:09:44]StoreToDocumentArchive [20:09:44]shift 542 fd 117487 [20:09:44]save to /storage/0542/doc_00117487 [20:09:44]save last doc name /storage/0542/doc_00117487 to /storage/kkm_last_doc_name [20:09:44]save OK [20:09:44]Clear old archive folders... [20:09:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:44]tlvbuf is 01813130 [20:09:44]SAM_PROTO_ClearQueue [20:09:44]wFMCommunicate request_size=4 [20:09:44]MH_SAM_APDU [20:09:44]CAPDU: 80 09 00 00 [20:09:44]Write to MH i2c: E2 08 00 A8 2A 80 09 00 00 00 00 00 00 44 [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:44]Read from MH i2c: E2 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 03 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 03 00 A8 2A 00 90 00 46 [20:09:44]RAPDU: 90 00 [20:09:44]wFMCommunicate OK [20:09:44]SAM_PROTO_ClearQueue done [20:09:44]KKMCreateOFDPacket [20:09:44]OFDProtocolAddRootSTLVToBuf [20:09:44]FM_MakeSignedData [20:09:44]FM_MakeSignedData [20:09:44]SAM_PROTO_SignData [20:09:44]wFMCommunicate request_size=4 [20:09:44]MH_SAM_APDU [20:09:44]CAPDU: 80 0D 01 02 [20:09:44]Write to MH i2c: E2 08 00 A9 2A 80 0D 01 02 00 00 00 00 4C [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:44]Read from MH i2c: E2 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 03 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [20:09:44]RAPDU: 90 00 [20:09:44]wFMCommunicate OK [20:09:44]wFMCommunicate request_size=255 [20:09:44]MH_SAM_APDU [20:09: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 0A 9E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EF CA 01 00 35 04 06 00 1A [20:09:44]Write to MH i2c: E2 02 01 AA 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 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 BB 00 00 00 F4 03 04 00 0A 9E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EF CA 01 00 35 04 06 00 1A 00 00 B4 [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:44]Read from MH i2c: E2 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 03 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [20:09:44]RAPDU: 90 00 [20:09:44]wFMCommunicate OK [20:09:44]wFMCommunicate request_size=10 [20:09:44]MH_SAM_APDU [20:09:44]CAPDU: 80 0D 02 02 05 90 98 95 64 59 [20:09:44]Write to MH i2c: E2 0D 00 AB 2A 80 0D 02 02 05 00 90 98 95 64 59 00 00 D3 [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:44]Read from MH i2c: E2 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 03 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 03 00 AB 2A 00 90 00 49 [20:09:44]RAPDU: 90 00 [20:09:44]wFMCommunicate OK [20:09:44]wFMCommunicate request_size=4 [20:09:44]MH_SAM_APDU [20:09:44]CAPDU: 80 0D 03 02 [20:09:44]Write to MH i2c: E2 08 00 AC 2A 80 0D 03 02 00 00 00 00 51 [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:44]Read from MH i2c: E2 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 0B 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 0B 00 AC 2A 00 66 B5 05 9A F1 63 C2 5E 90 00 80 [20:09:44]RAPDU: 66 B5 05 9A F1 63 C2 5E 90 00 [20:09:44]wFMCommunicate OK [20:09:44]SAM_PROTO_SignData done [20:09:44]FM_MakeSignedData done [20:09:44]CreateOFDProtocolMessage [20:09:44]wFMCommunicate request_size=4 [20:09:44]MH_SAM_APDU [20:09:44]CAPDU: 80 11 00 00 [20:09:44]Write to MH i2c: E2 08 00 AD 2A 80 11 00 00 00 00 00 00 51 [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:44]Read from MH i2c: E2 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 17 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 17 00 AD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A8 [20:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:09:44]wFMCommunicate OK [20:09:44]CreateOFDProtocolMessage done [20:09:44]OFDSenderStorePacket 117487 [20:09:44]StoreOFDPacket docnum=117487 [20:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 73 F5 07 01 E6 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 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 BB 00 00 00 F4 03 04 00 0A 9E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EF CA 01 00 35 04 06 00 1A 90 98 95 64 59 66 B5 05 9A F1 63 C2 5E [20:09:44]CheckFolder [20:09:44]dirname=/storage/ofd_packets [20:09:44]CheckFolder done [20:09:44]ProducePacketName [20:09:44]name=ofd_packets/00117487 [20:09:44]NVStorageSaveData ofd_packets/00117487 [20:09:44]File name is /storage/ofd_packets/00117487 [20:09:44]Write 301 bytes [20:09:44]NVStorageSaveData done [20:09:44]OFDSenderStorePacket done [20:09:44]KKMCreateOFDPacket done [20:09:44]NVStorageSaveData kkm_last_timestamp [20:09:44]File name is /storage/kkm_last_timestamp [20:09:44]Write 4 bytes [20:09:44]NVStorageSaveData done [20:09:44]ExternCall_PrintAddStr [20:09:44]wPrintStart [20:09:44]Write to MH i2c: 01 00 00 AE 2A D8 [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: 01 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: 01 07 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: 01 07 00 AE 2A 00 00 00 00 00 FF 0F ED [20:09:44]RasterBufferAndPrint [20:09:44]line Счет N : (1)245263 [20:09:44]line ИНН: 02508201610067 [20:09:44]line Контрольно-Кассовый Чек [20:09:44]line ПРОДАЖА [20:09:44]line ТРК (МРК, ГНК) : 21 [20:09:44]line Товар: 2710124130 [20:09:44]line Аи-92-К-2 [20:09:44]line 14.950 * 66.90 [20:09:44]line = 1000.16 [20:09:44]line НДС 12% НСП 1% [20:09:44]line > о реализуемом товаре [20:09:44]line ОКРУГЛЕНИЕ: -0.16 [20:09:44]line ИТОГО: 1000.00 [20:09:44]line Внесено: 1000.00 [20:09:44]line СДАЧА: 0.00 [20:09:44]line НСП 1% : 8.85 [20:09:44]line НДС 12% : 106.21 [20:09:44]line Наличными: 1000.00 [20:09:44]line Безнал.: 0.00 [20:09:44]line Место: АЗС № 173 "Партнер Нефть" [20:09:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:09:44]line СНО: Общий режим [20:09:44]line Чек 187 27.10.2024 20:09 [20:09:44]line Смена: 542 ФФД: 1.0 [20:09:44]line ЗНМ: 0300000115 [20:09:44]line РНМ: 0000000000091782 [20:09:44]line Версия ККМ: 001 [20:09:44]line ФМ: 0000000000871767 [20:09:44]line ФД: 117487 [20:09:44]line ФПД: 29208337540185 [20:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200946&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117487&fm=29208337540185&tin=02508201610067®Number=0000000000091782&sum=100000 [20:09:44]OFD Sender: Processing packet 117487 [packets to send 76, broken 75] [20:09:44]ProducePacketName [20:09:44]name=ofd_packets/00117487 [20:09:44]OFD Sender: To server: pG, [20:09:44]CommunicateWithHost lk.salyk.kg:30040 [20:09:44]ConnectInit lk.salyk.kg [20:09:44]written 0, free lines is 4095 [20:09:45]Connected sock=10 [20:09: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 36 37 0F 01 00 00 73 F5 07 01 E6 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 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 BB 00 00 00 F4 03 04 00 0A 9E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EF CA 01 00 35 04 06 00 1A 90 98 95 64 59 66 B5 05 9A F1 63 C2 5E [20:09: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 36 37 4F 00 00 00 79 28 47 00 EE 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 36 37 10 04 04 00 EF CA 01 00 F4 03 04 00 C6 49 1E 67 B6 04 01 00 00 F5 CA 8B E7 8F D3 F3 BE [20:09:45]CommunicateWithHost err = 0 [20:09:45]CheckOFDResponse [20:09:45]1017 (14) - 77093643461234 [20:09:45]1041 (16) - 0000000000871767 [20:09:45]1040 (4) - 117487 [20:09:45]1012 (4) - 27.10.2024 14:10 [20:09:45]1206 (1) - 0 [20:09:45]OFD Sender: Remove packet 117487 [20:09:45]ProducePacketName [20:09:45]name=ofd_packets/00117487 [20:09:45]NVStorageDeleteData [20:09:45]Write to MH i2c: 01 00 00 D8 2A 02 [20:09:45]Write i2c OK [20:09:45]MH_I2C_Read... [20:09:45]Read from MH i2c: 01 [20:09:45]MH_I2C_Read... [20:09:45]Read from MH i2c: 01 07 00 [20:09:45]MH_I2C_Read... [20:09:45]Read from MH i2c: 01 07 00 D8 2A 00 00 00 00 00 B9 0C CE [20:09:45]RasterBufferAndPrint [20:09:45]line [20:09:45]line [20:09:45]line [20:09:45]line [20:09:45]line [20:09:45]written 0, free lines is 3265 [20:09:45]MH_Cut [20:09:45]Write to MH i2c: D1 01 00 DF 2A 01 DB [20:09:45]Write i2c OK [20:09:45]MH_I2C_Read... [20:09:45]Read from MH i2c: D1 [20:09:45]MH_I2C_Read... [20:09:45]Read from MH i2c: D1 01 00 [20:09:45]MH_I2C_Read... [20:09:45]Read from MH i2c: D1 01 00 DF 2A 00 DA [20:09:45]Write to MH i2c: 01 00 00 E0 2A 0A [20:09:45]Write i2c OK [20:09:45]MH_I2C_Read... [20:09:45]OFD Sender: No OFD packet to send [20:09:46]*** Cut start [20:09:46]*** Purtial cut [20:09:46]*** Stage 1: CUTSNS_PIN = 1 [20:09:46]Read from MH i2c: 01 [20:09:46]MH_I2C_Read... [20:09:46]*** Stop cut motor [20:09:46]*** Cut end [20:09:46]Read from MH i2c: 01 07 00 [20:09:46]MH_I2C_Read... [20:09:46]Read from MH i2c: 01 07 00 E0 2A 00 00 00 00 00 FF 0F 1F [20:09:46]process_action close_receipt done [20:09:46]requested_data is exist [20:09:46]produce_requested_data [20:09:46]requested_item fm.sn is exist - process it [20:09:46]wFMCommunicate request_size=4 [20:09:46]MH_SAM_APDU [20:09:46]CAPDU: 80 11 00 00 [20:09:46]Write to MH i2c: E2 08 00 E1 2A 80 11 00 00 00 00 00 00 85 [20:09:46]Write i2c OK [20:09:46]MH_I2C_Read... [20:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:46]Read from MH i2c: E2 [20:09:46]MH_I2C_Read... [20:09:46]Read from MH i2c: E2 17 00 [20:09:46]MH_I2C_Read... [20:09:46]Read from MH i2c: E2 17 00 E1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DC [20:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:09:46]wFMCommunicate OK [20:09:46]requested_item fd.num is exist - process it [20:09:46]SAM_PROTO_GetFieldsCounters [20:09:46]wFMCommunicate request_size=4 [20:09:46]MH_SAM_APDU [20:09:46]CAPDU: 80 13 00 00 [20:09:46]Write to MH i2c: E2 08 00 E2 2A 80 13 00 00 00 00 00 00 88 [20:09:46]Write i2c OK [20:09:46]MH_I2C_Read... [20:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:46]Read from MH i2c: E2 [20:09:46]MH_I2C_Read... [20:09:46]Read from MH i2c: E2 62 00 [20:09:46]MH_I2C_Read... [20:09:46]Read from MH i2c: E2 62 00 E2 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EF CA 01 00 0E 04 04 00 1E 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 BA [20: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EF CA 01 00 0E 04 04 00 1E 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 [20:09:46]wFMCommunicate OK [20:09:46]SAM_PROTO_GetFieldsCounters done [20:09:46]requested_item shift.num is exist - process it [20:09:46]requested_item shift.opened is exist - process it [20:09:46]req_shift_opened [20:09:46]FM_GetShiftState [20:09:46]SAM_PROTO_GetShiftState [20:09:46]wFMCommunicate request_size=4 [20:09:46]MH_SAM_APDU [20:09:46]CAPDU: 80 13 01 00 [20:09:46]Write to MH i2c: E2 08 00 E3 2A 80 13 01 00 00 00 00 00 8A [20:09:46]Write i2c OK [20:09:46]MH_I2C_Read... [20:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:46]Read from MH i2c: E2 [20:09:46]MH_I2C_Read... [20:09:46]Read from MH i2c: E2 0E 00 [20:09:46]MH_I2C_Read... [20:09:46]Read from MH i2c: E2 0E 00 E3 2A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C9 [20:09:46]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:09:46]wFMCommunicate OK [20:09:46]SAM_PROTO_GetShiftState done [20:09:46]FM_GetShiftState done [20:09:46]req_shift_opened done [20:09:46]requested_item shift.open_date is exist - process it [20:09:46]req_shift_open_date [20:09:46]req_shift_open_date done [20:09:46]produce_requested_data done [20:09:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117487,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:09:46]process_action_free close_receipt [20:09:46]json_value_free [20:09:46]json_value_free done [20:09:46]process_json_proto returns [20:09:46]Send response to host [20:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117487,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:09:46]free response buf [20:09:46]execute_script done [20:09:46]execute_script returns [20:09:46]free content buf [20:09:46]Sock 7.Close socket [20:09:46]Sock 7.Thread stoped [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:31]accept exits with 9 [20:12:31]New connection [20:12:31]New thread 3067456868 created [20:12:31]Thread 3067600228 joined [20:12:31]Waiting for new connection... [20:12:31] Sock 9.Parse request [20:12:31]Sock 9.Check first char [20:12:31]Sock 9.First char is OK [20:12:31]request: POST /json_proto HTTP/1.0 [20:12:31]Method: POST [20:12:31]URL: /json_proto [20:12:31]Method is POST - this is cgi request [20:12:31]url: /json_proto [20:12:31]query_string will be loaded in cgi processing [20:12:31]execute_cgi json_proto POST (null) [20:12:31]execute_cgi path=json_proto method=POST [20:12:31]POST find Content-Length [20:12:31]Host: 172.17.96.67:8080 [20:12:31]Content-Length: 677 [20:12:31]Content-Type: application/json [20:12:31] [20:12:31]POST finish read [20:12:31]Found Content-Length = 677 [20:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:31]execute_script... [20:12: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)245264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:31]POST & json_proto [20:12:31]process_json_proto [20:12:31]json parsed OK: [20:12:31]protocol is kg_v1.0 [20:12:31]action value=close_receipt [20:12:31]process_action close_receipt [20:12:31]cmd_close_receipt [20:12:31]MH_GetDate [20:12:31]Write to MH i2c: F0 00 00 E4 2A FD [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: F0 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: F0 09 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: F0 09 00 E4 2A 00 B2 9E 1E 67 2B 09 1E 67 94 [20:12:31]GetLastDocTimeStamp 1730059786 [20:12:31]current date 1730059954 [20:12:31]FM_GetShiftState [20:12:31]SAM_PROTO_GetShiftState [20:12:31]wFMCommunicate request_size=4 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 13 01 00 [20:12:31]Write to MH i2c: E2 08 00 E5 2A 80 13 01 00 00 00 00 00 8C [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 0E 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 0E 00 E5 2A 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 CB [20:12:31]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:12:31]wFMCommunicate OK [20:12:31]SAM_PROTO_GetShiftState done [20:12:31]FM_GetShiftState done [20:12:31]opened in 1729987372 [20:12:31]opened+sec_in_day 1730073772 [20:12:31]quantity*price = 45023 [20:12:31]sum+1 = 45025 [20:12:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 188 27.10.2024 20:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117488 ФПД: 146266033126489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201234&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117488&fm=146266033126489&tin=02508201610067®Number=0000000000091782&sum=45000 [20:12:32]StoreToDocumentArchive [20:12:32]shift 542 fd 117488 [20:12:32]save to /storage/0542/doc_00117488 [20:12:32]save last doc name /storage/0542/doc_00117488 to /storage/kkm_last_doc_name [20:12:32]save OK [20:12:32]Clear old archive folders... [20:12:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:32]tlvbuf is 016D5E20 [20:12:32]SAM_PROTO_ClearQueue [20:12:32]wFMCommunicate request_size=4 [20:12:32]MH_SAM_APDU [20:12:32]CAPDU: 80 09 00 00 [20:12:32]Write to MH i2c: E2 08 00 F2 2A 80 09 00 00 00 00 00 00 8E [20:12:32]Write i2c OK [20:12:32]MH_I2C_Read... [20:12:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:32]Read from MH i2c: E2 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: E2 03 00 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: E2 03 00 F2 2A 00 90 00 90 [20:12:32]RAPDU: 90 00 [20:12:32]wFMCommunicate OK [20:12:32]SAM_PROTO_ClearQueue done [20:12:32]KKMCreateOFDPacket [20:12:32]OFDProtocolAddRootSTLVToBuf [20:12:32]FM_MakeSignedData [20:12:32]FM_MakeSignedData [20:12:32]SAM_PROTO_SignData [20:12:32]wFMCommunicate request_size=4 [20:12:32]MH_SAM_APDU [20:12:32]CAPDU: 80 0D 01 02 [20:12:32]Write to MH i2c: E2 08 00 F3 2A 80 0D 01 02 00 00 00 00 96 [20:12:32]Write i2c OK [20:12:32]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 03 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 03 00 F3 2A 00 90 00 91 [20:12:33]RAPDU: 90 00 [20:12:33]wFMCommunicate OK [20:12:33]wFMCommunicate request_size=255 [20:12:33]MH_SAM_APDU [20: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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B2 9E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F0 CA 01 00 35 04 06 00 85 [20:12:33]Write to MH i2c: E2 02 01 F4 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B2 9E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F0 CA 01 00 35 04 06 00 85 00 00 FF [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 03 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 03 00 F4 2A 00 90 00 92 [20:12:33]RAPDU: 90 00 [20:12:33]wFMCommunicate OK [20:12:33]wFMCommunicate request_size=10 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 0D 02 02 05 07 36 F2 7C 59 [20:12:33]Write to MH i2c: E2 0D 00 F5 2A 80 0D 02 02 05 00 07 36 F2 7C 59 00 00 A7 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 03 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 03 00 F5 2A 00 90 00 93 [20:12:33]RAPDU: 90 00 [20:12:33]wFMCommunicate OK [20:12:33]wFMCommunicate request_size=4 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 0D 03 02 [20:12:33]Write to MH i2c: E2 08 00 F6 2A 80 0D 03 02 00 00 00 00 9B [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 0B 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 0B 00 F6 2A 00 DB 71 4C 4F FB E0 B7 FF 90 00 14 [20:12:33]RAPDU: DB 71 4C 4F FB E0 B7 FF 90 00 [20:12:33]wFMCommunicate OK [20:12:33]SAM_PROTO_SignData done [20:12:33]FM_MakeSignedData done [20:12:33]CreateOFDProtocolMessage [20:12:33]wFMCommunicate request_size=4 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 11 00 00 [20:12:33]Write to MH i2c: E2 08 00 F7 2A 80 11 00 00 00 00 00 00 9B [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 17 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 17 00 F7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F2 [20:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:12:33]wFMCommunicate OK [20:12:33]CreateOFDProtocolMessage done [20:12:33]OFDSenderStorePacket 117488 [20:12:33]StoreOFDPacket docnum=117488 [20:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FF BF 07 01 1B 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B2 9E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F0 CA 01 00 35 04 06 00 85 07 36 F2 7C 59 DB 71 4C 4F FB E0 B7 FF [20:12:33]CheckFolder [20:12:33]dirname=/storage/ofd_packets [20:12:33]CheckFolder done [20:12:33]ProducePacketName [20:12:33]name=ofd_packets/00117488 [20:12:33]NVStorageSaveData ofd_packets/00117488 [20:12:33]File name is /storage/ofd_packets/00117488 [20:12:33]Write 301 bytes [20:12:33]NVStorageSaveData done [20:12:33]OFDSenderStorePacket done [20:12:33]KKMCreateOFDPacket done [20:12:33]NVStorageSaveData kkm_last_timestamp [20:12:33]File name is /storage/kkm_last_timestamp [20:12:33]Write 4 bytes [20:12:33]NVStorageSaveData done [20:12:33]ExternCall_PrintAddStr [20:12:33]wPrintStart [20:12:33]Write to MH i2c: 01 00 00 F8 2A 22 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: 01 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: 01 07 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: 01 07 00 F8 2A 00 00 00 00 00 FF 0F 37 [20:12:33]RasterBufferAndPrint [20:12:33]line Счет N : (1)245264 [20:12:33]line ИНН: 02508201610067 [20:12:33]line Контрольно-Кассовый Чек [20:12:33]line ПРОДАЖА [20:12:33]line ТРК (МРК, ГНК) : 11 [20:12:33]line Товар: 2710124130 [20:12:33]line Аи-92-К-2 [20:12:33]line 6.730 * 66.90 [20:12:33]line = 450.24 [20:12:33]line НДС 12% НСП 1% [20:12:33]line > о реализуемом товаре [20:12:33]line ОКРУГЛЕНИЕ: -0.24 [20:12:33]line ИТОГО: 450.00 [20:12:33]line Внесено: 450.00 [20:12:33]line СДАЧА: 0.00 [20:12:33]line НСП 1% : 3.98 [20:12:33]line НДС 12% : 47.81 [20:12:33]line Наличными: 450.00 [20:12:33]line Безнал.: 0.00 [20:12:33]line Место: АЗС № 173 "Партнер Нефть" [20:12:33]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:12:33]line СНО: Общий режим [20:12:33]line Чек 188 27.10.2024 20:12 [20:12:33]line Смена: 542 ФФД: 1.0 [20:12:33]line ЗНМ: 0300000115 [20:12:33]line РНМ: 0000000000091782 [20:12:33]line Версия ККМ: 001 [20:12:33]line ФМ: 0000000000871767 [20:12:33]line ФД: 117488 [20:12:33]line ФПД: 146266033126489 [20:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201234&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117488&fm=146266033126489&tin=02508201610067®Number=0000000000091782&sum=45000 [20:12:33]written 0, free lines is 4095 [20:12:33]OFD Sender: Processing packet 117488 [packets to send 76, broken 75] [20:12:33]ProducePacketName [20:12:33]name=ofd_packets/00117488 [20:12:33]OFD Sender: To server: pG, [20:12:33]CommunicateWithHost lk.salyk.kg:30040 [20:12:33]ConnectInit lk.salyk.kg [20:12:33]Connected sock=10 [20:12: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 36 37 0F 01 00 00 FF BF 07 01 1B 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B2 9E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F0 CA 01 00 35 04 06 00 85 07 36 F2 7C 59 DB 71 4C 4F FB E0 B7 FF [20:12: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 36 37 4F 00 00 00 7A 53 47 00 50 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 36 37 10 04 04 00 F0 CA 01 00 F4 03 04 00 6F 4A 1E 67 B6 04 01 00 00 F8 EB 8F 7C 7E 4E 38 A7 [20:12:33]CommunicateWithHost err = 0 [20:12:33]CheckOFDResponse [20:12:33]1017 (14) - 77093643461234 [20:12:33]1041 (16) - 0000000000871767 [20:12:33]1040 (4) - 117488 [20:12:33]1012 (4) - 27.10.2024 14:13 [20:12:33]1206 (1) - 0 [20:12:33]OFD Sender: Remove packet 117488 [20:12:33]ProducePacketName [20:12:33]name=ofd_packets/00117488 [20:12:33]NVStorageDeleteData [20:12:33]Write to MH i2c: 01 00 00 22 2B 4D [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: 01 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: 01 07 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: 01 07 00 22 2B 00 00 00 00 00 B9 0C 19 [20:12:33]RasterBufferAndPrint [20:12:33]line [20:12:33]line [20:12:33]line [20:12:33]line [20:12:33]line [20:12:33]written 0, free lines is 3265 [20:12:33]MH_Cut [20:12:33]Write to MH i2c: D1 01 00 29 2B 01 26 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: D1 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: D1 01 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: D1 01 00 29 2B 00 25 [20:12:33]Write to MH i2c: 01 00 00 2A 2B 55 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:34]OFD Sender: No OFD packet to send [20:12:34]*** Cut start [20:12:34]*** Purtial cut [20:12:34]*** Stage 1: CUTSNS_PIN = 1 [20:12:35]Read from MH i2c: 01 [20:12:35]MH_I2C_Read... [20:12:35]*** Stop cut motor [20:12:35]*** Cut end [20:12:35]Read from MH i2c: 01 07 00 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 07 00 2A 2B 00 00 00 00 00 FF 0F 6A [20:12:35]process_action close_receipt done [20:12:35]requested_data is exist [20:12:35]produce_requested_data [20:12:35]requested_item fm.sn is exist - process it [20:12:35]wFMCommunicate request_size=4 [20:12:35]MH_SAM_APDU [20:12:35]CAPDU: 80 11 00 00 [20:12:35]Write to MH i2c: E2 08 00 2B 2B 80 11 00 00 00 00 00 00 D0 [20:12:35]Write i2c OK [20:12:35]MH_I2C_Read... [20:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:35]Read from MH i2c: E2 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: E2 17 00 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: E2 17 00 2B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 27 [20:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:12:35]wFMCommunicate OK [20:12:35]requested_item fd.num is exist - process it [20:12:35]SAM_PROTO_GetFieldsCounters [20:12:35]wFMCommunicate request_size=4 [20:12:35]MH_SAM_APDU [20:12:35]CAPDU: 80 13 00 00 [20:12:35]Write to MH i2c: E2 08 00 2C 2B 80 13 00 00 00 00 00 00 D3 [20:12:35]Write i2c OK [20:12:35]MH_I2C_Read... [20:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:35]Read from MH i2c: E2 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: E2 62 00 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: E2 62 00 2C 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F0 CA 01 00 0E 04 04 00 1E 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 09 [20:12: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F0 CA 01 00 0E 04 04 00 1E 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 [20:12:35]wFMCommunicate OK [20:12:35]SAM_PROTO_GetFieldsCounters done [20:12:35]requested_item shift.num is exist - process it [20:12:35]requested_item shift.opened is exist - process it [20:12:35]req_shift_opened [20:12:35]FM_GetShiftState [20:12:35]SAM_PROTO_GetShiftState [20:12:35]wFMCommunicate request_size=4 [20:12:35]MH_SAM_APDU [20:12:35]CAPDU: 80 13 01 00 [20:12:35]Write to MH i2c: E2 08 00 2D 2B 80 13 01 00 00 00 00 00 D5 [20:12:35]Write i2c OK [20:12:35]MH_I2C_Read... [20:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:35]Read from MH i2c: E2 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: E2 0E 00 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: E2 0E 00 2D 2B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 14 [20:12:35]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:12:35]wFMCommunicate OK [20:12:35]SAM_PROTO_GetShiftState done [20:12:35]FM_GetShiftState done [20:12:35]req_shift_opened done [20:12:35]requested_item shift.open_date is exist - process it [20:12:35]req_shift_open_date [20:12:35]req_shift_open_date done [20:12:35]produce_requested_data done [20:12:35]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117488,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:12:35]process_action_free close_receipt [20:12:35]json_value_free [20:12:35]json_value_free done [20:12:35]process_json_proto returns [20:12:35]Send response to host [20:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117488,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:12:35]free response buf [20:12:35]execute_script done [20:12:35]execute_script returns [20:12:35]free content buf [20:12:35]Sock 9.Close socket [20:12:35]Sock 9.Thread stoped [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:06]accept exits with 7 [20:20:06]New connection [20:20:06]New thread 3067600228 created [20:20:06]Thread 3067456868 joined [20:20:06]Waiting for new connection... [20:20:06] Sock 7.Parse request [20:20:06]Sock 7.Check first char [20:20:06]Sock 7.First char is OK [20:20:06]request: POST /json_proto HTTP/1.0 [20:20:06]Method: POST [20:20:06]URL: /json_proto [20:20:06]Method is POST - this is cgi request [20:20:06]url: /json_proto [20:20:06]query_string will be loaded in cgi processing [20:20:06]execute_cgi json_proto POST (null) [20:20:06]execute_cgi path=json_proto method=POST [20:20:06]POST find Content-Length [20:20:06]Host: 172.17.96.67:8080 [20:20:06]Content-Length: 679 [20:20:06]Content-Type: application/json [20:20:06] [20:20:06]POST finish read [20:20:06]Found Content-Length = 679 [20:20:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.660, "sum" : 1650.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:06]execute_script... [20:20: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)245265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.660, "sum" : 1650.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:06]POST & json_proto [20:20:06]process_json_proto [20:20:06]json parsed OK: [20:20:06]protocol is kg_v1.0 [20:20:06]action value=close_receipt [20:20:06]process_action close_receipt [20:20:06]cmd_close_receipt [20:20:06]MH_GetDate [20:20:06]Write to MH i2c: F0 00 00 2E 2B 48 [20:20:06]Write i2c OK [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: F0 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: F0 09 00 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: F0 09 00 2E 2B 00 79 A0 1E 67 2B 09 1E 67 A8 [20:20:06]GetLastDocTimeStamp 1730059954 [20:20:06]current date 1730060409 [20:20:06]FM_GetShiftState [20:20:06]SAM_PROTO_GetShiftState [20:20:06]wFMCommunicate request_size=4 [20:20:06]MH_SAM_APDU [20:20:06]CAPDU: 80 13 01 00 [20:20:06]Write to MH i2c: E2 08 00 2F 2B 80 13 01 00 00 00 00 00 D7 [20:20:06]Write i2c OK [20:20:06]MH_I2C_Read... [20:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:06]Read from MH i2c: E2 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: E2 0E 00 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: E2 0E 00 2F 2B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 16 [20:20:06]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:20:06]wFMCommunicate OK [20:20:06]SAM_PROTO_GetShiftState done [20:20:06]FM_GetShiftState done [20:20:06]opened in 1729987372 [20:20:06]opened+sec_in_day 1730073772 [20:20:06]quantity*price = 165049 [20:20:06]sum+1 = 165050 [20:20:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1650.00 Внесено: 2100.00 СДАЧА: 450.00 НСП 1% : 14.61 НДС 12% : 175.27 Наличными: 1650.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 189 27.10.2024 20:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117489 ФПД: 275739212589007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202010&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117489&fm=275739212589007&tin=02508201610067®Number=0000000000091782&sum=165000 [20:20:07]StoreToDocumentArchive [20:20:07]shift 542 fd 117489 [20:20:07]save to /storage/0542/doc_00117489 [20:20:07]save last doc name /storage/0542/doc_00117489 to /storage/kkm_last_doc_name [20:20:07]save OK [20:20:07]Clear old archive folders... [20:20:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:20:07]tlvbuf is 01769120 [20:20:07]SAM_PROTO_ClearQueue [20:20:07]wFMCommunicate request_size=4 [20:20:07]MH_SAM_APDU [20:20:07]CAPDU: 80 09 00 00 [20:20:07]Write to MH i2c: E2 08 00 3C 2B 80 09 00 00 00 00 00 00 D9 [20:20:07]Write i2c OK [20:20:07]MH_I2C_Read... [20:20:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:07]Read from MH i2c: E2 [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: E2 03 00 [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: E2 03 00 3C 2B 00 90 00 DB [20:20:07]RAPDU: 90 00 [20:20:07]wFMCommunicate OK [20:20:07]SAM_PROTO_ClearQueue done [20:20:07]KKMCreateOFDPacket [20:20:07]OFDProtocolAddRootSTLVToBuf [20:20:07]FM_MakeSignedData [20:20:07]FM_MakeSignedData [20:20:07]SAM_PROTO_SignData [20:20:07]wFMCommunicate request_size=4 [20:20:07]MH_SAM_APDU [20:20:07]CAPDU: 80 0D 01 02 [20:20:07]Write to MH i2c: E2 08 00 3D 2B 80 0D 01 02 00 00 00 00 E1 [20:20:07]Write i2c OK [20:20:07]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 3D 2B 00 90 00 DC [20:20:08]RAPDU: 90 00 [20:20:08]wFMCommunicate OK [20:20:08]wFMCommunicate request_size=255 [20:20:08]MH_SAM_APDU [20:20: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 9C 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B9 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 44 00 00 00 00 07 04 06 00 88 84 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 7A A0 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F1 CA 01 00 35 04 06 00 FA C8 89 D1 [20:20:08]Write to MH i2c: E2 02 01 3E 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 9C 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B9 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 44 00 00 00 00 07 04 06 00 88 84 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 7A A0 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F1 CA 01 00 35 04 06 00 FA C8 89 D1 00 00 36 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 3E 2B 00 90 00 DD [20:20:08]RAPDU: 90 00 [20:20:08]wFMCommunicate OK [20:20:08]wFMCommunicate request_size=7 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 0D 02 02 02 27 CF [20:20:08]Write to MH i2c: E2 0A 00 3F 2B 80 0D 02 02 02 00 27 CF 00 00 DE [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 03 00 3F 2B 00 90 00 DE [20:20:08]RAPDU: 90 00 [20:20:08]wFMCommunicate OK [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 0D 03 02 [20:20:08]Write to MH i2c: E2 08 00 40 2B 80 0D 03 02 00 00 00 00 E6 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 0B 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 0B 00 40 2B 00 9E 52 00 D4 AF F4 E7 BB 90 00 F0 [20:20:08]RAPDU: 9E 52 00 D4 AF F4 E7 BB 90 00 [20:20:08]wFMCommunicate OK [20:20:08]SAM_PROTO_SignData done [20:20:08]FM_MakeSignedData done [20:20:08]CreateOFDProtocolMessage [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 11 00 00 [20:20:08]Write to MH i2c: E2 08 00 41 2B 80 11 00 00 00 00 00 00 E6 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 17 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 17 00 41 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3D [20:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:20:08]wFMCommunicate OK [20:20:08]CreateOFDProtocolMessage done [20:20:08]OFDSenderStorePacket 117489 [20:20:08]StoreOFDPacket docnum=117489 [20:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 C6 45 04 01 3B BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9C 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B9 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 44 00 00 00 00 07 04 06 00 88 84 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 7A A0 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F1 CA 01 00 35 04 06 00 FA C8 89 D1 27 CF 9E 52 00 D4 AF F4 E7 BB [20:20:08]CheckFolder [20:20:08]dirname=/storage/ofd_packets [20:20:08]CheckFolder done [20:20:08]ProducePacketName [20:20:08]name=ofd_packets/00117489 [20:20:08]NVStorageSaveData ofd_packets/00117489 [20:20:08]File name is /storage/ofd_packets/00117489 [20:20:08]Write 298 bytes [20:20:08]NVStorageSaveData done [20:20:08]OFDSenderStorePacket done [20:20:08]KKMCreateOFDPacket done [20:20:08]NVStorageSaveData kkm_last_timestamp [20:20:08]File name is /storage/kkm_last_timestamp [20:20:08]Write 4 bytes [20:20:08]NVStorageSaveData done [20:20:08]ExternCall_PrintAddStr [20:20:08]wPrintStart [20:20:08]Write to MH i2c: 01 00 00 42 2B 6D [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: 01 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: 01 07 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: 01 07 00 42 2B 00 00 00 00 00 FF 0F 82 [20:20:08]RasterBufferAndPrint [20:20:08]line Счет N : (1)245265 [20:20:08]line ИНН: 02508201610067 [20:20:08]line Контрольно-Кассовый Чек [20:20:08]line ПРОДАЖА [20:20:08]line ТРК (МРК, ГНК) : 23 [20:20:08]line Товар: 2710194210 [20:20:08]line ДТ-К-2 [20:20:08]line 21.660 * 76.20 [20:20:08]line = 1650.49 [20:20:08]line НДС 12% НСП 1% [20:20:08]line > о реализуемом товаре [20:20:08]line ОКРУГЛЕНИЕ: -0.49 [20:20:08]line ИТОГО: 1650.00 [20:20:08]line Внесено: 2100.00 [20:20:08]line СДАЧА: 450.00 [20:20:08]line НСП 1% : 14.61 [20:20:08]line НДС 12% : 175.27 [20:20:08]line Наличными: 1650.00 [20:20:08]line Безнал.: 0.00 [20:20:08]line Место: АЗС № 173 "Партнер Нефть" [20:20:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:20:08]line СНО: Общий режим [20:20:08]line Чек 189 27.10.2024 20:20 [20:20:08]line Смена: 542 ФФД: 1.0 [20:20:08]line ЗНМ: 0300000115 [20:20:08]line РНМ: 0000000000091782 [20:20:08]line Версия ККМ: 001 [20:20:08]line ФМ: 0000000000871767 [20:20:08]line ФД: 117489 [20:20:08]line ФПД: 275739212589007 [20:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202010&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117489&fm=275739212589007&tin=02508201610067®Number=0000000000091782&sum=165000 [20:20:08]OFD Sender: Processing packet 117489 [packets to send 76, broken 75] [20:20:08]ProducePacketName [20:20:08]name=ofd_packets/00117489 [20:20:08]OFD Sender: To server: pG, [20:20:08]CommunicateWithHost lk.salyk.kg:30040 [20:20:08]ConnectInit lk.salyk.kg [20:20:08]written 0, free lines is 4095 [20:20:08]Connected sock=10 [20:20: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 36 37 0C 01 00 00 C6 45 04 01 3B BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9C 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B9 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 44 00 00 00 00 07 04 06 00 88 84 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 7A A0 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F1 CA 01 00 35 04 06 00 FA C8 89 D1 27 CF 9E 52 00 D4 AF F4 E7 BB [20:20: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 36 37 4F 00 00 00 37 7E 47 00 F0 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 36 37 10 04 04 00 F1 CA 01 00 F4 03 04 00 36 4C 1E 67 B6 04 01 00 00 86 47 2C 1C 8F E0 31 40 [20:20:09]CommunicateWithHost err = 0 [20:20:09]CheckOFDResponse [20:20:09]1017 (14) - 77093643461234 [20:20:09]1041 (16) - 0000000000871767 [20:20:09]1040 (4) - 117489 [20:20:09]1012 (4) - 27.10.2024 14:20 [20:20:09]1206 (1) - 0 [20:20:09]OFD Sender: Remove packet 117489 [20:20:09]ProducePacketName [20:20:09]name=ofd_packets/00117489 [20:20:09]NVStorageDeleteData [20:20:09]Write to MH i2c: 01 00 00 6C 2B 97 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 07 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 07 00 6C 2B 00 00 00 00 00 BE 0C 68 [20:20:09]RasterBufferAndPrint [20:20:09]line [20:20:09]line [20:20:09]line [20:20:09]line [20:20:09]line [20:20:09]written 0, free lines is 3268 [20:20:09]MH_Cut [20:20:09]Write to MH i2c: D1 01 00 73 2B 01 70 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: D1 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: D1 01 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: D1 01 00 73 2B 00 6F [20:20:09]Write to MH i2c: 01 00 00 74 2B 9F [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]OFD Sender: No OFD packet to send [20:20:10]*** Cut start [20:20:10]*** Purtial cut [20:20:10]*** Stage 1: CUTSNS_PIN = 1 [20:20:10]Read from MH i2c: 01 [20:20:10]MH_I2C_Read... [20:20:10]*** Stop cut motor [20:20:10]*** Cut end [20:20:10]Read from MH i2c: 01 07 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 07 00 74 2B 00 00 00 00 00 FF 0F B4 [20:20:10]process_action close_receipt done [20:20:10]requested_data is exist [20:20:10]produce_requested_data [20:20:10]requested_item fm.sn is exist - process it [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 11 00 00 [20:20:10]Write to MH i2c: E2 08 00 75 2B 80 11 00 00 00 00 00 00 1A [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 17 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 17 00 75 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 71 [20:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:20:10]wFMCommunicate OK [20:20:10]requested_item fd.num is exist - process it [20:20:10]SAM_PROTO_GetFieldsCounters [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 13 00 00 [20:20:10]Write to MH i2c: E2 08 00 76 2B 80 13 00 00 00 00 00 00 1D [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 62 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 62 00 76 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F1 CA 01 00 0E 04 04 00 1E 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 57 [20:20: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F1 CA 01 00 0E 04 04 00 1E 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 [20:20:10]wFMCommunicate OK [20:20:10]SAM_PROTO_GetFieldsCounters done [20:20:10]requested_item shift.num is exist - process it [20:20:10]requested_item shift.opened is exist - process it [20:20:10]req_shift_opened [20:20:10]FM_GetShiftState [20:20:10]SAM_PROTO_GetShiftState [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 13 01 00 [20:20:10]Write to MH i2c: E2 08 00 77 2B 80 13 01 00 00 00 00 00 1F [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 0E 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 0E 00 77 2B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 5E [20:20:10]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:20:10]wFMCommunicate OK [20:20:10]SAM_PROTO_GetShiftState done [20:20:10]FM_GetShiftState done [20:20:10]req_shift_opened done [20:20:10]requested_item shift.open_date is exist - process it [20:20:10]req_shift_open_date [20:20:10]req_shift_open_date done [20:20:10]produce_requested_data done [20:20:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117489,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:20:10]process_action_free close_receipt [20:20:10]json_value_free [20:20:10]json_value_free done [20:20:10]process_json_proto returns [20:20:10]Send response to host [20:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117489,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:20:10]free response buf [20:20:10]execute_script done [20:20:10]execute_script returns [20:20:10]free content buf [20:20:10]Sock 7.Close socket [20:20:10]Sock 7.Thread stoped [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:49]accept exits with 9 [20:27:49]New connection [20:27:49]New thread 3067456868 created [20:27:49]Thread 3067600228 joined [20:27:49]Waiting for new connection... [20:27:49] Sock 9.Parse request [20:27:49]Sock 9.Check first char [20:27:49]Sock 9.First char is OK [20:27:49]request: POST /json_proto HTTP/1.0 [20:27:49]Method: POST [20:27:49]URL: /json_proto [20:27:49]Method is POST - this is cgi request [20:27:49]url: /json_proto [20:27:49]query_string will be loaded in cgi processing [20:27:49]execute_cgi json_proto POST (null) [20:27:49]execute_cgi path=json_proto method=POST [20:27:49]POST find Content-Length [20:27:49]Host: 172.17.96.67:8080 [20:27:49]Content-Length: 766 [20:27:49]Content-Type: application/json [20:27:49] [20:27:49]POST finish read [20:27:49]Found Content-Length = 766 [20:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [20:27:49]execute_script... [20:27: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)245266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [20:27:49]POST & json_proto [20:27:49]process_json_proto [20:27:49]json parsed OK: [20:27:49]protocol is kg_v1.0 [20:27:49]action value=close_receipt [20:27:49]process_action close_receipt [20:27:49]cmd_close_receipt [20:27:49]MH_GetDate [20:27:49]Write to MH i2c: F0 00 00 78 2B 92 [20:27:49]Write i2c OK [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: F0 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: F0 09 00 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: F0 09 00 78 2B 00 49 A2 1E 67 2B 09 1E 67 C4 [20:27:49]GetLastDocTimeStamp 1730060410 [20:27:49]current date 1730060873 [20:27:49]FM_GetShiftState [20:27:49]SAM_PROTO_GetShiftState [20:27:49]wFMCommunicate request_size=4 [20:27:49]MH_SAM_APDU [20:27:49]CAPDU: 80 13 01 00 [20:27:49]Write to MH i2c: E2 08 00 79 2B 80 13 01 00 00 00 00 00 21 [20:27:49]Write i2c OK [20:27:49]MH_I2C_Read... [20:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:50]Read from MH i2c: E2 [20:27:50]MH_I2C_Read... [20:27:50]Read from MH i2c: E2 0E 00 [20:27:50]MH_I2C_Read... [20:27:50]Read from MH i2c: E2 0E 00 79 2B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 60 [20:27:50]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:27:50]wFMCommunicate OK [20:27:50]SAM_PROTO_GetShiftState done [20:27:50]FM_GetShiftState done [20:27:50]opened in 1729987372 [20:27:50]opened+sec_in_day 1730073772 [20:27:50]quantity*price = 200025 [20:27:50]sum+1 = 200026 [20:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 190 27.10.2024 20:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117490 ФПД: 222212027418861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202753&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117490&fm=222212027418861&tin=02508201610067®Number=0000000000091782&sum=200025 [20:27:51]StoreToDocumentArchive [20:27:51]shift 542 fd 117490 [20:27:51]save to /storage/0542/doc_00117490 [20:27:51]save last doc name /storage/0542/doc_00117490 to /storage/kkm_last_doc_name [20:27:51]save OK [20:27:51]Clear old archive folders... [20:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:27:51]tlvbuf is 0179CC30 [20:27:51]SAM_PROTO_ClearQueue [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 09 00 00 [20:27:51]Write to MH i2c: E2 08 00 86 2B 80 09 00 00 00 00 00 00 23 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 86 2B 00 90 00 25 [20:27:51]RAPDU: 90 00 [20:27:51]wFMCommunicate OK [20:27:51]SAM_PROTO_ClearQueue done [20:27:51]KKMCreateOFDPacket [20:27:51]OFDProtocolAddRootSTLVToBuf [20:27:51]FM_MakeSignedData [20:27:51]FM_MakeSignedData [20:27:51]SAM_PROTO_SignData [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 0D 01 02 [20:27:51]Write to MH i2c: E2 08 00 87 2B 80 0D 01 02 00 00 00 00 2B [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 87 2B 00 90 00 26 [20:27:51]RAPDU: 90 00 [20:27:51]wFMCommunicate OK [20:27:51]wFMCommunicate request_size=255 [20:27:51]MH_SAM_APDU [20:27:51]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 BE 00 00 00 F4 03 04 00 49 A2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F2 CA 01 00 35 04 06 00 CA 19 C4 F5 [20:27:51]Write to MH i2c: E2 02 01 88 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 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 BE 00 00 00 F4 03 04 00 49 A2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F2 CA 01 00 35 04 06 00 CA 19 C4 F5 00 00 7A [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 88 2B 00 90 00 27 [20:27:51]RAPDU: 90 00 [20:27:51]wFMCommunicate OK [20:27:51]wFMCommunicate request_size=7 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 0D 02 02 02 88 ED [20:27:51]Write to MH i2c: E2 0A 00 89 2B 80 0D 02 02 02 00 88 ED 00 00 A7 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 89 2B 00 90 00 28 [20:27:51]RAPDU: 90 00 [20:27:51]wFMCommunicate OK [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 0D 03 02 [20:27:51]Write to MH i2c: E2 08 00 8A 2B 80 0D 03 02 00 00 00 00 30 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 0B 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 0B 00 8A 2B 00 02 76 11 7D 4A 24 67 DD 90 00 E9 [20:27:51]RAPDU: 02 76 11 7D 4A 24 67 DD 90 00 [20:27:51]wFMCommunicate OK [20:27:51]SAM_PROTO_SignData done [20:27:51]FM_MakeSignedData done [20:27:51]CreateOFDProtocolMessage [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 11 00 00 [20:27:51]Write to MH i2c: E2 08 00 8B 2B 80 11 00 00 00 00 00 00 30 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 17 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 17 00 8B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 87 [20:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:27:51]wFMCommunicate OK [20:27:51]CreateOFDProtocolMessage done [20:27:51]OFDSenderStorePacket 117490 [20:27:51]StoreOFDPacket docnum=117490 [20:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 67 A5 04 01 E9 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 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 BE 00 00 00 F4 03 04 00 49 A2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F2 CA 01 00 35 04 06 00 CA 19 C4 F5 88 ED 02 76 11 7D 4A 24 67 DD [20:27:51]CheckFolder [20:27:51]dirname=/storage/ofd_packets [20:27:51]CheckFolder done [20:27:51]ProducePacketName [20:27:51]name=ofd_packets/00117490 [20:27:51]NVStorageSaveData ofd_packets/00117490 [20:27:51]File name is /storage/ofd_packets/00117490 [20:27:51]Write 298 bytes [20:27:51]NVStorageSaveData done [20:27:51]OFDSenderStorePacket done [20:27:51]KKMCreateOFDPacket done [20:27:51]NVStorageSaveData kkm_last_timestamp [20:27:51]File name is /storage/kkm_last_timestamp [20:27:51]Write 4 bytes [20:27:51]NVStorageSaveData done [20:27:51]ExternCall_PrintAddStr [20:27:51]wPrintStart [20:27:51]Write to MH i2c: 01 00 00 8C 2B B7 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 07 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 07 00 8C 2B 00 00 00 00 00 FF 0F CC [20:27:51]RasterBufferAndPrint [20:27:51]line Счет N : (1)245266 [20:27:51]line ИНН: 02508201610067 [20:27:51]line Контрольно-Кассовый Чек [20:27:51]line ПРОДАЖА [20:27:51]line ТРК (МРК, ГНК) : 13 [20:27:51]line Товар: 2710194210 [20:27:51]line ДТ-К-2 [20:27:51]line 26.250 * 76.20 [20:27:51]line = 2000.25 [20:27:51]line НДС 12% НСП 1% [20:27:51]line > о реализуемом товаре [20:27:51]line ИТОГО: 2000.25 [20:27:51]line НСП 1% : 17.70 [20:27:51]line НДС 12% : 212.42 [20:27:51]line Наличными: 0.00 [20:27:51]line Безнал.: 2000.25 [20:27:51]line Место: АЗС № 173 "Партнер Нефть" [20:27:51]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:27:51]line СНО: Общий режим [20:27:51]line Чек 190 27.10.2024 20:27 [20:27:51]line Смена: 542 ФФД: 1.0 [20:27:51]line ЗНМ: 0300000115 [20:27:51]line РНМ: 0000000000091782 [20:27:51]line Версия ККМ: 001 [20:27:51]line Платежная система: Mbank [20:27:51]line ФМ: 0000000000871767 [20:27:51]line ФД: 117490 [20:27:51]line ФПД: 222212027418861 [20:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202753&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117490&fm=222212027418861&tin=02508201610067®Number=0000000000091782&sum=200025 [20:27:51]OFD Sender: Processing packet 117490 [packets to send 76, broken 75] [20:27:51]ProducePacketName [20:27:51]name=ofd_packets/00117490 [20:27:51]OFD Sender: To server: pG, [20:27:51]CommunicateWithHost lk.salyk.kg:30040 [20:27:51]ConnectInit lk.salyk.kg [20:27:51]written 0, free lines is 4095 [20:27:52]Connected sock=10 [20:27: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 36 37 0C 01 00 00 67 A5 04 01 E9 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 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 BE 00 00 00 F4 03 04 00 49 A2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F2 CA 01 00 35 04 06 00 CA 19 C4 F5 88 ED 02 76 11 7D 4A 24 67 DD [20:27: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 36 37 4F 00 00 00 9C BC 47 00 FE 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 36 37 10 04 04 00 F2 CA 01 00 F4 03 04 00 05 4E 1E 67 B6 04 01 00 00 DB 40 D4 37 3F 75 E3 35 [20:27:52]CommunicateWithHost err = 0 [20:27:52]CheckOFDResponse [20:27:52]1017 (14) - 77093643461234 [20:27:52]1041 (16) - 0000000000871767 [20:27:52]1040 (4) - 117490 [20:27:52]1012 (4) - 27.10.2024 14:28 [20:27:52]1206 (1) - 0 [20:27:52]OFD Sender: Remove packet 117490 [20:27:52]ProducePacketName [20:27:52]name=ofd_packets/00117490 [20:27:52]NVStorageDeleteData [20:27:52]Write to MH i2c: 01 00 00 B4 2B DF [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: 01 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: 01 07 00 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: 01 07 00 B4 2B 00 00 00 00 00 E7 0C D9 [20:27:52]RasterBufferAndPrint [20:27:52]line [20:27:52]line [20:27:52]line [20:27:52]line [20:27:52]line [20:27:52]written 0, free lines is 3308 [20:27:52]MH_Cut [20:27:52]Write to MH i2c: D1 01 00 BB 2B 01 B8 [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: D1 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: D1 01 00 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: D1 01 00 BB 2B 00 B7 [20:27:52]Write to MH i2c: 01 00 00 BC 2B E7 [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]OFD Sender: No OFD packet to send [20:27:53]*** Cut start [20:27:53]*** Purtial cut [20:27:53]*** Stage 1: CUTSNS_PIN = 1 [20:27:53]Read from MH i2c: 01 [20:27:53]MH_I2C_Read... [20:27:53]*** Stop cut motor [20:27:53]*** Cut end [20:27:53]Read from MH i2c: 01 07 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 FF 0F FC [20:27:53]process_action close_receipt done [20:27:53]requested_data is exist [20:27:53]produce_requested_data [20:27:53]requested_item fm.sn is exist - process it [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 11 00 00 [20:27:53]Write to MH i2c: E2 08 00 BD 2B 80 11 00 00 00 00 00 00 62 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 17 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 17 00 BD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B9 [20:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:27:53]wFMCommunicate OK [20:27:53]requested_item fd.num is exist - process it [20:27:53]SAM_PROTO_GetFieldsCounters [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 13 00 00 [20:27:53]Write to MH i2c: E2 08 00 BE 2B 80 13 00 00 00 00 00 00 65 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 62 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 62 00 BE 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F2 CA 01 00 0E 04 04 00 1E 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 A3 [20:27: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F2 CA 01 00 0E 04 04 00 1E 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 [20:27:53]wFMCommunicate OK [20:27:53]SAM_PROTO_GetFieldsCounters done [20:27:53]requested_item shift.num is exist - process it [20:27:53]requested_item shift.opened is exist - process it [20:27:53]req_shift_opened [20:27:53]FM_GetShiftState [20:27:53]SAM_PROTO_GetShiftState [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 13 01 00 [20:27:53]Write to MH i2c: E2 08 00 BF 2B 80 13 01 00 00 00 00 00 67 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 0E 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 0E 00 BF 2B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A6 [20:27:53]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:27:53]wFMCommunicate OK [20:27:53]SAM_PROTO_GetShiftState done [20:27:53]FM_GetShiftState done [20:27:53]req_shift_opened done [20:27:53]requested_item shift.open_date is exist - process it [20:27:53]req_shift_open_date [20:27:53]req_shift_open_date done [20:27:53]produce_requested_data done [20:27:53]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117490,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:27:53]process_action_free close_receipt [20:27:53]json_value_free [20:27:53]json_value_free done [20:27:53]process_json_proto returns [20:27:53]Send response to host [20:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117490,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:27:53]free response buf [20:27:53]execute_script done [20:27:53]execute_script returns [20:27:53]free content buf [20:27:53]Sock 9.Close socket [20:27:53]Sock 9.Thread stoped [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]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:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:40]accept exits with 7 [20:33:40]New connection [20:33:40]New thread 3067600228 created [20:33:40]Thread 3067456868 joined [20:33:40]Waiting for new connection... [20:33:40] Sock 7.Parse request [20:33:40]Sock 7.Check first char [20:33:40]Sock 7.First char is OK [20:33:40]request: POST /json_proto HTTP/1.0 [20:33:40]Method: POST [20:33:40]URL: /json_proto [20:33:40]Method is POST - this is cgi request [20:33:40]url: /json_proto [20:33:40]query_string will be loaded in cgi processing [20:33:40]execute_cgi json_proto POST (null) [20:33:40]execute_cgi path=json_proto method=POST [20:33:40]POST find Content-Length [20:33:40]Host: 172.17.96.67:8080 [20:33:40]Content-Length: 766 [20:33:40]Content-Type: application/json [20:33:40] [20:33:40]POST finish read [20:33:40]Found Content-Length = 766 [20:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [20:33:40]execute_script... [20:33: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)245267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [20:33:40]POST & json_proto [20:33:40]process_json_proto [20:33:40]json parsed OK: [20:33:40]protocol is kg_v1.0 [20:33:40]action value=close_receipt [20:33:40]process_action close_receipt [20:33:40]cmd_close_receipt [20:33:40]MH_GetDate [20:33:40]Write to MH i2c: F0 00 00 C0 2B DA [20:33:40]Write i2c OK [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: F0 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: F0 09 00 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: F0 09 00 C0 2B 00 A7 A3 1E 67 2B 09 1E 67 6B [20:33:40]GetLastDocTimeStamp 1730060873 [20:33:40]current date 1730061223 [20:33:40]FM_GetShiftState [20:33:40]SAM_PROTO_GetShiftState [20:33:40]wFMCommunicate request_size=4 [20:33:40]MH_SAM_APDU [20:33:40]CAPDU: 80 13 01 00 [20:33:40]Write to MH i2c: E2 08 00 C1 2B 80 13 01 00 00 00 00 00 69 [20:33:40]Write i2c OK [20:33:40]MH_I2C_Read... [20:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:40]Read from MH i2c: E2 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 0E 00 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 0E 00 C1 2B 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 A8 [20:33:40]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:33:40]wFMCommunicate OK [20:33:40]SAM_PROTO_GetShiftState done [20:33:40]FM_GetShiftState done [20:33:40]opened in 1729987372 [20:33:40]opened+sec_in_day 1730073772 [20:33:40]quantity*price = 100050 [20:33:40]sum+1 = 100052 [20:33:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 191 27.10.2024 20:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117491 ФПД: 228937098071470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203343&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117491&fm=228937098071470&tin=02508201610067®Number=0000000000091782&sum=100051 [20:33:41]StoreToDocumentArchive [20:33:41]shift 542 fd 117491 [20:33:41]save to /storage/0542/doc_00117491 [20:33:41]save last doc name /storage/0542/doc_00117491 to /storage/kkm_last_doc_name [20:33:41]save OK [20:33:41]Clear old archive folders... [20:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:33:41]tlvbuf is 016DF120 [20:33:41]SAM_PROTO_ClearQueue [20:33:41]wFMCommunicate request_size=4 [20:33:41]MH_SAM_APDU [20:33:41]CAPDU: 80 09 00 00 [20:33:41]Write to MH i2c: E2 08 00 CE 2B 80 09 00 00 00 00 00 00 6B [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:41]Read from MH i2c: E2 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 CE 2B 00 90 00 6D [20:33:41]RAPDU: 90 00 [20:33:41]wFMCommunicate OK [20:33:41]SAM_PROTO_ClearQueue done [20:33:41]KKMCreateOFDPacket [20:33:41]OFDProtocolAddRootSTLVToBuf [20:33:41]FM_MakeSignedData [20:33:41]FM_MakeSignedData [20:33:41]SAM_PROTO_SignData [20:33:41]wFMCommunicate request_size=4 [20:33:41]MH_SAM_APDU [20:33:41]CAPDU: 80 0D 01 02 [20:33:41]Write to MH i2c: E2 08 00 CF 2B 80 0D 01 02 00 00 00 00 73 [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:41]Read from MH i2c: E2 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 CF 2B 00 90 00 6E [20:33:41]RAPDU: 90 00 [20:33:41]wFMCommunicate OK [20:33:41]wFMCommunicate request_size=255 [20:33:41]MH_SAM_APDU [20:33: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 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 BF 00 00 00 F4 03 04 00 A7 A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F3 CA 01 00 35 04 06 00 D0 37 92 68 [20:33:41]Write to MH i2c: E2 02 01 D0 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 BF 00 00 00 F4 03 04 00 A7 A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F3 CA 01 00 35 04 06 00 D0 37 92 68 00 00 CE [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:41]Read from MH i2c: E2 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 D0 2B 00 90 00 6F [20:33:41]RAPDU: 90 00 [20:33:41]wFMCommunicate OK [20:33:41]wFMCommunicate request_size=7 [20:33:41]MH_SAM_APDU [20:33:41]CAPDU: 80 0D 02 02 02 0D AE [20:33:41]Write to MH i2c: E2 0A 00 D1 2B 80 0D 02 02 02 00 0D AE 00 00 35 [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:41]Read from MH i2c: E2 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 D1 2B 00 90 00 70 [20:33:41]RAPDU: 90 00 [20:33:41]wFMCommunicate OK [20:33:41]wFMCommunicate request_size=4 [20:33:41]MH_SAM_APDU [20:33:41]CAPDU: 80 0D 03 02 [20:33:41]Write to MH i2c: E2 08 00 D2 2B 80 0D 03 02 00 00 00 00 78 [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:42]Read from MH i2c: E2 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: E2 0B 00 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: E2 0B 00 D2 2B 00 64 AB 3F 3D 59 00 1D CB 90 00 45 [20:33:42]RAPDU: 64 AB 3F 3D 59 00 1D CB 90 00 [20:33:42]wFMCommunicate OK [20:33:42]SAM_PROTO_SignData done [20:33:42]FM_MakeSignedData done [20:33:42]CreateOFDProtocolMessage [20:33:42]wFMCommunicate request_size=4 [20:33:42]MH_SAM_APDU [20:33:42]CAPDU: 80 11 00 00 [20:33:42]Write to MH i2c: E2 08 00 D3 2B 80 11 00 00 00 00 00 00 78 [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:42]Read from MH i2c: E2 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: E2 17 00 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: E2 17 00 D3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CF [20:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:33:42]wFMCommunicate OK [20:33:42]CreateOFDProtocolMessage done [20:33:42]OFDSenderStorePacket 117491 [20:33:42]StoreOFDPacket docnum=117491 [20:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 58 5C 04 01 93 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BF 00 00 00 F4 03 04 00 A7 A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F3 CA 01 00 35 04 06 00 D0 37 92 68 0D AE 64 AB 3F 3D 59 00 1D CB [20:33:42]CheckFolder [20:33:42]dirname=/storage/ofd_packets [20:33:42]CheckFolder done [20:33:42]ProducePacketName [20:33:42]name=ofd_packets/00117491 [20:33:42]NVStorageSaveData ofd_packets/00117491 [20:33:42]File name is /storage/ofd_packets/00117491 [20:33:42]Write 298 bytes [20:33:42]NVStorageSaveData done [20:33:42]OFDSenderStorePacket done [20:33:42]KKMCreateOFDPacket done [20:33:42]NVStorageSaveData kkm_last_timestamp [20:33:42]File name is /storage/kkm_last_timestamp [20:33:42]Write 4 bytes [20:33:42]NVStorageSaveData done [20:33:42]ExternCall_PrintAddStr [20:33:42]wPrintStart [20:33:42]Write to MH i2c: 01 00 00 D4 2B FF [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: 01 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: 01 07 00 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: 01 07 00 D4 2B 00 00 00 00 00 FF 0F 14 [20:33:42]RasterBufferAndPrint [20:33:42]line Счет N : (1)245267 [20:33:42]line ИНН: 02508201610067 [20:33:42]line Контрольно-Кассовый Чек [20:33:42]line ПРОДАЖА [20:33:42]line ТРК (МРК, ГНК) : 23 [20:33:42]line Товар: 2710194210 [20:33:42]line ДТ-К-2 [20:33:42]line 13.130 * 76.20 [20:33:42]line = 1000.51 [20:33:42]line НДС 12% НСП 1% [20:33:42]line > о реализуемом товаре [20:33:42]line ИТОГО: 1000.51 [20:33:42]line НСП 1% : 8.85 [20:33:42]line НДС 12% : 106.25 [20:33:42]line Наличными: 0.00 [20:33:42]line Безнал.: 1000.51 [20:33:42]line Место: АЗС № 173 "Партнер Нефть" [20:33:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:33:42]line СНО: Общий режим [20:33:42]line Чек 191 27.10.2024 20:33 [20:33:42]line Смена: 542 ФФД: 1.0 [20:33:42]line ЗНМ: 0300000115 [20:33:42]line РНМ: 0000000000091782 [20:33:42]line Версия ККМ: 001 [20:33:42]line Платежная система: Mbank [20:33:42]line ФМ: 0000000000871767 [20:33:42]line ФД: 117491 [20:33:42]line ФПД: 228937098071470 [20:33:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203343&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117491&fm=228937098071470&tin=02508201610067®Number=0000000000091782&sum=100051 [20:33:42]OFD Sender: Processing packet 117491 [packets to send 76, broken 75] [20:33:42]ProducePacketName [20:33:42]name=ofd_packets/00117491 [20:33:42]OFD Sender: To server: pG, [20:33:42]CommunicateWithHost lk.salyk.kg:30040 [20:33:42]ConnectInit lk.salyk.kg [20:33:42]written 0, free lines is 4095 [20:33:42]Connected sock=10 [20:33: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 36 37 0C 01 00 00 58 5C 04 01 93 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BF 00 00 00 F4 03 04 00 A7 A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F3 CA 01 00 35 04 06 00 D0 37 92 68 0D AE 64 AB 3F 3D 59 00 1D CB [20:33: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 36 37 4F 00 00 00 50 6B 47 00 7D 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 36 37 10 04 04 00 F3 CA 01 00 F4 03 04 00 64 4F 1E 67 B6 04 01 00 00 53 FB 94 C5 EF 65 8E 9B [20:33:42]CommunicateWithHost err = 0 [20:33:42]CheckOFDResponse [20:33:42]1017 (14) - 77093643461234 [20:33:42]1041 (16) - 0000000000871767 [20:33:42]1040 (4) - 117491 [20:33:42]1012 (4) - 27.10.2024 14:34 [20:33:42]1206 (1) - 0 [20:33:42]OFD Sender: Remove packet 117491 [20:33:42]ProducePacketName [20:33:42]name=ofd_packets/00117491 [20:33:42]NVStorageDeleteData [20:33:42]Write to MH i2c: 01 00 00 FC 2B 27 [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: 01 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: 01 07 00 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: 01 07 00 FC 2B 00 00 00 00 00 E4 0C 1E [20:33:42]RasterBufferAndPrint [20:33:42]line [20:33:42]line [20:33:42]line [20:33:42]line [20:33:42]line [20:33:42]written 0, free lines is 3306 [20:33:42]MH_Cut [20:33:42]Write to MH i2c: D1 01 00 03 2C 01 01 [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: D1 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: D1 01 00 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: D1 01 00 03 2C 00 00 [20:33:42]Write to MH i2c: 01 00 00 04 2C 30 [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:43]OFD Sender: No OFD packet to send [20:33:43]*** Cut start [20:33:43]*** Purtial cut [20:33:43]*** Stage 1: CUTSNS_PIN = 1 [20:33:43]Read from MH i2c: 01 [20:33:43]MH_I2C_Read... [20:33:43]*** Stop cut motor [20:33:43]*** Cut end [20:33:43]Read from MH i2c: 01 07 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: 01 07 00 04 2C 00 00 00 00 00 FF 0F 45 [20:33:43]process_action close_receipt done [20:33:43]requested_data is exist [20:33:43]produce_requested_data [20:33:43]requested_item fm.sn is exist - process it [20:33:43]wFMCommunicate request_size=4 [20:33:43]MH_SAM_APDU [20:33:43]CAPDU: 80 11 00 00 [20:33:43]Write to MH i2c: E2 08 00 05 2C 80 11 00 00 00 00 00 00 AB [20:33:43]Write i2c OK [20:33:43]MH_I2C_Read... [20:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:44]Read from MH i2c: E2 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: E2 17 00 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: E2 17 00 05 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 02 [20:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:33:44]wFMCommunicate OK [20:33:44]requested_item fd.num is exist - process it [20:33:44]SAM_PROTO_GetFieldsCounters [20:33:44]wFMCommunicate request_size=4 [20:33:44]MH_SAM_APDU [20:33:44]CAPDU: 80 13 00 00 [20:33:44]Write to MH i2c: E2 08 00 06 2C 80 13 00 00 00 00 00 00 AE [20:33:44]Write i2c OK [20:33:44]MH_I2C_Read... [20:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:44]Read from MH i2c: E2 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: E2 62 00 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: E2 62 00 06 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F3 CA 01 00 0E 04 04 00 1E 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 F0 [20:33: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F3 CA 01 00 0E 04 04 00 1E 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 [20:33:44]wFMCommunicate OK [20:33:44]SAM_PROTO_GetFieldsCounters done [20:33:44]requested_item shift.num is exist - process it [20:33:44]requested_item shift.opened is exist - process it [20:33:44]req_shift_opened [20:33:44]FM_GetShiftState [20:33:44]SAM_PROTO_GetShiftState [20:33:44]wFMCommunicate request_size=4 [20:33:44]MH_SAM_APDU [20:33:44]CAPDU: 80 13 01 00 [20:33:44]Write to MH i2c: E2 08 00 07 2C 80 13 01 00 00 00 00 00 B0 [20:33:44]Write i2c OK [20:33:44]MH_I2C_Read... [20:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:44]Read from MH i2c: E2 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: E2 0E 00 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: E2 0E 00 07 2C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 EF [20:33:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:33:44]wFMCommunicate OK [20:33:44]SAM_PROTO_GetShiftState done [20:33:44]FM_GetShiftState done [20:33:44]req_shift_opened done [20:33:44]requested_item shift.open_date is exist - process it [20:33:44]req_shift_open_date [20:33:44]req_shift_open_date done [20:33:44]produce_requested_data done [20:33:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117491,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:33:44]process_action_free close_receipt [20:33:44]json_value_free [20:33:44]json_value_free done [20:33:44]process_json_proto returns [20:33:44]Send response to host [20:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117491,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:33:44]free response buf [20:33:44]execute_script done [20:33:44]execute_script returns [20:33:44]free content buf [20:33:44]Sock 7.Close socket [20:33:44]Sock 7.Thread stoped [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:31]accept exits with 9 [20:34:31]New connection [20:34:31]New thread 3067456868 created [20:34:31]Thread 3067600228 joined [20:34:31]Waiting for new connection... [20:34:31] Sock 9.Parse request [20:34:31]Sock 9.Check first char [20:34:31]Sock 9.First char is OK [20:34:31]request: POST /json_proto HTTP/1.0 [20:34:31]Method: POST [20:34:31]URL: /json_proto [20:34:31]Method is POST - this is cgi request [20:34:31]url: /json_proto [20:34:31]query_string will be loaded in cgi processing [20:34:31]execute_cgi json_proto POST (null) [20:34:31]execute_cgi path=json_proto method=POST [20:34:31]POST find Content-Length [20:34:31]Host: 172.17.96.67:8080 [20:34:31]Content-Length: 677 [20:34:31]Content-Type: application/json [20:34:31] [20:34:31]POST finish read [20:34:31]Found Content-Length = 677 [20:34:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:34:31]execute_script... [20:34: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)245268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:34:31]POST & json_proto [20:34:31]process_json_proto [20:34:31]json parsed OK: [20:34:31]protocol is kg_v1.0 [20:34:31]action value=close_receipt [20:34:31]process_action close_receipt [20:34:31]cmd_close_receipt [20:34:31]MH_GetDate [20:34:31]Write to MH i2c: F0 00 00 08 2C 23 [20:34:31]Write i2c OK [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: F0 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: F0 09 00 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: F0 09 00 08 2C 00 DA A3 1E 67 2B 09 1E 67 E7 [20:34:31]GetLastDocTimeStamp 1730061223 [20:34:31]current date 1730061274 [20:34:31]FM_GetShiftState [20:34:31]SAM_PROTO_GetShiftState [20:34:31]wFMCommunicate request_size=4 [20:34:31]MH_SAM_APDU [20:34:31]CAPDU: 80 13 01 00 [20:34:31]Write to MH i2c: E2 08 00 09 2C 80 13 01 00 00 00 00 00 B2 [20:34:31]Write i2c OK [20:34:31]MH_I2C_Read... [20:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:31]Read from MH i2c: E2 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: E2 0E 00 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: E2 0E 00 09 2C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 F1 [20:34:31]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:34:31]wFMCommunicate OK [20:34:31]SAM_PROTO_GetShiftState done [20:34:31]FM_GetShiftState done [20:34:31]opened in 1729987372 [20:34:31]opened+sec_in_day 1730073772 [20:34:31]quantity*price = 50041 [20:34:31]sum+1 = 50042 [20:34: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 192 27.10.2024 20:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117492 ФПД: 20435795512380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203434&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117492&fm=20435795512380&tin=02508201610067®Number=0000000000091782&sum=50000 [20:34:32]StoreToDocumentArchive [20:34:32]shift 542 fd 117492 [20:34:32]save to /storage/0542/doc_00117492 [20:34:32]save last doc name /storage/0542/doc_00117492 to /storage/kkm_last_doc_name [20:34:32]save OK [20:34:32]Clear old archive folders... [20:34:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:32]tlvbuf is B6FF3010 [20:34:32]SAM_PROTO_ClearQueue [20:34:32]wFMCommunicate request_size=4 [20:34:32]MH_SAM_APDU [20:34:32]CAPDU: 80 09 00 00 [20:34:32]Write to MH i2c: E2 08 00 16 2C 80 09 00 00 00 00 00 00 B4 [20:34:32]Write i2c OK [20:34:32]MH_I2C_Read... [20:34:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:32]Read from MH i2c: E2 [20:34:32]MH_I2C_Read... [20:34:32]Read from MH i2c: E2 03 00 [20:34:32]MH_I2C_Read... [20:34:32]Read from MH i2c: E2 03 00 16 2C 00 90 00 B6 [20:34:32]RAPDU: 90 00 [20:34:32]wFMCommunicate OK [20:34:32]SAM_PROTO_ClearQueue done [20:34:32]KKMCreateOFDPacket [20:34:32]OFDProtocolAddRootSTLVToBuf [20:34:32]FM_MakeSignedData [20:34:32]FM_MakeSignedData [20:34:32]SAM_PROTO_SignData [20:34:32]wFMCommunicate request_size=4 [20:34:32]MH_SAM_APDU [20:34:32]CAPDU: 80 0D 01 02 [20:34:32]Write to MH i2c: E2 08 00 17 2C 80 0D 01 02 00 00 00 00 BC [20:34:32]Write i2c OK [20:34:32]MH_I2C_Read... [20:34:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:32]Read from MH i2c: E2 [20:34:32]MH_I2C_Read... [20:34:32]Read from MH i2c: E2 03 00 [20:34:32]MH_I2C_Read... [20:34:32]Read from MH i2c: E2 03 00 17 2C 00 90 00 B7 [20:34:32]RAPDU: 90 00 [20:34:32]wFMCommunicate OK [20:34:32]wFMCommunicate request_size=255 [20:34:32]MH_SAM_APDU [20:34: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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DA A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F4 CA 01 00 35 04 06 00 12 [20:34:32]Write to MH i2c: E2 02 01 18 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DA A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F4 CA 01 00 35 04 06 00 12 00 00 01 [20:34:32]Write i2c OK [20:34:32]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 18 2C 00 90 00 B8 [20:34:33]RAPDU: 90 00 [20:34:33]wFMCommunicate OK [20:34:33]wFMCommunicate request_size=10 [20:34:33]MH_SAM_APDU [20:34:33]CAPDU: 80 0D 02 02 05 96 14 55 0C 3C [20:34:33]Write to MH i2c: E2 0D 00 19 2C 80 0D 02 02 05 00 96 14 55 0C 3C 00 00 10 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 19 2C 00 90 00 B9 [20:34:33]RAPDU: 90 00 [20:34:33]wFMCommunicate OK [20:34:33]wFMCommunicate request_size=4 [20:34:33]MH_SAM_APDU [20:34:33]CAPDU: 80 0D 03 02 [20:34:33]Write to MH i2c: E2 08 00 1A 2C 80 0D 03 02 00 00 00 00 C1 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 0B 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 0B 00 1A 2C 00 AB 61 21 A8 7B 91 8B 31 90 00 5F [20:34:33]RAPDU: AB 61 21 A8 7B 91 8B 31 90 00 [20:34:33]wFMCommunicate OK [20:34:33]SAM_PROTO_SignData done [20:34:33]FM_MakeSignedData done [20:34:33]CreateOFDProtocolMessage [20:34:33]wFMCommunicate request_size=4 [20:34:33]MH_SAM_APDU [20:34:33]CAPDU: 80 11 00 00 [20:34:33]Write to MH i2c: E2 08 00 1B 2C 80 11 00 00 00 00 00 00 C1 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 17 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 17 00 1B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 18 [20:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:34:33]wFMCommunicate OK [20:34:33]CreateOFDProtocolMessage done [20:34:33]OFDSenderStorePacket 117492 [20:34:33]StoreOFDPacket docnum=117492 [20:34:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 BE 2A 07 01 56 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DA A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F4 CA 01 00 35 04 06 00 12 96 14 55 0C 3C AB 61 21 A8 7B 91 8B 31 [20:34:33]CheckFolder [20:34:33]dirname=/storage/ofd_packets [20:34:33]CheckFolder done [20:34:33]ProducePacketName [20:34:33]name=ofd_packets/00117492 [20:34:33]NVStorageSaveData ofd_packets/00117492 [20:34:33]File name is /storage/ofd_packets/00117492 [20:34:33]Write 301 bytes [20:34:33]NVStorageSaveData done [20:34:33]OFDSenderStorePacket done [20:34:33]KKMCreateOFDPacket done [20:34:33]NVStorageSaveData kkm_last_timestamp [20:34:33]File name is /storage/kkm_last_timestamp [20:34:33]Write 4 bytes [20:34:33]NVStorageSaveData done [20:34:33]OFD Sender: Processing packet 117492 [packets to send 76, broken 75] [20:34:33]ProducePacketName [20:34:33]name=ofd_packets/00117492 [20:34:33]OFD Sender: To server: pG, [20:34:33]CommunicateWithHost lk.salyk.kg:30040 [20:34:33]ConnectInit lk.salyk.kg [20:34:33]ExternCall_PrintAddStr [20:34:33]wPrintStart [20:34:33]Write to MH i2c: 01 00 00 1C 2C 48 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: 01 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: 01 07 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: 01 07 00 1C 2C 00 00 00 00 00 FF 0F 5D [20:34:33]RasterBufferAndPrint [20:34:33]line Счет N : (1)245268 [20:34:33]line ИНН: 02508201610067 [20:34:33]line Контрольно-Кассовый Чек [20:34:33]line ПРОДАЖА [20:34:33]line ТРК (МРК, ГНК) : 11 [20:34:33]line Товар: 2710124130 [20:34:33]line Аи-92-К-2 [20:34:33]line 7.480 * 66.90 [20:34:33]line = 500.41 [20:34:33]line НДС 12% НСП 1% [20:34:33]line > о реализуемом товаре [20:34:33]line ОКРУГЛЕНИЕ: -0.41 [20:34:33]line ИТОГО: 500.00 [20:34:33]line Внесено: 500.00 [20:34:33]line СДАЧА: 0.00 [20:34:33]line НСП 1% : 4.43 [20:34:33]line НДС 12% : 53.14 [20:34:33]line Наличными: 500.00 [20:34:33]line Безнал.: 0.00 [20:34:33]line Место: АЗС № 173 "Партнер Нефть" [20:34:33]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:34:33]line СНО: Общий режим [20:34:33]line Чек 192 27.10.2024 20:34 [20:34:33]line Смена: 542 ФФД: 1.0 [20:34:33]line ЗНМ: 0300000115 [20:34:33]line РНМ: 0000000000091782 [20:34:33]line Версия ККМ: 001 [20:34:33]line ФМ: 0000000000871767 [20:34:33]line ФД: 117492 [20:34:33]line ФПД: 20435795512380 [20:34:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203434&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117492&fm=20435795512380&tin=02508201610067®Number=0000000000091782&sum=50000 [20:34:33]Connected sock=11 [20:34: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 36 37 0F 01 00 00 BE 2A 07 01 56 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DA A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F4 CA 01 00 35 04 06 00 12 96 14 55 0C 3C AB 61 21 A8 7B 91 8B 31 [20:34:33]written 0, free lines is 4095 [20:34: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 36 37 4F 00 00 00 E8 0D 47 00 41 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 36 37 10 04 04 00 F4 CA 01 00 F4 03 04 00 97 4F 1E 67 B6 04 01 00 00 41 6D 30 15 24 91 99 D4 [20:34:33]CommunicateWithHost err = 0 [20:34:33]CheckOFDResponse [20:34:33]1017 (14) - 77093643461234 [20:34:33]1041 (16) - 0000000000871767 [20:34:33]1040 (4) - 117492 [20:34:33]1012 (4) - 27.10.2024 14:35 [20:34:33]1206 (1) - 0 [20:34:33]OFD Sender: Remove packet 117492 [20:34:33]ProducePacketName [20:34:33]name=ofd_packets/00117492 [20:34:33]NVStorageDeleteData [20:34:33]Write to MH i2c: 01 00 00 46 2C 72 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: 01 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: 01 07 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: 01 07 00 46 2C 00 00 00 00 00 B5 0C 3A [20:34:33]RasterBufferAndPrint [20:34:33]line [20:34:33]line [20:34:33]line [20:34:33]line [20:34:33]line [20:34:33]written 0, free lines is 3259 [20:34:33]MH_Cut [20:34:33]Write to MH i2c: D1 01 00 4D 2C 01 4B [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: D1 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: D1 01 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: D1 01 00 4D 2C 00 4A [20:34:33]Write to MH i2c: 01 00 00 4E 2C 7A [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:34]OFD Sender: No OFD packet to send [20:34:34]*** Cut start [20:34:34]*** Purtial cut [20:34:34]*** Stage 1: CUTSNS_PIN = 1 [20:34:35]Read from MH i2c: 01 [20:34:35]MH_I2C_Read... [20:34:35]*** Stop cut motor [20:34:35]*** Cut end [20:34:35]Read from MH i2c: 01 07 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: 01 07 00 4E 2C 00 00 00 00 00 FF 0F 8F [20:34:35]process_action close_receipt done [20:34:35]requested_data is exist [20:34:35]produce_requested_data [20:34:35]requested_item fm.sn is exist - process it [20:34:35]wFMCommunicate request_size=4 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 11 00 00 [20:34:35]Write to MH i2c: E2 08 00 4F 2C 80 11 00 00 00 00 00 00 F5 [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:35]Read from MH i2c: E2 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 17 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 17 00 4F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4C [20:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:34:35]wFMCommunicate OK [20:34:35]requested_item fd.num is exist - process it [20:34:35]SAM_PROTO_GetFieldsCounters [20:34:35]wFMCommunicate request_size=4 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 13 00 00 [20:34:35]Write to MH i2c: E2 08 00 50 2C 80 13 00 00 00 00 00 00 F8 [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:35]Read from MH i2c: E2 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 62 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 62 00 50 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F4 CA 01 00 0E 04 04 00 1E 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 3E [20:34: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F4 CA 01 00 0E 04 04 00 1E 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 [20:34:35]wFMCommunicate OK [20:34:35]SAM_PROTO_GetFieldsCounters done [20:34:35]requested_item shift.num is exist - process it [20:34:35]requested_item shift.opened is exist - process it [20:34:35]req_shift_opened [20:34:35]FM_GetShiftState [20:34:35]SAM_PROTO_GetShiftState [20:34:35]wFMCommunicate request_size=4 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 13 01 00 [20:34:35]Write to MH i2c: E2 08 00 51 2C 80 13 01 00 00 00 00 00 FA [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:35]Read from MH i2c: E2 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 0E 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 0E 00 51 2C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 39 [20:34:35]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:34:35]wFMCommunicate OK [20:34:35]SAM_PROTO_GetShiftState done [20:34:35]FM_GetShiftState done [20:34:35]req_shift_opened done [20:34:35]requested_item shift.open_date is exist - process it [20:34:35]req_shift_open_date [20:34:35]req_shift_open_date done [20:34:35]produce_requested_data done [20:34:35]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117492,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:34:35]process_action_free close_receipt [20:34:35]json_value_free [20:34:35]json_value_free done [20:34:35]process_json_proto returns [20:34:35]Send response to host [20:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117492,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:34:35]free response buf [20:34:35]execute_script done [20:34:35]execute_script returns [20:34:35]free content buf [20:34:35]Sock 9.Close socket [20:34:35]Sock 9.Thread stoped [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:06]accept exits with 7 [20:37:06]New connection [20:37:06]New thread 3067600228 created [20:37:06]Thread 3067456868 joined [20:37:06]Waiting for new connection... [20:37:06] Sock 7.Parse request [20:37:06]Sock 7.Check first char [20:37:06]Sock 7.First char is OK [20:37:06]request: POST /json_proto HTTP/1.0 [20:37:06]Method: POST [20:37:06]URL: /json_proto [20:37:06]Method is POST - this is cgi request [20:37:06]url: /json_proto [20:37:06]query_string will be loaded in cgi processing [20:37:06]execute_cgi json_proto POST (null) [20:37:06]execute_cgi path=json_proto method=POST [20:37:06]POST find Content-Length [20:37:06]Host: 172.17.96.67:8080 [20:37:06]Content-Length: 677 [20:37:06]Content-Type: application/json [20:37:06] [20:37:06]POST finish read [20:37:06]Found Content-Length = 677 [20:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:37:06]execute_script... [20:37: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)245269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:37:06]POST & json_proto [20:37:06]process_json_proto [20:37:06]json parsed OK: [20:37:06]protocol is kg_v1.0 [20:37:06]action value=close_receipt [20:37:06]process_action close_receipt [20:37:06]cmd_close_receipt [20:37:06]MH_GetDate [20:37:06]Write to MH i2c: F0 00 00 52 2C 6D [20:37:06]Write i2c OK [20:37:06]MH_I2C_Read... [20:37:06]Read from MH i2c: F0 [20:37:06]MH_I2C_Read... [20:37:06]Read from MH i2c: F0 09 00 [20:37:06]MH_I2C_Read... [20:37:06]Read from MH i2c: F0 09 00 52 2C 00 75 A4 1E 67 2B 09 1E 67 CD [20:37:06]GetLastDocTimeStamp 1730061274 [20:37:06]current date 1730061429 [20:37:06]FM_GetShiftState [20:37:06]SAM_PROTO_GetShiftState [20:37:06]wFMCommunicate request_size=4 [20:37:06]MH_SAM_APDU [20:37:06]CAPDU: 80 13 01 00 [20:37:06]Write to MH i2c: E2 08 00 53 2C 80 13 01 00 00 00 00 00 FC [20:37:06]Write i2c OK [20:37:06]MH_I2C_Read... [20:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:06]Read from MH i2c: E2 [20:37:06]MH_I2C_Read... [20:37:06]Read from MH i2c: E2 0E 00 [20:37:06]MH_I2C_Read... [20:37:06]Read from MH i2c: E2 0E 00 53 2C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 3B [20:37:06]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:37:06]wFMCommunicate OK [20:37:06]SAM_PROTO_GetShiftState done [20:37:06]FM_GetShiftState done [20:37:06]opened in 1729987372 [20:37:06]opened+sec_in_day 1730073772 [20:37:06]quantity*price = 50041 [20:37:06]sum+1 = 50042 [20:37: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 193 27.10.2024 20:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117493 ФПД: 228508818541696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203709&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117493&fm=228508818541696&tin=02508201610067®Number=0000000000091782&sum=50000 [20:37:07]StoreToDocumentArchive [20:37:07]shift 542 fd 117493 [20:37:07]save to /storage/0542/doc_00117493 [20:37:07]save last doc name /storage/0542/doc_00117493 to /storage/kkm_last_doc_name [20:37:07]save OK [20:37:07]Clear old archive folders... [20:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:37:07]tlvbuf is 0179C210 [20:37:07]SAM_PROTO_ClearQueue [20:37:07]wFMCommunicate request_size=4 [20:37:07]MH_SAM_APDU [20:37:07]CAPDU: 80 09 00 00 [20:37:07]Write to MH i2c: E2 08 00 60 2C 80 09 00 00 00 00 00 00 FE [20:37:07]Write i2c OK [20:37:07]MH_I2C_Read... [20:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:07]Read from MH i2c: E2 [20:37:07]MH_I2C_Read... [20:37:07]Read from MH i2c: E2 03 00 [20:37:07]MH_I2C_Read... [20:37:07]Read from MH i2c: E2 03 00 60 2C 00 90 00 00 [20:37:07]RAPDU: 90 00 [20:37:07]wFMCommunicate OK [20:37:07]SAM_PROTO_ClearQueue done [20:37:07]KKMCreateOFDPacket [20:37:07]OFDProtocolAddRootSTLVToBuf [20:37:07]FM_MakeSignedData [20:37:07]FM_MakeSignedData [20:37:07]SAM_PROTO_SignData [20:37:07]wFMCommunicate request_size=4 [20:37:07]MH_SAM_APDU [20:37:07]CAPDU: 80 0D 01 02 [20:37:07]Write to MH i2c: E2 08 00 61 2C 80 0D 01 02 00 00 00 00 06 [20:37:07]Write i2c OK [20:37:07]MH_I2C_Read... [20:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:07]Read from MH i2c: E2 [20:37:07]MH_I2C_Read... [20:37:07]Read from MH i2c: E2 03 00 [20:37:07]MH_I2C_Read... [20:37:07]Read from MH i2c: E2 03 00 61 2C 00 90 00 01 [20:37:07]RAPDU: 90 00 [20:37:07]wFMCommunicate OK [20:37:07]wFMCommunicate request_size=255 [20:37:07]MH_SAM_APDU [20:37: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 C1 00 00 00 F4 03 04 00 75 A4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F5 CA 01 00 35 04 06 00 CF [20:37:07]Write to MH i2c: E2 02 01 62 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 75 A4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F5 CA 01 00 35 04 06 00 CF 00 00 A6 [20:37:07]Write i2c OK [20:37:07]MH_I2C_Read... [20:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:08]Read from MH i2c: E2 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 03 00 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 03 00 62 2C 00 90 00 02 [20:37:08]RAPDU: 90 00 [20:37:08]wFMCommunicate OK [20:37:08]wFMCommunicate request_size=10 [20:37:08]MH_SAM_APDU [20:37:08]CAPDU: 80 0D 02 02 05 D3 DA F5 0C 80 [20:37:08]Write to MH i2c: E2 0D 00 63 2C 80 0D 02 02 05 00 D3 DA F5 0C 80 00 00 41 [20:37:08]Write i2c OK [20:37:08]MH_I2C_Read... [20:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:08]Read from MH i2c: E2 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 03 00 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 03 00 63 2C 00 90 00 03 [20:37:08]RAPDU: 90 00 [20:37:08]wFMCommunicate OK [20:37:08]wFMCommunicate request_size=4 [20:37:08]MH_SAM_APDU [20:37:08]CAPDU: 80 0D 03 02 [20:37:08]Write to MH i2c: E2 08 00 64 2C 80 0D 03 02 00 00 00 00 0B [20:37:08]Write i2c OK [20:37:08]MH_I2C_Read... [20:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:08]Read from MH i2c: E2 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 0B 00 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 0B 00 64 2C 00 F9 9E 7F 8B 88 9A 76 0E 90 00 53 [20:37:08]RAPDU: F9 9E 7F 8B 88 9A 76 0E 90 00 [20:37:08]wFMCommunicate OK [20:37:08]SAM_PROTO_SignData done [20:37:08]FM_MakeSignedData done [20:37:08]CreateOFDProtocolMessage [20:37:08]wFMCommunicate request_size=4 [20:37:08]MH_SAM_APDU [20:37:08]CAPDU: 80 11 00 00 [20:37:08]Write to MH i2c: E2 08 00 65 2C 80 11 00 00 00 00 00 00 0B [20:37:08]Write i2c OK [20:37:08]MH_I2C_Read... [20:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:08]Read from MH i2c: E2 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 17 00 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 17 00 65 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 62 [20:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:37:08]wFMCommunicate OK [20:37:08]CreateOFDProtocolMessage done [20:37:08]OFDSenderStorePacket 117493 [20:37:08]StoreOFDPacket docnum=117493 [20:37:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 18 10 07 01 CF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 75 A4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F5 CA 01 00 35 04 06 00 CF D3 DA F5 0C 80 F9 9E 7F 8B 88 9A 76 0E [20:37:08]CheckFolder [20:37:08]dirname=/storage/ofd_packets [20:37:08]CheckFolder done [20:37:08]ProducePacketName [20:37:08]name=ofd_packets/00117493 [20:37:08]NVStorageSaveData ofd_packets/00117493 [20:37:08]File name is /storage/ofd_packets/00117493 [20:37:08]Write 301 bytes [20:37:08]NVStorageSaveData done [20:37:08]OFDSenderStorePacket done [20:37:08]KKMCreateOFDPacket done [20:37:08]NVStorageSaveData kkm_last_timestamp [20:37:08]File name is /storage/kkm_last_timestamp [20:37:08]Write 4 bytes [20:37:08]NVStorageSaveData done [20:37:08]ExternCall_PrintAddStr [20:37:08]wPrintStart [20:37:08]Write to MH i2c: 01 00 00 66 2C 92 [20:37:08]Write i2c OK [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: 01 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: 01 07 00 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: 01 07 00 66 2C 00 00 00 00 00 FF 0F A7 [20:37:08]RasterBufferAndPrint [20:37:08]line Счет N : (1)245269 [20:37:08]line ИНН: 02508201610067 [20:37:08]line Контрольно-Кассовый Чек [20:37:08]line ПРОДАЖА [20:37:08]line ТРК (МРК, ГНК) : 21 [20:37:08]line Товар: 2710124130 [20:37:08]line Аи-92-К-2 [20:37:08]line 7.480 * 66.90 [20:37:08]line = 500.41 [20:37:08]line НДС 12% НСП 1% [20:37:08]line > о реализуемом товаре [20:37:08]line ОКРУГЛЕНИЕ: -0.41 [20:37:08]line ИТОГО: 500.00 [20:37:08]line Внесено: 500.00 [20:37:08]line СДАЧА: 0.00 [20:37:08]line НСП 1% : 4.43 [20:37:08]line НДС 12% : 53.14 [20:37:08]line Наличными: 500.00 [20:37:08]line Безнал.: 0.00 [20:37:08]line Место: АЗС № 173 "Партнер Нефть" [20:37:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:37:08]line СНО: Общий режим [20:37:08]line Чек 193 27.10.2024 20:37 [20:37:08]line Смена: 542 ФФД: 1.0 [20:37:08]line ЗНМ: 0300000115 [20:37:08]line РНМ: 0000000000091782 [20:37:08]line Версия ККМ: 001 [20:37:08]line ФМ: 0000000000871767 [20:37:08]line ФД: 117493 [20:37:08]line ФПД: 228508818541696 [20:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203709&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117493&fm=228508818541696&tin=02508201610067®Number=0000000000091782&sum=50000 [20:37:08]written 0, free lines is 4095 [20:37:08]OFD Sender: Processing packet 117493 [packets to send 76, broken 75] [20:37:08]ProducePacketName [20:37:08]name=ofd_packets/00117493 [20:37:08]OFD Sender: To server: pG, [20:37:08]CommunicateWithHost lk.salyk.kg:30040 [20:37:08]ConnectInit lk.salyk.kg [20:37:08]Connected sock=10 [20:37: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 36 37 0F 01 00 00 18 10 07 01 CF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 75 A4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F5 CA 01 00 35 04 06 00 CF D3 DA F5 0C 80 F9 9E 7F 8B 88 9A 76 0E [20:37: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 36 37 4F 00 00 00 7F 6A 47 00 F4 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 36 37 10 04 04 00 F5 CA 01 00 F4 03 04 00 32 50 1E 67 B6 04 01 00 00 51 E8 0C 7F 42 A4 F8 39 [20:37:08]CommunicateWithHost err = 0 [20:37:08]CheckOFDResponse [20:37:08]1017 (14) - 77093643461234 [20:37:08]1041 (16) - 0000000000871767 [20:37:08]1040 (4) - 117493 [20:37:08]1012 (4) - 27.10.2024 14:37 [20:37:08]1206 (1) - 0 [20:37:08]OFD Sender: Remove packet 117493 [20:37:08]ProducePacketName [20:37:08]name=ofd_packets/00117493 [20:37:08]NVStorageDeleteData [20:37:09]Write to MH i2c: 01 00 00 90 2C BC [20:37:09]Write i2c OK [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: 01 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: 01 07 00 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: 01 07 00 90 2C 00 00 00 00 00 B6 0C 85 [20:37:09]RasterBufferAndPrint [20:37:09]line [20:37:09]line [20:37:09]line [20:37:09]line [20:37:09]line [20:37:09]written 0, free lines is 3260 [20:37:09]MH_Cut [20:37:09]Write to MH i2c: D1 01 00 97 2C 01 95 [20:37:09]Write i2c OK [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: D1 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: D1 01 00 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: D1 01 00 97 2C 00 94 [20:37:09]Write to MH i2c: 01 00 00 98 2C C4 [20:37:09]Write i2c OK [20:37:09]MH_I2C_Read... [20:37:09]OFD Sender: No OFD packet to send [20:37:09]*** Cut start [20:37:09]*** Purtial cut [20:37:09]*** Stage 1: CUTSNS_PIN = 1 [20:37:10]Read from MH i2c: 01 [20:37:10]MH_I2C_Read... [20:37:10]*** Stop cut motor [20:37:10]*** Cut end [20:37:10]Read from MH i2c: 01 07 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 07 00 98 2C 00 00 00 00 00 FF 0F D9 [20:37:10]process_action close_receipt done [20:37:10]requested_data is exist [20:37:10]produce_requested_data [20:37:10]requested_item fm.sn is exist - process it [20:37:10]wFMCommunicate request_size=4 [20:37:10]MH_SAM_APDU [20:37:10]CAPDU: 80 11 00 00 [20:37:10]Write to MH i2c: E2 08 00 99 2C 80 11 00 00 00 00 00 00 3F [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:10]Read from MH i2c: E2 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 17 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 17 00 99 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 96 [20:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:37:10]wFMCommunicate OK [20:37:10]requested_item fd.num is exist - process it [20:37:10]SAM_PROTO_GetFieldsCounters [20:37:10]wFMCommunicate request_size=4 [20:37:10]MH_SAM_APDU [20:37:10]CAPDU: 80 13 00 00 [20:37:10]Write to MH i2c: E2 08 00 9A 2C 80 13 00 00 00 00 00 00 42 [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:10]Read from MH i2c: E2 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 62 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 62 00 9A 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F5 CA 01 00 0E 04 04 00 1E 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 8C [20:37: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F5 CA 01 00 0E 04 04 00 1E 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 [20:37:10]wFMCommunicate OK [20:37:10]SAM_PROTO_GetFieldsCounters done [20:37:10]requested_item shift.num is exist - process it [20:37:10]requested_item shift.opened is exist - process it [20:37:10]req_shift_opened [20:37:10]FM_GetShiftState [20:37:10]SAM_PROTO_GetShiftState [20:37:10]wFMCommunicate request_size=4 [20:37:10]MH_SAM_APDU [20:37:10]CAPDU: 80 13 01 00 [20:37:10]Write to MH i2c: E2 08 00 9B 2C 80 13 01 00 00 00 00 00 44 [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:10]Read from MH i2c: E2 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 0E 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 0E 00 9B 2C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 83 [20:37:10]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:37:10]wFMCommunicate OK [20:37:10]SAM_PROTO_GetShiftState done [20:37:10]FM_GetShiftState done [20:37:10]req_shift_opened done [20:37:10]requested_item shift.open_date is exist - process it [20:37:10]req_shift_open_date [20:37:10]req_shift_open_date done [20:37:10]produce_requested_data done [20:37:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117493,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:37:10]process_action_free close_receipt [20:37:10]json_value_free [20:37:10]json_value_free done [20:37:10]process_json_proto returns [20:37:10]Send response to host [20:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117493,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:37:10]free response buf [20:37:10]execute_script done [20:37:10]execute_script returns [20:37:10]free content buf [20:37:10]Sock 7.Close socket [20:37:10]Sock 7.Thread stoped [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:45]accept exits with 9 [20:38:45]New connection [20:38:45]New thread 3067456868 created [20:38:45]Thread 3067600228 joined [20:38:45]Waiting for new connection... [20:38:45] Sock 9.Parse request [20:38:45]Sock 9.Check first char [20:38:45]Sock 9.First char is OK [20:38:45]request: POST /json_proto HTTP/1.0 [20:38:45]Method: POST [20:38:45]URL: /json_proto [20:38:45]Method is POST - this is cgi request [20:38:45]url: /json_proto [20:38:45]query_string will be loaded in cgi processing [20:38:45]execute_cgi json_proto POST (null) [20:38:45]execute_cgi path=json_proto method=POST [20:38:45]POST find Content-Length [20:38:45]Host: 172.17.96.67:8080 [20:38:45]Content-Length: 678 [20:38:45]Content-Type: application/json [20:38:45] [20:38:45]POST finish read [20:38:45]Found Content-Length = 678 [20:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [20:38:45]execute_script... [20:38: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)245270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [20:38:45]POST & json_proto [20:38:45]process_json_proto [20:38:45]json parsed OK: [20:38:45]protocol is kg_v1.0 [20:38:45]action value=close_receipt [20:38:45]process_action close_receipt [20:38:45]cmd_close_receipt [20:38:45]MH_GetDate [20:38:45]Write to MH i2c: F0 00 00 9C 2C B7 [20:38:45]Write i2c OK [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: F0 [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: F0 09 00 [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: F0 09 00 9C 2C 00 D8 A4 1E 67 2B 09 1E 67 7A [20:38:45]GetLastDocTimeStamp 1730061429 [20:38:45]current date 1730061528 [20:38:45]FM_GetShiftState [20:38:45]SAM_PROTO_GetShiftState [20:38:45]wFMCommunicate request_size=4 [20:38:45]MH_SAM_APDU [20:38:45]CAPDU: 80 13 01 00 [20:38:45]Write to MH i2c: E2 08 00 9D 2C 80 13 01 00 00 00 00 00 46 [20:38:45]Write i2c OK [20:38:45]MH_I2C_Read... [20:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:45]Read from MH i2c: E2 [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: E2 0E 00 [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: E2 0E 00 9D 2C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 85 [20:38:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:38:45]wFMCommunicate OK [20:38:45]SAM_PROTO_GetShiftState done [20:38:45]FM_GetShiftState done [20:38:45]opened in 1729987372 [20:38:45]opened+sec_in_day 1730073772 [20:38:45]quantity*price = 70044 [20:38:45]sum+1 = 70045 [20:38: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 194 27.10.2024 20:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117494 ФПД: 23856602304340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203848&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117494&fm=23856602304340&tin=02508201610067®Number=0000000000091782&sum=70000 [20:38:46]StoreToDocumentArchive [20:38:46]shift 542 fd 117494 [20:38:46]save to /storage/0542/doc_00117494 [20:38:46]save last doc name /storage/0542/doc_00117494 to /storage/kkm_last_doc_name [20:38:46]save OK [20:38:46]Clear old archive folders... [20:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:46]tlvbuf is 016D55E0 [20:38:46]SAM_PROTO_ClearQueue [20:38:46]wFMCommunicate request_size=4 [20:38:46]MH_SAM_APDU [20:38:46]CAPDU: 80 09 00 00 [20:38:46]Write to MH i2c: E2 08 00 AA 2C 80 09 00 00 00 00 00 00 48 [20:38:46]Write i2c OK [20:38:46]MH_I2C_Read... [20:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:46]Read from MH i2c: E2 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 03 00 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 03 00 AA 2C 00 90 00 4A [20:38:46]RAPDU: 90 00 [20:38:46]wFMCommunicate OK [20:38:46]SAM_PROTO_ClearQueue done [20:38:46]KKMCreateOFDPacket [20:38:46]OFDProtocolAddRootSTLVToBuf [20:38:46]FM_MakeSignedData [20:38:46]FM_MakeSignedData [20:38:46]SAM_PROTO_SignData [20:38:46]wFMCommunicate request_size=4 [20:38:46]MH_SAM_APDU [20:38:46]CAPDU: 80 0D 01 02 [20:38:46]Write to MH i2c: E2 08 00 AB 2C 80 0D 01 02 00 00 00 00 50 [20:38:46]Write i2c OK [20:38:46]MH_I2C_Read... [20:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:46]Read from MH i2c: E2 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 03 00 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 03 00 AB 2C 00 90 00 4B [20:38:46]RAPDU: 90 00 [20:38:46]wFMCommunicate OK [20:38:46]wFMCommunicate request_size=255 [20:38:46]MH_SAM_APDU [20:38: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 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 D8 A4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CA 01 00 35 04 06 00 15 [20:38:46]Write to MH i2c: E2 02 01 AC 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 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 D8 A4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CA 01 00 35 04 06 00 15 00 00 AB [20:38:46]Write i2c OK [20:38:46]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 AC 2C 00 90 00 4C [20:38:47]RAPDU: 90 00 [20:38:47]wFMCommunicate OK [20:38:47]wFMCommunicate request_size=10 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 0D 02 02 05 B2 8C 4E 4F 54 [20:38:47]Write to MH i2c: E2 0D 00 AD 2C 80 0D 02 02 05 00 B2 8C 4E 4F 54 00 00 8C [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 AD 2C 00 90 00 4D [20:38:47]RAPDU: 90 00 [20:38:47]wFMCommunicate OK [20:38:47]wFMCommunicate request_size=4 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 0D 03 02 [20:38:47]Write to MH i2c: E2 08 00 AE 2C 80 0D 03 02 00 00 00 00 55 [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 0B 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 0B 00 AE 2C 00 98 38 27 C9 A4 6B 14 DF 90 00 18 [20:38:47]RAPDU: 98 38 27 C9 A4 6B 14 DF 90 00 [20:38:47]wFMCommunicate OK [20:38:47]SAM_PROTO_SignData done [20:38:47]FM_MakeSignedData done [20:38:47]CreateOFDProtocolMessage [20:38:47]wFMCommunicate request_size=4 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 11 00 00 [20:38:47]Write to MH i2c: E2 08 00 AF 2C 80 11 00 00 00 00 00 00 55 [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 17 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 17 00 AF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AC [20:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:38:47]wFMCommunicate OK [20:38:47]CreateOFDProtocolMessage done [20:38:47]OFDSenderStorePacket 117494 [20:38:47]StoreOFDPacket docnum=117494 [20:38:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 04 7B 07 01 23 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 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 D8 A4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CA 01 00 35 04 06 00 15 B2 8C 4E 4F 54 98 38 27 C9 A4 6B 14 DF [20:38:47]CheckFolder [20:38:47]dirname=/storage/ofd_packets [20:38:47]CheckFolder done [20:38:47]ProducePacketName [20:38:47]name=ofd_packets/00117494 [20:38:47]NVStorageSaveData ofd_packets/00117494 [20:38:47]File name is /storage/ofd_packets/00117494 [20:38:47]Write 301 bytes [20:38:47]NVStorageSaveData done [20:38:47]OFDSenderStorePacket done [20:38:47]KKMCreateOFDPacket done [20:38:47]NVStorageSaveData kkm_last_timestamp [20:38:47]File name is /storage/kkm_last_timestamp [20:38:47]Write 4 bytes [20:38:47]NVStorageSaveData done [20:38:47]ExternCall_PrintAddStr [20:38:47]wPrintStart [20:38:47]Write to MH i2c: 01 00 00 B0 2C DC [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: 01 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: 01 07 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: 01 07 00 B0 2C 00 00 00 00 00 FF 0F F1 [20:38:47]RasterBufferAndPrint [20:38:47]line Счет N : (1)245270 [20:38:47]line ИНН: 02508201610067 [20:38:47]line Контрольно-Кассовый Чек [20:38:47]line ПРОДАЖА [20:38:47]line ТРК (МРК, ГНК) : 11 [20:38:47]line Товар: 2710124130 [20:38:47]line Аи-92-К-2 [20:38:47]line 10.470 * 66.90 [20:38:47]line = 700.44 [20:38:47]line НДС 12% НСП 1% [20:38:47]line > о реализуемом товаре [20:38:47]line ОКРУГЛЕНИЕ: -0.44 [20:38:47]line ИТОГО: 700.00 [20:38:47]line Внесено: 700.00 [20:38:47]line СДАЧА: 0.00 [20:38:47]line НСП 1% : 6.20 [20:38:47]line НДС 12% : 74.38 [20:38:47]line Наличными: 700.00 [20:38:47]line Безнал.: 0.00 [20:38:47]line Место: АЗС № 173 "Партнер Нефть" [20:38:47]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:38:47]line СНО: Общий режим [20:38:47]line Чек 194 27.10.2024 20:38 [20:38:47]line Смена: 542 ФФД: 1.0 [20:38:47]line ЗНМ: 0300000115 [20:38:47]line РНМ: 0000000000091782 [20:38:47]line Версия ККМ: 001 [20:38:47]line ФМ: 0000000000871767 [20:38:47]line ФД: 117494 [20:38:47]line ФПД: 23856602304340 [20:38:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203848&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117494&fm=23856602304340&tin=02508201610067®Number=0000000000091782&sum=70000 [20:38:47]written 0, free lines is 4095 [20:38:47]OFD Sender: Processing packet 117494 [packets to send 76, broken 75] [20:38:47]ProducePacketName [20:38:47]name=ofd_packets/00117494 [20:38:47]OFD Sender: To server: pG, [20:38:47]CommunicateWithHost lk.salyk.kg:30040 [20:38:47]ConnectInit lk.salyk.kg [20:38:47]Connected sock=7 [20:38: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 36 37 0F 01 00 00 04 7B 07 01 23 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 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 D8 A4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CA 01 00 35 04 06 00 15 B2 8C 4E 4F 54 98 38 27 C9 A4 6B 14 DF [20:38: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 36 37 4F 00 00 00 9A B5 47 00 D4 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CA 01 00 F4 03 04 00 95 50 1E 67 B6 04 01 00 00 47 31 85 44 88 69 D1 92 [20:38:47]CommunicateWithHost err = 0 [20:38:47]CheckOFDResponse [20:38:47]1017 (14) - 77093643461234 [20:38:47]1041 (16) - 0000000000871767 [20:38:47]1040 (4) - 117494 [20:38:47]1012 (4) - 27.10.2024 14:39 [20:38:47]1206 (1) - 0 [20:38:47]OFD Sender: Remove packet 117494 [20:38:47]ProducePacketName [20:38:47]name=ofd_packets/00117494 [20:38:47]NVStorageDeleteData [20:38:47]Write to MH i2c: 01 00 00 DA 2C 06 [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: 01 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: 01 07 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: 01 07 00 DA 2C 00 00 00 00 00 BA 0C D3 [20:38:47]RasterBufferAndPrint [20:38:47]line [20:38:47]line [20:38:47]line [20:38:47]line [20:38:47]line [20:38:47]written 0, free lines is 3267 [20:38:48]MH_Cut [20:38:48]Write to MH i2c: D1 01 00 E1 2C 01 DF [20:38:48]Write i2c OK [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: D1 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: D1 01 00 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: D1 01 00 E1 2C 00 DE [20:38:48]Write to MH i2c: 01 00 00 E2 2C 0E [20:38:48]Write i2c OK [20:38:48]MH_I2C_Read... [20:38:48]OFD Sender: No OFD packet to send [20:38:48]*** Cut start [20:38:48]*** Purtial cut [20:38:48]*** Stage 1: CUTSNS_PIN = 1 [20:38:49]Read from MH i2c: 01 [20:38:49]MH_I2C_Read... [20:38:49]*** Stop cut motor [20:38:49]*** Cut end [20:38:49]Read from MH i2c: 01 07 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: 01 07 00 E2 2C 00 00 00 00 00 FF 0F 23 [20:38:49]process_action close_receipt done [20:38:49]requested_data is exist [20:38:49]produce_requested_data [20:38:49]requested_item fm.sn is exist - process it [20:38:49]wFMCommunicate request_size=4 [20:38:49]MH_SAM_APDU [20:38:49]CAPDU: 80 11 00 00 [20:38:49]Write to MH i2c: E2 08 00 E3 2C 80 11 00 00 00 00 00 00 89 [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 17 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 17 00 E3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E0 [20:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:38:49]wFMCommunicate OK [20:38:49]requested_item fd.num is exist - process it [20:38:49]SAM_PROTO_GetFieldsCounters [20:38:49]wFMCommunicate request_size=4 [20:38:49]MH_SAM_APDU [20:38:49]CAPDU: 80 13 00 00 [20:38:49]Write to MH i2c: E2 08 00 E4 2C 80 13 00 00 00 00 00 00 8C [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 62 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 62 00 E4 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F6 CA 01 00 0E 04 04 00 1E 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 DA [20:38: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F6 CA 01 00 0E 04 04 00 1E 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 [20:38:49]wFMCommunicate OK [20:38:49]SAM_PROTO_GetFieldsCounters done [20:38:49]requested_item shift.num is exist - process it [20:38:49]requested_item shift.opened is exist - process it [20:38:49]req_shift_opened [20:38:49]FM_GetShiftState [20:38:49]SAM_PROTO_GetShiftState [20:38:49]wFMCommunicate request_size=4 [20:38:49]MH_SAM_APDU [20:38:49]CAPDU: 80 13 01 00 [20:38:49]Write to MH i2c: E2 08 00 E5 2C 80 13 01 00 00 00 00 00 8E [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 0E 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 0E 00 E5 2C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 CD [20:38:49]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:38:49]wFMCommunicate OK [20:38:49]SAM_PROTO_GetShiftState done [20:38:49]FM_GetShiftState done [20:38:49]req_shift_opened done [20:38:49]requested_item shift.open_date is exist - process it [20:38:49]req_shift_open_date [20:38:49]req_shift_open_date done [20:38:49]produce_requested_data done [20:38:49]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117494,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:38:49]process_action_free close_receipt [20:38:49]json_value_free [20:38:49]json_value_free done [20:38:49]process_json_proto returns [20:38:49]Send response to host [20:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117494,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:38:49]free response buf [20:38:49]execute_script done [20:38:49]execute_script returns [20:38:49]free content buf [20:38:49]Sock 9.Close socket [20:38:49]Sock 9.Thread stoped [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:41]accept exits with 10 [20:44:41]New connection [20:44:41]New thread 3067600228 created [20:44:41]Thread 3067456868 joined [20:44:41]Waiting for new connection... [20:44:41] Sock 10.Parse request [20:44:41]Sock 10.Check first char [20:44:41]Sock 10.First char is OK [20:44:41]request: POST /json_proto HTTP/1.0 [20:44:41]Method: POST [20:44:41]URL: /json_proto [20:44:41]Method is POST - this is cgi request [20:44:41]url: /json_proto [20:44:41]query_string will be loaded in cgi processing [20:44:41]execute_cgi json_proto POST (null) [20:44:41]execute_cgi path=json_proto method=POST [20:44:41]POST find Content-Length [20:44:41]Host: 172.17.96.67:8080 [20:44:41]Content-Length: 677 [20:44:41]Content-Type: application/json [20:44:41] [20:44:41]POST finish read [20:44:41]Found Content-Length = 677 [20:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:44:41]execute_script... [20:44: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)245271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:44:41]POST & json_proto [20:44:41]process_json_proto [20:44:41]json parsed OK: [20:44:41]protocol is kg_v1.0 [20:44:41]action value=close_receipt [20:44:41]process_action close_receipt [20:44:41]cmd_close_receipt [20:44:41]MH_GetDate [20:44:41]Write to MH i2c: F0 00 00 E6 2C 01 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: F0 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: F0 09 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: F0 09 00 E6 2C 00 3C A6 1E 67 2B 09 1E 67 2A [20:44:41]GetLastDocTimeStamp 1730061528 [20:44:41]current date 1730061884 [20:44:41]FM_GetShiftState [20:44:41]SAM_PROTO_GetShiftState [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 13 01 00 [20:44:41]Write to MH i2c: E2 08 00 E7 2C 80 13 01 00 00 00 00 00 90 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 E7 2C 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 CF [20:44:41]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:44:41]wFMCommunicate OK [20:44:41]SAM_PROTO_GetShiftState done [20:44:41]FM_GetShiftState done [20:44:41]opened in 1729987372 [20:44:41]opened+sec_in_day 1730073772 [20:44:41]quantity*price = 50041 [20:44:41]sum+1 = 50042 [20:44: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 195 27.10.2024 20:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117495 ФПД: 98157764512264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204444&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117495&fm=98157764512264&tin=02508201610067®Number=0000000000091782&sum=50000 [20:44:42]StoreToDocumentArchive [20:44:42]shift 542 fd 117495 [20:44:42]save to /storage/0542/doc_00117495 [20:44:42]save last doc name /storage/0542/doc_00117495 to /storage/kkm_last_doc_name [20:44:42]save OK [20:44:42]Clear old archive folders... [20:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:42]tlvbuf is B6F78350 [20:44:42]SAM_PROTO_ClearQueue [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 09 00 00 [20:44:42]Write to MH i2c: E2 08 00 F4 2C 80 09 00 00 00 00 00 00 92 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 F4 2C 00 90 00 94 [20:44:42]RAPDU: 90 00 [20:44:42]wFMCommunicate OK [20:44:42]SAM_PROTO_ClearQueue done [20:44:42]KKMCreateOFDPacket [20:44:42]OFDProtocolAddRootSTLVToBuf [20:44:42]FM_MakeSignedData [20:44:42]FM_MakeSignedData [20:44:42]SAM_PROTO_SignData [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 0D 01 02 [20:44:42]Write to MH i2c: E2 08 00 F5 2C 80 0D 01 02 00 00 00 00 9A [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 F5 2C 00 90 00 95 [20:44:42]RAPDU: 90 00 [20:44:42]wFMCommunicate OK [20:44:42]wFMCommunicate request_size=255 [20:44:42]MH_SAM_APDU [20:44: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 C3 00 00 00 F4 03 04 00 3C A6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F7 CA 01 00 35 04 06 00 59 [20:44:42]Write to MH i2c: E2 02 01 F6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3C A6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F7 CA 01 00 35 04 06 00 59 00 00 91 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 F6 2C 00 90 00 96 [20:44:43]RAPDU: 90 00 [20:44:43]wFMCommunicate OK [20:44:43]wFMCommunicate request_size=10 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 0D 02 02 05 46 22 AF 8A 08 [20:44:43]Write to MH i2c: E2 0D 00 F7 2C 80 0D 02 02 05 00 46 22 AF 8A 08 00 00 50 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 F7 2C 00 90 00 97 [20:44:43]RAPDU: 90 00 [20:44:43]wFMCommunicate OK [20:44:43]wFMCommunicate request_size=4 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 0D 03 02 [20:44:43]Write to MH i2c: E2 08 00 F8 2C 80 0D 03 02 00 00 00 00 9F [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 0B 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 0B 00 F8 2C 00 DD 20 E2 2C 04 BD 86 E3 90 00 D5 [20:44:43]RAPDU: DD 20 E2 2C 04 BD 86 E3 90 00 [20:44:43]wFMCommunicate OK [20:44:43]SAM_PROTO_SignData done [20:44:43]FM_MakeSignedData done [20:44:43]CreateOFDProtocolMessage [20:44:43]wFMCommunicate request_size=4 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 11 00 00 [20:44:43]Write to MH i2c: E2 08 00 F9 2C 80 11 00 00 00 00 00 00 9F [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 17 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 17 00 F9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F6 [20:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:44:43]wFMCommunicate OK [20:44:43]CreateOFDProtocolMessage done [20:44:43]OFDSenderStorePacket 117495 [20:44:43]StoreOFDPacket docnum=117495 [20:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 35 40 07 01 C5 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3C A6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F7 CA 01 00 35 04 06 00 59 46 22 AF 8A 08 DD 20 E2 2C 04 BD 86 E3 [20:44:43]CheckFolder [20:44:43]dirname=/storage/ofd_packets [20:44:43]CheckFolder done [20:44:43]ProducePacketName [20:44:43]name=ofd_packets/00117495 [20:44:43]NVStorageSaveData ofd_packets/00117495 [20:44:43]File name is /storage/ofd_packets/00117495 [20:44:43]Write 301 bytes [20:44:43]NVStorageSaveData done [20:44:43]OFDSenderStorePacket done [20:44:43]KKMCreateOFDPacket done [20:44:43]NVStorageSaveData kkm_last_timestamp [20:44:43]File name is /storage/kkm_last_timestamp [20:44:43]Write 4 bytes [20:44:43]NVStorageSaveData done [20:44:43]ExternCall_PrintAddStr [20:44:43]wPrintStart [20:44:43]Write to MH i2c: 01 00 00 FA 2C 26 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: 01 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: 01 07 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: 01 07 00 FA 2C 00 00 00 00 00 FF 0F 3B [20:44:43]RasterBufferAndPrint [20:44:43]line Счет N : (1)245271 [20:44:43]line ИНН: 02508201610067 [20:44:43]line Контрольно-Кассовый Чек [20:44:43]line ПРОДАЖА [20:44:43]line ТРК (МРК, ГНК) : 21 [20:44:43]line Товар: 2710124130 [20:44:43]line Аи-92-К-2 [20:44:43]line 7.480 * 66.90 [20:44:43]line = 500.41 [20:44:43]line НДС 12% НСП 1% [20:44:43]line > о реализуемом товаре [20:44:43]line ОКРУГЛЕНИЕ: -0.41 [20:44:43]line ИТОГО: 500.00 [20:44:43]line Внесено: 500.00 [20:44:43]line СДАЧА: 0.00 [20:44:43]line НСП 1% : 4.43 [20:44:43]line НДС 12% : 53.14 [20:44:43]line Наличными: 500.00 [20:44:43]line Безнал.: 0.00 [20:44:43]line Место: АЗС № 173 "Партнер Нефть" [20:44:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:44:43]line СНО: Общий режим [20:44:43]line Чек 195 27.10.2024 20:44 [20:44:43]line Смена: 542 ФФД: 1.0 [20:44:43]line ЗНМ: 0300000115 [20:44:43]line РНМ: 0000000000091782 [20:44:43]line Версия ККМ: 001 [20:44:43]line ФМ: 0000000000871767 [20:44:43]line ФД: 117495 [20:44:43]line ФПД: 98157764512264 [20:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204444&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117495&fm=98157764512264&tin=02508201610067®Number=0000000000091782&sum=50000 [20:44:43]OFD Sender: Processing packet 117495 [packets to send 76, broken 75] [20:44:43]ProducePacketName [20:44:43]name=ofd_packets/00117495 [20:44:43]OFD Sender: To server: pG, [20:44:43]CommunicateWithHost lk.salyk.kg:30040 [20:44:43]ConnectInit lk.salyk.kg [20:44:43]written 0, free lines is 4095 [20:44:43]Connected sock=9 [20:44: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 36 37 0F 01 00 00 35 40 07 01 C5 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3C A6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F7 CA 01 00 35 04 06 00 59 46 22 AF 8A 08 DD 20 E2 2C 04 BD 86 E3 [20:44: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 36 37 4F 00 00 00 10 D7 47 00 1D 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 36 37 10 04 04 00 F7 CA 01 00 F4 03 04 00 F9 51 1E 67 B6 04 01 00 00 4D EC 87 A3 50 6F 05 D2 [20:44:44]CommunicateWithHost err = 0 [20:44:44]CheckOFDResponse [20:44:44]1017 (14) - 77093643461234 [20:44:44]1041 (16) - 0000000000871767 [20:44:44]1040 (4) - 117495 [20:44:44]1012 (4) - 27.10.2024 14:45 [20:44:44]1206 (1) - 0 [20:44:44]OFD Sender: Remove packet 117495 [20:44:44]ProducePacketName [20:44:44]name=ofd_packets/00117495 [20:44:44]NVStorageDeleteData [20:44:44]Write to MH i2c: 01 00 00 24 2D 51 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 07 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 07 00 24 2D 00 00 00 00 00 C7 0C 2B [20:44:44]RasterBufferAndPrint [20:44:44]line [20:44:44]line [20:44:44]line [20:44:44]line [20:44:44]line [20:44:44]written 0, free lines is 3278 [20:44:44]MH_Cut [20:44:44]Write to MH i2c: D1 01 00 2B 2D 01 2A [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: D1 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: D1 01 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: D1 01 00 2B 2D 00 29 [20:44:44]Write to MH i2c: 01 00 00 2C 2D 59 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]OFD Sender: No OFD packet to send [20:44:44]*** Cut start [20:44:44]*** Purtial cut [20:44:44]*** Stage 1: CUTSNS_PIN = 1 [20:44:45]Read from MH i2c: 01 [20:44:45]MH_I2C_Read... [20:44:45]*** Stop cut motor [20:44:45]*** Cut end [20:44:45]Read from MH i2c: 01 07 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: 01 07 00 2C 2D 00 00 00 00 00 FF 0F 6E [20:44:45]process_action close_receipt done [20:44:45]requested_data is exist [20:44:45]produce_requested_data [20:44:45]requested_item fm.sn is exist - process it [20:44:45]wFMCommunicate request_size=4 [20:44:45]MH_SAM_APDU [20:44:45]CAPDU: 80 11 00 00 [20:44:45]Write to MH i2c: E2 08 00 2D 2D 80 11 00 00 00 00 00 00 D4 [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:45]Read from MH i2c: E2 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 17 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 17 00 2D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2B [20:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:44:45]wFMCommunicate OK [20:44:45]requested_item fd.num is exist - process it [20:44:45]SAM_PROTO_GetFieldsCounters [20:44:45]wFMCommunicate request_size=4 [20:44:45]MH_SAM_APDU [20:44:45]CAPDU: 80 13 00 00 [20:44:45]Write to MH i2c: E2 08 00 2E 2D 80 13 00 00 00 00 00 00 D7 [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:45]Read from MH i2c: E2 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 62 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 62 00 2E 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F7 CA 01 00 0E 04 04 00 1E 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 29 [20:44: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F7 CA 01 00 0E 04 04 00 1E 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 [20:44:45]wFMCommunicate OK [20:44:45]SAM_PROTO_GetFieldsCounters done [20:44:45]requested_item shift.num is exist - process it [20:44:45]requested_item shift.opened is exist - process it [20:44:45]req_shift_opened [20:44:45]FM_GetShiftState [20:44:45]SAM_PROTO_GetShiftState [20:44:45]wFMCommunicate request_size=4 [20:44:45]MH_SAM_APDU [20:44:45]CAPDU: 80 13 01 00 [20:44:45]Write to MH i2c: E2 08 00 2F 2D 80 13 01 00 00 00 00 00 D9 [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:45]Read from MH i2c: E2 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 0E 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 0E 00 2F 2D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 18 [20:44:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:44:45]wFMCommunicate OK [20:44:45]SAM_PROTO_GetShiftState done [20:44:45]FM_GetShiftState done [20:44:45]req_shift_opened done [20:44:45]requested_item shift.open_date is exist - process it [20:44:45]req_shift_open_date [20:44:45]req_shift_open_date done [20:44:45]produce_requested_data done [20:44:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117495,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:44:45]process_action_free close_receipt [20:44:45]json_value_free [20:44:45]json_value_free done [20:44:45]process_json_proto returns [20:44:45]Send response to host [20:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117495,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:44:45]free response buf [20:44:45]execute_script done [20:44:45]execute_script returns [20:44:45]free content buf [20:44:45]Sock 10.Close socket [20:44:45]Sock 10.Thread stoped [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:58]accept exits with 7 [20:47:58]New connection [20:47:58]New thread 3067456868 created [20:47:58]Thread 3067600228 joined [20:47:58]Waiting for new connection... [20:47:58] Sock 7.Parse request [20:47:58]Sock 7.Check first char [20:47:58]Sock 7.First char is OK [20:47:58]request: POST /json_proto HTTP/1.0 [20:47:58]Method: POST [20:47:58]URL: /json_proto [20:47:58]Method is POST - this is cgi request [20:47:58]url: /json_proto [20:47:58]query_string will be loaded in cgi processing [20:47:58]execute_cgi json_proto POST (null) [20:47:58]execute_cgi path=json_proto method=POST [20:47:58]POST find Content-Length [20:47:58]Host: 172.17.96.67:8080 [20:47:58]Content-Length: 679 [20:47:58]Content-Type: application/json [20:47:58] [20:47:58]POST finish read [20:47:58]Found Content-Length = 679 [20:47:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:47:58]execute_script... [20:47: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)245272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:47:58]POST & json_proto [20:47:58]process_json_proto [20:47:58]json parsed OK: [20:47:58]protocol is kg_v1.0 [20:47:58]action value=close_receipt [20:47:58]process_action close_receipt [20:47:58]cmd_close_receipt [20:47:58]MH_GetDate [20:47:58]Write to MH i2c: F0 00 00 30 2D 4C [20:47:58]Write i2c OK [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: F0 [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: F0 09 00 [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: F0 09 00 30 2D 00 01 A7 1E 67 2B 09 1E 67 3B [20:47:58]GetLastDocTimeStamp 1730061884 [20:47:58]current date 1730062081 [20:47:58]FM_GetShiftState [20:47:58]SAM_PROTO_GetShiftState [20:47:58]wFMCommunicate request_size=4 [20:47:58]MH_SAM_APDU [20:47:58]CAPDU: 80 13 01 00 [20:47:58]Write to MH i2c: E2 08 00 31 2D 80 13 01 00 00 00 00 00 DB [20:47:58]Write i2c OK [20:47:58]MH_I2C_Read... [20:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:58]Read from MH i2c: E2 [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: E2 0E 00 [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: E2 0E 00 31 2D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1A [20:47:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:47:58]wFMCommunicate OK [20:47:58]SAM_PROTO_GetShiftState done [20:47:58]FM_GetShiftState done [20:47:58]opened in 1729987372 [20:47:58]opened+sec_in_day 1730073772 [20:47:58]quantity*price = 100050 [20:47:58]sum+1 = 100052 [20:47:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 196 27.10.2024 20:48 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117496 ФПД: 244716462329916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204801&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117496&fm=244716462329916&tin=02508201610067®Number=0000000000091782&sum=100000 [20:47:59]StoreToDocumentArchive [20:47:59]shift 542 fd 117496 [20:47:59]save to /storage/0542/doc_00117496 [20:47:59]save last doc name /storage/0542/doc_00117496 to /storage/kkm_last_doc_name [20:47:59]save OK [20:47:59]Clear old archive folders... [20:47:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:47:59]tlvbuf is 017CF710 [20:47:59]SAM_PROTO_ClearQueue [20:47:59]wFMCommunicate request_size=4 [20:47:59]MH_SAM_APDU [20:47:59]CAPDU: 80 09 00 00 [20:47:59]Write to MH i2c: E2 08 00 3E 2D 80 09 00 00 00 00 00 00 DD [20:47:59]Write i2c OK [20:47:59]MH_I2C_Read... [20:47:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:59]Read from MH i2c: E2 [20:47:59]MH_I2C_Read... [20:47:59]Read from MH i2c: E2 03 00 [20:47:59]MH_I2C_Read... [20:47:59]Read from MH i2c: E2 03 00 3E 2D 00 90 00 DF [20:47:59]RAPDU: 90 00 [20:47:59]wFMCommunicate OK [20:47:59]SAM_PROTO_ClearQueue done [20:47:59]KKMCreateOFDPacket [20:47:59]OFDProtocolAddRootSTLVToBuf [20:47:59]FM_MakeSignedData [20:47:59]FM_MakeSignedData [20:47:59]SAM_PROTO_SignData [20:47:59]wFMCommunicate request_size=4 [20:47:59]MH_SAM_APDU [20:47:59]CAPDU: 80 0D 01 02 [20:47:59]Write to MH i2c: E2 08 00 3F 2D 80 0D 01 02 00 00 00 00 E5 [20:47:59]Write i2c OK [20:47:59]MH_I2C_Read... [20:47:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:59]Read from MH i2c: E2 [20:47:59]MH_I2C_Read... [20:47:59]Read from MH i2c: E2 03 00 [20:47:59]MH_I2C_Read... [20:47:59]Read from MH i2c: E2 03 00 3F 2D 00 90 00 E0 [20:47:59]RAPDU: 90 00 [20:47:59]wFMCommunicate OK [20:47:59]wFMCommunicate request_size=255 [20:47:59]MH_SAM_APDU [20:47: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 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 01 A7 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F8 CA 01 00 35 04 06 00 DE 91 7D CE [20:47:59]Write to MH i2c: E2 02 01 40 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 C4 00 00 00 F4 03 04 00 01 A7 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F8 CA 01 00 35 04 06 00 DE 91 7D CE 00 00 FB [20:47:59]Write i2c OK [20:47:59]MH_I2C_Read... [20:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:00]Read from MH i2c: E2 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 03 00 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 03 00 40 2D 00 90 00 E1 [20:48:00]RAPDU: 90 00 [20:48:00]wFMCommunicate OK [20:48:00]wFMCommunicate request_size=7 [20:48:00]MH_SAM_APDU [20:48:00]CAPDU: 80 0D 02 02 02 D0 3C [20:48:00]Write to MH i2c: E2 0A 00 41 2D 80 0D 02 02 02 00 D0 3C 00 00 F8 [20:48:00]Write i2c OK [20:48:00]MH_I2C_Read... [20:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:00]Read from MH i2c: E2 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 03 00 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 03 00 41 2D 00 90 00 E2 [20:48:00]RAPDU: 90 00 [20:48:00]wFMCommunicate OK [20:48:00]wFMCommunicate request_size=4 [20:48:00]MH_SAM_APDU [20:48:00]CAPDU: 80 0D 03 02 [20:48:00]Write to MH i2c: E2 08 00 42 2D 80 0D 03 02 00 00 00 00 EA [20:48:00]Write i2c OK [20:48:00]MH_I2C_Read... [20:48:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:00]Read from MH i2c: E2 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 0B 00 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 0B 00 42 2D 00 5B 14 A7 FD F4 6C F7 13 90 00 68 [20:48:00]RAPDU: 5B 14 A7 FD F4 6C F7 13 90 00 [20:48:00]wFMCommunicate OK [20:48:00]SAM_PROTO_SignData done [20:48:00]FM_MakeSignedData done [20:48:00]CreateOFDProtocolMessage [20:48:00]wFMCommunicate request_size=4 [20:48:00]MH_SAM_APDU [20:48:00]CAPDU: 80 11 00 00 [20:48:00]Write to MH i2c: E2 08 00 43 2D 80 11 00 00 00 00 00 00 EA [20:48:00]Write i2c OK [20:48:00]MH_I2C_Read... [20:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:00]Read from MH i2c: E2 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 17 00 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 17 00 43 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 41 [20:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:48:00]wFMCommunicate OK [20:48:00]CreateOFDProtocolMessage done [20:48:00]OFDSenderStorePacket 117496 [20:48:00]StoreOFDPacket docnum=117496 [20:48:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 A9 80 04 01 09 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 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 01 A7 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F8 CA 01 00 35 04 06 00 DE 91 7D CE D0 3C 5B 14 A7 FD F4 6C F7 13 [20:48:00]CheckFolder [20:48:00]dirname=/storage/ofd_packets [20:48:00]CheckFolder done [20:48:00]ProducePacketName [20:48:00]name=ofd_packets/00117496 [20:48:00]NVStorageSaveData ofd_packets/00117496 [20:48:00]File name is /storage/ofd_packets/00117496 [20:48:00]Write 298 bytes [20:48:00]NVStorageSaveData done [20:48:00]OFDSenderStorePacket done [20:48:00]KKMCreateOFDPacket done [20:48:00]NVStorageSaveData kkm_last_timestamp [20:48:00]File name is /storage/kkm_last_timestamp [20:48:00]Write 4 bytes [20:48:00]NVStorageSaveData done [20:48:00]ExternCall_PrintAddStr [20:48:00]wPrintStart [20:48:00]Write to MH i2c: 01 00 00 44 2D 71 [20:48:00]Write i2c OK [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: 01 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: 01 07 00 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: 01 07 00 44 2D 00 00 00 00 00 FF 0F 86 [20:48:00]RasterBufferAndPrint [20:48:00]line Счет N : (1)245272 [20:48:00]line ИНН: 02508201610067 [20:48:00]line Контрольно-Кассовый Чек [20:48:00]line ПРОДАЖА [20:48:00]line ТРК (МРК, ГНК) : 23 [20:48:00]line Товар: 2710194210 [20:48:00]line ДТ-К-2 [20:48:00]line 13.130 * 76.20 [20:48:00]line = 1000.51 [20:48:00]line НДС 12% НСП 1% [20:48:00]line > о реализуемом товаре [20:48:00]line ОКРУГЛЕНИЕ: -0.51 [20:48:00]line ИТОГО: 1000.00 [20:48:00]line Внесено: 1000.00 [20:48:00]line СДАЧА: 0.00 [20:48:00]line НСП 1% : 8.85 [20:48:00]line НДС 12% : 106.25 [20:48:00]line Наличными: 1000.00 [20:48:00]line Безнал.: 0.00 [20:48:00]line Место: АЗС № 173 "Партнер Нефть" [20:48:00]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:48:00]line СНО: Общий режим [20:48:00]line Чек 196 27.10.2024 20:48 [20:48:00]line Смена: 542 ФФД: 1.0 [20:48:00]line ЗНМ: 0300000115 [20:48:00]line РНМ: 0000000000091782 [20:48:00]line Версия ККМ: 001 [20:48:00]line ФМ: 0000000000871767 [20:48:00]line ФД: 117496 [20:48:00]line ФПД: 244716462329916 [20:48:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204801&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117496&fm=244716462329916&tin=02508201610067®Number=0000000000091782&sum=100000 [20:48:00]OFD Sender: Processing packet 117496 [packets to send 76, broken 75] [20:48:00]ProducePacketName [20:48:00]name=ofd_packets/00117496 [20:48:00]OFD Sender: To server: pG, [20:48:00]CommunicateWithHost lk.salyk.kg:30040 [20:48:00]ConnectInit lk.salyk.kg [20:48:00]written 0, free lines is 4095 [20:48:00]Connected sock=10 [20:48: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 36 37 0C 01 00 00 A9 80 04 01 09 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 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 01 A7 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F8 CA 01 00 35 04 06 00 DE 91 7D CE D0 3C 5B 14 A7 FD F4 6C F7 13 [20:48: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 36 37 4F 00 00 00 4B 7F 47 00 1D 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 36 37 10 04 04 00 F8 CA 01 00 F4 03 04 00 BE 52 1E 67 B6 04 01 00 00 0E F0 D9 FC 42 16 A9 7C [20:48:00]CommunicateWithHost err = 0 [20:48:00]CheckOFDResponse [20:48:00]1017 (14) - 77093643461234 [20:48:00]1041 (16) - 0000000000871767 [20:48:00]1040 (4) - 117496 [20:48:00]1012 (4) - 27.10.2024 14:48 [20:48:00]1206 (1) - 0 [20:48:00]OFD Sender: Remove packet 117496 [20:48:00]ProducePacketName [20:48:00]name=ofd_packets/00117496 [20:48:00]NVStorageDeleteData [20:48:01]Write to MH i2c: 01 00 00 6E 2D 9B [20:48:01]Write i2c OK [20:48:01]MH_I2C_Read... [20:48:01]Read from MH i2c: 01 [20:48:01]MH_I2C_Read... [20:48:01]Read from MH i2c: 01 07 00 [20:48:01]MH_I2C_Read... [20:48:01]Read from MH i2c: 01 07 00 6E 2D 00 00 00 00 00 B7 0C 65 [20:48:01]RasterBufferAndPrint [20:48:01]line [20:48:01]line [20:48:01]line [20:48:01]line [20:48:01]line [20:48:01]written 0, free lines is 3263 [20:48:01]MH_Cut [20:48:01]Write to MH i2c: D1 01 00 75 2D 01 74 [20:48:01]Write i2c OK [20:48:01]MH_I2C_Read... [20:48:01]Read from MH i2c: D1 [20:48:01]MH_I2C_Read... [20:48:01]Read from MH i2c: D1 01 00 [20:48:01]MH_I2C_Read... [20:48:01]Read from MH i2c: D1 01 00 75 2D 00 73 [20:48:01]Write to MH i2c: 01 00 00 76 2D A3 [20:48:01]Write i2c OK [20:48:01]MH_I2C_Read... [20:48:01]OFD Sender: No OFD packet to send [20:48:01]*** Cut start [20:48:01]*** Purtial cut [20:48:01]*** Stage 1: CUTSNS_PIN = 1 [20:48:02]Read from MH i2c: 01 [20:48:02]MH_I2C_Read... [20:48:02]*** Stop cut motor [20:48:02]*** Cut end [20:48:02]Read from MH i2c: 01 07 00 [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: 01 07 00 76 2D 00 00 00 00 00 FF 0F B8 [20:48:02]process_action close_receipt done [20:48:02]requested_data is exist [20:48:02]produce_requested_data [20:48:02]requested_item fm.sn is exist - process it [20:48:02]wFMCommunicate request_size=4 [20:48:02]MH_SAM_APDU [20:48:02]CAPDU: 80 11 00 00 [20:48:02]Write to MH i2c: E2 08 00 77 2D 80 11 00 00 00 00 00 00 1E [20:48:02]Write i2c OK [20:48:02]MH_I2C_Read... [20:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:02]Read from MH i2c: E2 [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: E2 17 00 [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: E2 17 00 77 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 75 [20:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:48:02]wFMCommunicate OK [20:48:02]requested_item fd.num is exist - process it [20:48:02]SAM_PROTO_GetFieldsCounters [20:48:02]wFMCommunicate request_size=4 [20:48:02]MH_SAM_APDU [20:48:02]CAPDU: 80 13 00 00 [20:48:02]Write to MH i2c: E2 08 00 78 2D 80 13 00 00 00 00 00 00 21 [20:48:02]Write i2c OK [20:48:02]MH_I2C_Read... [20:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:02]Read from MH i2c: E2 [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: E2 62 00 [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: E2 62 00 78 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F8 CA 01 00 0E 04 04 00 1E 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 77 [20:48: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F8 CA 01 00 0E 04 04 00 1E 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 [20:48:02]wFMCommunicate OK [20:48:02]SAM_PROTO_GetFieldsCounters done [20:48:02]requested_item shift.num is exist - process it [20:48:02]requested_item shift.opened is exist - process it [20:48:02]req_shift_opened [20:48:02]FM_GetShiftState [20:48:02]SAM_PROTO_GetShiftState [20:48:02]wFMCommunicate request_size=4 [20:48:02]MH_SAM_APDU [20:48:02]CAPDU: 80 13 01 00 [20:48:02]Write to MH i2c: E2 08 00 79 2D 80 13 01 00 00 00 00 00 23 [20:48:02]Write i2c OK [20:48:02]MH_I2C_Read... [20:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:02]Read from MH i2c: E2 [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: E2 0E 00 [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: E2 0E 00 79 2D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 62 [20:48:02]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:48:02]wFMCommunicate OK [20:48:02]SAM_PROTO_GetShiftState done [20:48:02]FM_GetShiftState done [20:48:02]req_shift_opened done [20:48:02]requested_item shift.open_date is exist - process it [20:48:02]req_shift_open_date [20:48:02]req_shift_open_date done [20:48:02]produce_requested_data done [20:48:02]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117496,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:48:02]process_action_free close_receipt [20:48:02]json_value_free [20:48:02]json_value_free done [20:48:02]process_json_proto returns [20:48:02]Send response to host [20:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117496,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:48:02]free response buf [20:48:02]execute_script done [20:48:02]execute_script returns [20:48:02]free content buf [20:48:02]Sock 7.Close socket [20:48:02]Sock 7.Thread stoped [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]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:17]OFD Sender: No OFD packet to send [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:25]accept exits with 9 [20:58:25]New connection [20:58:25]New thread 3067600228 created [20:58:25]Thread 3067456868 joined [20:58:25]Waiting for new connection... [20:58:25] Sock 9.Parse request [20:58:25]Sock 9.Check first char [20:58:25]Sock 9.First char is OK [20:58:25]request: POST /json_proto HTTP/1.0 [20:58:25]Method: POST [20:58:25]URL: /json_proto [20:58:25]Method is POST - this is cgi request [20:58:25]url: /json_proto [20:58:25]query_string will be loaded in cgi processing [20:58:25]execute_cgi json_proto POST (null) [20:58:25]execute_cgi path=json_proto method=POST [20:58:25]POST find Content-Length [20:58:25]Host: 172.17.96.67:8080 [20:58:25]Content-Length: 674 [20:58:25]Content-Type: application/json [20:58:25] [20:58:25]POST finish read [20:58:25]Found Content-Length = 674 [20:58:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [20:58:25]execute_script... [20: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)245273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [20:58:25]POST & json_proto [20:58:25]process_json_proto [20:58:25]json parsed OK: [20:58:25]protocol is kg_v1.0 [20:58:25]action value=close_receipt [20:58:25]process_action close_receipt [20:58:25]cmd_close_receipt [20:58:25]MH_GetDate [20:58:25]Write to MH i2c: F0 00 00 7A 2D 96 [20:58:25]Write i2c OK [20:58:25]MH_I2C_Read... [20:58:25]Read from MH i2c: F0 [20:58:25]MH_I2C_Read... [20:58:25]Read from MH i2c: F0 09 00 [20:58:25]MH_I2C_Read... [20:58:25]Read from MH i2c: F0 09 00 7A 2D 00 75 A9 1E 67 2B 09 1E 67 FB [20:58:25]GetLastDocTimeStamp 1730062081 [20:58:25]current date 1730062709 [20:58:25]FM_GetShiftState [20:58:25]SAM_PROTO_GetShiftState [20:58:25]wFMCommunicate request_size=4 [20:58:25]MH_SAM_APDU [20:58:25]CAPDU: 80 13 01 00 [20:58:25]Write to MH i2c: E2 08 00 7B 2D 80 13 01 00 00 00 00 00 25 [20:58:25]Write i2c OK [20:58:25]MH_I2C_Read... [20:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:25]Read from MH i2c: E2 [20:58:25]MH_I2C_Read... [20:58:25]Read from MH i2c: E2 0E 00 [20:58:25]MH_I2C_Read... [20:58:25]Read from MH i2c: E2 0E 00 7B 2D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 64 [20:58:25]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:58:25]wFMCommunicate OK [20:58:25]SAM_PROTO_GetShiftState done [20:58:25]FM_GetShiftState done [20:58:25]opened in 1729987372 [20:58:25]opened+sec_in_day 1730073772 [20:58:25]quantity*price = 70027 [20:58:25]sum+1 = 70029 [20:58:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 197 27.10.2024 20:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117497 ФПД: 63406273061484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205829&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117497&fm=63406273061484&tin=02508201610067®Number=0000000000091782&sum=70000 [20:58:26]StoreToDocumentArchive [20:58:26]shift 542 fd 117497 [20:58:26]save to /storage/0542/doc_00117497 [20:58:26]save last doc name /storage/0542/doc_00117497 to /storage/kkm_last_doc_name [20:58:26]save OK [20:58:26]Clear old archive folders... [20:58:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:58:26]tlvbuf is 017CF8B0 [20:58:26]SAM_PROTO_ClearQueue [20:58:26]wFMCommunicate request_size=4 [20:58:26]MH_SAM_APDU [20:58:26]CAPDU: 80 09 00 00 [20:58:26]Write to MH i2c: E2 08 00 88 2D 80 09 00 00 00 00 00 00 27 [20:58:26]Write i2c OK [20:58:26]MH_I2C_Read... [20:58:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:27]Read from MH i2c: E2 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 03 00 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 03 00 88 2D 00 90 00 29 [20:58:27]RAPDU: 90 00 [20:58:27]wFMCommunicate OK [20:58:27]SAM_PROTO_ClearQueue done [20:58:27]KKMCreateOFDPacket [20:58:27]OFDProtocolAddRootSTLVToBuf [20:58:27]FM_MakeSignedData [20:58:27]FM_MakeSignedData [20:58:27]SAM_PROTO_SignData [20:58:27]wFMCommunicate request_size=4 [20:58:27]MH_SAM_APDU [20:58:27]CAPDU: 80 0D 01 02 [20:58:27]Write to MH i2c: E2 08 00 89 2D 80 0D 01 02 00 00 00 00 2F [20:58:27]Write i2c OK [20:58:27]MH_I2C_Read... [20:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:27]Read from MH i2c: E2 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 03 00 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 03 00 89 2D 00 90 00 2A [20:58:27]RAPDU: 90 00 [20:58:27]wFMCommunicate OK [20:58:27]wFMCommunicate request_size=255 [20:58:27]MH_SAM_APDU [20:58: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 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 C5 00 00 00 F4 03 04 00 75 A9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F9 CA 01 00 35 04 06 00 39 AA EC 61 [20:58:27]Write to MH i2c: E2 02 01 8A 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 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 C5 00 00 00 F4 03 04 00 75 A9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F9 CA 01 00 35 04 06 00 39 AA EC 61 00 00 2F [20:58:27]Write i2c OK [20:58:27]MH_I2C_Read... [20:58:27]OFD Sender: No OFD packet to send [20:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:27]Read from MH i2c: E2 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 03 00 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 03 00 8A 2D 00 90 00 2B [20:58:27]RAPDU: 90 00 [20:58:27]wFMCommunicate OK [20:58:27]wFMCommunicate request_size=7 [20:58:27]MH_SAM_APDU [20:58:27]CAPDU: 80 0D 02 02 02 E2 6C [20:58:27]Write to MH i2c: E2 0A 00 8B 2D 80 0D 02 02 02 00 E2 6C 00 00 84 [20:58:27]Write i2c OK [20:58:27]MH_I2C_Read... [20:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:27]Read from MH i2c: E2 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 03 00 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 03 00 8B 2D 00 90 00 2C [20:58:27]RAPDU: 90 00 [20:58:27]wFMCommunicate OK [20:58:27]wFMCommunicate request_size=4 [20:58:27]MH_SAM_APDU [20:58:27]CAPDU: 80 0D 03 02 [20:58:27]Write to MH i2c: E2 08 00 8C 2D 80 0D 03 02 00 00 00 00 34 [20:58:27]Write i2c OK [20:58:27]MH_I2C_Read... [20:58:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:27]Read from MH i2c: E2 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 0B 00 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 0B 00 8C 2D 00 FA 3C 20 FE 36 6C 23 38 90 00 86 [20:58:27]RAPDU: FA 3C 20 FE 36 6C 23 38 90 00 [20:58:27]wFMCommunicate OK [20:58:27]SAM_PROTO_SignData done [20:58:27]FM_MakeSignedData done [20:58:27]CreateOFDProtocolMessage [20:58:27]wFMCommunicate request_size=4 [20:58:27]MH_SAM_APDU [20:58:27]CAPDU: 80 11 00 00 [20:58:27]Write to MH i2c: E2 08 00 8D 2D 80 11 00 00 00 00 00 00 34 [20:58:27]Write i2c OK [20:58:27]MH_I2C_Read... [20:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:27]Read from MH i2c: E2 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 17 00 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: E2 17 00 8D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8B [20:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:58:27]wFMCommunicate OK [20:58:27]CreateOFDProtocolMessage done [20:58:27]OFDSenderStorePacket 117497 [20:58:27]StoreOFDPacket docnum=117497 [20:58:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 6D A6 04 01 53 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 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 C5 00 00 00 F4 03 04 00 75 A9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F9 CA 01 00 35 04 06 00 39 AA EC 61 E2 6C FA 3C 20 FE 36 6C 23 38 [20:58:27]CheckFolder [20:58:27]dirname=/storage/ofd_packets [20:58:27]CheckFolder done [20:58:27]ProducePacketName [20:58:27]name=ofd_packets/00117497 [20:58:27]NVStorageSaveData ofd_packets/00117497 [20:58:27]File name is /storage/ofd_packets/00117497 [20:58:27]Write 298 bytes [20:58:27]NVStorageSaveData done [20:58:27]OFDSenderStorePacket done [20:58:27]KKMCreateOFDPacket done [20:58:27]NVStorageSaveData kkm_last_timestamp [20:58:27]File name is /storage/kkm_last_timestamp [20:58:27]Write 4 bytes [20:58:27]NVStorageSaveData done [20:58:27]ExternCall_PrintAddStr [20:58:27]wPrintStart [20:58:27]Write to MH i2c: 01 00 00 8E 2D BB [20:58:27]Write i2c OK [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: 01 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: 01 07 00 [20:58:27]MH_I2C_Read... [20:58:27]Read from MH i2c: 01 07 00 8E 2D 00 00 00 00 00 FF 0F D0 [20:58:27]RasterBufferAndPrint [20:58:27]line Счет N : (1)245273 [20:58:27]line ИНН: 02508201610067 [20:58:27]line Контрольно-Кассовый Чек [20:58:27]line ПРОДАЖА [20:58:27]line ТРК (МРК, ГНК) : 13 [20:58:27]line Товар: 2710194210 [20:58:27]line ДТ-К-2 [20:58:27]line 9.190 * 76.20 [20:58:27]line = 700.28 [20:58:27]line НДС 12% НСП 1% [20:58:27]line > о реализуемом товаре [20:58:27]line ОКРУГЛЕНИЕ: -0.28 [20:58:27]line ИТОГО: 700.00 [20:58:27]line Внесено: 700.00 [20:58:27]line СДАЧА: 0.00 [20:58:27]line НСП 1% : 6.20 [20:58:27]line НДС 12% : 74.37 [20:58:27]line Наличными: 700.00 [20:58:27]line Безнал.: 0.00 [20:58:27]line Место: АЗС № 173 "Партнер Нефть" [20:58:27]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:58:27]line СНО: Общий режим [20:58:27]line Чек 197 27.10.2024 20:58 [20:58:27]line Смена: 542 ФФД: 1.0 [20:58:27]line ЗНМ: 0300000115 [20:58:27]line РНМ: 0000000000091782 [20:58:27]line Версия ККМ: 001 [20:58:27]line ФМ: 0000000000871767 [20:58:27]line ФД: 117497 [20:58:27]line ФПД: 63406273061484 [20:58:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205829&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117497&fm=63406273061484&tin=02508201610067®Number=0000000000091782&sum=70000 [20:58:27]OFD Sender: Processing packet 117497 [packets to send 76, broken 75] [20:58:27]ProducePacketName [20:58:27]name=ofd_packets/00117497 [20:58:27]OFD Sender: To server: pG, [20:58:27]CommunicateWithHost lk.salyk.kg:30040 [20:58:27]ConnectInit lk.salyk.kg [20:58:27]written 0, free lines is 4095 [20:58:27]Connected sock=10 [20: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 36 37 0C 01 00 00 6D A6 04 01 53 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 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 C5 00 00 00 F4 03 04 00 75 A9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F9 CA 01 00 35 04 06 00 39 AA EC 61 E2 6C FA 3C 20 FE 36 6C 23 38 [20:58: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 36 37 4F 00 00 00 F5 2F 47 00 88 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 36 37 10 04 04 00 F9 CA 01 00 F4 03 04 00 31 55 1E 67 B6 04 01 00 00 FC 67 6D 31 F3 F2 7C 9E [20:58:28]CommunicateWithHost err = 0 [20:58:28]CheckOFDResponse [20:58:28]1017 (14) - 77093643461234 [20:58:28]1041 (16) - 0000000000871767 [20:58:28]1040 (4) - 117497 [20:58:28]1012 (4) - 27.10.2024 14:58 [20:58:28]1206 (1) - 0 [20:58:28]OFD Sender: Remove packet 117497 [20:58:28]ProducePacketName [20:58:28]name=ofd_packets/00117497 [20:58:28]NVStorageDeleteData [20:58:28]Write to MH i2c: 01 00 00 B8 2D E5 [20:58:28]Write i2c OK [20:58:28]MH_I2C_Read... [20:58:28]Read from MH i2c: 01 [20:58:28]MH_I2C_Read... [20:58:28]Read from MH i2c: 01 07 00 [20:58:28]MH_I2C_Read... [20:58:28]Read from MH i2c: 01 07 00 B8 2D 00 00 00 00 00 AE 0C A6 [20:58:28]RasterBufferAndPrint [20:58:28]line [20:58:28]line [20:58:28]line [20:58:28]line [20:58:28]line [20:58:28]written 0, free lines is 3252 [20:58:28]MH_Cut [20:58:28]Write to MH i2c: D1 01 00 BF 2D 01 BE [20:58:28]Write i2c OK [20:58:28]MH_I2C_Read... [20:58:28]Read from MH i2c: D1 [20:58:28]MH_I2C_Read... [20:58:28]Read from MH i2c: D1 01 00 [20:58:28]MH_I2C_Read... [20:58:28]Read from MH i2c: D1 01 00 BF 2D 00 BD [20:58:28]Write to MH i2c: 01 00 00 C0 2D ED [20:58:28]Write i2c OK [20:58:28]MH_I2C_Read... [20:58:28]OFD Sender: No OFD packet to send [20:58:29]*** Cut start [20:58:29]*** Purtial cut [20:58:29]*** Stage 1: CUTSNS_PIN = 1 [20:58:29]Read from MH i2c: 01 [20:58:29]MH_I2C_Read... [20:58:29]*** Stop cut motor [20:58:29]*** Cut end [20:58:29]Read from MH i2c: 01 07 00 [20:58:29]MH_I2C_Read... [20:58:29]Read from MH i2c: 01 07 00 C0 2D 00 00 00 00 00 FF 0F 02 [20:58:29]process_action close_receipt done [20:58:29]requested_data is exist [20:58:29]produce_requested_data [20:58:29]requested_item fm.sn is exist - process it [20:58:29]wFMCommunicate request_size=4 [20:58:29]MH_SAM_APDU [20:58:29]CAPDU: 80 11 00 00 [20:58:29]Write to MH i2c: E2 08 00 C1 2D 80 11 00 00 00 00 00 00 68 [20:58:29]Write i2c OK [20:58:29]MH_I2C_Read... [20:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:29]Read from MH i2c: E2 [20:58:29]MH_I2C_Read... [20:58:29]Read from MH i2c: E2 17 00 [20:58:29]MH_I2C_Read... [20:58:29]Read from MH i2c: E2 17 00 C1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BF [20:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:58:29]wFMCommunicate OK [20:58:29]requested_item fd.num is exist - process it [20:58:29]SAM_PROTO_GetFieldsCounters [20:58:29]wFMCommunicate request_size=4 [20:58:29]MH_SAM_APDU [20:58:29]CAPDU: 80 13 00 00 [20:58:29]Write to MH i2c: E2 08 00 C2 2D 80 13 00 00 00 00 00 00 6B [20:58:29]Write i2c OK [20:58:29]MH_I2C_Read... [20:58:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:29]Read from MH i2c: E2 [20:58:29]MH_I2C_Read... [20:58:29]Read from MH i2c: E2 62 00 [20:58:29]MH_I2C_Read... [20:58:29]Read from MH i2c: E2 62 00 C2 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F9 CA 01 00 0E 04 04 00 1E 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 C5 [20: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F9 CA 01 00 0E 04 04 00 1E 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 [20:58:29]wFMCommunicate OK [20:58:29]SAM_PROTO_GetFieldsCounters done [20:58:29]requested_item shift.num is exist - process it [20:58:29]requested_item shift.opened is exist - process it [20:58:29]req_shift_opened [20:58:29]FM_GetShiftState [20:58:29]SAM_PROTO_GetShiftState [20:58:29]wFMCommunicate request_size=4 [20:58:29]MH_SAM_APDU [20:58:29]CAPDU: 80 13 01 00 [20:58:29]Write to MH i2c: E2 08 00 C3 2D 80 13 01 00 00 00 00 00 6D [20:58:29]Write i2c OK [20:58:29]MH_I2C_Read... [20:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:29]Read from MH i2c: E2 [20:58:29]MH_I2C_Read... [20:58:29]Read from MH i2c: E2 0E 00 [20:58:29]MH_I2C_Read... [20:58:29]Read from MH i2c: E2 0E 00 C3 2D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AC [20:58:29]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [20:58:29]wFMCommunicate OK [20:58:29]SAM_PROTO_GetShiftState done [20:58:29]FM_GetShiftState done [20:58:29]req_shift_opened done [20:58:29]requested_item shift.open_date is exist - process it [20:58:29]req_shift_open_date [20:58:29]req_shift_open_date done [20:58:29]produce_requested_data done [20:58:29]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117497,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [20:58:29]process_action_free close_receipt [20:58:29]json_value_free [20:58:29]json_value_free done [20:58:29]process_json_proto returns [20:58:29]Send response to host [20:58:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117497,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [20:58:29]free response buf [20:58:29]execute_script done [20:58:29]execute_script returns [20:58:29]free content buf [20:58:29]Sock 9.Close socket [20:58:29]Sock 9.Thread stoped [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:40]accept exits with 7 [21:09:40]New connection [21:09:40]New thread 3067456868 created [21:09:40]Thread 3067600228 joined [21:09:40]Waiting for new connection... [21:09:40] Sock 7.Parse request [21:09:40]Sock 7.Check first char [21:09:40]Sock 7.First char is OK [21:09:40]request: POST /json_proto HTTP/1.0 [21:09:40]Method: POST [21:09:40]URL: /json_proto [21:09:40]Method is POST - this is cgi request [21:09:40]url: /json_proto [21:09:40]query_string will be loaded in cgi processing [21:09:40]execute_cgi json_proto POST (null) [21:09:40]execute_cgi path=json_proto method=POST [21:09:40]POST find Content-Length [21:09:40]Host: 172.17.96.67:8080 [21:09:40]Content-Length: 978 [21:09:40]Content-Type: application/json [21:09:40] [21:09:40]POST finish read [21:09:40]Found Content-Length = 978 [21:09:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 63.730, "sum" : 4792.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 63.73 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 4792.00, "payments": [ { "type": 0, "sum" : 4792.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:40]execute_script... [21:09: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)245274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 63.730, "sum" : 4792.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 63.73 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 4792.00, "payments": [ { "type": 0, "sum" : 4792.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:40]POST & json_proto [21:09:40]process_json_proto [21:09:40]json parsed OK: [21:09:40]protocol is kg_v1.0 [21:09:40]action value=close_receipt [21:09:40]process_action close_receipt [21:09:40]cmd_close_receipt [21:09:40]MH_GetDate [21:09:40]Write to MH i2c: F0 00 00 C4 2D E0 [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: F0 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: F0 09 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: F0 09 00 C4 2D 00 17 AC 1E 67 2B 09 1E 67 EA [21:09:40]GetLastDocTimeStamp 1730062709 [21:09:40]current date 1730063383 [21:09:40]FM_GetShiftState [21:09:40]SAM_PROTO_GetShiftState [21:09:40]wFMCommunicate request_size=4 [21:09:40]MH_SAM_APDU [21:09:40]CAPDU: 80 13 01 00 [21:09:40]Write to MH i2c: E2 08 00 C5 2D 80 13 01 00 00 00 00 00 6F [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:40]Read from MH i2c: E2 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 0E 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 0E 00 C5 2D 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 AE [21:09:40]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [21:09:40]wFMCommunicate OK [21:09:40]SAM_PROTO_GetShiftState done [21:09:40]FM_GetShiftState done [21:09:40]opened in 1729987372 [21:09:40]opened+sec_in_day 1730073772 [21:09:40]quantity*price = 479249 [21:09:40]sum+1 = 479251 [21:09:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4792.00 Внесено: 5000.00 СДАЧА: 208.00 НСП 1% : 42.41 НДС 12% : 508.94 Наличными: 4792.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 198 27.10.2024 21:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа ДТ номер 173 сэкономлено 63.73 сом ФМ: 0000000000871767 ФД: 117498 ФПД: 249429585267289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210943&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117498&fm=249429585267289&tin=02508201610067®Number=0000000000091782&sum=479200 [21:09:41]StoreToDocumentArchive [21:09:41]shift 542 fd 117498 [21:09:41]save to /storage/0542/doc_00117498 [21:09:41]save last doc name /storage/0542/doc_00117498 to /storage/kkm_last_doc_name [21:09:41]save OK [21:09:41]Clear old archive folders... [21:09:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:09:41]tlvbuf is B6FF6C70 [21:09:41]SAM_PROTO_ClearQueue [21:09:41]wFMCommunicate request_size=4 [21:09:41]MH_SAM_APDU [21:09:41]CAPDU: 80 09 00 00 [21:09:41]Write to MH i2c: E2 08 00 D2 2D 80 09 00 00 00 00 00 00 71 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:41]Read from MH i2c: E2 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 03 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 03 00 D2 2D 00 90 00 73 [21:09:41]RAPDU: 90 00 [21:09:41]wFMCommunicate OK [21:09:41]SAM_PROTO_ClearQueue done [21:09:41]KKMCreateOFDPacket [21:09:41]OFDProtocolAddRootSTLVToBuf [21:09:41]FM_MakeSignedData [21:09:41]FM_MakeSignedData [21:09:41]SAM_PROTO_SignData [21:09:41]wFMCommunicate request_size=4 [21:09:41]MH_SAM_APDU [21:09:41]CAPDU: 80 0D 01 02 [21:09:41]Write to MH i2c: E2 08 00 D3 2D 80 0D 01 02 00 00 00 00 79 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:41]Read from MH i2c: E2 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 03 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 03 00 D3 2D 00 90 00 74 [21:09:41]RAPDU: 90 00 [21:09:41]wFMCommunicate OK [21:09:41]wFMCommunicate request_size=255 [21:09:41]MH_SAM_APDU [21:09: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 F2 F8 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 12 50 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 4F 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE C6 00 00 00 00 07 04 06 00 E0 4F 07 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 17 AC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FA CA 01 00 35 04 06 00 E2 DA D9 D3 [21:09:41]Write to MH i2c: E2 02 01 D4 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 F2 F8 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 12 50 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 4F 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE C6 00 00 00 00 07 04 06 00 E0 4F 07 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 17 AC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FA CA 01 00 35 04 06 00 E2 DA D9 D3 00 00 A5 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:41]Read from MH i2c: E2 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 03 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 03 00 D4 2D 00 90 00 75 [21:09:41]RAPDU: 90 00 [21:09:41]wFMCommunicate OK [21:09:41]wFMCommunicate request_size=7 [21:09:41]MH_SAM_APDU [21:09:41]CAPDU: 80 0D 02 02 02 8A 59 [21:09:41]Write to MH i2c: E2 0A 00 D5 2D 80 0D 02 02 02 00 8A 59 00 00 63 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:41]Read from MH i2c: E2 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 03 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 03 00 D5 2D 00 90 00 76 [21:09:41]RAPDU: 90 00 [21:09:41]wFMCommunicate OK [21:09:41]wFMCommunicate request_size=4 [21:09:41]MH_SAM_APDU [21:09:41]CAPDU: 80 0D 03 02 [21:09:41]Write to MH i2c: E2 08 00 D6 2D 80 0D 03 02 00 00 00 00 7E [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:41]Read from MH i2c: E2 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 0B 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 0B 00 D6 2D 00 E6 48 F4 B4 D2 50 B8 90 90 00 BF [21:09:41]RAPDU: E6 48 F4 B4 D2 50 B8 90 90 00 [21:09:41]wFMCommunicate OK [21:09:41]SAM_PROTO_SignData done [21:09:41]FM_MakeSignedData done [21:09:41]CreateOFDProtocolMessage [21:09:41]wFMCommunicate request_size=4 [21:09:41]MH_SAM_APDU [21:09:41]CAPDU: 80 11 00 00 [21:09:41]Write to MH i2c: E2 08 00 D7 2D 80 11 00 00 00 00 00 00 7E [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:41]Read from MH i2c: E2 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 17 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 17 00 D7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D5 [21:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:09:41]wFMCommunicate OK [21:09:41]CreateOFDProtocolMessage done [21:09:41]OFDSenderStorePacket 117498 [21:09:41]StoreOFDPacket docnum=117498 [21:09:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 99 49 04 01 FA AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F2 F8 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 12 50 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 4F 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE C6 00 00 00 00 07 04 06 00 E0 4F 07 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 17 AC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FA CA 01 00 35 04 06 00 E2 DA D9 D3 8A 59 E6 48 F4 B4 D2 50 B8 90 [21:09:41]CheckFolder [21:09:41]dirname=/storage/ofd_packets [21:09:41]CheckFolder done [21:09:41]ProducePacketName [21:09:41]name=ofd_packets/00117498 [21:09:41]NVStorageSaveData ofd_packets/00117498 [21:09:41]File name is /storage/ofd_packets/00117498 [21:09:41]Write 298 bytes [21:09:41]NVStorageSaveData done [21:09:41]OFDSenderStorePacket done [21:09:41]KKMCreateOFDPacket done [21:09:41]NVStorageSaveData kkm_last_timestamp [21:09:41]File name is /storage/kkm_last_timestamp [21:09:41]Write 4 bytes [21:09:41]NVStorageSaveData done [21:09:41]ExternCall_PrintAddStr [21:09:41]wPrintStart [21:09:41]Write to MH i2c: 01 00 00 D8 2D 05 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: 01 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: 01 07 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: 01 07 00 D8 2D 00 00 00 00 00 FF 0F 1A [21:09:41]RasterBufferAndPrint [21:09:41]line Счет N : (1)245274 [21:09:41]line ИНН: 02508201610067 [21:09:41]line Контрольно-Кассовый Чек [21:09:41]line ПРОДАЖА [21:09:41]line ТРК (МРК, ГНК) : 23 [21:09:41]line Товар: 2710194210 [21:09:41]line ДТ-К-2 [21:09:41]line 63.730 * 75.20 [21:09:41]line = 4792.50 [21:09:41]line НДС 12% НСП 1% [21:09:41]line > о реализуемом товаре [21:09:41]line ОКРУГЛЕНИЕ: -0.50 [21:09:41]line ИТОГО: 4792.00 [21:09:41]line Внесено: 5000.00 [21:09:41]line СДАЧА: 208.00 [21:09:41]line НСП 1% : 42.41 [21:09:41]line НДС 12% : 508.94 [21:09:41]line Наличными: 4792.00 [21:09:41]line Безнал.: 0.00 [21:09:41]line Место: АЗС № 173 "Партнер Нефть" [21:09:41]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [21:09:41]line СНО: Общий режим [21:09:41]line Чек 198 27.10.2024 21:09 [21:09:41]line Смена: 542 ФФД: 1.0 [21:09:41]line ЗНМ: 0300000115 [21:09:41]line РНМ: 0000000000091782 [21:09:41]line Версия ККМ: 001 [21:09:41]line [21:09:41]line Дисконтная программа [21:09:41]line ДТ [21:09:41]line номер 173 [21:09:41]line сэкономлено 63.73 сом [21:09:41]line ФМ: 0000000000871767 [21:09:41]line ФД: 117498 [21:09:41]line ФПД: 249429585267289 [21:09:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210943&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117498&fm=249429585267289&tin=02508201610067®Number=0000000000091782&sum=479200 [21:09:42]OFD Sender: Processing packet 117498 [packets to send 76, broken 75] [21:09:42]ProducePacketName [21:09:42]name=ofd_packets/00117498 [21:09:42]OFD Sender: To server: pG, [21:09:42]CommunicateWithHost lk.salyk.kg:30040 [21:09:42]ConnectInit lk.salyk.kg [21:09:42]written 0, free lines is 4095 [21:09:42]Connected sock=11 [21:09: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 36 37 0C 01 00 00 99 49 04 01 FA AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F2 F8 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 12 50 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 4F 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE C6 00 00 00 00 07 04 06 00 E0 4F 07 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 17 AC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FA CA 01 00 35 04 06 00 E2 DA D9 D3 8A 59 E6 48 F4 B4 D2 50 B8 90 [21:09: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 36 37 4F 00 00 00 57 F6 47 00 5C 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 36 37 10 04 04 00 FA CA 01 00 F4 03 04 00 D4 57 1E 67 B6 04 01 00 00 A9 E6 81 7A A7 06 2D E4 [21:09:42]CommunicateWithHost err = 0 [21:09:42]CheckOFDResponse [21:09:42]1017 (14) - 77093643461234 [21:09:42]1041 (16) - 0000000000871767 [21:09:42]1040 (4) - 117498 [21:09:42]1012 (4) - 27.10.2024 15:10 [21:09:42]1206 (1) - 0 [21:09:42]OFD Sender: Remove packet 117498 [21:09:42]ProducePacketName [21:09:42]name=ofd_packets/00117498 [21:09:42]NVStorageDeleteData [21:09:42]Write to MH i2c: 01 00 00 07 2E 35 [21:09:42]Write i2c OK [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: 01 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: 01 07 00 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: 01 07 00 07 2E 00 00 00 00 00 6A 0C B2 [21:09:42]RasterBufferAndPrint [21:09:42]line [21:09:42]line [21:09:42]line [21:09:42]line [21:09:42]line [21:09:42]written 0, free lines is 3182 [21:09:42]MH_Cut [21:09:42]Write to MH i2c: D1 01 00 0E 2E 01 0E [21:09:42]Write i2c OK [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: D1 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: D1 01 00 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: D1 01 00 0E 2E 00 0D [21:09:42]Write to MH i2c: 01 00 00 0F 2E 3D [21:09:42]Write i2c OK [21:09:42]MH_I2C_Read... [21:09:43]OFD Sender: No OFD packet to send [21:09:43]*** Cut start [21:09:43]*** Purtial cut [21:09:43]*** Stage 1: CUTSNS_PIN = 1 [21:09:43]Read from MH i2c: 01 [21:09:43]MH_I2C_Read... [21:09:43]*** Stop cut motor [21:09:43]*** Cut end [21:09:43]Read from MH i2c: 01 07 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: 01 07 00 0F 2E 00 00 00 00 00 FF 0F 52 [21:09:43]process_action close_receipt done [21:09:43]requested_data is exist [21:09:43]produce_requested_data [21:09:43]requested_item fm.sn is exist - process it [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 11 00 00 [21:09:43]Write to MH i2c: E2 08 00 10 2E 80 11 00 00 00 00 00 00 B8 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 17 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 17 00 10 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0F [21:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:09:43]wFMCommunicate OK [21:09:43]requested_item fd.num is exist - process it [21:09:43]SAM_PROTO_GetFieldsCounters [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 13 00 00 [21:09:43]Write to MH i2c: E2 08 00 11 2E 80 13 00 00 00 00 00 00 BB [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 62 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 62 00 11 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FA CA 01 00 0E 04 04 00 1E 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 19 [21:09:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FA CA 01 00 0E 04 04 00 1E 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 [21:09:44]wFMCommunicate OK [21:09:44]SAM_PROTO_GetFieldsCounters done [21:09:44]requested_item shift.num is exist - process it [21:09:44]requested_item shift.opened is exist - process it [21:09:44]req_shift_opened [21:09:44]FM_GetShiftState [21:09:44]SAM_PROTO_GetShiftState [21:09:44]wFMCommunicate request_size=4 [21:09:44]MH_SAM_APDU [21:09:44]CAPDU: 80 13 01 00 [21:09:44]Write to MH i2c: E2 08 00 12 2E 80 13 01 00 00 00 00 00 BD [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 0E 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 0E 00 12 2E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FC [21:09:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [21:09:44]wFMCommunicate OK [21:09:44]SAM_PROTO_GetShiftState done [21:09:44]FM_GetShiftState done [21:09:44]req_shift_opened done [21:09:44]requested_item shift.open_date is exist - process it [21:09:44]req_shift_open_date [21:09:44]req_shift_open_date done [21:09:44]produce_requested_data done [21:09:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117498,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [21:09:44]process_action_free close_receipt [21:09:44]json_value_free [21:09:44]json_value_free done [21:09:44]process_json_proto returns [21:09:44]Send response to host [21:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117498,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [21:09:44]free response buf [21:09:44]execute_script done [21:09:44]execute_script returns [21:09:44]free content buf [21:09:44]Sock 7.Close socket [21:09:44]Sock 7.Thread stoped [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:47]accept exits with 9 [21:42:47]New connection [21:42:47]New thread 3067600228 created [21:42:47]Thread 3067456868 joined [21:42:47]Waiting for new connection... [21:42:47] Sock 9.Parse request [21:42:47]Sock 9.Check first char [21:42:47]Sock 9.First char is OK [21:42:47]request: POST /json_proto HTTP/1.0 [21:42:47]Method: POST [21:42:47]URL: /json_proto [21:42:47]Method is POST - this is cgi request [21:42:47]url: /json_proto [21:42:47]query_string will be loaded in cgi processing [21:42:47]execute_cgi json_proto POST (null) [21:42:47]execute_cgi path=json_proto method=POST [21:42:47]POST find Content-Length [21:42:47]Host: 172.17.96.67:8080 [21:42:47]Content-Length: 677 [21:42:47]Content-Type: application/json [21:42:47] [21:42:47]POST finish read [21:42:47]Found Content-Length = 677 [21:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [21:42:47]execute_script... [21:42: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)245275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [21:42:47]POST & json_proto [21:42:47]process_json_proto [21:42:47]json parsed OK: [21:42:47]protocol is kg_v1.0 [21:42:47]action value=close_receipt [21:42:47]process_action close_receipt [21:42:47]cmd_close_receipt [21:42:47]MH_GetDate [21:42:47]Write to MH i2c: F0 00 00 13 2E 30 [21:42:47]Write i2c OK [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: F0 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: F0 09 00 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: F0 09 00 13 2E 00 DB B3 1E 67 2B 09 1E 67 05 [21:42:47]GetLastDocTimeStamp 1730063383 [21:42:47]current date 1730065371 [21:42:47]FM_GetShiftState [21:42:47]SAM_PROTO_GetShiftState [21:42:47]wFMCommunicate request_size=4 [21:42:47]MH_SAM_APDU [21:42:47]CAPDU: 80 13 01 00 [21:42:47]Write to MH i2c: E2 08 00 14 2E 80 13 01 00 00 00 00 00 BF [21:42:47]Write i2c OK [21:42:47]MH_I2C_Read... [21:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:47]Read from MH i2c: E2 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: E2 0E 00 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: E2 0E 00 14 2E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 FE [21:42:47]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [21:42:47]wFMCommunicate OK [21:42:47]SAM_PROTO_GetShiftState done [21:42:47]FM_GetShiftState done [21:42:47]opened in 1729987372 [21:42:47]opened+sec_in_day 1730073772 [21:42:47]quantity*price = 20003 [21:42:47]sum+1 = 20004 [21:42:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 199 27.10.2024 21:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117499 ФПД: 261408631646141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214251&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117499&fm=261408631646141&tin=02508201610067®Number=0000000000091782&sum=20000 [21:42:48]StoreToDocumentArchive [21:42:48]shift 542 fd 117499 [21:42:48]save to /storage/0542/doc_00117499 [21:42:48]save last doc name /storage/0542/doc_00117499 to /storage/kkm_last_doc_name [21:42:48]save OK [21:42:48]Clear old archive folders... [21:42:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:48]tlvbuf is 016FB000 [21:42:48]SAM_PROTO_ClearQueue [21:42:48]wFMCommunicate request_size=4 [21:42:48]MH_SAM_APDU [21:42:48]CAPDU: 80 09 00 00 [21:42:48]Write to MH i2c: E2 08 00 21 2E 80 09 00 00 00 00 00 00 C1 [21:42:48]Write i2c OK [21:42:48]MH_I2C_Read... [21:42:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:48]Read from MH i2c: E2 [21:42:48]MH_I2C_Read... [21:42:48]Read from MH i2c: E2 03 00 [21:42:48]MH_I2C_Read... [21:42:48]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [21:42:48]RAPDU: 90 00 [21:42:48]wFMCommunicate OK [21:42:48]SAM_PROTO_ClearQueue done [21:42:48]KKMCreateOFDPacket [21:42:48]OFDProtocolAddRootSTLVToBuf [21:42:48]FM_MakeSignedData [21:42:48]FM_MakeSignedData [21:42:48]SAM_PROTO_SignData [21:42:48]wFMCommunicate request_size=4 [21:42:48]MH_SAM_APDU [21:42:48]CAPDU: 80 0D 01 02 [21:42:48]Write to MH i2c: E2 08 00 22 2E 80 0D 01 02 00 00 00 00 C9 [21:42:48]Write i2c OK [21:42:48]MH_I2C_Read... [21:42:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:48]Read from MH i2c: E2 [21:42:48]MH_I2C_Read... [21:42:48]Read from MH i2c: E2 03 00 [21:42:48]MH_I2C_Read... [21:42:48]Read from MH i2c: E2 03 00 22 2E 00 90 00 C4 [21:42:48]RAPDU: 90 00 [21:42:48]wFMCommunicate OK [21:42:48]wFMCommunicate request_size=255 [21:42:48]MH_SAM_APDU [21:42: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 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 C7 00 00 00 F4 03 04 00 DB B3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FB CA 01 00 35 04 06 00 ED [21:42:48]Write to MH i2c: E2 02 01 23 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 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 C7 00 00 00 F4 03 04 00 DB B3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FB CA 01 00 35 04 06 00 ED 00 00 CA [21:42:48]Write i2c OK [21:42:48]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 23 2E 00 90 00 C5 [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 BF F0 A1 67 BD [21:42:49]Write to MH i2c: E2 0D 00 24 2E 80 0D 02 02 05 00 BF F0 A1 67 BD 00 00 4A [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 24 2E 00 90 00 C6 [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 25 2E 80 0D 03 02 00 00 00 00 CE [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 25 2E 00 6F 22 9B 4D 64 C4 DF 6A 90 00 B9 [21:42:49]RAPDU: 6F 22 9B 4D 64 C4 DF 6A 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 26 2E 80 11 00 00 00 00 00 00 CE [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 26 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 25 [21:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:42:49]wFMCommunicate OK [21:42:49]CreateOFDProtocolMessage done [21:42:49]OFDSenderStorePacket 117499 [21:42:49]StoreOFDPacket docnum=117499 [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 36 37 0F 01 00 00 7B 6B 07 01 E4 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C7 00 00 00 F4 03 04 00 DB B3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FB CA 01 00 35 04 06 00 ED BF F0 A1 67 BD 6F 22 9B 4D 64 C4 DF 6A [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/00117499 [21:42:49]NVStorageSaveData ofd_packets/00117499 [21:42:49]File name is /storage/ofd_packets/00117499 [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 27 2E 55 [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 27 2E 00 00 00 00 00 FF 0F 6A [21:42:49]RasterBufferAndPrint [21:42:49]line Счет N : (1)245275 [21:42:49]line ИНН: 02508201610067 [21:42:49]line Контрольно-Кассовый Чек [21:42:49]line ПРОДАЖА [21:42:49]line ТРК (МРК, ГНК) : 21 [21:42:49]line Товар: 2710124130 [21:42:49]line Аи-92-К-2 [21:42:49]line 2.990 * 66.90 [21:42:49]line = 200.03 [21:42:49]line НДС 12% НСП 1% [21:42:49]line > о реализуемом товаре [21:42:49]line ОКРУГЛЕНИЕ: -0.03 [21:42:49]line ИТОГО: 200.00 [21:42:49]line Внесено: 200.00 [21:42:49]line СДАЧА: 0.00 [21:42:49]line НСП 1% : 1.77 [21:42:49]line НДС 12% : 21.24 [21:42:49]line Наличными: 200.00 [21:42:49]line Безнал.: 0.00 [21:42:49]line Место: АЗС № 173 "Партнер Нефть" [21:42:49]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [21:42:49]line СНО: Общий режим [21:42:49]line Чек 199 27.10.2024 21:42 [21:42:49]line Смена: 542 ФФД: 1.0 [21:42:49]line ЗНМ: 0300000115 [21:42:49]line РНМ: 0000000000091782 [21:42:49]line Версия ККМ: 001 [21:42:49]line ФМ: 0000000000871767 [21:42:49]line ФД: 117499 [21:42:49]line ФПД: 261408631646141 [21:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214251&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117499&fm=261408631646141&tin=02508201610067®Number=0000000000091782&sum=20000 [21:42:49]written 0, free lines is 4095 [21:42:49]OFD Sender: Processing packet 117499 [packets to send 76, broken 75] [21:42:49]ProducePacketName [21:42:49]name=ofd_packets/00117499 [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]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 36 37 0F 01 00 00 7B 6B 07 01 E4 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C7 00 00 00 F4 03 04 00 DB B3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FB CA 01 00 35 04 06 00 ED BF F0 A1 67 BD 6F 22 9B 4D 64 C4 DF 6A [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 36 37 4F 00 00 00 54 F9 47 00 51 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 36 37 10 04 04 00 FB CA 01 00 F4 03 04 00 97 5F 1E 67 B6 04 01 00 00 6A 9C BE 23 AB D6 48 E9 [21:42:50]CommunicateWithHost err = 0 [21:42:50]CheckOFDResponse [21:42:50]1017 (14) - 77093643461234 [21:42:50]1041 (16) - 0000000000871767 [21:42:50]1040 (4) - 117499 [21:42:50]1012 (4) - 27.10.2024 15:43 [21:42:50]1206 (1) - 0 [21:42:50]OFD Sender: Remove packet 117499 [21:42:50]ProducePacketName [21:42:50]name=ofd_packets/00117499 [21:42:50]NVStorageDeleteData [21:42:50]Write to MH i2c: 01 00 00 51 2E 7F [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 51 2E 00 00 00 00 00 D5 0C 67 [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 3292 [21:42:50]MH_Cut [21:42:50]Write to MH i2c: D1 01 00 58 2E 01 58 [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 58 2E 00 57 [21:42:50]Write to MH i2c: 01 00 00 59 2E 87 [21:42:50]Write i2c OK [21:42:50]MH_I2C_Read... [21:42:50]OFD Sender: No OFD packet to send [21:42:50]*** Cut start [21:42:50]*** Purtial cut [21:42:50]*** 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 59 2E 00 00 00 00 00 FF 0F 9C [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 5A 2E 80 11 00 00 00 00 00 00 02 [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 5A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 59 [21:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 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 5B 2E 80 13 00 00 00 00 00 00 05 [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 5B 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FB CA 01 00 0E 04 04 00 1E 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 67 [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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FB CA 01 00 0E 04 04 00 1E 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 [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 5C 2E 80 13 01 00 00 00 00 00 07 [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 5C 2E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 46 [21:42:51]RAPDU: 09 00 01 2C 83 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":"0000000000871767","fd.num":117499,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [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":"0000000000871767","fd.num":117499,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [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:55]OFD Sender: No OFD packet to send [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:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]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:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]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:56]accept exits with 7 [22:19:56]New connection [22:19:56]New thread 3067456868 created [22:19:56]Thread 3067600228 joined [22:19:56]Waiting for new connection... [22:19:56] Sock 7.Parse request [22:19:56]Sock 7.Check first char [22:19:56]Sock 7.First char is OK [22:19:56]request: POST /json_proto HTTP/1.0 [22:19:56]Method: POST [22:19:56]URL: /json_proto [22:19:56]Method is POST - this is cgi request [22:19:56]url: /json_proto [22:19:56]query_string will be loaded in cgi processing [22:19:56]execute_cgi json_proto POST (null) [22:19:56]execute_cgi path=json_proto method=POST [22:19:56]POST find Content-Length [22:19:56]Host: 172.17.96.67:8080 [22:19:56]Content-Length: 677 [22:19:56]Content-Type: application/json [22:19:56] [22:19:56]POST finish read [22:19:56]Found Content-Length = 677 [22:19:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [22:19:56]execute_script... [22:19: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)245276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [22:19:56]POST & json_proto [22:19:56]process_json_proto [22:19:56]json parsed OK: [22:19:56]protocol is kg_v1.0 [22:19:56]action value=close_receipt [22:19:56]process_action close_receipt [22:19:56]cmd_close_receipt [22:19:56]MH_GetDate [22:19:56]Write to MH i2c: F0 00 00 5D 2E 7A [22:19:56]Write i2c OK [22:19:56]MH_I2C_Read... [22:19:56]Read from MH i2c: F0 [22:19:56]MH_I2C_Read... [22:19:56]Read from MH i2c: F0 09 00 [22:19:56]MH_I2C_Read... [22:19:56]Read from MH i2c: F0 09 00 5D 2E 00 90 BC 1E 67 2B 09 1E 67 0D [22:19:56]GetLastDocTimeStamp 1730065371 [22:19:56]current date 1730067600 [22:19:56]FM_GetShiftState [22:19:56]SAM_PROTO_GetShiftState [22:19:56]wFMCommunicate request_size=4 [22:19:56]MH_SAM_APDU [22:19:56]CAPDU: 80 13 01 00 [22:19:56]Write to MH i2c: E2 08 00 5E 2E 80 13 01 00 00 00 00 00 09 [22:19:56]Write i2c OK [22:19:56]MH_I2C_Read... [22:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:57]Read from MH i2c: E2 [22:19:57]MH_I2C_Read... [22:19:57]Read from MH i2c: E2 0E 00 [22:19:57]MH_I2C_Read... [22:19:57]Read from MH i2c: E2 0E 00 5E 2E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 48 [22:19:57]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:19:57]wFMCommunicate OK [22:19:57]SAM_PROTO_GetShiftState done [22:19:57]FM_GetShiftState done [22:19:57]opened in 1729987372 [22:19:57]opened+sec_in_day 1730073772 [22:19:57]quantity*price = 50041 [22:19:57]sum+1 = 50042 [22:19:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 200 27.10.2024 22:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117500 ФПД: 271243612560320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222000&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117500&fm=271243612560320&tin=02508201610067®Number=0000000000091782&sum=50000 [22:19:58]StoreToDocumentArchive [22:19:58]shift 542 fd 117500 [22:19:58]save to /storage/0542/doc_00117500 [22:19:58]save last doc name /storage/0542/doc_00117500 to /storage/kkm_last_doc_name [22:19:58]save OK [22:19:58]Clear old archive folders... [22:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:19:58]tlvbuf is 0173DFE0 [22:19:58]SAM_PROTO_ClearQueue [22:19:58]wFMCommunicate request_size=4 [22:19:58]MH_SAM_APDU [22:19:58]CAPDU: 80 09 00 00 [22:19:58]Write to MH i2c: E2 08 00 6B 2E 80 09 00 00 00 00 00 00 0B [22:19:58]Write i2c OK [22:19:58]MH_I2C_Read... [22:19:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:58]Read from MH i2c: E2 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 03 00 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 03 00 6B 2E 00 90 00 0D [22:19:58]RAPDU: 90 00 [22:19:58]wFMCommunicate OK [22:19:58]SAM_PROTO_ClearQueue done [22:19:58]KKMCreateOFDPacket [22:19:58]OFDProtocolAddRootSTLVToBuf [22:19:58]FM_MakeSignedData [22:19:58]FM_MakeSignedData [22:19:58]SAM_PROTO_SignData [22:19:58]wFMCommunicate request_size=4 [22:19:58]MH_SAM_APDU [22:19:58]CAPDU: 80 0D 01 02 [22:19:58]Write to MH i2c: E2 08 00 6C 2E 80 0D 01 02 00 00 00 00 13 [22:19:58]Write i2c OK [22:19:58]MH_I2C_Read... [22:19:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:58]Read from MH i2c: E2 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 03 00 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 03 00 6C 2E 00 90 00 0E [22:19:58]RAPDU: 90 00 [22:19:58]wFMCommunicate OK [22:19:58]wFMCommunicate request_size=255 [22:19:58]MH_SAM_APDU [22:19: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 90 BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FC CA 01 00 35 04 06 00 F6 [22:19:58]Write to MH i2c: E2 02 01 6D 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 C8 00 00 00 F4 03 04 00 90 BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FC CA 01 00 35 04 06 00 F6 00 00 1B [22:19:58]Write i2c OK [22:19:58]MH_I2C_Read... [22:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:58]Read from MH i2c: E2 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 03 00 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 03 00 6D 2E 00 90 00 0F [22:19:58]RAPDU: 90 00 [22:19:58]wFMCommunicate OK [22:19:58]wFMCommunicate request_size=10 [22:19:58]MH_SAM_APDU [22:19:58]CAPDU: 80 0D 02 02 05 B1 D3 2C 9B C0 [22:19:58]Write to MH i2c: E2 0D 00 6E 2E 80 0D 02 02 05 00 B1 D3 2C 9B C0 00 00 2B [22:19:58]Write i2c OK [22:19:58]MH_I2C_Read... [22:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:58]Read from MH i2c: E2 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 03 00 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 03 00 6E 2E 00 90 00 10 [22:19:58]RAPDU: 90 00 [22:19:58]wFMCommunicate OK [22:19:58]wFMCommunicate request_size=4 [22:19:58]MH_SAM_APDU [22:19:58]CAPDU: 80 0D 03 02 [22:19:58]Write to MH i2c: E2 08 00 6F 2E 80 0D 03 02 00 00 00 00 18 [22:19:58]Write i2c OK [22:19:58]MH_I2C_Read... [22:19:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:58]Read from MH i2c: E2 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 0B 00 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 0B 00 6F 2E 00 02 6F E4 0E 22 DC 3C 64 90 00 1A [22:19:58]RAPDU: 02 6F E4 0E 22 DC 3C 64 90 00 [22:19:58]wFMCommunicate OK [22:19:58]SAM_PROTO_SignData done [22:19:58]FM_MakeSignedData done [22:19:58]CreateOFDProtocolMessage [22:19:58]wFMCommunicate request_size=4 [22:19:58]MH_SAM_APDU [22:19:58]CAPDU: 80 11 00 00 [22:19:58]Write to MH i2c: E2 08 00 70 2E 80 11 00 00 00 00 00 00 18 [22:19:58]Write i2c OK [22:19:58]MH_I2C_Read... [22:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:58]Read from MH i2c: E2 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 17 00 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: E2 17 00 70 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6F [22:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:19:58]wFMCommunicate OK [22:19:58]CreateOFDProtocolMessage done [22:19:58]OFDSenderStorePacket 117500 [22:19:58]StoreOFDPacket docnum=117500 [22:19:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6B E4 07 01 CA 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 C8 00 00 00 F4 03 04 00 90 BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FC CA 01 00 35 04 06 00 F6 B1 D3 2C 9B C0 02 6F E4 0E 22 DC 3C 64 [22:19:58]CheckFolder [22:19:58]dirname=/storage/ofd_packets [22:19:58]CheckFolder done [22:19:58]ProducePacketName [22:19:58]name=ofd_packets/00117500 [22:19:58]NVStorageSaveData ofd_packets/00117500 [22:19:58]File name is /storage/ofd_packets/00117500 [22:19:58]Write 301 bytes [22:19:58]NVStorageSaveData done [22:19:58]OFDSenderStorePacket done [22:19:58]KKMCreateOFDPacket done [22:19:58]NVStorageSaveData kkm_last_timestamp [22:19:58]File name is /storage/kkm_last_timestamp [22:19:58]Write 4 bytes [22:19:58]NVStorageSaveData done [22:19:58]ExternCall_PrintAddStr [22:19:58]wPrintStart [22:19:58]Write to MH i2c: 01 00 00 71 2E 9F [22:19:58]Write i2c OK [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: 01 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: 01 07 00 [22:19:58]MH_I2C_Read... [22:19:58]Read from MH i2c: 01 07 00 71 2E 00 00 00 00 00 FF 0F B4 [22:19:58]RasterBufferAndPrint [22:19:58]line Счет N : (1)245276 [22:19:58]line ИНН: 02508201610067 [22:19:58]line Контрольно-Кассовый Чек [22:19:58]line ПРОДАЖА [22:19:58]line ТРК (МРК, ГНК) : 11 [22:19:58]line Товар: 2710124130 [22:19:58]line Аи-92-К-2 [22:19:58]line 7.480 * 66.90 [22:19:58]line = 500.41 [22:19:58]line НДС 12% НСП 1% [22:19:58]line > о реализуемом товаре [22:19:58]line ОКРУГЛЕНИЕ: -0.41 [22:19:58]line ИТОГО: 500.00 [22:19:58]line Внесено: 500.00 [22:19:58]line СДАЧА: 0.00 [22:19:58]line НСП 1% : 4.43 [22:19:58]line НДС 12% : 53.14 [22:19:58]line Наличными: 500.00 [22:19:58]line Безнал.: 0.00 [22:19:58]line Место: АЗС № 173 "Партнер Нефть" [22:19:58]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:19:58]line СНО: Общий режим [22:19:58]line Чек 200 27.10.2024 22:20 [22:19:58]line Смена: 542 ФФД: 1.0 [22:19:58]line ЗНМ: 0300000115 [22:19:58]line РНМ: 0000000000091782 [22:19:58]line Версия ККМ: 001 [22:19:58]line ФМ: 0000000000871767 [22:19:58]line ФД: 117500 [22:19:58]line ФПД: 271243612560320 [22:19:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222000&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117500&fm=271243612560320&tin=02508201610067®Number=0000000000091782&sum=50000 [22:19:59]written 0, free lines is 4095 [22:19:59]OFD Sender: Processing packet 117500 [packets to send 76, broken 75] [22:19:59]ProducePacketName [22:19:59]name=ofd_packets/00117500 [22:19:59]OFD Sender: To server: pG, [22:19:59]CommunicateWithHost lk.salyk.kg:30040 [22:19:59]ConnectInit lk.salyk.kg [22:19:59]Connected sock=10 [22:19: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 36 37 0F 01 00 00 6B E4 07 01 CA 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 C8 00 00 00 F4 03 04 00 90 BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FC CA 01 00 35 04 06 00 F6 B1 D3 2C 9B C0 02 6F E4 0E 22 DC 3C 64 [22:19: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 36 37 4F 00 00 00 81 0B 47 00 4A 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 36 37 10 04 04 00 FC CA 01 00 F4 03 04 00 4C 68 1E 67 B6 04 01 00 00 C1 64 44 98 E3 EB F7 F0 [22:19:59]CommunicateWithHost err = 0 [22:19:59]CheckOFDResponse [22:19:59]1017 (14) - 77093643461234 [22:19:59]1041 (16) - 0000000000871767 [22:19:59]1040 (4) - 117500 [22:19:59]1012 (4) - 27.10.2024 16:20 [22:19:59]1206 (1) - 0 [22:19:59]OFD Sender: Remove packet 117500 [22:19:59]ProducePacketName [22:19:59]name=ofd_packets/00117500 [22:19:59]NVStorageDeleteData [22:19:59]Write to MH i2c: 01 00 00 9B 2E C9 [22:19:59]Write i2c OK [22:19:59]MH_I2C_Read... [22:19:59]Read from MH i2c: 01 [22:19:59]MH_I2C_Read... [22:19:59]Read from MH i2c: 01 07 00 [22:19:59]MH_I2C_Read... [22:19:59]Read from MH i2c: 01 07 00 9B 2E 00 00 00 00 00 B5 0C 91 [22:19:59]RasterBufferAndPrint [22:19:59]line [22:19:59]line [22:19:59]line [22:19:59]line [22:19:59]line [22:19:59]written 0, free lines is 3259 [22:19:59]MH_Cut [22:19:59]Write to MH i2c: D1 01 00 A2 2E 01 A2 [22:19:59]Write i2c OK [22:19:59]MH_I2C_Read... [22:19:59]Read from MH i2c: D1 [22:19:59]MH_I2C_Read... [22:19:59]Read from MH i2c: D1 01 00 [22:19:59]MH_I2C_Read... [22:19:59]Read from MH i2c: D1 01 00 A2 2E 00 A1 [22:19:59]Write to MH i2c: 01 00 00 A3 2E D1 [22:19:59]Write i2c OK [22:19:59]MH_I2C_Read... [22:19:59]OFD Sender: No OFD packet to send [22:20:00]*** Cut start [22:20:00]*** Purtial cut [22:20:00]*** Stage 1: CUTSNS_PIN = 1 [22:20:00]Read from MH i2c: 01 [22:20:00]MH_I2C_Read... [22:20:00]*** Stop cut motor [22:20:00]*** Cut end [22:20:00]Read from MH i2c: 01 07 00 [22:20:00]MH_I2C_Read... [22:20:00]Read from MH i2c: 01 07 00 A3 2E 00 00 00 00 00 FF 0F E6 [22:20:00]process_action close_receipt done [22:20:00]requested_data is exist [22:20:00]produce_requested_data [22:20:00]requested_item fm.sn is exist - process it [22:20:00]wFMCommunicate request_size=4 [22:20:00]MH_SAM_APDU [22:20:00]CAPDU: 80 11 00 00 [22:20:00]Write to MH i2c: E2 08 00 A4 2E 80 11 00 00 00 00 00 00 4C [22:20:00]Write i2c OK [22:20:00]MH_I2C_Read... [22:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:00]Read from MH i2c: E2 [22:20:00]MH_I2C_Read... [22:20:00]Read from MH i2c: E2 17 00 [22:20:00]MH_I2C_Read... [22:20:00]Read from MH i2c: E2 17 00 A4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A3 [22:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:20:00]wFMCommunicate OK [22:20:00]requested_item fd.num is exist - process it [22:20:00]SAM_PROTO_GetFieldsCounters [22:20:00]wFMCommunicate request_size=4 [22:20:00]MH_SAM_APDU [22:20:00]CAPDU: 80 13 00 00 [22:20:00]Write to MH i2c: E2 08 00 A5 2E 80 13 00 00 00 00 00 00 4F [22:20:00]Write i2c OK [22:20:00]MH_I2C_Read... [22:20:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:00]Read from MH i2c: E2 [22:20:00]MH_I2C_Read... [22:20:00]Read from MH i2c: E2 62 00 [22:20:00]MH_I2C_Read... [22:20:00]Read from MH i2c: E2 62 00 A5 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FC CA 01 00 0E 04 04 00 1E 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 B5 [22:20:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FC CA 01 00 0E 04 04 00 1E 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 [22:20:00]wFMCommunicate OK [22:20:00]SAM_PROTO_GetFieldsCounters done [22:20:00]requested_item shift.num is exist - process it [22:20:00]requested_item shift.opened is exist - process it [22:20:00]req_shift_opened [22:20:00]FM_GetShiftState [22:20:00]SAM_PROTO_GetShiftState [22:20:00]wFMCommunicate request_size=4 [22:20:00]MH_SAM_APDU [22:20:00]CAPDU: 80 13 01 00 [22:20:00]Write to MH i2c: E2 08 00 A6 2E 80 13 01 00 00 00 00 00 51 [22:20:00]Write i2c OK [22:20:00]MH_I2C_Read... [22:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:00]Read from MH i2c: E2 [22:20:00]MH_I2C_Read... [22:20:00]Read from MH i2c: E2 0E 00 [22:20:00]MH_I2C_Read... [22:20:00]Read from MH i2c: E2 0E 00 A6 2E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 90 [22:20:00]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:20:00]wFMCommunicate OK [22:20:00]SAM_PROTO_GetShiftState done [22:20:00]FM_GetShiftState done [22:20:00]req_shift_opened done [22:20:00]requested_item shift.open_date is exist - process it [22:20:00]req_shift_open_date [22:20:00]req_shift_open_date done [22:20:00]produce_requested_data done [22:20:00]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117500,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [22:20:00]process_action_free close_receipt [22:20:00]json_value_free [22:20:00]json_value_free done [22:20:00]process_json_proto returns [22:20:00]Send response to host [22:20:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117500,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [22:20:00]free response buf [22:20:00]execute_script done [22:20:00]execute_script returns [22:20:00]free content buf [22:20:00]Sock 7.Close socket [22:20:00]Sock 7.Thread stoped [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:23]accept exits with 9 [22:20:23]New connection [22:20:23]New thread 3067600228 created [22:20:23]Thread 3067456868 joined [22:20:23]Waiting for new connection... [22:20:23] Sock 9.Parse request [22:20:23]Sock 9.Check first char [22:20:23]Sock 9.First char is OK [22:20:23]request: POST /json_proto HTTP/1.0 [22:20:23]Method: POST [22:20:23]URL: /json_proto [22:20:23]Method is POST - this is cgi request [22:20:23]url: /json_proto [22:20:23]query_string will be loaded in cgi processing [22:20:23]execute_cgi json_proto POST (null) [22:20:23]execute_cgi path=json_proto method=POST [22:20:23]POST find Content-Length [22:20:23]Host: 172.17.96.67:8080 [22:20:23]Content-Length: 682 [22:20:23]Content-Type: application/json [22:20:23] [22:20:23]POST finish read [22:20:23]Found Content-Length = 682 [22:20:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:20:23]execute_script... [22:20:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:20:23]POST & json_proto [22:20:23]process_json_proto [22:20:23]json parsed OK: [22:20:23]protocol is kg_v1.0 [22:20:23]action value=close_receipt [22:20:23]process_action close_receipt [22:20:23]cmd_close_receipt [22:20:23]MH_GetDate [22:20:23]Write to MH i2c: F0 00 00 A7 2E C4 [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: F0 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: F0 09 00 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: F0 09 00 A7 2E 00 AB BC 1E 67 2B 09 1E 67 72 [22:20:23]GetLastDocTimeStamp 1730067600 [22:20:23]current date 1730067627 [22:20:23]FM_GetShiftState [22:20:23]SAM_PROTO_GetShiftState [22:20:23]wFMCommunicate request_size=4 [22:20:23]MH_SAM_APDU [22:20:23]CAPDU: 80 13 01 00 [22:20:23]Write to MH i2c: E2 08 00 A8 2E 80 13 01 00 00 00 00 00 53 [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:23]Read from MH i2c: E2 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 0E 00 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 0E 00 A8 2E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 92 [22:20:23]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:20:23]wFMCommunicate OK [22:20:23]SAM_PROTO_GetShiftState done [22:20:23]FM_GetShiftState done [22:20:23]opened in 1729987372 [22:20:23]opened+sec_in_day 1730073772 [22:20:23]quantity*price = 100015 [22:20:23]sum+1 = 100017 [22:20:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 201 27.10.2024 22:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117501 ФПД: 153403964331189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222027&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117501&fm=153403964331189&tin=02508201610067®Number=0000000000091782&sum=100000 [22:20:24]StoreToDocumentArchive [22:20:24]shift 542 fd 117501 [22:20:24]save to /storage/0542/doc_00117501 [22:20:24]save last doc name /storage/0542/doc_00117501 to /storage/kkm_last_doc_name [22:20:24]save OK [22:20:24]Clear old archive folders... [22:20:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:20:24]tlvbuf is 016FA470 [22:20:24]SAM_PROTO_ClearQueue [22:20:24]wFMCommunicate request_size=4 [22:20:24]MH_SAM_APDU [22:20:24]CAPDU: 80 09 00 00 [22:20:24]Write to MH i2c: E2 08 00 B5 2E 80 09 00 00 00 00 00 00 55 [22:20:24]Write i2c OK [22:20:24]MH_I2C_Read... [22:20:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:24]Read from MH i2c: E2 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: E2 03 00 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: E2 03 00 B5 2E 00 90 00 57 [22:20:24]RAPDU: 90 00 [22:20:24]wFMCommunicate OK [22:20:24]SAM_PROTO_ClearQueue done [22:20:24]KKMCreateOFDPacket [22:20:24]OFDProtocolAddRootSTLVToBuf [22:20:24]FM_MakeSignedData [22:20:24]FM_MakeSignedData [22:20:24]SAM_PROTO_SignData [22:20:24]wFMCommunicate request_size=4 [22:20:24]MH_SAM_APDU [22:20:24]CAPDU: 80 0D 01 02 [22:20:24]Write to MH i2c: E2 08 00 B6 2E 80 0D 01 02 00 00 00 00 5D [22:20:24]Write i2c OK [22:20:24]MH_I2C_Read... [22:20:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:24]OFD Sender: No OFD packet to send [22:20:24]Read from MH i2c: E2 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: E2 03 00 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: E2 03 00 B6 2E 00 90 00 58 [22:20:24]RAPDU: 90 00 [22:20:24]wFMCommunicate OK [22:20:24]wFMCommunicate request_size=255 [22:20:24]MH_SAM_APDU [22:20: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 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 C9 00 00 00 F4 03 04 00 AB BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FD CA 01 00 35 04 06 00 8B [22:20:24]Write to MH i2c: E2 02 01 B7 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 C9 00 00 00 F4 03 04 00 AB BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FD CA 01 00 35 04 06 00 8B 00 00 11 [22:20:24]Write i2c OK [22:20:24]MH_I2C_Read... [22:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:25]Read from MH i2c: E2 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 03 00 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 03 00 B7 2E 00 90 00 59 [22:20:25]RAPDU: 90 00 [22:20:25]wFMCommunicate OK [22:20:25]wFMCommunicate request_size=10 [22:20:25]MH_SAM_APDU [22:20:25]CAPDU: 80 0D 02 02 05 85 24 CD 14 B5 [22:20:25]Write to MH i2c: E2 0D 00 B8 2E 80 0D 02 02 05 00 85 24 CD 14 B5 00 00 A9 [22:20:25]Write i2c OK [22:20:25]MH_I2C_Read... [22:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:25]Read from MH i2c: E2 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 03 00 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 03 00 B8 2E 00 90 00 5A [22:20:25]RAPDU: 90 00 [22:20:25]wFMCommunicate OK [22:20:25]wFMCommunicate request_size=4 [22:20:25]MH_SAM_APDU [22:20:25]CAPDU: 80 0D 03 02 [22:20:25]Write to MH i2c: E2 08 00 B9 2E 80 0D 03 02 00 00 00 00 62 [22:20:25]Write i2c OK [22:20:25]MH_I2C_Read... [22:20:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:25]Read from MH i2c: E2 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 0B 00 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 0B 00 B9 2E 00 ED 8A 54 3C 23 16 44 73 90 00 5A [22:20:25]RAPDU: ED 8A 54 3C 23 16 44 73 90 00 [22:20:25]wFMCommunicate OK [22:20:25]SAM_PROTO_SignData done [22:20:25]FM_MakeSignedData done [22:20:25]CreateOFDProtocolMessage [22:20:25]wFMCommunicate request_size=4 [22:20:25]MH_SAM_APDU [22:20:25]CAPDU: 80 11 00 00 [22:20:25]Write to MH i2c: E2 08 00 BA 2E 80 11 00 00 00 00 00 00 62 [22:20:25]Write i2c OK [22:20:25]MH_I2C_Read... [22:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:25]Read from MH i2c: E2 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 17 00 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 17 00 BA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B9 [22:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:20:25]wFMCommunicate OK [22:20:25]CreateOFDProtocolMessage done [22:20:25]OFDSenderStorePacket 117501 [22:20:25]StoreOFDPacket docnum=117501 [22:20:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 1B EA 07 01 1B 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 C9 00 00 00 F4 03 04 00 AB BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FD CA 01 00 35 04 06 00 8B 85 24 CD 14 B5 ED 8A 54 3C 23 16 44 73 [22:20:25]CheckFolder [22:20:25]dirname=/storage/ofd_packets [22:20:25]CheckFolder done [22:20:25]ProducePacketName [22:20:25]name=ofd_packets/00117501 [22:20:25]NVStorageSaveData ofd_packets/00117501 [22:20:25]File name is /storage/ofd_packets/00117501 [22:20:25]Write 301 bytes [22:20:25]NVStorageSaveData done [22:20:25]OFDSenderStorePacket done [22:20:25]KKMCreateOFDPacket done [22:20:25]NVStorageSaveData kkm_last_timestamp [22:20:25]File name is /storage/kkm_last_timestamp [22:20:25]Write 4 bytes [22:20:25]NVStorageSaveData done [22:20:25]ExternCall_PrintAddStr [22:20:25]wPrintStart [22:20:25]Write to MH i2c: 01 00 00 BB 2E E9 [22:20:25]Write i2c OK [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: 01 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: 01 07 00 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: 01 07 00 BB 2E 00 00 00 00 00 FF 0F FE [22:20:25]RasterBufferAndPrint [22:20:25]line Счет N : (1)245277 [22:20:25]line ИНН: 02508201610067 [22:20:25]line Контрольно-Кассовый Чек [22:20:25]line ПРОДАЖА [22:20:25]line ТРК (МРК, ГНК) : 21 [22:20:25]line Товар: 2710124130 [22:20:25]line Аи-92-К-2 [22:20:25]line 14.950 * 66.90 [22:20:25]line = 1000.16 [22:20:25]line НДС 12% НСП 1% [22:20:25]line > о реализуемом товаре [22:20:25]line ОКРУГЛЕНИЕ: -0.16 [22:20:25]line ИТОГО: 1000.00 [22:20:25]line Внесено: 1000.00 [22:20:25]line СДАЧА: 0.00 [22:20:25]line НСП 1% : 8.85 [22:20:25]line НДС 12% : 106.21 [22:20:25]line Наличными: 1000.00 [22:20:25]line Безнал.: 0.00 [22:20:25]line Место: АЗС № 173 "Партнер Нефть" [22:20:25]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:20:25]line СНО: Общий режим [22:20:25]line Чек 201 27.10.2024 22:20 [22:20:25]line Смена: 542 ФФД: 1.0 [22:20:25]line ЗНМ: 0300000115 [22:20:25]line РНМ: 0000000000091782 [22:20:25]line Версия ККМ: 001 [22:20:25]line ФМ: 0000000000871767 [22:20:25]line ФД: 117501 [22:20:25]line ФПД: 153403964331189 [22:20:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222027&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117501&fm=153403964331189&tin=02508201610067®Number=0000000000091782&sum=100000 [22:20:25]OFD Sender: Processing packet 117501 [packets to send 76, broken 75] [22:20:25]ProducePacketName [22:20:25]name=ofd_packets/00117501 [22:20:25]OFD Sender: To server: pG, [22:20:25]CommunicateWithHost lk.salyk.kg:30040 [22:20:25]ConnectInit lk.salyk.kg [22:20:25]written 0, free lines is 4095 [22:20:25]Connected sock=10 [22:20:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 1B EA 07 01 1B 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 C9 00 00 00 F4 03 04 00 AB BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FD CA 01 00 35 04 06 00 8B 85 24 CD 14 B5 ED 8A 54 3C 23 16 44 73 [22:20: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 36 37 4F 00 00 00 A2 A9 47 00 ED 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 36 37 10 04 04 00 FD CA 01 00 F4 03 04 00 67 68 1E 67 B6 04 01 00 00 03 12 0D CF E7 B8 3B E7 [22:20:26]CommunicateWithHost err = 0 [22:20:26]CheckOFDResponse [22:20:26]1017 (14) - 77093643461234 [22:20:26]1041 (16) - 0000000000871767 [22:20:26]1040 (4) - 117501 [22:20:26]1012 (4) - 27.10.2024 16:20 [22:20:26]1206 (1) - 0 [22:20:26]OFD Sender: Remove packet 117501 [22:20:26]ProducePacketName [22:20:26]name=ofd_packets/00117501 [22:20:26]NVStorageDeleteData [22:20:26]Write to MH i2c: 01 00 00 E5 2E 13 [22:20:26]Write i2c OK [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: 01 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: 01 07 00 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: 01 07 00 E5 2E 00 00 00 00 00 B9 0C DF [22:20:26]RasterBufferAndPrint [22:20:26]line [22:20:26]line [22:20:26]line [22:20:26]line [22:20:26]line [22:20:26]written 0, free lines is 3265 [22:20:26]MH_Cut [22:20:26]Write to MH i2c: D1 01 00 EC 2E 01 EC [22:20:26]Write i2c OK [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: D1 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: D1 01 00 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: D1 01 00 EC 2E 00 EB [22:20:26]Write to MH i2c: 01 00 00 ED 2E 1B [22:20:26]Write i2c OK [22:20:26]MH_I2C_Read... [22:20:26]OFD Sender: No OFD packet to send [22:20:26]*** Cut start [22:20:26]*** Purtial cut [22:20:26]*** Stage 1: CUTSNS_PIN = 1 [22:20:27]Read from MH i2c: 01 [22:20:27]MH_I2C_Read... [22:20:27]*** Stop cut motor [22:20:27]*** Cut end [22:20:27]Read from MH i2c: 01 07 00 [22:20:27]MH_I2C_Read... [22:20:27]Read from MH i2c: 01 07 00 ED 2E 00 00 00 00 00 FF 0F 30 [22:20:27]process_action close_receipt done [22:20:27]requested_data is exist [22:20:27]produce_requested_data [22:20:27]requested_item fm.sn is exist - process it [22:20:27]wFMCommunicate request_size=4 [22:20:27]MH_SAM_APDU [22:20:27]CAPDU: 80 11 00 00 [22:20:27]Write to MH i2c: E2 08 00 EE 2E 80 11 00 00 00 00 00 00 96 [22:20:27]Write i2c OK [22:20:27]MH_I2C_Read... [22:20:27]Read from MH i2c: E2 [22:20:27]MH_I2C_Read... [22:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:27]Read from MH i2c: E2 17 00 [22:20:27]MH_I2C_Read... [22:20:27]Read from MH i2c: E2 17 00 EE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 ED [22:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:20:27]wFMCommunicate OK [22:20:27]requested_item fd.num is exist - process it [22:20:27]SAM_PROTO_GetFieldsCounters [22:20:27]wFMCommunicate request_size=4 [22:20:27]MH_SAM_APDU [22:20:27]CAPDU: 80 13 00 00 [22:20:27]Write to MH i2c: E2 08 00 EF 2E 80 13 00 00 00 00 00 00 99 [22:20:27]Write i2c OK [22:20:27]MH_I2C_Read... [22:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:27]Read from MH i2c: E2 [22:20:27]MH_I2C_Read... [22:20:27]Read from MH i2c: E2 62 00 [22:20:27]MH_I2C_Read... [22:20:27]Read from MH i2c: E2 62 00 EF 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FD CA 01 00 0E 04 04 00 1E 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 03 [22:20:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FD CA 01 00 0E 04 04 00 1E 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 [22:20:27]wFMCommunicate OK [22:20:27]SAM_PROTO_GetFieldsCounters done [22:20:27]requested_item shift.num is exist - process it [22:20:27]requested_item shift.opened is exist - process it [22:20:27]req_shift_opened [22:20:27]FM_GetShiftState [22:20:27]SAM_PROTO_GetShiftState [22:20:27]wFMCommunicate request_size=4 [22:20:27]MH_SAM_APDU [22:20:27]CAPDU: 80 13 01 00 [22:20:27]Write to MH i2c: E2 08 00 F0 2E 80 13 01 00 00 00 00 00 9B [22:20:27]Write i2c OK [22:20:27]MH_I2C_Read... [22:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:27]Read from MH i2c: E2 [22:20:27]MH_I2C_Read... [22:20:27]Read from MH i2c: E2 0E 00 [22:20:27]MH_I2C_Read... [22:20:27]Read from MH i2c: E2 0E 00 F0 2E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 DA [22:20:27]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:20:27]wFMCommunicate OK [22:20:27]SAM_PROTO_GetShiftState done [22:20:27]FM_GetShiftState done [22:20:27]req_shift_opened done [22:20:27]requested_item shift.open_date is exist - process it [22:20:27]req_shift_open_date [22:20:27]req_shift_open_date done [22:20:27]produce_requested_data done [22:20:27]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117501,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [22:20:27]process_action_free close_receipt [22:20:27]json_value_free [22:20:27]json_value_free done [22:20:27]process_json_proto returns [22:20:27]Send response to host [22:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117501,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [22:20:27]free response buf [22:20:27]execute_script done [22:20:27]execute_script returns [22:20:27]free content buf [22:20:27]Sock 9.Close socket [22:20:27]Sock 9.Thread stoped [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]accept exits with 7 [22:22:21]New connection [22:22:21]New thread 3067456868 created [22:22:21]Thread 3067600228 joined [22:22:21]Waiting for new connection... [22:22:21] Sock 7.Parse request [22:22:21]Sock 7.Check first char [22:22:21]Sock 7.First char is OK [22:22:21]request: POST /json_proto HTTP/1.0 [22:22:21]Method: POST [22:22:21]URL: /json_proto [22:22:21]Method is POST - this is cgi request [22:22:21]url: /json_proto [22:22:21]query_string will be loaded in cgi processing [22:22:21]execute_cgi json_proto POST (null) [22:22:21]execute_cgi path=json_proto method=POST [22:22:21]POST find Content-Length [22:22:21]Host: 172.17.96.67:8080 [22:22:21]Content-Length: 677 [22:22:21]Content-Type: application/json [22:22:21] [22:22:21]POST finish read [22:22:21]Found Content-Length = 677 [22:22:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [22:22:21]execute_script... [22:22: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)245278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [22:22:21]POST & json_proto [22:22:21]process_json_proto [22:22:21]json parsed OK: [22:22:21]protocol is kg_v1.0 [22:22:21]action value=close_receipt [22:22:21]process_action close_receipt [22:22:21]cmd_close_receipt [22:22:21]MH_GetDate [22:22:21]Write to MH i2c: F0 00 00 F1 2E 0E [22:22:21]Write i2c OK [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: F0 [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: F0 09 00 [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: F0 09 00 F1 2E 00 21 BD 1E 67 2B 09 1E 67 33 [22:22:21]GetLastDocTimeStamp 1730067627 [22:22:21]current date 1730067745 [22:22:21]FM_GetShiftState [22:22:21]SAM_PROTO_GetShiftState [22:22:21]wFMCommunicate request_size=4 [22:22:21]MH_SAM_APDU [22:22:21]CAPDU: 80 13 01 00 [22:22:21]Write to MH i2c: E2 08 00 F2 2E 80 13 01 00 00 00 00 00 9D [22:22:21]Write i2c OK [22:22:21]MH_I2C_Read... [22:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:21]Read from MH i2c: E2 [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: E2 0E 00 [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: E2 0E 00 F2 2E 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 DC [22:22:21]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:22:21]wFMCommunicate OK [22:22:21]SAM_PROTO_GetShiftState done [22:22:21]FM_GetShiftState done [22:22:21]opened in 1729987372 [22:22:21]opened+sec_in_day 1730073772 [22:22:21]quantity*price = 30038 [22:22:21]sum+1 = 30039 [22:22: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 202 27.10.2024 22:22 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117502 ФПД: 92064230519983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222225&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117502&fm=92064230519983&tin=02508201610067®Number=0000000000091782&sum=30000 [22:22:22]StoreToDocumentArchive [22:22:22]shift 542 fd 117502 [22:22:22]save to /storage/0542/doc_00117502 [22:22:22]save last doc name /storage/0542/doc_00117502 to /storage/kkm_last_doc_name [22:22:22]save OK [22:22:22]Clear old archive folders... [22:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:22:22]tlvbuf is B6E46010 [22:22:22]SAM_PROTO_ClearQueue [22:22:22]wFMCommunicate request_size=4 [22:22:22]MH_SAM_APDU [22:22:22]CAPDU: 80 09 00 00 [22:22:22]Write to MH i2c: E2 08 00 FF 2E 80 09 00 00 00 00 00 00 9F [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:22]Read from MH i2c: E2 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 FF 2E 00 90 00 A1 [22:22:22]RAPDU: 90 00 [22:22:22]wFMCommunicate OK [22:22:22]SAM_PROTO_ClearQueue done [22:22:22]KKMCreateOFDPacket [22:22:22]OFDProtocolAddRootSTLVToBuf [22:22:22]FM_MakeSignedData [22:22:22]FM_MakeSignedData [22:22:22]SAM_PROTO_SignData [22:22:22]wFMCommunicate request_size=4 [22:22:22]MH_SAM_APDU [22:22:22]CAPDU: 80 0D 01 02 [22:22:22]Write to MH i2c: E2 08 00 00 2F 80 0D 01 02 00 00 00 00 A8 [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:22]Read from MH i2c: E2 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 00 2F 00 90 00 A3 [22:22:22]RAPDU: 90 00 [22:22:22]wFMCommunicate OK [22:22:22]wFMCommunicate request_size=255 [22:22:22]MH_SAM_APDU [22:22: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 CA 00 00 00 F4 03 04 00 21 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FE CA 01 00 35 04 06 00 53 [22:22:22]Write to MH i2c: E2 02 01 01 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 CA 00 00 00 F4 03 04 00 21 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FE CA 01 00 35 04 06 00 53 00 00 97 [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:22]Read from MH i2c: E2 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 01 2F 00 90 00 A4 [22:22:22]RAPDU: 90 00 [22:22:22]wFMCommunicate OK [22:22:22]wFMCommunicate request_size=10 [22:22:22]MH_SAM_APDU [22:22:22]CAPDU: 80 0D 02 02 05 BB 5F C1 B4 AF [22:22:22]Write to MH i2c: E2 0D 00 02 2F 80 0D 02 02 05 00 BB 5F C1 B4 AF 00 00 F3 [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:23]Read from MH i2c: E2 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: E2 03 00 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: E2 03 00 02 2F 00 90 00 A5 [22:22:23]RAPDU: 90 00 [22:22:23]wFMCommunicate OK [22:22:23]wFMCommunicate request_size=4 [22:22:23]MH_SAM_APDU [22:22:23]CAPDU: 80 0D 03 02 [22:22:23]Write to MH i2c: E2 08 00 03 2F 80 0D 03 02 00 00 00 00 AD [22:22:23]Write i2c OK [22:22:23]MH_I2C_Read... [22:22:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:23]Read from MH i2c: E2 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: E2 0B 00 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: E2 0B 00 03 2F 00 12 D6 CA D7 00 5C 50 2C 90 00 0F [22:22:23]RAPDU: 12 D6 CA D7 00 5C 50 2C 90 00 [22:22:23]wFMCommunicate OK [22:22:23]SAM_PROTO_SignData done [22:22:23]FM_MakeSignedData done [22:22:23]CreateOFDProtocolMessage [22:22:23]wFMCommunicate request_size=4 [22:22:23]MH_SAM_APDU [22:22:23]CAPDU: 80 11 00 00 [22:22:23]Write to MH i2c: E2 08 00 04 2F 80 11 00 00 00 00 00 00 AD [22:22:23]Write i2c OK [22:22:23]MH_I2C_Read... [22:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:23]Read from MH i2c: E2 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: E2 17 00 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: E2 17 00 04 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 04 [22:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:22:23]wFMCommunicate OK [22:22:23]CreateOFDProtocolMessage done [22:22:23]OFDSenderStorePacket 117502 [22:22:23]StoreOFDPacket docnum=117502 [22:22:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E6 39 07 01 39 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 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 CA 00 00 00 F4 03 04 00 21 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FE CA 01 00 35 04 06 00 53 BB 5F C1 B4 AF 12 D6 CA D7 00 5C 50 2C [22:22:23]CheckFolder [22:22:23]dirname=/storage/ofd_packets [22:22:23]CheckFolder done [22:22:23]ProducePacketName [22:22:23]name=ofd_packets/00117502 [22:22:23]NVStorageSaveData ofd_packets/00117502 [22:22:23]File name is /storage/ofd_packets/00117502 [22:22:23]Write 301 bytes [22:22:23]NVStorageSaveData done [22:22:23]OFDSenderStorePacket done [22:22:23]KKMCreateOFDPacket done [22:22:23]NVStorageSaveData kkm_last_timestamp [22:22:23]File name is /storage/kkm_last_timestamp [22:22:23]Write 4 bytes [22:22:23]NVStorageSaveData done [22:22:23]ExternCall_PrintAddStr [22:22:23]wPrintStart [22:22:23]Write to MH i2c: 01 00 00 05 2F 34 [22:22:23]Write i2c OK [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: 01 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: 01 07 00 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: 01 07 00 05 2F 00 00 00 00 00 FF 0F 49 [22:22:23]RasterBufferAndPrint [22:22:23]line Счет N : (1)245278 [22:22:23]line ИНН: 02508201610067 [22:22:23]line Контрольно-Кассовый Чек [22:22:23]line ПРОДАЖА [22:22:23]line ТРК (МРК, ГНК) : 11 [22:22:23]line Товар: 2710124130 [22:22:23]line Аи-92-К-2 [22:22:23]line 4.490 * 66.90 [22:22:23]line = 300.38 [22:22:23]line НДС 12% НСП 1% [22:22:23]line > о реализуемом товаре [22:22:23]line ОКРУГЛЕНИЕ: -0.38 [22:22:23]line ИТОГО: 300.00 [22:22:23]line Внесено: 300.00 [22:22:23]line СДАЧА: 0.00 [22:22:23]line НСП 1% : 2.66 [22:22:23]line НДС 12% : 31.90 [22:22:23]line Наличными: 300.00 [22:22:23]line Безнал.: 0.00 [22:22:23]line Место: АЗС № 173 "Партнер Нефть" [22:22:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:22:23]line СНО: Общий режим [22:22:23]line Чек 202 27.10.2024 22:22 [22:22:23]line Смена: 542 ФФД: 1.0 [22:22:23]line ЗНМ: 0300000115 [22:22:23]line РНМ: 0000000000091782 [22:22:23]line Версия ККМ: 001 [22:22:23]line ФМ: 0000000000871767 [22:22:23]line ФД: 117502 [22:22:23]line ФПД: 92064230519983 [22:22:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222225&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117502&fm=92064230519983&tin=02508201610067®Number=0000000000091782&sum=30000 [22:22:23]written 0, free lines is 4095 [22:22:23]OFD Sender: Processing packet 117502 [packets to send 76, broken 75] [22:22:23]ProducePacketName [22:22:23]name=ofd_packets/00117502 [22:22:23]OFD Sender: To server: pG, [22:22:23]CommunicateWithHost lk.salyk.kg:30040 [22:22:23]ConnectInit lk.salyk.kg [22:22:23]Connected sock=10 [22:22: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 36 37 0F 01 00 00 E6 39 07 01 39 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 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 CA 00 00 00 F4 03 04 00 21 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FE CA 01 00 35 04 06 00 53 BB 5F C1 B4 AF 12 D6 CA D7 00 5C 50 2C [22:22: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 36 37 4F 00 00 00 63 9B 47 00 1D 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 36 37 10 04 04 00 FE CA 01 00 F4 03 04 00 DD 68 1E 67 B6 04 01 00 00 B9 C6 1D 46 B9 A3 D7 52 [22:22:23]CommunicateWithHost err = 0 [22:22:23]CheckOFDResponse [22:22:23]1017 (14) - 77093643461234 [22:22:23]1041 (16) - 0000000000871767 [22:22:23]1040 (4) - 117502 [22:22:23]1012 (4) - 27.10.2024 16:22 [22:22:23]1206 (1) - 0 [22:22:23]OFD Sender: Remove packet 117502 [22:22:23]ProducePacketName [22:22:23]name=ofd_packets/00117502 [22:22:23]NVStorageDeleteData [22:22:23]Write to MH i2c: 01 00 00 2F 2F 5E [22:22:23]Write i2c OK [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: 01 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: 01 07 00 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: 01 07 00 2F 2F 00 00 00 00 00 BB 0C 2C [22:22:23]RasterBufferAndPrint [22:22:23]line [22:22:23]line [22:22:23]line [22:22:23]line [22:22:23]line [22:22:23]written 0, free lines is 3265 [22:22:23]MH_Cut [22:22:23]Write to MH i2c: D1 01 00 36 2F 01 37 [22:22:23]Write i2c OK [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: D1 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: D1 01 00 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: D1 01 00 36 2F 00 36 [22:22:23]Write to MH i2c: 01 00 00 37 2F 66 [22:22:23]Write i2c OK [22:22:23]MH_I2C_Read... [22:22:24]OFD Sender: No OFD packet to send [22:22:24]*** Cut start [22:22:24]*** Purtial cut [22:22:24]*** Stage 1: CUTSNS_PIN = 1 [22:22:25]Read from MH i2c: 01 [22:22:25]MH_I2C_Read... [22:22:25]*** Stop cut motor [22:22:25]*** Cut end [22:22:25]Read from MH i2c: 01 07 00 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: 01 07 00 37 2F 00 00 00 00 00 FF 0F 7B [22:22:25]process_action close_receipt done [22:22:25]requested_data is exist [22:22:25]produce_requested_data [22:22:25]requested_item fm.sn is exist - process it [22:22:25]wFMCommunicate request_size=4 [22:22:25]MH_SAM_APDU [22:22:25]CAPDU: 80 11 00 00 [22:22:25]Write to MH i2c: E2 08 00 38 2F 80 11 00 00 00 00 00 00 E1 [22:22:25]Write i2c OK [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: E2 [22:22:25]MH_I2C_Read... [22:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:25]Read from MH i2c: E2 17 00 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: E2 17 00 38 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 38 [22:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:22:25]wFMCommunicate OK [22:22:25]requested_item fd.num is exist - process it [22:22:25]SAM_PROTO_GetFieldsCounters [22:22:25]wFMCommunicate request_size=4 [22:22:25]MH_SAM_APDU [22:22:25]CAPDU: 80 13 00 00 [22:22:25]Write to MH i2c: E2 08 00 39 2F 80 13 00 00 00 00 00 00 E4 [22:22:25]Write i2c OK [22:22:25]MH_I2C_Read... [22:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:25]Read from MH i2c: E2 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: E2 62 00 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: E2 62 00 39 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FE CA 01 00 0E 04 04 00 1E 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 52 [22:22: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FE CA 01 00 0E 04 04 00 1E 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 [22:22:25]wFMCommunicate OK [22:22:25]SAM_PROTO_GetFieldsCounters done [22:22:25]requested_item shift.num is exist - process it [22:22:25]requested_item shift.opened is exist - process it [22:22:25]req_shift_opened [22:22:25]FM_GetShiftState [22:22:25]SAM_PROTO_GetShiftState [22:22:25]wFMCommunicate request_size=4 [22:22:25]MH_SAM_APDU [22:22:25]CAPDU: 80 13 01 00 [22:22:25]Write to MH i2c: E2 08 00 3A 2F 80 13 01 00 00 00 00 00 E6 [22:22:25]Write i2c OK [22:22:25]MH_I2C_Read... [22:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:25]Read from MH i2c: E2 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: E2 0E 00 [22:22:25]MH_I2C_Read... [22:22:25]Read from MH i2c: E2 0E 00 3A 2F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 25 [22:22:25]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:22:25]wFMCommunicate OK [22:22:25]SAM_PROTO_GetShiftState done [22:22:25]FM_GetShiftState done [22:22:25]req_shift_opened done [22:22:25]requested_item shift.open_date is exist - process it [22:22:25]req_shift_open_date [22:22:25]req_shift_open_date done [22:22:25]produce_requested_data done [22:22:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117502,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [22:22:25]process_action_free close_receipt [22:22:25]json_value_free [22:22:25]json_value_free done [22:22:25]process_json_proto returns [22:22:25]Send response to host [22:22:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117502,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [22:22:25]free response buf [22:22:25]execute_script done [22:22:25]execute_script returns [22:22:25]free content buf [22:22:25]Sock 7.Close socket [22:22:25]Sock 7.Thread stoped [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:43]accept exits with 9 [22:23:43]New connection [22:23:43]New thread 3067600228 created [22:23:43]Thread 3067456868 joined [22:23:43]Waiting for new connection... [22:23:43] Sock 9.Parse request [22:23:43]Sock 9.Check first char [22:23:43]Sock 9.First char is OK [22:23:43]request: POST /json_proto HTTP/1.0 [22:23:43]Method: POST [22:23:43]URL: /json_proto [22:23:43]Method is POST - this is cgi request [22:23:43]url: /json_proto [22:23:43]query_string will be loaded in cgi processing [22:23:43]execute_cgi json_proto POST (null) [22:23:43]execute_cgi path=json_proto method=POST [22:23:43]POST find Content-Length [22:23:43]Host: 172.17.96.67:8080 [22:23:43]Content-Length: 677 [22:23:43]Content-Type: application/json [22:23:43] [22:23:43]POST finish read [22:23:43]Found Content-Length = 677 [22:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:23:43]execute_script... [22:23: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)245279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:23:43]POST & json_proto [22:23:43]process_json_proto [22:23:43]json parsed OK: [22:23:43]protocol is kg_v1.0 [22:23:43]action value=close_receipt [22:23:43]process_action close_receipt [22:23:43]cmd_close_receipt [22:23:43]MH_GetDate [22:23:43]Write to MH i2c: F0 00 00 3B 2F 59 [22:23:43]Write i2c OK [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: F0 [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: F0 09 00 [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: F0 09 00 3B 2F 00 73 BD 1E 67 2B 09 1E 67 D0 [22:23:43]GetLastDocTimeStamp 1730067745 [22:23:43]current date 1730067827 [22:23:43]FM_GetShiftState [22:23:43]SAM_PROTO_GetShiftState [22:23:43]wFMCommunicate request_size=4 [22:23:43]MH_SAM_APDU [22:23:43]CAPDU: 80 13 01 00 [22:23:43]Write to MH i2c: E2 08 00 3C 2F 80 13 01 00 00 00 00 00 E8 [22:23:43]Write i2c OK [22:23:43]MH_I2C_Read... [22:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:44]Read from MH i2c: E2 [22:23:44]MH_I2C_Read... [22:23:44]Read from MH i2c: E2 0E 00 [22:23:44]MH_I2C_Read... [22:23:44]Read from MH i2c: E2 0E 00 3C 2F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 27 [22:23:44]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:23:44]wFMCommunicate OK [22:23:44]SAM_PROTO_GetShiftState done [22:23:44]FM_GetShiftState done [22:23:44]opened in 1729987372 [22:23:44]opened+sec_in_day 1730073772 [22:23:44]quantity*price = 50041 [22:23:44]sum+1 = 50042 [22:23: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 203 27.10.2024 22:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117503 ФПД: 180274331858757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222347&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117503&fm=180274331858757&tin=02508201610067®Number=0000000000091782&sum=50000 [22:23:45]StoreToDocumentArchive [22:23:45]shift 542 fd 117503 [22:23:45]save to /storage/0542/doc_00117503 [22:23:45]save last doc name /storage/0542/doc_00117503 to /storage/kkm_last_doc_name [22:23:45]save OK [22:23:45]Clear old archive folders... [22:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:23:45]tlvbuf is B6F783B0 [22:23:45]SAM_PROTO_ClearQueue [22:23:45]wFMCommunicate request_size=4 [22:23:45]MH_SAM_APDU [22:23:45]CAPDU: 80 09 00 00 [22:23:45]Write to MH i2c: E2 08 00 49 2F 80 09 00 00 00 00 00 00 EA [22:23:45]Write i2c OK [22:23:45]MH_I2C_Read... [22:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:45]Read from MH i2c: E2 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 03 00 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 03 00 49 2F 00 90 00 EC [22:23:45]RAPDU: 90 00 [22:23:45]wFMCommunicate OK [22:23:45]SAM_PROTO_ClearQueue done [22:23:45]KKMCreateOFDPacket [22:23:45]OFDProtocolAddRootSTLVToBuf [22:23:45]FM_MakeSignedData [22:23:45]FM_MakeSignedData [22:23:45]SAM_PROTO_SignData [22:23:45]wFMCommunicate request_size=4 [22:23:45]MH_SAM_APDU [22:23:45]CAPDU: 80 0D 01 02 [22:23:45]Write to MH i2c: E2 08 00 4A 2F 80 0D 01 02 00 00 00 00 F2 [22:23:45]Write i2c OK [22:23:45]MH_I2C_Read... [22:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:45]Read from MH i2c: E2 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 03 00 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 03 00 4A 2F 00 90 00 ED [22:23:45]RAPDU: 90 00 [22:23:45]wFMCommunicate OK [22:23:45]wFMCommunicate request_size=255 [22:23:45]MH_SAM_APDU [22:23: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 CB 00 00 00 F4 03 04 00 73 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FF CA 01 00 35 04 06 00 A3 [22:23:45]Write to MH i2c: E2 02 01 4B 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 CB 00 00 00 F4 03 04 00 73 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FF CA 01 00 35 04 06 00 A3 00 00 91 [22:23:45]Write i2c OK [22:23:45]MH_I2C_Read... [22:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:45]Read from MH i2c: E2 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 03 00 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 03 00 4B 2F 00 90 00 EE [22:23:45]RAPDU: 90 00 [22:23:45]wFMCommunicate OK [22:23:45]wFMCommunicate request_size=10 [22:23:45]MH_SAM_APDU [22:23:45]CAPDU: 80 0D 02 02 05 F5 63 83 37 45 [22:23:45]Write to MH i2c: E2 0D 00 4C 2F 80 0D 02 02 05 00 F5 63 83 37 45 00 00 56 [22:23:45]Write i2c OK [22:23:45]MH_I2C_Read... [22:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:45]Read from MH i2c: E2 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 03 00 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 03 00 4C 2F 00 90 00 EF [22:23:45]RAPDU: 90 00 [22:23:45]wFMCommunicate OK [22:23:45]wFMCommunicate request_size=4 [22:23:45]MH_SAM_APDU [22:23:45]CAPDU: 80 0D 03 02 [22:23:45]Write to MH i2c: E2 08 00 4D 2F 80 0D 03 02 00 00 00 00 F7 [22:23:45]Write i2c OK [22:23:45]MH_I2C_Read... [22:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:45]Read from MH i2c: E2 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 0B 00 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 0B 00 4D 2F 00 9D B2 D1 BA CB 36 E0 D8 90 00 8B [22:23:45]RAPDU: 9D B2 D1 BA CB 36 E0 D8 90 00 [22:23:45]wFMCommunicate OK [22:23:45]SAM_PROTO_SignData done [22:23:45]FM_MakeSignedData done [22:23:45]CreateOFDProtocolMessage [22:23:45]wFMCommunicate request_size=4 [22:23:45]MH_SAM_APDU [22:23:45]CAPDU: 80 11 00 00 [22:23:45]Write to MH i2c: E2 08 00 4E 2F 80 11 00 00 00 00 00 00 F7 [22:23:45]Write i2c OK [22:23:45]MH_I2C_Read... [22:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:45]Read from MH i2c: E2 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 17 00 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: E2 17 00 4E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4E [22:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:23:45]wFMCommunicate OK [22:23:45]CreateOFDProtocolMessage done [22:23:45]OFDSenderStorePacket 117503 [22:23:45]StoreOFDPacket docnum=117503 [22:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5B 35 07 01 E7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 73 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FF CA 01 00 35 04 06 00 A3 F5 63 83 37 45 9D B2 D1 BA CB 36 E0 D8 [22:23:45]CheckFolder [22:23:45]dirname=/storage/ofd_packets [22:23:45]CheckFolder done [22:23:45]ProducePacketName [22:23:45]name=ofd_packets/00117503 [22:23:45]NVStorageSaveData ofd_packets/00117503 [22:23:45]File name is /storage/ofd_packets/00117503 [22:23:45]Write 301 bytes [22:23:45]NVStorageSaveData done [22:23:45]OFDSenderStorePacket done [22:23:45]KKMCreateOFDPacket done [22:23:45]NVStorageSaveData kkm_last_timestamp [22:23:45]File name is /storage/kkm_last_timestamp [22:23:45]Write 4 bytes [22:23:45]NVStorageSaveData done [22:23:45]ExternCall_PrintAddStr [22:23:45]wPrintStart [22:23:45]Write to MH i2c: 01 00 00 4F 2F 7E [22:23:45]Write i2c OK [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: 01 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: 01 07 00 [22:23:45]MH_I2C_Read... [22:23:45]Read from MH i2c: 01 07 00 4F 2F 00 00 00 00 00 FF 0F 93 [22:23:45]RasterBufferAndPrint [22:23:45]line Счет N : (1)245279 [22:23:45]line ИНН: 02508201610067 [22:23:45]line Контрольно-Кассовый Чек [22:23:45]line ПРОДАЖА [22:23:45]line ТРК (МРК, ГНК) : 21 [22:23:45]line Товар: 2710124130 [22:23:45]line Аи-92-К-2 [22:23:45]line 7.480 * 66.90 [22:23:45]line = 500.41 [22:23:45]line НДС 12% НСП 1% [22:23:45]line > о реализуемом товаре [22:23:45]line ОКРУГЛЕНИЕ: -0.41 [22:23:45]line ИТОГО: 500.00 [22:23:45]line Внесено: 500.00 [22:23:45]line СДАЧА: 0.00 [22:23:45]line НСП 1% : 4.43 [22:23:45]line НДС 12% : 53.14 [22:23:45]line Наличными: 500.00 [22:23:45]line Безнал.: 0.00 [22:23:45]line Место: АЗС № 173 "Партнер Нефть" [22:23:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:23:45]line СНО: Общий режим [22:23:45]line Чек 203 27.10.2024 22:23 [22:23:45]line Смена: 542 ФФД: 1.0 [22:23:45]line ЗНМ: 0300000115 [22:23:45]line РНМ: 0000000000091782 [22:23:45]line Версия ККМ: 001 [22:23:45]line ФМ: 0000000000871767 [22:23:45]line ФД: 117503 [22:23:45]line ФПД: 180274331858757 [22:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222347&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117503&fm=180274331858757&tin=02508201610067®Number=0000000000091782&sum=50000 [22:23:46]written 0, free lines is 4095 [22:23:46]OFD Sender: Processing packet 117503 [packets to send 76, broken 75] [22:23:46]ProducePacketName [22:23:46]name=ofd_packets/00117503 [22:23:46]OFD Sender: To server: pG, [22:23:46]CommunicateWithHost lk.salyk.kg:30040 [22:23:46]ConnectInit lk.salyk.kg [22:23:46]Connected sock=10 [22:23: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 36 37 0F 01 00 00 5B 35 07 01 E7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 73 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FF CA 01 00 35 04 06 00 A3 F5 63 83 37 45 9D B2 D1 BA CB 36 E0 D8 [22:23: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 36 37 4F 00 00 00 11 85 47 00 08 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 36 37 10 04 04 00 FF CA 01 00 F4 03 04 00 2F 69 1E 67 B6 04 01 00 00 6D 78 CB C8 51 D9 CD F7 [22:23:46]CommunicateWithHost err = 0 [22:23:46]CheckOFDResponse [22:23:46]1017 (14) - 77093643461234 [22:23:46]1041 (16) - 0000000000871767 [22:23:46]1040 (4) - 117503 [22:23:46]1012 (4) - 27.10.2024 16:24 [22:23:46]1206 (1) - 0 [22:23:46]OFD Sender: Remove packet 117503 [22:23:46]ProducePacketName [22:23:46]name=ofd_packets/00117503 [22:23:46]NVStorageDeleteData [22:23:46]Write to MH i2c: 01 00 00 79 2F A8 [22:23:46]Write i2c OK [22:23:46]MH_I2C_Read... [22:23:46]Read from MH i2c: 01 [22:23:46]MH_I2C_Read... [22:23:46]Read from MH i2c: 01 07 00 [22:23:46]MH_I2C_Read... [22:23:46]Read from MH i2c: 01 07 00 79 2F 00 00 00 00 00 B6 0C 71 [22:23:46]RasterBufferAndPrint [22:23:46]line [22:23:46]line [22:23:46]line [22:23:46]line [22:23:46]line [22:23:46]written 0, free lines is 3260 [22:23:46]MH_Cut [22:23:46]Write to MH i2c: D1 01 00 80 2F 01 81 [22:23:46]Write i2c OK [22:23:46]MH_I2C_Read... [22:23:46]Read from MH i2c: D1 [22:23:46]MH_I2C_Read... [22:23:46]Read from MH i2c: D1 01 00 [22:23:46]MH_I2C_Read... [22:23:46]Read from MH i2c: D1 01 00 80 2F 00 80 [22:23:46]Write to MH i2c: 01 00 00 81 2F B0 [22:23:46]Write i2c OK [22:23:46]MH_I2C_Read... [22:23:46]OFD Sender: No OFD packet to send [22:23:47]*** Cut start [22:23:47]*** Purtial cut [22:23:47]*** Stage 1: CUTSNS_PIN = 1 [22:23:47]Read from MH i2c: 01 [22:23:47]MH_I2C_Read... [22:23:47]*** Stop cut motor [22:23:47]*** Cut end [22:23:47]Read from MH i2c: 01 07 00 [22:23:47]MH_I2C_Read... [22:23:47]Read from MH i2c: 01 07 00 81 2F 00 00 00 00 00 FF 0F C5 [22:23:47]process_action close_receipt done [22:23:47]requested_data is exist [22:23:47]produce_requested_data [22:23:47]requested_item fm.sn is exist - process it [22:23:47]wFMCommunicate request_size=4 [22:23:47]MH_SAM_APDU [22:23:47]CAPDU: 80 11 00 00 [22:23:47]Write to MH i2c: E2 08 00 82 2F 80 11 00 00 00 00 00 00 2B [22:23:47]Write i2c OK [22:23:47]MH_I2C_Read... [22:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:47]Read from MH i2c: E2 [22:23:47]MH_I2C_Read... [22:23:47]Read from MH i2c: E2 17 00 [22:23:47]MH_I2C_Read... [22:23:47]Read from MH i2c: E2 17 00 82 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 82 [22:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:23:47]wFMCommunicate OK [22:23:47]requested_item fd.num is exist - process it [22:23:47]SAM_PROTO_GetFieldsCounters [22:23:47]wFMCommunicate request_size=4 [22:23:47]MH_SAM_APDU [22:23:47]CAPDU: 80 13 00 00 [22:23:47]Write to MH i2c: E2 08 00 83 2F 80 13 00 00 00 00 00 00 2E [22:23:47]Write i2c OK [22:23:47]MH_I2C_Read... [22:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:47]Read from MH i2c: E2 [22:23:47]MH_I2C_Read... [22:23:47]Read from MH i2c: E2 62 00 [22:23:47]MH_I2C_Read... [22:23:47]Read from MH i2c: E2 62 00 83 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FF CA 01 00 0E 04 04 00 1E 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 A0 [22:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FF CA 01 00 0E 04 04 00 1E 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 [22:23:47]wFMCommunicate OK [22:23:47]SAM_PROTO_GetFieldsCounters done [22:23:47]requested_item shift.num is exist - process it [22:23:47]requested_item shift.opened is exist - process it [22:23:47]req_shift_opened [22:23:47]FM_GetShiftState [22:23:47]SAM_PROTO_GetShiftState [22:23:47]wFMCommunicate request_size=4 [22:23:47]MH_SAM_APDU [22:23:47]CAPDU: 80 13 01 00 [22:23:47]Write to MH i2c: E2 08 00 84 2F 80 13 01 00 00 00 00 00 30 [22:23:47]Write i2c OK [22:23:47]MH_I2C_Read... [22:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:47]Read from MH i2c: E2 [22:23:47]MH_I2C_Read... [22:23:47]Read from MH i2c: E2 0E 00 [22:23:47]MH_I2C_Read... [22:23:47]Read from MH i2c: E2 0E 00 84 2F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 6F [22:23:47]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:23:47]wFMCommunicate OK [22:23:47]SAM_PROTO_GetShiftState done [22:23:47]FM_GetShiftState done [22:23:47]req_shift_opened done [22:23:47]requested_item shift.open_date is exist - process it [22:23:47]req_shift_open_date [22:23:47]req_shift_open_date done [22:23:47]produce_requested_data done [22:23:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117503,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [22:23:47]process_action_free close_receipt [22:23:47]json_value_free [22:23:47]json_value_free done [22:23:47]process_json_proto returns [22:23:47]Send response to host [22:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117503,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [22:23:47]free response buf [22:23:47]execute_script done [22:23:47]execute_script returns [22:23:47]free content buf [22:23:47]Sock 9.Close socket [22:23:47]Sock 9.Thread stoped [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:13]accept exits with 7 [22:26:13]New connection [22:26:13]New thread 3067456868 created [22:26:13]Thread 3067600228 joined [22:26:13]Waiting for new connection... [22:26:13] Sock 7.Parse request [22:26:13]Sock 7.Check first char [22:26:13]Sock 7.First char is OK [22:26:13]request: POST /json_proto HTTP/1.0 [22:26:13]Method: POST [22:26:13]URL: /json_proto [22:26:13]Method is POST - this is cgi request [22:26:13]url: /json_proto [22:26:13]query_string will be loaded in cgi processing [22:26:13]execute_cgi json_proto POST (null) [22:26:13]execute_cgi path=json_proto method=POST [22:26:13]POST find Content-Length [22:26:13]Host: 172.17.96.67:8080 [22:26:13]Content-Length: 677 [22:26:13]Content-Type: application/json [22:26:13] [22:26:13]POST finish read [22:26:13]Found Content-Length = 677 [22:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [22:26:13]execute_script... [22:26:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [22:26:13]POST & json_proto [22:26:13]process_json_proto [22:26:13]json parsed OK: [22:26:13]protocol is kg_v1.0 [22:26:13]action value=close_receipt [22:26:13]process_action close_receipt [22:26:13]cmd_close_receipt [22:26:13]MH_GetDate [22:26:13]Write to MH i2c: F0 00 00 85 2F A3 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: F0 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: F0 09 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: F0 09 00 85 2F 00 09 BE 1E 67 2B 09 1E 67 B1 [22:26:13]GetLastDocTimeStamp 1730067827 [22:26:13]current date 1730067977 [22:26:13]FM_GetShiftState [22:26:13]SAM_PROTO_GetShiftState [22:26:13]wFMCommunicate request_size=4 [22:26:13]MH_SAM_APDU [22:26:13]CAPDU: 80 13 01 00 [22:26:13]Write to MH i2c: E2 08 00 86 2F 80 13 01 00 00 00 00 00 32 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:13]Read from MH i2c: E2 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: E2 0E 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: E2 0E 00 86 2F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 71 [22:26:13]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:26:13]wFMCommunicate OK [22:26:13]SAM_PROTO_GetShiftState done [22:26:13]FM_GetShiftState done [22:26:13]opened in 1729987372 [22:26:13]opened+sec_in_day 1730073772 [22:26:13]quantity*price = 50041 [22:26:13]sum+1 = 50042 [22:26: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 204 27.10.2024 22:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117504 ФПД: 160016827373023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222617&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117504&fm=160016827373023&tin=02508201610067®Number=0000000000091782&sum=50000 [22:26:15]StoreToDocumentArchive [22:26:15]shift 542 fd 117504 [22:26:15]save to /storage/0542/doc_00117504 [22:26:15]save last doc name /storage/0542/doc_00117504 to /storage/kkm_last_doc_name [22:26:15]save OK [22:26:15]Clear old archive folders... [22:26:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:15]tlvbuf is B6F783A0 [22:26:15]SAM_PROTO_ClearQueue [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 09 00 00 [22:26:15]Write to MH i2c: E2 08 00 93 2F 80 09 00 00 00 00 00 00 34 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 03 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 03 00 93 2F 00 90 00 36 [22:26:15]RAPDU: 90 00 [22:26:15]wFMCommunicate OK [22:26:15]SAM_PROTO_ClearQueue done [22:26:15]KKMCreateOFDPacket [22:26:15]OFDProtocolAddRootSTLVToBuf [22:26:15]FM_MakeSignedData [22:26:15]FM_MakeSignedData [22:26:15]SAM_PROTO_SignData [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 0D 01 02 [22:26:15]Write to MH i2c: E2 08 00 94 2F 80 0D 01 02 00 00 00 00 3C [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 03 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 03 00 94 2F 00 90 00 37 [22:26:15]RAPDU: 90 00 [22:26:15]wFMCommunicate OK [22:26:15]wFMCommunicate request_size=255 [22:26:15]MH_SAM_APDU [22:26: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 09 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 00 CB 01 00 35 04 06 00 91 [22:26:15]Write to MH i2c: E2 02 01 95 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 CC 00 00 00 F4 03 04 00 09 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 00 CB 01 00 35 04 06 00 91 00 00 63 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 03 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 03 00 95 2F 00 90 00 38 [22:26:15]RAPDU: 90 00 [22:26:15]wFMCommunicate OK [22:26:15]wFMCommunicate request_size=10 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 0D 02 02 05 88 D2 27 55 DF [22:26:15]Write to MH i2c: E2 0D 00 96 2F 80 0D 02 02 05 00 88 D2 27 55 DF 00 00 FE [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 03 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 03 00 96 2F 00 90 00 39 [22:26:15]RAPDU: 90 00 [22:26:15]wFMCommunicate OK [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 0D 03 02 [22:26:15]Write to MH i2c: E2 08 00 97 2F 80 0D 03 02 00 00 00 00 41 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0B 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0B 00 97 2F 00 0B ED ED 04 87 14 6D 04 90 00 37 [22:26:15]RAPDU: 0B ED ED 04 87 14 6D 04 90 00 [22:26:15]wFMCommunicate OK [22:26:15]SAM_PROTO_SignData done [22:26:15]FM_MakeSignedData done [22:26:15]CreateOFDProtocolMessage [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 11 00 00 [22:26:15]Write to MH i2c: E2 08 00 98 2F 80 11 00 00 00 00 00 00 41 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 17 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 17 00 98 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 98 [22:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:26:15]wFMCommunicate OK [22:26:15]CreateOFDProtocolMessage done [22:26:15]OFDSenderStorePacket 117504 [22:26:15]StoreOFDPacket docnum=117504 [22:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 71 62 07 01 94 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 09 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 00 CB 01 00 35 04 06 00 91 88 D2 27 55 DF 0B ED ED 04 87 14 6D 04 [22:26:15]CheckFolder [22:26:15]dirname=/storage/ofd_packets [22:26:15]CheckFolder done [22:26:15]ProducePacketName [22:26:15]name=ofd_packets/00117504 [22:26:15]NVStorageSaveData ofd_packets/00117504 [22:26:15]File name is /storage/ofd_packets/00117504 [22:26:15]Write 301 bytes [22:26:15]NVStorageSaveData done [22:26:15]OFDSenderStorePacket done [22:26:15]KKMCreateOFDPacket done [22:26:15]NVStorageSaveData kkm_last_timestamp [22:26:15]File name is /storage/kkm_last_timestamp [22:26:15]Write 4 bytes [22:26:15]NVStorageSaveData done [22:26:15]ExternCall_PrintAddStr [22:26:15]wPrintStart [22:26:15]Write to MH i2c: 01 00 00 99 2F C8 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: 01 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: 01 07 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: 01 07 00 99 2F 00 00 00 00 00 FF 0F DD [22:26:15]RasterBufferAndPrint [22:26:15]line Счет N : (1)245280 [22:26:15]line ИНН: 02508201610067 [22:26:15]line Контрольно-Кассовый Чек [22:26:15]line ПРОДАЖА [22:26:15]line ТРК (МРК, ГНК) : 11 [22:26:15]line Товар: 2710124130 [22:26:15]line Аи-92-К-2 [22:26:15]line 7.480 * 66.90 [22:26:15]line = 500.41 [22:26:15]line НДС 12% НСП 1% [22:26:15]line > о реализуемом товаре [22:26:15]line ОКРУГЛЕНИЕ: -0.41 [22:26:15]line ИТОГО: 500.00 [22:26:15]line Внесено: 500.00 [22:26:15]line СДАЧА: 0.00 [22:26:15]line НСП 1% : 4.43 [22:26:15]line НДС 12% : 53.14 [22:26:15]line Наличными: 500.00 [22:26:15]line Безнал.: 0.00 [22:26:15]line Место: АЗС № 173 "Партнер Нефть" [22:26:15]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:26:15]line СНО: Общий режим [22:26:15]line Чек 204 27.10.2024 22:26 [22:26:15]line Смена: 542 ФФД: 1.0 [22:26:15]line ЗНМ: 0300000115 [22:26:15]line РНМ: 0000000000091782 [22:26:15]line Версия ККМ: 001 [22:26:15]line ФМ: 0000000000871767 [22:26:15]line ФД: 117504 [22:26:15]line ФПД: 160016827373023 [22:26:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222617&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117504&fm=160016827373023&tin=02508201610067®Number=0000000000091782&sum=50000 [22:26:15]written 0, free lines is 4095 [22:26:15]OFD Sender: Processing packet 117504 [packets to send 76, broken 75] [22:26:15]ProducePacketName [22:26:15]name=ofd_packets/00117504 [22:26:15]OFD Sender: To server: pG, [22:26:15]CommunicateWithHost lk.salyk.kg:30040 [22:26:15]ConnectInit lk.salyk.kg [22:26:16]Connected sock=10 [22:26: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 36 37 0F 01 00 00 71 62 07 01 94 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 09 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 00 CB 01 00 35 04 06 00 91 88 D2 27 55 DF 0B ED ED 04 87 14 6D 04 [22:26: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 36 37 4F 00 00 00 33 49 47 00 CD 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 36 37 10 04 04 00 00 CB 01 00 F4 03 04 00 C5 69 1E 67 B6 04 01 00 00 A1 E5 05 7F 69 9E 56 8E [22:26:16]CommunicateWithHost err = 0 [22:26:16]CheckOFDResponse [22:26:16]1017 (14) - 77093643461234 [22:26:16]1041 (16) - 0000000000871767 [22:26:16]1040 (4) - 117504 [22:26:16]1012 (4) - 27.10.2024 16:26 [22:26:16]1206 (1) - 0 [22:26:16]OFD Sender: Remove packet 117504 [22:26:16]ProducePacketName [22:26:16]name=ofd_packets/00117504 [22:26:16]NVStorageDeleteData [22:26:16]Write to MH i2c: 01 00 00 C3 2F F2 [22:26:16]Write i2c OK [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: 01 [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: 01 07 00 [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: 01 07 00 C3 2F 00 00 00 00 00 BA 0C BF [22:26:16]RasterBufferAndPrint [22:26:16]line [22:26:16]line [22:26:16]line [22:26:16]line [22:26:16]line [22:26:16]written 0, free lines is 3266 [22:26:16]MH_Cut [22:26:16]Write to MH i2c: D1 01 00 CA 2F 01 CB [22:26:16]Write i2c OK [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: D1 [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: D1 01 00 [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: D1 01 00 CA 2F 00 CA [22:26:16]Write to MH i2c: 01 00 00 CB 2F FA [22:26:16]Write i2c OK [22:26:16]MH_I2C_Read... [22:26:16]OFD Sender: No OFD packet to send [22:26:17]*** Cut start [22:26:17]*** Purtial cut [22:26:17]*** Stage 1: CUTSNS_PIN = 1 [22:26:17]Read from MH i2c: 01 [22:26:17]MH_I2C_Read... [22:26:17]*** Stop cut motor [22:26:17]*** Cut end [22:26:17]Read from MH i2c: 01 07 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 07 00 CB 2F 00 00 00 00 00 FF 0F 0F [22:26:17]process_action close_receipt done [22:26:17]requested_data is exist [22:26:17]produce_requested_data [22:26:17]requested_item fm.sn is exist - process it [22:26:17]wFMCommunicate request_size=4 [22:26:17]MH_SAM_APDU [22:26:17]CAPDU: 80 11 00 00 [22:26:17]Write to MH i2c: E2 08 00 CC 2F 80 11 00 00 00 00 00 00 75 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 17 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 17 00 CC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CC [22:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:26:17]wFMCommunicate OK [22:26:17]requested_item fd.num is exist - process it [22:26:17]SAM_PROTO_GetFieldsCounters [22:26:17]wFMCommunicate request_size=4 [22:26:17]MH_SAM_APDU [22:26:17]CAPDU: 80 13 00 00 [22:26:17]Write to MH i2c: E2 08 00 CD 2F 80 13 00 00 00 00 00 00 78 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 62 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 62 00 CD 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 00 CB 01 00 0E 04 04 00 1E 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 EF [22:26:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 00 CB 01 00 0E 04 04 00 1E 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 [22:26:17]wFMCommunicate OK [22:26:17]SAM_PROTO_GetFieldsCounters done [22:26:17]requested_item shift.num is exist - process it [22:26:17]requested_item shift.opened is exist - process it [22:26:17]req_shift_opened [22:26:17]FM_GetShiftState [22:26:17]SAM_PROTO_GetShiftState [22:26:17]wFMCommunicate request_size=4 [22:26:17]MH_SAM_APDU [22:26:17]CAPDU: 80 13 01 00 [22:26:17]Write to MH i2c: E2 08 00 CE 2F 80 13 01 00 00 00 00 00 7A [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 0E 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 0E 00 CE 2F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B9 [22:26:17]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:26:17]wFMCommunicate OK [22:26:17]SAM_PROTO_GetShiftState done [22:26:17]FM_GetShiftState done [22:26:17]req_shift_opened done [22:26:17]requested_item shift.open_date is exist - process it [22:26:17]req_shift_open_date [22:26:17]req_shift_open_date done [22:26:17]produce_requested_data done [22:26:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117504,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [22:26:17]process_action_free close_receipt [22:26:17]json_value_free [22:26:17]json_value_free done [22:26:17]process_json_proto returns [22:26:17]Send response to host [22:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117504,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [22:26:17]free response buf [22:26:17]execute_script done [22:26:17]execute_script returns [22:26:17]free content buf [22:26:17]Sock 7.Close socket [22:26:17]Sock 7.Thread stoped [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:27]accept exits with 9 [22:26:27]New connection [22:26:27]New thread 3067600228 created [22:26:27]Thread 3067456868 joined [22:26:27]Waiting for new connection... [22:26:27] Sock 9.Parse request [22:26:27]Sock 9.Check first char [22:26:27]Sock 9.First char is OK [22:26:27]request: POST /json_proto HTTP/1.0 [22:26:27]Method: POST [22:26:27]URL: /json_proto [22:26:27]Method is POST - this is cgi request [22:26:27]url: /json_proto [22:26:27]query_string will be loaded in cgi processing [22:26:27]execute_cgi json_proto POST (null) [22:26:27]execute_cgi path=json_proto method=POST [22:26:27]POST find Content-Length [22:26:27]Host: 172.17.96.67:8080 [22:26:27]Content-Length: 682 [22:26:27]Content-Type: application/json [22:26:27] [22:26:27]POST finish read [22:26:27]Found Content-Length = 682 [22:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:26:27]execute_script... [22:26: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)245281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:26:27]POST & json_proto [22:26:27]process_json_proto [22:26:27]json parsed OK: [22:26:27]protocol is kg_v1.0 [22:26:27]action value=close_receipt [22:26:27]process_action close_receipt [22:26:27]cmd_close_receipt [22:26:27]MH_GetDate [22:26:27]Write to MH i2c: F0 00 00 CF 2F ED [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: F0 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: F0 09 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: F0 09 00 CF 2F 00 16 BE 1E 67 2B 09 1E 67 08 [22:26:27]GetLastDocTimeStamp 1730067977 [22:26:27]current date 1730067990 [22:26:27]FM_GetShiftState [22:26:27]SAM_PROTO_GetShiftState [22:26:27]wFMCommunicate request_size=4 [22:26:27]MH_SAM_APDU [22:26:27]CAPDU: 80 13 01 00 [22:26:27]Write to MH i2c: E2 08 00 D0 2F 80 13 01 00 00 00 00 00 7C [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:27]Read from MH i2c: E2 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 0E 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 0E 00 D0 2F 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 BB [22:26:27]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:26:27]wFMCommunicate OK [22:26:27]SAM_PROTO_GetShiftState done [22:26:27]FM_GetShiftState done [22:26:27]opened in 1729987372 [22:26:27]opened+sec_in_day 1730073772 [22:26:27]quantity*price = 100015 [22:26:27]sum+1 = 100017 [22:26: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 205 27.10.2024 22:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117505 ФПД: 63658564355130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222631&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117505&fm=63658564355130&tin=02508201610067®Number=0000000000091782&sum=100000 [22:26:28]StoreToDocumentArchive [22:26:28]shift 542 fd 117505 [22:26:28]save to /storage/0542/doc_00117505 [22:26:28]save last doc name /storage/0542/doc_00117505 to /storage/kkm_last_doc_name [22:26:28]save OK [22:26:28]Clear old archive folders... [22:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:28]tlvbuf is 0170C650 [22:26:28]SAM_PROTO_ClearQueue [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 09 00 00 [22:26:28]Write to MH i2c: E2 08 00 DD 2F 80 09 00 00 00 00 00 00 7E [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 DD 2F 00 90 00 80 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]SAM_PROTO_ClearQueue done [22:26:28]KKMCreateOFDPacket [22:26:28]OFDProtocolAddRootSTLVToBuf [22:26:28]FM_MakeSignedData [22:26:28]FM_MakeSignedData [22:26:28]SAM_PROTO_SignData [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 01 02 [22:26:28]Write to MH i2c: E2 08 00 DE 2F 80 0D 01 02 00 00 00 00 86 [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 DE 2F 00 90 00 81 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]wFMCommunicate request_size=255 [22:26:28]MH_SAM_APDU [22:26: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 CD 00 00 00 F4 03 04 00 17 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 01 CB 01 00 35 04 06 00 39 [22:26:28]Write to MH i2c: E2 02 01 DF 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 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 CD 00 00 00 F4 03 04 00 17 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 01 CB 01 00 35 04 06 00 39 00 00 5F [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 DF 2F 00 90 00 82 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]wFMCommunicate request_size=10 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 02 02 05 E5 AA 1D 84 3A [22:26:28]Write to MH i2c: E2 0D 00 E0 2F 80 0D 02 02 05 00 E5 AA 1D 84 3A 00 00 FD [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 E0 2F 00 90 00 83 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 03 02 [22:26:28]Write to MH i2c: E2 08 00 E1 2F 80 0D 03 02 00 00 00 00 8B [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 0B 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 0B 00 E1 2F 00 39 5F EF DE 76 87 F6 11 90 00 F5 [22:26:28]RAPDU: 39 5F EF DE 76 87 F6 11 90 00 [22:26:28]wFMCommunicate OK [22:26:28]SAM_PROTO_SignData done [22:26:28]FM_MakeSignedData done [22:26:28]CreateOFDProtocolMessage [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 11 00 00 [22:26:28]Write to MH i2c: E2 08 00 E2 2F 80 11 00 00 00 00 00 00 8B [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:29]Read from MH i2c: E2 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: E2 17 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: E2 17 00 E2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E2 [22:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:26:29]wFMCommunicate OK [22:26:29]CreateOFDProtocolMessage done [22:26:29]OFDSenderStorePacket 117505 [22:26:29]StoreOFDPacket docnum=117505 [22:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C3 54 07 01 D2 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 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 CD 00 00 00 F4 03 04 00 17 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 01 CB 01 00 35 04 06 00 39 E5 AA 1D 84 3A 39 5F EF DE 76 87 F6 11 [22:26:29]CheckFolder [22:26:29]dirname=/storage/ofd_packets [22:26:29]CheckFolder done [22:26:29]ProducePacketName [22:26:29]name=ofd_packets/00117505 [22:26:29]NVStorageSaveData ofd_packets/00117505 [22:26:29]File name is /storage/ofd_packets/00117505 [22:26:29]Write 301 bytes [22:26:29]NVStorageSaveData done [22:26:29]OFDSenderStorePacket done [22:26:29]KKMCreateOFDPacket done [22:26:29]NVStorageSaveData kkm_last_timestamp [22:26:29]File name is /storage/kkm_last_timestamp [22:26:29]Write 4 bytes [22:26:29]NVStorageSaveData done [22:26:29]ExternCall_PrintAddStr [22:26:29]wPrintStart [22:26:29]Write to MH i2c: 01 00 00 E3 2F 12 [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 E3 2F 00 00 00 00 00 FF 0F 27 [22:26:29]RasterBufferAndPrint [22:26:29]line Счет N : (1)245281 [22:26:29]line ИНН: 02508201610067 [22:26:29]line Контрольно-Кассовый Чек [22:26:29]line ПРОДАЖА [22:26:29]line ТРК (МРК, ГНК) : 21 [22:26:29]line Товар: 2710124130 [22:26:29]line Аи-92-К-2 [22:26:29]line 14.950 * 66.90 [22:26:29]line = 1000.16 [22:26:29]line НДС 12% НСП 1% [22:26:29]line > о реализуемом товаре [22:26:29]line ОКРУГЛЕНИЕ: -0.16 [22:26:29]line ИТОГО: 1000.00 [22:26:29]line Внесено: 1000.00 [22:26:29]line СДАЧА: 0.00 [22:26:29]line НСП 1% : 8.85 [22:26:29]line НДС 12% : 106.21 [22:26:29]line Наличными: 1000.00 [22:26:29]line Безнал.: 0.00 [22:26:29]line Место: АЗС № 173 "Партнер Нефть" [22:26:29]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:26:29]line СНО: Общий режим [22:26:29]line Чек 205 27.10.2024 22:26 [22:26:29]line Смена: 542 ФФД: 1.0 [22:26:29]line ЗНМ: 0300000115 [22:26:29]line РНМ: 0000000000091782 [22:26:29]line Версия ККМ: 001 [22:26:29]line ФМ: 0000000000871767 [22:26:29]line ФД: 117505 [22:26:29]line ФПД: 63658564355130 [22:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222631&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117505&fm=63658564355130&tin=02508201610067®Number=0000000000091782&sum=100000 [22:26:29]written 0, free lines is 4095 [22:26:29]OFD Sender: Processing packet 117505 [packets to send 76, broken 75] [22:26:29]ProducePacketName [22:26:29]name=ofd_packets/00117505 [22:26:29]OFD Sender: To server: pG, [22:26:29]CommunicateWithHost lk.salyk.kg:30040 [22:26:29]ConnectInit lk.salyk.kg [22:26:29]Connected sock=10 [22:26: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 36 37 0F 01 00 00 C3 54 07 01 D2 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 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 CD 00 00 00 F4 03 04 00 17 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 01 CB 01 00 35 04 06 00 39 E5 AA 1D 84 3A 39 5F EF DE 76 87 F6 11 [22:26: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 36 37 4F 00 00 00 9E A9 47 00 47 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 36 37 10 04 04 00 01 CB 01 00 F4 03 04 00 D3 69 1E 67 B6 04 01 00 00 F5 91 9E D2 67 27 93 DB [22:26:29]CommunicateWithHost err = 0 [22:26:29]CheckOFDResponse [22:26:29]1017 (14) - 77093643461234 [22:26:29]1041 (16) - 0000000000871767 [22:26:29]1040 (4) - 117505 [22:26:29]1012 (4) - 27.10.2024 16:26 [22:26:29]1206 (1) - 0 [22:26:29]OFD Sender: Remove packet 117505 [22:26:29]ProducePacketName [22:26:29]name=ofd_packets/00117505 [22:26:29]NVStorageDeleteData [22:26:29]Write to MH i2c: 01 00 00 0D 30 3D [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 0D 30 00 00 00 00 00 BA 0C 0A [22:26:29]RasterBufferAndPrint [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]written 0, free lines is 3266 [22:26:29]MH_Cut [22:26:29]Write to MH i2c: D1 01 00 14 30 01 16 [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 01 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 01 00 14 30 00 15 [22:26:29]Write to MH i2c: 01 00 00 15 30 45 [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:30]OFD Sender: No OFD packet to send [22:26:30]*** Cut start [22:26:30]*** Purtial cut [22:26:30]*** Stage 1: CUTSNS_PIN = 1 [22:26:30]Read from MH i2c: 01 [22:26:30]MH_I2C_Read... [22:26:30]*** Stop cut motor [22:26:30]*** Cut end [22:26:30]Read from MH i2c: 01 07 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: 01 07 00 15 30 00 00 00 00 00 FF 0F 5A [22:26:30]process_action close_receipt done [22:26:30]requested_data is exist [22:26:30]produce_requested_data [22:26:30]requested_item fm.sn is exist - process it [22:26:30]wFMCommunicate request_size=4 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 11 00 00 [22:26:30]Write to MH i2c: E2 08 00 16 30 80 11 00 00 00 00 00 00 C0 [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:30]Read from MH i2c: E2 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 17 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 17 00 16 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 17 [22:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:26:30]wFMCommunicate OK [22:26:30]requested_item fd.num is exist - process it [22:26:30]SAM_PROTO_GetFieldsCounters [22:26:30]wFMCommunicate request_size=4 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 13 00 00 [22:26:30]Write to MH i2c: E2 08 00 17 30 80 13 00 00 00 00 00 00 C3 [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 62 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 62 00 17 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 01 CB 01 00 0E 04 04 00 1E 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 3E [22:26: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 01 CB 01 00 0E 04 04 00 1E 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 [22:26:31]wFMCommunicate OK [22:26:31]SAM_PROTO_GetFieldsCounters done [22:26:31]requested_item shift.num is exist - process it [22:26:31]requested_item shift.opened is exist - process it [22:26:31]req_shift_opened [22:26:31]FM_GetShiftState [22:26:31]SAM_PROTO_GetShiftState [22:26:31]wFMCommunicate request_size=4 [22:26:31]MH_SAM_APDU [22:26:31]CAPDU: 80 13 01 00 [22:26:31]Write to MH i2c: E2 08 00 18 30 80 13 01 00 00 00 00 00 C5 [22:26:31]Write i2c OK [22:26:31]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0E 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0E 00 18 30 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 04 [22:26:31]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:26:31]wFMCommunicate OK [22:26:31]SAM_PROTO_GetShiftState done [22:26:31]FM_GetShiftState done [22:26:31]req_shift_opened done [22:26:31]requested_item shift.open_date is exist - process it [22:26:31]req_shift_open_date [22:26:31]req_shift_open_date done [22:26:31]produce_requested_data done [22:26:31]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117505,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [22:26:31]process_action_free close_receipt [22:26:31]json_value_free [22:26:31]json_value_free done [22:26:31]process_json_proto returns [22:26:31]Send response to host [22:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117505,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [22:26:31]free response buf [22:26:31]execute_script done [22:26:31]execute_script returns [22:26:31]free content buf [22:26:31]Sock 9.Close socket [22:26:31]Sock 9.Thread stoped [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:38]accept exits with 7 [22:27:38]New connection [22:27:38]New thread 3067456868 created [22:27:38]Thread 3067600228 joined [22:27:38]Waiting for new connection... [22:27:38] Sock 7.Parse request [22:27:38]Sock 7.Check first char [22:27:38]Sock 7.First char is OK [22:27:38]request: POST /json_proto HTTP/1.0 [22:27:38]Method: POST [22:27:38]URL: /json_proto [22:27:38]Method is POST - this is cgi request [22:27:38]url: /json_proto [22:27:38]query_string will be loaded in cgi processing [22:27:38]execute_cgi json_proto POST (null) [22:27:38]execute_cgi path=json_proto method=POST [22:27:38]POST find Content-Length [22:27:38]Host: 172.17.96.67:8080 [22:27:38]Content-Length: 677 [22:27:38]Content-Type: application/json [22:27:38] [22:27:38]POST finish read [22:27:38]Found Content-Length = 677 [22:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:27:38]execute_script... [22:27:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:27:38]POST & json_proto [22:27:38]process_json_proto [22:27:38]json parsed OK: [22:27:38]protocol is kg_v1.0 [22:27:38]action value=close_receipt [22:27:38]process_action close_receipt [22:27:38]cmd_close_receipt [22:27:38]MH_GetDate [22:27:38]Write to MH i2c: F0 00 00 19 30 38 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: F0 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: F0 09 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: F0 09 00 19 30 00 5D BE 1E 67 2B 09 1E 67 9A [22:27:38]GetLastDocTimeStamp 1730067991 [22:27:38]current date 1730068061 [22:27:38]FM_GetShiftState [22:27:38]SAM_PROTO_GetShiftState [22:27:38]wFMCommunicate request_size=4 [22:27:38]MH_SAM_APDU [22:27:38]CAPDU: 80 13 01 00 [22:27:38]Write to MH i2c: E2 08 00 1A 30 80 13 01 00 00 00 00 00 C7 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:38]Read from MH i2c: E2 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 0E 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 0E 00 1A 30 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 06 [22:27:38]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:27:38]wFMCommunicate OK [22:27:38]SAM_PROTO_GetShiftState done [22:27:38]FM_GetShiftState done [22:27:38]opened in 1729987372 [22:27:38]opened+sec_in_day 1730073772 [22:27:38]quantity*price = 40006 [22:27:38]sum+1 = 40007 [22:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 206 27.10.2024 22:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117506 ФПД: 107800238668076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222742&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117506&fm=107800238668076&tin=02508201610067®Number=0000000000091782&sum=40000 [22:27:39]StoreToDocumentArchive [22:27:39]shift 542 fd 117506 [22:27:39]save to /storage/0542/doc_00117506 [22:27:39]save last doc name /storage/0542/doc_00117506 to /storage/kkm_last_doc_name [22:27:39]save OK [22:27:39]Clear old archive folders... [22:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:39]tlvbuf is 01768FD0 [22:27:39]SAM_PROTO_ClearQueue [22:27:39]wFMCommunicate request_size=4 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 09 00 00 [22:27:39]Write to MH i2c: E2 08 00 27 30 80 09 00 00 00 00 00 00 C9 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 27 30 00 90 00 CB [22:27:39]RAPDU: 90 00 [22:27:39]wFMCommunicate OK [22:27:39]SAM_PROTO_ClearQueue done [22:27:39]KKMCreateOFDPacket [22:27:39]OFDProtocolAddRootSTLVToBuf [22:27:39]FM_MakeSignedData [22:27:39]FM_MakeSignedData [22:27:39]SAM_PROTO_SignData [22:27:39]wFMCommunicate request_size=4 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 0D 01 02 [22:27:39]Write to MH i2c: E2 08 00 28 30 80 0D 01 02 00 00 00 00 D1 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 28 30 00 90 00 CC [22:27:39]RAPDU: 90 00 [22:27:39]wFMCommunicate OK [22:27:39]wFMCommunicate request_size=255 [22:27:39]MH_SAM_APDU [22:27: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 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 CE 00 00 00 F4 03 04 00 5E BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 02 CB 01 00 35 04 06 00 62 [22:27:39]Write to MH i2c: E2 02 01 29 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 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 CE 00 00 00 F4 03 04 00 5E BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 02 CB 01 00 35 04 06 00 62 00 00 F1 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 29 30 00 90 00 CD [22:27:39]RAPDU: 90 00 [22:27:39]wFMCommunicate OK [22:27:39]wFMCommunicate request_size=10 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 0D 02 02 05 0B 32 EE B9 2C [22:27:39]Write to MH i2c: E2 0D 00 2A 30 80 0D 02 02 05 00 0B 32 EE B9 2C 00 00 EE [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 2A 30 00 90 00 CE [22:27:39]RAPDU: 90 00 [22:27:39]wFMCommunicate OK [22:27:39]wFMCommunicate request_size=4 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 0D 03 02 [22:27:39]Write to MH i2c: E2 08 00 2B 30 80 0D 03 02 00 00 00 00 D6 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 0B 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 0B 00 2B 30 00 55 E5 89 8D 94 71 6E E9 90 00 83 [22:27:39]RAPDU: 55 E5 89 8D 94 71 6E E9 90 00 [22:27:39]wFMCommunicate OK [22:27:39]SAM_PROTO_SignData done [22:27:39]FM_MakeSignedData done [22:27:39]CreateOFDProtocolMessage [22:27:39]wFMCommunicate request_size=4 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 11 00 00 [22:27:39]Write to MH i2c: E2 08 00 2C 30 80 11 00 00 00 00 00 00 D6 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 17 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 17 00 2C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2D [22:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:27:39]wFMCommunicate OK [22:27:39]CreateOFDProtocolMessage done [22:27:39]OFDSenderStorePacket 117506 [22:27:39]StoreOFDPacket docnum=117506 [22:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9D D4 07 01 53 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 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 CE 00 00 00 F4 03 04 00 5E BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 02 CB 01 00 35 04 06 00 62 0B 32 EE B9 2C 55 E5 89 8D 94 71 6E E9 [22:27:39]CheckFolder [22:27:39]dirname=/storage/ofd_packets [22:27:39]CheckFolder done [22:27:39]ProducePacketName [22:27:39]name=ofd_packets/00117506 [22:27:39]NVStorageSaveData ofd_packets/00117506 [22:27:39]File name is /storage/ofd_packets/00117506 [22:27:39]Write 301 bytes [22:27:39]NVStorageSaveData done [22:27:39]OFDSenderStorePacket done [22:27:39]KKMCreateOFDPacket done [22:27:40]NVStorageSaveData kkm_last_timestamp [22:27:40]File name is /storage/kkm_last_timestamp [22:27:40]Write 4 bytes [22:27:40]NVStorageSaveData done [22:27:40]ExternCall_PrintAddStr [22:27:40]wPrintStart [22:27:40]Write to MH i2c: 01 00 00 2D 30 5D [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: 01 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: 01 07 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: 01 07 00 2D 30 00 00 00 00 00 FF 0F 72 [22:27:40]RasterBufferAndPrint [22:27:40]line Счет N : (1)245282 [22:27:40]line ИНН: 02508201610067 [22:27:40]line Контрольно-Кассовый Чек [22:27:40]line ПРОДАЖА [22:27:40]line ТРК (МРК, ГНК) : 21 [22:27:40]line Товар: 2710124130 [22:27:40]line Аи-92-К-2 [22:27:40]line 5.980 * 66.90 [22:27:40]line = 400.06 [22:27:40]line НДС 12% НСП 1% [22:27:40]line > о реализуемом товаре [22:27:40]line ОКРУГЛЕНИЕ: -0.06 [22:27:40]line ИТОГО: 400.00 [22:27:40]line Внесено: 400.00 [22:27:40]line СДАЧА: 0.00 [22:27:40]line НСП 1% : 3.54 [22:27:40]line НДС 12% : 42.48 [22:27:40]line Наличными: 400.00 [22:27:40]line Безнал.: 0.00 [22:27:40]line Место: АЗС № 173 "Партнер Нефть" [22:27:40]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:27:40]line СНО: Общий режим [22:27:40]line Чек 206 27.10.2024 22:27 [22:27:40]line Смена: 542 ФФД: 1.0 [22:27:40]line ЗНМ: 0300000115 [22:27:40]line РНМ: 0000000000091782 [22:27:40]line Версия ККМ: 001 [22:27:40]line ФМ: 0000000000871767 [22:27:40]line ФД: 117506 [22:27:40]line ФПД: 107800238668076 [22:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222742&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117506&fm=107800238668076&tin=02508201610067®Number=0000000000091782&sum=40000 [22:27:40]written 0, free lines is 4095 [22:27:40]OFD Sender: Processing packet 117506 [packets to send 76, broken 75] [22:27:40]ProducePacketName [22:27:40]name=ofd_packets/00117506 [22:27:40]OFD Sender: To server: pG, [22:27:40]CommunicateWithHost lk.salyk.kg:30040 [22:27:40]ConnectInit lk.salyk.kg [22:27:40]Connected sock=10 [22:27:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9D D4 07 01 53 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 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 CE 00 00 00 F4 03 04 00 5E BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 02 CB 01 00 35 04 06 00 62 0B 32 EE B9 2C 55 E5 89 8D 94 71 6E E9 [22:27: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 36 37 4F 00 00 00 27 2C 47 00 71 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 36 37 10 04 04 00 02 CB 01 00 F4 03 04 00 1A 6A 1E 67 B6 04 01 00 00 5F 4C C2 07 93 AE 3D 39 [22:27:40]CommunicateWithHost err = 0 [22:27:40]CheckOFDResponse [22:27:40]1017 (14) - 77093643461234 [22:27:40]1041 (16) - 0000000000871767 [22:27:40]1040 (4) - 117506 [22:27:40]1012 (4) - 27.10.2024 16:28 [22:27:40]1206 (1) - 0 [22:27:40]OFD Sender: Remove packet 117506 [22:27:40]ProducePacketName [22:27:40]name=ofd_packets/00117506 [22:27:40]NVStorageDeleteData [22:27:40]Write to MH i2c: 01 00 00 57 30 87 [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: 01 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: 01 07 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: 01 07 00 57 30 00 00 00 00 00 C2 0C 5C [22:27:40]RasterBufferAndPrint [22:27:40]line [22:27:40]line [22:27:40]line [22:27:40]line [22:27:40]line [22:27:40]written 0, free lines is 3272 [22:27:40]MH_Cut [22:27:40]Write to MH i2c: D1 01 00 5E 30 01 60 [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: D1 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: D1 01 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: D1 01 00 5E 30 00 5F [22:27:40]Write to MH i2c: 01 00 00 5F 30 8F [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:41]OFD Sender: No OFD packet to send [22:27:41]*** Cut start [22:27:41]*** Purtial cut [22:27:41]*** Stage 1: CUTSNS_PIN = 1 [22:27:41]Read from MH i2c: 01 [22:27:41]MH_I2C_Read... [22:27:41]*** Stop cut motor [22:27:41]*** Cut end [22:27:41]Read from MH i2c: 01 07 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 07 00 5F 30 00 00 00 00 00 FF 0F A4 [22:27:41]process_action close_receipt done [22:27:41]requested_data is exist [22:27:41]produce_requested_data [22:27:41]requested_item fm.sn is exist - process it [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 11 00 00 [22:27:41]Write to MH i2c: E2 08 00 60 30 80 11 00 00 00 00 00 00 0A [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 17 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 17 00 60 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 61 [22:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:27:41]wFMCommunicate OK [22:27:41]requested_item fd.num is exist - process it [22:27:41]SAM_PROTO_GetFieldsCounters [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 13 00 00 [22:27:41]Write to MH i2c: E2 08 00 61 30 80 13 00 00 00 00 00 00 0D [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:42]Read from MH i2c: E2 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 62 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 62 00 61 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 02 CB 01 00 0E 04 04 00 1E 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 8C [22:27:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 02 CB 01 00 0E 04 04 00 1E 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 [22:27:42]wFMCommunicate OK [22:27:42]SAM_PROTO_GetFieldsCounters done [22:27:42]requested_item shift.num is exist - process it [22:27:42]requested_item shift.opened is exist - process it [22:27:42]req_shift_opened [22:27:42]FM_GetShiftState [22:27:42]SAM_PROTO_GetShiftState [22:27:42]wFMCommunicate request_size=4 [22:27:42]MH_SAM_APDU [22:27:42]CAPDU: 80 13 01 00 [22:27:42]Write to MH i2c: E2 08 00 62 30 80 13 01 00 00 00 00 00 0F [22:27:42]Write i2c OK [22:27:42]MH_I2C_Read... [22:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:42]Read from MH i2c: E2 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 0E 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 0E 00 62 30 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 4E [22:27:42]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:27:42]wFMCommunicate OK [22:27:42]SAM_PROTO_GetShiftState done [22:27:42]FM_GetShiftState done [22:27:42]req_shift_opened done [22:27:42]requested_item shift.open_date is exist - process it [22:27:42]req_shift_open_date [22:27:42]req_shift_open_date done [22:27:42]produce_requested_data done [22:27:42]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117506,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [22:27:42]process_action_free close_receipt [22:27:42]json_value_free [22:27:42]json_value_free done [22:27:42]process_json_proto returns [22:27:42]Send response to host [22:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117506,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [22:27:42]free response buf [22:27:42]execute_script done [22:27:42]execute_script returns [22:27:42]free content buf [22:27:42]Sock 7.Close socket [22:27:42]Sock 7.Thread stoped [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:27]ConnectInit Can't connect to host [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:43:58]accept exits with 9 [22:43:58]New connection [22:43:58]New thread 3067600228 created [22:43:58]Thread 3067456868 joined [22:43:58]Waiting for new connection... [22:43:58] Sock 9.Parse request [22:43:58]Sock 9.Check first char [22:43:58]Sock 9.First char is OK [22:43:58]request: POST /json_proto HTTP/1.0 [22:43:58]Method: POST [22:43:58]URL: /json_proto [22:43:58]Method is POST - this is cgi request [22:43:58]url: /json_proto [22:43:58]query_string will be loaded in cgi processing [22:43:58]execute_cgi json_proto POST (null) [22:43:58]execute_cgi path=json_proto method=POST [22:43:58]POST find Content-Length [22:43:58]Host: 172.17.96.67:8080 [22:43:58]Content-Length: 678 [22:43:58]Content-Type: application/json [22:43:58] [22:43:58]POST finish read [22:43:58]Found Content-Length = 678 [22:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [22:43:58]execute_script... [22:43: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)245283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [22:43:58]POST & json_proto [22:43:58]process_json_proto [22:43:58]json parsed OK: [22:43:58]protocol is kg_v1.0 [22:43:58]action value=close_receipt [22:43:58]process_action close_receipt [22:43:58]cmd_close_receipt [22:43:58]MH_GetDate [22:43:58]Write to MH i2c: F0 00 00 63 30 82 [22:43:58]Write i2c OK [22:43:58]MH_I2C_Read... [22:43:58]Read from MH i2c: F0 [22:43:58]MH_I2C_Read... [22:43:58]Read from MH i2c: F0 09 00 [22:43:58]MH_I2C_Read... [22:43:58]Read from MH i2c: F0 09 00 63 30 00 32 C2 1E 67 2B 09 1E 67 BD [22:43:58]GetLastDocTimeStamp 1730068062 [22:43:58]current date 1730069042 [22:43:58]FM_GetShiftState [22:43:58]SAM_PROTO_GetShiftState [22:43:58]wFMCommunicate request_size=4 [22:43:58]MH_SAM_APDU [22:43:58]CAPDU: 80 13 01 00 [22:43:58]Write to MH i2c: E2 08 00 64 30 80 13 01 00 00 00 00 00 11 [22:43:58]Write i2c OK [22:43:58]MH_I2C_Read... [22:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:58]Read from MH i2c: E2 [22:43:58]MH_I2C_Read... [22:43:58]Read from MH i2c: E2 0E 00 [22:43:58]MH_I2C_Read... [22:43:58]Read from MH i2c: E2 0E 00 64 30 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 50 [22:43:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:43:58]wFMCommunicate OK [22:43:58]SAM_PROTO_GetShiftState done [22:43:58]FM_GetShiftState done [22:43:58]opened in 1729987372 [22:43:58]opened+sec_in_day 1730073772 [22:43:58]quantity*price = 70044 [22:43:58]sum+1 = 70045 [22:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре [22:44:00]line ОКРУГЛЕНИЕ: -0.44 [22:44:00]line ИТОГО: 700.00 [22:44:00]line Внесено: 700.00 [22:44:00]line СДАЧА: 0.00 [22:44:00]line НСП 1% : 6.20 [22:44:00]line НДС 12% : 74.38 [22:44:00]line Наличными: 700.00 [22:44:00]line Безнал.: 0.00 [22:44:00]line Место: АЗС № 173 "Партнер Нефть" [22:44:00]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:44:00]line СНО: Общий режим [22:44:00]line Чек 207 27.10.2024 22:44 [22:44:00]line Смена: 542 ФФД: 1.0 [22:44:00]line ЗНМ: 0300000115 [22:44:00]line РНМ: 0000000000091782 [22:44:00]line Версия ККМ: 001 [22:44:00]line ФМ: 0000000000871767 [22:44:00]line ФД: 117507 [22:44:00]line ФПД: 28927458595551 [22:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T224402&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117507&fm=28927458595551&tin=02508201610067®Number=0000000000091782&sum=70000 [22:44:00]written 0, free lines is 4095 [22:44:00]OFD Sender: Processing packet 117507 [packets to send 76, broken 75] [22:44:00]ProducePacketName [22:44:00]name=ofd_packets/00117507 [22:44:00]OFD Sender: To server: pG, [22:44:00]CommunicateWithHost lk.salyk.kg:30040 [22:44:00]ConnectInit lk.salyk.kg [22:44:00]Connected sock=11 [22:44: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 36 37 0F 01 00 00 73 06 07 01 BF 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 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 CF 00 00 00 F4 03 04 00 32 C2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 03 CB 01 00 35 04 06 00 1A 4F 32 E4 D2 DF 55 E1 1D E1 57 56 D1 0E [22:44: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 36 37 4F 00 00 00 72 4A 47 00 6D 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 36 37 10 04 04 00 03 CB 01 00 F4 03 04 00 EE 6D 1E 67 B6 04 01 00 00 6C 76 73 B9 B4 D6 8D 58 [22:44:00]CommunicateWithHost err = 0 [22:44:00]CheckOFDResponse [22:44:00]1017 (14) - 77093643461234 [22:44:00]1041 (16) - 0000000000871767 [22:44:00]1040 (4) - 117507 [22:44:00]1012 (4) - 27.10.2024 16:44 [22:44:00]1206 (1) - 0 [22:44:00]OFD Sender: Remove packet 117507 [22:44:00]ProducePacketName [22:44:00]name=ofd_packets/00117507 [22:44:00]NVStorageDeleteData [22:44:00]ConnectInit Can't connect to host [22:44:00]Write to MH i2c: 01 00 00 A1 30 D1 [22:44:00]Write i2c OK [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: 01 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: 01 07 00 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: 01 07 00 A1 30 00 00 00 00 00 B9 0C 9D [22:44:00]RasterBufferAndPrint [22:44:00]line [22:44:00]line [22:44:00]line [22:44:00]line [22:44:00]line [22:44:00]written 0, free lines is 3265 [22:44:00]MH_Cut [22:44:00]Write to MH i2c: D1 01 00 A8 30 01 AA [22:44:00]Write i2c OK [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: D1 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: D1 01 00 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: D1 01 00 A8 30 00 A9 [22:44:00]Write to MH i2c: 01 00 00 A9 30 D9 [22:44:00]Write i2c OK [22:44:00]MH_I2C_Read... [22:44:01]OFD Sender: No OFD packet to send [22:44:01]*** Cut start [22:44:01]*** Purtial cut [22:44:01]*** Stage 1: CUTSNS_PIN = 1 [22:44:02]Read from MH i2c: 01 [22:44:02]MH_I2C_Read... [22:44:02]*** Stop cut motor [22:44:02]*** Cut end [22:44:02]Read from MH i2c: 01 07 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: 01 07 00 A9 30 00 00 00 00 00 FF 0F EE [22:44:02]process_action close_receipt done [22:44:02]requested_data is exist [22:44:02]produce_requested_data [22:44:02]requested_item fm.sn is exist - process it [22:44:02]wFMCommunicate request_size=4 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 11 00 00 [22:44:02]Write to MH i2c: E2 08 00 AA 30 80 11 00 00 00 00 00 00 54 [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 17 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 17 00 AA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AB [22:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:44:02]wFMCommunicate OK [22:44:02]requested_item fd.num is exist - process it [22:44:02]SAM_PROTO_GetFieldsCounters [22:44:02]wFMCommunicate request_size=4 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 13 00 00 [22:44:02]Write to MH i2c: E2 08 00 AB 30 80 13 00 00 00 00 00 00 57 [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 62 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 62 00 AB 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 03 CB 01 00 0E 04 04 00 1E 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 DA [22:44: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 03 CB 01 00 0E 04 04 00 1E 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 [22:44:02]wFMCommunicate OK [22:44:02]SAM_PROTO_GetFieldsCounters done [22:44:02]requested_item shift.num is exist - process it [22:44:02]requested_item shift.opened is exist - process it [22:44:02]req_shift_opened [22:44:02]FM_GetShiftState [22:44:02]SAM_PROTO_GetShiftState [22:44:02]wFMCommunicate request_size=4 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 13 01 00 [22:44:02]Write to MH i2c: E2 08 00 AC 30 80 13 01 00 00 00 00 00 59 [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 0E 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 0E 00 AC 30 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 98 [22:44:02]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [22:44:02]wFMCommunicate OK [22:44:02]SAM_PROTO_GetShiftState done [22:44:02]FM_GetShiftState done [22:44:02]req_shift_opened done [22:44:02]requested_item shift.open_date is exist - process it [22:44:02]req_shift_open_date [22:44:02]req_shift_open_date done [22:44:02]produce_requested_data done [22:44:02]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117507,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [22:44:02]process_action_free close_receipt [22:44:02]json_value_free [22:44:02]json_value_free done [22:44:02]process_json_proto returns [22:44:02]Send response to host [22:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117507,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [22:44:02]free response buf [22:44:02]execute_script done [22:44:02]execute_script returns [22:44:02]free content buf [22:44:02]Sock 9.Close socket [22:44:02]Sock 9.Thread stoped [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45: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:29]ConnectInit Can't connect to host [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:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47: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:02]ConnectInit Can't connect to host [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [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:46]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:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:51:57]ConnectInit Can't connect to host [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:12]accept exits with 10 [23:16:12]New connection [23:16:12]New thread 3067456868 created [23:16:12]Thread 3067600228 joined [23:16:12]Waiting for new connection... [23:16:12] Sock 10.Parse request [23:16:12]Sock 10.Check first char [23:16:12]Sock 10.First char is OK [23:16:12]request: POST /json_proto HTTP/1.0 [23:16:12]Method: POST [23:16:12]URL: /json_proto [23:16:12]Method is POST - this is cgi request [23:16:12]url: /json_proto [23:16:12]query_string will be loaded in cgi processing [23:16:12]execute_cgi json_proto POST (null) [23:16:12]execute_cgi path=json_proto method=POST [23:16:12]POST find Content-Length [23:16:12]Host: 172.17.96.67:8080 [23:16:12]Content-Length: 677 [23:16:12]Content-Type: application/json [23:16:12] [23:16:12]POST finish read [23:16:12]Found Content-Length = 677 [23:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [23:16:12]execute_script... [23:16: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)245284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [23:16:12]POST & json_proto [23:16:12]process_json_proto [23:16:12]json parsed OK: [23:16:12]protocol is kg_v1.0 [23:16:12]action value=close_receipt [23:16:12]process_action close_receipt [23:16:12]cmd_close_receipt [23:16:12]MH_GetDate [23:16:12]Write to MH i2c: F0 00 00 AD 30 CC [23:16:12]Write i2c OK [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: F0 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: F0 09 00 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: F0 09 00 AD 30 00 C0 C9 1E 67 2B 09 1E 67 9C [23:16:12]GetLastDocTimeStamp 1730069042 [23:16:12]current date 1730070976 [23:16:12]FM_GetShiftState [23:16:12]SAM_PROTO_GetShiftState [23:16:12]wFMCommunicate request_size=4 [23:16:12]MH_SAM_APDU [23:16:12]CAPDU: 80 13 01 00 [23:16:12]Write to MH i2c: E2 08 00 AE 30 80 13 01 00 00 00 00 00 5B [23:16:12]Write i2c OK [23:16:12]MH_I2C_Read... [23:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:12]Read from MH i2c: E2 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 0E 00 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 0E 00 AE 30 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 9A [23:16:12]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:16:12]wFMCommunicate OK [23:16:12]SAM_PROTO_GetShiftState done [23:16:12]FM_GetShiftState done [23:16:12]opened in 1729987372 [23:16:12]opened+sec_in_day 1730073772 [23:16:12]quantity*price = 50041 [23:16:12]sum+1 = 50042 [23:16: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 208 27.10.2024 23:16 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117508 ФПД: 269166289647574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T231616&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117508&fm=269166289647574&tin=02508201610067®Number=0000000000091782&sum=50000 [23:16:13]StoreToDocumentArchive [23:16:13]shift 542 fd 117508 [23:16:13]save to /storage/0542/doc_00117508 [23:16:13]save last doc name /storage/0542/doc_00117508 to /storage/kkm_last_doc_name [23:16:13]save OK [23:16:13]Clear old archive folders... [23:16:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:13]tlvbuf is 01779700 [23:16:13]SAM_PROTO_ClearQueue [23:16:13]wFMCommunicate request_size=4 [23:16:13]MH_SAM_APDU [23:16:13]CAPDU: 80 09 00 00 [23:16:13]Write to MH i2c: E2 08 00 BB 30 80 09 00 00 00 00 00 00 5D [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 03 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 03 00 BB 30 00 90 00 5F [23:16:13]RAPDU: 90 00 [23:16:13]wFMCommunicate OK [23:16:13]SAM_PROTO_ClearQueue done [23:16:13]KKMCreateOFDPacket [23:16:13]OFDProtocolAddRootSTLVToBuf [23:16:13]FM_MakeSignedData [23:16:13]FM_MakeSignedData [23:16:13]SAM_PROTO_SignData [23:16:13]wFMCommunicate request_size=4 [23:16:13]MH_SAM_APDU [23:16:13]CAPDU: 80 0D 01 02 [23:16:13]Write to MH i2c: E2 08 00 BC 30 80 0D 01 02 00 00 00 00 65 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 03 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 03 00 BC 30 00 90 00 60 [23:16:13]RAPDU: 90 00 [23:16:13]wFMCommunicate OK [23:16:13]wFMCommunicate request_size=255 [23:16:13]MH_SAM_APDU [23:16: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 D0 00 00 00 F4 03 04 00 C0 C9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CB 01 00 35 04 06 00 F4 [23:16:13]Write to MH i2c: E2 02 01 BD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C0 C9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CB 01 00 35 04 06 00 F4 00 00 B9 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 03 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 03 00 BD 30 00 90 00 61 [23:16:13]RAPDU: 90 00 [23:16:13]wFMCommunicate OK [23:16:13]wFMCommunicate request_size=10 [23:16:13]MH_SAM_APDU [23:16:13]CAPDU: 80 0D 02 02 05 CE 29 14 77 D6 [23:16:13]Write to MH i2c: E2 0D 00 BE 30 80 0D 02 02 05 00 CE 29 14 77 D6 00 00 CA [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 03 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 03 00 BE 30 00 90 00 62 [23:16:13]RAPDU: 90 00 [23:16:13]wFMCommunicate OK [23:16:13]wFMCommunicate request_size=4 [23:16:13]MH_SAM_APDU [23:16:13]CAPDU: 80 0D 03 02 [23:16:13]Write to MH i2c: E2 08 00 BF 30 80 0D 03 02 00 00 00 00 6A [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 0B 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 0B 00 BF 30 00 ED 79 93 CD 7C 48 2C 94 90 00 B5 [23:16:14]RAPDU: ED 79 93 CD 7C 48 2C 94 90 00 [23:16:14]wFMCommunicate OK [23:16:14]SAM_PROTO_SignData done [23:16:14]FM_MakeSignedData done [23:16:14]CreateOFDProtocolMessage [23:16:14]wFMCommunicate request_size=4 [23:16:14]MH_SAM_APDU [23:16:14]CAPDU: 80 11 00 00 [23:16:14]Write to MH i2c: E2 08 00 C0 30 80 11 00 00 00 00 00 00 6A [23:16:14]Write i2c OK [23:16:14]MH_I2C_Read... [23:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:14]Read from MH i2c: E2 [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: E2 17 00 [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: E2 17 00 C0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C1 [23:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:16:14]wFMCommunicate OK [23:16:14]CreateOFDProtocolMessage done [23:16:14]OFDSenderStorePacket 117508 [23:16:14]StoreOFDPacket docnum=117508 [23:16:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7B 91 07 01 4C 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 D0 00 00 00 F4 03 04 00 C0 C9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CB 01 00 35 04 06 00 F4 CE 29 14 77 D6 ED 79 93 CD 7C 48 2C 94 [23:16:14]CheckFolder [23:16:14]dirname=/storage/ofd_packets [23:16:14]CheckFolder done [23:16:14]ProducePacketName [23:16:14]name=ofd_packets/00117508 [23:16:14]NVStorageSaveData ofd_packets/00117508 [23:16:14]File name is /storage/ofd_packets/00117508 [23:16:14]Write 301 bytes [23:16:14]NVStorageSaveData done [23:16:14]OFDSenderStorePacket done [23:16:14]KKMCreateOFDPacket done [23:16:14]NVStorageSaveData kkm_last_timestamp [23:16:14]File name is /storage/kkm_last_timestamp [23:16:14]Write 4 bytes [23:16:14]NVStorageSaveData done [23:16:14]ExternCall_PrintAddStr [23:16:14]wPrintStart [23:16:14]Write to MH i2c: 01 00 00 C1 30 F1 [23:16:14]Write i2c OK [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: 01 [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: 01 07 00 [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: 01 07 00 C1 30 00 00 00 00 00 FF 0F 06 [23:16:14]RasterBufferAndPrint [23:16:14]line Счет N : (1)245284 [23:16:14]line ИНН: 02508201610067 [23:16:14]line Контрольно-Кассовый Чек [23:16:14]line ПРОДАЖА [23:16:14]line ТРК (МРК, ГНК) : 11 [23:16:14]line Товар: 2710124130 [23:16:14]line Аи-92-К-2 [23:16:14]line 7.480 * 66.90 [23:16:14]line = 500.41 [23:16:14]line НДС 12% НСП 1% [23:16:14]line > о реализуемом товаре [23:16:14]line ОКРУГЛЕНИЕ: -0.41 [23:16:14]line ИТОГО: 500.00 [23:16:14]line Внесено: 500.00 [23:16:14]line СДАЧА: 0.00 [23:16:14]line НСП 1% : 4.43 [23:16:14]line НДС 12% : 53.14 [23:16:14]line Наличными: 500.00 [23:16:14]line Безнал.: 0.00 [23:16:14]line Место: АЗС № 173 "Партнер Нефть" [23:16:14]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:16:14]line СНО: Общий режим [23:16:14]line Чек 208 27.10.2024 23:16 [23:16:14]line Смена: 542 ФФД: 1.0 [23:16:14]line ЗНМ: 0300000115 [23:16:14]line РНМ: 0000000000091782 [23:16:14]line Версия ККМ: 001 [23:16:14]line ФМ: 0000000000871767 [23:16:14]line ФД: 117508 [23:16:14]line ФПД: 269166289647574 [23:16:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T231616&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117508&fm=269166289647574&tin=02508201610067®Number=0000000000091782&sum=50000 [23:16:14]written 0, free lines is 4095 [23:16:14]OFD Sender: Processing packet 117508 [packets to send 76, broken 75] [23:16:14]ProducePacketName [23:16:14]name=ofd_packets/00117508 [23:16:14]OFD Sender: To server: pG, [23:16:14]CommunicateWithHost lk.salyk.kg:30040 [23:16:14]ConnectInit lk.salyk.kg [23:16:14]Connected sock=9 [23:16: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 36 37 0F 01 00 00 7B 91 07 01 4C 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 D0 00 00 00 F4 03 04 00 C0 C9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CB 01 00 35 04 06 00 F4 CE 29 14 77 D6 ED 79 93 CD 7C 48 2C 94 [23:16: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 36 37 4F 00 00 00 46 82 47 00 1E 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CB 01 00 F4 03 04 00 7C 75 1E 67 B6 04 01 00 00 F0 DF F0 D5 55 9B 67 C0 [23:16:14]CommunicateWithHost err = 0 [23:16:14]CheckOFDResponse [23:16:14]1017 (14) - 77093643461234 [23:16:14]1041 (16) - 0000000000871767 [23:16:14]1040 (4) - 117508 [23:16:14]1012 (4) - 27.10.2024 17:16 [23:16:14]1206 (1) - 0 [23:16:14]OFD Sender: Remove packet 117508 [23:16:14]ProducePacketName [23:16:14]name=ofd_packets/00117508 [23:16:14]NVStorageDeleteData [23:16:14]Write to MH i2c: 01 00 00 EB 30 1B [23:16:14]Write i2c OK [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: 01 [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: 01 07 00 [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: 01 07 00 EB 30 00 00 00 00 00 C2 0C F0 [23:16:14]RasterBufferAndPrint [23:16:14]line [23:16:14]line [23:16:14]line [23:16:14]line [23:16:14]line [23:16:14]written 0, free lines is 3271 [23:16:14]MH_Cut [23:16:14]Write to MH i2c: D1 01 00 F2 30 01 F4 [23:16:14]Write i2c OK [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: D1 [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: D1 01 00 [23:16:14]MH_I2C_Read... [23:16:14]Read from MH i2c: D1 01 00 F2 30 00 F3 [23:16:14]Write to MH i2c: 01 00 00 F3 30 23 [23:16:14]Write i2c OK [23:16:14]MH_I2C_Read... [23:16:15]OFD Sender: No OFD packet to send [23:16:15]*** Cut start [23:16:15]*** Purtial cut [23:16:15]*** Stage 1: CUTSNS_PIN = 1 [23:16:15]Read from MH i2c: 01 [23:16:15]MH_I2C_Read... [23:16:15]*** Stop cut motor [23:16:15]*** Cut end [23:16:15]Read from MH i2c: 01 07 00 [23:16:15]MH_I2C_Read... [23:16:15]Read from MH i2c: 01 07 00 F3 30 00 00 00 00 00 FF 0F 38 [23:16:15]process_action close_receipt done [23:16:15]requested_data is exist [23:16:15]produce_requested_data [23:16:15]requested_item fm.sn is exist - process it [23:16:15]wFMCommunicate request_size=4 [23:16:15]MH_SAM_APDU [23:16:15]CAPDU: 80 11 00 00 [23:16:15]Write to MH i2c: E2 08 00 F4 30 80 11 00 00 00 00 00 00 9E [23:16:15]Write i2c OK [23:16:15]MH_I2C_Read... [23:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:16]Read from MH i2c: E2 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 17 00 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 17 00 F4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F5 [23:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:16:16]wFMCommunicate OK [23:16:16]requested_item fd.num is exist - process it [23:16:16]SAM_PROTO_GetFieldsCounters [23:16:16]wFMCommunicate request_size=4 [23:16:16]MH_SAM_APDU [23:16:16]CAPDU: 80 13 00 00 [23:16:16]Write to MH i2c: E2 08 00 F5 30 80 13 00 00 00 00 00 00 A1 [23:16:16]Write i2c OK [23:16:16]MH_I2C_Read... [23:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:16]Read from MH i2c: E2 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 62 00 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 62 00 F5 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 04 CB 01 00 0E 04 04 00 1E 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 28 [23:16: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 04 CB 01 00 0E 04 04 00 1E 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 [23:16:16]wFMCommunicate OK [23:16:16]SAM_PROTO_GetFieldsCounters done [23:16:16]requested_item shift.num is exist - process it [23:16:16]requested_item shift.opened is exist - process it [23:16:16]req_shift_opened [23:16:16]FM_GetShiftState [23:16:16]SAM_PROTO_GetShiftState [23:16:16]wFMCommunicate request_size=4 [23:16:16]MH_SAM_APDU [23:16:16]CAPDU: 80 13 01 00 [23:16:16]Write to MH i2c: E2 08 00 F6 30 80 13 01 00 00 00 00 00 A3 [23:16:16]Write i2c OK [23:16:16]MH_I2C_Read... [23:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:16]Read from MH i2c: E2 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 0E 00 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 0E 00 F6 30 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E2 [23:16:16]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:16:16]wFMCommunicate OK [23:16:16]SAM_PROTO_GetShiftState done [23:16:16]FM_GetShiftState done [23:16:16]req_shift_opened done [23:16:16]requested_item shift.open_date is exist - process it [23:16:16]req_shift_open_date [23:16:16]req_shift_open_date done [23:16:16]produce_requested_data done [23:16:16]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117508,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:16:16]process_action_free close_receipt [23:16:16]json_value_free [23:16:16]json_value_free done [23:16:16]process_json_proto returns [23:16:16]Send response to host [23:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117508,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:16:16]free response buf [23:16:16]execute_script done [23:16:16]execute_script returns [23:16:16]free content buf [23:16:16]Sock 10.Close socket [23:16:16]Sock 10.Thread stoped [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:41]accept exits with 7 [23:22:41]New connection [23:22:41]New thread 3067600228 created [23:22:41]Thread 3067456868 joined [23:22:41]Waiting for new connection... [23:22:41] Sock 7.Parse request [23:22:41]Sock 7.Check first char [23:22:41]Sock 7.First char is OK [23:22:41]request: POST /json_proto HTTP/1.0 [23:22:41]Method: POST [23:22:41]URL: /json_proto [23:22:41]Method is POST - this is cgi request [23:22:41]url: /json_proto [23:22:41]query_string will be loaded in cgi processing [23:22:41]execute_cgi json_proto POST (null) [23:22:41]execute_cgi path=json_proto method=POST [23:22:41]POST find Content-Length [23:22:41]Host: 172.17.96.67:8080 [23:22:41]Content-Length: 800 [23:22:41]Content-Type: application/json [23:22:41] [23:22:41]POST finish read [23:22:41]Found Content-Length = 800 [23:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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\u000A4542342", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:41]execute_script... [23:22: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)245285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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\u000A4542342", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:41]POST & json_proto [23:22:41]process_json_proto [23:22:41]json parsed OK: [23:22:41]protocol is kg_v1.0 [23:22:41]action value=close_receipt [23:22:41]process_action close_receipt [23:22:41]cmd_close_receipt [23:22:41]MH_GetDate [23:22:41]Write to MH i2c: F0 00 00 F7 30 16 [23:22:41]Write i2c OK [23:22:41]MH_I2C_Read... [23:22:41]Read from MH i2c: F0 [23:22:41]MH_I2C_Read... [23:22:41]Read from MH i2c: F0 09 00 [23:22:41]MH_I2C_Read... [23:22:41]Read from MH i2c: F0 09 00 F7 30 00 45 CB 1E 67 2B 09 1E 67 6D [23:22:41]GetLastDocTimeStamp 1730070976 [23:22:41]current date 1730071365 [23:22:41]FM_GetShiftState [23:22:41]SAM_PROTO_GetShiftState [23:22:41]wFMCommunicate request_size=4 [23:22:41]MH_SAM_APDU [23:22:41]CAPDU: 80 13 01 00 [23:22:41]Write to MH i2c: E2 08 00 F8 30 80 13 01 00 00 00 00 00 A5 [23:22:41]Write i2c OK [23:22:41]MH_I2C_Read... [23:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:41]Read from MH i2c: E2 [23:22:41]MH_I2C_Read... [23:22:41]Read from MH i2c: E2 0E 00 [23:22:41]MH_I2C_Read... [23:22:41]Read from MH i2c: E2 0E 00 F8 30 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 E4 [23:22:41]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:22:41]wFMCommunicate OK [23:22:41]SAM_PROTO_GetShiftState done [23:22:41]FM_GetShiftState done [23:22:41]opened in 1729987372 [23:22:41]opened+sec_in_day 1730073772 [23:22:41]quantity*price = 0 [23:22:41]sum+1 = 1 [23:22:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 209 27.10.2024 23:22 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Талоны: Топливные Талоны 4542342 ФМ: 0000000000871767 ФД: 117509 ФПД: 80836090315695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232245&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117509&fm=80836090315695&tin=02508201610067®Number=0000000000091782&sum=0 [23:22:42]StoreToDocumentArchive [23:22:42]shift 542 fd 117509 [23:22:42]save to /storage/0542/doc_00117509 [23:22:42]save last doc name /storage/0542/doc_00117509 to /storage/kkm_last_doc_name [23:22:42]save OK [23:22:42]Clear old archive folders... [23:22:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:22:42]tlvbuf is 016E6530 [23:22:42]SAM_PROTO_ClearQueue [23:22:42]wFMCommunicate request_size=4 [23:22:42]MH_SAM_APDU [23:22:42]CAPDU: 80 09 00 00 [23:22:42]Write to MH i2c: E2 08 00 05 31 80 09 00 00 00 00 00 00 A8 [23:22:42]Write i2c OK [23:22:42]MH_I2C_Read... [23:22:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:42]Read from MH i2c: E2 [23:22:42]MH_I2C_Read... [23:22:42]Read from MH i2c: E2 03 00 [23:22:42]MH_I2C_Read... [23:22:42]Read from MH i2c: E2 03 00 05 31 00 90 00 AA [23:22:42]RAPDU: 90 00 [23:22:42]wFMCommunicate OK [23:22:42]SAM_PROTO_ClearQueue done [23:22:42]KKMCreateOFDPacket [23:22:42]OFDProtocolAddRootSTLVToBuf [23:22:42]FM_MakeSignedData [23:22:42]FM_MakeSignedData [23:22:42]SAM_PROTO_SignData [23:22:42]wFMCommunicate request_size=4 [23:22:42]MH_SAM_APDU [23:22:42]CAPDU: 80 0D 01 02 [23:22:42]Write to MH i2c: E2 08 00 06 31 80 0D 01 02 00 00 00 00 B0 [23:22:42]Write i2c OK [23:22:42]MH_I2C_Read... [23:22:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:42]Read from MH i2c: E2 [23:22:42]MH_I2C_Read... [23:22:42]Read from MH i2c: E2 03 00 [23:22:42]MH_I2C_Read... [23:22:42]Read from MH i2c: E2 03 00 06 31 00 90 00 AB [23:22:42]RAPDU: 90 00 [23:22:42]wFMCommunicate OK [23:22:42]wFMCommunicate request_size=255 [23:22:42]MH_SAM_APDU [23:22: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 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 D1 00 00 00 F4 03 04 00 45 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 05 CB 01 00 35 04 06 00 49 [23:22:42]Write to MH i2c: E2 02 01 07 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 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 D1 00 00 00 F4 03 04 00 45 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 05 CB 01 00 35 04 06 00 49 00 00 94 [23:22:42]Write i2c OK [23:22:42]MH_I2C_Read... [23:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:43]Read from MH i2c: E2 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: E2 03 00 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: E2 03 00 07 31 00 90 00 AC [23:22:43]RAPDU: 90 00 [23:22:43]wFMCommunicate OK [23:22:43]wFMCommunicate request_size=10 [23:22:43]MH_SAM_APDU [23:22:43]CAPDU: 80 0D 02 02 05 85 1E 72 C3 AF [23:22:43]Write to MH i2c: E2 0D 00 08 31 80 0D 02 02 05 00 85 1E 72 C3 AF 00 00 44 [23:22:43]Write i2c OK [23:22:43]MH_I2C_Read... [23:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:43]Read from MH i2c: E2 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: E2 03 00 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: E2 03 00 08 31 00 90 00 AD [23:22:43]RAPDU: 90 00 [23:22:43]wFMCommunicate OK [23:22:43]wFMCommunicate request_size=4 [23:22:43]MH_SAM_APDU [23:22:43]CAPDU: 80 0D 03 02 [23:22:43]Write to MH i2c: E2 08 00 09 31 80 0D 03 02 00 00 00 00 B5 [23:22:43]Write i2c OK [23:22:43]MH_I2C_Read... [23:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:43]Read from MH i2c: E2 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: E2 0B 00 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: E2 0B 00 09 31 00 23 6A 70 C6 BD 17 90 02 90 00 DF [23:22:43]RAPDU: 23 6A 70 C6 BD 17 90 02 90 00 [23:22:43]wFMCommunicate OK [23:22:43]SAM_PROTO_SignData done [23:22:43]FM_MakeSignedData done [23:22:43]CreateOFDProtocolMessage [23:22:43]wFMCommunicate request_size=4 [23:22:43]MH_SAM_APDU [23:22:43]CAPDU: 80 11 00 00 [23:22:43]Write to MH i2c: E2 08 00 0A 31 80 11 00 00 00 00 00 00 B5 [23:22:43]Write i2c OK [23:22:43]MH_I2C_Read... [23:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:43]Read from MH i2c: E2 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: E2 17 00 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: E2 17 00 0A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0C [23:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:22:43]wFMCommunicate OK [23:22:43]CreateOFDProtocolMessage done [23:22:43]OFDSenderStorePacket 117509 [23:22:43]StoreOFDPacket docnum=117509 [23:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2E F8 07 01 1E 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 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 D1 00 00 00 F4 03 04 00 45 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 05 CB 01 00 35 04 06 00 49 85 1E 72 C3 AF 23 6A 70 C6 BD 17 90 02 [23:22:43]CheckFolder [23:22:43]dirname=/storage/ofd_packets [23:22:43]CheckFolder done [23:22:43]ProducePacketName [23:22:43]name=ofd_packets/00117509 [23:22:43]NVStorageSaveData ofd_packets/00117509 [23:22:43]File name is /storage/ofd_packets/00117509 [23:22:43]Write 301 bytes [23:22:43]NVStorageSaveData done [23:22:43]OFDSenderStorePacket done [23:22:43]KKMCreateOFDPacket done [23:22:43]NVStorageSaveData kkm_last_timestamp [23:22:43]File name is /storage/kkm_last_timestamp [23:22:43]Write 4 bytes [23:22:43]NVStorageSaveData done [23:22:43]ExternCall_PrintAddStr [23:22:43]wPrintStart [23:22:43]Write to MH i2c: 01 00 00 0B 31 3C [23:22:43]Write i2c OK [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: 01 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: 01 07 00 [23:22:43]MH_I2C_Read... [23:22:43]Read from MH i2c: 01 07 00 0B 31 00 00 00 00 00 FF 0F 51 [23:22:43]RasterBufferAndPrint [23:22:43]line Счет N : (1)245285 [23:22:43]line ИНН: 02508201610067 [23:22:43]line Контрольно-Кассовый Чек [23:22:43]line ПРОДАЖА [23:22:43]line ТРК (МРК, ГНК) : 11 [23:22:43]line Товар: 2710124130 [23:22:43]line Аи-92-К-2 [23:22:43]line 10.000 * 0.00 [23:22:43]line = 0.00 [23:22:43]line НДС 12% НСП 1% [23:22:43]line > о реализуемом товаре [23:22:43]line ИТОГО: 0.00 [23:22:43]line НСП 1% : 0.00 [23:22:43]line НДС 12% : 0.00 [23:22:43]line Наличными: 0.00 [23:22:43]line Безнал.: 0.00 [23:22:43]line Место: АЗС № 173 "Партнер Нефть" [23:22:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:22:43]line СНО: Общий режим [23:22:43]line Чек 209 27.10.2024 23:22 [23:22:43]line Смена: 542 ФФД: 1.0 [23:22:43]line ЗНМ: 0300000115 [23:22:43]line РНМ: 0000000000091782 [23:22:43]line Версия ККМ: 001 [23:22:43]line Талоны: Топливные Талоны [23:22:43]line 4542342 [23:22:43]line ФМ: 0000000000871767 [23:22:43]line ФД: 117509 [23:22:43]line ФПД: 80836090315695 [23:22:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232245&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117509&fm=80836090315695&tin=02508201610067®Number=0000000000091782&sum=0 [23:22:43]OFD Sender: Processing packet 117509 [packets to send 76, broken 75] [23:22:43]ProducePacketName [23:22:43]name=ofd_packets/00117509 [23:22:43]OFD Sender: To server: pG, [23:22:43]CommunicateWithHost lk.salyk.kg:30040 [23:22:43]ConnectInit lk.salyk.kg [23:22:43]written 0, free lines is 4095 [23:22:43]Connected sock=10 [23:22: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 36 37 0F 01 00 00 2E F8 07 01 1E 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 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 D1 00 00 00 F4 03 04 00 45 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 05 CB 01 00 35 04 06 00 49 85 1E 72 C3 AF 23 6A 70 C6 BD 17 90 02 [23:22: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 36 37 4F 00 00 00 93 B5 47 00 8A 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 36 37 10 04 04 00 05 CB 01 00 F4 03 04 00 01 77 1E 67 B6 04 01 00 00 6B E9 83 48 1E E0 86 D2 [23:22:44]CommunicateWithHost err = 0 [23:22:44]CheckOFDResponse [23:22:44]1017 (14) - 77093643461234 [23:22:44]1041 (16) - 0000000000871767 [23:22:44]1040 (4) - 117509 [23:22:44]1012 (4) - 27.10.2024 17:23 [23:22:44]1206 (1) - 0 [23:22:44]OFD Sender: Remove packet 117509 [23:22:44]ProducePacketName [23:22:44]name=ofd_packets/00117509 [23:22:44]NVStorageDeleteData [23:22:44]Write to MH i2c: 01 00 00 34 31 65 [23:22:44]Write i2c OK [23:22:44]MH_I2C_Read... [23:22:44]Read from MH i2c: 01 [23:22:44]MH_I2C_Read... [23:22:44]Read from MH i2c: 01 07 00 [23:22:44]MH_I2C_Read... [23:22:44]Read from MH i2c: 01 07 00 34 31 00 00 00 00 00 D0 0C 48 [23:22:44]RasterBufferAndPrint [23:22:44]line [23:22:44]line [23:22:44]line [23:22:44]line [23:22:44]line [23:22:44]written 0, free lines is 3284 [23:22:44]MH_Cut [23:22:44]Write to MH i2c: D1 01 00 3B 31 01 3E [23:22:44]Write i2c OK [23:22:44]MH_I2C_Read... [23:22:44]Read from MH i2c: D1 [23:22:44]MH_I2C_Read... [23:22:44]Read from MH i2c: D1 01 00 [23:22:44]MH_I2C_Read... [23:22:44]Read from MH i2c: D1 01 00 3B 31 00 3D [23:22:44]Write to MH i2c: 01 00 00 3C 31 6D [23:22:44]Write i2c OK [23:22:44]MH_I2C_Read... [23:22:44]OFD Sender: No OFD packet to send [23:22:44]*** Cut start [23:22:44]*** Purtial cut [23:22:44]*** Stage 1: CUTSNS_PIN = 1 [23:22:45]Read from MH i2c: 01 [23:22:45]MH_I2C_Read... [23:22:45]*** Stop cut motor [23:22:45]*** Cut end [23:22:45]Read from MH i2c: 01 07 00 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: 01 07 00 3C 31 00 00 00 00 00 FF 0F 82 [23:22:45]process_action close_receipt done [23:22:45]requested_data is exist [23:22:45]produce_requested_data [23:22:45]requested_item fm.sn is exist - process it [23:22:45]wFMCommunicate request_size=4 [23:22:45]MH_SAM_APDU [23:22:45]CAPDU: 80 11 00 00 [23:22:45]Write to MH i2c: E2 08 00 3D 31 80 11 00 00 00 00 00 00 E8 [23:22:45]Write i2c OK [23:22:45]MH_I2C_Read... [23:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:45]Read from MH i2c: E2 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: E2 17 00 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: E2 17 00 3D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3F [23:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:22:45]wFMCommunicate OK [23:22:45]requested_item fd.num is exist - process it [23:22:45]SAM_PROTO_GetFieldsCounters [23:22:45]wFMCommunicate request_size=4 [23:22:45]MH_SAM_APDU [23:22:45]CAPDU: 80 13 00 00 [23:22:45]Write to MH i2c: E2 08 00 3E 31 80 13 00 00 00 00 00 00 EB [23:22:45]Write i2c OK [23:22:45]MH_I2C_Read... [23:22:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:45]Read from MH i2c: E2 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: E2 62 00 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: E2 62 00 3E 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 05 CB 01 00 0E 04 04 00 1E 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 76 [23:22: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 05 CB 01 00 0E 04 04 00 1E 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 [23:22:45]wFMCommunicate OK [23:22:45]SAM_PROTO_GetFieldsCounters done [23:22:45]requested_item shift.num is exist - process it [23:22:45]requested_item shift.opened is exist - process it [23:22:45]req_shift_opened [23:22:45]FM_GetShiftState [23:22:45]SAM_PROTO_GetShiftState [23:22:45]wFMCommunicate request_size=4 [23:22:45]MH_SAM_APDU [23:22:45]CAPDU: 80 13 01 00 [23:22:45]Write to MH i2c: E2 08 00 3F 31 80 13 01 00 00 00 00 00 ED [23:22:45]Write i2c OK [23:22:45]MH_I2C_Read... [23:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:45]Read from MH i2c: E2 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: E2 0E 00 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: E2 0E 00 3F 31 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2C [23:22:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:22:45]wFMCommunicate OK [23:22:45]SAM_PROTO_GetShiftState done [23:22:45]FM_GetShiftState done [23:22:45]req_shift_opened done [23:22:45]requested_item shift.open_date is exist - process it [23:22:45]req_shift_open_date [23:22:45]req_shift_open_date done [23:22:45]produce_requested_data done [23:22:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117509,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:22:45]process_action_free close_receipt [23:22:45]json_value_free [23:22:45]json_value_free done [23:22:45]process_json_proto returns [23:22:45]Send response to host [23:22:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117509,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:22:45]free response buf [23:22:45]execute_script done [23:22:45]execute_script returns [23:22:45]free content buf [23:22:45]Sock 7.Close socket [23:22:45]Sock 7.Thread stoped [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:28]accept exits with 9 [23:23:28]New connection [23:23:28]New thread 3067456868 created [23:23:28]Thread 3067600228 joined [23:23:28]Waiting for new connection... [23:23:28] Sock 9.Parse request [23:23:28]Sock 9.Check first char [23:23:28]Sock 9.First char is OK [23:23:28]request: POST /json_proto HTTP/1.0 [23:23:28]Method: POST [23:23:28]URL: /json_proto [23:23:28]Method is POST - this is cgi request [23:23:28]url: /json_proto [23:23:28]query_string will be loaded in cgi processing [23:23:28]execute_cgi json_proto POST (null) [23:23:28]execute_cgi path=json_proto method=POST [23:23:28]POST find Content-Length [23:23:28]Host: 172.17.96.67:8080 [23:23:28]Content-Length: 800 [23:23:28]Content-Type: application/json [23:23:28] [23:23:28]POST finish read [23:23:28]Found Content-Length = 800 [23:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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\u000A4542343", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:28]execute_script... [23:23: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)245286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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\u000A4542343", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:28]POST & json_proto [23:23:28]process_json_proto [23:23:28]json parsed OK: [23:23:28]protocol is kg_v1.0 [23:23:28]action value=close_receipt [23:23:28]process_action close_receipt [23:23:28]cmd_close_receipt [23:23:28]MH_GetDate [23:23:28]Write to MH i2c: F0 00 00 40 31 60 [23:23:28]Write i2c OK [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: F0 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: F0 09 00 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: F0 09 00 40 31 00 74 CB 1E 67 2B 09 1E 67 E6 [23:23:28]GetLastDocTimeStamp 1730071365 [23:23:28]current date 1730071412 [23:23:28]FM_GetShiftState [23:23:28]SAM_PROTO_GetShiftState [23:23:28]wFMCommunicate request_size=4 [23:23:28]MH_SAM_APDU [23:23:28]CAPDU: 80 13 01 00 [23:23:28]Write to MH i2c: E2 08 00 41 31 80 13 01 00 00 00 00 00 EF [23:23:28]Write i2c OK [23:23:28]MH_I2C_Read... [23:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:28]Read from MH i2c: E2 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: E2 0E 00 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: E2 0E 00 41 31 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 2E [23:23:28]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:23:28]wFMCommunicate OK [23:23:28]SAM_PROTO_GetShiftState done [23:23:28]FM_GetShiftState done [23:23:28]opened in 1729987372 [23:23:28]opened+sec_in_day 1730073772 [23:23:28]quantity*price = 0 [23:23:28]sum+1 = 1 [23:23:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 210 27.10.2024 23:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Талоны: Топливные Талоны 4542343 ФМ: 0000000000871767 ФД: 117510 ФПД: 240731700899850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232332&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117510&fm=240731700899850&tin=02508201610067®Number=0000000000091782&sum=0 [23:23:29]StoreToDocumentArchive [23:23:29]shift 542 fd 117510 [23:23:29]save to /storage/0542/doc_00117510 [23:23:29]save last doc name /storage/0542/doc_00117510 to /storage/kkm_last_doc_name [23:23:29]save OK [23:23:29]Clear old archive folders... [23:23:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:23:29]tlvbuf is 01769280 [23:23:29]SAM_PROTO_ClearQueue [23:23:29]wFMCommunicate request_size=4 [23:23:29]MH_SAM_APDU [23:23:29]CAPDU: 80 09 00 00 [23:23:29]Write to MH i2c: E2 08 00 4E 31 80 09 00 00 00 00 00 00 F1 [23:23:29]Write i2c OK [23:23:29]MH_I2C_Read... [23:23:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:29]Read from MH i2c: E2 [23:23:29]MH_I2C_Read... [23:23:29]Read from MH i2c: E2 03 00 [23:23:29]MH_I2C_Read... [23:23:29]Read from MH i2c: E2 03 00 4E 31 00 90 00 F3 [23:23:29]RAPDU: 90 00 [23:23:29]wFMCommunicate OK [23:23:29]SAM_PROTO_ClearQueue done [23:23:29]KKMCreateOFDPacket [23:23:29]OFDProtocolAddRootSTLVToBuf [23:23:29]FM_MakeSignedData [23:23:29]FM_MakeSignedData [23:23:29]SAM_PROTO_SignData [23:23:29]wFMCommunicate request_size=4 [23:23:29]MH_SAM_APDU [23:23:29]CAPDU: 80 0D 01 02 [23:23:29]Write to MH i2c: E2 08 00 4F 31 80 0D 01 02 00 00 00 00 F9 [23:23:29]Write i2c OK [23:23:29]MH_I2C_Read... [23:23:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:29]Read from MH i2c: E2 [23:23:29]MH_I2C_Read... [23:23:29]Read from MH i2c: E2 03 00 [23:23:29]MH_I2C_Read... [23:23:29]Read from MH i2c: E2 03 00 4F 31 00 90 00 F4 [23:23:29]RAPDU: 90 00 [23:23:29]wFMCommunicate OK [23:23:29]wFMCommunicate request_size=255 [23:23:29]MH_SAM_APDU [23:23: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 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 D2 00 00 00 F4 03 04 00 74 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 06 CB 01 00 35 04 06 00 DA [23:23:29]Write to MH i2c: E2 02 01 50 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 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 D2 00 00 00 F4 03 04 00 74 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 06 CB 01 00 35 04 06 00 DA 00 00 9F [23:23:29]Write i2c OK [23:23:29]MH_I2C_Read... [23:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:30]Read from MH i2c: E2 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 03 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 03 00 50 31 00 90 00 F5 [23:23:30]RAPDU: 90 00 [23:23:30]wFMCommunicate OK [23:23:30]wFMCommunicate request_size=10 [23:23:30]MH_SAM_APDU [23:23:30]CAPDU: 80 0D 02 02 05 F1 B7 84 B0 0A [23:23:30]Write to MH i2c: E2 0D 00 51 31 80 0D 02 02 05 00 F1 B7 84 B0 0A 00 00 EC [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:30]Read from MH i2c: E2 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 03 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 03 00 51 31 00 90 00 F6 [23:23:30]RAPDU: 90 00 [23:23:30]wFMCommunicate OK [23:23:30]wFMCommunicate request_size=4 [23:23:30]MH_SAM_APDU [23:23:30]CAPDU: 80 0D 03 02 [23:23:30]Write to MH i2c: E2 08 00 52 31 80 0D 03 02 00 00 00 00 FE [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:30]Read from MH i2c: E2 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 0B 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 0B 00 52 31 00 95 D0 17 81 A8 9E 8E 8B 90 00 5B [23:23:30]RAPDU: 95 D0 17 81 A8 9E 8E 8B 90 00 [23:23:30]wFMCommunicate OK [23:23:30]SAM_PROTO_SignData done [23:23:30]FM_MakeSignedData done [23:23:30]CreateOFDProtocolMessage [23:23:30]wFMCommunicate request_size=4 [23:23:30]MH_SAM_APDU [23:23:30]CAPDU: 80 11 00 00 [23:23:30]Write to MH i2c: E2 08 00 53 31 80 11 00 00 00 00 00 00 FE [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:30]Read from MH i2c: E2 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 17 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 17 00 53 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 55 [23:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:23:30]wFMCommunicate OK [23:23:30]CreateOFDProtocolMessage done [23:23:30]OFDSenderStorePacket 117510 [23:23:30]StoreOFDPacket docnum=117510 [23:23:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 74 BA 07 01 8D 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 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 D2 00 00 00 F4 03 04 00 74 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 06 CB 01 00 35 04 06 00 DA F1 B7 84 B0 0A 95 D0 17 81 A8 9E 8E 8B [23:23:30]CheckFolder [23:23:30]dirname=/storage/ofd_packets [23:23:30]CheckFolder done [23:23:30]ProducePacketName [23:23:30]name=ofd_packets/00117510 [23:23:30]NVStorageSaveData ofd_packets/00117510 [23:23:30]File name is /storage/ofd_packets/00117510 [23:23:30]Write 301 bytes [23:23:30]NVStorageSaveData done [23:23:30]OFDSenderStorePacket done [23:23:30]KKMCreateOFDPacket done [23:23:30]NVStorageSaveData kkm_last_timestamp [23:23:30]File name is /storage/kkm_last_timestamp [23:23:30]Write 4 bytes [23:23:30]NVStorageSaveData done [23:23:30]ExternCall_PrintAddStr [23:23:30]wPrintStart [23:23:30]Write to MH i2c: 01 00 00 54 31 85 [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: 01 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: 01 07 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: 01 07 00 54 31 00 00 00 00 00 FF 0F 9A [23:23:30]RasterBufferAndPrint [23:23:30]line Счет N : (1)245286 [23:23:30]line ИНН: 02508201610067 [23:23:30]line Контрольно-Кассовый Чек [23:23:30]line ПРОДАЖА [23:23:30]line ТРК (МРК, ГНК) : 11 [23:23:30]line Товар: 2710124130 [23:23:30]line Аи-92-К-2 [23:23:30]line 10.000 * 0.00 [23:23:30]line = 0.00 [23:23:30]line НДС 12% НСП 1% [23:23:30]line > о реализуемом товаре [23:23:30]line ИТОГО: 0.00 [23:23:30]line НСП 1% : 0.00 [23:23:30]line НДС 12% : 0.00 [23:23:30]line Наличными: 0.00 [23:23:30]line Безнал.: 0.00 [23:23:30]line Место: АЗС № 173 "Партнер Нефть" [23:23:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:23:30]line СНО: Общий режим [23:23:30]line Чек 210 27.10.2024 23:23 [23:23:30]line Смена: 542 ФФД: 1.0 [23:23:30]line ЗНМ: 0300000115 [23:23:30]line РНМ: 0000000000091782 [23:23:30]line Версия ККМ: 001 [23:23:30]line Талоны: Топливные Талоны [23:23:30]line 4542343 [23:23:30]line ФМ: 0000000000871767 [23:23:30]line ФД: 117510 [23:23:30]line ФПД: 240731700899850 [23:23:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232332&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117510&fm=240731700899850&tin=02508201610067®Number=0000000000091782&sum=0 [23:23:30]written 0, free lines is 4095 [23:23:30]OFD Sender: Processing packet 117510 [packets to send 76, broken 75] [23:23:30]ProducePacketName [23:23:30]name=ofd_packets/00117510 [23:23:30]OFD Sender: To server: pG, [23:23:30]CommunicateWithHost lk.salyk.kg:30040 [23:23:30]ConnectInit lk.salyk.kg [23:23:30]Connected sock=11 [23:23: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 36 37 0F 01 00 00 74 BA 07 01 8D 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 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 D2 00 00 00 F4 03 04 00 74 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 06 CB 01 00 35 04 06 00 DA F1 B7 84 B0 0A 95 D0 17 81 A8 9E 8E 8B [23:23: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 36 37 4F 00 00 00 96 61 47 00 9E 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 36 37 10 04 04 00 06 CB 01 00 F4 03 04 00 30 77 1E 67 B6 04 01 00 00 53 14 09 A0 B4 8F 91 A8 [23:23:30]CommunicateWithHost err = 0 [23:23:30]CheckOFDResponse [23:23:30]1017 (14) - 77093643461234 [23:23:30]1041 (16) - 0000000000871767 [23:23:30]1040 (4) - 117510 [23:23:30]1012 (4) - 27.10.2024 17:24 [23:23:30]1206 (1) - 0 [23:23:30]OFD Sender: Remove packet 117510 [23:23:30]ProducePacketName [23:23:30]name=ofd_packets/00117510 [23:23:30]NVStorageDeleteData [23:23:30]Write to MH i2c: 01 00 00 7D 31 AE [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: 01 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: 01 07 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: 01 07 00 7D 31 00 00 00 00 00 DF 0C A0 [23:23:30]RasterBufferAndPrint [23:23:30]line [23:23:30]line [23:23:30]line [23:23:30]line [23:23:30]line [23:23:30]written 0, free lines is 3301 [23:23:30]MH_Cut [23:23:30]Write to MH i2c: D1 01 00 84 31 01 87 [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: D1 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: D1 01 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: D1 01 00 84 31 00 86 [23:23:30]Write to MH i2c: 01 00 00 85 31 B6 [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:31]OFD Sender: No OFD packet to send [23:23:31]*** Cut start [23:23:31]*** Purtial cut [23:23:31]*** Stage 1: CUTSNS_PIN = 1 [23:23:31]Read from MH i2c: 01 [23:23:31]MH_I2C_Read... [23:23:31]*** Stop cut motor [23:23:31]*** Cut end [23:23:31]Read from MH i2c: 01 07 00 [23:23:31]MH_I2C_Read... [23:23:31]Read from MH i2c: 01 07 00 85 31 00 00 00 00 00 FF 0F CB [23:23:31]process_action close_receipt done [23:23:31]requested_data is exist [23:23:31]produce_requested_data [23:23:31]requested_item fm.sn is exist - process it [23:23:31]wFMCommunicate request_size=4 [23:23:31]MH_SAM_APDU [23:23:31]CAPDU: 80 11 00 00 [23:23:31]Write to MH i2c: E2 08 00 86 31 80 11 00 00 00 00 00 00 31 [23:23:31]Write i2c OK [23:23:31]MH_I2C_Read... [23:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:32]Read from MH i2c: E2 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 17 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 17 00 86 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 88 [23:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:23:32]wFMCommunicate OK [23:23:32]requested_item fd.num is exist - process it [23:23:32]SAM_PROTO_GetFieldsCounters [23:23:32]wFMCommunicate request_size=4 [23:23:32]MH_SAM_APDU [23:23:32]CAPDU: 80 13 00 00 [23:23:32]Write to MH i2c: E2 08 00 87 31 80 13 00 00 00 00 00 00 34 [23:23:32]Write i2c OK [23:23:32]MH_I2C_Read... [23:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:32]Read from MH i2c: E2 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 62 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 62 00 87 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 06 CB 01 00 0E 04 04 00 1E 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 C3 [23:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 06 CB 01 00 0E 04 04 00 1E 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 [23:23:32]wFMCommunicate OK [23:23:32]SAM_PROTO_GetFieldsCounters done [23:23:32]requested_item shift.num is exist - process it [23:23:32]requested_item shift.opened is exist - process it [23:23:32]req_shift_opened [23:23:32]FM_GetShiftState [23:23:32]SAM_PROTO_GetShiftState [23:23:32]wFMCommunicate request_size=4 [23:23:32]MH_SAM_APDU [23:23:32]CAPDU: 80 13 01 00 [23:23:32]Write to MH i2c: E2 08 00 88 31 80 13 01 00 00 00 00 00 36 [23:23:32]Write i2c OK [23:23:32]MH_I2C_Read... [23:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:32]Read from MH i2c: E2 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 0E 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 0E 00 88 31 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 75 [23:23:32]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:23:32]wFMCommunicate OK [23:23:32]SAM_PROTO_GetShiftState done [23:23:32]FM_GetShiftState done [23:23:32]req_shift_opened done [23:23:32]requested_item shift.open_date is exist - process it [23:23:32]req_shift_open_date [23:23:32]req_shift_open_date done [23:23:32]produce_requested_data done [23:23:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117510,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:23:32]process_action_free close_receipt [23:23:32]json_value_free [23:23:32]json_value_free done [23:23:32]process_json_proto returns [23:23:32]Send response to host [23:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117510,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:23:32]free response buf [23:23:32]execute_script done [23:23:32]execute_script returns [23:23:32]free content buf [23:23:32]Sock 9.Close socket [23:23:32]Sock 9.Thread stoped [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:21]accept exits with 7 [23:24:21]New connection [23:24:21]New thread 3067600228 created [23:24:21]Thread 3067456868 joined [23:24:21]Waiting for new connection... [23:24:21] Sock 7.Parse request [23:24:21]Sock 7.Check first char [23:24:21]Sock 7.First char is OK [23:24:21]request: POST /json_proto HTTP/1.0 [23:24:21]Method: POST [23:24:21]URL: /json_proto [23:24:21]Method is POST - this is cgi request [23:24:21]url: /json_proto [23:24:21]query_string will be loaded in cgi processing [23:24:21]execute_cgi json_proto POST (null) [23:24:21]execute_cgi path=json_proto method=POST [23:24:21]POST find Content-Length [23:24:21]Host: 172.17.96.67:8080 [23:24:21]Content-Length: 800 [23:24:21]Content-Type: application/json [23:24:21] [23:24:21]POST finish read [23:24:21]Found Content-Length = 800 [23:24:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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\u000A4542344", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:21]execute_script... [23:24:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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\u000A4542344", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:21]POST & json_proto [23:24:21]process_json_proto [23:24:21]json parsed OK: [23:24:21]protocol is kg_v1.0 [23:24:21]action value=close_receipt [23:24:21]process_action close_receipt [23:24:21]cmd_close_receipt [23:24:21]MH_GetDate [23:24:21]Write to MH i2c: F0 00 00 89 31 A9 [23:24:21]Write i2c OK [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: F0 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: F0 09 00 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: F0 09 00 89 31 00 A9 CB 1E 67 2B 09 1E 67 64 [23:24:21]GetLastDocTimeStamp 1730071412 [23:24:21]current date 1730071465 [23:24:21]FM_GetShiftState [23:24:21]SAM_PROTO_GetShiftState [23:24:21]wFMCommunicate request_size=4 [23:24:21]MH_SAM_APDU [23:24:21]CAPDU: 80 13 01 00 [23:24:21]Write to MH i2c: E2 08 00 8A 31 80 13 01 00 00 00 00 00 38 [23:24:21]Write i2c OK [23:24:21]MH_I2C_Read... [23:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:21]Read from MH i2c: E2 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: E2 0E 00 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: E2 0E 00 8A 31 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 77 [23:24:21]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:24:21]wFMCommunicate OK [23:24:21]SAM_PROTO_GetShiftState done [23:24:21]FM_GetShiftState done [23:24:21]opened in 1729987372 [23:24:21]opened+sec_in_day 1730073772 [23:24:21]quantity*price = 0 [23:24:21]sum+1 = 1 [23:24:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 211 27.10.2024 23:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Талоны: Топливные Талоны 4542344 ФМ: 0000000000871767 ФД: 117511 ФПД: 212444860410072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232425&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117511&fm=212444860410072&tin=02508201610067®Number=0000000000091782&sum=0 [23:24:22]StoreToDocumentArchive [23:24:22]shift 542 fd 117511 [23:24:22]save to /storage/0542/doc_00117511 [23:24:22]save last doc name /storage/0542/doc_00117511 to /storage/kkm_last_doc_name [23:24:22]save OK [23:24:22]Clear old archive folders... [23:24:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:22]tlvbuf is 01813040 [23:24:22]SAM_PROTO_ClearQueue [23:24:22]wFMCommunicate request_size=4 [23:24:22]MH_SAM_APDU [23:24:22]CAPDU: 80 09 00 00 [23:24:22]Write to MH i2c: E2 08 00 97 31 80 09 00 00 00 00 00 00 3A [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:22]Read from MH i2c: E2 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 03 00 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 03 00 97 31 00 90 00 3C [23:24:22]RAPDU: 90 00 [23:24:22]wFMCommunicate OK [23:24:22]SAM_PROTO_ClearQueue done [23:24:22]KKMCreateOFDPacket [23:24:22]OFDProtocolAddRootSTLVToBuf [23:24:22]FM_MakeSignedData [23:24:22]FM_MakeSignedData [23:24:22]SAM_PROTO_SignData [23:24:22]wFMCommunicate request_size=4 [23:24:22]MH_SAM_APDU [23:24:22]CAPDU: 80 0D 01 02 [23:24:22]Write to MH i2c: E2 08 00 98 31 80 0D 01 02 00 00 00 00 42 [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:22]Read from MH i2c: E2 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 03 00 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 03 00 98 31 00 90 00 3D [23:24:22]RAPDU: 90 00 [23:24:22]wFMCommunicate OK [23:24:22]wFMCommunicate request_size=255 [23:24:22]MH_SAM_APDU [23:24:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D3 00 00 00 F4 03 04 00 A9 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 07 CB 01 00 35 04 06 00 C1 [23:24:22]Write to MH i2c: E2 02 01 99 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 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 D3 00 00 00 F4 03 04 00 A9 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 07 CB 01 00 35 04 06 00 C1 00 00 06 [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 03 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 03 00 99 31 00 90 00 3E [23:24:23]RAPDU: 90 00 [23:24:23]wFMCommunicate OK [23:24:23]wFMCommunicate request_size=10 [23:24:23]MH_SAM_APDU [23:24:23]CAPDU: 80 0D 02 02 05 37 AC 70 68 D8 [23:24:23]Write to MH i2c: E2 0D 00 9A 31 80 0D 02 02 05 00 37 AC 70 68 D8 00 00 E2 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 03 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 03 00 9A 31 00 90 00 3F [23:24:23]RAPDU: 90 00 [23:24:23]wFMCommunicate OK [23:24:23]wFMCommunicate request_size=4 [23:24:23]MH_SAM_APDU [23:24:23]CAPDU: 80 0D 03 02 [23:24:23]Write to MH i2c: E2 08 00 9B 31 80 0D 03 02 00 00 00 00 47 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 0B 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 0B 00 9B 31 00 D4 E0 CB 7C 6F 55 54 5E 90 00 B9 [23:24:23]RAPDU: D4 E0 CB 7C 6F 55 54 5E 90 00 [23:24:23]wFMCommunicate OK [23:24:23]SAM_PROTO_SignData done [23:24:23]FM_MakeSignedData done [23:24:23]CreateOFDProtocolMessage [23:24:23]wFMCommunicate request_size=4 [23:24:23]MH_SAM_APDU [23:24:23]CAPDU: 80 11 00 00 [23:24:23]Write to MH i2c: E2 08 00 9C 31 80 11 00 00 00 00 00 00 47 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 17 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 17 00 9C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9E [23:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:24:23]wFMCommunicate OK [23:24:23]CreateOFDProtocolMessage done [23:24:23]OFDSenderStorePacket 117511 [23:24:23]StoreOFDPacket docnum=117511 [23:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 99 58 07 01 6F 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 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 D3 00 00 00 F4 03 04 00 A9 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 07 CB 01 00 35 04 06 00 C1 37 AC 70 68 D8 D4 E0 CB 7C 6F 55 54 5E [23:24:23]CheckFolder [23:24:23]dirname=/storage/ofd_packets [23:24:23]CheckFolder done [23:24:23]ProducePacketName [23:24:23]name=ofd_packets/00117511 [23:24:23]NVStorageSaveData ofd_packets/00117511 [23:24:23]File name is /storage/ofd_packets/00117511 [23:24:23]Write 301 bytes [23:24:23]NVStorageSaveData done [23:24:23]OFDSenderStorePacket done [23:24:23]KKMCreateOFDPacket done [23:24:23]NVStorageSaveData kkm_last_timestamp [23:24:23]File name is /storage/kkm_last_timestamp [23:24:23]Write 4 bytes [23:24:23]NVStorageSaveData done [23:24:23]ExternCall_PrintAddStr [23:24:23]wPrintStart [23:24:23]Write to MH i2c: 01 00 00 9D 31 CE [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 9D 31 00 00 00 00 00 FF 0F E3 [23:24:23]RasterBufferAndPrint [23:24:23]line Счет N : (1)245287 [23:24:23]line ИНН: 02508201610067 [23:24:23]line Контрольно-Кассовый Чек [23:24:23]line ПРОДАЖА [23:24:23]line ТРК (МРК, ГНК) : 11 [23:24:23]line Товар: 2710124130 [23:24:23]line Аи-92-К-2 [23:24:23]line 10.000 * 0.00 [23:24:23]line = 0.00 [23:24:23]line НДС 12% НСП 1% [23:24:23]line > о реализуемом товаре [23:24:23]line ИТОГО: 0.00 [23:24:23]line НСП 1% : 0.00 [23:24:23]line НДС 12% : 0.00 [23:24:23]line Наличными: 0.00 [23:24:23]line Безнал.: 0.00 [23:24:23]line Место: АЗС № 173 "Партнер Нефть" [23:24:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:24:23]line СНО: Общий режим [23:24:23]line Чек 211 27.10.2024 23:24 [23:24:23]line Смена: 542 ФФД: 1.0 [23:24:23]line ЗНМ: 0300000115 [23:24:23]line РНМ: 0000000000091782 [23:24:23]line Версия ККМ: 001 [23:24:23]line Талоны: Топливные Талоны [23:24:23]line 4542344 [23:24:23]line ФМ: 0000000000871767 [23:24:23]line ФД: 117511 [23:24:23]line ФПД: 212444860410072 [23:24:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232425&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117511&fm=212444860410072&tin=02508201610067®Number=0000000000091782&sum=0 [23:24:23]written 0, free lines is 4095 [23:24:23]OFD Sender: Processing packet 117511 [packets to send 76, broken 75] [23:24:23]ProducePacketName [23:24:23]name=ofd_packets/00117511 [23:24:23]OFD Sender: To server: pG, [23:24:23]CommunicateWithHost lk.salyk.kg:30040 [23:24:23]ConnectInit lk.salyk.kg [23:24:23]Connected sock=11 [23:24:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 99 58 07 01 6F 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 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 D3 00 00 00 F4 03 04 00 A9 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 07 CB 01 00 35 04 06 00 C1 37 AC 70 68 D8 D4 E0 CB 7C 6F 55 54 5E [23:24:23]Write to MH i2c: 01 00 00 C6 31 F7 [23:24: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 36 37 4F 00 00 00 A5 38 47 00 D7 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 36 37 10 04 04 00 07 CB 01 00 F4 03 04 00 65 77 1E 67 B6 04 01 00 00 EA 1B 3E 6C 16 1F EB E8 [23:24:23]CommunicateWithHost err = 0 [23:24:23]CheckOFDResponse [23:24:23]1017 (14) - 77093643461234 [23:24:23]1041 (16) - 0000000000871767 [23:24:23]1040 (4) - 117511 [23:24:23]1012 (4) - 27.10.2024 17:24 [23:24:23]1206 (1) - 0 [23:24:23]OFD Sender: Remove packet 117511 [23:24:23]ProducePacketName [23:24:23]name=ofd_packets/00117511 [23:24:23]NVStorageDeleteData [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 C6 31 00 00 00 00 00 DE 0C E8 [23:24:23]RasterBufferAndPrint [23:24:23]line [23:24:23]line [23:24:23]line [23:24:23]line [23:24:23]line [23:24:23]written 0, free lines is 3318 [23:24:23]MH_Cut [23:24:23]Write to MH i2c: D1 01 00 CD 31 01 D0 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: D1 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: D1 01 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: D1 01 00 CD 31 00 CF [23:24:23]Write to MH i2c: 01 00 00 CE 31 FF [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:24]OFD Sender: No OFD packet to send [23:24:24]*** Cut start [23:24:24]*** Purtial cut [23:24:24]*** Stage 1: CUTSNS_PIN = 1 [23:24:24]Read from MH i2c: 01 [23:24:24]MH_I2C_Read... [23:24:24]*** Stop cut motor [23:24:24]*** Cut end [23:24:24]Read from MH i2c: 01 07 00 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: 01 07 00 CE 31 00 00 00 00 00 FF 0F 14 [23:24:24]process_action close_receipt done [23:24:24]requested_data is exist [23:24:24]produce_requested_data [23:24:24]requested_item fm.sn is exist - process it [23:24:24]wFMCommunicate request_size=4 [23:24:24]MH_SAM_APDU [23:24:24]CAPDU: 80 11 00 00 [23:24:24]Write to MH i2c: E2 08 00 CF 31 80 11 00 00 00 00 00 00 7A [23:24:24]Write i2c OK [23:24:24]MH_I2C_Read... [23:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:24]Read from MH i2c: E2 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: E2 17 00 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: E2 17 00 CF 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D1 [23:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:24:24]wFMCommunicate OK [23:24:24]requested_item fd.num is exist - process it [23:24:24]SAM_PROTO_GetFieldsCounters [23:24:24]wFMCommunicate request_size=4 [23:24:24]MH_SAM_APDU [23:24:24]CAPDU: 80 13 00 00 [23:24:24]Write to MH i2c: E2 08 00 D0 31 80 13 00 00 00 00 00 00 7D [23:24:24]Write i2c OK [23:24:24]MH_I2C_Read... [23:24:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:25]Read from MH i2c: E2 [23:24:25]MH_I2C_Read... [23:24:25]Read from MH i2c: E2 62 00 [23:24:25]MH_I2C_Read... [23:24:25]Read from MH i2c: E2 62 00 D0 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 07 CB 01 00 0E 04 04 00 1E 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 10 [23:24: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 07 CB 01 00 0E 04 04 00 1E 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 [23:24:25]wFMCommunicate OK [23:24:25]SAM_PROTO_GetFieldsCounters done [23:24:25]requested_item shift.num is exist - process it [23:24:25]requested_item shift.opened is exist - process it [23:24:25]req_shift_opened [23:24:25]FM_GetShiftState [23:24:25]SAM_PROTO_GetShiftState [23:24:25]wFMCommunicate request_size=4 [23:24:25]MH_SAM_APDU [23:24:25]CAPDU: 80 13 01 00 [23:24:25]Write to MH i2c: E2 08 00 D1 31 80 13 01 00 00 00 00 00 7F [23:24:25]Write i2c OK [23:24:25]MH_I2C_Read... [23:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:25]Read from MH i2c: E2 [23:24:25]MH_I2C_Read... [23:24:25]Read from MH i2c: E2 0E 00 [23:24:25]MH_I2C_Read... [23:24:25]Read from MH i2c: E2 0E 00 D1 31 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 BE [23:24:25]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:24:25]wFMCommunicate OK [23:24:25]SAM_PROTO_GetShiftState done [23:24:25]FM_GetShiftState done [23:24:25]req_shift_opened done [23:24:25]requested_item shift.open_date is exist - process it [23:24:25]req_shift_open_date [23:24:25]req_shift_open_date done [23:24:25]produce_requested_data done [23:24:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117511,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:24:25]process_action_free close_receipt [23:24:25]json_value_free [23:24:25]json_value_free done [23:24:25]process_json_proto returns [23:24:25]Send response to host [23:24:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117511,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:24:25]free response buf [23:24:25]execute_script done [23:24:25]execute_script returns [23:24:25]free content buf [23:24:25]Sock 7.Close socket [23:24:25]Sock 7.Thread stoped [23:24:26]accept exits with 9 [23:24:26]New connection [23:24:26]New thread 3067456868 created [23:24:26]Thread 3067600228 joined [23:24:26]Waiting for new connection... [23:24:26] Sock 9.Parse request [23:24:26]Sock 9.Check first char [23:24:26]Sock 9.First char is OK [23:24:26]request: POST /json_proto HTTP/1.0 [23:24:26]Method: POST [23:24:26]URL: /json_proto [23:24:26]Method is POST - this is cgi request [23:24:26]url: /json_proto [23:24:26]query_string will be loaded in cgi processing [23:24:26]execute_cgi json_proto POST (null) [23:24:26]execute_cgi path=json_proto method=POST [23:24:26]POST find Content-Length [23:24:26]Host: 172.17.96.67:8080 [23:24:26]Content-Length: 674 [23:24:26]Content-Type: application/json [23:24:26] [23:24:26]POST finish read [23:24:26]Found Content-Length = 674 [23:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [23:24:26]execute_script... [23:24:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [23:24:26]POST & json_proto [23:24:26]process_json_proto [23:24:26]json parsed OK: [23:24:26]protocol is kg_v1.0 [23:24:26]action value=close_receipt [23:24:26]process_action close_receipt [23:24:26]cmd_close_receipt [23:24:26]MH_GetDate [23:24:26]Write to MH i2c: F0 00 00 D2 31 F2 [23:24:26]Write i2c OK [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: F0 [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: F0 09 00 [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: F0 09 00 D2 31 00 AE CB 1E 67 2B 09 1E 67 B2 [23:24:26]GetLastDocTimeStamp 1730071465 [23:24:26]current date 1730071470 [23:24:26]FM_GetShiftState [23:24:26]SAM_PROTO_GetShiftState [23:24:26]wFMCommunicate request_size=4 [23:24:26]MH_SAM_APDU [23:24:26]CAPDU: 80 13 01 00 [23:24:26]Write to MH i2c: E2 08 00 D3 31 80 13 01 00 00 00 00 00 81 [23:24:26]Write i2c OK [23:24:26]MH_I2C_Read... [23:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:26]Read from MH i2c: E2 [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: E2 0E 00 [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: E2 0E 00 D3 31 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 C0 [23:24:26]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:24:26]wFMCommunicate OK [23:24:26]SAM_PROTO_GetShiftState done [23:24:26]FM_GetShiftState done [23:24:26]opened in 1729987372 [23:24:26]opened+sec_in_day 1730073772 [23:24:26]quantity*price = 50063 [23:24:26]sum+1 = 50064 [23:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 212 27.10.2024 23:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117512 ФПД: 178769558433374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232430&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117512&fm=178769558433374&tin=02508201610067®Number=0000000000091782&sum=50000 [23:24:27]StoreToDocumentArchive [23:24:27]shift 542 fd 117512 [23:24:27]save to /storage/0542/doc_00117512 [23:24:27]save last doc name /storage/0542/doc_00117512 to /storage/kkm_last_doc_name [23:24:27]save OK [23:24:27]Clear old archive folders... [23:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:24:27]tlvbuf is 017698E0 [23:24:27]SAM_PROTO_ClearQueue [23:24:27]wFMCommunicate request_size=4 [23:24:27]MH_SAM_APDU [23:24:27]CAPDU: 80 09 00 00 [23:24:27]Write to MH i2c: E2 08 00 E0 31 80 09 00 00 00 00 00 00 83 [23:24:27]Write i2c OK [23:24:27]MH_I2C_Read... [23:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:27]Read from MH i2c: E2 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 03 00 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 03 00 E0 31 00 90 00 85 [23:24:27]RAPDU: 90 00 [23:24:27]wFMCommunicate OK [23:24:27]SAM_PROTO_ClearQueue done [23:24:27]KKMCreateOFDPacket [23:24:27]OFDProtocolAddRootSTLVToBuf [23:24:27]FM_MakeSignedData [23:24:27]FM_MakeSignedData [23:24:27]SAM_PROTO_SignData [23:24:27]wFMCommunicate request_size=4 [23:24:27]MH_SAM_APDU [23:24:27]CAPDU: 80 0D 01 02 [23:24:27]Write to MH i2c: E2 08 00 E1 31 80 0D 01 02 00 00 00 00 8B [23:24:27]Write i2c OK [23:24:27]MH_I2C_Read... [23:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:27]Read from MH i2c: E2 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 03 00 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 03 00 E1 31 00 90 00 86 [23:24:27]RAPDU: 90 00 [23:24:27]wFMCommunicate OK [23:24:27]wFMCommunicate request_size=255 [23:24:27]MH_SAM_APDU [23:24: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 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 D4 00 00 00 F4 03 04 00 AE CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 08 CB 01 00 35 04 06 00 A2 97 08 06 [23:24:27]Write to MH i2c: E2 02 01 E2 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 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 D4 00 00 00 F4 03 04 00 AE CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 08 CB 01 00 35 04 06 00 A2 97 08 06 00 00 A8 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:28]Read from MH i2c: E2 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 03 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 03 00 E2 31 00 90 00 87 [23:24:28]RAPDU: 90 00 [23:24:28]wFMCommunicate OK [23:24:28]wFMCommunicate request_size=7 [23:24:28]MH_SAM_APDU [23:24:28]CAPDU: 80 0D 02 02 02 EE 5E [23:24:28]Write to MH i2c: E2 0A 00 E3 31 80 0D 02 02 02 00 EE 5E 00 00 DE [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:28]Read from MH i2c: E2 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 03 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 03 00 E3 31 00 90 00 88 [23:24:28]RAPDU: 90 00 [23:24:28]wFMCommunicate OK [23:24:28]wFMCommunicate request_size=4 [23:24:28]MH_SAM_APDU [23:24:28]CAPDU: 80 0D 03 02 [23:24:28]Write to MH i2c: E2 08 00 E4 31 80 0D 03 02 00 00 00 00 90 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:28]Read from MH i2c: E2 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 0B 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 0B 00 E4 31 00 D9 79 E4 17 BC A5 1E 67 90 00 C4 [23:24:28]RAPDU: D9 79 E4 17 BC A5 1E 67 90 00 [23:24:28]wFMCommunicate OK [23:24:28]SAM_PROTO_SignData done [23:24:28]FM_MakeSignedData done [23:24:28]CreateOFDProtocolMessage [23:24:28]wFMCommunicate request_size=4 [23:24:28]MH_SAM_APDU [23:24:28]CAPDU: 80 11 00 00 [23:24:28]Write to MH i2c: E2 08 00 E5 31 80 11 00 00 00 00 00 00 90 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:28]Read from MH i2c: E2 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 17 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 17 00 E5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E7 [23:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:24:28]wFMCommunicate OK [23:24:28]CreateOFDProtocolMessage done [23:24:28]OFDSenderStorePacket 117512 [23:24:28]StoreOFDPacket docnum=117512 [23:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 E7 08 04 01 36 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 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 D4 00 00 00 F4 03 04 00 AE CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 08 CB 01 00 35 04 06 00 A2 97 08 06 EE 5E D9 79 E4 17 BC A5 1E 67 [23:24:28]CheckFolder [23:24:28]dirname=/storage/ofd_packets [23:24:28]CheckFolder done [23:24:28]ProducePacketName [23:24:28]name=ofd_packets/00117512 [23:24:28]NVStorageSaveData ofd_packets/00117512 [23:24:28]File name is /storage/ofd_packets/00117512 [23:24:28]Write 298 bytes [23:24:28]NVStorageSaveData done [23:24:28]OFDSenderStorePacket done [23:24:28]KKMCreateOFDPacket done [23:24:28]NVStorageSaveData kkm_last_timestamp [23:24:28]File name is /storage/kkm_last_timestamp [23:24:28]Write 4 bytes [23:24:28]NVStorageSaveData done [23:24:28]ExternCall_PrintAddStr [23:24:28]wPrintStart [23:24:28]Write to MH i2c: 01 00 00 E6 31 17 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 07 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 07 00 E6 31 00 00 00 00 00 FF 0F 2C [23:24:28]RasterBufferAndPrint [23:24:28]line Счет N : (1)245288 [23:24:28]line ИНН: 02508201610067 [23:24:28]line Контрольно-Кассовый Чек [23:24:28]line ПРОДАЖА [23:24:28]line ТРК (МРК, ГНК) : 23 [23:24:28]line Товар: 2710194210 [23:24:28]line ДТ-К-2 [23:24:28]line 6.570 * 76.20 [23:24:28]line = 500.63 [23:24:28]line НДС 12% НСП 1% [23:24:28]line > о реализуемом товаре [23:24:28]line ОКРУГЛЕНИЕ: -0.63 [23:24:28]line ИТОГО: 500.00 [23:24:28]line Внесено: 500.00 [23:24:28]line СДАЧА: 0.00 [23:24:28]line НСП 1% : 4.43 [23:24:28]line НДС 12% : 53.16 [23:24:28]line Наличными: 500.00 [23:24:28]line Безнал.: 0.00 [23:24:28]line Место: АЗС № 173 "Партнер Нефть" [23:24:28]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:24:28]line СНО: Общий режим [23:24:28]line Чек 212 27.10.2024 23:24 [23:24:28]line Смена: 542 ФФД: 1.0 [23:24:28]line ЗНМ: 0300000115 [23:24:28]line РНМ: 0000000000091782 [23:24:28]line Версия ККМ: 001 [23:24:28]line ФМ: 0000000000871767 [23:24:28]line ФД: 117512 [23:24:28]line ФПД: 178769558433374 [23:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232430&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117512&fm=178769558433374&tin=02508201610067®Number=0000000000091782&sum=50000 [23:24:28]written 0, free lines is 4095 [23:24:28]OFD Sender: Processing packet 117512 [packets to send 76, broken 75] [23:24:28]ProducePacketName [23:24:28]name=ofd_packets/00117512 [23:24:28]OFD Sender: To server: pG, [23:24:28]CommunicateWithHost lk.salyk.kg:30040 [23:24:28]ConnectInit lk.salyk.kg [23:24:28]Connected sock=10 [23:24: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 36 37 0C 01 00 00 E7 08 04 01 36 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 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 D4 00 00 00 F4 03 04 00 AE CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 08 CB 01 00 35 04 06 00 A2 97 08 06 EE 5E D9 79 E4 17 BC A5 1E 67 [23:24: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 36 37 4F 00 00 00 18 2F 47 00 EE 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 36 37 10 04 04 00 08 CB 01 00 F4 03 04 00 6A 77 1E 67 B6 04 01 00 00 F1 BE 09 41 4B 89 AB F9 [23:24:28]CommunicateWithHost err = 0 [23:24:28]CheckOFDResponse [23:24:28]1017 (14) - 77093643461234 [23:24:28]1041 (16) - 0000000000871767 [23:24:28]1040 (4) - 117512 [23:24:28]1012 (4) - 27.10.2024 17:24 [23:24:28]1206 (1) - 0 [23:24:28]OFD Sender: Remove packet 117512 [23:24:28]ProducePacketName [23:24:28]name=ofd_packets/00117512 [23:24:28]NVStorageDeleteData [23:24:28]Write to MH i2c: 01 00 00 10 32 42 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 07 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 07 00 10 32 00 00 00 00 00 D5 0C 2A [23:24:28]RasterBufferAndPrint [23:24:28]line [23:24:28]line [23:24:28]line [23:24:28]line [23:24:28]line [23:24:28]written 0, free lines is 3297 [23:24:28]MH_Cut [23:24:28]Write to MH i2c: D1 01 00 17 32 01 1B [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: D1 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: D1 01 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: D1 01 00 17 32 00 1A [23:24:28]Write to MH i2c: 01 00 00 18 32 4A [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:29]OFD Sender: No OFD packet to send [23:24:29]*** Cut start [23:24:29]*** Purtial cut [23:24:29]*** Stage 1: CUTSNS_PIN = 1 [23:24:29]Read from MH i2c: 01 [23:24:30]MH_I2C_Read... [23:24:30]*** Stop cut motor [23:24:30]*** Cut end [23:24:30]Read from MH i2c: 01 07 00 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: 01 07 00 18 32 00 00 00 00 00 FF 0F 5F [23:24:30]process_action close_receipt done [23:24:30]requested_data is exist [23:24:30]produce_requested_data [23:24:30]requested_item fm.sn is exist - process it [23:24:30]wFMCommunicate request_size=4 [23:24:30]MH_SAM_APDU [23:24:30]CAPDU: 80 11 00 00 [23:24:30]Write to MH i2c: E2 08 00 19 32 80 11 00 00 00 00 00 00 C5 [23:24:30]Write i2c OK [23:24:30]MH_I2C_Read... [23:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:30]Read from MH i2c: E2 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: E2 17 00 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: E2 17 00 19 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1C [23:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:24:30]wFMCommunicate OK [23:24:30]requested_item fd.num is exist - process it [23:24:30]SAM_PROTO_GetFieldsCounters [23:24:30]wFMCommunicate request_size=4 [23:24:30]MH_SAM_APDU [23:24:30]CAPDU: 80 13 00 00 [23:24:30]Write to MH i2c: E2 08 00 1A 32 80 13 00 00 00 00 00 00 C8 [23:24:30]Write i2c OK [23:24:30]MH_I2C_Read... [23:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:30]Read from MH i2c: E2 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: E2 62 00 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: E2 62 00 1A 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 08 CB 01 00 0E 04 04 00 1E 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 5F [23:24: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 08 CB 01 00 0E 04 04 00 1E 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 [23:24:30]wFMCommunicate OK [23:24:30]SAM_PROTO_GetFieldsCounters done [23:24:30]requested_item shift.num is exist - process it [23:24:30]requested_item shift.opened is exist - process it [23:24:30]req_shift_opened [23:24:30]FM_GetShiftState [23:24:30]SAM_PROTO_GetShiftState [23:24:30]wFMCommunicate request_size=4 [23:24:30]MH_SAM_APDU [23:24:30]CAPDU: 80 13 01 00 [23:24:30]Write to MH i2c: E2 08 00 1B 32 80 13 01 00 00 00 00 00 CA [23:24:30]Write i2c OK [23:24:30]MH_I2C_Read... [23:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:30]Read from MH i2c: E2 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: E2 0E 00 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: E2 0E 00 1B 32 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 09 [23:24:30]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:24:30]wFMCommunicate OK [23:24:30]SAM_PROTO_GetShiftState done [23:24:30]FM_GetShiftState done [23:24:30]req_shift_opened done [23:24:30]requested_item shift.open_date is exist - process it [23:24:30]req_shift_open_date [23:24:30]req_shift_open_date done [23:24:30]produce_requested_data done [23:24:30]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117512,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:24:30]process_action_free close_receipt [23:24:30]json_value_free [23:24:30]json_value_free done [23:24:30]process_json_proto returns [23:24:30]Send response to host [23:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117512,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:24:30]free response buf [23:24:30]execute_script done [23:24:30]execute_script returns [23:24:30]free content buf [23:24:30]Sock 9.Close socket [23:24:30]Sock 9.Thread stoped [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:04]accept exits with 7 [23:25:04]New connection [23:25:04]New thread 3067600228 created [23:25:04]Thread 3067456868 joined [23:25:04]Waiting for new connection... [23:25:04] Sock 7.Parse request [23:25:04]Sock 7.Check first char [23:25:04]Sock 7.First char is OK [23:25:04]request: POST /json_proto HTTP/1.0 [23:25:04]Method: POST [23:25:04]URL: /json_proto [23:25:04]Method is POST - this is cgi request [23:25:04]url: /json_proto [23:25:04]query_string will be loaded in cgi processing [23:25:04]execute_cgi json_proto POST (null) [23:25:04]execute_cgi path=json_proto method=POST [23:25:04]POST find Content-Length [23:25:04]Host: 172.17.96.67:8080 [23:25:04]Content-Length: 800 [23:25:04]Content-Type: application/json [23:25:04] [23:25:04]POST finish read [23:25:04]Found Content-Length = 800 [23:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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\u000A4542345", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:04]execute_script... [23:25:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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\u000A4542345", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:04]POST & json_proto [23:25:04]process_json_proto [23:25:04]json parsed OK: [23:25:04]protocol is kg_v1.0 [23:25:04]action value=close_receipt [23:25:04]process_action close_receipt [23:25:04]cmd_close_receipt [23:25:04]MH_GetDate [23:25:04]Write to MH i2c: F0 00 00 1C 32 3D [23:25:04]Write i2c OK [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: F0 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: F0 09 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: F0 09 00 1C 32 00 D4 CB 1E 67 2B 09 1E 67 23 [23:25:04]GetLastDocTimeStamp 1730071470 [23:25:04]current date 1730071508 [23:25:04]FM_GetShiftState [23:25:04]SAM_PROTO_GetShiftState [23:25:04]wFMCommunicate request_size=4 [23:25:04]MH_SAM_APDU [23:25:04]CAPDU: 80 13 01 00 [23:25:04]Write to MH i2c: E2 08 00 1D 32 80 13 01 00 00 00 00 00 CC [23:25:04]Write i2c OK [23:25:04]MH_I2C_Read... [23:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:04]Read from MH i2c: E2 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 0E 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 0E 00 1D 32 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 0B [23:25:04]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:25:04]wFMCommunicate OK [23:25:04]SAM_PROTO_GetShiftState done [23:25:04]FM_GetShiftState done [23:25:04]opened in 1729987372 [23:25:04]opened+sec_in_day 1730073772 [23:25:04]quantity*price = 0 [23:25:04]sum+1 = 1 [23:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 213 27.10.2024 23:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Талоны: Топливные Талоны 4542345 ФМ: 0000000000871767 ФД: 117513 ФПД: 142348832436027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232508&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117513&fm=142348832436027&tin=02508201610067®Number=0000000000091782&sum=0 [23:25:05]StoreToDocumentArchive [23:25:05]shift 542 fd 117513 [23:25:05]save to /storage/0542/doc_00117513 [23:25:05]save last doc name /storage/0542/doc_00117513 to /storage/kkm_last_doc_name [23:25:05]save OK [23:25:05]Clear old archive folders... [23:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:25:05]tlvbuf is 017CF7D0 [23:25:05]SAM_PROTO_ClearQueue [23:25:05]wFMCommunicate request_size=4 [23:25:05]MH_SAM_APDU [23:25:05]CAPDU: 80 09 00 00 [23:25:05]Write to MH i2c: E2 08 00 2A 32 80 09 00 00 00 00 00 00 CE [23:25:05]Write i2c OK [23:25:05]MH_I2C_Read... [23:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:05]Read from MH i2c: E2 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 2A 32 00 90 00 D0 [23:25:05]RAPDU: 90 00 [23:25:05]wFMCommunicate OK [23:25:05]SAM_PROTO_ClearQueue done [23:25:05]KKMCreateOFDPacket [23:25:05]OFDProtocolAddRootSTLVToBuf [23:25:05]FM_MakeSignedData [23:25:05]FM_MakeSignedData [23:25:05]SAM_PROTO_SignData [23:25:05]wFMCommunicate request_size=4 [23:25:05]MH_SAM_APDU [23:25:05]CAPDU: 80 0D 01 02 [23:25:05]Write to MH i2c: E2 08 00 2B 32 80 0D 01 02 00 00 00 00 D6 [23:25:05]Write i2c OK [23:25:05]MH_I2C_Read... [23:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:05]Read from MH i2c: E2 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 2B 32 00 90 00 D1 [23:25:05]RAPDU: 90 00 [23:25:05]wFMCommunicate OK [23:25:05]wFMCommunicate request_size=255 [23:25:05]MH_SAM_APDU [23:25:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D5 00 00 00 F4 03 04 00 D4 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 09 CB 01 00 35 04 06 00 81 [23:25:05]Write to MH i2c: E2 02 01 2C 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 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 D5 00 00 00 F4 03 04 00 D4 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 09 CB 01 00 35 04 06 00 81 00 00 89 [23:25:05]Write i2c OK [23:25:05]MH_I2C_Read... [23:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:06]Read from MH i2c: E2 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 03 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 03 00 2C 32 00 90 00 D2 [23:25:06]RAPDU: 90 00 [23:25:06]wFMCommunicate OK [23:25:06]wFMCommunicate request_size=10 [23:25:06]MH_SAM_APDU [23:25:06]CAPDU: 80 0D 02 02 05 77 2B 97 6F 3B [23:25:06]Write to MH i2c: E2 0D 00 2D 32 80 0D 02 02 05 00 77 2B 97 6F 3B 00 00 C6 [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:06]Read from MH i2c: E2 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 03 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 03 00 2D 32 00 90 00 D3 [23:25:06]RAPDU: 90 00 [23:25:06]wFMCommunicate OK [23:25:06]wFMCommunicate request_size=4 [23:25:06]MH_SAM_APDU [23:25:06]CAPDU: 80 0D 03 02 [23:25:06]Write to MH i2c: E2 08 00 2E 32 80 0D 03 02 00 00 00 00 DB [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:06]Read from MH i2c: E2 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 0B 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 0B 00 2E 32 00 F5 CB D2 B7 6A 00 E8 56 90 00 CD [23:25:06]RAPDU: F5 CB D2 B7 6A 00 E8 56 90 00 [23:25:06]wFMCommunicate OK [23:25:06]SAM_PROTO_SignData done [23:25:06]FM_MakeSignedData done [23:25:06]CreateOFDProtocolMessage [23:25:06]wFMCommunicate request_size=4 [23:25:06]MH_SAM_APDU [23:25:06]CAPDU: 80 11 00 00 [23:25:06]Write to MH i2c: E2 08 00 2F 32 80 11 00 00 00 00 00 00 DB [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:06]Read from MH i2c: E2 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 17 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 17 00 2F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 32 [23:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:25:06]wFMCommunicate OK [23:25:06]CreateOFDProtocolMessage done [23:25:06]OFDSenderStorePacket 117513 [23:25:06]StoreOFDPacket docnum=117513 [23:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A6 51 07 01 DA 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 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 D5 00 00 00 F4 03 04 00 D4 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 09 CB 01 00 35 04 06 00 81 77 2B 97 6F 3B F5 CB D2 B7 6A 00 E8 56 [23:25:06]CheckFolder [23:25:06]dirname=/storage/ofd_packets [23:25:06]CheckFolder done [23:25:06]ProducePacketName [23:25:06]name=ofd_packets/00117513 [23:25:06]NVStorageSaveData ofd_packets/00117513 [23:25:06]File name is /storage/ofd_packets/00117513 [23:25:06]Write 301 bytes [23:25:06]NVStorageSaveData done [23:25:06]OFDSenderStorePacket done [23:25:06]KKMCreateOFDPacket done [23:25:06]NVStorageSaveData kkm_last_timestamp [23:25:06]File name is /storage/kkm_last_timestamp [23:25:06]Write 4 bytes [23:25:06]NVStorageSaveData done [23:25:06]ExternCall_PrintAddStr [23:25:06]wPrintStart [23:25:06]Write to MH i2c: 01 00 00 30 32 62 [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 07 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 07 00 30 32 00 00 00 00 00 FF 0F 77 [23:25:06]RasterBufferAndPrint [23:25:06]line Счет N : (1)245289 [23:25:06]line ИНН: 02508201610067 [23:25:06]line Контрольно-Кассовый Чек [23:25:06]line ПРОДАЖА [23:25:06]line ТРК (МРК, ГНК) : 11 [23:25:06]line Товар: 2710124130 [23:25:06]line Аи-92-К-2 [23:25:06]line 10.000 * 0.00 [23:25:06]line = 0.00 [23:25:06]line НДС 12% НСП 1% [23:25:06]line > о реализуемом товаре [23:25:06]line ИТОГО: 0.00 [23:25:06]line НСП 1% : 0.00 [23:25:06]line НДС 12% : 0.00 [23:25:06]line Наличными: 0.00 [23:25:06]line Безнал.: 0.00 [23:25:06]line Место: АЗС № 173 "Партнер Нефть" [23:25:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:25:06]line СНО: Общий режим [23:25:06]line Чек 213 27.10.2024 23:25 [23:25:06]line Смена: 542 ФФД: 1.0 [23:25:06]line ЗНМ: 0300000115 [23:25:06]line РНМ: 0000000000091782 [23:25:06]line Версия ККМ: 001 [23:25:06]line Талоны: Топливные Талоны [23:25:06]line 4542345 [23:25:06]line ФМ: 0000000000871767 [23:25:06]line ФД: 117513 [23:25:06]line ФПД: 142348832436027 [23:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232508&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117513&fm=142348832436027&tin=02508201610067®Number=0000000000091782&sum=0 [23:25:06]written 0, free lines is 4095 [23:25:06]OFD Sender: Processing packet 117513 [packets to send 76, broken 75] [23:25:06]ProducePacketName [23:25:06]name=ofd_packets/00117513 [23:25:06]OFD Sender: To server: pG, [23:25:06]CommunicateWithHost lk.salyk.kg:30040 [23:25:06]ConnectInit lk.salyk.kg [23:25:06]Connected sock=10 [23:25:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A6 51 07 01 DA 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 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 D5 00 00 00 F4 03 04 00 D4 CB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 09 CB 01 00 35 04 06 00 81 77 2B 97 6F 3B F5 CB D2 B7 6A 00 E8 56 [23:25: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 36 37 4F 00 00 00 66 89 47 00 17 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 36 37 10 04 04 00 09 CB 01 00 F4 03 04 00 90 77 1E 67 B6 04 01 00 00 59 94 E0 27 91 F1 9E E7 [23:25:06]CommunicateWithHost err = 0 [23:25:06]CheckOFDResponse [23:25:06]1017 (14) - 77093643461234 [23:25:06]1041 (16) - 0000000000871767 [23:25:06]1040 (4) - 117513 [23:25:06]1012 (4) - 27.10.2024 17:25 [23:25:06]1206 (1) - 0 [23:25:06]OFD Sender: Remove packet 117513 [23:25:06]ProducePacketName [23:25:06]name=ofd_packets/00117513 [23:25:06]NVStorageDeleteData [23:25:06]Write to MH i2c: 01 00 00 59 32 8B [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 07 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 07 00 59 32 00 00 00 00 00 D8 0C 76 [23:25:06]RasterBufferAndPrint [23:25:06]line [23:25:06]line [23:25:06]line [23:25:06]line [23:25:06]line [23:25:06]written 0, free lines is 3294 [23:25:06]MH_Cut [23:25:06]Write to MH i2c: D1 01 00 60 32 01 64 [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: D1 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: D1 01 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: D1 01 00 60 32 00 63 [23:25:06]Write to MH i2c: 01 00 00 61 32 93 [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:07]OFD Sender: No OFD packet to send [23:25:07]*** Cut start [23:25:07]*** Purtial cut [23:25:07]*** Stage 1: CUTSNS_PIN = 1 [23:25:07]Read from MH i2c: 01 [23:25:07]MH_I2C_Read... [23:25:07]*** Stop cut motor [23:25:07]*** Cut end [23:25:07]Read from MH i2c: 01 07 00 [23:25:07]MH_I2C_Read... [23:25:07]Read from MH i2c: 01 07 00 61 32 00 00 00 00 00 FF 0F A8 [23:25:07]process_action close_receipt done [23:25:07]requested_data is exist [23:25:07]produce_requested_data [23:25:07]requested_item fm.sn is exist - process it [23:25:07]wFMCommunicate request_size=4 [23:25:07]MH_SAM_APDU [23:25:07]CAPDU: 80 11 00 00 [23:25:07]Write to MH i2c: E2 08 00 62 32 80 11 00 00 00 00 00 00 0E [23:25:07]Write i2c OK [23:25:07]MH_I2C_Read... [23:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:07]Read from MH i2c: E2 [23:25:07]MH_I2C_Read... [23:25:07]Read from MH i2c: E2 17 00 [23:25:07]MH_I2C_Read... [23:25:07]Read from MH i2c: E2 17 00 62 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 65 [23:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:25:07]wFMCommunicate OK [23:25:07]requested_item fd.num is exist - process it [23:25:07]SAM_PROTO_GetFieldsCounters [23:25:07]wFMCommunicate request_size=4 [23:25:07]MH_SAM_APDU [23:25:07]CAPDU: 80 13 00 00 [23:25:07]Write to MH i2c: E2 08 00 63 32 80 13 00 00 00 00 00 00 11 [23:25:07]Write i2c OK [23:25:07]MH_I2C_Read... [23:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:07]Read from MH i2c: E2 [23:25:07]MH_I2C_Read... [23:25:07]Read from MH i2c: E2 62 00 [23:25:07]MH_I2C_Read... [23:25:07]Read from MH i2c: E2 62 00 63 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 09 CB 01 00 0E 04 04 00 1E 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 AC [23:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 09 CB 01 00 0E 04 04 00 1E 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 [23:25:07]wFMCommunicate OK [23:25:07]SAM_PROTO_GetFieldsCounters done [23:25:07]requested_item shift.num is exist - process it [23:25:07]requested_item shift.opened is exist - process it [23:25:07]req_shift_opened [23:25:07]FM_GetShiftState [23:25:07]SAM_PROTO_GetShiftState [23:25:07]wFMCommunicate request_size=4 [23:25:07]MH_SAM_APDU [23:25:07]CAPDU: 80 13 01 00 [23:25:07]Write to MH i2c: E2 08 00 64 32 80 13 01 00 00 00 00 00 13 [23:25:07]Write i2c OK [23:25:07]MH_I2C_Read... [23:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:07]Read from MH i2c: E2 [23:25:07]MH_I2C_Read... [23:25:07]Read from MH i2c: E2 0E 00 [23:25:07]MH_I2C_Read... [23:25:07]Read from MH i2c: E2 0E 00 64 32 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 52 [23:25:07]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:25:07]wFMCommunicate OK [23:25:07]SAM_PROTO_GetShiftState done [23:25:07]FM_GetShiftState done [23:25:07]req_shift_opened done [23:25:07]requested_item shift.open_date is exist - process it [23:25:07]req_shift_open_date [23:25:07]req_shift_open_date done [23:25:07]produce_requested_data done [23:25:07]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117513,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:25:07]process_action_free close_receipt [23:25:07]json_value_free [23:25:07]json_value_free done [23:25:07]process_json_proto returns [23:25:07]Send response to host [23:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117513,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:25:07]free response buf [23:25:07]execute_script done [23:25:07]execute_script returns [23:25:07]free content buf [23:25:07]Sock 7.Close socket [23:25:07]Sock 7.Thread stoped [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:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]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:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:49:59]accept exits with 9 [23:49:59]New connection [23:49:59]New thread 3067456868 created [23:49:59]Thread 3067600228 joined [23:49:59]Waiting for new connection... [23:49:59] Sock 9.Parse request [23:49:59]Sock 9.Check first char [23:49:59]Sock 9.First char is OK [23:49:59]request: POST /json_proto HTTP/1.0 [23:49:59]Method: POST [23:49:59]URL: /json_proto [23:49:59]Method is POST - this is cgi request [23:49:59]url: /json_proto [23:49:59]query_string will be loaded in cgi processing [23:49:59]execute_cgi json_proto POST (null) [23:49:59]execute_cgi path=json_proto method=POST [23:49:59]POST find Content-Length [23:49:59]Host: 172.17.96.67:8080 [23:49:59]Content-Length: 677 [23:49:59]Content-Type: application/json [23:49:59] [23:49:59]POST finish read [23:49:59]Found Content-Length = 677 [23:49:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [23:49:59]execute_script... [23: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)245290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [23:49:59]POST & json_proto [23:49:59]process_json_proto [23:49:59]json parsed OK: [23:49:59]protocol is kg_v1.0 [23:49:59]action value=close_receipt [23:49:59]process_action close_receipt [23:49:59]cmd_close_receipt [23:49:59]MH_GetDate [23:49:59]Write to MH i2c: F0 00 00 65 32 86 [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: F0 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: F0 09 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: F0 09 00 65 32 00 AB D1 1E 67 2B 09 1E 67 49 [23:49:59]GetLastDocTimeStamp 1730071508 [23:49:59]current date 1730073003 [23:49:59]FM_GetShiftState [23:49:59]SAM_PROTO_GetShiftState [23:49:59]wFMCommunicate request_size=4 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 13 01 00 [23:49:59]Write to MH i2c: E2 08 00 66 32 80 13 01 00 00 00 00 00 15 [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 0E 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 0E 00 66 32 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 54 [23:49:59]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:49:59]wFMCommunicate OK [23:49:59]SAM_PROTO_GetShiftState done [23:49:59]FM_GetShiftState done [23:49:59]opened in 1729987372 [23:49:59]opened+sec_in_day 1730073772 [23:49:59]quantity*price = 50041 [23:49:59]sum+1 = 50042 [23:49:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 214 27.10.2024 23:50 Смена: 542 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117514 ФПД: 238455034082807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T235003&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117514&fm=238455034082807&tin=02508201610067®Number=0000000000091782&sum=50000 [23:50:00]StoreToDocumentArchive [23:50:00]shift 542 fd 117514 [23:50:00]save to /storage/0542/doc_00117514 [23:50:00]save last doc name /storage/0542/doc_00117514 to /storage/kkm_last_doc_name [23:50:00]save OK [23:50:00]Clear old archive folders... [23:50:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:50:00]tlvbuf is 0170C910 [23:50:00]SAM_PROTO_ClearQueue [23:50:00]wFMCommunicate request_size=4 [23:50:00]MH_SAM_APDU [23:50:00]CAPDU: 80 09 00 00 [23:50:00]Write to MH i2c: E2 08 00 73 32 80 09 00 00 00 00 00 00 17 [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:00]Read from MH i2c: E2 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 03 00 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 03 00 73 32 00 90 00 19 [23:50:00]RAPDU: 90 00 [23:50:00]wFMCommunicate OK [23:50:00]SAM_PROTO_ClearQueue done [23:50:00]KKMCreateOFDPacket [23:50:00]OFDProtocolAddRootSTLVToBuf [23:50:00]FM_MakeSignedData [23:50:00]FM_MakeSignedData [23:50:00]SAM_PROTO_SignData [23:50:00]wFMCommunicate request_size=4 [23:50:00]MH_SAM_APDU [23:50:00]CAPDU: 80 0D 01 02 [23:50:00]Write to MH i2c: E2 08 00 74 32 80 0D 01 02 00 00 00 00 1F [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:00]Read from MH i2c: E2 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 03 00 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 03 00 74 32 00 90 00 1A [23:50:00]RAPDU: 90 00 [23:50:00]wFMCommunicate OK [23:50:00]wFMCommunicate request_size=255 [23:50:00]MH_SAM_APDU [23:50: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AB D1 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0A CB 01 00 35 04 06 00 D8 [23:50:00]Write to MH i2c: E2 02 01 75 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 D6 00 00 00 F4 03 04 00 AB D1 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0A CB 01 00 35 04 06 00 D8 00 00 56 [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:00]Read from MH i2c: E2 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 03 00 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 03 00 75 32 00 90 00 1B [23:50:00]RAPDU: 90 00 [23:50:00]wFMCommunicate OK [23:50:00]wFMCommunicate request_size=10 [23:50:00]MH_SAM_APDU [23:50:00]CAPDU: 80 0D 02 02 05 DF A3 99 F5 F7 [23:50:00]Write to MH i2c: E2 0D 00 76 32 80 0D 02 02 05 00 DF A3 99 F5 F7 00 00 33 [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:00]Read from MH i2c: E2 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 03 00 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 03 00 76 32 00 90 00 1C [23:50:00]RAPDU: 90 00 [23:50:00]wFMCommunicate OK [23:50:00]wFMCommunicate request_size=4 [23:50:00]MH_SAM_APDU [23:50:00]CAPDU: 80 0D 03 02 [23:50:00]Write to MH i2c: E2 08 00 77 32 80 0D 03 02 00 00 00 00 24 [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:00]Read from MH i2c: E2 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 0B 00 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 0B 00 77 32 00 FE 32 BF C6 BB DD 28 48 90 00 E2 [23:50:00]RAPDU: FE 32 BF C6 BB DD 28 48 90 00 [23:50:00]wFMCommunicate OK [23:50:00]SAM_PROTO_SignData done [23:50:00]FM_MakeSignedData done [23:50:00]CreateOFDProtocolMessage [23:50:00]wFMCommunicate request_size=4 [23:50:00]MH_SAM_APDU [23:50:00]CAPDU: 80 11 00 00 [23:50:00]Write to MH i2c: E2 08 00 78 32 80 11 00 00 00 00 00 00 24 [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:01]Read from MH i2c: E2 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 17 00 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 17 00 78 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7B [23:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:50:01]wFMCommunicate OK [23:50:01]CreateOFDProtocolMessage done [23:50:01]OFDSenderStorePacket 117514 [23:50:01]StoreOFDPacket docnum=117514 [23:50:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B1 43 07 01 ED 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AB D1 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0A CB 01 00 35 04 06 00 D8 DF A3 99 F5 F7 FE 32 BF C6 BB DD 28 48 [23:50:01]CheckFolder [23:50:01]dirname=/storage/ofd_packets [23:50:01]CheckFolder done [23:50:01]ProducePacketName [23:50:01]name=ofd_packets/00117514 [23:50:01]NVStorageSaveData ofd_packets/00117514 [23:50:01]File name is /storage/ofd_packets/00117514 [23:50:01]Write 301 bytes [23:50:01]NVStorageSaveData done [23:50:01]OFDSenderStorePacket done [23:50:01]KKMCreateOFDPacket done [23:50:01]NVStorageSaveData kkm_last_timestamp [23:50:01]File name is /storage/kkm_last_timestamp [23:50:01]Write 4 bytes [23:50:01]NVStorageSaveData done [23:50:01]OFD Sender: Processing packet 117514 [packets to send 76, broken 75] [23:50:01]ProducePacketName [23:50:01]name=ofd_packets/00117514 [23:50:01]OFD Sender: To server: pG, [23:50:01]CommunicateWithHost lk.salyk.kg:30040 [23:50:01]ConnectInit lk.salyk.kg [23:50:01]ExternCall_PrintAddStr [23:50:01]wPrintStart [23:50:01]Write to MH i2c: 01 00 00 79 32 AB [23:50:01]Write i2c OK [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: 01 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: 01 07 00 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: 01 07 00 79 32 00 00 00 00 00 FF 0F C0 [23:50:01]RasterBufferAndPrint [23:50:01]line Счет N : (1)245290 [23:50:01]line ИНН: 02508201610067 [23:50:01]line Контрольно-Кассовый Чек [23:50:01]line ПРОДАЖА [23:50:01]line ТРК (МРК, ГНК) : 21 [23:50:01]line Товар: 2710124130 [23:50:01]line Аи-92-К-2 [23:50:01]line 7.480 * 66.90 [23:50:01]line = 500.41 [23:50:01]line НДС 12% НСП 1% [23:50:01]line > о реализуемом товаре [23:50:01]line ОКРУГЛЕНИЕ: -0.41 [23:50:01]line ИТОГО: 500.00 [23:50:01]line Внесено: 500.00 [23:50:01]line СДАЧА: 0.00 [23:50:01]line НСП 1% : 4.43 [23:50:01]line НДС 12% : 53.14 [23:50:01]line Наличными: 500.00 [23:50:01]line Безнал.: 0.00 [23:50:01]line Место: АЗС № 173 "Партнер Нефть" [23:50:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:50:01]line СНО: Общий режим [23:50:01]line Чек 214 27.10.2024 23:50 [23:50:01]line Смена: 542 ФФД: 1.0 [23:50:01]line ЗНМ: 0300000115 [23:50:01]line РНМ: 0000000000091782 [23:50:01]line Версия ККМ: 001 [23:50:01]line ФМ: 0000000000871767 [23:50:01]line ФД: 117514 [23:50:01]line ФПД: 238455034082807 [23:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T235003&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117514&fm=238455034082807&tin=02508201610067®Number=0000000000091782&sum=50000 [23:50:01]Connected sock=11 [23: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 36 37 0F 01 00 00 B1 43 07 01 ED 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AB D1 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0A CB 01 00 35 04 06 00 D8 DF A3 99 F5 F7 FE 32 BF C6 BB DD 28 48 [23:50:01]written 0, free lines is 4095 [23:50: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 36 37 4F 00 00 00 4C E2 47 00 7A 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 36 37 10 04 04 00 0A CB 01 00 F4 03 04 00 67 7D 1E 67 B6 04 01 00 00 D8 4A 79 1E 0D 8F F4 11 [23:50:01]CommunicateWithHost err = 0 [23:50:01]CheckOFDResponse [23:50:01]1017 (14) - 77093643461234 [23:50:01]1041 (16) - 0000000000871767 [23:50:01]1040 (4) - 117514 [23:50:01]1012 (4) - 27.10.2024 17:50 [23:50:01]1206 (1) - 0 [23:50:01]OFD Sender: Remove packet 117514 [23:50:01]ProducePacketName [23:50:01]name=ofd_packets/00117514 [23:50:01]NVStorageDeleteData [23:50:01]Write to MH i2c: 01 00 00 A3 32 D5 [23:50:01]Write i2c OK [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: 01 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: 01 07 00 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: 01 07 00 A3 32 00 00 00 00 00 CC 0C B4 [23:50:01]RasterBufferAndPrint [23:50:01]line [23:50:01]line [23:50:01]line [23:50:01]line [23:50:01]line [23:50:01]written 0, free lines is 3282 [23:50:01]MH_Cut [23:50:01]Write to MH i2c: D1 01 00 AA 32 01 AE [23:50:01]Write i2c OK [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: D1 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: D1 01 00 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: D1 01 00 AA 32 00 AD [23:50:01]Write to MH i2c: 01 00 00 AB 32 DD [23:50:01]Write i2c OK [23:50:01]MH_I2C_Read... [23:50:02]OFD Sender: No OFD packet to send [23:50:02]*** Cut start [23:50:02]*** Purtial cut [23:50:02]*** Stage 1: CUTSNS_PIN = 1 [23:50:02]Read from MH i2c: 01 [23:50:02]MH_I2C_Read... [23:50:02]*** Stop cut motor [23:50:02]*** Cut end [23:50:02]Read from MH i2c: 01 07 00 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 07 00 AB 32 00 00 00 00 00 FF 0F F2 [23:50:02]process_action close_receipt done [23:50:02]requested_data is exist [23:50:02]produce_requested_data [23:50:02]requested_item fm.sn is exist - process it [23:50:02]wFMCommunicate request_size=4 [23:50:02]MH_SAM_APDU [23:50:02]CAPDU: 80 11 00 00 [23:50:02]Write to MH i2c: E2 08 00 AC 32 80 11 00 00 00 00 00 00 58 [23:50:02]Write i2c OK [23:50:02]MH_I2C_Read... [23:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:02]Read from MH i2c: E2 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: E2 17 00 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: E2 17 00 AC 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AF [23:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:50:02]wFMCommunicate OK [23:50:02]requested_item fd.num is exist - process it [23:50:02]SAM_PROTO_GetFieldsCounters [23:50:02]wFMCommunicate request_size=4 [23:50:02]MH_SAM_APDU [23:50:02]CAPDU: 80 13 00 00 [23:50:02]Write to MH i2c: E2 08 00 AD 32 80 13 00 00 00 00 00 00 5B [23:50:02]Write i2c OK [23:50:02]MH_I2C_Read... [23:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:03]Read from MH i2c: E2 [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: E2 62 00 [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: E2 62 00 AD 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 FA [23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 [23:50:03]wFMCommunicate OK [23:50:03]SAM_PROTO_GetFieldsCounters done [23:50:03]requested_item shift.num is exist - process it [23:50:03]requested_item shift.opened is exist - process it [23:50:03]req_shift_opened [23:50:03]FM_GetShiftState [23:50:03]SAM_PROTO_GetShiftState [23:50:03]wFMCommunicate request_size=4 [23:50:03]MH_SAM_APDU [23:50:03]CAPDU: 80 13 01 00 [23:50:03]Write to MH i2c: E2 08 00 AE 32 80 13 01 00 00 00 00 00 5D [23:50:03]Write i2c OK [23:50:03]MH_I2C_Read... [23:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:03]Read from MH i2c: E2 [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: E2 0E 00 [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: E2 0E 00 AE 32 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 9C [23:50:03]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:50:03]wFMCommunicate OK [23:50:03]SAM_PROTO_GetShiftState done [23:50:03]FM_GetShiftState done [23:50:03]req_shift_opened done [23:50:03]requested_item shift.open_date is exist - process it [23:50:03]req_shift_open_date [23:50:03]req_shift_open_date done [23:50:03]produce_requested_data done [23:50:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117514,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:50:03]process_action_free close_receipt [23:50:03]json_value_free [23:50:03]json_value_free done [23:50:03]process_json_proto returns [23:50:03]Send response to host [23:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117514,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:50:03]free response buf [23:50:03]execute_script done [23:50:03]execute_script returns [23:50:03]free content buf [23:50:03]Sock 9.Close socket [23:50:03]Sock 9.Thread stoped [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:23]accept exits with 7 [23:59:23]New connection [23:59:23]New thread 3067600228 created [23:59:23]Thread 3067456868 joined [23:59:23]Waiting for new connection... [23:59:23] Sock 7.Parse request [23:59:23]Sock 7.Check first char [23:59:23]Sock 7.First char is OK [23:59:23]request: POST /json_proto HTTP/1.0 [23:59:23]Method: POST [23:59:23]URL: /json_proto [23:59:23]Method is POST - this is cgi request [23:59:23]url: /json_proto [23:59:23]query_string will be loaded in cgi processing [23:59:23]execute_cgi json_proto POST (null) [23:59:23]execute_cgi path=json_proto method=POST [23:59:23]POST find Content-Length [23:59:23]Host: 172.17.96.67:8080 [23:59:23]Content-Length: 215 [23:59:23]Content-Type: application/json [23:59:23] [23:59:23]POST finish read [23:59:23]Found Content-Length = 215 [23:59:23]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:59:23]execute_script... [23:59:23]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:59:23]POST & json_proto [23:59:23]process_json_proto [23:59:23]json parsed OK: [23:59:23]protocol is kg_v1.0 [23:59:23]action value=get_value [23:59:23]process_action get_value [23:59:23]cmd_get_value [23:59:23]process_action get_value done [23:59:23]requested_data is exist [23:59:23]produce_requested_data [23:59:23]requested_item kkm.sn is exist - process it [23:59:23]requested_item kkm.ver is exist - process it [23:59:23]requested_item fm.sn is exist - process it [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 11 00 00 [23:59:23]Write to MH i2c: E2 08 00 AF 32 80 11 00 00 00 00 00 00 5B [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 17 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 17 00 AF 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B2 [23:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:59:23]wFMCommunicate OK [23:59:23]requested_item fd.num is exist - process it [23:59:23]SAM_PROTO_GetFieldsCounters [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 13 00 00 [23:59:23]Write to MH i2c: E2 08 00 B0 32 80 13 00 00 00 00 00 00 5E [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 62 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 62 00 B0 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 FD [23:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 [23:59:23]wFMCommunicate OK [23:59:23]SAM_PROTO_GetFieldsCounters done [23:59:23]requested_item shift.num is exist - process it [23:59:23]requested_item shift.opened is exist - process it [23:59:23]req_shift_opened [23:59:23]FM_GetShiftState [23:59:23]SAM_PROTO_GetShiftState [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 13 01 00 [23:59:23]Write to MH i2c: E2 08 00 B1 32 80 13 01 00 00 00 00 00 60 [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 0E 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 0E 00 B1 32 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 9F [23:59:23]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:59:23]wFMCommunicate OK [23:59:23]SAM_PROTO_GetShiftState done [23:59:23]FM_GetShiftState done [23:59:23]req_shift_opened done [23:59:23]requested_item shift.open_date is exist - process it [23:59:23]req_shift_open_date [23:59:23]req_shift_open_date done [23:59:23]produce_requested_data done [23:59:23]produce_requested_data return {"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117514,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:59:23]process_action_free get_value [23:59:23]json_value_free [23:59:23]json_value_free done [23:59:23]process_json_proto returns [23:59:23]Send response to host [23:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117514,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:59:23]free response buf [23:59:23]execute_script done [23:59:23]execute_script returns [23:59:23]free content buf [23:59:23]Sock 7.Close socket [23:59:23]Sock 7.Thread stoped [23:59:23]accept exits with 9 [23:59:23]New connection [23:59:23]New thread 3067456868 created [23:59:23]Thread 3067600228 joined [23:59:23]Waiting for new connection... [23:59:23] Sock 9.Parse request [23:59:23]Sock 9.Check first char [23:59:23]Sock 9.First char is OK [23:59:23]request: POST /json_proto HTTP/1.0 [23:59:23]Method: POST [23:59:23]URL: /json_proto [23:59:23]Method is POST - this is cgi request [23:59:23]url: /json_proto [23:59:23]query_string will be loaded in cgi processing [23:59:23]execute_cgi json_proto POST (null) [23:59:23]execute_cgi path=json_proto method=POST [23:59:23]POST find Content-Length [23:59:23]Host: 172.17.96.67:8080 [23:59:23]Content-Length: 331 [23:59:23]Content-Type: application/json [23:59:23] [23:59:23]POST finish read [23:59:23]Found Content-Length = 331 [23:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:23]execute_script... [23:59:24]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:59:24]POST & json_proto [23:59:24]process_json_proto [23:59:24]json parsed OK: [23:59:24]protocol is kg_v1.0 [23:59:24]action value=get_value [23:59:24]process_action get_value [23:59:24]cmd_get_value [23:59:24]process_action get_value done [23:59:24]requested_data is exist [23:59:24]produce_requested_data [23:59:24]requested_item fm.sale.total is exist - process it [23:59:24]SAM_PROTO_GetFMData [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 13 03 00 [23:59:24]Write to MH i2c: E2 08 00 B2 32 80 13 03 00 00 00 00 00 63 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 B2 32 00 BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 6F [23:59:24]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:24]wFMCommunicate OK [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 17 00 00 [23:59:24]Write to MH i2c: E2 08 00 B3 32 80 17 00 00 00 00 00 00 65 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 B3 32 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 0E [23:59:24]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 [23:59:24]wFMCommunicate OK [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 17 00 00 [23:59:24]Write to MH i2c: E2 08 00 B4 32 80 17 00 00 00 00 00 00 66 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 B4 32 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 92 [23:59:25]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:59:25]wFMCommunicate OK [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 17 00 00 [23:59:25]Write to MH i2c: E2 08 00 B5 32 80 17 00 00 00 00 00 00 67 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 B5 32 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 DF [23:59:25]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:59:25]wFMCommunicate OK [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 17 00 00 [23:59:25]Write to MH i2c: E2 08 00 B6 32 80 17 00 00 00 00 00 00 68 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 D7 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 D7 00 B6 32 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4B [23:59:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:59:25]wFMCommunicate OK [23:59:25]SAM_PROTO_GetFMData done [23:59:25]requested_item fm.sale_refund.total is exist - process it [23:59:25]requested_item fm.buy.total is exist - process it [23:59:25]requested_item shift.sale.total is exist - process it [23:59:25]SAM_PROTO_GetShiftData [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 13 02 00 [23:59:25]Write to MH i2c: E2 08 00 B7 32 80 13 02 00 00 00 00 00 67 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 [23:59:25]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 B7 32 00 AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 D3 [23:59:26]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 B8 32 80 17 00 00 00 00 00 00 6A [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 B8 32 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 83 [23:59:26]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 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 B9 32 80 17 00 00 00 00 00 00 6B [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 B9 32 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 1F [23:59:26]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 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 BA 32 80 17 00 00 00 00 00 00 6C [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 BA 32 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 EA [23:59:26]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 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 BB 32 80 17 00 00 00 00 00 00 6D [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 CC 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 CC 00 BB 32 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 4E [23:59:27]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 [23:59:27]wFMCommunicate OK [23:59:27]SAM_PROTO_GetShiftData done [23:59:27]requested_item shift.sale.total_cash is exist - process it [23:59:27]requested_item shift.sale_refund.total is exist - process it [23:59:27]requested_item shift.sale_refund.total_cash is exist - process it [23:59:27]requested_item shift.buy.total is exist - process it [23:59:27]requested_item shift.buy.total_cash is exist - process it [23:59:27]produce_requested_data done [23:59:27]produce_requested_data return {"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:59:27]process_action_free get_value [23:59:27]json_value_free [23:59:27]json_value_free done [23:59:27]process_json_proto returns [23:59:27]Send response to host [23:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:59:27]free response buf [23:59:27]execute_script done [23:59:27]execute_script returns [23:59:27]free content buf [23:59:27]Sock 9.Close socket [23:59:27]Sock 9.Thread stoped [23:59:27]accept exits with 7 [23:59:27]New connection [23:59:27]New thread 3067600228 created [23:59:27]Thread 3067456868 joined [23:59:27]Waiting for new connection... [23:59:27] Sock 7.Parse request [23:59:27]Sock 7.Check first char [23:59:27]Sock 7.First char is OK [23:59:27]request: POST /json_proto HTTP/1.0 [23:59:27]Method: POST [23:59:27]URL: /json_proto [23:59:27]Method is POST - this is cgi request [23:59:27]url: /json_proto [23:59:27]query_string will be loaded in cgi processing [23:59:27]execute_cgi json_proto POST (null) [23:59:27]execute_cgi path=json_proto method=POST [23:59:27]POST find Content-Length [23:59:27]Host: 172.17.96.67:8080 [23:59:27]Content-Length: 331 [23:59:27]Content-Type: application/json [23:59:27] [23:59:27]POST finish read [23:59:27]Found Content-Length = 331 [23:59:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:27]execute_script... [23:59:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:27]POST & json_proto [23:59:27]process_json_proto [23:59:27]json parsed OK: [23:59:27]protocol is kg_v1.0 [23:59:27]action value=get_value [23:59:27]process_action get_value [23:59:27]cmd_get_value [23:59:27]process_action get_value done [23:59:27]requested_data is exist [23:59:27]produce_requested_data [23:59:27]requested_item fm.sale.total is exist - process it [23:59:27]SAM_PROTO_GetFMData [23:59:27]wFMCommunicate request_size=4 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 13 03 00 [23:59:27]Write to MH i2c: E2 08 00 BC 32 80 13 03 00 00 00 00 00 6D [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 FD 00 [23:59:27]MH_I2C_Read... [23:59:27]OFD Sender: No OFD packet to send [23:59:27]Read from MH i2c: E2 FD 00 BC 32 00 BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 79 [23:59:27]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:27]wFMCommunicate OK [23:59:27]wFMCommunicate request_size=4 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 17 00 00 [23:59:27]Write to MH i2c: E2 08 00 BD 32 80 17 00 00 00 00 00 00 6F [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:28]Read from MH i2c: E2 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 BD 32 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 18 [23:59:28]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 [23:59:28]wFMCommunicate OK [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 17 00 00 [23:59:28]Write to MH i2c: E2 08 00 BE 32 80 17 00 00 00 00 00 00 70 [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:28]Read from MH i2c: E2 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 BE 32 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 9C [23:59:28]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:59:28]wFMCommunicate OK [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 17 00 00 [23:59:28]Write to MH i2c: E2 08 00 BF 32 80 17 00 00 00 00 00 00 71 [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:28]Read from MH i2c: E2 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 BF 32 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 E9 [23:59:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:59:28]wFMCommunicate OK [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 17 00 00 [23:59:28]Write to MH i2c: E2 08 00 C0 32 80 17 00 00 00 00 00 00 72 [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 D7 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 D7 00 C0 32 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 55 [23:59:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:59:29]wFMCommunicate OK [23:59:29]SAM_PROTO_GetFMData done [23:59:29]requested_item fm.sale_refund.total is exist - process it [23:59:29]requested_item fm.buy.total is exist - process it [23:59:29]requested_item shift.sale.total is exist - process it [23:59:29]SAM_PROTO_GetShiftData [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 13 02 00 [23:59:29]Write to MH i2c: E2 08 00 C1 32 80 13 02 00 00 00 00 00 71 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 C1 32 00 AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 DD [23:59:29]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 [23:59:29]wFMCommunicate OK [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 17 00 00 [23:59:29]Write to MH i2c: E2 08 00 C2 32 80 17 00 00 00 00 00 00 74 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 C2 32 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 8D [23:59: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 [23:59:30]wFMCommunicate OK [23:59:30]wFMCommunicate request_size=4 [23:59:30]MH_SAM_APDU [23:59:30]CAPDU: 80 17 00 00 [23:59:30]Write to MH i2c: E2 08 00 C3 32 80 17 00 00 00 00 00 00 75 [23:59:30]Write i2c OK [23:59:30]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 C3 32 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 29 [23:59: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 [23:59:30]wFMCommunicate OK [23:59:30]wFMCommunicate request_size=4 [23:59:30]MH_SAM_APDU [23:59:30]CAPDU: 80 17 00 00 [23:59:30]Write to MH i2c: E2 08 00 C4 32 80 17 00 00 00 00 00 00 76 [23:59:30]Write i2c OK [23:59:30]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 C4 32 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 F4 [23:59: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 [23:59:31]wFMCommunicate OK [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 17 00 00 [23:59:31]Write to MH i2c: E2 08 00 C5 32 80 17 00 00 00 00 00 00 77 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 CC 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 CC 00 C5 32 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 58 [23:59: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 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetShiftData done [23:59:31]requested_item shift.sale.total_cash is exist - process it [23:59:31]requested_item shift.sale_refund.total is exist - process it [23:59:31]requested_item shift.sale_refund.total_cash is exist - process it [23:59:31]requested_item shift.buy.total is exist - process it [23:59:31]requested_item shift.buy.total_cash is exist - process it [23:59:31]produce_requested_data done [23:59:31]produce_requested_data return {"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:59:31]process_action_free get_value [23:59:31]json_value_free [23:59:31]json_value_free done [23:59:31]process_json_proto returns [23:59:31]Send response to host [23:59:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:59:31]free response buf [23:59:31]execute_script done [23:59:31]execute_script returns [23:59:31]free content buf [23:59:31]Sock 7.Close socket [23:59:31]Sock 7.Thread stoped [23:59:31]accept exits with 9 [23:59:31]New connection [23:59:31]New thread 3067456868 created [23:59:31]Thread 3067600228 joined [23:59:31]Waiting for new connection... [23:59:31] Sock 9.Parse request [23:59:31]Sock 9.Check first char [23:59:31]Sock 9.First char is OK [23:59:31]request: POST /json_proto HTTP/1.0 [23:59:31]Method: POST [23:59:31]URL: /json_proto [23:59:31]Method is POST - this is cgi request [23:59:31]url: /json_proto [23:59:31]query_string will be loaded in cgi processing [23:59:31]execute_cgi json_proto POST (null) [23:59:31]execute_cgi path=json_proto method=POST [23:59:31]POST find Content-Length [23:59:31]Host: 172.17.96.67:8080 [23:59:31]Content-Length: 251 [23:59:31]Content-Type: application/json [23:59:31] [23:59:31]POST finish read [23:59:31]Found Content-Length = 251 [23:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u043A\u0447\u043E\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:31]execute_script... [23:59:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u043A\u0447\u043E\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:31]POST & json_proto [23:59:31]process_json_proto [23:59:31]json parsed OK: [23:59:31]protocol is kg_v1.0 [23:59:31]action value=x_report [23:59:31]process_action x_report [23:59:31]cmd_x_report [23:59:31]MH_GetDate [23:59:31]Write to MH i2c: F0 00 00 C6 32 E7 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 09 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 09 00 C6 32 00 E7 D3 1E 67 2B 09 1E 67 E8 [23:59:31]GetLastDocTimeStamp 1730073003 [23:59:31]current date 1730073575 [23:59:31]FM_GetShiftState [23:59:31]SAM_PROTO_GetShiftState [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 13 01 00 [23:59:31]Write to MH i2c: E2 08 00 C7 32 80 13 01 00 00 00 00 00 76 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:31] [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 0E 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 0E 00 C7 32 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 B5 [23:59:31]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetShiftState done [23:59:31]FM_GetShiftState done [23:59:31]KKMCreateXReportDocument [23:59:31]Load OK [23:59:31]Malloc new data [23:59:31]MH_GetDate [23:59:31]Write to MH i2c: F0 00 00 C8 32 E9 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 09 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 09 00 C8 32 00 E7 D3 1E 67 2B 09 1E 67 EA [23:59:31]Malloc new data [23:59:31]Malloc new data [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 11 00 00 [23:59:31]Write to MH i2c: E2 08 00 C9 32 80 11 00 00 00 00 00 00 75 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 17 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 17 00 C9 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CC [23:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetFieldsCounters [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 13 00 00 [23:59:31]Write to MH i2c: E2 08 00 CA 32 80 13 00 00 00 00 00 00 78 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 62 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 62 00 CA 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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 17 [23:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetFieldsCounters done [23:59:31]Malloc new data [23:59:31]Malloc new data [23:59:31]Malloc new data [23:59:31]KKMCreateXReportDocument OK [23:59:31]KKMSetXReportData OK [23:59:31]KKMPrepareXReportFMData [23:59:31]SAM_PROTO_GetShiftData [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 13 02 00 [23:59:31]Write to MH i2c: E2 08 00 CB 32 80 13 02 00 00 00 00 00 7B [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 CB 32 00 AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 E7 [23:59:32]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 [23:59:32]wFMCommunicate OK [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 17 00 00 [23:59:32]Write to MH i2c: E2 08 00 CC 32 80 17 00 00 00 00 00 00 7E [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]OFD Sender: No OFD packet to send [23:59:32]Read from MH i2c: E2 FD 00 CC 32 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 97 [23:59:32]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 [23:59:33]wFMCommunicate OK [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 17 00 00 [23:59:33]Write to MH i2c: E2 08 00 CD 32 80 17 00 00 00 00 00 00 7F [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 CD 32 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 33 [23:59:33]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 [23:59:33]wFMCommunicate OK [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 17 00 00 [23:59:33]Write to MH i2c: E2 08 00 CE 32 80 17 00 00 00 00 00 00 80 [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 CE 32 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 FE [23:59:33]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 [23:59:33]wFMCommunicate OK [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 17 00 00 [23:59:33]Write to MH i2c: E2 08 00 CF 32 80 17 00 00 00 00 00 00 81 [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:59:34]Read from MH i2c: E2 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 CC 00 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 CC 00 CF 32 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 62 [23:59:34]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 [23:59:34]wFMCommunicate OK [23:59:34]SAM_PROTO_GetShiftData done [23:59:34]1194 (1195) - счетчики итогов смены [23:59:34] 1134 (4) - 214 - количество чеков со всеми признаками расчетов [23:59:34] 1129 (156) - счетчики операций «приход» [23:59:34] 1135 (4) - 214 - количество чеков по признаку расчетов [23:59:34] 1201 (3) - 132198.48 - общая итоговая сумма в чеках [23:59:34] 1136 (3) - 117692.00 - итоговая сумма в чеках наличными [23:59:34] 1138 (3) - 14506.48 - итоговая сумма в чеках безналичными [23:59:34] 1024 (123) - суммы налогов [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 0% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1006 (12) - суммы НДС [23:59:34] 1010 (1) - 12% - код ставки НДС [23:59:34] 1011 (3) - 14045.03 - сумма НДС по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (12) - суммы НСП [23:59:34] 1014 (1) - 1% - код ставки НСП [23:59:34] 1015 (3) - 1170.51 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 2% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 3% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 5% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1130 (141) - счетчики операций «возврат прихода» [23:59:34] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:34] 1024 (117) - суммы налогов [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 0% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 12% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 2% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 3% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 5% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1131 (141) - счетчики операций «расход» [23:59:34] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:34] 1024 (117) - суммы налогов [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 0% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 12% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 2% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 3% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 5% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1132 (141) - счетчики операций «возврат расхода» [23:59:34] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:34] 1024 (117) - суммы налогов [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 0% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 12% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 2% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 3% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 5% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1133 (588) - - счетчики коррекции - не используются [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1194 (04AA) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1134 (046E) [23:59:34]Malloc new data [23:59:34]Processing tag 1129 (0469) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1135 (046F) [23:59:34]Malloc new data [23:59:34]Processing tag 1201 (04B1) [23:59:34]Malloc new data [23:59:34]Processing tag 1136 (0470) [23:59:34]Malloc new data [23:59:34]Processing tag 1138 (0472) [23:59:34]Malloc new data [23:59:34]Processing tag 1024 (0400) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1006 (03EE) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1010 (03F2) [23:59:34]Malloc new data [23:59:34]Processing tag 1011 (03F3) [23:59:34]Malloc new data [23:59:34]SetTLVBufToDocument err=0 [23:59:34]Processing tag 1006 (03EE) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1010 (03F2) [23:59:34]Malloc new data [23:59:34]Processing tag 1011 (03F3) [23:59:34]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1130 (046A) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1135 (046F) [23:59:35]Malloc new data [23:59:35]Processing tag 1201 (04B1) [23:59:35]Malloc new data [23:59:35]Processing tag 1136 (0470) [23:59:35]Malloc new data [23:59:35]Processing tag 1138 (0472) [23:59:35]Malloc new data [23:59:35]Processing tag 1024 (0400) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1131 (046B) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1135 (046F) [23:59:35]Malloc new data [23:59:35]Processing tag 1201 (04B1) [23:59:35]Malloc new data [23:59:35]Processing tag 1136 (0470) [23:59:35]Malloc new data [23:59:35]Processing tag 1138 (0472) [23:59:35]Malloc new data [23:59:35]Processing tag 1024 (0400) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1132 (046C) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1135 (046F) [23:59:35]Malloc new data [23:59:35]Processing tag 1201 (04B1) [23:59:35]Malloc new data [23:59:35]Processing tag 1136 (0470) [23:59:35]Malloc new data [23:59:35]Processing tag 1138 (0472) [23:59:35]Malloc new data [23:59:35]Processing tag 1024 (0400) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1133 (046D) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Malloc new data [23:59:35]SAM_PROTO_GetFMData [23:59:35]wFMCommunicate request_size=4 [23:59:35]MH_SAM_APDU [23:59:35]CAPDU: 80 13 03 00 [23:59:35]Write to MH i2c: E2 08 00 D0 32 80 13 03 00 00 00 00 00 81 [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:35]Read from MH i2c: E2 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 FD 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 FD 00 D0 32 00 BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 8D [23:59:36]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:36]wFMCommunicate OK [23:59:36]wFMCommunicate request_size=4 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 17 00 00 [23:59:36]Write to MH i2c: E2 08 00 D1 32 80 17 00 00 00 00 00 00 83 [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 FD 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 FD 00 D1 32 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 2C [23:59:36]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 [23:59:36]wFMCommunicate OK [23:59:36]wFMCommunicate request_size=4 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 17 00 00 [23:59:36]Write to MH i2c: E2 08 00 D2 32 80 17 00 00 00 00 00 00 84 [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 FD 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 FD 00 D2 32 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 B0 [23:59:37]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:59:37]wFMCommunicate OK [23:59:37]wFMCommunicate request_size=4 [23:59:37]MH_SAM_APDU [23:59:37]CAPDU: 80 17 00 00 [23:59:37]Write to MH i2c: E2 08 00 D3 32 80 17 00 00 00 00 00 00 85 [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:37]Read from MH i2c: E2 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 D3 32 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 FD [23:59:37]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:59:37]wFMCommunicate OK [23:59:37]wFMCommunicate request_size=4 [23:59:37]MH_SAM_APDU [23:59:37]CAPDU: 80 17 00 00 [23:59:37]Write to MH i2c: E2 08 00 D4 32 80 17 00 00 00 00 00 00 86 [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]OFD Sender: No OFD packet to send [23:59:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:59:37]Read from MH i2c: E2 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 D7 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 D7 00 D4 32 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 69 [23:59:38]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:59:38]wFMCommunicate OK [23:59:38]SAM_PROTO_GetFMData done [23:59:38]FM_GetFMData:85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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:59:38]oper:6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 [23:59:38]total:C8 54 95 A7 01 [23:59:38]Malloc new data [23:59:38]oper:6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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:59:38]total:64 [23:59:38]Malloc new data [23:59:38]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:39]total: [23:59:39]Malloc new data [23:59:39]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:59:39]total: [23:59:39]Malloc new data [23:59:39]KKMPrepareXReportFMData err=0 [23:59:39]Х отчет ИНН: 02508201610067 Кассир: Кокчоев А. 27.10.2024 23:59 Смена: 522 РНМ: 0000000000091782 ЗНМ: 0300000115 СНО: Общий режим Всего чеков: 214 ИТОГИ ПРИХОД Чеков: 214 Общий итог: 132198.48 Итого наличными: 117692.00 Итого безнал.: 14506.48 НДС 0% : 0.00 НДС 12% : 14045.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1170.51 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 117692.00 НС Приход: 71065489.36 НС Возвр.Прихода: 1.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871767 [23:59:39]StoreToDocumentArchive [23:59:39]MH_GetDate [23:59:39]Write to MH i2c: F0 00 00 D5 32 F6 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: F0 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: F0 09 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: F0 09 00 D5 32 00 EF D3 1E 67 2B 09 1E 67 FF [23:59:39]shift 522 fd 1730073583 [23:59:39]Create dir for shift 0522 [23:59:39]save to /storage/0522/doc_1730073583 [23:59:39]save last doc name /storage/0522/doc_1730073583 to /storage/kkm_last_doc_name [23:59:39]save OK [23:59:39]Clear old archive folders... [23:59:39]NVStorageSaveData kkm_last_timestamp [23:59:39]File name is /storage/kkm_last_timestamp [23:59:39]Write 4 bytes [23:59:39]NVStorageSaveData done [23:59:39]ExternCall_PrintAddStr [23:59:39]wPrintStart [23:59:39]Write to MH i2c: 01 00 00 D6 32 08 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 07 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 07 00 D6 32 00 00 00 00 00 FF 0F 1D [23:59:39]RasterBufferAndPrint [23:59:39]line Х отчет [23:59:39]line ИНН: 02508201610067 [23:59:39]line Кассир: Кокчоев А. [23:59:39]line 27.10.2024 23:59 [23:59:39]line Смена: 522 [23:59:39]line РНМ: 0000000000091782 [23:59:39]line ЗНМ: 0300000115 [23:59:39]line СНО: Общий режим [23:59:39]line Всего чеков: 214 [23:59:39]line ИТОГИ ПРИХОД [23:59:39]line Чеков: 214 [23:59:39]line Общий итог: 132198.48 [23:59:39]line Итого наличными: 117692.00 [23:59:39]line Итого безнал.: 14506.48 [23:59:39]line НДС 0% : 0.00 [23:59:39]line НДС 12% : 14045.03 [23:59:39]line НСП 0% : 0.00 [23:59:39]line НСП 1,50% : 0.00 [23:59:39]line НСП 0,50% : 0.00 [23:59:39]line НСП 5% : 0.00 [23:59:39]line НСП 3% : 0.00 [23:59:39]line НСП 2% : 0.00 [23:59:39]line НСП 1% : 1170.51 [23:59:39]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:59:39]line Чеков: 0 [23:59:39]line Общий итог: 0.00 [23:59:39]line Итого наличными: 0.00 [23:59:39]line Итого безнал.: 0.00 [23:59:39]line НДС 0% : 0.00 [23:59:39]line НДС 12% : 0.00 [23:59:39]line НСП 0% : 0.00 [23:59:39]line НСП 1,50% : 0.00 [23:59:39]line НСП 0,50% : 0.00 [23:59:39]line НСП 5% : 0.00 [23:59:39]line НСП 3% : 0.00 [23:59:39]line НСП 2% : 0.00 [23:59:39]line НСП 1% : 0.00 [23:59:39]line ИТОГИ РАСХОД [23:59:39]line Чеков: 0 [23:59:39]line Общий итог: 0.00 [23:59:39]line Итого наличными: 0.00 [23:59:39]line Итого безнал.: 0.00 [23:59:39]line НДС 0% : 0.00 [23:59:39]line НДС 12% : 0.00 [23:59:39]line НСП 0% : 0.00 [23:59:39]line НСП 1,50% : 0.00 [23:59:39]line НСП 0,50% : 0.00 [23:59:39]line НСП 5% : 0.00 [23:59:39]line НСП 3% : 0.00 [23:59:39]line НСП 2% : 0.00 [23:59:39]line НСП 1% : 0.00 [23:59:39]line ИТОГИ ВОЗВРАТ РАСХОДА [23:59:39]line Чеков: 0 [23:59:39]line Общий итог: 0.00 [23:59:39]line Итого наличными: 0.00 [23:59:39]line Итого безнал.: 0.00 [23:59:39]line НДС 0% : 0.00 [23:59:39]line НДС 12% : 0.00 [23:59:39]line НСП 0% : 0.00 [23:59:39]line НСП 1,50% : 0.00 [23:59:39]line НСП 0,50% : 0.00 [23:59:39]line НСП 5% : 0.00 [23:59:39]line НСП 3% : 0.00 [23:59:39]line НСП 2% : 0.00 [23:59:39]line НСП 1% : 0.00 [23:59:39]line Сумма внесений: 0.00 [23:59:39]line Сумма выплат: 0.00 [23:59:39]line Нал. в кассе: 117692.00 [23:59:39]line НС Приход: 71065489.36 [23:59:39]line НС Возвр.Прихода: 1.00 [23:59:39]line НС Расход: 0.00 [23:59:39]line НС Возвр.Расхода: 0.00 [23:59:39]line ФМ: 0000000000871767 [23:59:39]written 0, free lines is 4095 [23:59:39]Write to MH i2c: 01 00 00 21 33 54 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 07 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 07 00 21 33 00 00 00 00 00 85 0A EA [23:59:40]RasterBufferAndPrint [23:59:40]line [23:59:40]line [23:59:40]line [23:59:40]line [23:59:40]line [23:59:40]written 0, free lines is 2724 [23:59:40]MH_Cut [23:59:40]Write to MH i2c: D1 01 00 28 33 01 2D [23:59:40]Write i2c OK [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: D1 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: D1 01 00 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: D1 01 00 28 33 00 2C [23:59:40]Write to MH i2c: 01 00 00 29 33 5C [23:59:40]Write i2c OK [23:59:40]MH_I2C_Read... [23:59:41]*** Cut start [23:59:41]*** Purtial cut [23:59:41]*** Stage 1: CUTSNS_PIN = 1 [23:59:41]Read from MH i2c: 01 [23:59:41]MH_I2C_Read... [23:59:41]*** Stop cut motor [23:59:41]*** Cut end [23:59:41]Read from MH i2c: 01 07 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: 01 07 00 29 33 00 00 00 00 00 FF 0F 71 [23:59:41]process_action x_report done [23:59:41]requested_data is exist [23:59:41]produce_requested_data [23:59:41]requested_item fd.num is exist - process it [23:59:41]SAM_PROTO_GetFieldsCounters [23:59:41]wFMCommunicate request_size=4 [23:59:41]MH_SAM_APDU [23:59:41]CAPDU: 80 13 00 00 [23:59:41]Write to MH i2c: E2 08 00 2A 33 80 13 00 00 00 00 00 00 D9 [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:41]Read from MH i2c: E2 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: E2 62 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: E2 62 00 2A 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 78 [23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 [23:59:41]wFMCommunicate OK [23:59:41]SAM_PROTO_GetFieldsCounters done [23:59:41]requested_item shift.num is exist - process it [23:59:41]requested_item shift.opened is exist - process it [23:59:41]req_shift_opened [23:59:41]FM_GetShiftState [23:59:41]SAM_PROTO_GetShiftState [23:59:41]wFMCommunicate request_size=4 [23:59:41]MH_SAM_APDU [23:59:41]CAPDU: 80 13 01 00 [23:59:41]Write to MH i2c: E2 08 00 2B 33 80 13 01 00 00 00 00 00 DB [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:41]Read from MH i2c: E2 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: E2 0E 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: E2 0E 00 2B 33 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1A [23:59:41]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:59:41]wFMCommunicate OK [23:59:41]SAM_PROTO_GetShiftState done [23:59:41]FM_GetShiftState done [23:59:41]req_shift_opened done [23:59:41]requested_item shift.open_date is exist - process it [23:59:41]req_shift_open_date [23:59:41]req_shift_open_date done [23:59:41]produce_requested_data done [23:59:41]produce_requested_data return {"fd.num":117514,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:59:41]process_action_free x_report [23:59:41]json_value_free [23:59:41]json_value_free done [23:59:41]process_json_proto returns [23:59:41]Send response to host [23:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":117514,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:59:41]free response buf [23:59:41]execute_script done [23:59:41]execute_script returns [23:59:41]free content buf [23:59:41]Sock 9.Close socket [23:59:41]Sock 9.Thread stoped [23:59:42]OFD Sender: No OFD packet to send [23:59:45]accept exits with 7 [23:59:45]New connection [23:59:45]New thread 3067600228 created [23:59:45]Thread 3067456868 joined [23:59:45]Waiting for new connection... [23:59:45] Sock 7.Parse request [23:59:45]Sock 7.Check first char [23:59:45]Sock 7.First char is OK [23:59:45]request: POST /json_proto HTTP/1.0 [23:59:45]Method: POST [23:59:45]URL: /json_proto [23:59:45]Method is POST - this is cgi request [23:59:45]url: /json_proto [23:59:45]query_string will be loaded in cgi processing [23:59:45]execute_cgi json_proto POST (null) [23:59:45]execute_cgi path=json_proto method=POST [23:59:45]POST find Content-Length [23:59:45]Host: 172.17.96.67:8080 [23:59:45]Content-Length: 215 [23:59:45]Content-Type: application/json [23:59:45] [23:59:45]POST finish read [23:59:45]Found Content-Length = 215 [23:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:45]execute_script... [23:59:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:45]POST & json_proto [23:59:45]process_json_proto [23:59:45]json parsed OK: [23:59:45]protocol is kg_v1.0 [23:59:45]action value=get_value [23:59:45]process_action get_value [23:59:45]cmd_get_value [23:59:45]process_action get_value done [23:59:45]requested_data is exist [23:59:45]produce_requested_data [23:59:45]requested_item kkm.sn is exist - process it [23:59:45]requested_item kkm.ver is exist - process it [23:59:45]requested_item fm.sn is exist - process it [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 11 00 00 [23:59:45]Write to MH i2c: E2 08 00 2C 33 80 11 00 00 00 00 00 00 D9 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 17 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 17 00 2C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 30 [23:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:59:45]wFMCommunicate OK [23:59:45]requested_item fd.num is exist - process it [23:59:45]SAM_PROTO_GetFieldsCounters [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 13 00 00 [23:59:45]Write to MH i2c: E2 08 00 2D 33 80 13 00 00 00 00 00 00 DC [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 62 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 62 00 2D 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 7B [23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CB 01 00 0E 04 04 00 1E 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 [23:59:45]wFMCommunicate OK [23:59:45]SAM_PROTO_GetFieldsCounters done [23:59:45]requested_item shift.num is exist - process it [23:59:45]requested_item shift.opened is exist - process it [23:59:45]req_shift_opened [23:59:45]FM_GetShiftState [23:59:45]SAM_PROTO_GetShiftState [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 13 01 00 [23:59:45]Write to MH i2c: E2 08 00 2E 33 80 13 01 00 00 00 00 00 DE [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 0E 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 0E 00 2E 33 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 1D [23:59:45]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:59:45]wFMCommunicate OK [23:59:45]SAM_PROTO_GetShiftState done [23:59:45]FM_GetShiftState done [23:59:45]req_shift_opened done [23:59:45]requested_item shift.open_date is exist - process it [23:59:45]req_shift_open_date [23:59:45]req_shift_open_date done [23:59:45]produce_requested_data done [23:59:45]produce_requested_data return {"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117514,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372} [23:59:45]process_action_free get_value [23:59:45]json_value_free [23:59:45]json_value_free done [23:59:45]process_json_proto returns [23:59:45]Send response to host [23:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117514,"shift.num":542,"shift.opened":1,"shift.open_date":1729987372}}} [23:59:45]free response buf [23:59:45]execute_script done [23:59:45]execute_script returns [23:59:45]free content buf [23:59:45]Sock 7.Close socket [23:59:45]Sock 7.Thread stoped [23:59:45]accept exits with 9 [23:59:45]New connection [23:59:45]New thread 3067456868 created [23:59:45]Thread 3067600228 joined [23:59:45]Waiting for new connection... [23:59:45] Sock 9.Parse request [23:59:45]Sock 9.Check first char [23:59:45]Sock 9.First char is OK [23:59:45]request: POST /json_proto HTTP/1.0 [23:59:45]Method: POST [23:59:45]URL: /json_proto [23:59:45]Method is POST - this is cgi request [23:59:45]url: /json_proto [23:59:45]query_string will be loaded in cgi processing [23:59:45]execute_cgi json_proto POST (null) [23:59:45]execute_cgi path=json_proto method=POST [23:59:45]POST find Content-Length [23:59:45]Host: 172.17.96.67:8080 [23:59:45]Content-Length: 331 [23:59:45]Content-Type: application/json [23:59:45] [23:59:45]POST finish read [23:59:45]Found Content-Length = 331 [23:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:45]execute_script... [23:59:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:45]POST & json_proto [23:59:45]process_json_proto [23:59:45]json parsed OK: [23:59:45]protocol is kg_v1.0 [23:59:45]action value=get_value [23:59:45]process_action get_value [23:59:45]cmd_get_value [23:59:45]process_action get_value done [23:59:45]requested_data is exist [23:59:45]produce_requested_data [23:59:45]requested_item fm.sale.total is exist - process it [23:59:45]SAM_PROTO_GetFMData [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 13 03 00 [23:59:45]Write to MH i2c: E2 08 00 2F 33 80 13 03 00 00 00 00 00 E1 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 2F 33 00 BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 ED [23:59:46]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:46]wFMCommunicate OK [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 17 00 00 [23:59:46]Write to MH i2c: E2 08 00 30 33 80 17 00 00 00 00 00 00 E3 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 30 33 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 8C [23:59:46]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 [23:59:46]wFMCommunicate OK [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 17 00 00 [23:59:46]Write to MH i2c: E2 08 00 31 33 80 17 00 00 00 00 00 00 E4 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:47]Read from MH i2c: E2 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 FD 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 FD 00 31 33 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 10 [23:59:47]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:59:47]wFMCommunicate OK [23:59:47]wFMCommunicate request_size=4 [23:59:47]MH_SAM_APDU [23:59:47]CAPDU: 80 17 00 00 [23:59:47]Write to MH i2c: E2 08 00 32 33 80 17 00 00 00 00 00 00 E5 [23:59:47]Write i2c OK [23:59:47]MH_I2C_Read... [23:59:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:47]Read from MH i2c: E2 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 FD 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 FD 00 32 33 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 5D [23:59:47]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 OFD Sender: No OFD packet to send [23:59:47]09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:59:48]wFMCommunicate OK [23:59:48]wFMCommunicate request_size=4 [23:59:48]MH_SAM_APDU [23:59:48]CAPDU: 80 17 00 00 [23:59:48]Write to MH i2c: E2 08 00 33 33 80 17 00 00 00 00 00 00 E6 [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:59:48]Read from MH i2c: E2 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 D7 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 D7 00 33 33 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [23:59:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:59:48]wFMCommunicate OK [23:59:48]SAM_PROTO_GetFMData done [23:59:48]requested_item fm.sale_refund.total is exist - process it [23:59:48]requested_item fm.buy.total is exist - process it [23:59:48]requested_item shift.sale.total is exist - process it [23:59:48]SAM_PROTO_GetShiftData [23:59:48]wFMCommunicate request_size=4 [23:59:48]MH_SAM_APDU [23:59:48]CAPDU: 80 13 02 00 [23:59:48]Write to MH i2c: E2 08 00 34 33 80 13 02 00 00 00 00 00 E5 [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:48]Read from MH i2c: E2 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 FD 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 FD 00 34 33 00 AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 51 [23:59:49]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 [23:59:49]wFMCommunicate OK [23:59:49]wFMCommunicate request_size=4 [23:59:49]MH_SAM_APDU [23:59:49]CAPDU: 80 17 00 00 [23:59:49]Write to MH i2c: E2 08 00 35 33 80 17 00 00 00 00 00 00 E8 [23:59:49]Write i2c OK [23:59:49]MH_I2C_Read... [23:59:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:49]Read from MH i2c: E2 [23:59:49]MH_I2C_Read... [23:59:49]Read from MH i2c: E2 FD 00 [23:59:49]MH_I2C_Read... [23:59:49]Read from MH i2c: E2 FD 00 35 33 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 01 [23:59:49]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 [23:59:49]wFMCommunicate OK [23:59:49]wFMCommunicate request_size=4 [23:59:49]MH_SAM_APDU [23:59:49]CAPDU: 80 17 00 00 [23:59:49]Write to MH i2c: E2 08 00 36 33 80 17 00 00 00 00 00 00 E9 [23:59:49]Write i2c OK [23:59:49]MH_I2C_Read... [23:59:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:50]Read from MH i2c: E2 [23:59:50]MH_I2C_Read... [23:59:50]Read from MH i2c: E2 FD 00 [23:59:50]MH_I2C_Read... [23:59:50]Read from MH i2c: E2 FD 00 36 33 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 9D [23:59:50]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 [23:59:50]wFMCommunicate OK [23:59:50]wFMCommunicate request_size=4 [23:59:50]MH_SAM_APDU [23:59:50]CAPDU: 80 17 00 00 [23:59:50]Write to MH i2c: E2 08 00 37 33 80 17 00 00 00 00 00 00 EA [23:59:50]Write i2c OK [23:59:50]MH_I2C_Read... [23:59:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:50]Read from MH i2c: E2 [23:59:50]MH_I2C_Read... [23:59:50]Read from MH i2c: E2 FD 00 [23:59:50]MH_I2C_Read... [23:59:50]Read from MH i2c: E2 FD 00 37 33 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 68 [23:59:50]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 [23:59:51]wFMCommunicate OK [23:59:51]wFMCommunicate request_size=4 [23:59:51]MH_SAM_APDU [23:59:51]CAPDU: 80 17 00 00 [23:59:51]Write to MH i2c: E2 08 00 38 33 80 17 00 00 00 00 00 00 EB [23:59:51]Write i2c OK [23:59:51]MH_I2C_Read... [23:59:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:59:51]Read from MH i2c: E2 [23:59:51]MH_I2C_Read... [23:59:51]Read from MH i2c: E2 CC 00 [23:59:51]MH_I2C_Read... [23:59:51]Read from MH i2c: E2 CC 00 38 33 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 CC [23:59:51]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 [23:59:51]wFMCommunicate OK [23:59:51]SAM_PROTO_GetShiftData done [23:59:51]requested_item shift.sale.total_cash is exist - process it [23:59:51]requested_item shift.sale_refund.total is exist - process it [23:59:51]requested_item shift.sale_refund.total_cash is exist - process it [23:59:51]requested_item shift.buy.total is exist - process it [23:59:51]requested_item shift.buy.total_cash is exist - process it [23:59:51]produce_requested_data done [23:59:51]produce_requested_data return {"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:59:51]process_action_free get_value [23:59:51]json_value_free [23:59:51]json_value_free done [23:59:51]process_json_proto returns [23:59:51]Send response to host [23:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:59:51]free response buf [23:59:51]execute_script done [23:59:51]execute_script returns [23:59:51]free content buf [23:59:51]Sock 9.Close socket [23:59:51]Sock 9.Thread stoped [23:59:51]accept exits with 7 [23:59:51]New connection [23:59:51]New thread 3067600228 created [23:59:51]Thread 3067456868 joined [23:59:51]Waiting for new connection... [23:59:51] Sock 7.Parse request [23:59:51]Sock 7.Check first char [23:59:51]Sock 7.First char is OK [23:59:51]request: POST /json_proto HTTP/1.0 [23:59:51]Method: POST [23:59:51]URL: /json_proto [23:59:51]Method is POST - this is cgi request [23:59:51]url: /json_proto [23:59:51]query_string will be loaded in cgi processing [23:59:51]execute_cgi json_proto POST (null) [23:59:51]execute_cgi path=json_proto method=POST [23:59:51]POST find Content-Length [23:59:51]Host: 172.17.96.67:8080 [23:59:51]Content-Length: 331 [23:59:51]Content-Type: application/json [23:59:51] [23:59:51]POST finish read [23:59:51]Found Content-Length = 331 [23:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:51]execute_script... [23:59:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:51]POST & json_proto [23:59:51]process_json_proto [23:59:51]json parsed OK: [23:59:51]protocol is kg_v1.0 [23:59:51]action value=get_value [23:59:51]process_action get_value [23:59:51]cmd_get_value [23:59:51]process_action get_value done [23:59:51]requested_data is exist [23:59:51]produce_requested_data [23:59:51]requested_item fm.sale.total is exist - process it [23:59:51]SAM_PROTO_GetFMData [23:59:51]wFMCommunicate request_size=4 [23:59:51]MH_SAM_APDU [23:59:51]CAPDU: 80 13 03 00 [23:59:51]Write to MH i2c: E2 08 00 39 33 80 13 03 00 00 00 00 00 EB [23:59:51]Write i2c OK [23:59:51]MH_I2C_Read... [23:59:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:52]Read from MH i2c: E2 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 39 33 00 BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 F7 [23:59:52]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:52]wFMCommunicate OK [23:59:52]wFMCommunicate request_size=4 [23:59:52]MH_SAM_APDU [23:59:52]CAPDU: 80 17 00 00 [23:59:52]Write to MH i2c: E2 08 00 3A 33 80 17 00 00 00 00 00 00 ED [23:59:52]Write i2c OK [23:59:52]MH_I2C_Read... [23:59:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:52]Read from MH i2c: E2 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 3A 33 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 96 [23:59:52]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 [23:59:53]wFMCommunicate OK [23:59:53]wFMCommunicate request_size=4 [23:59:53]MH_SAM_APDU [23:59:53]CAPDU: 80 17 00 00 [23:59:53]Write to MH i2c: E2 08 00 3B 33 80 17 00 00 00 00 00 00 EE [23:59:53]OFD Sender: No OFD packet to send [23:59:53]Write i2c OK [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 [23:59:53]MH_I2C_Read... [23:59:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:53]Read from MH i2c: E2 FD 00 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 FD 00 3B 33 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 1A [23:59:53]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:59:53]wFMCommunicate OK [23:59:53]wFMCommunicate request_size=4 [23:59:53]MH_SAM_APDU [23:59:53]CAPDU: 80 17 00 00 [23:59:53]Write to MH i2c: E2 08 00 3C 33 80 17 00 00 00 00 00 00 EF [23:59:53]Write i2c OK [23:59:53]MH_I2C_Read... [23:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:54]Read from MH i2c: E2 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 3C 33 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 67 [23:59:54]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:59:54]wFMCommunicate OK [23:59:54]wFMCommunicate request_size=4 [23:59:54]MH_SAM_APDU [23:59:54]CAPDU: 80 17 00 00 [23:59:54]Write to MH i2c: E2 08 00 3D 33 80 17 00 00 00 00 00 00 F0 [23:59:54]Write i2c OK [23:59:54]MH_I2C_Read... [23:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:59:54]Read from MH i2c: E2 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 D7 00 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 D7 00 3D 33 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D3 [23:59:54]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:59:54]wFMCommunicate OK [23:59:54]SAM_PROTO_GetFMData done [23:59:54]requested_item fm.sale_refund.total is exist - process it [23:59:54]requested_item fm.buy.total is exist - process it [23:59:54]requested_item shift.sale.total is exist - process it [23:59:54]SAM_PROTO_GetShiftData [23:59:54]wFMCommunicate request_size=4 [23:59:54]MH_SAM_APDU [23:59:54]CAPDU: 80 13 02 00 [23:59:54]Write to MH i2c: E2 08 00 3E 33 80 13 02 00 00 00 00 00 EF [23:59:54]Write i2c OK [23:59:54]MH_I2C_Read... [23:59:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:55]Read from MH i2c: E2 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 FD 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 FD 00 3E 33 00 AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 5B [23:59:55]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 [23:59:55]wFMCommunicate OK [23:59:55]wFMCommunicate request_size=4 [23:59:55]MH_SAM_APDU [23:59:55]CAPDU: 80 17 00 00 [23:59:55]Write to MH i2c: E2 08 00 3F 33 80 17 00 00 00 00 00 00 F2 [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:56]Read from MH i2c: E2 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 3F 33 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 0B [23:59:56]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 [23:59:56]wFMCommunicate OK [23:59:56]wFMCommunicate request_size=4 [23:59:56]MH_SAM_APDU [23:59:56]CAPDU: 80 17 00 00 [23:59:56]Write to MH i2c: E2 08 00 40 33 80 17 00 00 00 00 00 00 F3 [23:59:56]Write i2c OK [23:59:56]MH_I2C_Read... [23:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:56]Read from MH i2c: E2 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 40 33 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 A7 [23:59:56]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 [23:59:57]wFMCommunicate OK [23:59:57]wFMCommunicate request_size=4 [23:59:57]MH_SAM_APDU [23:59:57]CAPDU: 80 17 00 00 [23:59:57]Write to MH i2c: E2 08 00 41 33 80 17 00 00 00 00 00 00 F4 [23:59:57]Write i2c OK [23:59:57]MH_I2C_Read... [23:59:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:57]Read from MH i2c: E2 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 FD 00 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 FD 00 41 33 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 72 [23:59:57]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 [23:59:57]wFMCommunicate OK [23:59:57]wFMCommunicate request_size=4 [23:59:57]MH_SAM_APDU [23:59:57]CAPDU: 80 17 00 00 [23:59:57]Write to MH i2c: E2 08 00 42 33 80 17 00 00 00 00 00 00 F5 [23:59:57]Write i2c OK [23:59:57]MH_I2C_Read... [23:59:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:59:57]Read from MH i2c: E2 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 CC 00 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 CC 00 42 33 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 D6 [23:59:58]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 OFD Sender: No OFD packet to send [23:59:58]00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:58]wFMCommunicate OK [23:59:58]SAM_PROTO_GetShiftData done [23:59:58]requested_item shift.sale.total_cash is exist - process it [23:59:58]requested_item shift.sale_refund.total is exist - process it [23:59:58]requested_item shift.sale_refund.total_cash is exist - process it [23:59:58]requested_item shift.buy.total is exist - process it [23:59:58]requested_item shift.buy.total_cash is exist - process it [23:59:58]produce_requested_data done [23:59:58]produce_requested_data return {"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:59:58]process_action_free get_value [23:59:58]json_value_free [23:59:58]json_value_free done [23:59:58]process_json_proto returns [23:59:58]Send response to host [23:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:59:58]free response buf [23:59:58]execute_script done [23:59:58]execute_script returns [23:59:58]free content buf [23:59:58]Sock 7.Close socket [23:59:58]Sock 7.Thread stoped [23:59:58]accept exits with 9 [23:59:58]New connection [23:59:58]New thread 3067456868 created [23:59:58]Thread 3067600228 joined [23:59:58]Waiting for new connection... [23:59:58] Sock 9.Parse request [23:59:58]Sock 9.Check first char [23:59:58]Sock 9.First char is OK [23:59:58]request: POST /json_proto HTTP/1.0 [23:59:58]Method: POST [23:59:58]URL: /json_proto [23:59:58]Method is POST - this is cgi request [23:59:58]url: /json_proto [23:59:58]query_string will be loaded in cgi processing [23:59:58]execute_cgi json_proto POST (null) [23:59:58]execute_cgi path=json_proto method=POST [23:59:58]POST find Content-Length [23:59:58]Host: 172.17.96.67:8080 [23:59:58]Content-Length: 254 [23:59:58]Content-Type: application/json [23:59:58] [23:59:58]POST finish read [23:59:58]Found Content-Length = 254 [23:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u043E\u043A\u0447\u043E\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:58]execute_script... [23:59:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u043E\u043A\u0447\u043E\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:58]POST & json_proto [23:59:58]process_json_proto [23:59:58]json parsed OK: [23:59:58]protocol is kg_v1.0 [23:59:58]action value=close_shift [23:59:58]process_action close_shift [23:59:58]cmd_close_shift [23:59:58]MH_GetDate [23:59:58]Write to MH i2c: F0 00 00 43 33 65 [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: F0 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: F0 09 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: F0 09 00 43 33 00 02 D4 1E 67 2B 09 1E 67 82 [23:59:58]GetLastDocTimeStamp 1730073575 [23:59:58]current date 1730073602 [23:59:58]FM_GetShiftState [23:59:58]SAM_PROTO_GetShiftState [23:59:58]wFMCommunicate request_size=4 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 13 01 00 [23:59:58]Write to MH i2c: E2 08 00 44 33 80 13 01 00 00 00 00 00 F4 [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 0E 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 0E 00 44 33 00 09 00 01 2C 83 1D 67 00 00 00 00 90 00 33 [23:59:58]RAPDU: 09 00 01 2C 83 1D 67 00 00 00 00 90 00 [23:59:58]wFMCommunicate OK [23:59:58]SAM_PROTO_GetShiftState done [23:59:58]FM_GetShiftState done [23:59:58]KKMCreateCloseShiftDocument [23:59:58]Load OK [23:59:58]Malloc new data [23:59:58]MH_GetDate [23:59:58]Write to MH i2c: F0 00 00 45 33 67 [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: F0 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: F0 09 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: F0 09 00 45 33 00 02 D4 1E 67 2B 09 1E 67 84 [23:59:58]Malloc new data [23:59:58]Malloc new data [23:59:58]Malloc new data [23:59:58]Malloc new data [23:59:58]KKMCreateCloseShiftDocument OK [23:59:58]KKMSetCloseShiftData OK [23:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=69 [23:59:58]tlvbuf is 018F9E40 [23:59:58]KKMLoadAndSignCloseShiftData [23:59:58]SAM_PROTO_ProcessDocument [23:59:58]wFMCommunicate request_size=9 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 15 01 00 04 05 00 45 00 [23:59:58]Write to MH i2c: E2 0C 00 46 33 80 15 01 00 04 00 05 00 45 00 00 00 4A [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 03 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 03 00 46 33 00 90 00 ED [23:59:58]RAPDU: 90 00 [23:59:58]wFMCommunicate OK [23:59:58]wFMCommunicate request_size=23 [23:59:58]MH_SAM_APDU [23:59:58]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:59:58]Write to MH i2c: E2 1A 00 47 33 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 EF [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 03 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 03 00 47 33 00 90 00 EE [23:59:58]RAPDU: 90 00 [23:59:58]wFMCommunicate OK [23:59:58]wFMCommunicate request_size=28 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 [23:59:58]Write to MH i2c: E2 1F 00 48 33 80 15 02 00 17 00 FD 03 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 00 00 79 [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:58]Read from MH i2c: E2 03 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 03 00 48 33 00 90 00 EF [23:59:58]RAPDU: 90 00 [23:59:58]wFMCommunicate OK [23:59:58]wFMCommunicate request_size=13 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 15 02 00 08 F4 03 04 00 02 D4 1E 67 [23:59:58]Write to MH i2c: E2 10 00 49 33 80 15 02 00 08 00 F4 03 04 00 02 D4 1E 67 00 00 62 [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 03 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 03 00 49 33 00 90 00 F0 [23:59:58]RAPDU: 90 00 [23:59:59]wFMCommunicate OK [23:59:59]wFMCommunicate request_size=25 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 [23:59:59]Write to MH i2c: E2 1C 00 4A 33 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 00 00 61 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 4A 33 00 90 00 F1 [23:59:59]RAPDU: 90 00 [23:59:59]wFMCommunicate OK [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 15 03 00 [23:59:59]Write to MH i2c: E2 08 00 4B 33 80 15 03 00 00 00 00 00 FF [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 FD 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 FD 00 4B 33 00 F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0B CB 01 00 0E 04 04 00 1E 02 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 90 00 AA [23:59:59]RAPDU: F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0B CB 01 00 0E 04 04 00 1E 02 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 90 00 [00:00:00]wFMCommunicate OK [00:00:00]SAM_PROTO_ProcessDocument answer len = 1266 [00:00:00]SAM_PROTO_ProcessDocument remain to read = 1018 [00:00:00]wFMCommunicate request_size=4 [00:00:00]MH_SAM_APDU [00:00:00]CAPDU: 80 17 00 00 [00:00:00]Write to MH i2c: E2 08 00 4C 33 80 17 00 00 00 00 00 00 FF [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:00]Read from MH i2c: E2 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 4C 33 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 45 [00:00:00]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [00:00:00]wFMCommunicate OK [00:00:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:00]SAM_PROTO_ProcessDocument remain to read = 768 [00:00:00]wFMCommunicate request_size=4 [00:00:00]MH_SAM_APDU [00:00:00]CAPDU: 80 17 00 00 [00:00:00]Write to MH i2c: E2 08 00 4D 33 80 17 00 00 00 00 00 00 00 [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:01]Read from MH i2c: E2 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 4D 33 00 03 01 00 05 F7 03 00 00 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 90 00 62 [00:00:01]RAPDU: 03 01 00 05 F7 03 00 00 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 90 00 [00:00:01]wFMCommunicate OK [00:00:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:01]SAM_PROTO_ProcessDocument remain to read = 518 [00:00:01]wFMCommunicate request_size=4 [00:00:01]MH_SAM_APDU [00:00:01]CAPDU: 80 17 00 00 [00:00:01]Write to MH i2c: E2 08 00 4E 33 80 17 00 00 00 00 00 00 01 [00:00:01]Write i2c OK [00:00:01]MH_I2C_Read... [00:00:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:01]Read from MH i2c: E2 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 4E 33 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [00:00:01]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:02]wFMCommunicate OK [00:00:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:02]SAM_PROTO_ProcessDocument remain to read = 268 [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 17 00 00 [00:00:02]Write to MH i2c: E2 08 00 4F 33 80 17 00 00 00 00 00 00 02 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 FD 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 FD 00 4F 33 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 B9 [00:00:02]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 [00:00:02]wFMCommunicate OK [00:00:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:02]SAM_PROTO_ProcessDocument remain to read = 18 [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 17 00 00 [00:00:02]Write to MH i2c: E2 08 00 50 33 80 17 00 00 00 00 00 00 03 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 15 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 15 00 50 33 00 03 01 00 06 F7 03 00 00 35 04 06 00 86 CC 86 17 D0 4F 90 00 5A [00:00:02]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 86 CC 86 17 D0 4F 90 00 [00:00:03]wFMCommunicate OK [00:00:03]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [00:00:03]SAM_PROTO_ProcessDocument done [00:00:03]1209 (1) - 1.0 - номер версии ФФД [00:00:03]1041 (16) - 0000000000871767 - номер ФМ [00:00:03]1040 (4) - 117515 - номер ФД [00:00:03]1038 (4) - 542 - номер смены [00:00:03]1118 (4) - 214 - количество кассовых чеков за смену [00:00:03]1111 (4) - 216 - общее количество ФД за смену [00:00:03]1194 (1195) - счетчики итогов смены [00:00:03] 1134 (4) - 214 - количество чеков со всеми признаками расчетов [00:00:03] 1129 (156) - счетчики операций «приход» [00:00:03] 1135 (4) - 214 - количество чеков по признаку расчетов [00:00:03] 1201 (3) - 132198.48 - общая итоговая сумма в чеках [00:00:03] 1136 (3) - 117692.00 - итоговая сумма в чеках наличными [00:00:03] 1138 (3) - 14506.48 - итоговая сумма в чеках безналичными [00:00:03] 1024 (123) - суммы налогов [00:00:03] 1006 (9) - суммы НДС [00:00:03] 1010 (1) - 0% - код ставки НДС [00:00:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:03] 1006 (12) - суммы НДС [00:00:03] 1010 (1) - 12% - код ставки НДС [00:00:03] 1011 (3) - 14045.03 - сумма НДС по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 0% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (12) - суммы НСП [00:00:03] 1014 (1) - 1% - код ставки НСП [00:00:03] 1015 (3) - 1170.51 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 2% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 3% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 5% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 0,50% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 1,50% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1130 (141) - счетчики операций «возврат прихода» [00:00:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:03] 1024 (117) - суммы налогов [00:00:03] 1006 (9) - суммы НДС [00:00:03] 1010 (1) - 0% - код ставки НДС [00:00:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:03] 1006 (9) - суммы НДС [00:00:03] 1010 (1) - 12% - код ставки НДС [00:00:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 0% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 1% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 2% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 3% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 5% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 0,50% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 1,50% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1131 (141) - счетчики операций «расход» [00:00:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:03] 1024 (117) - суммы налогов [00:00:03] 1006 (9) - суммы НДС [00:00:03] 1010 (1) - 0% - код ставки НДС [00:00:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:03] 1006 (9) - суммы НДС [00:00:03] 1010 (1) - 12% - код ставки НДС [00:00:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 0% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 1% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] OFD Sender: No OFD packet to send [00:00:03] 1014 (1) - 2% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 3% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 5% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 0,50% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 1,50% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1132 (141) - счетчики операций «возврат расхода» [00:00:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:03] 1024 (117) - суммы налогов [00:00:03] 1006 (9) - суммы НДС [00:00:03] 1010 (1) - 0% - код ставки НДС [00:00:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:03] 1006 (9) - суммы НДС [00:00:03] 1010 (1) - 12% - код ставки НДС [00:00:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 0% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 1% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 2% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 3% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 5% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 0,50% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1007 (9) - суммы НСП [00:00:03] 1014 (1) - 1,50% - код ставки НСП [00:00:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:03] 1133 (588) - - счетчики коррекции - не используются [00:00:03]1077 (6) - 148212981157967 - ФПД [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1209 (04B9) [00:00:03]Malloc new data [00:00:03]Processing tag 1041 (0411) [00:00:03]Processing tag 1040 (0410) [00:00:03]Malloc new data [00:00:03]Processing tag 1038 (040E) [00:00:03]Malloc new data [00:00:03]Processing tag 1118 (045E) [00:00:03]Malloc new data [00:00:03]Processing tag 1111 (0457) [00:00:03]Malloc new data [00:00:03]Processing tag 1194 (04AA) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1134 (046E) [00:00:03]Malloc new data [00:00:03]Processing tag 1129 (0469) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1135 (046F) [00:00:03]Malloc new data [00:00:03]Processing tag 1201 (04B1) [00:00:03]Malloc new data [00:00:03]Processing tag 1136 (0470) [00:00:03]Malloc new data [00:00:03]Processing tag 1138 (0472) [00:00:03]Malloc new data [00:00:03]Processing tag 1024 (0400) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1006 (03EE) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1010 (03F2) [00:00:03]Malloc new data [00:00:03]Processing tag 1011 (03F3) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1006 (03EE) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1010 (03F2) [00:00:03]Malloc new data [00:00:03]Processing tag 1011 (03F3) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]SetTLVBufToDocument err=0 [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1130 (046A) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1135 (046F) [00:00:03]Malloc new data [00:00:03]Processing tag 1201 (04B1) [00:00:03]Malloc new data [00:00:03]Processing tag 1136 (0470) [00:00:03]Malloc new data [00:00:03]Processing tag 1138 (0472) [00:00:03]Malloc new data [00:00:03]Processing tag 1024 (0400) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1006 (03EE) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1010 (03F2) [00:00:03]Malloc new data [00:00:03]Processing tag 1011 (03F3) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1006 (03EE) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1010 (03F2) [00:00:03]Malloc new data [00:00:03]Processing tag 1011 (03F3) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]SetTLVBufToDocument err=0 [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1131 (046B) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1135 (046F) [00:00:03]Malloc new data [00:00:03]Processing tag 1201 (04B1) [00:00:03]Malloc new data [00:00:03]Processing tag 1136 (0470) [00:00:03]Malloc new data [00:00:03]Processing tag 1138 (0472) [00:00:03]Malloc new data [00:00:03]Processing tag 1024 (0400) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1006 (03EE) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1010 (03F2) [00:00:03]Malloc new data [00:00:03]Processing tag 1011 (03F3) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1006 (03EE) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1010 (03F2) [00:00:03]Malloc new data [00:00:03]Processing tag 1011 (03F3) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1007 (03EF) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1014 (03F6) [00:00:03]Malloc new data [00:00:03]Processing tag 1015 (03F7) [00:00:03]Malloc new data [00:00:03]SetTLVBufToDocument err=0 [00:00:03]SetTLVBufToDocument err=0 [00:00:03]SetTLVBufToDocument err=0 [00:00:03]Processing tag 1132 (046C) [00:00:03]Load OK [00:00:03]SetTLVBufToDocument [00:00:03]Processing tag 1135 (046F) [00:00:03]Malloc new data [00:00:03]Processing tag 1201 (04B1) [00:00:03]Malloc new data [00:00:03]Processing tag 1136 (0470) [00:00:03]Malloc new data [00:00:03]Processing tag 1138 (0472) [00:00:03]Malloc new data [00:00:03]Processing tag 1024 (0400) [00:00:03]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1006 (03EE) [00:00:04]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1010 (03F2) [00:00:04]Malloc new data [00:00:04]Processing tag 1011 (03F3) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1006 (03EE) [00:00:04]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1010 (03F2) [00:00:04]Malloc new data [00:00:04]Processing tag 1011 (03F3) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1007 (03EF) [00:00:04]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1014 (03F6) [00:00:04]Malloc new data [00:00:04]Processing tag 1015 (03F7) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1007 (03EF) [00:00:04]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1014 (03F6) [00:00:04]Malloc new data [00:00:04]Processing tag 1015 (03F7) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1007 (03EF) [00:00:04]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1014 (03F6) [00:00:04]Malloc new data [00:00:04]Processing tag 1015 (03F7) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1007 (03EF) [00:00:04]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1014 (03F6) [00:00:04]Malloc new data [00:00:04]Processing tag 1015 (03F7) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1007 (03EF) [00:00:04]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1014 (03F6) [00:00:04]Malloc new data [00:00:04]Processing tag 1015 (03F7) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1007 (03EF) [00:00:04]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1014 (03F6) [00:00:04]Malloc new data [00:00:04]Processing tag 1015 (03F7) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1007 (03EF) [00:00:04]Load OK [00:00:04]SetTLVBufToDocument [00:00:04]Processing tag 1014 (03F6) [00:00:04]Malloc new data [00:00:04]Processing tag 1015 (03F7) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]SetTLVBufToDocument err=0 [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1133 (046D) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Processing tag 1077 (0435) [00:00:04]Malloc new data [00:00:04]SetTLVBufToDocument err=0 [00:00:04]Malloc new data [00:00:04]SAM_PROTO_GetFMData [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 13 03 00 [00:00:04]Write to MH i2c: E2 08 00 51 33 80 13 03 00 00 00 00 00 03 [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:04]Read from MH i2c: E2 FD 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 FD 00 51 33 00 BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 0F [00:00:04]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:00:05]wFMCommunicate OK [00:00:05]wFMCommunicate request_size=4 [00:00:05]MH_SAM_APDU [00:00:05]CAPDU: 80 17 00 00 [00:00:05]Write to MH i2c: E2 08 00 52 33 80 17 00 00 00 00 00 00 05 [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:05]Read from MH i2c: E2 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 FD 00 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 FD 00 52 33 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 AE [00:00:05]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 [00:00:05]wFMCommunicate OK [00:00:05]wFMCommunicate request_size=4 [00:00:05]MH_SAM_APDU [00:00:05]CAPDU: 80 17 00 00 [00:00:05]Write to MH i2c: E2 08 00 53 33 80 17 00 00 00 00 00 00 06 [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:06]Read from MH i2c: E2 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 FD 00 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 FD 00 53 33 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 32 [00:00:06]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:00:06]wFMCommunicate OK [00:00:06]wFMCommunicate request_size=4 [00:00:06]MH_SAM_APDU [00:00:06]CAPDU: 80 17 00 00 [00:00:06]Write to MH i2c: E2 08 00 54 33 80 17 00 00 00 00 00 00 07 [00:00:06]Write i2c OK [00:00:06]MH_I2C_Read... [00:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:06]Read from MH i2c: E2 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 FD 00 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 FD 00 54 33 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 7F [00:00:07]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:00:07]wFMCommunicate OK [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 17 00 00 [00:00:07]Write to MH i2c: E2 08 00 55 33 80 17 00 00 00 00 00 00 08 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 D7 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 D7 00 55 33 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EB [00:00:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:08]wFMCommunicate OK [00:00:08]SAM_PROTO_GetFMData done [00:00:08]Malloc new data [00:00:08]Malloc new data [00:00:08]Malloc new data [00:00:08]Malloc new data [00:00:08]KKMLoadAndSignCloseShiftData err=0 [00:00:08]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кокчоев А. 28.10.2024 00:00 Смена: 542 РНМ: 0000000000091782 ЗНМ: 0300000115 СНО: Общий режим Чеков за смену: 214 ФД за смену: 216 Всего чеков: 214 ИТОГИ ПРИХОД Чеков: 214 Общий итог: 132198.48 Итого наличными: 117692.00 Итого безнал.: 14506.48 НДС 0% : 0.00 НДС 12% : 14045.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1170.51 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 117692.00 НС Приход: 71065489.36 НС Возвр.Прихода: 1.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 117515 ФМ: 0000000000871767 ФПД: 148212981157967 [00:00:08]StoreToDocumentArchive [00:00:08]shift 542 fd 117515 [00:00:08]save to /storage/0542/doc_00117515 [00:00:08]save last doc name /storage/0542/doc_00117515 to /storage/kkm_last_doc_name [00:00:08]save OK [00:00:08]Clear old archive folders... [00:00:08]Remove dir /storage/0522 [00:00:08]opendir ok [00:00:08]file . [00:00:08]file .. [00:00:08]file doc_1730073583 [00:00:08]remove file /storage/0522/doc_1730073583 [00:00:08]remove dir /storage/0522 [00:00:08]NVStorageSaveData kkm_registers [00:00:08]File name is /storage/kkm_registers [00:00:08]Write 24 bytes [00:00:08]NVStorageSaveData done [00:00:08]NVStorageSaveData kkm_registers [00:00:08]File name is /storage/kkm_registers [00:00:08]Write 24 bytes [00:00:08]NVStorageSaveData done [00:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=1378 [00:00:08]tlvbuf is 01948380 [00:00:08]SAM_PROTO_ClearQueue [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 09 00 00 [00:00:08]Write to MH i2c: E2 08 00 56 33 80 09 00 00 00 00 00 00 FB [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 56 33 00 90 00 FD [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]SAM_PROTO_ClearQueue done [00:00:08]KKMCreateOFDPacket [00:00:08]OFDProtocolAddRootSTLVToBuf [00:00:08]FM_MakeSignedData [00:00:08]FM_MakeSignedData [00:00:08]SAM_PROTO_SignData [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 0D 01 02 [00:00:08]Write to MH i2c: E2 08 00 57 33 80 0D 01 02 00 00 00 00 03 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 57 33 00 90 00 FE [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=255 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 0D 02 02 FA 05 00 62 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 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 02 D4 1E 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 AA 04 D6 04 6E 04 04 00 D6 00 00 00 69 04 A3 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 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:00:08]Write to MH i2c: E2 02 01 58 33 80 0D 02 02 FA 00 05 00 62 05 B9 04 01 00 01 FA 03 0E 00 30 OFD Sender: No OFD packet to send [00:00:08]32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 02 D4 1E 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 AA 04 D6 04 6E 04 04 00 D6 00 00 00 69 04 A3 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 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 00 67 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 58 33 00 90 00 FF [00:00:09]RAPDU: 90 00 [00:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=255 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 0D 02 02 FA 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 3B C9 01 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:00:09]Write to MH i2c: E2 02 01 59 33 80 0D 02 02 FA 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 3B C9 01 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 00 78 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 [00:00:09]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 59 33 00 90 00 00 [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=255 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 0D 02 02 FA 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:10]Write to MH i2c: E2 02 01 5A 33 80 0D 02 02 FA 00 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 CD [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 5A 33 00 90 00 01 [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=255 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 0D 02 02 FA 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11]Write to MH i2c: E2 02 01 5B 33 80 0D 02 02 FA 00 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 0D 02 02... 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 5B 33 00 90 00 02 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=255 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 [00:00:11]Write to MH i2c: E2 02 01 5C 33 80 0D 02 02 FA 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 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 00 00 8C [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 5C 33 00 90 00 03 [00:00:12]RAPDU: 90 00 [00:00:12]wFMCommunicate OK [00:00:12]wFMCommunicate request_size=137 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 0D 02 02 84 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0B CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 86 CC 86 17 D0 4F [00:00:12]Write to MH i2c: E2 8C 00 5D 33 80 0D 02 02 84 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 10 04 04 00 0B CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 86 CC 86 17 D0 4F 00 00 38 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 03 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 03 00 5D 33 00 90 00 04 [00:00:13]RAPDU: 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 0D 03 02 [00:00:13]Write to MH i2c: E2 08 00 5E 33 80 0D 03 02 00 00 00 00 0C [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 0B 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 0B 00 5E 33 00 01 81 98 F3 97 E4 49 6B 90 00 49 [00:00:13]RAPDU: 01 81 98 F3 97 E4 49 6B 90 00 [00:00:13]wFMCommunicate OK [00:00:13]SAM_PROTO_SignData done [00:00:13]FM_MakeSignedData done [00:00:13]CreateOFDProtocolMessage [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 11 00 00 [00:00:13]Write to MH i2c: E2 08 00 5F 33 80 11 00 00 00 00 00 00 0C [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 17 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 17 00 5F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 63 [00:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:00:13]wFMCommunicate OK [00:00:13]CreateOFDProtocolMessage done [00:00:13]OFDSenderStorePacket 117515 [00:00:13]StoreOFDPacket docnum=117515 [00:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 76 05 00 00 0A 1C 6E 05 0A F4 5A 05 01 00 05 00 62 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 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 02 D4 1E 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 AA 04 D6 04 6E 04 04 00 D6 00 00 00 69 04 A3 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 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 3B C9 01 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 0B CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 86 CC 86 17 D0 4F 01 81 98 F3 97 E4 49 6B [00:00:13]CheckFolder [00:00:13]dirname=/storage/ofd_packets [00:00:13]CheckFolder done [00:00:13]ProducePacketName [00:00:13]name=ofd_packets/00117515 [00:00:13]NVStorageSaveData ofd_packets/00117515 [00:00:13]File name is /storage/ofd_packets/00117515 [00:00:13]Write 1428 bytes [00:00:13]NVStorageSaveData done [00:00:13]OFDSenderStorePacket done [00:00:13]KKMCreateOFDPacket done [00:00:13]NVStorageSaveData kkm_last_timestamp [00:00:13]File name is /storage/kkm_last_timestamp [00:00:13]Write 4 bytes [00:00:13]NVStorageSaveData done [00:00:13]ExternCall_PrintAddStr [00:00:13]wPrintStart [00:00:13]Write to MH i2c: 01 00 00 60 33 93 OFD Sender: No OFD packet to send [00:00:13] [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: 01 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: 01 07 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: 01 07 00 60 33 00 00 00 00 00 FF 0F A8 [00:00:13]RasterBufferAndPrint [00:00:13]line Отчет о закрытии смены [00:00:13]line ФФД: 1.0 [00:00:13]line ИНН: 02508201610067 [00:00:13]line Кассир: Кокчоев А. [00:00:13]line 28.10.2024 00:00 [00:00:13]line Смена: 542 [00:00:13]line РНМ: 0000000000091782 [00:00:13]line ЗНМ: 0300000115 [00:00:13]line СНО: Общий режим [00:00:13]line Чеков за смену: 214 [00:00:13]line ФД за смену: 216 [00:00:13]line Всего чеков: 214 [00:00:13]line ИТОГИ ПРИХОД [00:00:13]line Чеков: 214 [00:00:13]line Общий итог: 132198.48 [00:00:13]line Итого наличными: 117692.00 [00:00:13]line Итого безнал.: 14506.48 [00:00:13]line НДС 0% : 0.00 [00:00:13]line НДС 12% : 14045.03 [00:00:13]line НСП 0% : 0.00 [00:00:13]line НСП 1,50% : 0.00 [00:00:13]line НСП 0,50% : 0.00 [00:00:13]line НСП 5% : 0.00 [00:00:13]line НСП 3% : 0.00 [00:00:13]line НСП 2% : 0.00 [00:00:13]line НСП 1% : 1170.51 [00:00:13]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:00:13]line Чеков: 0 [00:00:13]line Общий итог: 0.00 [00:00:13]line Итого наличными: 0.00 [00:00:13]line Итого безнал.: 0.00 [00:00:13]line НДС 0% : 0.00 [00:00:13]line НДС 12% : 0.00 [00:00:13]line НСП 0% : 0.00 [00:00:13]line НСП 1,50% : 0.00 [00:00:13]line НСП 0,50% : 0.00 [00:00:13]line НСП 5% : 0.00 [00:00:13]line НСП 3% : 0.00 [00:00:13]line НСП 2% : 0.00 [00:00:13]line НСП 1% : 0.00 [00:00:13]line ИТОГИ РАСХОД [00:00:13]line Чеков: 0 [00:00:13]line Общий итог: 0.00 [00:00:13]line Итого наличными: 0.00 [00:00:13]line Итого безнал.: 0.00 [00:00:13]line НДС 0% : 0.00 [00:00:13]line НДС 12% : 0.00 [00:00:13]line НСП 0% : 0.00 [00:00:13]line НСП 1,50% : 0.00 [00:00:13]line НСП 0,50% : 0.00 [00:00:13]line НСП 5% : 0.00 [00:00:13]line НСП 3% : 0.00 [00:00:13]line НСП 2% : 0.00 [00:00:13]line НСП 1% : 0.00 [00:00:13]line ИТОГИ ВОЗВРАТ РАСХОДА [00:00:13]line Чеков: 0 [00:00:13]line Общий итог: 0.00 [00:00:13]line Итого наличными: 0.00 [00:00:13]line Итого безнал.: 0.00 [00:00:13]line НДС 0% : 0.00 [00:00:13]line НДС 12% : 0.00 [00:00:13]OFD Sender: Processing packet 117515 [packets to send 76, broken 75] [00:00:13]line НСП 0% : 0.00 [00:00:13]ProducePacketName [00:00:13]line НСП 1,50% : 0.00 [00:00:13]line НСП 0,50% : 0.00 [00:00:13]line НСП 5% : 0.00 [00:00:13]line НСП 3% : 0.00 [00:00:13]line НСП 2% : 0.00 [00:00:13]line НСП 1% : 0.00 [00:00:13]line Сумма внесений: 0.00 [00:00:13]line Сумма выплат: 0.00 [00:00:13]line Нал. в кассе: 117692.00 [00:00:13]name=ofd_packets/00117515 [00:00:13]line НС Приход: 71065489.36 [00:00:13]OFD Sender: To server: pG, [00:00:13]line НС Возвр.Прихода: 1.00 [00:00:13]CommunicateWithHost lk.salyk.kg:30040 [00:00:13]line НС Расход: 0.00 [00:00:13]ConnectInit lk.salyk.kg [00:00:13]line НС Возвр.Расхода: 0.00 [00:00:13]line ФД: 117515 [00:00:13]line ФМ: 0000000000871767 [00:00:13]line ФПД: 148212981157967 [00:00:13]written 0, free lines is 4095 [00:00:14]Connected sock=10 [00:00: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 36 37 76 05 00 00 0A 1C 6E 05 0A F4 5A 05 01 00 05 00 62 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 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 02 D4 1E 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 AA 04 D6 04 6E 04 04 00 D6 00 00 00 69 04 A3 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 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 3B C9 01 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 Write to MH i2c: 00 01 EE 00 03 00 0A B0 33 E3 [00:00:14]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 Write i2c OK [00:00:14]00 MH_I2C_Read... [00:00:14]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 Read from MH i2c: 00 01 00 [00:00:15]04 MH_I2C_Read... [00:00:15]7E 00 EE 03 0A 00 F2 03 01 00 00 Read from MH i2c: F3 01 03 07 01 00 00 [00:00:15]00 EE 03 0A 00 F2 03 01 00 01 MH_I2C_Read... [00:00:15]F3 Read from MH i2c: 03 01 01 07 00 00 00 B0 EF 33 03 00 0A 00 00 00 00 F6 00 03 9C 01 0A 00 90 00 [00:00:15]F7 RasterBufferAndPrint [00:00:15]03 line [00:00:15]01 line [00:00:15]00 00 EF 03 0A 00 F6 03 01 00 line [00:00:15]06 line [00:00:15]F7 line [00:00:15]03 written 0, free lines is 3337 [00:00:15]01 00 00 EF 03 0A 00 F6 03 MH_Cut [00:00:15]01 Write to MH i2c: 00 D1 05 01 F7 00 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 B7 03 33 0A 01 00 BC F6 [00:00:15]03 Write i2c OK [00:00:15]01 MH_I2C_Read... [00:00:15]00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 Read from MH i2c: 00 D1 00 [00:00:15]00 MH_I2C_Read... [00:00:15]00 Read from MH i2c: 00 D1 79 01 04 00 8D [00:00:15]00 MH_I2C_Read... [00:00:15]6F Read from MH i2c: 04 D1 04 01 00 00 00 B7 00 33 00 00 00 BB B1 [00:00:15]04 Write to MH i2c: 00 01 00 00 70 00 04 B8 33 EB 00 [00:00:15]00 72 04 00 00 00 Write i2c OK [00:00:15]04 MH_I2C_Read... [00:00:15]75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [00:00:15]B1 *** Purtial cut [00:00:15]04 *** Stage 1: CUTSNS_PIN = 1 [00:00:15]00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0B CB 01 00 11 04 *** Stop cut motor [00:00:16]10 *** Cut end [00:00:16]00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 86 CC 86 17 D0 4F 01 81 98 F3 97 E4 49 6B [00:00:16]Read from MH i2c: 01 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: 01 07 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: 01 07 00 B8 33 00 00 00 00 00 FF 0F 00 [00:00:16]process_action close_shift done [00:00:16]requested_data is exist [00:00:16]produce_requested_data [00:00:16]requested_item fd.num is exist - process it [00:00:16]SAM_PROTO_GetFieldsCounters [00:00:16]wFMCommunicate request_size=4 [00:00:16]MH_SAM_APDU [00:00:16]CAPDU: 80 13 00 00 [00:00:16]Write to MH i2c: E2 08 00 B9 33 80 13 00 00 00 00 00 00 68 [00:00:16]Write i2c OK [00:00:16]MH_I2C_Read... [00:00:16]Received data: 87 95 F6 70 47 2C 01 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:16]00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 7E 86 47 00 11 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 36 37 10 04 04 00 0B CB 01 00 F4 03 04 00 CE 7F 1E 67 B6 04 01 00 00 E4 6A C5 05 0C C9 EA 6A [00:00:16]CommunicateWithHost err = 0 [00:00:16]CheckOFDResponse [00:00:16]1017 (14) - 77093643461234 [00:00:16]1041 (16) - 0000000000871767 [00:00:16]1040 (4) - 117515 [00:00:16]1012 (4) - 27.10.2024 18:00 [00:00:16]Read from MH i2c: 1206 (1) - 0 [00:00:16]E2 OFD Sender: Remove packet 117515 [00:00:16] [00:00:16]ProducePacketName [00:00:16]MH_I2C_Read... [00:00:16]name=ofd_packets/00117515 [00:00:16]NVStorageDeleteData [00:00:16]Read from MH i2c: E2 62 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 62 00 B9 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0B CB 01 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [00:00:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0B CB 01 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:17]wFMCommunicate OK [00:00:17]SAM_PROTO_GetFieldsCounters done [00:00:17]requested_item shift.num is exist - process it [00:00:17]requested_item shift.opened is exist - process it [00:00:17]req_shift_opened [00:00:17]FM_GetShiftState [00:00:17]SAM_PROTO_GetShiftState [00:00:17]wFMCommunicate request_size=4 [00:00:17]MH_SAM_APDU [00:00:17]CAPDU: 80 13 01 00 [00:00:17]Write to MH i2c: E2 08 00 BA 33 80 13 01 00 00 00 00 00 6A [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:17]Read from MH i2c: E2 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 0E 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 0E 00 BA 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 75 [00:00:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:00:17]wFMCommunicate OK [00:00:17]SAM_PROTO_GetShiftState done [00:00:17]FM_GetShiftState done [00:00:17]req_shift_opened done [00:00:17]requested_item shift.open_date is exist - process it [00:00:17]req_shift_open_date [00:00:17]FM_GetShiftState [00:00:17]SAM_PROTO_GetShiftState [00:00:17]wFMCommunicate request_size=4 [00:00:17]MH_SAM_APDU [00:00:17]CAPDU: 80 13 01 00 [00:00:17]Write to MH i2c: E2 08 00 BB 33 80 13 01 00 00 00 00 00 6B [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:17]Read from MH i2c: E2 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 0E 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 0E 00 BB 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 76 [00:00:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:00:17]wFMCommunicate OK [00:00:17]SAM_PROTO_GetShiftState done [00:00:17]FM_GetShiftState done [00:00:17]req_shift_open_date done [00:00:17]produce_requested_data done [00:00:17]produce_requested_data return {"fd.num":117515,"shift.num":542,"shift.opened":0,"shift.open_date":0} [00:00:17]process_action_free close_shift [00:00:17]json_value_free [00:00:17]json_value_free done [00:00:17]process_json_proto returns [00:00:17]Send response to host [00:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":117515,"shift.num":542,"shift.opened":0,"shift.open_date":0}}} [00:00:17]OFD Sender: No OFD packet to send [00:00:17]free response buf [00:00:17]execute_script done [00:00:17]execute_script returns [00:00:17]free content buf [00:00:17]Sock 9.Close socket [00:00:17]Sock 9.Thread stoped [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:17]accept exits with 7 [00:03:17]New connection [00:03:17]New thread 3067600228 created [00:03:17]Thread 3067456868 joined [00:03:17]Waiting for new connection... [00:03:17] Sock 7.Parse request [00:03:17]Sock 7.Check first char [00:03:17]Sock 7.First char is OK [00:03:17]request: POST /json_proto HTTP/1.0 [00:03:17]Method: POST [00:03:17]URL: /json_proto [00:03:17]Method is POST - this is cgi request [00:03:17]url: /json_proto [00:03:17]query_string will be loaded in cgi processing [00:03:17]execute_cgi json_proto POST (null) [00:03:17]execute_cgi path=json_proto method=POST [00:03:17]POST find Content-Length [00:03:17]Host: 172.17.96.67:8080 [00:03:17]Content-Length: 215 [00:03:17]Content-Type: application/json [00:03:17] [00:03:17]POST finish read [00:03:17]Found Content-Length = 215 [00:03:17]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:03:17]execute_script... [00:03:17]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:03:17]POST & json_proto [00:03:17]process_json_proto [00:03:17]json parsed OK: [00:03:17]protocol is kg_v1.0 [00:03:17]action value=get_value [00:03:17]process_action get_value [00:03:17]cmd_get_value [00:03:17]process_action get_value done [00:03:17]requested_data is exist [00:03:17]produce_requested_data [00:03:17]requested_item kkm.sn is exist - process it [00:03:17]requested_item kkm.ver is exist - process it [00:03:17]requested_item fm.sn is exist - process it [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 11 00 00 [00:03:17]Write to MH i2c: E2 08 00 BC 33 80 11 00 00 00 00 00 00 69 [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 17 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 17 00 BC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C0 [00:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:03:17]wFMCommunicate OK [00:03:17]requested_item fd.num is exist - process it [00:03:17]SAM_PROTO_GetFieldsCounters [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 13 00 00 [00:03:17]Write to MH i2c: E2 08 00 BD 33 80 13 00 00 00 00 00 00 6C [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 62 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 62 00 BD 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0B CB 01 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [00:03: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0B CB 01 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:18]wFMCommunicate OK [00:03:18]SAM_PROTO_GetFieldsCounters done [00:03:18]requested_item shift.num is exist - process it [00:03:18]requested_item shift.opened is exist - process it [00:03:18]req_shift_opened [00:03:18]FM_GetShiftState [00:03:18]SAM_PROTO_GetShiftState [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 13 01 00 [00:03:18]Write to MH i2c: E2 08 00 BE 33 80 13 01 00 00 00 00 00 6E [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 0E 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 0E 00 BE 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 79 [00:03:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:18]wFMCommunicate OK [00:03:18]SAM_PROTO_GetShiftState done [00:03:18]FM_GetShiftState done [00:03:18]req_shift_opened done [00:03:18]requested_item shift.open_date is exist - process it [00:03:18]req_shift_open_date [00:03:18]FM_GetShiftState [00:03:18]SAM_PROTO_GetShiftState [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 13 01 00 [00:03:18]Write to MH i2c: E2 08 00 BF 33 80 13 01 00 00 00 00 00 6F [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 0E 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 0E 00 BF 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7A [00:03:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:18]wFMCommunicate OK [00:03:18]SAM_PROTO_GetShiftState done [00:03:18]FM_GetShiftState done [00:03:18]req_shift_open_date done [00:03:18]produce_requested_data done [00:03:18]produce_requested_data return {"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117515,"shift.num":542,"shift.opened":0,"shift.open_date":0} [00:03:18]process_action_free get_value [00:03:18]json_value_free [00:03:18]json_value_free done [00:03:18]process_json_proto returns [00:03:18]Send response to host [00:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117515,"shift.num":542,"shift.opened":0,"shift.open_date":0}}} [00:03:18]free response buf [00:03:18]execute_script done [00:03:18]execute_script returns [00:03:18]free content buf [00:03:18]Sock 7.Close socket [00:03:18]Sock 7.Thread stoped [00:03:18]accept exits with 9 [00:03:18]New connection [00:03:18]New thread 3067456868 created [00:03:18]Thread 3067600228 joined [00:03:18]Waiting for new connection... [00:03:18] Sock 9.Parse request [00:03:18]Sock 9.Check first char [00:03:18]Sock 9.First char is OK [00:03:18]request: POST /json_proto HTTP/1.0 [00:03:18]Method: POST [00:03:18]URL: /json_proto [00:03:18]Method is POST - this is cgi request [00:03:18]url: /json_proto [00:03:18]query_string will be loaded in cgi processing [00:03:18]execute_cgi json_proto POST (null) [00:03:18]execute_cgi path=json_proto method=POST [00:03:18]POST find Content-Length [00:03:18]Host: 172.17.96.67:8080 [00:03:18]Content-Length: 331 [00:03:18]Content-Type: application/json [00:03:18] [00:03:18]POST finish read [00:03:18]Found Content-Length = 331 [00:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:18]execute_script... [00:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:18]POST & json_proto [00:03:18]process_json_proto [00:03:18]json parsed OK: [00:03:18]protocol is kg_v1.0 [00:03:18]action value=get_value [00:03:18]process_action get_value [00:03:18]cmd_get_value [00:03:18]process_action get_value done [00:03:18]requested_data is exist [00:03:18]produce_requested_data [00:03:18]requested_item fm.sale.total is exist - process it [00:03:18]SAM_PROTO_GetFMData [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 13 03 00 [00:03:18]Write to MH i2c: E2 08 00 C0 33 80 13 03 00 00 00 00 00 72 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 C0 33 00 BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 7E [00:03:18]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:03:18]wFMCommunicate OK [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 17 00 00 [00:03:18]Write to MH i2c: E2 08 00 C1 33 80 17 00 00 00 00 00 00 74 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 C1 33 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 1D [00:03:19]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 [00:03:19]wFMCommunicate OK [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 17 00 00 [00:03:19]Write to MH i2c: E2 08 00 C2 33 80 17 00 00 00 00 00 00 75 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 C2 33 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 A1 [00:03:19]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:03:19]wFMCommunicate OK [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 17 00 00 [00:03:19]Write to MH i2c: E2 08 00 C3 33 80 17 00 00 00 00 00 00 76 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 C3 33 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 EE [00:03:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:03:19]wFMCommunicate OK [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 17 00 00 [00:03:19]Write to MH i2c: E2 08 00 C4 33 80 17 00 00 00 00 00 00 77 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 D7 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 D7 00 C4 33 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5A [00:03:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:19]wFMCommunicate OK [00:03:19]SAM_PROTO_GetFMData done [00:03:19]requested_item fm.sale_refund.total is exist - process it [00:03:19]requested_item fm.buy.total is exist - process it [00:03:19]requested_item shift.sale.total is exist - process it [00:03:19]SAM_PROTO_GetShiftData [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 13 02 00 [00:03:19]Write to MH i2c: E2 08 00 C5 33 80 13 02 00 00 00 00 00 76 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 C5 33 00 AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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 E2 [00:03:20]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D6 00 00 00 B1 04 03 00 08 B8 C9 70 04 03 00 70 95 B3 72 04 03 00 98 22 16 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 57 6E 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B C9 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:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 17 00 00 [00:03:20]Write to MH i2c: E2 08 00 C6 33 80 17 00 00 00 00 00 00 79 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 C6 33 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 92 [00:03:20]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:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 17 00 00 [00:03:20]Write to MH i2c: E2 08 00 C7 33 80 17 00 00 00 00 00 00 7A [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 C7 33 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 2E [00:03: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:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 17 00 00 [00:03:21]Write to MH i2c: E2 08 00 C8 33 80 17 00 00 00 00 00 00 7B [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 C8 33 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 F9 [00:03:21]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:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 17 00 00 [00:03:21]Write to MH i2c: E2 08 00 C9 33 80 17 00 00 00 00 00 00 7C [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 CC 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 CC 00 C9 33 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 5D [00:03:21]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:03:21]wFMCommunicate OK [00:03:21]SAM_PROTO_GetShiftData done [00:03:21]requested_item shift.sale.total_cash is exist - process it [00:03:21]requested_item shift.sale_refund.total is exist - process it [00:03:21]requested_item shift.sale_refund.total_cash is exist - process it [00:03:21]requested_item shift.buy.total is exist - process it [00:03:21]requested_item shift.buy.total_cash is exist - process it [00:03:21]produce_requested_data done [00:03:21]produce_requested_data return {"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:03:21]process_action_free get_value [00:03:21]json_value_free [00:03:21]json_value_free done [00:03:21]process_json_proto returns [00:03:21]Send response to host [00:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71065489.36,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":132198.48,"shift.sale.total_cash":117692.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:03:21]free response buf [00:03:21]execute_script done [00:03:21]execute_script returns [00:03:21]free content buf [00:03:21]Sock 9.Close socket [00:03:21]Sock 9.Thread stoped [00:03:21]accept exits with 7 [00:03:21]New connection [00:03:21]New thread 3067600228 created [00:03:21]Thread 3067456868 joined [00:03:21]Waiting for new connection... [00:03:21] Sock 7.Parse request [00:03:21]Sock 7.Check first char [00:03:21]Sock 7.First char is OK [00:03:21]request: POST /json_proto HTTP/1.0 [00:03:21]Method: POST [00:03:21]URL: /json_proto [00:03:21]Method is POST - this is cgi request [00:03:21]url: /json_proto [00:03:21]query_string will be loaded in cgi processing [00:03:21]execute_cgi json_proto POST (null) [00:03:21]execute_cgi path=json_proto method=POST [00:03:21]POST find Content-Length [00:03:21]Host: 172.17.96.67:8080 [00:03:21]Content-Length: 253 [00:03:21]Content-Type: application/json [00:03:21] [00:03:21]POST finish read [00:03:21]Found Content-Length = 253 [00:03:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:21]execute_script... [00:03:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:21]POST & json_proto [00:03:21]process_json_proto [00:03:21]json parsed OK: [00:03:21]protocol is kg_v1.0 [00:03:21]action value=open_shift [00:03:21]process_action open_shift [00:03:21]cmd_open_shift [00:03:21]MH_GetDate [00:03:21]Write to MH i2c: F0 00 00 CA 33 EC [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: F0 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: F0 09 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: F0 09 00 CA 33 00 CD D4 1E 67 2B 09 1E 67 D4 [00:03:21]GetLastDocTimeStamp 1730073602 [00:03:21]current date 1730073805 [00:03:21]FM_GetShiftState [00:03:21]SAM_PROTO_GetShiftState [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 13 01 00 [00:03:21]Write to MH i2c: E2 08 00 CB 33 80 13 01 00 00 00 00 00 7B [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 0E 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 0E 00 CB 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 86 [00:03:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:21]wFMCommunicate OK [00:03:21]SAM_PROTO_GetShiftState done [00:03:21]FM_GetShiftState done [00:03:21]KKMCreateOpenShiftDocument [00:03:21]Load OK [00:03:21]Malloc new data [00:03:21]MH_GetDate [00:03:21]Write to MH i2c: F0 00 00 CC 33 EE [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: F0 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: F0 09 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: F0 09 00 CC 33 00 CD D4 1E 67 2B 09 1E 67 D6 [00:03:21]Malloc new data [00:03:21]KKMCreateOpenShiftDocument OK [00:03:21]KKMSetOpenShiftData OK [00:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=168 [00:03:21]tlvbuf is 0182FD30 [00:03:21]KKMLoadAndSignOpenShiftData [00:03:21]SAM_PROTO_ProcessDocument [00:03:21]wFMCommunicate request_size=9 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 15 01 00 04 02 00 A8 00 [00:03:21]Write to MH i2c: E2 0C 00 CD 33 80 15 01 00 04 00 02 00 A8 00 00 00 31 [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 03 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 03 00 CD 33 00 90 00 74 [00:03:21]RAPDU: 90 00 [00:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=23 [00:03:21]MH_SAM_APDU [00:03:21]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:03:21]Write to MH i2c: E2 1A 00 CE 33 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 76 [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 03 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 03 00 CE 33 00 90 00 75 [00:03:21]RAPDU: 90 00 [00:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=28 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 [00:03:21]Write to MH i2c: E2 1F 00 CF 33 80 15 02 00 17 00 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 00 00 13 [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 CF 33 00 90 00 76 [00:03:22]RAPDU: 90 00 [00:03:22]wFMCommunicate OK [00:03:22]wFMCommunicate request_size=58 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 15 02 00 35 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 [00:03:22]Write to MH i2c: E2 3D 00 D0 33 80 15 02 00 35 00 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 00 00 D3 [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 D0 33 00 90 00 77 [00:03:22]RAPDU: 90 00 [00:03:22]wFMCommunicate OK [00:03:22]wFMCommunicate request_size=51 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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:03:22]Write to MH i2c: E2 36 00 D1 33 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 31 [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 D1 33 00 90 00 78 [00:03:22]RAPDU: 90 00 [00:03:22]wFMCommunicate OK [00:03:22]wFMCommunicate request_size=13 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 15 02 00 08 F4 03 04 00 CD D4 1E 67 [00:03:22]Write to MH i2c: E2 10 00 D2 33 80 15 02 00 08 00 F4 03 04 00 CD D4 1E 67 00 00 B6 [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 D2 33 00 90 00 79 [00:03:22]RAPDU: 90 00 [00:03:22]wFMCommunicate OK [00:03:22]wFMCommunicate request_size=25 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 [00:03:22]Write to MH i2c: E2 1C 00 D3 33 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 00 00 EA [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 03 00 D3 33 00 90 00 7A [00:03:22]RAPDU: 90 00 [00:03:22]wFMCommunicate OK [00:03:22]wFMCommunicate request_size=4 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 15 03 00 [00:03:22]Write to MH i2c: E2 08 00 D4 33 80 15 03 00 00 00 00 00 88 [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 38 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 38 00 D4 33 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 36 37 10 04 04 00 0C CB 01 00 0E 04 04 00 1F 02 00 00 35 04 06 00 7D D0 42 FB 5A 83 90 00 B8 [00:03:22]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 36 37 10 04 04 00 0C CB 01 00 0E 04 04 00 1F 02 00 00 35 04 06 00 7D D0 42 FB 5A 83 90 00 [00:03:22]wFMCommunicate OK [00:03:22]SAM_PROTO_ProcessDocument answer len = 51 [00:03:22]SAM_PROTO_ProcessDocument done [00:03:22]SetTLVBufToDocument [00:03:22]Processing tag 1209 (04B9) [00:03:22]Malloc new data [00:03:22]Processing tag 1041 (0411) [00:03:22]Processing tag 1040 (0410) [00:03:22]Malloc new data [00:03:22]Processing tag 1038 (040E) [00:03:22]Malloc new data [00:03:22]Processing tag 1077 (0435) [00:03:22]Malloc new data [00:03:22]SetTLVBufToDocument err=0 [00:03:22]KKMLoadAndSignOpenShiftData store KKM data [00:03:22]KKMLoadAndSignOpenShiftData err=0 [00:03:22]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мамаева Г. Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 Место: АЗС № 173 "Партнер Нефть" 28.10.2024 00:03 Смена: 543 РНМ: 0000000000091782 ЗНМ: 0300000115 ФД: 117516 ФМ: 0000000000871767 ФПД: 138333430438531 [00:03:22]StoreToDocumentArchive [00:03:22]shift 543 fd 117516 [00:03:22]Create dir for shift 0543 [00:03:22]save to /storage/0543/doc_00117516 [00:03:22]save last doc name /storage/0543/doc_00117516 to /storage/kkm_last_doc_name [00:03:22]save OK [00:03:22]Clear old archive folders... [00:03:22]Remove dir /storage/0542 [00:03:22]opendir ok [00:03:22]file . [00:03:22]file .. [00:03:22]file doc_00117300 [00:03:22]remove file /storage/0542/doc_00117300 [00:03:22]file doc_00117301 [00:03:22]remove file /storage/0542/doc_00117301 [00:03:22]file doc_00117302 [00:03:22]remove file /storage/0542/doc_00117302 [00:03:22]file doc_00117303 [00:03:22]remove file /storage/0542/doc_00117303 [00:03:22]file doc_00117304 [00:03:22]remove file /storage/0542/doc_00117304 [00:03:22]file doc_00117305 [00:03:22]remove file /storage/0542/doc_00117305 [00:03:22]file doc_00117306 [00:03:22]remove file /storage/0542/doc_00117306 [00:03:22]file doc_00117307 [00:03:22]remove file /storage/0542/doc_00117307 [00:03:22]file doc_00117308 [00:03:22]remove file /storage/0542/doc_00117308 [00:03:22]file doc_00117309 [00:03:22]remove file /storage/0542/doc_00117309 [00:03:22]file doc_00117310 [00:03:22]remove file /storage/0542/doc_00117310 [00:03:22]file doc_00117311 [00:03:22]remove file /storage/0542/doc_00117311 [00:03:22]file doc_00117312 [00:03:22]remove file /storage/0542/doc_00117312 [00:03:22]file doc_00117313 [00:03:22]remove file /storage/0542/doc_00117313 [00:03:22]file doc_00117314 [00:03:22]remove file /storage/0542/doc_00117314 [00:03:22]file doc_00117315 [00:03:22]remove file /storage/0542/doc_00117315 [00:03:22]file doc_00117316 [00:03:22]remove file /storage/0542/doc_00117316 [00:03:22]file doc_00117317 [00:03:22]remove file /storage/0542/doc_00117317 [00:03:22]file doc_00117318 [00:03:22]remove file /storage/0542/doc_00117318 [00:03:22]file doc_00117319 [00:03:22]remove file /storage/0542/doc_00117319 [00:03:22]file doc_00117320 [00:03:22]remove file /storage/0542/doc_00117320 [00:03:22]file doc_00117321 [00:03:22]remove file /storage/0542/doc_00117321 [00:03:22]file doc_00117322 [00:03:22]remove file /storage/0542/doc_00117322 [00:03:22]OFD Sender: No OFD packet to send [00:03:22]file doc_00117323 [00:03:22]remove file /storage/0542/doc_00117323 [00:03:22]file doc_00117324 [00:03:22]remove file /storage/0542/doc_00117324 [00:03:22]file doc_00117325 [00:03:22]remove file /storage/0542/doc_00117325 [00:03:22]file doc_00117326 [00:03:22]remove file /storage/0542/doc_00117326 [00:03:22]file doc_00117327 [00:03:22]remove file /storage/0542/doc_00117327 [00:03:22]file doc_00117328 [00:03:22]remove file /storage/0542/doc_00117328 [00:03:22]file doc_00117329 [00:03:22]remove file /storage/0542/doc_00117329 [00:03:22]file doc_00117330 [00:03:22]remove file /storage/0542/doc_00117330 [00:03:22]file doc_00117331 [00:03:22]remove file /storage/0542/doc_00117331 [00:03:22]file doc_00117332 [00:03:22]remove file /storage/0542/doc_00117332 [00:03:22]file doc_00117333 [00:03:22]remove file /storage/0542/doc_00117333 [00:03:22]file doc_00117334 [00:03:22]remove file /storage/0542/doc_00117334 [00:03:22]file doc_00117335 [00:03:22]remove file /storage/0542/doc_00117335 [00:03:22]file doc_00117336 [00:03:22]remove file /storage/0542/doc_00117336 [00:03:22]file doc_00117337 [00:03:23]remove file /storage/0542/doc_00117337 [00:03:23]file doc_00117338 [00:03:23]remove file /storage/0542/doc_00117338 [00:03:23]file doc_00117339 [00:03:23]remove file /storage/0542/doc_00117339 [00:03:23]file doc_00117340 [00:03:23]remove file /storage/0542/doc_00117340 [00:03:23]file doc_00117341 [00:03:23]remove file /storage/0542/doc_00117341 [00:03:23]file doc_00117342 [00:03:23]remove file /storage/0542/doc_00117342 [00:03:23]file doc_00117343 [00:03:23]remove file /storage/0542/doc_00117343 [00:03:23]file doc_00117344 [00:03:23]remove file /storage/0542/doc_00117344 [00:03:23]file doc_00117345 [00:03:23]remove file /storage/0542/doc_00117345 [00:03:23]file doc_00117346 [00:03:23]remove file /storage/0542/doc_00117346 [00:03:23]file doc_00117347 [00:03:23]remove file /storage/0542/doc_00117347 [00:03:23]file doc_00117348 [00:03:23]remove file /storage/0542/doc_00117348 [00:03:23]file doc_00117349 [00:03:23]remove file /storage/0542/doc_00117349 [00:03:23]file doc_00117350 [00:03:23]remove file /storage/0542/doc_00117350 [00:03:23]file doc_00117351 [00:03:23]remove file /storage/0542/doc_00117351 [00:03:23]file doc_00117352 [00:03:23]remove file /storage/0542/doc_00117352 [00:03:23]file doc_00117353 [00:03:23]remove file /storage/0542/doc_00117353 [00:03:23]file doc_00117354 [00:03:23]remove file /storage/0542/doc_00117354 [00:03:23]file doc_00117355 [00:03:23]remove file /storage/0542/doc_00117355 [00:03:23]file doc_00117356 [00:03:23]remove file /storage/0542/doc_00117356 [00:03:23]file doc_00117357 [00:03:23]remove file /storage/0542/doc_00117357 [00:03:23]file doc_00117358 [00:03:23]remove file /storage/0542/doc_00117358 [00:03:23]file doc_00117359 [00:03:23]remove file /storage/0542/doc_00117359 [00:03:23]file doc_00117360 [00:03:23]remove file /storage/0542/doc_00117360 [00:03:23]file doc_00117361 [00:03:23]remove file /storage/0542/doc_00117361 [00:03:23]file doc_00117362 [00:03:23]remove file /storage/0542/doc_00117362 [00:03:23]file doc_00117363 [00:03:23]remove file /storage/0542/doc_00117363 [00:03:23]file doc_00117364 [00:03:23]remove file /storage/0542/doc_00117364 [00:03:23]file doc_00117365 [00:03:23]remove file /storage/0542/doc_00117365 [00:03:23]file doc_00117366 [00:03:23]remove file /storage/0542/doc_00117366 [00:03:23]file doc_00117367 [00:03:23]remove file /storage/0542/doc_00117367 [00:03:23]file doc_00117368 [00:03:23]remove file /storage/0542/doc_00117368 [00:03:23]file doc_00117369 [00:03:23]remove file /storage/0542/doc_00117369 [00:03:23]file doc_00117370 [00:03:23]remove file /storage/0542/doc_00117370 [00:03:23]file doc_00117371 [00:03:23]remove file /storage/0542/doc_00117371 [00:03:23]file doc_00117372 [00:03:23]remove file /storage/0542/doc_00117372 [00:03:23]file doc_00117373 [00:03:23]remove file /storage/0542/doc_00117373 [00:03:23]file doc_00117374 [00:03:23]remove file /storage/0542/doc_00117374 [00:03:23]file doc_00117375 [00:03:23]remove file /storage/0542/doc_00117375 [00:03:23]file doc_00117376 [00:03:23]remove file /storage/0542/doc_00117376 [00:03:23]file doc_00117377 [00:03:23]remove file /storage/0542/doc_00117377 [00:03:23]file doc_00117378 [00:03:23]remove file /storage/0542/doc_00117378 [00:03:23]file doc_00117379 [00:03:23]remove file /storage/0542/doc_00117379 [00:03:23]file doc_00117380 [00:03:23]remove file /storage/0542/doc_00117380 [00:03:23]file doc_00117381 [00:03:23]remove file /storage/0542/doc_00117381 [00:03:23]file doc_00117382 [00:03:23]remove file /storage/0542/doc_00117382 [00:03:23]file doc_00117383 [00:03:23]remove file /storage/0542/doc_00117383 [00:03:23]file doc_00117384 [00:03:23]remove file /storage/0542/doc_00117384 [00:03:23]file doc_00117385 [00:03:23]remove file /storage/0542/doc_00117385 [00:03:23]file doc_00117386 [00:03:23]remove file /storage/0542/doc_00117386 [00:03:23]file doc_00117387 [00:03:23]remove file /storage/0542/doc_00117387 [00:03:23]file doc_00117388 [00:03:23]remove file /storage/0542/doc_00117388 [00:03:23]file doc_00117389 [00:03:23]remove file /storage/0542/doc_00117389 [00:03:23]file doc_00117390 [00:03:23]remove file /storage/0542/doc_00117390 [00:03:23]file doc_00117391 [00:03:23]remove file /storage/0542/doc_00117391 [00:03:23]file doc_00117392 [00:03:23]remove file /storage/0542/doc_00117392 [00:03:23]file doc_00117393 [00:03:23]remove file /storage/0542/doc_00117393 [00:03:23]file doc_00117394 [00:03:23]remove file /storage/0542/doc_00117394 [00:03:23]file doc_00117395 [00:03:23]remove file /storage/0542/doc_00117395 [00:03:23]file doc_00117396 [00:03:23]remove file /storage/0542/doc_00117396 [00:03:23]file doc_00117397 [00:03:23]remove file /storage/0542/doc_00117397 [00:03:23]file doc_00117398 [00:03:23]remove file /storage/0542/doc_00117398 [00:03:23]file doc_00117399 [00:03:23]remove file /storage/0542/doc_00117399 [00:03:23]file doc_00117400 [00:03:23]remove file /storage/0542/doc_00117400 [00:03:23]file doc_00117401 [00:03:23]remove file /storage/0542/doc_00117401 [00:03:23]file doc_00117402 [00:03:23]remove file /storage/0542/doc_00117402 [00:03:23]file doc_00117403 [00:03:23]remove file /storage/0542/doc_00117403 [00:03:23]file doc_00117404 [00:03:23]remove file /storage/0542/doc_00117404 [00:03:23]file doc_00117405 [00:03:23]remove file /storage/0542/doc_00117405 [00:03:23]file doc_00117406 [00:03:23]remove file /storage/0542/doc_00117406 [00:03:23]file doc_00117407 [00:03:23]remove file /storage/0542/doc_00117407 [00:03:23]file doc_00117408 [00:03:23]remove file /storage/0542/doc_00117408 [00:03:23]file doc_00117409 [00:03:23]remove file /storage/0542/doc_00117409 [00:03:23]file doc_00117410 [00:03:23]remove file /storage/0542/doc_00117410 [00:03:23]file doc_00117411 [00:03:23]remove file /storage/0542/doc_00117411 [00:03:23]file doc_00117412 [00:03:23]remove file /storage/0542/doc_00117412 [00:03:23]file doc_00117413 [00:03:23]remove file /storage/0542/doc_00117413 [00:03:23]file doc_00117414 [00:03:23]remove file /storage/0542/doc_00117414 [00:03:23]file doc_00117415 [00:03:23]remove file /storage/0542/doc_00117415 [00:03:23]file doc_00117416 [00:03:23]remove file /storage/0542/doc_00117416 [00:03:23]file doc_00117417 [00:03:23]remove file /storage/0542/doc_00117417 [00:03:23]file doc_00117418 [00:03:23]remove file /storage/0542/doc_00117418 [00:03:23]file doc_00117419 [00:03:23]remove file /storage/0542/doc_00117419 [00:03:23]file doc_00117420 [00:03:23]remove file /storage/0542/doc_00117420 [00:03:23]file doc_00117421 [00:03:23]remove file /storage/0542/doc_00117421 [00:03:23]file doc_00117422 [00:03:23]remove file /storage/0542/doc_00117422 [00:03:23]file doc_00117423 [00:03:23]remove file /storage/0542/doc_00117423 [00:03:23]file doc_00117424 [00:03:23]remove file /storage/0542/doc_00117424 [00:03:23]file doc_00117425 [00:03:23]remove file /storage/0542/doc_00117425 [00:03:23]file doc_00117426 [00:03:23]remove file /storage/0542/doc_00117426 [00:03:23]file doc_00117427 [00:03:23]remove file /storage/0542/doc_00117427 [00:03:23]file doc_00117428 [00:03:23]remove file /storage/0542/doc_00117428 [00:03:23]file doc_00117429 [00:03:23]remove file /storage/0542/doc_00117429 [00:03:23]file doc_00117430 [00:03:23]remove file /storage/0542/doc_00117430 [00:03:23]file doc_00117431 [00:03:23]remove file /storage/0542/doc_00117431 [00:03:23]file doc_00117432 [00:03:23]remove file /storage/0542/doc_00117432 [00:03:23]file doc_00117433 [00:03:23]remove file /storage/0542/doc_00117433 [00:03:23]file doc_00117434 [00:03:23]remove file /storage/0542/doc_00117434 [00:03:23]file doc_00117435 [00:03:23]remove file /storage/0542/doc_00117435 [00:03:23]file doc_00117436 [00:03:23]remove file /storage/0542/doc_00117436 [00:03:23]file doc_00117437 [00:03:23]remove file /storage/0542/doc_00117437 [00:03:23]file doc_00117438 [00:03:23]remove file /storage/0542/doc_00117438 [00:03:23]file doc_00117439 [00:03:23]remove file /storage/0542/doc_00117439 [00:03:23]file doc_00117440 [00:03:23]remove file /storage/0542/doc_00117440 [00:03:23]file doc_00117441 [00:03:23]remove file /storage/0542/doc_00117441 [00:03:23]file doc_00117442 [00:03:23]remove file /storage/0542/doc_00117442 [00:03:23]file doc_00117443 [00:03:23]remove file /storage/0542/doc_00117443 [00:03:23]file doc_00117444 [00:03:23]remove file /storage/0542/doc_00117444 [00:03:23]file doc_00117445 [00:03:23]remove file /storage/0542/doc_00117445 [00:03:23]file doc_00117446 [00:03:23]remove file /storage/0542/doc_00117446 [00:03:23]file doc_00117447 [00:03:23]remove file /storage/0542/doc_00117447 [00:03:23]file doc_00117448 [00:03:23]remove file /storage/0542/doc_00117448 [00:03:23]file doc_00117449 [00:03:23]remove file /storage/0542/doc_00117449 [00:03:23]file doc_00117450 [00:03:23]remove file /storage/0542/doc_00117450 [00:03:23]file doc_00117451 [00:03:23]remove file /storage/0542/doc_00117451 [00:03:23]file doc_00117452 [00:03:23]remove file /storage/0542/doc_00117452 [00:03:23]file doc_00117453 [00:03:23]remove file /storage/0542/doc_00117453 [00:03:23]file doc_00117454 [00:03:23]remove file /storage/0542/doc_00117454 [00:03:23]file doc_00117455 [00:03:23]remove file /storage/0542/doc_00117455 [00:03:23]file doc_00117456 [00:03:23]remove file /storage/0542/doc_00117456 [00:03:23]file doc_00117457 [00:03:23]remove file /storage/0542/doc_00117457 [00:03:23]file doc_00117458 [00:03:23]remove file /storage/0542/doc_00117458 [00:03:23]file doc_00117459 [00:03:23]remove file /storage/0542/doc_00117459 [00:03:23]file doc_00117460 [00:03:23]remove file /storage/0542/doc_00117460 [00:03:23]file doc_00117461 [00:03:23]remove file /storage/0542/doc_00117461 [00:03:23]file doc_00117462 [00:03:23]remove file /storage/0542/doc_00117462 [00:03:23]file doc_00117463 [00:03:23]remove file /storage/0542/doc_00117463 [00:03:23]file doc_00117464 [00:03:23]remove file /storage/0542/doc_00117464 [00:03:23]file doc_00117465 [00:03:23]remove file /storage/0542/doc_00117465 [00:03:23]file doc_00117466 [00:03:23]remove file /storage/0542/doc_00117466 [00:03:23]file doc_00117467 [00:03:23]remove file /storage/0542/doc_00117467 [00:03:23]file doc_00117468 [00:03:23]remove file /storage/0542/doc_00117468 [00:03:23]file doc_00117469 [00:03:23]remove file /storage/0542/doc_00117469 [00:03:23]file doc_00117470 [00:03:23]remove file /storage/0542/doc_00117470 [00:03:23]file doc_00117471 [00:03:23]remove file /storage/0542/doc_00117471 [00:03:23]file doc_00117472 [00:03:23]remove file /storage/0542/doc_00117472 [00:03:23]file doc_00117473 [00:03:23]remove file /storage/0542/doc_00117473 [00:03:23]file doc_00117474 [00:03:23]remove file /storage/0542/doc_00117474 [00:03:23]file doc_00117475 [00:03:23]remove file /storage/0542/doc_00117475 [00:03:23]file doc_00117476 [00:03:23]remove file /storage/0542/doc_00117476 [00:03:23]file doc_00117477 [00:03:23]remove file /storage/0542/doc_00117477 [00:03:23]file doc_00117478 [00:03:23]remove file /storage/0542/doc_00117478 [00:03:23]file doc_00117479 [00:03:23]remove file /storage/0542/doc_00117479 [00:03:23]file doc_00117480 [00:03:23]remove file /storage/0542/doc_00117480 [00:03:23]file doc_00117481 [00:03:23]remove file /storage/0542/doc_00117481 [00:03:23]file doc_00117482 [00:03:23]remove file /storage/0542/doc_00117482 [00:03:23]file doc_00117483 [00:03:23]remove file /storage/0542/doc_00117483 [00:03:23]file doc_00117484 [00:03:23]remove file /storage/0542/doc_00117484 [00:03:23]file doc_00117485 [00:03:23]remove file /storage/0542/doc_00117485 [00:03:23]file doc_00117486 [00:03:23]remove file /storage/0542/doc_00117486 [00:03:23]file doc_00117487 [00:03:23]remove file /storage/0542/doc_00117487 [00:03:23]file doc_00117488 [00:03:23]remove file /storage/0542/doc_00117488 [00:03:23]file doc_00117489 [00:03:23]remove file /storage/0542/doc_00117489 [00:03:23]file doc_00117490 [00:03:23]remove file /storage/0542/doc_00117490 [00:03:23]file doc_00117491 [00:03:23]remove file /storage/0542/doc_00117491 [00:03:23]file doc_00117492 [00:03:23]remove file /storage/0542/doc_00117492 [00:03:23]file doc_00117493 [00:03:23]remove file /storage/0542/doc_00117493 [00:03:23]file doc_00117494 [00:03:23]remove file /storage/0542/doc_00117494 [00:03:23]file doc_00117495 [00:03:23]remove file /storage/0542/doc_00117495 [00:03:23]file doc_00117496 [00:03:23]remove file /storage/0542/doc_00117496 [00:03:23]file doc_00117497 [00:03:23]remove file /storage/0542/doc_00117497 [00:03:23]file doc_00117498 [00:03:23]remove file /storage/0542/doc_00117498 [00:03:23]file doc_00117499 [00:03:23]remove file /storage/0542/doc_00117499 [00:03:23]file doc_00117500 [00:03:23]remove file /storage/0542/doc_00117500 [00:03:23]file doc_00117501 [00:03:23]remove file /storage/0542/doc_00117501 [00:03:23]file doc_00117502 [00:03:23]remove file /storage/0542/doc_00117502 [00:03:23]file doc_00117503 [00:03:23]remove file /storage/0542/doc_00117503 [00:03:23]file doc_00117504 [00:03:23]remove file /storage/0542/doc_00117504 [00:03:23]file doc_00117505 [00:03:23]remove file /storage/0542/doc_00117505 [00:03:23]file doc_00117506 [00:03:23]remove file /storage/0542/doc_00117506 [00:03:23]file doc_00117507 [00:03:23]remove file /storage/0542/doc_00117507 [00:03:23]file doc_00117508 [00:03:23]remove file /storage/0542/doc_00117508 [00:03:23]file doc_00117509 [00:03:23]remove file /storage/0542/doc_00117509 [00:03:23]file doc_00117510 [00:03:23]remove file /storage/0542/doc_00117510 [00:03:23]file doc_00117511 [00:03:23]remove file /storage/0542/doc_00117511 [00:03:23]file doc_00117512 [00:03:23]remove file /storage/0542/doc_00117512 [00:03:23]file doc_00117513 [00:03:23]remove file /storage/0542/doc_00117513 [00:03:23]file doc_00117514 [00:03:23]remove file /storage/0542/doc_00117514 [00:03:23]file doc_00117515 [00:03:23]remove file /storage/0542/doc_00117515 [00:03:23]remove dir /storage/0542 [00:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=219 [00:03:24]tlvbuf is 016D7CF0 [00:03:24]SAM_PROTO_ClearQueue [00:03:24]wFMCommunicate request_size=4 [00:03:24]MH_SAM_APDU [00:03:24]CAPDU: 80 09 00 00 [00:03:24]Write to MH i2c: E2 08 00 D5 33 80 09 00 00 00 00 00 00 7A [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:24]Read from MH i2c: E2 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 03 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 03 00 D5 33 00 90 00 7C [00:03:24]RAPDU: 90 00 [00:03:24]wFMCommunicate OK [00:03:24]SAM_PROTO_ClearQueue done [00:03:24]KKMCreateOFDPacket [00:03:24]OFDProtocolAddRootSTLVToBuf [00:03:24]FM_MakeSignedData [00:03:24]FM_MakeSignedData [00:03:24]SAM_PROTO_SignData [00:03:24]wFMCommunicate request_size=4 [00:03:24]MH_SAM_APDU [00:03:24]CAPDU: 80 0D 01 02 [00:03:24]Write to MH i2c: E2 08 00 D6 33 80 0D 01 02 00 00 00 00 82 [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:24]Read from MH i2c: E2 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 03 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 03 00 D6 33 00 90 00 7D [00:03:24]RAPDU: 90 00 [00:03:24]wFMCommunicate OK [00:03:24]wFMCommunicate request_size=228 [00:03:24]MH_SAM_APDU [00:03:24]CAPDU: 80 0D 02 02 DF 02 00 DB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 CD D4 1E 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0C CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 7D D0 42 FB 5A 83 [00:03:24]Write to MH i2c: E2 E7 00 D7 33 80 0D 02 02 DF 00 02 00 DB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 CD D4 1E 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0C CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 7D D0 42 FB 5A 83 00 00 BC [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:24]Read from MH i2c: E2 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 03 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 03 00 D7 33 00 90 00 7E [00:03:24]RAPDU: 90 00 [00:03:24]wFMCommunicate OK [00:03:24]wFMCommunicate request_size=4 [00:03:24]MH_SAM_APDU [00:03:24]CAPDU: 80 0D 03 02 [00:03:24]Write to MH i2c: E2 08 00 D8 33 80 0D 03 02 00 00 00 00 86 [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:24]Read from MH i2c: E2 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 0B 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 0B 00 D8 33 00 61 F9 0B C9 CB 00 7C 3E 90 00 3A [00:03:24]RAPDU: 61 F9 0B C9 CB 00 7C 3E 90 00 [00:03:24]wFMCommunicate OK [00:03:24]SAM_PROTO_SignData done [00:03:24]FM_MakeSignedData done [00:03:24]CreateOFDProtocolMessage [00:03:24]wFMCommunicate request_size=4 [00:03:24]MH_SAM_APDU [00:03:24]CAPDU: 80 11 00 00 [00:03:24]Write to MH i2c: E2 08 00 D9 33 80 11 00 00 00 00 00 00 86 [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:24]Read from MH i2c: E2 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 17 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 17 00 D9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DD [00:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:03:24]wFMCommunicate OK [00:03:24]CreateOFDProtocolMessage done [00:03:24]OFDSenderStorePacket 117516 [00:03:24]StoreOFDPacket docnum=117516 [00:03:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 EF 00 00 00 6D 8B E7 00 EB 91 5A 02 01 00 02 00 DB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 CD D4 1E 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0C CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 7D D0 42 FB 5A 83 61 F9 0B C9 CB 00 7C 3E [00:03:24]CheckFolder [00:03:24]dirname=/storage/ofd_packets [00:03:24]CheckFolder done [00:03:24]ProducePacketName [00:03:24]name=ofd_packets/00117516 [00:03:24]NVStorageSaveData ofd_packets/00117516 [00:03:24]File name is /storage/ofd_packets/00117516 [00:03:24]Write 269 bytes [00:03:24]NVStorageSaveData done [00:03:24]OFDSenderStorePacket done [00:03:24]KKMCreateOFDPacket done [00:03:24]NVStorageSaveData kkm_last_timestamp [00:03:24]File name is /storage/kkm_last_timestamp [00:03:24]Write 4 bytes [00:03:24]NVStorageSaveData done [00:03:24]ExternCall_PrintAddStr [00:03:24]wPrintStart [00:03:24]Write to MH i2c: 01 00 00 DA 33 0D [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: 01 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: 01 07 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: 01 07 00 DA 33 00 00 00 00 00 FF 0F 22 [00:03:24]RasterBufferAndPrint [00:03:24]line Отчет об открытии смены [00:03:24]line ФФД: 1.0 [00:03:24]line ИНН: 02508201610067 [00:03:24]line Кассир: Мамаева Г. [00:03:24]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:03:24]line Место: АЗС № 173 "Партнер Нефть" [00:03:24]line 28.10.2024 00:03 [00:03:24]line Смена: 543 [00:03:24]line РНМ: 0000000000091782 [00:03:24]line ЗНМ: 0300000115 [00:03:24]line ФД: 117516 [00:03:24]line ФМ: 0000000000871767 [00:03:24]line ФПД: 138333430438531 [00:03:24]written 0, free lines is 4095 [00:03:24]OFD Sender: Processing packet 117516 [packets to send 76, broken 75] [00:03:24]ProducePacketName [00:03:24]name=ofd_packets/00117516 [00:03:24]OFD Sender: To server: pG, [00:03:24]CommunicateWithHost lk.salyk.kg:30040 [00:03:24]ConnectInit lk.salyk.kg [00:03:24]Connected sock=10 [00:03: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 36 37 EF 00 00 00 6D 8B E7 00 EB 91 5A 02 01 00 02 00 DB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 CD D4 1E 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0C CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 7D D0 42 FB 5A 83 61 F9 0B C9 CB 00 7C 3E [00:03:24]Write to MH i2c: 01 00 00 EB 33 1E [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: 01 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: 01 07 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: 01 07 00 EB 33 00 00 00 00 00 7A 0E AD [00:03:24]RasterBufferAndPrint [00:03:24]line [00:03:24]line [00:03:24]line [00:03:24]line [00:03:24]line [00:03:24]written 0, free lines is 3720 [00:03:24]MH_Cut [00:03:24]Write to MH i2c: D1 01 00 F2 33 01 F7 [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: D1 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: D1 01 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: D1 01 00 F2 33 00 F6 [00:03:24]Write to MH i2c: 01 00 00 F3 33 26 [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00: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 36 37 4F 00 00 00 F0 7A 47 00 CC 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 36 37 10 04 04 00 0C CB 01 00 F4 03 04 00 8A 80 1E 67 B6 04 01 00 00 D8 49 8C 7D F7 5A 0F 16 [00:03:25]CommunicateWithHost err = 0 [00:03:25]CheckOFDResponse [00:03:25]1017 (14) - 77093643461234 [00:03:25]1041 (16) - 0000000000871767 [00:03:25]1040 (4) - 117516 [00:03:25]1012 (4) - 27.10.2024 18:03 [00:03:25]1206 (1) - 0 [00:03:25]OFD Sender: Remove packet 117516 [00:03:25]ProducePacketName [00:03:25]name=ofd_packets/00117516 [00:03:25]NVStorageDeleteData [00:03:25]*** Cut start [00:03:25]*** Purtial cut [00:03:25]*** Stage 1: CUTSNS_PIN = 1 [00:03:25]OFD Sender: No OFD packet to send [00:03:25]Read from MH i2c: 01 [00:03:25]MH_I2C_Read... [00:03:25]*** Stop cut motor [00:03:25]*** Cut end [00:03:25]Read from MH i2c: 01 07 00 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: 01 07 00 F3 33 00 00 00 00 00 FF 0F 3B [00:03:25]process_action open_shift done [00:03:25]requested_data is exist [00:03:25]produce_requested_data [00:03:25]requested_item fd.num is exist - process it [00:03:25]SAM_PROTO_GetFieldsCounters [00:03:25]wFMCommunicate request_size=4 [00:03:25]MH_SAM_APDU [00:03:25]CAPDU: 80 13 00 00 [00:03:25]Write to MH i2c: E2 08 00 F4 33 80 13 00 00 00 00 00 00 A3 [00:03:25]Write i2c OK [00:03:25]MH_I2C_Read... [00:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:25]Read from MH i2c: E2 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 62 00 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 62 00 F4 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0C CB 01 00 0E 04 04 00 1F 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 C3 [00: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0C CB 01 00 0E 04 04 00 1F 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:03:25]wFMCommunicate OK [00:03:25]SAM_PROTO_GetFieldsCounters done [00:03:25]requested_item shift.num is exist - process it [00:03:25]requested_item shift.opened is exist - process it [00:03:25]req_shift_opened [00:03:25]FM_GetShiftState [00:03:25]SAM_PROTO_GetShiftState [00:03:25]wFMCommunicate request_size=4 [00:03:25]MH_SAM_APDU [00:03:25]CAPDU: 80 13 01 00 [00:03:25]Write to MH i2c: E2 08 00 F5 33 80 13 01 00 00 00 00 00 A5 [00:03:25]Write i2c OK [00:03:25]MH_I2C_Read... [00:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:25]Read from MH i2c: E2 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 0E 00 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 0E 00 F5 33 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 D7 [00:03:25]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:03:25]wFMCommunicate OK [00:03:25]SAM_PROTO_GetShiftState done [00:03:25]FM_GetShiftState done [00:03:25]req_shift_opened done [00:03:25]requested_item shift.open_date is exist - process it [00:03:25]req_shift_open_date [00:03:25]req_shift_open_date done [00:03:25]produce_requested_data done [00:03:25]produce_requested_data return {"fd.num":117516,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [00:03:25]process_action_free open_shift [00:03:25]json_value_free [00:03:25]json_value_free done [00:03:25]process_json_proto returns [00:03:25]Send response to host [00:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":117516,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [00:03:25]free response buf [00:03:25]execute_script done [00:03:25]execute_script returns [00:03:25]free content buf [00:03:25]Sock 7.Close socket [00:03:25]Sock 7.Thread stoped [00:03:25]accept exits with 9 [00:03:25]New connection [00:03:25]New thread 3067456868 created [00:03:25]Thread 3067600228 joined [00:03:25]Waiting for new connection... [00:03:25] Sock 9.Parse request [00:03:25]Sock 9.Check first char [00:03:25]Sock 9.First char is OK [00:03:25]request: POST /json_proto HTTP/1.0 [00:03:25]Method: POST [00:03:25]URL: /json_proto [00:03:25]Method is POST - this is cgi request [00:03:25]url: /json_proto [00:03:25]query_string will be loaded in cgi processing [00:03:25]execute_cgi json_proto POST (null) [00:03:25]execute_cgi path=json_proto method=POST [00:03:25]POST find Content-Length [00:03:25]Host: 172.17.96.67:8080 [00:03:25]Content-Length: 331 [00:03:25]Content-Type: application/json [00:03:25] [00:03:25]POST finish read [00:03:25]Found Content-Length = 331 [00:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:25]execute_script... [00:03:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:25]POST & json_proto [00:03:25]process_json_proto [00:03:25]json parsed OK: [00:03:25]protocol is kg_v1.0 [00:03:25]action value=get_value [00:03:25]process_action get_value [00:03:25]cmd_get_value [00:03:25]process_action get_value done [00:03:25]requested_data is exist [00:03:25]produce_requested_data [00:03:25]requested_item fm.sale.total is exist - process it [00:03:25]SAM_PROTO_GetFMData [00:03:25]wFMCommunicate request_size=4 [00:03:25]MH_SAM_APDU [00:03:25]CAPDU: 80 13 03 00 [00:03:25]Write to MH i2c: E2 08 00 F6 33 80 13 03 00 00 00 00 00 A8 [00:03:25]Write i2c OK [00:03:25]MH_I2C_Read... [00:03:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:26]Read from MH i2c: E2 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 F6 33 00 BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 B4 [00:03:26]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 CE C6 01 00 69 04 A3 00 6F 04 04 00 CD C6 01 00 B1 04 05 00 C8 54 95 A7 01 70 04 05 00 78 E8 5D 86 01 72 04 04 00 50 6C 37 21 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 2F 2A 01 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2A 04 C0 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:03:26]wFMCommunicate OK [00:03:26]wFMCommunicate request_size=4 [00:03:26]MH_SAM_APDU [00:03:26]CAPDU: 80 17 00 00 [00:03:26]Write to MH i2c: E2 08 00 F7 33 80 17 00 00 00 00 00 00 AA [00:03:26]Write i2c OK [00:03:26]MH_I2C_Read... [00:03:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:26]Read from MH i2c: E2 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 F7 33 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 53 [00:03:26]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 90 00 [00:03:27]wFMCommunicate OK [00:03:27]wFMCommunicate request_size=4 [00:03:27]MH_SAM_APDU [00:03:27]CAPDU: 80 17 00 00 [00:03:27]Write to MH i2c: E2 08 00 F8 33 80 17 00 00 00 00 00 00 AB [00:03:27]Write i2c OK [00:03:27]MH_I2C_Read... [00:03:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:27]Read from MH i2c: E2 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 FD 00 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 FD 00 F8 33 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 D7 [00:03:27]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:03:27]wFMCommunicate OK [00:03:27]wFMCommunicate request_size=4 [00:03:27]MH_SAM_APDU [00:03:27]CAPDU: 80 17 00 00 [00:03:27]Write to MH i2c: E2 08 00 F9 33 80 17 00 00 00 00 00 00 AC [00:03:27]Write i2c OK [00:03:27]MH_I2C_Read... [00:03:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:27]Read from MH i2c: E2 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 FD 00 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 FD 00 F9 33 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 24 [00:03:27]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:03:27]wFMCommunicate OK [00:03:27]wFMCommunicate request_size=4 [00:03:27]MH_SAM_APDU [00:03:27]CAPDU: 80 17 00 00 [00:03:27]Write to MH i2c: E2 08 00 FA 33 80 17 00 00 00 00 00 00 AD [00:03:27]Write i2c OK [00:03:27]MH_I2C_Read... [00:03:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:03:28]Read from MH i2c: E2 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 D7 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 D7 00 FA 33 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 90 [00:03:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:28]wFMCommunicate OK [00:03:28]SAM_PROTO_GetFMData done [00:03:28]requested_item fm.sale_refund.total is exist - process it [00:03:28]requested_item fm.buy.total is exist - process it [00:03:28]requested_item shift.sale.total is exist - process it [00:03:28]SAM_PROTO_GetShiftData [00:03:28]wFMCommunicate request_size=4 [00:03:28]MH_SAM_APDU [00:03:28]CAPDU: 80 13 02 00 [00:03:28]Write to MH i2c: E2 08 00 FB 33 80 13 02 00 00 00 00 00 AC [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:28]Read from MH i2c: E2 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 FD 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 FD 00 FB 33 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 1F [00:03:28]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:03:29]wFMCommunicate OK [00:03:29]wFMCommunicate request_size=4 [00:03:29]MH_SAM_APDU [00:03:29]CAPDU: 80 17 00 00 [00:03:29]Write to MH i2c: E2 08 00 FC 33 80 17 00 00 00 00 00 00 AF [00:03:29]Write i2c OK [00:03:29]MH_I2C_Read... [00:03:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:29]Read from MH i2c: E2 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 FC 33 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 B7 [00:03:29]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:03:29]wFMCommunicate OK [00:03:29]wFMCommunicate request_size=4 [00:03:29]MH_SAM_APDU [00:03:29]CAPDU: 80 17 00 00 [00:03:29]Write to MH i2c: E2 08 00 FD 33 80 17 00 00 00 00 00 00 B0 [00:03:29]Write i2c OK [00:03:29]MH_I2C_Read... [00:03:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:29]Read from MH i2c: E2 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 FD 33 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 82 [00:03:29]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:03:29]wFMCommunicate OK [00:03:29]wFMCommunicate request_size=4 [00:03:29]MH_SAM_APDU [00:03:29]CAPDU: 80 17 00 00 [00:03:29]Write to MH i2c: E2 08 00 FE 33 80 17 00 00 00 00 00 00 B1 [00:03:29]Write i2c OK [00:03:29]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 FD 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 FD 00 FE 33 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 23 [00:03:30]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:03:30]wFMCommunicate OK [00:03:30]wFMCommunicate request_size=4 [00:03:30]MH_SAM_APDU [00:03:30]CAPDU: 80 17 00 00 [00:03:30]Write to MH i2c: E2 08 00 FF 33 80 17 00 00 00 00 00 00 B2 [00:03:30]Write i2c OK [00:03:30]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 BD 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 BD 00 FF 33 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 98 [00:03:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:30]wFMCommunicate OK [00:03:30]SAM_PROTO_GetShiftData done [00:03:30]requested_item shift.sale.total_cash is exist - process it [00:03:30]requested_item shift.sale_refund.total is exist - process it [00:03:30]requested_item shift.sale_refund.total_cash is exist - process it [00:03:30]requested_item shift.buy.total is exist - process it [00:03:30]requested_item shift.buy.total_cash is exist - process it [00:03:30]produce_requested_data done [00:03:30]produce_requested_data return {"fm.sale.total":71065489.36,"fm.sale_refund.total":1.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:03:30]process_action_free get_value [00:03:30]json_value_free [00:03:30]json_value_free done [00:03:30]process_json_proto returns [00:03:30]Send response to host [00:03:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71065489.36,"fm.sale_refund.total":1.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:03:30]free response buf [00:03:30]execute_script done [00:03:30]execute_script returns [00:03:30]free content buf [00:03:30]Sock 9.Close socket [00:03:30]Sock 9.Thread stoped [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]accept exits with 7 [00:05:25]New connection [00:05:25]New thread 3067600228 created [00:05:25]Thread 3067456868 joined [00:05:25]Waiting for new connection... [00:05:25] Sock 7.Parse request [00:05:25]Sock 7.Check first char [00:05:25]Sock 7.First char is OK [00:05:25]request: POST /json_proto HTTP/1.0 [00:05:25]Method: POST [00:05:25]URL: /json_proto [00:05:25]Method is POST - this is cgi request [00:05:25]url: /json_proto [00:05:25]query_string will be loaded in cgi processing [00:05:25]execute_cgi json_proto POST (null) [00:05:25]execute_cgi path=json_proto method=POST [00:05:25]POST find Content-Length [00:05:25]Host: 172.17.96.67:8080 [00:05:25]Content-Length: 769 [00:05:25]Content-Type: application/json [00:05:25] [00:05:25]POST finish read [00:05:25]Found Content-Length = 769 [00:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:05:25]execute_script... [00:05: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)245291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:05:25]POST & json_proto [00:05:25]process_json_proto [00:05:25]json parsed OK: [00:05:25]protocol is kg_v1.0 [00:05:25]action value=close_receipt [00:05:25]process_action close_receipt [00:05:25]cmd_close_receipt [00:05:25]MH_GetDate [00:05:25]Write to MH i2c: F0 00 00 00 34 23 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: F0 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: F0 09 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: F0 09 00 00 34 00 49 D5 1E 67 2B 09 1E 67 88 [00:05:25]GetLastDocTimeStamp 1730073805 [00:05:25]current date 1730073929 [00:05:25]FM_GetShiftState [00:05:25]SAM_PROTO_GetShiftState [00:05:25]wFMCommunicate request_size=4 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 13 01 00 [00:05:25]Write to MH i2c: E2 08 00 01 34 80 13 01 00 00 00 00 00 B2 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 0E 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 0E 00 01 34 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 E4 [00:05:25]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:05:25]wFMCommunicate OK [00:05:25]SAM_PROTO_GetShiftState done [00:05:25]FM_GetShiftState done [00:05:25]opened in 1730073805 [00:05:25]opened+sec_in_day 1730160205 [00:05:25]quantity*price = 100015 [00:05:25]sum+1 = 100017 [00:05:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 1 28.10.2024 00:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117517 ФПД: 218712365031008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000529&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117517&fm=218712365031008&tin=02508201610067®Number=0000000000091782&sum=100016 [00:05:26]StoreToDocumentArchive [00:05:26]shift 543 fd 117517 [00:05:26]save to /storage/0543/doc_00117517 [00:05:26]save last doc name /storage/0543/doc_00117517 to /storage/kkm_last_doc_name [00:05:26]save OK [00:05:26]Clear old archive folders... [00:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:05:26]tlvbuf is 01813440 [00:05:26]SAM_PROTO_ClearQueue [00:05:26]wFMCommunicate request_size=4 [00:05:26]MH_SAM_APDU [00:05:26]CAPDU: 80 09 00 00 [00:05:26]Write to MH i2c: E2 08 00 0E 34 80 09 00 00 00 00 00 00 B4 [00:05:26]Write i2c OK [00:05:26]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 0E 34 00 90 00 B6 [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_ClearQueue done [00:05:27]KKMCreateOFDPacket [00:05:27]OFDProtocolAddRootSTLVToBuf [00:05:27]FM_MakeSignedData [00:05:27]FM_MakeSignedData [00:05:27]SAM_PROTO_SignData [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 0D 01 02 [00:05:27]Write to MH i2c: E2 08 00 0F 34 80 0D 01 02 00 00 00 00 BC [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 0F 34 00 90 00 B7 [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=255 [00:05:27]MH_SAM_APDU [00:05: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 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 01 00 00 00 F4 03 04 00 49 D5 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0D CB 01 00 35 04 06 00 C6 [00:05:27]Write to MH i2c: E2 02 01 10 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 00 F4 03 04 00 49 D5 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0D CB 01 00 35 04 06 00 C6 00 00 CC [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 10 34 00 90 00 B8 [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=10 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 0D 02 02 05 EA F0 D3 5E 60 [00:05:27]Write to MH i2c: E2 0D 00 11 34 80 0D 02 02 05 00 EA F0 D3 5E 60 00 00 34 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 11 34 00 90 00 B9 [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 0D 03 02 [00:05:27]Write to MH i2c: E2 08 00 12 34 80 0D 03 02 00 00 00 00 C1 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0B 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0B 00 12 34 00 6F 83 38 6E 7B 9D CA D4 90 00 10 [00:05:27]RAPDU: 6F 83 38 6E 7B 9D CA D4 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_SignData done [00:05:27]FM_MakeSignedData done [00:05:27]CreateOFDProtocolMessage [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 11 00 00 [00:05:27]Write to MH i2c: E2 08 00 13 34 80 11 00 00 00 00 00 00 C1 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 17 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 17 00 13 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 18 [00:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:05:27]wFMCommunicate OK [00:05:27]CreateOFDProtocolMessage done [00:05:27]OFDSenderStorePacket 117517 [00:05:27]StoreOFDPacket docnum=117517 [00:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 74 EC 07 01 8C 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 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 01 00 00 00 F4 03 04 00 49 D5 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0D CB 01 00 35 04 06 00 C6 EA F0 D3 5E 60 6F 83 38 6E 7B 9D CA D4 [00:05:27]CheckFolder [00:05:27]dirname=/storage/ofd_packets [00:05:27]CheckFolder done [00:05:27]ProducePacketName [00:05:27]name=ofd_packets/00117517 [00:05:27]NVStorageSaveData ofd_packets/00117517 [00:05:27]File name is /storage/ofd_packets/00117517 [00:05:27]Write 301 bytes [00:05:27]NVStorageSaveData done [00:05:27]OFDSenderStorePacket done [00:05:27]KKMCreateOFDPacket done [00:05:27]NVStorageSaveData kkm_last_timestamp [00:05:27]File name is /storage/kkm_last_timestamp [00:05:27]Write 4 bytes [00:05:27]NVStorageSaveData done [00:05:27]ExternCall_PrintAddStr [00:05:27]wPrintStart [00:05:27]Write to MH i2c: 01 00 00 14 34 48 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: 01 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: 01 07 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: 01 07 00 14 34 00 00 00 00 00 FF 0F 5D [00:05:27]RasterBufferAndPrint [00:05:27]line Счет N : (1)245291 [00:05:27]line ИНН: 02508201610067 [00:05:27]line Контрольно-Кассовый Чек [00:05:27]line ПРОДАЖА [00:05:27]line ТРК (МРК, ГНК) : 21 [00:05:27]line Товар: 2710124130 [00:05:27]line Аи-92-К-2 [00:05:27]line 14.950 * 66.90 [00:05:27]line = 1000.16 [00:05:27]line НДС 12% НСП 1% [00:05:27]line > о реализуемом товаре [00:05:27]line ИТОГО: 1000.16 [00:05:27]line НСП 1% : 8.85 [00:05:27]line НДС 12% : 106.21 [00:05:27]line Наличными: 0.00 [00:05:27]line Безнал.: 1000.16 [00:05:27]line Место: АЗС № 173 "Партнер Нефть" [00:05:27]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:05:27]line СНО: Общий режим [00:05:27]line Чек 1 28.10.2024 00:05 [00:05:27]line Смена: 543 ФФД: 1.0 [00:05:27]line ЗНМ: 0300000115 [00:05:27]line РНМ: 0000000000091782 [00:05:27]line Версия ККМ: 001 [00:05:27]line Платежная система: Mbank [00:05:27]line ФМ: 0000000000871767 [00:05:27]line ФД: 117517 [00:05:27]line ФПД: 218712365031008 [00:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000529&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117517&fm=218712365031008&tin=02508201610067®Number=0000000000091782&sum=100016 [00:05:27]OFD Sender: Processing packet 117517 [packets to send 76, broken 75] [00:05:27]ProducePacketName [00:05:27]name=ofd_packets/00117517 [00:05:27]OFD Sender: To server: pG, [00:05:27]CommunicateWithHost lk.salyk.kg:30040 [00:05:27]ConnectInit lk.salyk.kg [00:05:27]written 0, free lines is 4095 [00:05:27]Connected sock=10 [00:05: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 36 37 0F 01 00 00 74 EC 07 01 8C 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 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 01 00 00 00 F4 03 04 00 49 D5 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0D CB 01 00 35 04 06 00 C6 EA F0 D3 5E 60 6F 83 38 6E 7B 9D CA D4 [00:05: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 36 37 4F 00 00 00 AB 8E 47 00 40 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 36 37 10 04 04 00 0D CB 01 00 F4 03 04 00 05 81 1E 67 B6 04 01 00 00 BD 33 67 F5 0D FD CA 5D [00:05:28]CommunicateWithHost err = 0 [00:05:28]CheckOFDResponse [00:05:28]1017 (14) - 77093643461234 [00:05:28]1041 (16) - 0000000000871767 [00:05:28]1040 (4) - 117517 [00:05:28]1012 (4) - 27.10.2024 18:05 [00:05:28]1206 (1) - 0 [00:05:28]OFD Sender: Remove packet 117517 [00:05:28]ProducePacketName [00:05:28]name=ofd_packets/00117517 [00:05:28]NVStorageDeleteData [00:05:28]Write to MH i2c: 01 00 00 3C 34 70 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 07 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 07 00 3C 34 00 00 00 00 00 E1 0C 64 [00:05:28]RasterBufferAndPrint [00:05:28]line [00:05:28]line [00:05:28]line [00:05:28]line [00:05:28]line [00:05:28]written 0, free lines is 3302 [00:05:28]MH_Cut [00:05:28]Write to MH i2c: D1 01 00 43 34 01 49 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: D1 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: D1 01 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: D1 01 00 43 34 00 48 [00:05:28]Write to MH i2c: 01 00 00 44 34 78 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]OFD Sender: No OFD packet to send [00:05:29]*** Cut start [00:05:29]*** Purtial cut [00:05:29]*** Stage 1: CUTSNS_PIN = 1 [00:05:29]Read from MH i2c: 01 [00:05:29]MH_I2C_Read... [00:05:29]*** Stop cut motor [00:05:29]*** Cut end [00:05:29]Read from MH i2c: 01 07 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: 01 07 00 44 34 00 00 00 00 00 FF 0F 8D [00:05:29]process_action close_receipt done [00:05:29]requested_data is exist [00:05:29]produce_requested_data [00:05:29]requested_item fm.sn is exist - process it [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 11 00 00 [00:05:29]Write to MH i2c: E2 08 00 45 34 80 11 00 00 00 00 00 00 F3 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 17 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 17 00 45 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4A [00:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:05:29]wFMCommunicate OK [00:05:29]requested_item fd.num is exist - process it [00:05:29]SAM_PROTO_GetFieldsCounters [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 13 00 00 [00:05:29]Write to MH i2c: E2 08 00 46 34 80 13 00 00 00 00 00 00 F6 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 62 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 62 00 46 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0D CB 01 00 0E 04 04 00 1F 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 1A [00:05: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0D CB 01 00 0E 04 04 00 1F 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:05:29]wFMCommunicate OK [00:05:29]SAM_PROTO_GetFieldsCounters done [00:05:29]requested_item shift.num is exist - process it [00:05:29]requested_item shift.opened is exist - process it [00:05:29]req_shift_opened [00:05:29]FM_GetShiftState [00:05:29]SAM_PROTO_GetShiftState [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 13 01 00 [00:05:29]Write to MH i2c: E2 08 00 47 34 80 13 01 00 00 00 00 00 F8 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 0E 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 0E 00 47 34 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 2A [00:05:29]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:05:29]wFMCommunicate OK [00:05:29]SAM_PROTO_GetShiftState done [00:05:29]FM_GetShiftState done [00:05:29]req_shift_opened done [00:05:29]requested_item shift.open_date is exist - process it [00:05:29]req_shift_open_date [00:05:29]req_shift_open_date done [00:05:29]produce_requested_data done [00:05:29]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117517,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [00:05:29]process_action_free close_receipt [00:05:29]json_value_free [00:05:29]json_value_free done [00:05:29]process_json_proto returns [00:05:29]Send response to host [00:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117517,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [00:05:29]free response buf [00:05:29]execute_script done [00:05:29]execute_script returns [00:05:29]free content buf [00:05:29]Sock 7.Close socket [00:05:29]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:56]accept exits with 9 [00:11:56]New connection [00:11:56]New thread 3067456868 created [00:11:56]Thread 3067600228 joined [00:11:56]Waiting for new connection... [00:11:56] Sock 9.Parse request [00:11:56]Sock 9.Check first char [00:11:56]Sock 9.First char is OK [00:11:56]request: POST /json_proto HTTP/1.0 [00:11:56]Method: POST [00:11:56]URL: /json_proto [00:11:56]Method is POST - this is cgi request [00:11:56]url: /json_proto [00:11:56]query_string will be loaded in cgi processing [00:11:56]execute_cgi json_proto POST (null) [00:11:56]execute_cgi path=json_proto method=POST [00:11:56]POST find Content-Length [00:11:56]Host: 172.17.96.67:8080 [00:11:56]Content-Length: 677 [00:11:56]Content-Type: application/json [00:11:56] [00:11:56]POST finish read [00:11:56]Found Content-Length = 677 [00:11:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:11:56]execute_script... [00:11: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)245292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:11:56]POST & json_proto [00:11:56]process_json_proto [00:11:56]json parsed OK: [00:11:56]protocol is kg_v1.0 [00:11:56]action value=close_receipt [00:11:56]process_action close_receipt [00:11:56]cmd_close_receipt [00:11:56]MH_GetDate [00:11:56]Write to MH i2c: F0 00 00 48 34 6B [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: F0 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: F0 09 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: F0 09 00 48 34 00 D1 D6 1E 67 2B 09 1E 67 59 [00:11:56]GetLastDocTimeStamp 1730073929 [00:11:56]current date 1730074321 [00:11:56]FM_GetShiftState [00:11:56]SAM_PROTO_GetShiftState [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 13 01 00 [00:11:56]Write to MH i2c: E2 08 00 49 34 80 13 01 00 00 00 00 00 FA [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 0E 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 0E 00 49 34 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 2C [00:11:57]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:11:57]wFMCommunicate OK [00:11:57]SAM_PROTO_GetShiftState done [00:11:57]FM_GetShiftState done [00:11:57]opened in 1730073805 [00:11:57]opened+sec_in_day 1730160205 [00:11:57]quantity*price = 35055 [00:11:57]sum+1 = 35057 [00:11:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 2 28.10.2024 00:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117518 ФПД: 97619258934230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001201&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117518&fm=97619258934230&tin=02508201610067®Number=0000000000091782&sum=35000 [00:11:58]StoreToDocumentArchive [00:11:58]shift 543 fd 117518 [00:11:58]save to /storage/0543/doc_00117518 [00:11:58]save last doc name /storage/0543/doc_00117518 to /storage/kkm_last_doc_name [00:11:58]save OK [00:11:58]Clear old archive folders... [00:11:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:11:58]tlvbuf is 018131D0 [00:11:58]SAM_PROTO_ClearQueue [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 09 00 00 [00:11:58]Write to MH i2c: E2 08 00 56 34 80 09 00 00 00 00 00 00 FC [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 56 34 00 90 00 FE [00:11:58]RAPDU: 90 00 [00:11:58]wFMCommunicate OK [00:11:58]SAM_PROTO_ClearQueue done [00:11:58]KKMCreateOFDPacket [00:11:58]OFDProtocolAddRootSTLVToBuf [00:11:58]FM_MakeSignedData [00:11:58]FM_MakeSignedData [00:11:58]SAM_PROTO_SignData [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 0D 01 02 [00:11:58]Write to MH i2c: E2 08 00 57 34 80 0D 01 02 00 00 00 00 04 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 57 34 00 90 00 FF [00:11:58]RAPDU: 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=255 [00:11:58]MH_SAM_APDU [00:11: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 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 02 00 00 00 F4 03 04 00 D1 D6 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0E CB 01 00 35 04 06 00 58 [00:11:58]Write to MH i2c: E2 02 01 58 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 02 00 00 00 F4 03 04 00 D1 D6 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0E CB 01 00 35 04 06 00 58 00 00 22 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 58 34 00 90 00 00 [00:11:58]RAPDU: 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=10 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 0D 02 02 05 C8 C1 40 83 D6 [00:11:58]Write to MH i2c: E2 0D 00 59 34 80 0D 02 02 05 00 C8 C1 40 83 D6 00 00 33 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 59 34 00 90 00 01 [00:11:58]RAPDU: 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 0D 03 02 [00:11:58]Write to MH i2c: E2 08 00 5A 34 80 0D 03 02 00 00 00 00 09 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 0B 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 0B 00 5A 34 00 64 86 07 72 02 F2 C1 6A 90 00 8C [00:11:58]RAPDU: 64 86 07 72 02 F2 C1 6A 90 00 [00:11:58]wFMCommunicate OK [00:11:58]SAM_PROTO_SignData done [00:11:58]FM_MakeSignedData done [00:11:58]CreateOFDProtocolMessage [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 11 00 00 [00:11:58]Write to MH i2c: E2 08 00 5B 34 80 11 00 00 00 00 00 00 09 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 17 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 17 00 5B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 60 [00:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:11:58]wFMCommunicate OK [00:11:58]CreateOFDProtocolMessage done [00:11:58]OFDSenderStorePacket 117518 [00:11:58]StoreOFDPacket docnum=117518 [00:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F8 4E 07 01 19 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 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 02 00 00 00 F4 03 04 00 D1 D6 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0E CB 01 00 35 04 06 00 58 C8 C1 40 83 D6 64 86 07 72 02 F2 C1 6A [00:11:58]CheckFolder [00:11:58]dirname=/storage/ofd_packets [00:11:58]CheckFolder done [00:11:58]ProducePacketName [00:11:58]name=ofd_packets/00117518 [00:11:58]NVStorageSaveData ofd_packets/00117518 [00:11:58]File name is /storage/ofd_packets/00117518 [00:11:58]Write 301 bytes [00:11:58]NVStorageSaveData done [00:11:58]OFDSenderStorePacket done [00:11:58]KKMCreateOFDPacket done [00:11:58]NVStorageSaveData kkm_last_timestamp [00:11:58]File name is /storage/kkm_last_timestamp [00:11:58]Write 4 bytes [00:11:58]NVStorageSaveData done [00:11:58]ExternCall_PrintAddStr [00:11:58]wPrintStart [00:11:58]Write to MH i2c: 01 00 00 5C 34 90 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: 01 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: 01 07 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: 01 07 00 5C 34 00 00 00 00 00 FF 0F A5 [00:11:58]RasterBufferAndPrint [00:11:58]line Счет N : (1)245292 [00:11:58]line ИНН: 02508201610067 [00:11:58]line Контрольно-Кассовый Чек [00:11:58]line ПРОДАЖА [00:11:58]line ТРК (МРК, ГНК) : 21 [00:11:58]line Товар: 2710124130 [00:11:58]line Аи-92-К-2 [00:11:58]line 5.240 * 66.90 [00:11:58]line = 350.56 [00:11:58]line НДС 12% НСП 1% [00:11:58]line > о реализуемом товаре [00:11:58]line ОКРУГЛЕНИЕ: -0.56 [00:11:58]line ИТОГО: 350.00 [00:11:58]line Внесено: 350.00 [00:11:58]line СДАЧА: 0.00 [00:11:58]line НСП 1% : 3.10 [00:11:58]line НДС 12% : 37.23 [00:11:58]line Наличными: 350.00 [00:11:58]line Безнал.: 0.00 [00:11:58]line Место: АЗС № 173 "Партнер Нефть" [00:11:58]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:11:58]line СНО: Общий режим [00:11:58]line Чек 2 28.10.2024 00:12 [00:11:58]line Смена: 543 ФФД: 1.0 [00:11:58]line ЗНМ: 0300000115 [00:11:58]line РНМ: 0000000000091782 [00:11:58]line Версия ККМ: 001 [00:11:58]line ФМ: 0000000000871767 [00:11:58]line ФД: 117518 [00:11:58]line ФПД: 97619258934230 [00:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001201&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117518&fm=97619258934230&tin=02508201610067®Number=0000000000091782&sum=35000 [00:11:59]OFD Sender: Processing packet 117518 [packets to send 76, broken 75] [00:11:59]ProducePacketName [00:11:59]name=ofd_packets/00117518 [00:11:59]OFD Sender: To server: pG, [00:11:59]CommunicateWithHost lk.salyk.kg:30040 [00:11:59]ConnectInit lk.salyk.kg [00:11:59]written 0, free lines is 4095 [00:11:59]Connected sock=10 [00:11: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 36 37 0F 01 00 00 F8 4E 07 01 19 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 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 02 00 00 00 F4 03 04 00 D1 D6 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0E CB 01 00 35 04 06 00 58 C8 C1 40 83 D6 64 86 07 72 02 F2 C1 6A [00:11: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 36 37 4F 00 00 00 4A 39 47 00 63 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 36 37 10 04 04 00 0E CB 01 00 F4 03 04 00 8D 82 1E 67 B6 04 01 00 00 55 02 CE 99 F7 1C 08 32 [00:11:59]CommunicateWithHost err = 0 [00:11:59]CheckOFDResponse [00:11:59]1017 (14) - 77093643461234 [00:11:59]1041 (16) - 0000000000871767 [00:11:59]1040 (4) - 117518 [00:11:59]1012 (4) - 27.10.2024 18:12 [00:11:59]1206 (1) - 0 [00:11:59]OFD Sender: Remove packet 117518 [00:11:59]ProducePacketName [00:11:59]name=ofd_packets/00117518 [00:11:59]NVStorageDeleteData [00:11:59]Write to MH i2c: 01 00 00 86 34 BA [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: 01 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: 01 07 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: 01 07 00 86 34 00 00 00 00 00 BC 0C 89 [00:11:59]RasterBufferAndPrint [00:11:59]line [00:11:59]line [00:11:59]line [00:11:59]line [00:11:59]line [00:11:59]written 0, free lines is 3267 [00:11:59]MH_Cut [00:11:59]Write to MH i2c: D1 01 00 8D 34 01 93 [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: D1 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: D1 01 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: D1 01 00 8D 34 00 92 [00:11:59]Write to MH i2c: 01 00 00 8E 34 C2 [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]OFD Sender: No OFD packet to send [00:12:00]*** Cut start [00:12:00]*** Purtial cut [00:12:00]*** Stage 1: CUTSNS_PIN = 1 [00:12:00]Read from MH i2c: 01 [00:12:00]MH_I2C_Read... [00:12:00]*** Stop cut motor [00:12:00]*** Cut end [00:12:00]Read from MH i2c: 01 07 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: 01 07 00 8E 34 00 00 00 00 00 FF 0F D7 [00:12:00]process_action close_receipt done [00:12:00]requested_data is exist [00:12:00]produce_requested_data [00:12:00]requested_item fm.sn is exist - process it [00:12:00]wFMCommunicate request_size=4 [00:12:00]MH_SAM_APDU [00:12:00]CAPDU: 80 11 00 00 [00:12:00]Write to MH i2c: E2 08 00 8F 34 80 11 00 00 00 00 00 00 3D [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:00]Read from MH i2c: E2 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 17 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 17 00 8F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 94 [00:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:12:00]wFMCommunicate OK [00:12:00]requested_item fd.num is exist - process it [00:12:00]SAM_PROTO_GetFieldsCounters [00:12:00]wFMCommunicate request_size=4 [00:12:00]MH_SAM_APDU [00:12:00]CAPDU: 80 13 00 00 [00:12:00]Write to MH i2c: E2 08 00 90 34 80 13 00 00 00 00 00 00 40 [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:00]Read from MH i2c: E2 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 62 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 62 00 90 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0E CB 01 00 0E 04 04 00 1F 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 68 [00:12: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0E CB 01 00 0E 04 04 00 1F 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:12:00]wFMCommunicate OK [00:12:00]SAM_PROTO_GetFieldsCounters done [00:12:00]requested_item shift.num is exist - process it [00:12:00]requested_item shift.opened is exist - process it [00:12:00]req_shift_opened [00:12:00]FM_GetShiftState [00:12:00]SAM_PROTO_GetShiftState [00:12:00]wFMCommunicate request_size=4 [00:12:00]MH_SAM_APDU [00:12:00]CAPDU: 80 13 01 00 [00:12:00]Write to MH i2c: E2 08 00 91 34 80 13 01 00 00 00 00 00 42 [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:00]Read from MH i2c: E2 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 0E 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 0E 00 91 34 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 74 [00:12:00]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:12:00]wFMCommunicate OK [00:12:00]SAM_PROTO_GetShiftState done [00:12:00]FM_GetShiftState done [00:12:00]req_shift_opened done [00:12:00]requested_item shift.open_date is exist - process it [00:12:00]req_shift_open_date [00:12:00]req_shift_open_date done [00:12:00]produce_requested_data done [00:12:00]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117518,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [00:12:00]process_action_free close_receipt [00:12:00]json_value_free [00:12:00]json_value_free done [00:12:00]process_json_proto returns [00:12:00]Send response to host [00:12:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117518,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [00:12:00]free response buf [00:12:00]execute_script done [00:12:00]execute_script returns [00:12:00]free content buf [00:12:00]Sock 9.Close socket [00:12:00]Sock 9.Thread stoped [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:21]accept exits with 7 [00:14:21]New connection [00:14:21]New thread 3067600228 created [00:14:21]Thread 3067456868 joined [00:14:21]Waiting for new connection... [00:14:21] Sock 7.Parse request [00:14:21]Sock 7.Check first char [00:14:21]Sock 7.First char is OK [00:14:21]request: POST /json_proto HTTP/1.0 [00:14:21]Method: POST [00:14:21]URL: /json_proto [00:14:21]Method is POST - this is cgi request [00:14:21]url: /json_proto [00:14:21]query_string will be loaded in cgi processing [00:14:21]execute_cgi json_proto POST (null) [00:14:21]execute_cgi path=json_proto method=POST [00:14:21]POST find Content-Length [00:14:21]Host: 172.17.96.67:8080 [00:14:21]Content-Length: 682 [00:14:21]Content-Type: application/json [00:14:21] [00:14:21]POST finish read [00:14:21]Found Content-Length = 682 [00:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:14:21]execute_script... [00: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)245293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:14:21]POST & json_proto [00:14:21]process_json_proto [00:14:21]json parsed OK: [00:14:21]protocol is kg_v1.0 [00:14:21]action value=close_receipt [00:14:21]process_action close_receipt [00:14:21]cmd_close_receipt [00:14:21]MH_GetDate [00:14:21]Write to MH i2c: F0 00 00 92 34 B5 [00:14:21]Write i2c OK [00:14:21]MH_I2C_Read... [00:14:21]Read from MH i2c: F0 [00:14:21]MH_I2C_Read... [00:14:21]Read from MH i2c: F0 09 00 [00:14:21]MH_I2C_Read... [00:14:21]Read from MH i2c: F0 09 00 92 34 00 61 D7 1E 67 2B 09 1E 67 34 [00:14:21]GetLastDocTimeStamp 1730074321 [00:14:21]current date 1730074465 [00:14:21]FM_GetShiftState [00:14:21]SAM_PROTO_GetShiftState [00:14:21]wFMCommunicate request_size=4 [00:14:21]MH_SAM_APDU [00:14:21]CAPDU: 80 13 01 00 [00:14:21]Write to MH i2c: E2 08 00 93 34 80 13 01 00 00 00 00 00 44 [00:14:21]Write i2c OK [00:14:21]MH_I2C_Read... [00:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:21]Read from MH i2c: E2 [00:14:21]MH_I2C_Read... [00:14:21]Read from MH i2c: E2 0E 00 [00:14:21]MH_I2C_Read... [00:14:21]Read from MH i2c: E2 0E 00 93 34 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 76 [00:14:21]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:14:21]wFMCommunicate OK [00:14:21]SAM_PROTO_GetShiftState done [00:14:21]FM_GetShiftState done [00:14:21]opened in 1730073805 [00:14:21]opened+sec_in_day 1730160205 [00:14:21]quantity*price = 100015 [00:14:21]sum+1 = 100017 [00:14: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 3 28.10.2024 00:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117519 ФПД: 171533425764297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001425&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117519&fm=171533425764297&tin=02508201610067®Number=0000000000091782&sum=100000 [00:14:22]StoreToDocumentArchive [00:14:22]shift 543 fd 117519 [00:14:22]save to /storage/0543/doc_00117519 [00:14:22]save last doc name /storage/0543/doc_00117519 to /storage/kkm_last_doc_name [00:14:22]save OK [00:14:22]Clear old archive folders... [00:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:14:22]tlvbuf is 01804C70 [00:14:22]SAM_PROTO_ClearQueue [00:14:22]wFMCommunicate request_size=4 [00:14:22]MH_SAM_APDU [00:14:22]CAPDU: 80 09 00 00 [00:14:22]Write to MH i2c: E2 08 00 A0 34 80 09 00 00 00 00 00 00 46 [00:14:22]Write i2c OK [00:14:22]MH_I2C_Read... [00:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:22]Read from MH i2c: E2 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 03 00 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 03 00 A0 34 00 90 00 48 [00:14:22]RAPDU: 90 00 [00:14:22]wFMCommunicate OK [00:14:22]SAM_PROTO_ClearQueue done [00:14:22]KKMCreateOFDPacket [00:14:22]OFDProtocolAddRootSTLVToBuf [00:14:22]FM_MakeSignedData [00:14:22]FM_MakeSignedData [00:14:22]SAM_PROTO_SignData [00:14:22]wFMCommunicate request_size=4 [00:14:22]MH_SAM_APDU [00:14:22]CAPDU: 80 0D 01 02 [00:14:22]Write to MH i2c: E2 08 00 A1 34 80 0D 01 02 00 00 00 00 4E [00:14:22]Write i2c OK [00:14:22]MH_I2C_Read... [00:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:22]Read from MH i2c: E2 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 03 00 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 03 00 A1 34 00 90 00 49 [00:14:22]RAPDU: 90 00 [00:14:22]wFMCommunicate OK [00:14:22]wFMCommunicate request_size=255 [00:14:22]MH_SAM_APDU [00:14: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 03 00 00 00 F4 03 04 00 61 D7 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0F CB 01 00 35 04 06 00 9C [00:14:22]Write to MH i2c: E2 02 01 A2 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 03 00 00 00 F4 03 04 00 61 D7 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0F CB 01 00 35 04 06 00 9C 00 00 32 [00:14:22]Write i2c OK [00:14:22]MH_I2C_Read... [00:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:22]Read from MH i2c: E2 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 03 00 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 03 00 A2 34 00 90 00 4A [00:14:22]RAPDU: 90 00 [00:14:22]wFMCommunicate OK [00:14:22]wFMCommunicate request_size=10 [00:14:22]MH_SAM_APDU [00:14:22]CAPDU: 80 0D 02 02 05 02 3C E8 E7 C9 [00:14:22]Write to MH i2c: E2 0D 00 A3 34 80 0D 02 02 05 00 02 3C E8 E7 C9 00 00 31 [00:14:22]Write i2c OK [00:14:22]MH_I2C_Read... [00:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:22]Read from MH i2c: E2 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 03 00 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 03 00 A3 34 00 90 00 4B [00:14:22]RAPDU: 90 00 [00:14:22]wFMCommunicate OK [00:14:22]wFMCommunicate request_size=4 [00:14:22]MH_SAM_APDU [00:14:22]CAPDU: 80 0D 03 02 [00:14:22]Write to MH i2c: E2 08 00 A4 34 80 0D 03 02 00 00 00 00 53 [00:14:22]Write i2c OK [00:14:22]MH_I2C_Read... [00:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:22]Read from MH i2c: E2 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 0B 00 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 0B 00 A4 34 00 79 82 B3 15 A2 87 47 9F 90 00 26 [00:14:22]RAPDU: 79 82 B3 15 A2 87 47 9F 90 00 [00:14:22]wFMCommunicate OK [00:14:22]SAM_PROTO_SignData done [00:14:22]FM_MakeSignedData done [00:14:22]CreateOFDProtocolMessage [00:14:22]wFMCommunicate request_size=4 [00:14:22]MH_SAM_APDU [00:14:22]CAPDU: 80 11 00 00 [00:14:22]Write to MH i2c: E2 08 00 A5 34 80 11 00 00 00 00 00 00 53 [00:14:22]Write i2c OK [00:14:22]MH_I2C_Read... [00:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:22]Read from MH i2c: E2 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 17 00 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 17 00 A5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AA [00:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:14:22]wFMCommunicate OK [00:14:22]CreateOFDProtocolMessage done [00:14:22]OFDSenderStorePacket 117519 [00:14:22]StoreOFDPacket docnum=117519 [00:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 25 D4 07 01 5D 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 03 00 00 00 F4 03 04 00 61 D7 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0F CB 01 00 35 04 06 00 9C 02 3C E8 E7 C9 79 82 B3 15 A2 87 47 9F [00:14:22]CheckFolder [00:14:22]dirname=/storage/ofd_packets [00:14:22]CheckFolder done [00:14:22]ProducePacketName [00:14:22]name=ofd_packets/00117519 [00:14:22]NVStorageSaveData ofd_packets/00117519 [00:14:22]File name is /storage/ofd_packets/00117519 [00:14:22]Write 301 bytes [00:14:22]NVStorageSaveData done [00:14:22]OFDSenderStorePacket done [00:14:22]KKMCreateOFDPacket done [00:14:22]NVStorageSaveData kkm_last_timestamp [00:14:22]File name is /storage/kkm_last_timestamp [00:14:22]Write 4 bytes [00:14:22]NVStorageSaveData done [00:14:22]ExternCall_PrintAddStr [00:14:22]wPrintStart [00:14:22]Write to MH i2c: 01 00 00 A6 34 DA [00:14:22]Write i2c OK [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: 01 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: 01 07 00 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: 01 07 00 A6 34 00 00 00 00 00 FF 0F EF [00:14:22]RasterBufferAndPrint [00:14:22]line Счет N : (1)245293 [00:14:22]line ИНН: 02508201610067 [00:14:22]line Контрольно-Кассовый Чек [00:14:22]line ПРОДАЖА [00:14:22]line ТРК (МРК, ГНК) : 21 [00:14:22]line Товар: 2710124130 [00:14:22]line Аи-92-К-2 [00:14:22]line 14.950 * 66.90 [00:14:22]line = 1000.16 [00:14:22]line НДС 12% НСП 1% [00:14:22]line > о реализуемом товаре [00:14:22]line ОКРУГЛЕНИЕ: -0.16 [00:14:22]line ИТОГО: 1000.00 [00:14:22]line Внесено: 1000.00 [00:14:22]line СДАЧА: 0.00 [00:14:22]line НСП 1% : 8.85 [00:14:22]line НДС 12% : 106.21 [00:14:22]line Наличными: 1000.00 [00:14:22]line Безнал.: 0.00 [00:14:22]line Место: АЗС № 173 "Партнер Нефть" [00:14:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:14:22]line СНО: Общий режим [00:14:22]line Чек 3 28.10.2024 00:14 [00:14:22]line Смена: 543 ФФД: 1.0 [00:14:22]line ЗНМ: 0300000115 [00:14:22]line РНМ: 0000000000091782 [00:14:22]line Версия ККМ: 001 [00:14:22]line ФМ: 0000000000871767 [00:14:22]line ФД: 117519 [00:14:22]line ФПД: 171533425764297 [00:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001425&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117519&fm=171533425764297&tin=02508201610067®Number=0000000000091782&sum=100000 [00:14:23]OFD Sender: Processing packet 117519 [packets to send 76, broken 75] [00:14:23]ProducePacketName [00:14:23]name=ofd_packets/00117519 [00:14:23]OFD Sender: To server: pG, [00:14:23]CommunicateWithHost lk.salyk.kg:30040 [00:14:23]ConnectInit lk.salyk.kg [00:14:23]written 0, free lines is 4095 [00:14:23]Connected sock=9 [00: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 36 37 0F 01 00 00 25 D4 07 01 5D 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 03 00 00 00 F4 03 04 00 61 D7 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0F CB 01 00 35 04 06 00 9C 02 3C E8 E7 C9 79 82 B3 15 A2 87 47 9F [00:14: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 36 37 4F 00 00 00 59 D5 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 36 37 10 04 04 00 0F CB 01 00 F4 03 04 00 1D 83 1E 67 B6 04 01 00 00 5C 5F BC 19 7F D8 51 29 [00:14:23]CommunicateWithHost err = 0 [00:14:23]CheckOFDResponse [00:14:23]1017 (14) - 77093643461234 [00:14:23]1041 (16) - 0000000000871767 [00:14:23]1040 (4) - 117519 [00:14:23]1012 (4) - 27.10.2024 18:14 [00:14:23]1206 (1) - 0 [00:14:23]OFD Sender: Remove packet 117519 [00:14:23]ProducePacketName [00:14:23]name=ofd_packets/00117519 [00:14:23]NVStorageDeleteData [00:14:23]Write to MH i2c: 01 00 00 D0 34 04 [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: 01 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: 01 07 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: 01 07 00 D0 34 00 00 00 00 00 B5 0C CC [00:14:23]RasterBufferAndPrint [00:14:23]line [00:14:23]line [00:14:23]line [00:14:23]line [00:14:23]line [00:14:23]written 0, free lines is 3259 [00:14:23]MH_Cut [00:14:23]Write to MH i2c: D1 01 00 D7 34 01 DD [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: D1 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: D1 01 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: D1 01 00 D7 34 00 DC [00:14:23]Write to MH i2c: 01 00 00 D8 34 0C [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]OFD Sender: No OFD packet to send [00:14:24]*** Cut start [00:14:24]*** Purtial cut [00:14:24]*** Stage 1: CUTSNS_PIN = 1 [00:14:24]Read from MH i2c: 01 [00:14:24]MH_I2C_Read... [00:14:24]*** Stop cut motor [00:14:24]*** Cut end [00:14:24]Read from MH i2c: 01 07 00 [00:14:24]MH_I2C_Read... [00:14:24]Read from MH i2c: 01 07 00 D8 34 00 00 00 00 00 FF 0F 21 [00:14:24]process_action close_receipt done [00:14:24]requested_data is exist [00:14:24]produce_requested_data [00:14:24]requested_item fm.sn is exist - process it [00:14:24]wFMCommunicate request_size=4 [00:14:24]MH_SAM_APDU [00:14:24]CAPDU: 80 11 00 00 [00:14:24]Write to MH i2c: E2 08 00 D9 34 80 11 00 00 00 00 00 00 87 [00:14:24]Write i2c OK [00:14:24]MH_I2C_Read... [00:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:24]Read from MH i2c: E2 [00:14:24]MH_I2C_Read... [00:14:24]Read from MH i2c: E2 17 00 [00:14:24]MH_I2C_Read... [00:14:24]Read from MH i2c: E2 17 00 D9 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DE [00:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:14:24]wFMCommunicate OK [00:14:24]requested_item fd.num is exist - process it [00:14:24]SAM_PROTO_GetFieldsCounters [00:14:24]wFMCommunicate request_size=4 [00:14:24]MH_SAM_APDU [00:14:24]CAPDU: 80 13 00 00 [00:14:24]Write to MH i2c: E2 08 00 DA 34 80 13 00 00 00 00 00 00 8A [00:14:24]Write i2c OK [00:14:24]MH_I2C_Read... [00:14:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:24]Read from MH i2c: E2 [00:14:24]MH_I2C_Read... [00:14:24]Read from MH i2c: E2 62 00 [00:14:24]MH_I2C_Read... [00:14:24]Read from MH i2c: E2 62 00 DA 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0F CB 01 00 0E 04 04 00 1F 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 B6 [00:14: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0F CB 01 00 0E 04 04 00 1F 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:14:24]wFMCommunicate OK [00:14:24]SAM_PROTO_GetFieldsCounters done [00:14:24]requested_item shift.num is exist - process it [00:14:24]requested_item shift.opened is exist - process it [00:14:24]req_shift_opened [00:14:24]FM_GetShiftState [00:14:24]SAM_PROTO_GetShiftState [00:14:24]wFMCommunicate request_size=4 [00:14:24]MH_SAM_APDU [00:14:24]CAPDU: 80 13 01 00 [00:14:24]Write to MH i2c: E2 08 00 DB 34 80 13 01 00 00 00 00 00 8C [00:14:24]Write i2c OK [00:14:24]MH_I2C_Read... [00:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:24]Read from MH i2c: E2 [00:14:24]MH_I2C_Read... [00:14:24]Read from MH i2c: E2 0E 00 [00:14:24]MH_I2C_Read... [00:14:24]Read from MH i2c: E2 0E 00 DB 34 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 BE [00:14:24]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:14:24]wFMCommunicate OK [00:14:24]SAM_PROTO_GetShiftState done [00:14:24]FM_GetShiftState done [00:14:24]req_shift_opened done [00:14:24]requested_item shift.open_date is exist - process it [00:14:24]req_shift_open_date [00:14:24]req_shift_open_date done [00:14:24]produce_requested_data done [00:14:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117519,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [00:14:24]process_action_free close_receipt [00:14:24]json_value_free [00:14:24]json_value_free done [00:14:24]process_json_proto returns [00:14:24]Send response to host [00:14:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117519,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [00:14:24]free response buf [00:14:24]execute_script done [00:14:24]execute_script returns [00:14:24]free content buf [00:14:24]Sock 7.Close socket [00:14:24]Sock 7.Thread stoped [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:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:45]accept exits with 10 [00:17:45]New connection [00:17:45]New thread 3067456868 created [00:17:45]Thread 3067600228 joined [00:17:45]Waiting for new connection... [00:17:45] Sock 10.Parse request [00:17:45]Sock 10.Check first char [00:17:45]Sock 10.First char is OK [00:17:45]request: POST /json_proto HTTP/1.0 [00:17:45]Method: POST [00:17:45]URL: /json_proto [00:17:45]Method is POST - this is cgi request [00:17:45]url: /json_proto [00:17:45]query_string will be loaded in cgi processing [00:17:45]execute_cgi json_proto POST (null) [00:17:45]execute_cgi path=json_proto method=POST [00:17:45]POST find Content-Length [00:17:45]Host: 172.17.96.67:8080 [00:17:45]Content-Length: 677 [00:17:45]Content-Type: application/json [00:17:45] [00:17:45]POST finish read [00:17:45]Found Content-Length = 677 [00:17:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:17:45]execute_script... [00:17: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)245294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:17:45]POST & json_proto [00:17:45]process_json_proto [00:17:45]json parsed OK: [00:17:45]protocol is kg_v1.0 [00:17:45]action value=close_receipt [00:17:45]process_action close_receipt [00:17:45]cmd_close_receipt [00:17:45]MH_GetDate [00:17:45]Write to MH i2c: F0 00 00 DC 34 FF [00:17:45]Write i2c OK [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: F0 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: F0 09 00 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: F0 09 00 DC 34 00 2D D8 1E 67 2B 09 1E 67 4B [00:17:45]GetLastDocTimeStamp 1730074465 [00:17:45]current date 1730074669 [00:17:45]FM_GetShiftState [00:17:45]SAM_PROTO_GetShiftState [00:17:45]wFMCommunicate request_size=4 [00:17:45]MH_SAM_APDU [00:17:45]CAPDU: 80 13 01 00 [00:17:45]Write to MH i2c: E2 08 00 DD 34 80 13 01 00 00 00 00 00 8E [00:17:45]Write i2c OK [00:17:45]MH_I2C_Read... [00:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:45]Read from MH i2c: E2 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: E2 0E 00 [00:17:45]MH_I2C_Read... [00:17:45]Read from MH i2c: E2 0E 00 DD 34 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 C0 [00:17:45]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:17:45]wFMCommunicate OK [00:17:45]SAM_PROTO_GetShiftState done [00:17:45]FM_GetShiftState done [00:17:45]opened in 1730073805 [00:17:45]opened+sec_in_day 1730160205 [00:17:45]quantity*price = 40006 [00:17:45]sum+1 = 40007 [00:17:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 4 28.10.2024 00:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117520 ФПД: 278121785542779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001749&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117520&fm=278121785542779&tin=02508201610067®Number=0000000000091782&sum=40000 [00:17:46]StoreToDocumentArchive [00:17:46]shift 543 fd 117520 [00:17:46]save to /storage/0543/doc_00117520 [00:17:46]save last doc name /storage/0543/doc_00117520 to /storage/kkm_last_doc_name [00:17:46]save OK [00:17:46]Clear old archive folders... [00:17:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:17:46]tlvbuf is B6E468F0 [00:17:46]SAM_PROTO_ClearQueue [00:17:46]wFMCommunicate request_size=4 [00:17:46]MH_SAM_APDU [00:17:46]CAPDU: 80 09 00 00 [00:17:46]Write to MH i2c: E2 08 00 EA 34 80 09 00 00 00 00 00 00 90 [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:46]Read from MH i2c: E2 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 03 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 03 00 EA 34 00 90 00 92 [00:17:46]RAPDU: 90 00 [00:17:46]wFMCommunicate OK [00:17:46]SAM_PROTO_ClearQueue done [00:17:46]KKMCreateOFDPacket [00:17:46]OFDProtocolAddRootSTLVToBuf [00:17:46]FM_MakeSignedData [00:17:46]FM_MakeSignedData [00:17:46]SAM_PROTO_SignData [00:17:46]wFMCommunicate request_size=4 [00:17:46]MH_SAM_APDU [00:17:46]CAPDU: 80 0D 01 02 [00:17:46]Write to MH i2c: E2 08 00 EB 34 80 0D 01 02 00 00 00 00 98 [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:46]Read from MH i2c: E2 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 03 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 03 00 EB 34 00 90 00 93 [00:17:46]RAPDU: 90 00 [00:17:46]wFMCommunicate OK [00:17:46]wFMCommunicate request_size=255 [00:17:46]MH_SAM_APDU [00:17: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 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 04 00 00 00 F4 03 04 00 2D D8 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 10 CB 01 00 35 04 06 00 FC [00:17:46]Write to MH i2c: E2 02 01 EC 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 2D D8 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 10 CB 01 00 35 04 06 00 FC 00 00 80 [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:46]Read from MH i2c: E2 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 03 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 03 00 EC 34 00 90 00 94 [00:17:46]RAPDU: 90 00 [00:17:46]wFMCommunicate OK [00:17:46]wFMCommunicate request_size=10 [00:17:46]MH_SAM_APDU [00:17:46]CAPDU: 80 0D 02 02 05 F3 46 3B 48 7B [00:17:46]Write to MH i2c: E2 0D 00 ED 34 80 0D 02 02 05 00 F3 46 3B 48 7B 00 00 DC [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:46]Read from MH i2c: E2 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 03 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 03 00 ED 34 00 90 00 95 [00:17:46]RAPDU: 90 00 [00:17:46]wFMCommunicate OK [00:17:46]wFMCommunicate request_size=4 [00:17:46]MH_SAM_APDU [00:17:46]CAPDU: 80 0D 03 02 [00:17:46]Write to MH i2c: E2 08 00 EE 34 80 0D 03 02 00 00 00 00 9D [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:46]Read from MH i2c: E2 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 0B 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 0B 00 EE 34 00 F3 23 BF 44 C0 C9 08 C3 90 00 0B [00:17:46]RAPDU: F3 23 BF 44 C0 C9 08 C3 90 00 [00:17:46]wFMCommunicate OK [00:17:46]SAM_PROTO_SignData done [00:17:46]FM_MakeSignedData done [00:17:46]CreateOFDProtocolMessage [00:17:46]wFMCommunicate request_size=4 [00:17:46]MH_SAM_APDU [00:17:46]CAPDU: 80 11 00 00 [00:17:46]Write to MH i2c: E2 08 00 EF 34 80 11 00 00 00 00 00 00 9D [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:46]Read from MH i2c: E2 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 17 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: E2 17 00 EF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F4 [00:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:17:46]wFMCommunicate OK [00:17:46]CreateOFDProtocolMessage done [00:17:46]OFDSenderStorePacket 117520 [00:17:46]StoreOFDPacket docnum=117520 [00:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 83 41 07 01 73 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 2D D8 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 10 CB 01 00 35 04 06 00 FC F3 46 3B 48 7B F3 23 BF 44 C0 C9 08 C3 [00:17:46]CheckFolder [00:17:46]dirname=/storage/ofd_packets [00:17:46]CheckFolder done [00:17:46]ProducePacketName [00:17:46]name=ofd_packets/00117520 [00:17:46]NVStorageSaveData ofd_packets/00117520 [00:17:46]File name is /storage/ofd_packets/00117520 [00:17:46]Write 301 bytes [00:17:46]NVStorageSaveData done [00:17:46]OFDSenderStorePacket done [00:17:46]KKMCreateOFDPacket done [00:17:46]NVStorageSaveData kkm_last_timestamp [00:17:46]File name is /storage/kkm_last_timestamp [00:17:46]Write 4 bytes [00:17:46]NVStorageSaveData done [00:17:46]ExternCall_PrintAddStr [00:17:46]wPrintStart [00:17:46]Write to MH i2c: 01 00 00 F0 34 24 [00:17:46]Write i2c OK [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: 01 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: 01 07 00 [00:17:46]MH_I2C_Read... [00:17:46]Read from MH i2c: 01 07 00 F0 34 00 00 00 00 00 FF 0F 39 [00:17:46]RasterBufferAndPrint [00:17:46]line Счет N : (1)245294 [00:17:46]line ИНН: 02508201610067 [00:17:46]line Контрольно-Кассовый Чек [00:17:46]line ПРОДАЖА [00:17:46]line ТРК (МРК, ГНК) : 21 [00:17:46]line Товар: 2710124130 [00:17:46]line Аи-92-К-2 [00:17:46]line 5.980 * 66.90 [00:17:46]line = 400.06 [00:17:46]line НДС 12% НСП 1% [00:17:46]line > о реализуемом товаре [00:17:46]line ОКРУГЛЕНИЕ: -0.06 [00:17:46]line ИТОГО: 400.00 [00:17:46]line Внесено: 400.00 [00:17:46]line СДАЧА: 0.00 [00:17:46]line НСП 1% : 3.54 [00:17:46]line НДС 12% : 42.48 [00:17:46]line Наличными: 400.00 [00:17:46]line Безнал.: 0.00 [00:17:46]line Место: АЗС № 173 "Партнер Нефть" [00:17:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:17:46]line СНО: Общий режим [00:17:46]line Чек 4 28.10.2024 00:17 [00:17:46]line Смена: 543 ФФД: 1.0 [00:17:46]line ЗНМ: 0300000115 [00:17:46]line РНМ: 0000000000091782 [00:17:46]line Версия ККМ: 001 [00:17:46]line ФМ: 0000000000871767 [00:17:46]line ФД: 117520 [00:17:46]line ФПД: 278121785542779 [00:17:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001749&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117520&fm=278121785542779&tin=02508201610067®Number=0000000000091782&sum=40000 [00:17:47]OFD Sender: Processing packet 117520 [packets to send 76, broken 75] [00:17:47]ProducePacketName [00:17:47]name=ofd_packets/00117520 [00:17:47]OFD Sender: To server: pG, [00:17:47]CommunicateWithHost lk.salyk.kg:30040 [00:17:47]ConnectInit lk.salyk.kg [00:17:47]written 0, free lines is 4095 [00:17:47]Connected sock=9 [00:17: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 36 37 0F 01 00 00 83 41 07 01 73 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 2D D8 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 10 CB 01 00 35 04 06 00 FC F3 46 3B 48 7B F3 23 BF 44 C0 C9 08 C3 [00:17: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 36 37 4F 00 00 00 AC FD 47 00 25 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 36 37 10 04 04 00 10 CB 01 00 F4 03 04 00 E9 83 1E 67 B6 04 01 00 00 1B 37 80 AB 51 04 CF B2 [00:17:47]CommunicateWithHost err = 0 [00:17:47]CheckOFDResponse [00:17:47]1017 (14) - 77093643461234 [00:17:47]1041 (16) - 0000000000871767 [00:17:47]1040 (4) - 117520 [00:17:47]1012 (4) - 27.10.2024 18:18 [00:17:47]1206 (1) - 0 [00:17:47]OFD Sender: Remove packet 117520 [00:17:47]ProducePacketName [00:17:47]name=ofd_packets/00117520 [00:17:47]NVStorageDeleteData [00:17:47]Write to MH i2c: 01 00 00 1A 35 4F [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: 01 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: 01 07 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: 01 07 00 1A 35 00 00 00 00 00 BB 0C 1D [00:17:47]RasterBufferAndPrint [00:17:47]line [00:17:47]line [00:17:47]line [00:17:47]line [00:17:47]line [00:17:47]written 0, free lines is 3268 [00:17:47]MH_Cut [00:17:47]Write to MH i2c: D1 01 00 21 35 01 28 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: D1 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: D1 01 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: D1 01 00 21 35 00 27 [00:17:47]Write to MH i2c: 01 00 00 22 35 57 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:48]OFD Sender: No OFD packet to send [00:17:48]*** Cut start [00:17:48]*** Purtial cut [00:17:48]*** Stage 1: CUTSNS_PIN = 1 [00:17:48]Read from MH i2c: 01 [00:17:48]MH_I2C_Read... [00:17:48]*** Stop cut motor [00:17:48]*** Cut end [00:17:48]Read from MH i2c: 01 07 00 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: 01 07 00 22 35 00 00 00 00 00 FF 0F 6C [00:17:48]process_action close_receipt done [00:17:48]requested_data is exist [00:17:48]produce_requested_data [00:17:48]requested_item fm.sn is exist - process it [00:17:48]wFMCommunicate request_size=4 [00:17:48]MH_SAM_APDU [00:17:48]CAPDU: 80 11 00 00 [00:17:48]Write to MH i2c: E2 08 00 23 35 80 11 00 00 00 00 00 00 D2 [00:17:48]Write i2c OK [00:17:48]MH_I2C_Read... [00:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:48]Read from MH i2c: E2 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 17 00 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 17 00 23 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 29 [00:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:17:48]wFMCommunicate OK [00:17:48]requested_item fd.num is exist - process it [00:17:48]SAM_PROTO_GetFieldsCounters [00:17:48]wFMCommunicate request_size=4 [00:17:48]MH_SAM_APDU [00:17:48]CAPDU: 80 13 00 00 [00:17:48]Write to MH i2c: E2 08 00 24 35 80 13 00 00 00 00 00 00 D5 [00:17:48]Write i2c OK [00:17:48]MH_I2C_Read... [00:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:48]Read from MH i2c: E2 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 62 00 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 62 00 24 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 10 CB 01 00 0E 04 04 00 1F 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 05 [00:17: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 10 CB 01 00 0E 04 04 00 1F 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:17:48]wFMCommunicate OK [00:17:48]SAM_PROTO_GetFieldsCounters done [00:17:48]requested_item shift.num is exist - process it [00:17:48]requested_item shift.opened is exist - process it [00:17:48]req_shift_opened [00:17:48]FM_GetShiftState [00:17:48]SAM_PROTO_GetShiftState [00:17:48]wFMCommunicate request_size=4 [00:17:48]MH_SAM_APDU [00:17:48]CAPDU: 80 13 01 00 [00:17:48]Write to MH i2c: E2 08 00 25 35 80 13 01 00 00 00 00 00 D7 [00:17:48]Write i2c OK [00:17:48]MH_I2C_Read... [00:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:49]Read from MH i2c: E2 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 0E 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 0E 00 25 35 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 09 [00:17:49]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:17:49]wFMCommunicate OK [00:17:49]SAM_PROTO_GetShiftState done [00:17:49]FM_GetShiftState done [00:17:49]req_shift_opened done [00:17:49]requested_item shift.open_date is exist - process it [00:17:49]req_shift_open_date [00:17:49]req_shift_open_date done [00:17:49]produce_requested_data done [00:17:49]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117520,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [00:17:49]process_action_free close_receipt [00:17:49]json_value_free [00:17:49]json_value_free done [00:17:49]process_json_proto returns [00:17:49]Send response to host [00:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117520,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [00:17:49]free response buf [00:17:49]execute_script done [00:17:49]execute_script returns [00:17:49]free content buf [00:17:49]Sock 10.Close socket [00:17:49]Sock 10.Thread stoped [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:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]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:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:19]accept exits with 7 [00:41:19]New connection [00:41:19]New thread 3067600228 created [00:41:19]Thread 3067456868 joined [00:41:19]Waiting for new connection... [00:41:19] Sock 7.Parse request [00:41:19]Sock 7.Check first char [00:41:19]Sock 7.First char is OK [00:41:19]request: POST /json_proto HTTP/1.0 [00:41:19]Method: POST [00:41:19]URL: /json_proto [00:41:19]Method is POST - this is cgi request [00:41:19]url: /json_proto [00:41:19]query_string will be loaded in cgi processing [00:41:19]execute_cgi json_proto POST (null) [00:41:19]execute_cgi path=json_proto method=POST [00:41:19]POST find Content-Length [00:41:19]Host: 172.17.96.67:8080 [00:41:19]Content-Length: 984 [00:41:19]Content-Type: application/json [00:41:19] [00:41:19]POST finish read [00:41:19]Found Content-Length = 984 [00:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:19]execute_script... [00:41: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)245295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:19]POST & json_proto [00:41:19]process_json_proto [00:41:19]json parsed OK: [00:41:19]protocol is kg_v1.0 [00:41:19]action value=close_receipt [00:41:19]process_action close_receipt [00:41:19]cmd_close_receipt [00:41:19]MH_GetDate [00:41:19]Write to MH i2c: F0 00 00 26 35 4A [00:41:19]Write i2c OK [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: F0 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: F0 09 00 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: F0 09 00 26 35 00 B3 DD 1E 67 2B 09 1E 67 21 [00:41:19]GetLastDocTimeStamp 1730074669 [00:41:19]current date 1730076083 [00:41:19]FM_GetShiftState [00:41:19]SAM_PROTO_GetShiftState [00:41:19]wFMCommunicate request_size=4 [00:41:19]MH_SAM_APDU [00:41:19]CAPDU: 80 13 01 00 [00:41:19]Write to MH i2c: E2 08 00 27 35 80 13 01 00 00 00 00 00 D9 [00:41:19]Write i2c OK [00:41:19]MH_I2C_Read... [00:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:19]Read from MH i2c: E2 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: E2 0E 00 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: E2 0E 00 27 35 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 0B [00:41:19]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:41:19]wFMCommunicate OK [00:41:19]SAM_PROTO_GetShiftState done [00:41:19]FM_GetShiftState done [00:41:19]opened in 1730073805 [00:41:19]opened+sec_in_day 1730160205 [00:41:19]quantity*price = 200006 [00:41:19]sum+1 = 200008 [00:41:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 5 28.10.2024 00:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 30.35 сом ФМ: 0000000000871767 ФД: 117521 ФПД: 110748467759535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T004123&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117521&fm=110748467759535&tin=02508201610067®Number=0000000000091782&sum=200000 [00:41:20]StoreToDocumentArchive [00:41:20]shift 543 fd 117521 [00:41:20]save to /storage/0543/doc_00117521 [00:41:20]save last doc name /storage/0543/doc_00117521 to /storage/kkm_last_doc_name [00:41:20]save OK [00:41:20]Clear old archive folders... [00:41:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:20]tlvbuf is B6E46A80 [00:41:20]SAM_PROTO_ClearQueue [00:41:20]wFMCommunicate request_size=4 [00:41:20]MH_SAM_APDU [00:41:20]CAPDU: 80 09 00 00 [00:41:20]Write to MH i2c: E2 08 00 34 35 80 09 00 00 00 00 00 00 DB [00:41:20]Write i2c OK [00:41:20]MH_I2C_Read... [00:41:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:20]Read from MH i2c: E2 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: E2 03 00 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: E2 03 00 34 35 00 90 00 DD [00:41:20]RAPDU: 90 00 [00:41:20]wFMCommunicate OK [00:41:20]SAM_PROTO_ClearQueue done [00:41:20]KKMCreateOFDPacket [00:41:20]OFDProtocolAddRootSTLVToBuf [00:41:20]FM_MakeSignedData [00:41:20]FM_MakeSignedData [00:41:20]SAM_PROTO_SignData [00:41:20]wFMCommunicate request_size=4 [00:41:20]MH_SAM_APDU [00:41:20]CAPDU: 80 0D 01 02 [00:41:20]Write to MH i2c: E2 08 00 35 35 80 0D 01 02 00 00 00 00 E3 [00:41:20]Write i2c OK [00:41:20]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 35 35 00 90 00 DE [00:41:21]RAPDU: 90 00 [00:41:21]wFMCommunicate OK [00:41:21]wFMCommunicate request_size=255 [00:41:21]MH_SAM_APDU [00: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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 B3 DD 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 11 CB 01 00 35 04 06 00 64 [00:41:21]Write to MH i2c: E2 02 01 36 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 B3 DD 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 11 CB 01 00 35 04 06 00 64 00 00 78 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 36 35 00 90 00 DF [00:41:21]RAPDU: 90 00 [00:41:21]wFMCommunicate OK [00:41:21]wFMCommunicate request_size=10 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 0D 02 02 05 B9 A3 14 89 AF [00:41:21]Write to MH i2c: E2 0D 00 37 35 80 0D 02 02 05 00 B9 A3 14 89 AF 00 00 98 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 37 35 00 90 00 E0 [00:41:21]RAPDU: 90 00 [00:41:21]wFMCommunicate OK [00:41:21]wFMCommunicate request_size=4 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 0D 03 02 [00:41:21]Write to MH i2c: E2 08 00 38 35 80 0D 03 02 00 00 00 00 E8 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 0B 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 0B 00 38 35 00 79 7A D3 03 70 97 D5 C8 90 00 56 [00:41:21]RAPDU: 79 7A D3 03 70 97 D5 C8 90 00 [00:41:21]wFMCommunicate OK [00:41:21]SAM_PROTO_SignData done [00:41:21]FM_MakeSignedData done [00:41:21]CreateOFDProtocolMessage [00:41:21]wFMCommunicate request_size=4 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 11 00 00 [00:41:21]Write to MH i2c: E2 08 00 39 35 80 11 00 00 00 00 00 00 E8 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 17 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 17 00 39 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3F [00:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:41:21]wFMCommunicate OK [00:41:21]CreateOFDProtocolMessage done [00:41:21]OFDSenderStorePacket 117521 [00:41:21]StoreOFDPacket docnum=117521 [00:41:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D5 53 07 01 A4 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 B3 DD 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 11 CB 01 00 35 04 06 00 64 B9 A3 14 89 AF 79 7A D3 03 70 97 D5 C8 [00:41:21]CheckFolder [00:41:21]dirname=/storage/ofd_packets [00:41:21]CheckFolder done [00:41:21]ProducePacketName [00:41:21]name=ofd_packets/00117521 [00:41:21]NVStorageSaveData ofd_packets/00117521 [00:41:21]File name is /storage/ofd_packets/00117521 [00:41:21]Write 301 bytes [00:41:21]NVStorageSaveData done [00:41:21]OFDSenderStorePacket done [00:41:21]KKMCreateOFDPacket done [00:41:21]NVStorageSaveData kkm_last_timestamp [00:41:21]File name is /storage/kkm_last_timestamp [00:41:21]Write 4 bytes [00:41:21]NVStorageSaveData done [00:41:21]ExternCall_PrintAddStr [00:41:21]wPrintStart [00:41:21]Write to MH i2c: 01 00 00 3A 35 6F [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: 01 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: 01 07 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: 01 07 00 3A 35 00 00 00 00 00 FF 0F 84 [00:41:21]RasterBufferAndPrint [00:41:21]line Счет N : (1)245295 [00:41:21]line ИНН: 02508201610067 [00:41:21]line Контрольно-Кассовый Чек [00:41:21]line ПРОДАЖА [00:41:21]line ТРК (МРК, ГНК) : 11 [00:41:21]line Товар: 2710124130 [00:41:21]line Аи-92-К-2 [00:41:21]line 30.350 * 65.90 [00:41:21]line = 2000.07 [00:41:21]line НДС 12% НСП 1% [00:41:21]line > о реализуемом товаре [00:41:21]line ОКРУГЛЕНИЕ: -0.07 [00:41:21]line ИТОГО: 2000.00 [00:41:21]line Внесено: 2000.00 [00:41:21]line СДАЧА: 0.00 [00:41:21]line НСП 1% : 17.70 [00:41:21]line НДС 12% : 212.40 [00:41:21]line Наличными: 2000.00 [00:41:21]line Безнал.: 0.00 [00:41:21]line Место: АЗС № 173 "Партнер Нефть" [00:41:21]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:41:21]line СНО: Общий режим [00:41:21]line Чек 5 28.10.2024 00:41 [00:41:21]line Смена: 543 ФФД: 1.0 [00:41:21]line ЗНМ: 0300000115 [00:41:21]line РНМ: 0000000000091782 [00:41:21]line Версия ККМ: 001 [00:41:21]line [00:41:21]line Дисконтная программа [00:41:21]line АИ-92 [00:41:21]line номер 173 [00:41:21]line сэкономлено 30.35 сом [00:41:21]line ФМ: 0000000000871767 [00:41:21]line ФД: 117521 [00:41:21]line ФПД: 110748467759535 [00:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T004123&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117521&fm=110748467759535&tin=02508201610067®Number=0000000000091782&sum=200000 [00:41:21]OFD Sender: Processing packet 117521 [packets to send 76, broken 75] [00:41:21]ProducePacketName [00:41:21]name=ofd_packets/00117521 [00:41:21]OFD Sender: To server: pG, [00:41:21]CommunicateWithHost lk.salyk.kg:30040 [00:41:21]ConnectInit lk.salyk.kg [00:41:21]written 0, free lines is 4095 [00:41:21]Connected sock=10 [00:41: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 36 37 0F 01 00 00 D5 53 07 01 A4 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 B3 DD 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 11 CB 01 00 35 04 06 00 64 B9 A3 14 89 AF 79 7A D3 03 70 97 D5 C8 [00: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 36 37 4F 00 00 00 67 05 47 00 09 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 36 37 10 04 04 00 11 CB 01 00 F4 03 04 00 6F 89 1E 67 B6 04 01 00 00 FC 38 27 D4 C9 35 7F DE [00:41:22]CommunicateWithHost err = 0 [00:41:22]CheckOFDResponse [00:41:22]1017 (14) - 77093643461234 [00:41:22]1041 (16) - 0000000000871767 [00:41:22]1040 (4) - 117521 [00:41:22]1012 (4) - 27.10.2024 18:41 [00:41:22]1206 (1) - 0 [00:41:22]OFD Sender: Remove packet 117521 [00:41:22]ProducePacketName [00:41:22]name=ofd_packets/00117521 [00:41:22]NVStorageDeleteData [00:41:22]Write to MH i2c: 01 00 00 69 35 9E [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 07 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 07 00 69 35 00 00 00 00 00 68 0C 19 [00:41:22]RasterBufferAndPrint [00:41:22]line [00:41:22]line [00:41:22]line [00:41:22]line [00:41:22]line [00:41:22]written 0, free lines is 3182 [00:41:22]MH_Cut [00:41:22]Write to MH i2c: D1 01 00 70 35 01 77 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: D1 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: D1 01 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: D1 01 00 70 35 00 76 [00:41:22]Write to MH i2c: 01 00 00 71 35 A6 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]OFD Sender: No OFD packet to send [00:41:23]*** Cut start [00:41:23]*** Purtial cut [00:41:23]*** Stage 1: CUTSNS_PIN = 1 [00:41:23]Read from MH i2c: 01 [00:41:23]MH_I2C_Read... [00:41:23]*** Stop cut motor [00:41:23]*** Cut end [00:41:23]Read from MH i2c: 01 07 00 [00:41:23]MH_I2C_Read... [00:41:23]Read from MH i2c: 01 07 00 71 35 00 00 00 00 00 FF 0F BB [00:41:23]process_action close_receipt done [00:41:23]requested_data is exist [00:41:23]produce_requested_data [00:41:23]requested_item fm.sn is exist - process it [00:41:23]wFMCommunicate request_size=4 [00:41:23]MH_SAM_APDU [00:41:23]CAPDU: 80 11 00 00 [00:41:23]Write to MH i2c: E2 08 00 72 35 80 11 00 00 00 00 00 00 21 [00:41:23]Write i2c OK [00:41:23]MH_I2C_Read... [00:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:23]Read from MH i2c: E2 [00:41:23]MH_I2C_Read... [00:41:23]Read from MH i2c: E2 17 00 [00:41:23]MH_I2C_Read... [00:41:23]Read from MH i2c: E2 17 00 72 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 78 [00:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:41:23]wFMCommunicate OK [00:41:23]requested_item fd.num is exist - process it [00:41:23]SAM_PROTO_GetFieldsCounters [00:41:23]wFMCommunicate request_size=4 [00:41:23]MH_SAM_APDU [00:41:23]CAPDU: 80 13 00 00 [00:41:23]Write to MH i2c: E2 08 00 73 35 80 13 00 00 00 00 00 00 24 [00:41:23]Write i2c OK [00:41:23]MH_I2C_Read... [00:41:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:23]Read from MH i2c: E2 [00:41:23]MH_I2C_Read... [00:41:23]Read from MH i2c: E2 62 00 [00:41:23]MH_I2C_Read... [00:41:23]Read from MH i2c: E2 62 00 73 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 11 CB 01 00 0E 04 04 00 1F 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 58 [00: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 11 CB 01 00 0E 04 04 00 1F 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:41:23]wFMCommunicate OK [00:41:23]SAM_PROTO_GetFieldsCounters done [00:41:23]requested_item shift.num is exist - process it [00:41:23]requested_item shift.opened is exist - process it [00:41:23]req_shift_opened [00:41:23]FM_GetShiftState [00:41:23]SAM_PROTO_GetShiftState [00:41:23]wFMCommunicate request_size=4 [00:41:23]MH_SAM_APDU [00:41:23]CAPDU: 80 13 01 00 [00:41:23]Write to MH i2c: E2 08 00 74 35 80 13 01 00 00 00 00 00 26 [00:41:23]Write i2c OK [00:41:23]MH_I2C_Read... [00:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:23]Read from MH i2c: E2 [00:41:23]MH_I2C_Read... [00:41:23]Read from MH i2c: E2 0E 00 [00:41:23]MH_I2C_Read... [00:41:23]Read from MH i2c: E2 0E 00 74 35 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 58 [00:41:23]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:41:23]wFMCommunicate OK [00:41:23]SAM_PROTO_GetShiftState done [00:41:23]FM_GetShiftState done [00:41:23]req_shift_opened done [00:41:23]requested_item shift.open_date is exist - process it [00:41:23]req_shift_open_date [00:41:23]req_shift_open_date done [00:41:23]produce_requested_data done [00:41:23]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117521,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [00:41:23]process_action_free close_receipt [00:41:23]json_value_free [00:41:23]json_value_free done [00:41:23]process_json_proto returns [00:41:23]Send response to host [00:41:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117521,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [00:41:23]free response buf [00:41:23]execute_script done [00:41:23]execute_script returns [00:41:23]free content buf [00:41:23]Sock 7.Close socket [00:41:23]Sock 7.Thread stoped [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [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:29]accept exits with 9 [00:46:29]New connection [00:46:29]New thread 3067456868 created [00:46:29]Thread 3067600228 joined [00:46:29]Waiting for new connection... [00:46:29] Sock 9.Parse request [00:46:29]Sock 9.Check first char [00:46:29]Sock 9.First char is OK [00:46:29]request: POST /json_proto HTTP/1.0 [00:46:29]Method: POST [00:46:29]URL: /json_proto [00:46:29]Method is POST - this is cgi request [00:46:29]url: /json_proto [00:46:29]query_string will be loaded in cgi processing [00:46:29]execute_cgi json_proto POST (null) [00:46:29]execute_cgi path=json_proto method=POST [00:46:29]POST find Content-Length [00:46:29]Host: 172.17.96.67:8080 [00:46:29]Content-Length: 679 [00:46:29]Content-Type: application/json [00:46:29] [00:46:29]POST finish read [00:46:29]Found Content-Length = 679 [00:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [00:46:29]execute_script... [00:46: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)245296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [00:46:29]POST & json_proto [00:46:29]process_json_proto [00:46:29]json parsed OK: [00:46:29]protocol is kg_v1.0 [00:46:29]action value=close_receipt [00:46:29]process_action close_receipt [00:46:29]cmd_close_receipt [00:46:29]MH_GetDate [00:46:29]Write to MH i2c: F0 00 00 75 35 99 [00:46:29]Write i2c OK [00:46:29]MH_I2C_Read... [00:46:29]Read from MH i2c: F0 [00:46:29]MH_I2C_Read... [00:46:29]Read from MH i2c: F0 09 00 [00:46:29]MH_I2C_Read... [00:46:29]Read from MH i2c: F0 09 00 75 35 00 E9 DE 1E 67 2B 09 1E 67 A7 [00:46:29]GetLastDocTimeStamp 1730076083 [00:46:29]current date 1730076393 [00:46:29]FM_GetShiftState [00:46:29]SAM_PROTO_GetShiftState [00:46:29]wFMCommunicate request_size=4 [00:46:29]MH_SAM_APDU [00:46:29]CAPDU: 80 13 01 00 [00:46:29]Write to MH i2c: E2 08 00 76 35 80 13 01 00 00 00 00 00 28 [00:46:29]Write i2c OK [00:46:29]MH_I2C_Read... [00:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:29]Read from MH i2c: E2 [00:46:29]MH_I2C_Read... [00:46:29]Read from MH i2c: E2 0E 00 [00:46:29]MH_I2C_Read... [00:46:29]Read from MH i2c: E2 0E 00 76 35 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 5A [00:46:29]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:46:29]wFMCommunicate OK [00:46:29]SAM_PROTO_GetShiftState done [00:46:29]FM_GetShiftState done [00:46:29]opened in 1730073805 [00:46:29]opened+sec_in_day 1730160205 [00:46:29]quantity*price = 200025 [00:46:29]sum+1 = 200026 [00:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 6 28.10.2024 00:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117522 ФПД: 135643070393422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T004633&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117522&fm=135643070393422&tin=02508201610067®Number=0000000000091782&sum=200000 [00:46:30]StoreToDocumentArchive [00:46:30]shift 543 fd 117522 [00:46:30]save to /storage/0543/doc_00117522 [00:46:30]save last doc name /storage/0543/doc_00117522 to /storage/kkm_last_doc_name [00:46:30]save OK [00:46:30]Clear old archive folders... [00:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:46:30]tlvbuf is 018044B0 [00:46:30]SAM_PROTO_ClearQueue [00:46:30]wFMCommunicate request_size=4 [00:46:30]MH_SAM_APDU [00:46:30]CAPDU: 80 09 00 00 [00:46:30]Write to MH i2c: E2 08 00 83 35 80 09 00 00 00 00 00 00 2A [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 83 35 00 90 00 2C [00:46:30]RAPDU: 90 00 [00:46:30]wFMCommunicate OK [00:46:30]SAM_PROTO_ClearQueue done [00:46:30]KKMCreateOFDPacket [00:46:30]OFDProtocolAddRootSTLVToBuf [00:46:30]FM_MakeSignedData [00:46:30]FM_MakeSignedData [00:46:30]SAM_PROTO_SignData [00:46:30]wFMCommunicate request_size=4 [00:46:30]MH_SAM_APDU [00:46:30]CAPDU: 80 0D 01 02 [00:46:30]Write to MH i2c: E2 08 00 84 35 80 0D 01 02 00 00 00 00 32 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 84 35 00 90 00 2D [00:46:30]RAPDU: 90 00 [00:46:30]wFMCommunicate OK [00:46:30]wFMCommunicate request_size=255 [00:46:30]MH_SAM_APDU [00:46:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 E9 DE 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 12 CB 01 00 35 04 06 00 7B 5D DD 06 [00:46:30]Write to MH i2c: E2 02 01 85 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 E9 DE 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 12 CB 01 00 35 04 06 00 7B 5D DD 06 00 00 B4 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 85 35 00 90 00 2E [00:46:30]RAPDU: 90 00 [00:46:30]wFMCommunicate OK [00:46:30]wFMCommunicate request_size=7 [00:46:30]MH_SAM_APDU [00:46:30]CAPDU: 80 0D 02 02 02 EC 4E [00:46:30]Write to MH i2c: E2 0A 00 86 35 80 0D 02 02 02 00 EC 4E 00 00 73 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [00:46:30]RAPDU: 90 00 [00:46:30]wFMCommunicate OK [00:46:30]wFMCommunicate request_size=4 [00:46:30]MH_SAM_APDU [00:46:30]CAPDU: 80 0D 03 02 [00:46:30]Write to MH i2c: E2 08 00 87 35 80 0D 03 02 00 00 00 00 37 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 0B 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 0B 00 87 35 00 7C B2 20 93 E0 A6 36 D3 90 00 A8 [00:46:30]RAPDU: 7C B2 20 93 E0 A6 36 D3 90 00 [00:46:30]wFMCommunicate OK [00:46:30]SAM_PROTO_SignData done [00:46:30]FM_MakeSignedData done [00:46:30]CreateOFDProtocolMessage [00:46:30]wFMCommunicate request_size=4 [00:46:30]MH_SAM_APDU [00:46:30]CAPDU: 80 11 00 00 [00:46:30]Write to MH i2c: E2 08 00 88 35 80 11 00 00 00 00 00 00 37 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 17 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 17 00 88 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8E [00:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:46:30]wFMCommunicate OK [00:46:30]CreateOFDProtocolMessage done [00:46:30]OFDSenderStorePacket 117522 [00:46:30]StoreOFDPacket docnum=117522 [00:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 A6 5D 04 01 0E 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 06 00 00 00 F4 03 04 00 E9 DE 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 12 CB 01 00 35 04 06 00 7B 5D DD 06 EC 4E 7C B2 20 93 E0 A6 36 D3 [00:46:30]CheckFolder [00:46:30]dirname=/storage/ofd_packets [00:46:30]CheckFolder done [00:46:30]ProducePacketName [00:46:30]name=ofd_packets/00117522 [00:46:30]NVStorageSaveData ofd_packets/00117522 [00:46:30]File name is /storage/ofd_packets/00117522 [00:46:30]Write 298 bytes [00:46:30]NVStorageSaveData done [00:46:30]OFDSenderStorePacket done [00:46:30]KKMCreateOFDPacket done [00:46:30]NVStorageSaveData kkm_last_timestamp [00:46:30]File name is /storage/kkm_last_timestamp [00:46:30]Write 4 bytes [00:46:30]NVStorageSaveData done [00:46:30]ExternCall_PrintAddStr [00:46:30]wPrintStart [00:46:30]Write to MH i2c: 01 00 00 89 35 BE [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: 01 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: 01 07 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: 01 07 00 89 35 00 00 00 00 00 FF 0F D3 [00:46:30]RasterBufferAndPrint [00:46:30]line Счет N : (1)245296 [00:46:30]line ИНН: 02508201610067 [00:46:30]line Контрольно-Кассовый Чек [00:46:30]line ПРОДАЖА [00:46:30]line ТРК (МРК, ГНК) : 23 [00:46:30]line Товар: 2710194210 [00:46:30]line ДТ-К-2 [00:46:30]line 26.250 * 76.20 [00:46:30]line = 2000.25 [00:46:30]line НДС 12% НСП 1% [00:46:30]line > о реализуемом товаре [00:46:30]line ОКРУГЛЕНИЕ: -0.25 [00:46:30]line ИТОГО: 2000.00 [00:46:30]line Внесено: 2000.00 [00:46:30]line СДАЧА: 0.00 [00:46:30]line НСП 1% : 17.70 [00:46:30]line НДС 12% : 212.42 [00:46:30]line Наличными: 2000.00 [00:46:30]line Безнал.: 0.00 [00:46:30]line Место: АЗС № 173 "Партнер Нефть" [00:46:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:46:30]line СНО: Общий режим [00:46:30]line Чек 6 28.10.2024 00:46 [00:46:30]line Смена: 543 ФФД: 1.0 [00:46:30]line ЗНМ: 0300000115 [00:46:30]line РНМ: 0000000000091782 [00:46:30]line Версия ККМ: 001 [00:46:30]line ФМ: 0000000000871767 [00:46:30]line ФД: 117522 [00:46:30]line ФПД: 135643070393422 [00:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T004633&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117522&fm=135643070393422&tin=02508201610067®Number=0000000000091782&sum=200000 [00:46:30]written 0, free lines is 4095 [00:46:30]OFD Sender: Processing packet 117522 [packets to send 76, broken 75] [00:46:30]ProducePacketName [00:46:30]name=ofd_packets/00117522 [00:46:30]OFD Sender: To server: pG, [00:46:30]CommunicateWithHost lk.salyk.kg:30040 [00:46:30]ConnectInit lk.salyk.kg [00:46:31]Connected sock=10 [00:46: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 36 37 0C 01 00 00 A6 5D 04 01 0E 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 06 00 00 00 F4 03 04 00 E9 DE 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 12 CB 01 00 35 04 06 00 7B 5D DD 06 EC 4E 7C B2 20 93 E0 A6 36 D3 [00:46: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 36 37 4F 00 00 00 22 B0 47 00 C4 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 36 37 10 04 04 00 12 CB 01 00 F4 03 04 00 A5 8A 1E 67 B6 04 01 00 00 12 B7 93 57 A1 DA D7 06 [00:46:31]CommunicateWithHost err = 0 [00:46:31]CheckOFDResponse [00:46:31]1017 (14) - 77093643461234 [00:46:31]1041 (16) - 0000000000871767 [00:46:31]1040 (4) - 117522 [00:46:31]1012 (4) - 27.10.2024 18:47 [00:46:31]1206 (1) - 0 [00:46:31]OFD Sender: Remove packet 117522 [00:46:31]ProducePacketName [00:46:31]name=ofd_packets/00117522 [00:46:31]NVStorageDeleteData [00:46:31]Write to MH i2c: 01 00 00 B3 35 E8 [00:46:31]Write i2c OK [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: 01 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: 01 07 00 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: 01 07 00 B3 35 00 00 00 00 00 CE 0C C9 [00:46:31]RasterBufferAndPrint [00:46:31]line [00:46:31]line [00:46:31]line [00:46:31]line [00:46:31]line [00:46:31]written 0, free lines is 3287 [00:46:31]MH_Cut [00:46:31]Write to MH i2c: D1 01 00 BA 35 01 C1 [00:46:31]Write i2c OK [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: D1 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: D1 01 00 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: D1 01 00 BA 35 00 C0 [00:46:31]Write to MH i2c: 01 00 00 BB 35 F0 [00:46:31]Write i2c OK [00:46:31]MH_I2C_Read... [00:46:31]OFD Sender: No OFD packet to send [00:46:32]*** Cut start [00:46:32]*** Purtial cut [00:46:32]*** Stage 1: CUTSNS_PIN = 1 [00:46:32]Read from MH i2c: 01 [00:46:32]MH_I2C_Read... [00:46:32]*** Stop cut motor [00:46:32]*** Cut end [00:46:32]Read from MH i2c: 01 07 00 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: 01 07 00 BB 35 00 00 00 00 00 FF 0F 05 [00:46:32]process_action close_receipt done [00:46:32]requested_data is exist [00:46:32]produce_requested_data [00:46:32]requested_item fm.sn is exist - process it [00:46:32]wFMCommunicate request_size=4 [00:46:32]MH_SAM_APDU [00:46:32]CAPDU: 80 11 00 00 [00:46:32]Write to MH i2c: E2 08 00 BC 35 80 11 00 00 00 00 00 00 6B [00:46:32]Write i2c OK [00:46:32]MH_I2C_Read... [00:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:32]Read from MH i2c: E2 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 17 00 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 17 00 BC 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C2 [00:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:46:32]wFMCommunicate OK [00:46:32]requested_item fd.num is exist - process it [00:46:32]SAM_PROTO_GetFieldsCounters [00:46:32]wFMCommunicate request_size=4 [00:46:32]MH_SAM_APDU [00:46:32]CAPDU: 80 13 00 00 [00:46:32]Write to MH i2c: E2 08 00 BD 35 80 13 00 00 00 00 00 00 6E [00:46:32]Write i2c OK [00:46:32]MH_I2C_Read... [00:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:32]Read from MH i2c: E2 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 62 00 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 62 00 BD 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 12 CB 01 00 0E 04 04 00 1F 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [00:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 12 CB 01 00 0E 04 04 00 1F 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:46:32]wFMCommunicate OK [00:46:32]SAM_PROTO_GetFieldsCounters done [00:46:32]requested_item shift.num is exist - process it [00:46:32]requested_item shift.opened is exist - process it [00:46:32]req_shift_opened [00:46:32]FM_GetShiftState [00:46:32]SAM_PROTO_GetShiftState [00:46:32]wFMCommunicate request_size=4 [00:46:32]MH_SAM_APDU [00:46:32]CAPDU: 80 13 01 00 [00:46:32]Write to MH i2c: E2 08 00 BE 35 80 13 01 00 00 00 00 00 70 [00:46:32]Write i2c OK [00:46:32]MH_I2C_Read... [00:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:32]Read from MH i2c: E2 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 0E 00 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 0E 00 BE 35 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 A2 [00:46:32]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [00:46:32]wFMCommunicate OK [00:46:32]SAM_PROTO_GetShiftState done [00:46:32]FM_GetShiftState done [00:46:32]req_shift_opened done [00:46:32]requested_item shift.open_date is exist - process it [00:46:32]req_shift_open_date [00:46:32]req_shift_open_date done [00:46:32]produce_requested_data done [00:46:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117522,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [00:46:32]process_action_free close_receipt [00:46:32]json_value_free [00:46:32]json_value_free done [00:46:32]process_json_proto returns [00:46:32]Send response to host [00:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117522,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [00:46:32]free response buf [00:46:32]execute_script done [00:46:32]execute_script returns [00:46:32]free content buf [00:46:32]Sock 9.Close socket [00:46:32]Sock 9.Thread stoped [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:38]ConnectInit Can't connect to host [01:00:42]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]accept exits with 7 [01:02:42]New connection [01:02:42]New thread 3067600228 created [01:02:42]Thread 3067456868 joined [01:02:42]Waiting for new connection... [01:02:42] Sock 7.Parse request [01:02:42]Sock 7.Check first char [01:02:42]Sock 7.First char is OK [01:02:42]request: POST /json_proto HTTP/1.0 [01:02:42]Method: POST [01:02:42]URL: /json_proto [01:02:42]Method is POST - this is cgi request [01:02:42]url: /json_proto [01:02:42]query_string will be loaded in cgi processing [01:02:42]execute_cgi json_proto POST (null) [01:02:42]execute_cgi path=json_proto method=POST [01:02:42]POST find Content-Length [01:02:42]Host: 172.17.96.67:8080 [01:02:42]Content-Length: 677 [01:02:42]Content-Type: application/json [01:02:42] [01:02:42]POST finish read [01:02:42]Found Content-Length = 677 [01:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [01:02:42]execute_script... [01:02:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [01:02:42]POST & json_proto [01:02:42]process_json_proto [01:02:42]json parsed OK: [01:02:42]protocol is kg_v1.0 [01:02:42]action value=close_receipt [01:02:42]process_action close_receipt [01:02:42]cmd_close_receipt [01:02:42]MH_GetDate [01:02:42]Write to MH i2c: F0 00 00 BF 35 E3 [01:02:42]Write i2c OK [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: F0 [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: F0 09 00 [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: F0 09 00 BF 35 00 B6 E2 1E 67 2B 09 1E 67 C2 [01:02:42]GetLastDocTimeStamp 1730076393 [01:02:42]current date 1730077366 [01:02:42]FM_GetShiftState [01:02:42]SAM_PROTO_GetShiftState [01:02:42]wFMCommunicate request_size=4 [01:02:42]MH_SAM_APDU [01:02:42]CAPDU: 80 13 01 00 [01:02:42]Write to MH i2c: E2 08 00 C0 35 80 13 01 00 00 00 00 00 72 [01:02:42]Write i2c OK [01:02:42]MH_I2C_Read... [01:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:42]Read from MH i2c: E2 [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: E2 0E 00 [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: E2 0E 00 C0 35 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 A4 [01:02:42]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:02:42]wFMCommunicate OK [01:02:42]SAM_PROTO_GetShiftState done [01:02:42]FM_GetShiftState done [01:02:42]opened in 1730073805 [01:02:42]opened+sec_in_day 1730160205 [01:02:42]quantity*price = 25020 [01:02:42]sum+1 = 25022 [01:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре [01:02:44]line ОКРУГЛЕНИЕ: -0.21 [01:02:44]line ИТОГО: 250.00 [01:02:44]line Внесено: 250.00 [01:02:44]line СДАЧА: 0.00 [01:02:44]line НСП 1% : 2.21 [01:02:44]line НДС 12% : 26.57 [01:02:44]line Наличными: 250.00 [01:02:44]line Безнал.: 0.00 [01:02:44]line Место: АЗС № 173 "Партнер Нефть" [01:02:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [01:02:44]line СНО: Общий режим [01:02:44]line Чек 7 28.10.2024 01:02 [01:02:44]line Смена: 543 ФФД: 1.0 [01:02:44]line ЗНМ: 0300000115 [01:02:44]line РНМ: 0000000000091782 [01:02:44]line Версия ККМ: 001 [01:02:44]line ФМ: 0000000000871767 [01:02:44]line ФД: 117523 [01:02:44]line ФПД: 233567449501065 [01:02:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T010246&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117523&fm=233567449501065&tin=02508201610067®Number=0000000000091782&sum=25000 [01:02:44]written 0, free lines is 4095 [01:02:44]OFD Sender: Processing packet 117523 [packets to send 76, broken 75] [01:02:44]ProducePacketName [01:02:44]name=ofd_packets/00117523 [01:02:44]OFD Sender: To server: pG, [01:02:44]CommunicateWithHost lk.salyk.kg:30040 [01:02:44]ConnectInit lk.salyk.kg [01:02:44]Connected sock=11 [01:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7B 5B 07 01 96 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 07 00 00 00 F4 03 04 00 B6 E2 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 13 CB 01 00 35 04 06 00 D4 6D A8 DB CD 89 48 B3 2B 46 45 8B 71 4B [01: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 36 37 4F 00 00 00 A7 66 47 00 3B 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 36 37 10 04 04 00 13 CB 01 00 F4 03 04 00 72 8E 1E 67 B6 04 01 00 00 A4 E3 E2 59 2E B8 B8 AC [01:02:45]CommunicateWithHost err = 0 [01:02:45]CheckOFDResponse [01:02:45]1017 (14) - 77093643461234 [01:02:45]1041 (16) - 0000000000871767 [01:02:45]1040 (4) - 117523 [01:02:45]1012 (4) - 27.10.2024 19:03 [01:02:45]1206 (1) - 0 [01:02:45]OFD Sender: Remove packet 117523 [01:02:45]ProducePacketName [01:02:45]name=ofd_packets/00117523 [01:02:45]NVStorageDeleteData [01:02:45]Write to MH i2c: 01 00 00 FD 35 32 [01:02:45]Write i2c OK [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: 01 [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: 01 07 00 [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: 01 07 00 FD 35 00 00 00 00 00 BD 0C 02 [01:02:45]RasterBufferAndPrint [01:02:45]line [01:02:45]line [01:02:45]line [01:02:45]line [01:02:45]line [01:02:45]written 0, free lines is 3270 [01:02:45]MH_Cut [01:02:45]Write to MH i2c: D1 01 00 04 36 01 0C [01:02:45]Write i2c OK [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: D1 [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: D1 01 00 [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: D1 01 00 04 36 00 0B [01:02:45]Write to MH i2c: 01 00 00 05 36 3B [01:02:45]Write i2c OK [01:02:45]MH_I2C_Read... [01:02:45]OFD Sender: No OFD packet to send [01:02:45]*** Cut start [01:02:45]*** Purtial cut [01:02:45]*** Stage 1: CUTSNS_PIN = 1 [01:02:46]Read from MH i2c: 01 [01:02:46]MH_I2C_Read... [01:02:46]*** Stop cut motor [01:02:46]*** Cut end [01:02:46]Read from MH i2c: 01 07 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: 01 07 00 05 36 00 00 00 00 00 FF 0F 50 [01:02:46]process_action close_receipt done [01:02:46]requested_data is exist [01:02:46]produce_requested_data [01:02:46]requested_item fm.sn is exist - process it [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 11 00 00 [01:02:46]Write to MH i2c: E2 08 00 06 36 80 11 00 00 00 00 00 00 B6 [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 17 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 17 00 06 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0D [01:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:02:46]wFMCommunicate OK [01:02:46]requested_item fd.num is exist - process it [01:02:46]SAM_PROTO_GetFieldsCounters [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 13 00 00 [01:02:46]Write to MH i2c: E2 08 00 07 36 80 13 00 00 00 00 00 00 B9 [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 62 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 62 00 07 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 13 CB 01 00 0E 04 04 00 1F 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 F5 [01:02: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 13 CB 01 00 0E 04 04 00 1F 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:02:46]wFMCommunicate OK [01:02:46]SAM_PROTO_GetFieldsCounters done [01:02:46]requested_item shift.num is exist - process it [01:02:46]requested_item shift.opened is exist - process it [01:02:46]req_shift_opened [01:02:46]FM_GetShiftState [01:02:46]SAM_PROTO_GetShiftState [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 13 01 00 [01:02:46]Write to MH i2c: E2 08 00 08 36 80 13 01 00 00 00 00 00 BB [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 0E 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 0E 00 08 36 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 ED [01:02:46]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:02:46]wFMCommunicate OK [01:02:46]SAM_PROTO_GetShiftState done [01:02:46]FM_GetShiftState done [01:02:46]req_shift_opened done [01:02:46]requested_item shift.open_date is exist - process it [01:02:46]req_shift_open_date [01:02:46]req_shift_open_date done [01:02:46]produce_requested_data done [01:02:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117523,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [01:02:46]process_action_free close_receipt [01:02:46]json_value_free [01:02:46]json_value_free done [01:02:46]process_json_proto returns [01:02:46]Send response to host [01:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117523,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [01:02:46]free response buf [01:02:46]execute_script done [01:02:46]execute_script returns [01:02:46]free content buf [01:02:46]Sock 7.Close socket [01:02:46]Sock 7.Thread stoped [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:01]ConnectInit Can't connect to host [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:54]accept exits with 10 [01:03:54]New connection [01:03:54]New thread 3067456868 created [01:03:54]Thread 3067600228 joined [01:03:54]Waiting for new connection... [01:03:54] Sock 10.Parse request [01:03:54]Sock 10.Check first char [01:03:54]Sock 10.First char is OK [01:03:54]request: POST /json_proto HTTP/1.0 [01:03:54]Method: POST [01:03:54]URL: /json_proto [01:03:54]Method is POST - this is cgi request [01:03:54]url: /json_proto [01:03:54]query_string will be loaded in cgi processing [01:03:54]execute_cgi json_proto POST (null) [01:03:54]execute_cgi path=json_proto method=POST [01:03:54]POST find Content-Length [01:03:54]Host: 172.17.96.67:8080 [01:03:54]Content-Length: 677 [01:03:54]Content-Type: application/json [01:03:54] [01:03:54]POST finish read [01:03:54]Found Content-Length = 677 [01:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:03:54]execute_script... [01: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)245298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:03:54]POST & json_proto [01:03:54]process_json_proto [01:03:54]json parsed OK: [01:03:54]protocol is kg_v1.0 [01:03:54]action value=close_receipt [01:03:54]process_action close_receipt [01:03:54]cmd_close_receipt [01:03:54]MH_GetDate [01:03:54]Write to MH i2c: F0 00 00 09 36 2E [01:03:54]Write i2c OK [01:03:54]MH_I2C_Read... [01:03:54]Read from MH i2c: F0 [01:03:54]MH_I2C_Read... [01:03:54]Read from MH i2c: F0 09 00 [01:03:54]MH_I2C_Read... [01:03:54]Read from MH i2c: F0 09 00 09 36 00 FE E2 1E 67 2B 09 1E 67 55 [01:03:54]GetLastDocTimeStamp 1730077366 [01:03:54]current date 1730077438 [01:03:54]FM_GetShiftState [01:03:54]SAM_PROTO_GetShiftState [01:03:54]wFMCommunicate request_size=4 [01:03:54]MH_SAM_APDU [01:03:54]CAPDU: 80 13 01 00 [01:03:54]Write to MH i2c: E2 08 00 0A 36 80 13 01 00 00 00 00 00 BD [01:03:54]Write i2c OK [01:03:54]MH_I2C_Read... [01:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:54]Read from MH i2c: E2 [01:03:54]MH_I2C_Read... [01:03:54]Read from MH i2c: E2 0E 00 [01:03:54]MH_I2C_Read... [01:03:54]Read from MH i2c: E2 0E 00 0A 36 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 EF [01:03:54]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:03:54]wFMCommunicate OK [01:03:54]SAM_PROTO_GetShiftState done [01:03:54]FM_GetShiftState done [01:03:54]opened in 1730073805 [01:03:54]opened+sec_in_day 1730160205 [01:03:54]quantity*price = 50041 [01:03:54]sum+1 = 50042 [01:03:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 8 28.10.2024 01:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117524 ФПД: 45304606549585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T010358&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117524&fm=45304606549585&tin=02508201610067®Number=0000000000091782&sum=50000 [01:03:55]StoreToDocumentArchive [01:03:55]shift 543 fd 117524 [01:03:55]save to /storage/0543/doc_00117524 [01:03:55]save last doc name /storage/0543/doc_00117524 to /storage/kkm_last_doc_name [01:03:55]save OK [01:03:55]Clear old archive folders... [01:03:55]OFD Sender: No OFD packet to send [01:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:03:55]tlvbuf is B6E466A0 [01:03:55]SAM_PROTO_ClearQueue [01:03:55]wFMCommunicate request_size=4 [01:03:55]MH_SAM_APDU [01:03:55]CAPDU: 80 09 00 00 [01:03:55]Write to MH i2c: E2 08 00 17 36 80 09 00 00 00 00 00 00 BF [01:03:55]Write i2c OK [01:03:55]MH_I2C_Read... [01:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:55]Read from MH i2c: E2 [01:03:55]MH_I2C_Read... [01:03:55]Read from MH i2c: E2 03 00 [01:03:55]MH_I2C_Read... [01:03:55]Read from MH i2c: E2 03 00 17 36 00 90 00 C1 [01:03:55]RAPDU: 90 00 [01:03:55]wFMCommunicate OK [01:03:55]SAM_PROTO_ClearQueue done [01:03:55]KKMCreateOFDPacket [01:03:55]OFDProtocolAddRootSTLVToBuf [01:03:55]FM_MakeSignedData [01:03:55]FM_MakeSignedData [01:03:55]SAM_PROTO_SignData [01:03:55]wFMCommunicate request_size=4 [01:03:55]MH_SAM_APDU [01:03:55]CAPDU: 80 0D 01 02 [01:03:55]Write to MH i2c: E2 08 00 18 36 80 0D 01 02 00 00 00 00 C7 [01:03:55]Write i2c OK [01:03:55]MH_I2C_Read... [01:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:55]Read from MH i2c: E2 [01:03:55]MH_I2C_Read... [01:03:55]Read from MH i2c: E2 03 00 [01:03:55]MH_I2C_Read... [01:03:55]Read from MH i2c: E2 03 00 18 36 00 90 00 C2 [01:03:55]RAPDU: 90 00 [01:03:55]wFMCommunicate OK [01:03:55]wFMCommunicate request_size=255 [01:03:55]MH_SAM_APDU [01: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE E2 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 14 CB 01 00 35 04 06 00 29 [01:03:55]Write to MH i2c: E2 02 01 19 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE E2 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 14 CB 01 00 35 04 06 00 29 00 00 F0 [01:03:55]Write i2c OK [01:03:55]MH_I2C_Read... [01:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:56]Read from MH i2c: E2 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: E2 03 00 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: E2 03 00 19 36 00 90 00 C3 [01:03:56]RAPDU: 90 00 [01:03:56]wFMCommunicate OK [01:03:56]wFMCommunicate request_size=10 [01:03:56]MH_SAM_APDU [01:03:56]CAPDU: 80 0D 02 02 05 34 4C FA E6 51 [01:03:56]Write to MH i2c: E2 0D 00 1A 36 80 0D 02 02 05 00 34 4C FA E6 51 00 00 85 [01:03:56]Write i2c OK [01:03:56]MH_I2C_Read... [01:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:56]Read from MH i2c: E2 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: E2 03 00 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: E2 03 00 1A 36 00 90 00 C4 [01:03:56]RAPDU: 90 00 [01:03:56]wFMCommunicate OK [01:03:56]wFMCommunicate request_size=4 [01:03:56]MH_SAM_APDU [01:03:56]CAPDU: 80 0D 03 02 [01:03:56]Write to MH i2c: E2 08 00 1B 36 80 0D 03 02 00 00 00 00 CC [01:03:56]Write i2c OK [01:03:56]MH_I2C_Read... [01:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:56]Read from MH i2c: E2 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: E2 0B 00 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: E2 0B 00 1B 36 00 A3 7B 1B 40 68 51 94 B4 90 00 47 [01:03:56]RAPDU: A3 7B 1B 40 68 51 94 B4 90 00 [01:03:56]wFMCommunicate OK [01:03:56]SAM_PROTO_SignData done [01:03:56]FM_MakeSignedData done [01:03:56]CreateOFDProtocolMessage [01:03:56]wFMCommunicate request_size=4 [01:03:56]MH_SAM_APDU [01:03:56]CAPDU: 80 11 00 00 [01:03:56]Write to MH i2c: E2 08 00 1C 36 80 11 00 00 00 00 00 00 CC [01:03:56]Write i2c OK [01:03:56]MH_I2C_Read... [01:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:56]Read from MH i2c: E2 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: E2 17 00 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: E2 17 00 1C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 23 [01:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:03:56]wFMCommunicate OK [01:03:56]CreateOFDProtocolMessage done [01:03:56]OFDSenderStorePacket 117524 [01:03:56]StoreOFDPacket docnum=117524 [01:03:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 06 8F 07 01 87 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE E2 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 14 CB 01 00 35 04 06 00 29 34 4C FA E6 51 A3 7B 1B 40 68 51 94 B4 [01:03:56]CheckFolder [01:03:56]dirname=/storage/ofd_packets [01:03:56]CheckFolder done [01:03:56]ProducePacketName [01:03:56]name=ofd_packets/00117524 [01:03:56]NVStorageSaveData ofd_packets/00117524 [01:03:56]File name is /storage/ofd_packets/00117524 [01:03:56]Write 301 bytes [01:03:56]NVStorageSaveData done [01:03:56]OFDSenderStorePacket done [01:03:56]KKMCreateOFDPacket done [01:03:56]NVStorageSaveData kkm_last_timestamp [01:03:56]File name is /storage/kkm_last_timestamp [01:03:56]Write 4 bytes [01:03:56]NVStorageSaveData done [01:03:56]ExternCall_PrintAddStr [01:03:56]wPrintStart [01:03:56]Write to MH i2c: 01 00 00 1D 36 53 [01:03:56]Write i2c OK [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: 01 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: 01 07 00 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: 01 07 00 1D 36 00 00 00 00 00 FF 0F 68 [01:03:56]RasterBufferAndPrint [01:03:56]line Счет N : (1)245298 [01:03:56]line ИНН: 02508201610067 [01:03:56]line Контрольно-Кассовый Чек [01:03:56]line ПРОДАЖА [01:03:56]line ТРК (МРК, ГНК) : 21 [01:03:56]line Товар: 2710124130 [01:03:56]line Аи-92-К-2 [01:03:56]line 7.480 * 66.90 [01:03:56]line = 500.41 [01:03:56]line НДС 12% НСП 1% [01:03:56]line > о реализуемом товаре [01:03:56]line ОКРУГЛЕНИЕ: -0.41 [01:03:56]line ИТОГО: 500.00 [01:03:56]line Внесено: 500.00 [01:03:56]line СДАЧА: 0.00 [01:03:56]line НСП 1% : 4.43 [01:03:56]line НДС 12% : 53.14 [01:03:56]line Наличными: 500.00 [01:03:56]line Безнал.: 0.00 [01:03:56]line Место: АЗС № 173 "Партнер Нефть" [01:03:56]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [01:03:56]line СНО: Общий режим [01:03:56]line Чек 8 28.10.2024 01:03 [01:03:56]line Смена: 543 ФФД: 1.0 [01:03:56]line ЗНМ: 0300000115 [01:03:56]line РНМ: 0000000000091782 [01:03:56]line Версия ККМ: 001 [01:03:56]line ФМ: 0000000000871767 [01:03:56]line ФД: 117524 [01:03:56]line ФПД: 45304606549585 [01:03:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T010358&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117524&fm=45304606549585&tin=02508201610067®Number=0000000000091782&sum=50000 [01:03:56]written 0, free lines is 4095 [01:03:56]OFD Sender: Processing packet 117524 [packets to send 76, broken 75] [01:03:56]ProducePacketName [01:03:56]name=ofd_packets/00117524 [01:03:56]OFD Sender: To server: pG, [01:03:56]CommunicateWithHost lk.salyk.kg:30040 [01:03:56]ConnectInit lk.salyk.kg [01:03:56]Connected sock=11 [01: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 36 37 0F 01 00 00 06 8F 07 01 87 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE E2 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 14 CB 01 00 35 04 06 00 29 34 4C FA E6 51 A3 7B 1B 40 68 51 94 B4 [01: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 36 37 4F 00 00 00 7D 8A 47 00 CB 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 36 37 10 04 04 00 14 CB 01 00 F4 03 04 00 BA 8E 1E 67 B6 04 01 00 00 99 D9 80 A7 86 17 BB 10 [01:03:56]CommunicateWithHost err = 0 [01:03:56]CheckOFDResponse [01:03:56]1017 (14) - 77093643461234 [01:03:56]1041 (16) - 0000000000871767 [01:03:56]1040 (4) - 117524 [01:03:56]1012 (4) - 27.10.2024 19:04 [01:03:56]1206 (1) - 0 [01:03:56]OFD Sender: Remove packet 117524 [01:03:56]ProducePacketName [01:03:56]name=ofd_packets/00117524 [01:03:56]NVStorageDeleteData [01:03:56]Write to MH i2c: 01 00 00 47 36 7D [01:03:56]Write i2c OK [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: 01 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: 01 07 00 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: 01 07 00 47 36 00 00 00 00 00 C5 0C 55 [01:03:56]RasterBufferAndPrint [01:03:56]line [01:03:56]line [01:03:56]line [01:03:56]line [01:03:56]line [01:03:56]written 0, free lines is 3278 [01:03:56]MH_Cut [01:03:56]Write to MH i2c: D1 01 00 4E 36 01 56 [01:03:56]Write i2c OK [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: D1 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: D1 01 00 [01:03:56]MH_I2C_Read... [01:03:56]Read from MH i2c: D1 01 00 4E 36 00 55 [01:03:56]Write to MH i2c: 01 00 00 4F 36 85 [01:03:56]Write i2c OK [01:03:56]MH_I2C_Read... [01:03:57]OFD Sender: No OFD packet to send [01:03:57]*** Cut start [01:03:57]*** Purtial cut [01:03:57]*** Stage 1: CUTSNS_PIN = 1 [01:03:57]Read from MH i2c: 01 [01:03:57]MH_I2C_Read... [01:03:57]*** Stop cut motor [01:03:57]*** Cut end [01:03:57]Read from MH i2c: 01 07 00 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: 01 07 00 4F 36 00 00 00 00 00 FF 0F 9A [01:03:57]process_action close_receipt done [01:03:57]requested_data is exist [01:03:57]produce_requested_data [01:03:57]requested_item fm.sn is exist - process it [01:03:57]wFMCommunicate request_size=4 [01:03:57]MH_SAM_APDU [01:03:57]CAPDU: 80 11 00 00 [01:03:57]Write to MH i2c: E2 08 00 50 36 80 11 00 00 00 00 00 00 00 [01:03:57]Write i2c OK [01:03:57]MH_I2C_Read... [01:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:57]Read from MH i2c: E2 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 17 00 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 17 00 50 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 57 [01:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:03:57]wFMCommunicate OK [01:03:57]requested_item fd.num is exist - process it [01:03:57]SAM_PROTO_GetFieldsCounters [01:03:57]wFMCommunicate request_size=4 [01:03:57]MH_SAM_APDU [01:03:57]CAPDU: 80 13 00 00 [01:03:57]Write to MH i2c: E2 08 00 51 36 80 13 00 00 00 00 00 00 03 [01:03:57]Write i2c OK [01:03:57]MH_I2C_Read... [01:03:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:58]Read from MH i2c: E2 [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: E2 62 00 [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: E2 62 00 51 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 14 CB 01 00 0E 04 04 00 1F 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 43 [01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 14 CB 01 00 0E 04 04 00 1F 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:03:58]wFMCommunicate OK [01:03:58]SAM_PROTO_GetFieldsCounters done [01:03:58]requested_item shift.num is exist - process it [01:03:58]requested_item shift.opened is exist - process it [01:03:58]req_shift_opened [01:03:58]FM_GetShiftState [01:03:58]SAM_PROTO_GetShiftState [01:03:58]wFMCommunicate request_size=4 [01:03:58]MH_SAM_APDU [01:03:58]CAPDU: 80 13 01 00 [01:03:58]Write to MH i2c: E2 08 00 52 36 80 13 01 00 00 00 00 00 05 [01:03:58]Write i2c OK [01:03:58]MH_I2C_Read... [01:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:58]Read from MH i2c: E2 [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: E2 0E 00 [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: E2 0E 00 52 36 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 37 [01:03:58]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:03:58]wFMCommunicate OK [01:03:58]SAM_PROTO_GetShiftState done [01:03:58]FM_GetShiftState done [01:03:58]req_shift_opened done [01:03:58]requested_item shift.open_date is exist - process it [01:03:58]req_shift_open_date [01:03:58]req_shift_open_date done [01:03:58]produce_requested_data done [01:03:58]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117524,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [01:03:58]process_action_free close_receipt [01:03:58]json_value_free [01:03:58]json_value_free done [01:03:58]process_json_proto returns [01:03:58]Send response to host [01:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117524,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [01:03:58]free response buf [01:03:58]execute_script done [01:03:58]execute_script returns [01:03:58]free content buf [01:03:58]Sock 10.Close socket [01:03:58]Sock 10.Thread stoped [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:24]ConnectInit Can't connect to host [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:03]accept exits with 9 [01:06:03]New connection [01:06:03]New thread 3067600228 created [01:06:03]Thread 3067456868 joined [01:06:03]Waiting for new connection... [01:06:03] Sock 9.Parse request [01:06:03]Sock 9.Check first char [01:06:03]Sock 9.First char is OK [01:06:03]request: POST /json_proto HTTP/1.0 [01:06:03]Method: POST [01:06:03]URL: /json_proto [01:06:03]Method is POST - this is cgi request [01:06:03]url: /json_proto [01:06:03]query_string will be loaded in cgi processing [01:06:03]execute_cgi json_proto POST (null) [01:06:03]execute_cgi path=json_proto method=POST [01:06:03]POST find Content-Length [01:06:03]Host: 172.17.96.67:8080 [01:06:03]Content-Length: 679 [01:06:03]Content-Type: application/json [01:06:03] [01:06:03]POST finish read [01:06:03]Found Content-Length = 679 [01:06:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [01:06:03]execute_script... [01:06: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)245299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [01:06:03]POST & json_proto [01:06:03]process_json_proto [01:06:03]json parsed OK: [01:06:03]protocol is kg_v1.0 [01:06:03]action value=close_receipt [01:06:03]process_action close_receipt [01:06:03]cmd_close_receipt [01:06:03]MH_GetDate [01:06:03]Write to MH i2c: F0 00 00 53 36 78 [01:06:03]Write i2c OK [01:06:03]MH_I2C_Read... [01:06:03]Read from MH i2c: F0 [01:06:03]MH_I2C_Read... [01:06:03]Read from MH i2c: F0 09 00 [01:06:03]MH_I2C_Read... [01:06:03]Read from MH i2c: F0 09 00 53 36 00 7F E3 1E 67 2B 09 1E 67 21 [01:06:03]GetLastDocTimeStamp 1730077438 [01:06:03]current date 1730077567 [01:06:03]FM_GetShiftState [01:06:03]SAM_PROTO_GetShiftState [01:06:03]wFMCommunicate request_size=4 [01:06:03]MH_SAM_APDU [01:06:03]CAPDU: 80 13 01 00 [01:06:03]Write to MH i2c: E2 08 00 54 36 80 13 01 00 00 00 00 00 07 [01:06:03]Write i2c OK [01:06:03]MH_I2C_Read... [01:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:03]Read from MH i2c: E2 [01:06:03]MH_I2C_Read... [01:06:03]Read from MH i2c: E2 0E 00 [01:06:03]MH_I2C_Read... [01:06:03]Read from MH i2c: E2 0E 00 54 36 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 39 [01:06:03]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:06:03]wFMCommunicate OK [01:06:03]SAM_PROTO_GetShiftState done [01:06:03]FM_GetShiftState done [01:06:03]opened in 1730073805 [01:06:03]opened+sec_in_day 1730160205 [01:06:03]quantity*price = 100050 [01:06:03]sum+1 = 100052 [01:06:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 9 28.10.2024 01:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117525 ФПД: 8520779450653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T010607&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117525&fm=8520779450653&tin=02508201610067®Number=0000000000091782&sum=100000 [01:06:04]StoreToDocumentArchive [01:06:04]shift 543 fd 117525 [01:06:04]save to /storage/0543/doc_00117525 [01:06:04]save last doc name /storage/0543/doc_00117525 to /storage/kkm_last_doc_name [01:06:04]save OK [01:06:04]Clear old archive folders... [01:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:06:04]tlvbuf is 0178A000 [01:06:04]SAM_PROTO_ClearQueue [01:06:04]wFMCommunicate request_size=4 [01:06:04]MH_SAM_APDU [01:06:04]CAPDU: 80 09 00 00 [01:06:04]Write to MH i2c: E2 08 00 61 36 80 09 00 00 00 00 00 00 09 [01:06:04]Write i2c OK [01:06:04]MH_I2C_Read... [01:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:06:04]Read from MH i2c: E2 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 03 00 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 03 00 61 36 00 90 00 0B [01:06:04]RAPDU: 90 00 [01:06:04]wFMCommunicate OK [01:06:04]SAM_PROTO_ClearQueue done [01:06:04]KKMCreateOFDPacket [01:06:04]OFDProtocolAddRootSTLVToBuf [01:06:04]FM_MakeSignedData [01:06:04]FM_MakeSignedData [01:06:04]SAM_PROTO_SignData [01:06:04]wFMCommunicate request_size=4 [01:06:04]MH_SAM_APDU [01:06:04]CAPDU: 80 0D 01 02 [01:06:04]Write to MH i2c: E2 08 00 62 36 80 0D 01 02 00 00 00 00 11 [01:06:04]Write i2c OK [01:06:04]MH_I2C_Read... [01:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:06:04]Read from MH i2c: E2 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 03 00 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 03 00 62 36 00 90 00 0C [01:06:04]RAPDU: 90 00 [01:06:04]wFMCommunicate OK [01:06:04]wFMCommunicate request_size=255 [01:06:04]MH_SAM_APDU [01: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 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 09 00 00 00 F4 03 04 00 7F E3 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 15 CB 01 00 35 04 06 00 07 BF E6 08 [01:06:04]Write to MH i2c: E2 02 01 63 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 09 00 00 00 F4 03 04 00 7F E3 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 15 CB 01 00 35 04 06 00 07 BF E6 08 00 00 3F [01:06:04]Write i2c OK [01:06:04]MH_I2C_Read... [01:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:04]Read from MH i2c: E2 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 03 00 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 03 00 63 36 00 90 00 0D [01:06:04]RAPDU: 90 00 [01:06:04]wFMCommunicate OK [01:06:04]wFMCommunicate request_size=7 [01:06:04]MH_SAM_APDU [01:06:04]CAPDU: 80 0D 02 02 02 49 1D [01:06:04]Write to MH i2c: E2 0A 00 64 36 80 0D 02 02 02 00 49 1D 00 00 7E [01:06:04]Write i2c OK [01:06:04]MH_I2C_Read... [01:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:04]Read from MH i2c: E2 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 03 00 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 03 00 64 36 00 90 00 0E [01:06:04]RAPDU: 90 00 [01:06:04]wFMCommunicate OK [01:06:04]wFMCommunicate request_size=4 [01:06:04]MH_SAM_APDU [01:06:04]CAPDU: 80 0D 03 02 [01:06:04]Write to MH i2c: E2 08 00 65 36 80 0D 03 02 00 00 00 00 16 [01:06:04]Write i2c OK [01:06:04]MH_I2C_Read... [01:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:06:04]Read from MH i2c: E2 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 0B 00 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 0B 00 65 36 00 A9 18 AF FB 94 85 8D 7F 90 00 A7 [01:06:04]RAPDU: A9 18 AF FB 94 85 8D 7F 90 00 [01:06:04]wFMCommunicate OK [01:06:04]SAM_PROTO_SignData done [01:06:04]FM_MakeSignedData done [01:06:04]CreateOFDProtocolMessage [01:06:04]wFMCommunicate request_size=4 [01:06:04]MH_SAM_APDU [01:06:04]CAPDU: 80 11 00 00 [01:06:04]Write to MH i2c: E2 08 00 66 36 80 11 00 00 00 00 00 00 16 [01:06:04]Write i2c OK [01:06:04]MH_I2C_Read... [01:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:04]Read from MH i2c: E2 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 17 00 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: E2 17 00 66 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6D [01:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:06:04]wFMCommunicate OK [01:06:04]CreateOFDProtocolMessage done [01:06:04]OFDSenderStorePacket 117525 [01:06:04]StoreOFDPacket docnum=117525 [01:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 6C F2 04 01 29 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 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 09 00 00 00 F4 03 04 00 7F E3 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 15 CB 01 00 35 04 06 00 07 BF E6 08 49 1D A9 18 AF FB 94 85 8D 7F [01:06:04]CheckFolder [01:06:04]dirname=/storage/ofd_packets [01:06:04]CheckFolder done [01:06:04]ProducePacketName [01:06:04]name=ofd_packets/00117525 [01:06:04]NVStorageSaveData ofd_packets/00117525 [01:06:04]File name is /storage/ofd_packets/00117525 [01:06:04]Write 298 bytes [01:06:04]NVStorageSaveData done [01:06:04]OFDSenderStorePacket done [01:06:04]KKMCreateOFDPacket done [01:06:04]NVStorageSaveData kkm_last_timestamp [01:06:04]File name is /storage/kkm_last_timestamp [01:06:04]Write 4 bytes [01:06:04]NVStorageSaveData done [01:06:04]ExternCall_PrintAddStr [01:06:04]wPrintStart [01:06:04]Write to MH i2c: 01 00 00 67 36 9D [01:06:04]Write i2c OK [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: 01 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: 01 07 00 [01:06:04]MH_I2C_Read... [01:06:04]Read from MH i2c: 01 07 00 67 36 00 00 00 00 00 FF 0F B2 [01:06:04]RasterBufferAndPrint [01:06:04]line Счет N : (1)245299 [01:06:04]line ИНН: 02508201610067 [01:06:04]line Контрольно-Кассовый Чек [01:06:04]line ПРОДАЖА [01:06:04]line ТРК (МРК, ГНК) : 23 [01:06:04]line Товар: 2710194210 [01:06:04]line ДТ-К-2 [01:06:04]line 13.130 * 76.20 [01:06:04]line = 1000.51 [01:06:04]line НДС 12% НСП 1% [01:06:04]line > о реализуемом товаре [01:06:04]line ОКРУГЛЕНИЕ: -0.51 [01:06:04]line ИТОГО: 1000.00 [01:06:04]line Внесено: 1000.00 [01:06:04]line СДАЧА: 0.00 [01:06:04]line НСП 1% : 8.85 [01:06:04]line НДС 12% : 106.25 [01:06:04]line Наличными: 1000.00 [01:06:04]line Безнал.: 0.00 [01:06:04]line Место: АЗС № 173 "Партнер Нефть" [01:06:04]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [01:06:04]line СНО: Общий режим [01:06:04]line Чек 9 28.10.2024 01:06 [01:06:04]line Смена: 543 ФФД: 1.0 [01:06:04]line ЗНМ: 0300000115 [01:06:04]line РНМ: 0000000000091782 [01:06:04]line Версия ККМ: 001 [01:06:04]line ФМ: 0000000000871767 [01:06:04]line ФД: 117525 [01:06:04]line ФПД: 8520779450653 [01:06:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T010607&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117525&fm=8520779450653&tin=02508201610067®Number=0000000000091782&sum=100000 [01:06:05]OFD Sender: Processing packet 117525 [packets to send 76, broken 75] [01:06:05]ProducePacketName [01:06:05]name=ofd_packets/00117525 [01:06:05]OFD Sender: To server: pG, [01:06:05]CommunicateWithHost lk.salyk.kg:30040 [01:06:05]ConnectInit lk.salyk.kg [01:06:05]written 0, free lines is 4095 [01:06:05]Connected sock=10 [01: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 36 37 0C 01 00 00 6C F2 04 01 29 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 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 09 00 00 00 F4 03 04 00 7F E3 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 15 CB 01 00 35 04 06 00 07 BF E6 08 49 1D A9 18 AF FB 94 85 8D 7F [01: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 36 37 4F 00 00 00 B6 59 47 00 6A 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 36 37 10 04 04 00 15 CB 01 00 F4 03 04 00 3B 8F 1E 67 B6 04 01 00 00 1A 8B 35 B1 60 CE B2 35 [01:06:05]CommunicateWithHost err = 0 [01:06:05]CheckOFDResponse [01:06:05]1017 (14) - 77093643461234 [01:06:05]1041 (16) - 0000000000871767 [01:06:05]1040 (4) - 117525 [01:06:05]1012 (4) - 27.10.2024 19:06 [01:06:05]1206 (1) - 0 [01:06:05]OFD Sender: Remove packet 117525 [01:06:05]ProducePacketName [01:06:05]name=ofd_packets/00117525 [01:06:05]NVStorageDeleteData [01:06:05]Write to MH i2c: 01 00 00 91 36 C7 [01:06:05]Write i2c OK [01:06:05]MH_I2C_Read... [01:06:05]Read from MH i2c: 01 [01:06:05]MH_I2C_Read... [01:06:05]Read from MH i2c: 01 07 00 [01:06:05]MH_I2C_Read... [01:06:05]Read from MH i2c: 01 07 00 91 36 00 00 00 00 00 C1 0C 9B [01:06:05]RasterBufferAndPrint [01:06:05]line [01:06:05]line [01:06:05]line [01:06:05]line [01:06:05]line [01:06:05]written 0, free lines is 3271 [01:06:05]MH_Cut [01:06:05]Write to MH i2c: D1 01 00 98 36 01 A0 [01:06:05]Write i2c OK [01:06:05]MH_I2C_Read... [01:06:05]Read from MH i2c: D1 [01:06:05]MH_I2C_Read... [01:06:05]Read from MH i2c: D1 01 00 [01:06:05]MH_I2C_Read... [01:06:05]Read from MH i2c: D1 01 00 98 36 00 9F [01:06:05]Write to MH i2c: 01 00 00 99 36 CF [01:06:05]Write i2c OK [01:06:05]MH_I2C_Read... [01:06:06]OFD Sender: No OFD packet to send [01:06:06]*** Cut start [01:06:06]*** Purtial cut [01:06:06]*** Stage 1: CUTSNS_PIN = 1 [01:06:06]Read from MH i2c: 01 [01:06:06]MH_I2C_Read... [01:06:06]*** Stop cut motor [01:06:06]*** Cut end [01:06:06]Read from MH i2c: 01 07 00 [01:06:06]MH_I2C_Read... [01:06:06]Read from MH i2c: 01 07 00 99 36 00 00 00 00 00 FF 0F E4 [01:06:06]process_action close_receipt done [01:06:06]requested_data is exist [01:06:06]produce_requested_data [01:06:06]requested_item fm.sn is exist - process it [01:06:06]wFMCommunicate request_size=4 [01:06:06]MH_SAM_APDU [01:06:06]CAPDU: 80 11 00 00 [01:06:06]Write to MH i2c: E2 08 00 9A 36 80 11 00 00 00 00 00 00 4A [01:06:06]Write i2c OK [01:06:06]MH_I2C_Read... [01:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:06]Read from MH i2c: E2 [01:06:06]MH_I2C_Read... [01:06:06]Read from MH i2c: E2 17 00 [01:06:06]MH_I2C_Read... [01:06:06]Read from MH i2c: E2 17 00 9A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A1 [01:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:06:06]wFMCommunicate OK [01:06:06]requested_item fd.num is exist - process it [01:06:06]SAM_PROTO_GetFieldsCounters [01:06:06]wFMCommunicate request_size=4 [01:06:06]MH_SAM_APDU [01:06:06]CAPDU: 80 13 00 00 [01:06:06]Write to MH i2c: E2 08 00 9B 36 80 13 00 00 00 00 00 00 4D [01:06:06]Write i2c OK [01:06:06]MH_I2C_Read... [01:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:06:07]Read from MH i2c: E2 [01:06:07]MH_I2C_Read... [01:06:07]Read from MH i2c: E2 62 00 [01:06:07]MH_I2C_Read... [01:06:07]Read from MH i2c: E2 62 00 9B 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 15 CB 01 00 0E 04 04 00 1F 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 91 [01:06: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 15 CB 01 00 0E 04 04 00 1F 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 [01:06:07]wFMCommunicate OK [01:06:07]SAM_PROTO_GetFieldsCounters done [01:06:07]requested_item shift.num is exist - process it [01:06:07]requested_item shift.opened is exist - process it [01:06:07]req_shift_opened [01:06:07]FM_GetShiftState [01:06:07]SAM_PROTO_GetShiftState [01:06:07]wFMCommunicate request_size=4 [01:06:07]MH_SAM_APDU [01:06:07]CAPDU: 80 13 01 00 [01:06:07]Write to MH i2c: E2 08 00 9C 36 80 13 01 00 00 00 00 00 4F [01:06:07]Write i2c OK [01:06:07]MH_I2C_Read... [01:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:07]Read from MH i2c: E2 [01:06:07]MH_I2C_Read... [01:06:07]Read from MH i2c: E2 0E 00 [01:06:07]MH_I2C_Read... [01:06:07]Read from MH i2c: E2 0E 00 9C 36 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 81 [01:06:07]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:06:07]wFMCommunicate OK [01:06:07]SAM_PROTO_GetShiftState done [01:06:07]FM_GetShiftState done [01:06:07]req_shift_opened done [01:06:07]requested_item shift.open_date is exist - process it [01:06:07]req_shift_open_date [01:06:07]req_shift_open_date done [01:06:07]produce_requested_data done [01:06:07]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117525,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [01:06:07]process_action_free close_receipt [01:06:07]json_value_free [01:06:07]json_value_free done [01:06:07]process_json_proto returns [01:06:07]Send response to host [01:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117525,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [01:06:07]free response buf [01:06:07]execute_script done [01:06:07]execute_script returns [01:06:07]free content buf [01:06:07]Sock 9.Close socket [01:06:07]Sock 9.Thread stoped [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:50]accept exits with 7 [01:31:50]New connection [01:31:50]New thread 3067456868 created [01:31:50]Thread 3067600228 joined [01:31:50]Waiting for new connection... [01:31:50] Sock 7.Parse request [01:31:50]Sock 7.Check first char [01:31:50]Sock 7.First char is OK [01:31:50]request: POST /json_proto HTTP/1.0 [01:31:50]Method: POST [01:31:50]URL: /json_proto [01:31:50]Method is POST - this is cgi request [01:31:50]url: /json_proto [01:31:50]query_string will be loaded in cgi processing [01:31:50]execute_cgi json_proto POST (null) [01:31:50]execute_cgi path=json_proto method=POST [01:31:50]POST find Content-Length [01:31:50]Host: 172.17.96.67:8080 [01:31:50]Content-Length: 677 [01:31:50]Content-Type: application/json [01:31:50] [01:31:50]POST finish read [01:31:50]Found Content-Length = 677 [01:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:50]execute_script... [01:31: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)245300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:50]POST & json_proto [01:31:50]process_json_proto [01:31:50]json parsed OK: [01:31:50]protocol is kg_v1.0 [01:31:50]action value=close_receipt [01:31:50]process_action close_receipt [01:31:50]cmd_close_receipt [01:31:50]MH_GetDate [01:31:50]Write to MH i2c: F0 00 00 9D 36 C2 [01:31:50]Write i2c OK [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: F0 [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: F0 09 00 [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: F0 09 00 9D 36 00 8A E9 1E 67 2B 09 1E 67 7C [01:31:50]GetLastDocTimeStamp 1730077567 [01:31:50]current date 1730079114 [01:31:50]FM_GetShiftState [01:31:50]SAM_PROTO_GetShiftState [01:31:50]wFMCommunicate request_size=4 [01:31:50]MH_SAM_APDU [01:31:50]CAPDU: 80 13 01 00 [01:31:50]Write to MH i2c: E2 08 00 9E 36 80 13 01 00 00 00 00 00 51 [01:31:50]Write i2c OK [01:31:50]MH_I2C_Read... [01:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:50]Read from MH i2c: E2 [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: E2 0E 00 [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: E2 0E 00 9E 36 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 83 [01:31:50]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:31:50]wFMCommunicate OK [01:31:50]SAM_PROTO_GetShiftState done [01:31:50]FM_GetShiftState done [01:31:50]opened in 1730073805 [01:31:50]opened+sec_in_day 1730160205 [01:31:50]quantity*price = 18063 [01:31:50]sum+1 = 18064 [01:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.60 НДС 12% : 19.18 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 10 28.10.2024 01:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117526 ФПД: 185909546040694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T013154&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117526&fm=185909546040694&tin=02508201610067®Number=0000000000091782&sum=18000 [01:31:51]StoreToDocumentArchive [01:31:51]shift 543 fd 117526 [01:31:51]save to /storage/0543/doc_00117526 [01:31:51]save last doc name /storage/0543/doc_00117526 to /storage/kkm_last_doc_name [01:31:51]save OK [01:31:51]Clear old archive folders... [01:31:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:31:51]tlvbuf is 017C0EF0 [01:31:51]SAM_PROTO_ClearQueue [01:31:51]wFMCommunicate request_size=4 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 09 00 00 [01:31:51]Write to MH i2c: E2 08 00 AB 36 80 09 00 00 00 00 00 00 53 [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 AB 36 00 90 00 55 [01:31:51]RAPDU: 90 00 [01:31:51]wFMCommunicate OK [01:31:51]SAM_PROTO_ClearQueue done [01:31:51]KKMCreateOFDPacket [01:31:51]OFDProtocolAddRootSTLVToBuf [01:31:51]FM_MakeSignedData [01:31:51]FM_MakeSignedData [01:31:51]SAM_PROTO_SignData [01:31:51]wFMCommunicate request_size=4 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 0D 01 02 [01:31:51]Write to MH i2c: E2 08 00 AC 36 80 0D 01 02 00 00 00 00 5B [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 AC 36 00 90 00 56 [01:31:51]RAPDU: 90 00 [01:31:51]wFMCommunicate OK [01:31:51]wFMCommunicate request_size=255 [01:31:51]MH_SAM_APDU [01:31: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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 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 8A E9 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 16 CB 01 00 35 04 06 00 A9 [01:31:51]Write to MH i2c: E2 02 01 AD 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 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 8A E9 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 16 CB 01 00 35 04 06 00 A9 00 00 0E [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:52]Read from MH i2c: E2 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: E2 03 00 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: E2 03 00 AD 36 00 90 00 57 [01:31:52]RAPDU: 90 00 [01:31:52]wFMCommunicate OK [01:31:52]wFMCommunicate request_size=10 [01:31:52]MH_SAM_APDU [01:31:52]CAPDU: 80 0D 02 02 05 15 70 73 BD 76 [01:31:52]Write to MH i2c: E2 0D 00 AE 36 80 0D 02 02 05 00 15 70 73 BD 76 00 00 93 [01:31:52]Write i2c OK [01:31:52]MH_I2C_Read... [01:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:52]Read from MH i2c: E2 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: E2 03 00 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: E2 03 00 AE 36 00 90 00 58 [01:31:52]RAPDU: 90 00 [01:31:52]wFMCommunicate OK [01:31:52]wFMCommunicate request_size=4 [01:31:52]MH_SAM_APDU [01:31:52]CAPDU: 80 0D 03 02 [01:31:52]Write to MH i2c: E2 08 00 AF 36 80 0D 03 02 00 00 00 00 60 [01:31:52]Write i2c OK [01:31:52]MH_I2C_Read... [01:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:31:52]Read from MH i2c: E2 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: E2 0B 00 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: E2 0B 00 AF 36 00 ED 0D 16 EB 36 1A A8 1F 90 00 73 [01:31:52]RAPDU: ED 0D 16 EB 36 1A A8 1F 90 00 [01:31:52]wFMCommunicate OK [01:31:52]SAM_PROTO_SignData done [01:31:52]FM_MakeSignedData done [01:31:52]CreateOFDProtocolMessage [01:31:52]wFMCommunicate request_size=4 [01:31:52]MH_SAM_APDU [01:31:52]CAPDU: 80 11 00 00 [01:31:52]Write to MH i2c: E2 08 00 B0 36 80 11 00 00 00 00 00 00 60 [01:31:52]Write i2c OK [01:31:52]MH_I2C_Read... [01:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:52]Read from MH i2c: E2 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: E2 17 00 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: E2 17 00 B0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B7 [01:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:31:52]wFMCommunicate OK [01:31:52]CreateOFDProtocolMessage done [01:31:52]OFDSenderStorePacket 117526 [01:31:52]StoreOFDPacket docnum=117526 [01:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F9 C7 07 01 04 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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 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 8A E9 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 16 CB 01 00 35 04 06 00 A9 15 70 73 BD 76 ED 0D 16 EB 36 1A A8 1F [01:31:52]CheckFolder [01:31:52]dirname=/storage/ofd_packets [01:31:52]CheckFolder done [01:31:52]ProducePacketName [01:31:52]name=ofd_packets/00117526 [01:31:52]NVStorageSaveData ofd_packets/00117526 [01:31:52]File name is /storage/ofd_packets/00117526 [01:31:52]Write 301 bytes [01:31:52]NVStorageSaveData done [01:31:52]OFDSenderStorePacket done [01:31:52]KKMCreateOFDPacket done [01:31:52]NVStorageSaveData kkm_last_timestamp [01:31:52]File name is /storage/kkm_last_timestamp [01:31:52]Write 4 bytes [01:31:52]NVStorageSaveData done [01:31:52]ExternCall_PrintAddStr [01:31:52]wPrintStart [01:31:52]Write to MH i2c: 01 00 00 B1 36 E7 [01:31:52]Write i2c OK [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: 01 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: 01 07 00 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: 01 07 00 B1 36 00 00 00 00 00 FF 0F FC [01:31:52]RasterBufferAndPrint [01:31:52]line Счет N : (1)245300 [01:31:52]line ИНН: 02508201610067 [01:31:52]line Контрольно-Кассовый Чек [01:31:52]line ПРОДАЖА [01:31:52]line ТРК (МРК, ГНК) : 11 [01:31:52]line Товар: 2710124130 [01:31:52]line Аи-92-К-2 [01:31:52]line 2.700 * 66.90 [01:31:52]line = 180.63 [01:31:52]line НДС 12% НСП 1% [01:31:52]line > о реализуемом товаре [01:31:52]line ОКРУГЛЕНИЕ: -0.63 [01:31:52]line ИТОГО: 180.00 [01:31:52]line Внесено: 180.00 [01:31:52]line СДАЧА: 0.00 [01:31:52]line НСП 1% : 1.60 [01:31:52]line НДС 12% : 19.18 [01:31:52]line Наличными: 180.00 [01:31:52]line Безнал.: 0.00 [01:31:52]line Место: АЗС № 173 "Партнер Нефть" [01:31:52]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [01:31:52]line СНО: Общий режим [01:31:52]line Чек 10 28.10.2024 01:31 [01:31:52]line Смена: 543 ФФД: 1.0 [01:31:52]line ЗНМ: 0300000115 [01:31:52]line РНМ: 0000000000091782 [01:31:52]line Версия ККМ: 001 [01:31:52]line ФМ: 0000000000871767 [01:31:52]line ФД: 117526 [01:31:52]line ФПД: 185909546040694 [01:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T013154&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117526&fm=185909546040694&tin=02508201610067®Number=0000000000091782&sum=18000 [01:31:52]written 0, free lines is 4095 [01:31:52]OFD Sender: Processing packet 117526 [packets to send 76, broken 75] [01:31:52]ProducePacketName [01:31:52]name=ofd_packets/00117526 [01:31:52]OFD Sender: To server: pG, [01:31:52]CommunicateWithHost lk.salyk.kg:30040 [01:31:52]ConnectInit lk.salyk.kg [01:31:52]Connected sock=10 [01:31: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 36 37 0F 01 00 00 F9 C7 07 01 04 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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 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 8A E9 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 16 CB 01 00 35 04 06 00 A9 15 70 73 BD 76 ED 0D 16 EB 36 1A A8 1F [01:31: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 36 37 4F 00 00 00 56 7A 47 00 61 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 36 37 10 04 04 00 16 CB 01 00 F4 03 04 00 46 95 1E 67 B6 04 01 00 00 0C A1 3F BC 90 F0 61 91 [01:31:52]CommunicateWithHost err = 0 [01:31:52]CheckOFDResponse [01:31:52]1017 (14) - 77093643461234 [01:31:52]1041 (16) - 0000000000871767 [01:31:52]1040 (4) - 117526 [01:31:52]1012 (4) - 27.10.2024 19:32 [01:31:52]1206 (1) - 0 [01:31:52]OFD Sender: Remove packet 117526 [01:31:52]ProducePacketName [01:31:52]name=ofd_packets/00117526 [01:31:52]NVStorageDeleteData [01:31:53]Write to MH i2c: 01 00 00 DB 36 11 [01:31:53]Write i2c OK [01:31:53]MH_I2C_Read... [01:31:53]Read from MH i2c: 01 [01:31:53]MH_I2C_Read... [01:31:53]Read from MH i2c: 01 07 00 [01:31:53]MH_I2C_Read... [01:31:53]Read from MH i2c: 01 07 00 DB 36 00 00 00 00 00 C8 0C EC [01:31:53]RasterBufferAndPrint [01:31:53]line [01:31:53]line [01:31:53]line [01:31:53]line [01:31:53]line [01:31:53]written 0, free lines is 3278 [01:31:53]MH_Cut [01:31:53]Write to MH i2c: D1 01 00 E2 36 01 EA [01:31:53]Write i2c OK [01:31:53]MH_I2C_Read... [01:31:53]Read from MH i2c: D1 [01:31:53]MH_I2C_Read... [01:31:53]Read from MH i2c: D1 01 00 [01:31:53]MH_I2C_Read... [01:31:53]Read from MH i2c: D1 01 00 E2 36 00 E9 [01:31:53]Write to MH i2c: 01 00 00 E3 36 19 [01:31:53]Write i2c OK [01:31:53]MH_I2C_Read... [01:31:53]OFD Sender: No OFD packet to send [01:31:53]*** Cut start [01:31:53]*** Purtial cut [01:31:53]*** Stage 1: CUTSNS_PIN = 1 [01:31:54]Read from MH i2c: 01 [01:31:54]MH_I2C_Read... [01:31:54]*** Stop cut motor [01:31:54]*** Cut end [01:31:54]Read from MH i2c: 01 07 00 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: 01 07 00 E3 36 00 00 00 00 00 FF 0F 2E [01:31:54]process_action close_receipt done [01:31:54]requested_data is exist [01:31:54]produce_requested_data [01:31:54]requested_item fm.sn is exist - process it [01:31:54]wFMCommunicate request_size=4 [01:31:54]MH_SAM_APDU [01:31:54]CAPDU: 80 11 00 00 [01:31:54]Write to MH i2c: E2 08 00 E4 36 80 11 00 00 00 00 00 00 94 [01:31:54]Write i2c OK [01:31:54]MH_I2C_Read... [01:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:54]Read from MH i2c: E2 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 17 00 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 17 00 E4 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EB [01:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:31:54]wFMCommunicate OK [01:31:54]requested_item fd.num is exist - process it [01:31:54]SAM_PROTO_GetFieldsCounters [01:31:54]wFMCommunicate request_size=4 [01:31:54]MH_SAM_APDU [01:31:54]CAPDU: 80 13 00 00 [01:31:54]Write to MH i2c: E2 08 00 E5 36 80 13 00 00 00 00 00 00 97 [01:31:54]Write i2c OK [01:31:54]MH_I2C_Read... [01:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:31:54]Read from MH i2c: E2 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 62 00 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 62 00 E5 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 16 CB 01 00 0E 04 04 00 1F 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 DF [01:31: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 16 CB 01 00 0E 04 04 00 1F 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 [01:31:54]wFMCommunicate OK [01:31:54]SAM_PROTO_GetFieldsCounters done [01:31:54]requested_item shift.num is exist - process it [01:31:54]requested_item shift.opened is exist - process it [01:31:54]req_shift_opened [01:31:54]FM_GetShiftState [01:31:54]SAM_PROTO_GetShiftState [01:31:54]wFMCommunicate request_size=4 [01:31:54]MH_SAM_APDU [01:31:54]CAPDU: 80 13 01 00 [01:31:54]Write to MH i2c: E2 08 00 E6 36 80 13 01 00 00 00 00 00 99 [01:31:54]Write i2c OK [01:31:54]MH_I2C_Read... [01:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:54]Read from MH i2c: E2 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 0E 00 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 0E 00 E6 36 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 CB [01:31:54]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:31:54]wFMCommunicate OK [01:31:54]SAM_PROTO_GetShiftState done [01:31:54]FM_GetShiftState done [01:31:54]req_shift_opened done [01:31:54]requested_item shift.open_date is exist - process it [01:31:54]req_shift_open_date [01:31:54]req_shift_open_date done [01:31:54]produce_requested_data done [01:31:54]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117526,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [01:31:54]process_action_free close_receipt [01:31:54]json_value_free [01:31:54]json_value_free done [01:31:54]process_json_proto returns [01:31:54]Send response to host [01:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117526,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [01:31:54]free response buf [01:31:54]execute_script done [01:31:54]execute_script returns [01:31:54]free content buf [01:31:54]Sock 7.Close socket [01:31:54]Sock 7.Thread stoped [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:07]accept exits with 9 [01:56:07]New connection [01:56:07]New thread 3067600228 created [01:56:07]Thread 3067456868 joined [01:56:07]Waiting for new connection... [01:56:07] Sock 9.Parse request [01:56:07]Sock 9.Check first char [01:56:07]Sock 9.First char is OK [01:56:07]request: POST /json_proto HTTP/1.0 [01:56:07]Method: POST [01:56:07]URL: /json_proto [01:56:07]Method is POST - this is cgi request [01:56:07]url: /json_proto [01:56:07]query_string will be loaded in cgi processing [01:56:07]execute_cgi json_proto POST (null) [01:56:07]execute_cgi path=json_proto method=POST [01:56:07]POST find Content-Length [01:56:07]Host: 172.17.96.67:8080 [01:56:07]Content-Length: 677 [01:56:07]Content-Type: application/json [01:56:07] [01:56:07]POST finish read [01:56:07]Found Content-Length = 677 [01:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:56:07]execute_script... [01:56: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)245301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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:56:07]POST & json_proto [01:56:07]process_json_proto [01:56:07]json parsed OK: [01:56:07]protocol is kg_v1.0 [01:56:07]action value=close_receipt [01:56:07]process_action close_receipt [01:56:07]cmd_close_receipt [01:56:07]MH_GetDate [01:56:07]Write to MH i2c: F0 00 00 E7 36 0C [01:56:07]Write i2c OK [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: F0 [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: F0 09 00 [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: F0 09 00 E7 36 00 3B EF 1E 67 2B 09 1E 67 7D [01:56:07]GetLastDocTimeStamp 1730079114 [01:56:07]current date 1730080571 [01:56:07]FM_GetShiftState [01:56:07]SAM_PROTO_GetShiftState [01:56:07]wFMCommunicate request_size=4 [01:56:07]MH_SAM_APDU [01:56:07]CAPDU: 80 13 01 00 [01:56:07]Write to MH i2c: E2 08 00 E8 36 80 13 01 00 00 00 00 00 9B [01:56:07]Write i2c OK [01:56:07]MH_I2C_Read... [01:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:07]Read from MH i2c: E2 [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: E2 0E 00 [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: E2 0E 00 E8 36 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 CD [01:56:07]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:56:07]wFMCommunicate OK [01:56:07]SAM_PROTO_GetShiftState done [01:56:07]FM_GetShiftState done [01:56:07]opened in 1730073805 [01:56:07]opened+sec_in_day 1730160205 [01:56:07]quantity*price = 20003 [01:56:07]sum+1 = 20004 [01:56:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 11 28.10.2024 01:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117527 ФПД: 35729116420023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T015611&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117527&fm=35729116420023&tin=02508201610067®Number=0000000000091782&sum=20000 [01:56:08]StoreToDocumentArchive [01:56:08]shift 543 fd 117527 [01:56:08]save to /storage/0543/doc_00117527 [01:56:08]save last doc name /storage/0543/doc_00117527 to /storage/kkm_last_doc_name [01:56:08]save OK [01:56:08]Clear old archive folders... [01:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:56:08]tlvbuf is 0177A0A0 [01:56:08]SAM_PROTO_ClearQueue [01:56:08]wFMCommunicate request_size=4 [01:56:08]MH_SAM_APDU [01:56:08]CAPDU: 80 09 00 00 [01:56:08]Write to MH i2c: E2 08 00 F5 36 80 09 00 00 00 00 00 00 9D [01:56:08]Write i2c OK [01:56:08]MH_I2C_Read... [01:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:56:08]Read from MH i2c: E2 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 03 00 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 03 00 F5 36 00 90 00 9F [01:56:08]RAPDU: 90 00 [01:56:08]wFMCommunicate OK [01:56:08]SAM_PROTO_ClearQueue done [01:56:08]KKMCreateOFDPacket [01:56:08]OFDProtocolAddRootSTLVToBuf [01:56:08]FM_MakeSignedData [01:56:08]FM_MakeSignedData [01:56:08]SAM_PROTO_SignData [01:56:08]wFMCommunicate request_size=4 [01:56:08]MH_SAM_APDU [01:56:08]CAPDU: 80 0D 01 02 [01:56:08]Write to MH i2c: E2 08 00 F6 36 80 0D 01 02 00 00 00 00 A5 [01:56:08]Write i2c OK [01:56:08]MH_I2C_Read... [01:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:56:08]Read from MH i2c: E2 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 03 00 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 03 00 F6 36 00 90 00 A0 [01:56:08]RAPDU: 90 00 [01:56:08]wFMCommunicate OK [01:56:08]wFMCommunicate request_size=255 [01:56:08]MH_SAM_APDU [01:56: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 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 0B 00 00 00 F4 03 04 00 3B EF 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 17 CB 01 00 35 04 06 00 20 [01:56:08]Write to MH i2c: E2 02 01 F7 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 3B EF 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 17 CB 01 00 35 04 06 00 20 00 00 D7 [01:56:08]Write i2c OK [01:56:08]MH_I2C_Read... [01:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:08]Read from MH i2c: E2 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 03 00 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 03 00 F7 36 00 90 00 A1 [01:56:08]RAPDU: 90 00 [01:56:08]wFMCommunicate OK [01:56:08]wFMCommunicate request_size=10 [01:56:08]MH_SAM_APDU [01:56:08]CAPDU: 80 0D 02 02 05 7E D5 4A D7 B7 [01:56:08]Write to MH i2c: E2 0D 00 F8 36 80 0D 02 02 05 00 7E D5 4A D7 B7 00 00 DD [01:56:08]Write i2c OK [01:56:08]MH_I2C_Read... [01:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:08]Read from MH i2c: E2 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 03 00 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 03 00 F8 36 00 90 00 A2 [01:56:08]RAPDU: 90 00 [01:56:08]wFMCommunicate OK [01:56:08]wFMCommunicate request_size=4 [01:56:08]MH_SAM_APDU [01:56:08]CAPDU: 80 0D 03 02 [01:56:08]Write to MH i2c: E2 08 00 F9 36 80 0D 03 02 00 00 00 00 AA [01:56:08]Write i2c OK [01:56:08]MH_I2C_Read... [01:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:56:08]Read from MH i2c: E2 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 0B 00 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 0B 00 F9 36 00 41 D9 38 63 E7 0D 32 23 90 00 A9 [01:56:08]RAPDU: 41 D9 38 63 E7 0D 32 23 90 00 [01:56:08]wFMCommunicate OK [01:56:08]SAM_PROTO_SignData done [01:56:08]FM_MakeSignedData done [01:56:08]CreateOFDProtocolMessage [01:56:08]wFMCommunicate request_size=4 [01:56:08]MH_SAM_APDU [01:56:08]CAPDU: 80 11 00 00 [01:56:08]Write to MH i2c: E2 08 00 FA 36 80 11 00 00 00 00 00 00 AA [01:56:08]Write i2c OK [01:56:08]MH_I2C_Read... [01:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:08]Read from MH i2c: E2 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 17 00 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: E2 17 00 FA 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 01 [01:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:56:08]wFMCommunicate OK [01:56:08]CreateOFDProtocolMessage done [01:56:08]OFDSenderStorePacket 117527 [01:56:08]StoreOFDPacket docnum=117527 [01:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 72 D9 07 01 A3 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 3B EF 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 17 CB 01 00 35 04 06 00 20 7E D5 4A D7 B7 41 D9 38 63 E7 0D 32 23 [01:56:08]CheckFolder [01:56:08]dirname=/storage/ofd_packets [01:56:08]CheckFolder done [01:56:08]ProducePacketName [01:56:08]name=ofd_packets/00117527 [01:56:08]NVStorageSaveData ofd_packets/00117527 [01:56:08]File name is /storage/ofd_packets/00117527 [01:56:08]Write 301 bytes [01:56:08]NVStorageSaveData done [01:56:08]OFDSenderStorePacket done [01:56:08]KKMCreateOFDPacket done [01:56:08]NVStorageSaveData kkm_last_timestamp [01:56:08]File name is /storage/kkm_last_timestamp [01:56:08]Write 4 bytes [01:56:08]NVStorageSaveData done [01:56:08]ExternCall_PrintAddStr [01:56:08]wPrintStart [01:56:08]Write to MH i2c: 01 00 00 FB 36 31 [01:56:08]Write i2c OK [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: 01 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: 01 07 00 [01:56:08]MH_I2C_Read... [01:56:08]Read from MH i2c: 01 07 00 FB 36 00 00 00 00 00 FF 0F 46 [01:56:08]RasterBufferAndPrint [01:56:08]line Счет N : (1)245301 [01:56:08]line ИНН: 02508201610067 [01:56:08]line Контрольно-Кассовый Чек [01:56:08]line ПРОДАЖА [01:56:08]line ТРК (МРК, ГНК) : 11 [01:56:08]line Товар: 2710124130 [01:56:08]line Аи-92-К-2 [01:56:08]line 2.990 * 66.90 [01:56:08]line = 200.03 [01:56:08]line НДС 12% НСП 1% [01:56:08]line > о реализуемом товаре [01:56:08]line ОКРУГЛЕНИЕ: -0.03 [01:56:08]line ИТОГО: 200.00 [01:56:08]line Внесено: 200.00 [01:56:08]line СДАЧА: 0.00 [01:56:08]line НСП 1% : 1.77 [01:56:08]line НДС 12% : 21.24 [01:56:08]line Наличными: 200.00 [01:56:08]line Безнал.: 0.00 [01:56:08]line Место: АЗС № 173 "Партнер Нефть" [01:56:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [01:56:08]line СНО: Общий режим [01:56:08]line Чек 11 28.10.2024 01:56 [01:56:08]line Смена: 543 ФФД: 1.0 [01:56:08]line ЗНМ: 0300000115 [01:56:08]line РНМ: 0000000000091782 [01:56:08]line Версия ККМ: 001 [01:56:08]line ФМ: 0000000000871767 [01:56:08]line ФД: 117527 [01:56:08]line ФПД: 35729116420023 [01:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T015611&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117527&fm=35729116420023&tin=02508201610067®Number=0000000000091782&sum=20000 [01:56:08]written 0, free lines is 4095 [01:56:08]OFD Sender: Processing packet 117527 [packets to send 76, broken 75] [01:56:08]ProducePacketName [01:56:08]name=ofd_packets/00117527 [01:56:08]OFD Sender: To server: pG, [01:56:08]CommunicateWithHost lk.salyk.kg:30040 [01:56:08]ConnectInit lk.salyk.kg [01:56:09]Connected sock=10 [01:56: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 36 37 0F 01 00 00 72 D9 07 01 A3 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 3B EF 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 17 CB 01 00 35 04 06 00 20 7E D5 4A D7 B7 41 D9 38 63 E7 0D 32 23 [01:56: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 36 37 4F 00 00 00 2C 4E 47 00 D1 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 36 37 10 04 04 00 17 CB 01 00 F4 03 04 00 F7 9A 1E 67 B6 04 01 00 00 75 3D 70 FC 5B ED AF 6C [01:56:09]CommunicateWithHost err = 0 [01:56:09]CheckOFDResponse [01:56:09]1017 (14) - 77093643461234 [01:56:09]1041 (16) - 0000000000871767 [01:56:09]1040 (4) - 117527 [01:56:09]1012 (4) - 27.10.2024 19:56 [01:56:09]1206 (1) - 0 [01:56:09]OFD Sender: Remove packet 117527 [01:56:09]ProducePacketName [01:56:09]name=ofd_packets/00117527 [01:56:09]NVStorageDeleteData [01:56:09]Write to MH i2c: 01 00 00 25 37 5C [01:56:09]Write i2c OK [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: 01 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: 01 07 00 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: 01 07 00 25 37 00 00 00 00 00 C7 0C 36 [01:56:09]RasterBufferAndPrint [01:56:09]line [01:56:09]line [01:56:09]line [01:56:09]line [01:56:09]line [01:56:09]written 0, free lines is 3276 [01:56:09]MH_Cut [01:56:09]Write to MH i2c: D1 01 00 2C 37 01 35 [01:56:09]Write i2c OK [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: D1 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: D1 01 00 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: D1 01 00 2C 37 00 34 [01:56:09]Write to MH i2c: 01 00 00 2D 37 64 [01:56:09]Write i2c OK [01:56:09]MH_I2C_Read... [01:56:09]OFD Sender: No OFD packet to send [01:56:10]*** Cut start [01:56:10]*** Purtial cut [01:56:10]*** Stage 1: CUTSNS_PIN = 1 [01:56:10]Read from MH i2c: 01 [01:56:10]MH_I2C_Read... [01:56:10]*** Stop cut motor [01:56:10]*** Cut end [01:56:10]Read from MH i2c: 01 07 00 [01:56:10]MH_I2C_Read... [01:56:10]Read from MH i2c: 01 07 00 2D 37 00 00 00 00 00 FF 0F 79 [01:56:10]process_action close_receipt done [01:56:10]requested_data is exist [01:56:10]produce_requested_data [01:56:10]requested_item fm.sn is exist - process it [01:56:10]wFMCommunicate request_size=4 [01:56:10]MH_SAM_APDU [01:56:10]CAPDU: 80 11 00 00 [01:56:10]Write to MH i2c: E2 08 00 2E 37 80 11 00 00 00 00 00 00 DF [01:56:10]Write i2c OK [01:56:10]MH_I2C_Read... [01:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:10]Read from MH i2c: E2 [01:56:10]MH_I2C_Read... [01:56:10]Read from MH i2c: E2 17 00 [01:56:10]MH_I2C_Read... [01:56:10]Read from MH i2c: E2 17 00 2E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 36 [01:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:56:10]wFMCommunicate OK [01:56:10]requested_item fd.num is exist - process it [01:56:10]SAM_PROTO_GetFieldsCounters [01:56:10]wFMCommunicate request_size=4 [01:56:10]MH_SAM_APDU [01:56:10]CAPDU: 80 13 00 00 [01:56:10]Write to MH i2c: E2 08 00 2F 37 80 13 00 00 00 00 00 00 E2 [01:56:10]Write i2c OK [01:56:10]MH_I2C_Read... [01:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:56:10]Read from MH i2c: E2 [01:56:10]MH_I2C_Read... [01:56:10]Read from MH i2c: E2 62 00 [01:56:10]MH_I2C_Read... [01:56:10]Read from MH i2c: E2 62 00 2F 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 17 CB 01 00 0E 04 04 00 1F 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 2E [01:56: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 17 CB 01 00 0E 04 04 00 1F 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 [01:56:10]wFMCommunicate OK [01:56:10]SAM_PROTO_GetFieldsCounters done [01:56:10]requested_item shift.num is exist - process it [01:56:10]requested_item shift.opened is exist - process it [01:56:10]req_shift_opened [01:56:10]FM_GetShiftState [01:56:10]SAM_PROTO_GetShiftState [01:56:10]wFMCommunicate request_size=4 [01:56:10]MH_SAM_APDU [01:56:10]CAPDU: 80 13 01 00 [01:56:10]Write to MH i2c: E2 08 00 30 37 80 13 01 00 00 00 00 00 E4 [01:56:10]Write i2c OK [01:56:10]MH_I2C_Read... [01:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:10]Read from MH i2c: E2 [01:56:10]MH_I2C_Read... [01:56:10]Read from MH i2c: E2 0E 00 [01:56:10]MH_I2C_Read... [01:56:10]Read from MH i2c: E2 0E 00 30 37 00 09 00 01 CD D4 1E 67 00 00 00 00 90 00 16 [01:56:10]RAPDU: 09 00 01 CD D4 1E 67 00 00 00 00 90 00 [01:56:10]wFMCommunicate OK [01:56:10]SAM_PROTO_GetShiftState done [01:56:10]FM_GetShiftState done [01:56:10]req_shift_opened done [01:56:10]requested_item shift.open_date is exist - process it [01:56:10]req_shift_open_date [01:56:10]req_shift_open_date done [01:56:10]produce_requested_data done [01:56:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117527,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805} [01:56:10]process_action_free close_receipt [01:56:10]json_value_free [01:56:10]json_value_free done [01:56:10]process_json_proto returns [01:56:10]Send response to host [01:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117527,"shift.num":543,"shift.opened":1,"shift.open_date":1730073805}}} [01:56:10]free response buf [01:56:10]execute_script done [01:56:10]execute_script returns [01:56:10]free content buf [01:56:10]Sock 9.Close socket [01:56:10]Sock 9.Thread stoped [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16: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:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35: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:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49: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:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send