[02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05: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:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27: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:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:44]accept exits with 7 [03:35:44]New connection [03:35:44]New thread 3066580324 created [03:35:44]Thread 3066723684 joined [03:35:44]Waiting for new connection... [03:35:44] Sock 7.Parse request [03:35:44]Sock 7.Check first char [03:35:44]Sock 7.First char is OK [03:35:44]request: POST /json_proto HTTP/1.0 [03:35:44]Method: POST [03:35:44]URL: /json_proto [03:35:44]Method is POST - this is cgi request [03:35:44]url: /json_proto [03:35:44]query_string will be loaded in cgi processing [03:35:44]execute_cgi json_proto POST (null) [03:35:44]execute_cgi path=json_proto method=POST [03:35:44]POST find Content-Length [03:35:44]Host: 172.17.37.4:8080 [03:35:44]Content-Length: 677 [03:35:44]Content-Type: application/json [03:35:44] [03:35:44]POST finish read [03:35:44]Found Content-Length = 677 [03:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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" ] } } [03:35:44]execute_script... [03:35: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)717751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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" ] } } [03:35:44]POST & json_proto [03:35:44]process_json_proto [03:35:44]json parsed OK: [03:35:44]protocol is kg_v1.0 [03:35:44]action value=close_receipt [03:35:44]process_action close_receipt [03:35:44]cmd_close_receipt [03:35:44]MH_GetDate [03:35:44]Write to MH i2c: F0 00 00 07 12 08 [03:35:44]Write i2c OK [03:35:44]MH_I2C_Read... [03:35:44]Read from MH i2c: F0 [03:35:44]MH_I2C_Read... [03:35:44]Read from MH i2c: F0 09 00 [03:35:44]MH_I2C_Read... [03:35:44]Read from MH i2c: F0 09 00 07 12 00 93 F0 43 67 B8 5A 43 67 FA [03:35:44]GetLastDocTimeStamp 1732501979 [03:35:44]current date 1732505747 [03:35:44]FM_GetShiftState [03:35:44]SAM_PROTO_GetShiftState [03:35:44]wFMCommunicate request_size=4 [03:35:44]MH_SAM_APDU [03:35:44]CAPDU: 80 13 01 00 [03:35:44]Write to MH i2c: E2 08 00 08 12 80 13 01 00 00 00 00 00 97 [03:35:44]Write i2c OK [03:35:44]MH_I2C_Read... [03:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:35:44]Read from MH i2c: E2 [03:35:44]MH_I2C_Read... [03:35:44]Read from MH i2c: E2 0E 00 [03:35:44]MH_I2C_Read... [03:35:44]Read from MH i2c: E2 0E 00 08 12 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 16 [03:35:44]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [03:35:44]wFMCommunicate OK [03:35:44]SAM_PROTO_GetShiftState done [03:35:44]FM_GetShiftState done [03:35:44]opened in 1732493066 [03:35:44]opened+sec_in_day 1732579466 [03:35:44]quantity*price = 30060 [03:35:44]sum+1 = 30061 [03:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 8 25.11.2024 03:35 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122967 ФПД: 210038434915306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T033547&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122967&fm=210038434915306&tin=02508201610067®Number=0000000000092681&sum=30000 [03:35:45]StoreToDocumentArchive [03:35:45]shift 556 fd 122967 [03:35:45]save to /storage/0556/doc_00122967 [03:35:45]save last doc name /storage/0556/doc_00122967 to /storage/kkm_last_doc_name [03:35:45]save OK [03:35:45]Clear old archive folders... [03:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:35:45]tlvbuf is 02053C90 [03:35:45]SAM_PROTO_ClearQueue [03:35:45]wFMCommunicate request_size=4 [03:35:45]MH_SAM_APDU [03:35:45]CAPDU: 80 09 00 00 [03:35:45]Write to MH i2c: E2 08 00 15 12 80 09 00 00 00 00 00 00 99 [03:35:45]Write i2c OK [03:35:45]MH_I2C_Read... [03:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:35:45]Read from MH i2c: E2 [03:35:45]MH_I2C_Read... [03:35:45]Read from MH i2c: E2 03 00 [03:35:45]MH_I2C_Read... [03:35:45]Read from MH i2c: E2 03 00 15 12 00 90 00 9B [03:35:45]RAPDU: 90 00 [03:35:45]wFMCommunicate OK [03:35:45]SAM_PROTO_ClearQueue done [03:35:45]KKMCreateOFDPacket [03:35:45]OFDProtocolAddRootSTLVToBuf [03:35:45]FM_MakeSignedData [03:35:45]FM_MakeSignedData [03:35:45]SAM_PROTO_SignData [03:35:45]wFMCommunicate request_size=4 [03:35:45]MH_SAM_APDU [03:35:45]CAPDU: 80 0D 01 02 [03:35:45]Write to MH i2c: E2 08 00 16 12 80 0D 01 02 00 00 00 00 A1 [03:35:45]Write i2c OK [03:35:45]MH_I2C_Read... [03:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:35:45]Read from MH i2c: E2 [03:35:45]MH_I2C_Read... [03:35:45]Read from MH i2c: E2 03 00 [03:35:45]MH_I2C_Read... [03:35:45]Read from MH i2c: E2 03 00 16 12 00 90 00 9C [03:35:45]RAPDU: 90 00 [03:35:45]wFMCommunicate OK [03:35:45]wFMCommunicate request_size=255 [03:35:45]MH_SAM_APDU [03:35:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 93 F0 43 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E0 01 00 35 04 06 00 BF [03:35:45]Write to MH i2c: E2 02 01 17 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 93 F0 43 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E0 01 00 35 04 06 00 BF 00 00 AE [03:35:45]Write i2c OK [03:35:45]MH_I2C_Read... [03:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:35:46]Read from MH i2c: E2 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: E2 03 00 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: E2 03 00 17 12 00 90 00 9D [03:35:46]RAPDU: 90 00 [03:35:46]wFMCommunicate OK [03:35:46]wFMCommunicate request_size=10 [03:35:46]MH_SAM_APDU [03:35:46]CAPDU: 80 0D 02 02 05 07 62 4D 63 EA [03:35:46]Write to MH i2c: E2 0D 00 18 12 80 0D 02 02 05 00 07 62 4D 63 EA 00 00 B1 [03:35:46]Write i2c OK [03:35:46]MH_I2C_Read... [03:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:35:46]Read from MH i2c: E2 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: E2 03 00 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: E2 03 00 18 12 00 90 00 9E [03:35:46]RAPDU: 90 00 [03:35:46]wFMCommunicate OK [03:35:46]wFMCommunicate request_size=4 [03:35:46]MH_SAM_APDU [03:35:46]CAPDU: 80 0D 03 02 [03:35:46]Write to MH i2c: E2 08 00 19 12 80 0D 03 02 00 00 00 00 A6 [03:35:46]Write i2c OK [03:35:46]MH_I2C_Read... [03:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:35:46]Read from MH i2c: E2 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: E2 0B 00 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: E2 0B 00 19 12 00 C8 3E 2A 3B 60 FC A7 BB 90 00 D0 [03:35:46]RAPDU: C8 3E 2A 3B 60 FC A7 BB 90 00 [03:35:46]wFMCommunicate OK [03:35:46]SAM_PROTO_SignData done [03:35:46]FM_MakeSignedData done [03:35:46]CreateOFDProtocolMessage [03:35:46]wFMCommunicate request_size=4 [03:35:46]MH_SAM_APDU [03:35:46]CAPDU: 80 11 00 00 [03:35:46]Write to MH i2c: E2 08 00 1A 12 80 11 00 00 00 00 00 00 A6 [03:35:46]Write i2c OK [03:35:46]MH_I2C_Read... [03:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:35:46]Read from MH i2c: E2 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: E2 17 00 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: E2 17 00 1A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FD [03:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [03:35:46]wFMCommunicate OK [03:35:46]CreateOFDProtocolMessage done [03:35:46]OFDSenderStorePacket 122967 [03:35:46]StoreOFDPacket docnum=122967 [03:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 05 77 07 01 5B 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 93 F0 43 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E0 01 00 35 04 06 00 BF 07 62 4D 63 EA C8 3E 2A 3B 60 FC A7 BB [03:35:46]CheckFolder [03:35:46]dirname=/storage/ofd_packets [03:35:46]CheckFolder done [03:35:46]ProducePacketName [03:35:46]name=ofd_packets/00122967 [03:35:46]NVStorageSaveData ofd_packets/00122967 [03:35:46]File name is /storage/ofd_packets/00122967 [03:35:46]Write 301 bytes [03:35:46]NVStorageSaveData done [03:35:46]OFDSenderStorePacket done [03:35:46]KKMCreateOFDPacket done [03:35:46]NVStorageSaveData kkm_last_timestamp [03:35:46]File name is /storage/kkm_last_timestamp [03:35:46]Write 4 bytes [03:35:46]NVStorageSaveData done [03:35:46]ExternCall_PrintAddStr [03:35:46]wPrintStart [03:35:46]Write to MH i2c: 01 00 00 1B 12 2D [03:35:46]Write i2c OK [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: 01 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: 01 07 00 [03:35:46]MH_I2C_Read... [03:35:46]Read from MH i2c: 01 07 00 1B 12 00 00 00 00 00 FF 0F 42 [03:35:46]RasterBufferAndPrint [03:35:46]line Счет N : (1)717751 [03:35:46]line ИНН: 02508201610067 [03:35:46]line Контрольно-Кассовый Чек [03:35:46]line ПРОДАЖА [03:35:46]line ТРК (МРК, ГНК) : 22 [03:35:46]line Товар: 2710124130 [03:35:46]line Аи-92-К-4 [03:35:46]line 4.460 * 67.40 [03:35:46]line = 300.60 [03:35:46]line НДС 12% НСП 1% [03:35:46]line > о реализуемом товаре [03:35:46]line ОКРУГЛЕНИЕ: -0.60 [03:35:46]line ИТОГО: 300.00 [03:35:46]line Внесено: 300.00 [03:35:46]line СДАЧА: 0.00 [03:35:46]line НСП 1% : 2.66 [03:35:46]line НДС 12% : 31.92 [03:35:46]line Наличными: 300.00 [03:35:46]line Безнал.: 0.00 [03:35:46]line Место: АЗС № 64 "Партнер Нефть" [03:35:46]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [03:35:46]line СНО: Общий режим [03:35:46]line Чек 8 25.11.2024 03:35 [03:35:46]line Смена: 556 ФФД: 1.0 [03:35:46]line ЗНМ: 0300000033 [03:35:46]line РНМ: 0000000000092681 [03:35:46]line Версия ККМ: 001 [03:35:46]line ФМ: 0000000000874881 [03:35:46]line ФД: 122967 [03:35:46]line ФПД: 210038434915306 [03:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T033547&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122967&fm=210038434915306&tin=02508201610067®Number=0000000000092681&sum=30000 [03:35:46]OFD Sender: Processing packet 122967 [packets to send 7, broken 6] [03:35:46]ProducePacketName [03:35:46]name=ofd_packets/00122967 [03:35:46]OFD Sender: To server: pG, [03:35:46]CommunicateWithHost lk.salyk.kg:30040 [03:35:46]ConnectInit lk.salyk.kg [03:35:46]written 0, free lines is 4095 [03:35:46]Connected sock=10 [03:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 05 77 07 01 5B 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 93 F0 43 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E0 01 00 35 04 06 00 BF 07 62 4D 63 EA C8 3E 2A 3B 60 FC A7 BB [03:35:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 CE E9 47 00 62 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E0 01 00 F4 03 04 00 5A 9C 43 67 B6 04 01 00 00 C6 B2 6E 32 08 9B 89 AE [03:35:47]CommunicateWithHost err = 0 [03:35:47]CheckOFDResponse [03:35:47]1017 (14) - 77093643461234 [03:35:47]1041 (16) - 0000000000874881 [03:35:47]1040 (4) - 122967 [03:35:47]1012 (4) - 24.11.2024 21:36 [03:35:47]1206 (1) - 0 [03:35:47]OFD Sender: Remove packet 122967 [03:35:47]ProducePacketName [03:35:47]name=ofd_packets/00122967 [03:35:47]NVStorageDeleteData [03:35:47]Write to MH i2c: 01 00 00 46 12 58 [03:35:47]Write i2c OK [03:35:47]MH_I2C_Read... [03:35:47]Read from MH i2c: 01 [03:35:47]MH_I2C_Read... [03:35:47]Read from MH i2c: 01 07 00 [03:35:47]MH_I2C_Read... [03:35:47]Read from MH i2c: 01 07 00 46 12 00 00 00 00 00 44 0C AF [03:35:47]RasterBufferAndPrint [03:35:47]line [03:35:47]line [03:35:47]line [03:35:47]line [03:35:47]line [03:35:47]written 0, free lines is 3146 [03:35:47]MH_Cut [03:35:47]Write to MH i2c: D1 01 00 4D 12 01 31 [03:35:47]Write i2c OK [03:35:47]MH_I2C_Read... [03:35:47]Read from MH i2c: D1 [03:35:47]MH_I2C_Read... [03:35:47]Read from MH i2c: D1 01 00 [03:35:47]MH_I2C_Read... [03:35:47]Read from MH i2c: D1 01 00 4D 12 00 30 [03:35:47]Write to MH i2c: 01 00 00 4E 12 60 [03:35:47]Write i2c OK [03:35:47]MH_I2C_Read... [03:35:47]OFD Sender: No OFD packet to send [03:35:48]*** Cut start [03:35:48]*** Partial cut [03:35:48]*** CUTSNS_PIN = 1 [03:35:48]*** CUTSNS_PIN = 0 [03:35:48]*** Brake cut motor [03:35:49]Read from MH i2c: 01 [03:35:49]MH_I2C_Read... [03:35:49]*** Stop cut motor [03:35:49]*** Cut end [03:35:49]Read from MH i2c: 01 07 00 [03:35:49]MH_I2C_Read... [03:35:49]Read from MH i2c: 01 07 00 4E 12 00 00 00 00 00 FF 0F 75 [03:35:49]process_action close_receipt done [03:35:49]requested_data is exist [03:35:49]produce_requested_data [03:35:49]requested_item fm.sn is exist - process it [03:35:49]wFMCommunicate request_size=4 [03:35:49]MH_SAM_APDU [03:35:49]CAPDU: 80 11 00 00 [03:35:49]Write to MH i2c: E2 08 00 4F 12 80 11 00 00 00 00 00 00 DB [03:35:49]Write i2c OK [03:35:49]MH_I2C_Read... [03:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:35:49]Read from MH i2c: E2 [03:35:49]MH_I2C_Read... [03:35:49]Read from MH i2c: E2 17 00 [03:35:49]MH_I2C_Read... [03:35:49]Read from MH i2c: E2 17 00 4F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 32 [03:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [03:35:49]wFMCommunicate OK [03:35:49]requested_item fd.num is exist - process it [03:35:49]SAM_PROTO_GetFieldsCounters [03:35:49]wFMCommunicate request_size=4 [03:35:49]MH_SAM_APDU [03:35:49]CAPDU: 80 13 00 00 [03:35:49]Write to MH i2c: E2 08 00 50 12 80 13 00 00 00 00 00 00 DE [03:35:49]Write i2c OK [03:35:49]MH_I2C_Read... [03:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:35:49]Read from MH i2c: E2 [03:35:49]MH_I2C_Read... [03:35:49]Read from MH i2c: E2 62 00 [03:35:49]MH_I2C_Read... [03:35:49]Read from MH i2c: E2 62 00 50 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 57 E0 01 00 0E 04 04 00 2C 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 82 [03:35:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 57 E0 01 00 0E 04 04 00 2C 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 [03:35:49]wFMCommunicate OK [03:35:49]SAM_PROTO_GetFieldsCounters done [03:35:49]requested_item shift.num is exist - process it [03:35:49]requested_item shift.opened is exist - process it [03:35:49]req_shift_opened [03:35:49]FM_GetShiftState [03:35:49]SAM_PROTO_GetShiftState [03:35:49]wFMCommunicate request_size=4 [03:35:49]MH_SAM_APDU [03:35:49]CAPDU: 80 13 01 00 [03:35:49]Write to MH i2c: E2 08 00 51 12 80 13 01 00 00 00 00 00 E0 [03:35:49]Write i2c OK [03:35:49]MH_I2C_Read... [03:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:35:49]Read from MH i2c: E2 [03:35:49]MH_I2C_Read... [03:35:49]Read from MH i2c: E2 0E 00 [03:35:49]MH_I2C_Read... [03:35:49]Read from MH i2c: E2 0E 00 51 12 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 5F [03:35:49]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [03:35:49]wFMCommunicate OK [03:35:49]SAM_PROTO_GetShiftState done [03:35:49]FM_GetShiftState done [03:35:49]req_shift_opened done [03:35:49]requested_item shift.open_date is exist - process it [03:35:49]req_shift_open_date [03:35:49]req_shift_open_date done [03:35:49]produce_requested_data done [03:35:49]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122967,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [03:35:49]process_action_free close_receipt [03:35:49]json_value_free [03:35:49]json_value_free done [03:35:49]process_json_proto returns [03:35:49]Send response to host [03:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122967,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [03:35:49]free response buf [03:35:49]execute_script done [03:35:49]execute_script returns [03:35:49]free content buf [03:35:49]Sock 7.Close socket [03:35:49]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]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:36]accept exits with 9 [05:26:36]New connection [05:26:36]New thread 3066723684 created [05:26:36]Thread 3066580324 joined [05:26:36]Waiting for new connection... [05:26:36] Sock 9.Parse request [05:26:36]Sock 9.Check first char [05:26:36]Sock 9.First char is OK [05:26:36]request: POST /json_proto HTTP/1.0 [05:26:36]Method: POST [05:26:36]URL: /json_proto [05:26:36]Method is POST - this is cgi request [05:26:36]url: /json_proto [05:26:36]query_string will be loaded in cgi processing [05:26:36]execute_cgi json_proto POST (null) [05:26:36]execute_cgi path=json_proto method=POST [05:26:36]POST find Content-Length [05:26:36]Host: 172.17.37.4:8080 [05:26:36]Content-Length: 682 [05:26:36]Content-Type: application/json [05:26:36] [05:26:36]POST finish read [05:26:36]Found Content-Length = 682 [05:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:26:36]execute_script... [05:26:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:26:36]POST & json_proto [05:26:36]process_json_proto [05:26:36]json parsed OK: [05:26:36]protocol is kg_v1.0 [05:26:36]action value=close_receipt [05:26:36]process_action close_receipt [05:26:36]cmd_close_receipt [05:26:36]MH_GetDate [05:26:36]Write to MH i2c: F0 00 00 52 12 53 [05:26:36]Write i2c OK [05:26:36]MH_I2C_Read... [05:26:36]Read from MH i2c: F0 [05:26:36]MH_I2C_Read... [05:26:36]Read from MH i2c: F0 09 00 [05:26:36]MH_I2C_Read... [05:26:36]Read from MH i2c: F0 09 00 52 12 00 90 0A 44 67 B8 5A 43 67 5D [05:26:36]GetLastDocTimeStamp 1732505747 [05:26:36]current date 1732512400 [05:26:36]FM_GetShiftState [05:26:36]SAM_PROTO_GetShiftState [05:26:36]wFMCommunicate request_size=4 [05:26:36]MH_SAM_APDU [05:26:36]CAPDU: 80 13 01 00 [05:26:36]Write to MH i2c: E2 08 00 53 12 80 13 01 00 00 00 00 00 E2 [05:26:36]Write i2c OK [05:26:36]MH_I2C_Read... [05:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:36]Read from MH i2c: E2 [05:26:36]MH_I2C_Read... [05:26:36]Read from MH i2c: E2 0E 00 [05:26:36]MH_I2C_Read... [05:26:36]Read from MH i2c: E2 0E 00 53 12 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 61 [05:26:36]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [05:26:36]wFMCommunicate OK [05:26:36]SAM_PROTO_GetShiftState done [05:26:36]FM_GetShiftState done [05:26:36]opened in 1732493066 [05:26:36]opened+sec_in_day 1732579466 [05:26:36]quantity*price = 100021 [05:26:36]sum+1 = 100023 [05:26:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 9 25.11.2024 05:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122968 ФПД: 237969396666746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T052640&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122968&fm=237969396666746&tin=02508201610067®Number=0000000000092681&sum=100000 [05:26:38]StoreToDocumentArchive [05:26:38]shift 556 fd 122968 [05:26:38]save to /storage/0556/doc_00122968 [05:26:38]save last doc name /storage/0556/doc_00122968 to /storage/kkm_last_doc_name [05:26:38]save OK [05:26:38]Clear old archive folders... [05:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:26:38]tlvbuf is 02092B50 [05:26:38]SAM_PROTO_ClearQueue [05:26:38]wFMCommunicate request_size=4 [05:26:38]MH_SAM_APDU [05:26:38]CAPDU: 80 09 00 00 [05:26:38]Write to MH i2c: E2 08 00 60 12 80 09 00 00 00 00 00 00 E4 [05:26:38]Write i2c OK [05:26:38]MH_I2C_Read... [05:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:26:38]Read from MH i2c: E2 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 03 00 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 03 00 60 12 00 90 00 E6 [05:26:38]RAPDU: 90 00 [05:26:38]wFMCommunicate OK [05:26:38]SAM_PROTO_ClearQueue done [05:26:38]KKMCreateOFDPacket [05:26:38]OFDProtocolAddRootSTLVToBuf [05:26:38]FM_MakeSignedData [05:26:38]FM_MakeSignedData [05:26:38]SAM_PROTO_SignData [05:26:38]wFMCommunicate request_size=4 [05:26:38]MH_SAM_APDU [05:26:38]CAPDU: 80 0D 01 02 [05:26:38]Write to MH i2c: E2 08 00 61 12 80 0D 01 02 00 00 00 00 EC [05:26:38]Write i2c OK [05:26:38]MH_I2C_Read... [05:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:26:38]Read from MH i2c: E2 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 03 00 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 03 00 61 12 00 90 00 E7 [05:26:38]RAPDU: 90 00 [05:26:38]wFMCommunicate OK [05:26:38]wFMCommunicate request_size=255 [05:26:38]MH_SAM_APDU [05:26:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 90 0A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 58 E0 01 00 35 04 06 00 D8 [05:26:38]Write to MH i2c: E2 02 01 62 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 90 0A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 58 E0 01 00 35 04 06 00 D8 00 00 D0 [05:26:38]Write i2c OK [05:26:38]MH_I2C_Read... [05:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:38]Read from MH i2c: E2 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 03 00 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 03 00 62 12 00 90 00 E8 [05:26:38]RAPDU: 90 00 [05:26:38]wFMCommunicate OK [05:26:38]wFMCommunicate request_size=10 [05:26:38]MH_SAM_APDU [05:26:38]CAPDU: 80 0D 02 02 05 6E 91 5B 11 7A [05:26:38]Write to MH i2c: E2 0D 00 63 12 80 0D 02 02 05 00 6E 91 5B 11 7A 00 00 DE [05:26:38]Write i2c OK [05:26:38]MH_I2C_Read... [05:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:38]Read from MH i2c: E2 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 03 00 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 03 00 63 12 00 90 00 E9 [05:26:38]RAPDU: 90 00 [05:26:38]wFMCommunicate OK [05:26:38]wFMCommunicate request_size=4 [05:26:38]MH_SAM_APDU [05:26:38]CAPDU: 80 0D 03 02 [05:26:38]Write to MH i2c: E2 08 00 64 12 80 0D 03 02 00 00 00 00 F1 [05:26:38]Write i2c OK [05:26:38]MH_I2C_Read... [05:26:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:26:38]Read from MH i2c: E2 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 0B 00 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 0B 00 64 12 00 67 34 6B 41 1D 90 DA B5 90 00 75 [05:26:38]RAPDU: 67 34 6B 41 1D 90 DA B5 90 00 [05:26:38]wFMCommunicate OK [05:26:38]SAM_PROTO_SignData done [05:26:38]FM_MakeSignedData done [05:26:38]CreateOFDProtocolMessage [05:26:38]wFMCommunicate request_size=4 [05:26:38]MH_SAM_APDU [05:26:38]CAPDU: 80 11 00 00 [05:26:38]Write to MH i2c: E2 08 00 65 12 80 11 00 00 00 00 00 00 F1 [05:26:38]Write i2c OK [05:26:38]MH_I2C_Read... [05:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:38]Read from MH i2c: E2 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 17 00 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: E2 17 00 65 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 48 [05:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [05:26:38]wFMCommunicate OK [05:26:38]CreateOFDProtocolMessage done [05:26:38]OFDSenderStorePacket 122968 [05:26:38]StoreOFDPacket docnum=122968 [05:26:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F0 C0 07 01 D3 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 90 0A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 58 E0 01 00 35 04 06 00 D8 6E 91 5B 11 7A 67 34 6B 41 1D 90 DA B5 [05:26:38]CheckFolder [05:26:38]dirname=/storage/ofd_packets [05:26:38]CheckFolder done [05:26:38]ProducePacketName [05:26:38]name=ofd_packets/00122968 [05:26:38]NVStorageSaveData ofd_packets/00122968 [05:26:38]File name is /storage/ofd_packets/00122968 [05:26:38]Write 301 bytes [05:26:38]NVStorageSaveData done [05:26:38]OFDSenderStorePacket done [05:26:38]KKMCreateOFDPacket done [05:26:38]NVStorageSaveData kkm_last_timestamp [05:26:38]File name is /storage/kkm_last_timestamp [05:26:38]Write 4 bytes [05:26:38]NVStorageSaveData done [05:26:38]ExternCall_PrintAddStr [05:26:38]wPrintStart [05:26:38]Write to MH i2c: 01 00 00 66 12 78 [05:26:38]Write i2c OK [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: 01 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: 01 07 00 [05:26:38]MH_I2C_Read... [05:26:38]Read from MH i2c: 01 07 00 66 12 00 00 00 00 00 FF 0F 8D [05:26:38]RasterBufferAndPrint [05:26:38]line Счет N : (1)717752 [05:26:38]line ИНН: 02508201610067 [05:26:38]line Контрольно-Кассовый Чек [05:26:38]line ПРОДАЖА [05:26:38]line ТРК (МРК, ГНК) : 32 [05:26:38]line Товар: 2710124130 [05:26:38]line Аи-92-К-4 [05:26:38]line 14.840 * 67.40 [05:26:38]line = 1000.22 [05:26:38]line НДС 12% НСП 1% [05:26:38]line > о реализуемом товаре [05:26:38]line ОКРУГЛЕНИЕ: -0.22 [05:26:38]line ИТОГО: 1000.00 [05:26:38]line Внесено: 1000.00 [05:26:38]line СДАЧА: 0.00 [05:26:38]line НСП 1% : 8.85 [05:26:38]line НДС 12% : 106.22 [05:26:38]line Наличными: 1000.00 [05:26:38]line Безнал.: 0.00 [05:26:38]line Место: АЗС № 64 "Партнер Нефть" [05:26:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [05:26:38]line СНО: Общий режим [05:26:38]line Чек 9 25.11.2024 05:26 [05:26:38]line Смена: 556 ФФД: 1.0 [05:26:38]line ЗНМ: 0300000033 [05:26:38]line РНМ: 0000000000092681 [05:26:38]line Версия ККМ: 001 [05:26:38]line ФМ: 0000000000874881 [05:26:38]line ФД: 122968 [05:26:38]line ФПД: 237969396666746 [05:26:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T052640&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122968&fm=237969396666746&tin=02508201610067®Number=0000000000092681&sum=100000 [05:26:38]OFD Sender: Processing packet 122968 [packets to send 7, broken 6] [05:26:38]ProducePacketName [05:26:38]name=ofd_packets/00122968 [05:26:38]OFD Sender: To server: pG, [05:26:38]CommunicateWithHost lk.salyk.kg:30040 [05:26:38]ConnectInit lk.salyk.kg [05:26:38]written 0, free lines is 4095 [05:26:39]Connected sock=10 [05:26:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F0 C0 07 01 D3 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 90 0A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 58 E0 01 00 35 04 06 00 D8 6E 91 5B 11 7A 67 34 6B 41 1D 90 DA B5 [05:26:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 E7 28 47 00 30 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 58 E0 01 00 F4 03 04 00 57 B6 43 67 B6 04 01 00 00 2B E2 D0 F3 5B AF D7 8D [05:26:39]CommunicateWithHost err = 0 [05:26:39]CheckOFDResponse [05:26:39]1017 (14) - 77093643461234 [05:26:39]1041 (16) - 0000000000874881 [05:26:39]1040 (4) - 122968 [05:26:39]1012 (4) - 24.11.2024 23:27 [05:26:39]1206 (1) - 0 [05:26:39]OFD Sender: Remove packet 122968 [05:26:39]ProducePacketName [05:26:39]name=ofd_packets/00122968 [05:26:39]NVStorageDeleteData [05:26:39]Write to MH i2c: 01 00 00 91 12 A3 [05:26:39]Write i2c OK [05:26:39]MH_I2C_Read... [05:26:39]Read from MH i2c: 01 [05:26:39]MH_I2C_Read... [05:26:39]Read from MH i2c: 01 07 00 [05:26:39]MH_I2C_Read... [05:26:39]Read from MH i2c: 01 07 00 91 12 00 00 00 00 00 50 0C 06 [05:26:39]RasterBufferAndPrint [05:26:39]line [05:26:39]line [05:26:39]line [05:26:39]line [05:26:39]line [05:26:39]written 0, free lines is 3156 [05:26:39]MH_Cut [05:26:39]Write to MH i2c: D1 01 00 98 12 01 7C [05:26:39]Write i2c OK [05:26:39]MH_I2C_Read... [05:26:39]Read from MH i2c: D1 [05:26:39]MH_I2C_Read... [05:26:39]Read from MH i2c: D1 01 00 [05:26:39]MH_I2C_Read... [05:26:39]Read from MH i2c: D1 01 00 98 12 00 7B [05:26:39]Write to MH i2c: 01 00 00 99 12 AB [05:26:39]Write i2c OK [05:26:39]MH_I2C_Read... [05:26:39]OFD Sender: No OFD packet to send [05:26:40]*** Cut start [05:26:40]*** Partial cut [05:26:40]*** CUTSNS_PIN = 1 [05:26:40]*** CUTSNS_PIN = 0 [05:26:41]*** Brake cut motor [05:26:41]Read from MH i2c: 01 [05:26:41]MH_I2C_Read... [05:26:41]*** Stop cut motor [05:26:41]*** Cut end [05:26:41]Read from MH i2c: 01 07 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: 01 07 00 99 12 00 00 00 00 00 FF 0F C0 [05:26:41]process_action close_receipt done [05:26:41]requested_data is exist [05:26:41]produce_requested_data [05:26:41]requested_item fm.sn is exist - process it [05:26:41]wFMCommunicate request_size=4 [05:26:41]MH_SAM_APDU [05:26:41]CAPDU: 80 11 00 00 [05:26:41]Write to MH i2c: E2 08 00 9A 12 80 11 00 00 00 00 00 00 26 [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:41]Read from MH i2c: E2 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 17 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 17 00 9A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7D [05:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [05:26:41]wFMCommunicate OK [05:26:41]requested_item fd.num is exist - process it [05:26:41]SAM_PROTO_GetFieldsCounters [05:26:41]wFMCommunicate request_size=4 [05:26:41]MH_SAM_APDU [05:26:41]CAPDU: 80 13 00 00 [05:26:41]Write to MH i2c: E2 08 00 9B 12 80 13 00 00 00 00 00 00 29 [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:26:41]Read from MH i2c: E2 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 62 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 62 00 9B 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 58 E0 01 00 0E 04 04 00 2C 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 D1 [05:26:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 58 E0 01 00 0E 04 04 00 2C 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 [05:26:41]wFMCommunicate OK [05:26:41]SAM_PROTO_GetFieldsCounters done [05:26:41]requested_item shift.num is exist - process it [05:26:41]requested_item shift.opened is exist - process it [05:26:41]req_shift_opened [05:26:41]FM_GetShiftState [05:26:41]SAM_PROTO_GetShiftState [05:26:41]wFMCommunicate request_size=4 [05:26:41]MH_SAM_APDU [05:26:41]CAPDU: 80 13 01 00 [05:26:41]Write to MH i2c: E2 08 00 9C 12 80 13 01 00 00 00 00 00 2B [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:41]Read from MH i2c: E2 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 0E 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 0E 00 9C 12 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 AA [05:26:41]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [05:26:41]wFMCommunicate OK [05:26:41]SAM_PROTO_GetShiftState done [05:26:41]FM_GetShiftState done [05:26:41]req_shift_opened done [05:26:41]requested_item shift.open_date is exist - process it [05:26:41]req_shift_open_date [05:26:41]req_shift_open_date done [05:26:41]produce_requested_data done [05:26:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122968,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [05:26:41]process_action_free close_receipt [05:26:41]json_value_free [05:26:41]json_value_free done [05:26:41]process_json_proto returns [05:26:41]Send response to host [05:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122968,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [05:26:41]free response buf [05:26:41]execute_script done [05:26:41]execute_script returns [05:26:41]free content buf [05:26:41]Sock 9.Close socket [05:26:41]Sock 9.Thread stoped [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:25]accept exits with 7 [05:30:25]New connection [05:30:25]New thread 3066580324 created [05:30:25]Thread 3066723684 joined [05:30:25]Waiting for new connection... [05:30:25] Sock 7.Parse request [05:30:25]Sock 7.Check first char [05:30:25]accept exits with 9 [05:30:25]New connection [05:30:25]New thread 3066723684 created [05:30:25] Sock 9.Parse request [05:30:25]Waiting for new connection... [05:30:25]Sock 9.Check first char [05:30:27]Sock 7.No data in socket [05:30:27]Sock 7.Close socket [05:30:27]Sock 7.Thread stoped [05:30:27]Sock 9.No data in socket [05:30:27]Sock 9.Close socket [05:30:27]Sock 9.Thread stoped [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:47]accept exits with 10 [06:00:47]New connection [06:00:47]New thread 3066436964 created [06:00:47]Thread 3066580324 joined [06:00:47]Thread 3066723684 joined [06:00:47]Waiting for new connection... [06:00:47] Sock 10.Parse request [06:00:47]Sock 10.Check first char [06:00:47]Sock 10.First char is OK [06:00:47]request: POST /json_proto HTTP/1.0 [06:00:47]Method: POST [06:00:47]URL: /json_proto [06:00:47]Method is POST - this is cgi request [06:00:47]url: /json_proto [06:00:47]query_string will be loaded in cgi processing [06:00:47]execute_cgi json_proto POST (null) [06:00:47]execute_cgi path=json_proto method=POST [06:00:47]POST find Content-Length [06:00:47]Host: 172.17.37.4:8080 [06:00:47]Content-Length: 686 [06:00:47]Content-Type: application/json [06:00:47] [06:00:47]POST finish read [06:00:47]Found Content-Length = 686 [06:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 20.030, "sum" : 1500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:47]execute_script... [06:00: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)717753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 20.030, "sum" : 1500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:47]POST & json_proto [06:00:47]process_json_proto [06:00:47]json parsed OK: [06:00:47]protocol is kg_v1.0 [06:00:47]action value=close_receipt [06:00:47]process_action close_receipt [06:00:47]cmd_close_receipt [06:00:47]MH_GetDate [06:00:47]Write to MH i2c: F0 00 00 9D 12 9E [06:00:47]Write i2c OK [06:00:47]MH_I2C_Read... [06:00:47]Read from MH i2c: F0 [06:00:47]MH_I2C_Read... [06:00:47]Read from MH i2c: F0 09 00 [06:00:47]MH_I2C_Read... [06:00:47]Read from MH i2c: F0 09 00 9D 12 00 93 12 44 67 B8 5A 43 67 B3 [06:00:47]GetLastDocTimeStamp 1732512400 [06:00:47]current date 1732514451 [06:00:47]FM_GetShiftState [06:00:47]SAM_PROTO_GetShiftState [06:00:47]wFMCommunicate request_size=4 [06:00:47]MH_SAM_APDU [06:00:47]CAPDU: 80 13 01 00 [06:00:47]Write to MH i2c: E2 08 00 9E 12 80 13 01 00 00 00 00 00 2D [06:00:47]Write i2c OK [06:00:47]MH_I2C_Read... [06:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:47]Read from MH i2c: E2 [06:00:47]MH_I2C_Read... [06:00:47]Read from MH i2c: E2 0E 00 [06:00:47]MH_I2C_Read... [06:00:47]Read from MH i2c: E2 0E 00 9E 12 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 AC [06:00:47]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [06:00:47]wFMCommunicate OK [06:00:47]SAM_PROTO_GetShiftState done [06:00:47]FM_GetShiftState done [06:00:47]opened in 1732493066 [06:00:47]opened+sec_in_day 1732579466 [06:00:47]quantity*price = 150024 [06:00:47]sum+1 = 150026 [06:00:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 10 25.11.2024 06:00 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122969 ФПД: 40915622615415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T060051&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122969&fm=40915622615415&tin=02508201610067®Number=0000000000092681&sum=150000 [06:00:48]StoreToDocumentArchive [06:00:48]shift 556 fd 122969 [06:00:48]save to /storage/0556/doc_00122969 [06:00:48]save last doc name /storage/0556/doc_00122969 to /storage/kkm_last_doc_name [06:00:48]save OK [06:00:48]Clear old archive folders... [06:00:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:00:48]tlvbuf is B6E89B60 [06:00:48]SAM_PROTO_ClearQueue [06:00:48]wFMCommunicate request_size=4 [06:00:48]MH_SAM_APDU [06:00:48]CAPDU: 80 09 00 00 [06:00:48]Write to MH i2c: E2 08 00 AB 12 80 09 00 00 00 00 00 00 2F [06:00:48]Write i2c OK [06:00:48]MH_I2C_Read... [06:00:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:00:49]Read from MH i2c: E2 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 03 00 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 03 00 AB 12 00 90 00 31 [06:00:49]RAPDU: 90 00 [06:00:49]wFMCommunicate OK [06:00:49]SAM_PROTO_ClearQueue done [06:00:49]KKMCreateOFDPacket [06:00:49]OFDProtocolAddRootSTLVToBuf [06:00:49]FM_MakeSignedData [06:00:49]FM_MakeSignedData [06:00:49]SAM_PROTO_SignData [06:00:49]wFMCommunicate request_size=4 [06:00:49]MH_SAM_APDU [06:00:49]CAPDU: 80 0D 01 02 [06:00:49]Write to MH i2c: E2 08 00 AC 12 80 0D 01 02 00 00 00 00 37 [06:00:49]Write i2c OK [06:00:49]MH_I2C_Read... [06:00:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:00:49]Read from MH i2c: E2 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 03 00 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 03 00 AC 12 00 90 00 32 [06:00:49]RAPDU: 90 00 [06:00:49]wFMCommunicate OK [06:00:49]wFMCommunicate request_size=255 [06:00:49]MH_SAM_APDU [06:00:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 09 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 93 12 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E0 01 00 35 04 06 00 [06:00:49]Write to MH i2c: E2 02 01 AD 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 09 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 93 12 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E0 01 00 35 04 06 00 00 00 A8 [06:00:49]Write i2c OK [06:00:49]MH_I2C_Read... [06:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:49]Read from MH i2c: E2 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 03 00 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 03 00 AD 12 00 90 00 33 [06:00:49]RAPDU: 90 00 [06:00:49]wFMCommunicate OK [06:00:49]wFMCommunicate request_size=11 [06:00:49]MH_SAM_APDU [06:00:49]CAPDU: 80 0D 02 02 06 25 36 69 26 D9 77 [06:00:49]Write to MH i2c: E2 0E 00 AE 12 80 0D 02 02 06 00 25 36 69 26 D9 77 00 00 80 [06:00:49]Write i2c OK [06:00:49]MH_I2C_Read... [06:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:49]Read from MH i2c: E2 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 03 00 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 03 00 AE 12 00 90 00 34 [06:00:49]RAPDU: 90 00 [06:00:49]wFMCommunicate OK [06:00:49]wFMCommunicate request_size=4 [06:00:49]MH_SAM_APDU [06:00:49]CAPDU: 80 0D 03 02 [06:00:49]Write to MH i2c: E2 08 00 AF 12 80 0D 03 02 00 00 00 00 3C [06:00:49]Write i2c OK [06:00:49]MH_I2C_Read... [06:00:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:00:49]Read from MH i2c: E2 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 0B 00 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 0B 00 AF 12 00 15 58 53 AE 40 87 67 B1 90 00 8A [06:00:49]RAPDU: 15 58 53 AE 40 87 67 B1 90 00 [06:00:49]wFMCommunicate OK [06:00:49]SAM_PROTO_SignData done [06:00:49]FM_MakeSignedData done [06:00:49]CreateOFDProtocolMessage [06:00:49]wFMCommunicate request_size=4 [06:00:49]MH_SAM_APDU [06:00:49]CAPDU: 80 11 00 00 [06:00:49]Write to MH i2c: E2 08 00 B0 12 80 11 00 00 00 00 00 00 3C [06:00:49]Write i2c OK [06:00:49]MH_I2C_Read... [06:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:49]Read from MH i2c: E2 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 17 00 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: E2 17 00 B0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 93 [06:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [06:00:49]wFMCommunicate OK [06:00:49]CreateOFDProtocolMessage done [06:00:49]OFDSenderStorePacket 122969 [06:00:49]StoreOFDPacket docnum=122969 [06:00:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 A7 F5 08 01 DA DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 09 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 93 12 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E0 01 00 35 04 06 00 25 36 69 26 D9 77 15 58 53 AE 40 87 67 B1 [06:00:49]CheckFolder [06:00:49]dirname=/storage/ofd_packets [06:00:49]CheckFolder done [06:00:49]ProducePacketName [06:00:49]name=ofd_packets/00122969 [06:00:49]NVStorageSaveData ofd_packets/00122969 [06:00:49]File name is /storage/ofd_packets/00122969 [06:00:49]Write 302 bytes [06:00:49]NVStorageSaveData done [06:00:49]OFDSenderStorePacket done [06:00:49]KKMCreateOFDPacket done [06:00:49]NVStorageSaveData kkm_last_timestamp [06:00:49]File name is /storage/kkm_last_timestamp [06:00:49]Write 4 bytes [06:00:49]NVStorageSaveData done [06:00:49]ExternCall_PrintAddStr [06:00:49]wPrintStart [06:00:49]Write to MH i2c: 01 00 00 B1 12 C3 [06:00:49]Write i2c OK [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: 01 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: 01 07 00 [06:00:49]MH_I2C_Read... [06:00:49]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 FF 0F D8 [06:00:49]RasterBufferAndPrint [06:00:49]line Счет N : (1)717753 [06:00:49]line ИНН: 02508201610067 [06:00:49]line Контрольно-Кассовый Чек [06:00:49]line ПРОДАЖА [06:00:49]line ТРК (МРК, ГНК) : 6 [06:00:49]line Товар: 2710194210 [06:00:49]line ДТ(л)-К-5 [06:00:49]line 20.030 * 74.90 [06:00:49]line = 1500.25 [06:00:49]line НДС 12% НСП 1% [06:00:49]line > о реализуемом товаре [06:00:49]line ОКРУГЛЕНИЕ: -0.25 [06:00:49]line ИТОГО: 1500.00 [06:00:49]line Внесено: 1500.00 [06:00:49]line СДАЧА: 0.00 [06:00:49]line НСП 1% : 13.28 [06:00:49]line НДС 12% : 159.32 [06:00:49]line Наличными: 1500.00 [06:00:49]line Безнал.: 0.00 [06:00:49]line Место: АЗС № 64 "Партнер Нефть" [06:00:49]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [06:00:49]line СНО: Общий режим [06:00:49]line Чек 10 25.11.2024 06:00 [06:00:49]line Смена: 556 ФФД: 1.0 [06:00:49]line ЗНМ: 0300000033 [06:00:49]line РНМ: 0000000000092681 [06:00:49]line Версия ККМ: 001 [06:00:49]line ФМ: 0000000000874881 [06:00:49]line ФД: 122969 [06:00:49]line ФПД: 40915622615415 [06:00:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T060051&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122969&fm=40915622615415&tin=02508201610067®Number=0000000000092681&sum=150000 [06:00:49]OFD Sender: Processing packet 122969 [packets to send 7, broken 6] [06:00:49]ProducePacketName [06:00:49]name=ofd_packets/00122969 [06:00:49]OFD Sender: To server: pG, [06:00:49]CommunicateWithHost lk.salyk.kg:30040 [06:00:49]ConnectInit lk.salyk.kg [06:00:49]written 0, free lines is 4095 [06:00:49]Connected sock=9 [06:00:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 A7 F5 08 01 DA DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 09 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 93 12 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E0 01 00 35 04 06 00 25 36 69 26 D9 77 15 58 53 AE 40 87 67 B1 [06:00:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 26 8F 47 00 BD 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E0 01 00 F4 03 04 00 59 BE 43 67 B6 04 01 00 00 90 26 68 41 FE BE 91 1C [06:00:50]CommunicateWithHost err = 0 [06:00:50]CheckOFDResponse [06:00:50]1017 (14) - 77093643461234 [06:00:50]1041 (16) - 0000000000874881 [06:00:50]1040 (4) - 122969 [06:00:50]1012 (4) - 25.11.2024 00:01 [06:00:50]1206 (1) - 0 [06:00:50]OFD Sender: Remove packet 122969 [06:00:50]ProducePacketName [06:00:50]name=ofd_packets/00122969 [06:00:50]NVStorageDeleteData [06:00:50]Write to MH i2c: 01 00 00 DC 12 EE [06:00:50]Write i2c OK [06:00:50]MH_I2C_Read... [06:00:50]Read from MH i2c: 01 [06:00:50]MH_I2C_Read... [06:00:50]Read from MH i2c: 01 07 00 [06:00:50]MH_I2C_Read... [06:00:50]Read from MH i2c: 01 07 00 DC 12 00 00 00 00 00 46 0C 47 [06:00:50]RasterBufferAndPrint [06:00:50]line [06:00:50]line [06:00:50]line [06:00:50]line [06:00:50]line [06:00:50]written 0, free lines is 3146 [06:00:50]MH_Cut [06:00:50]Write to MH i2c: D1 01 00 E3 12 01 C7 [06:00:50]Write i2c OK [06:00:50]MH_I2C_Read... [06:00:50]Read from MH i2c: D1 [06:00:50]MH_I2C_Read... [06:00:50]Read from MH i2c: D1 01 00 [06:00:50]MH_I2C_Read... [06:00:50]Read from MH i2c: D1 01 00 E3 12 00 C6 [06:00:50]Write to MH i2c: 01 00 00 E4 12 F6 [06:00:50]Write i2c OK [06:00:50]MH_I2C_Read... [06:00:50]OFD Sender: No OFD packet to send [06:00:51]*** Cut start [06:00:51]*** Partial cut [06:00:51]*** CUTSNS_PIN = 1 [06:00:51]*** CUTSNS_PIN = 0 [06:00:51]*** Brake cut motor [06:00:52]Read from MH i2c: 01 [06:00:52]MH_I2C_Read... [06:00:52]*** Stop cut motor [06:00:52]*** Cut end [06:00:52]Read from MH i2c: 01 07 00 [06:00:52]MH_I2C_Read... [06:00:52]Read from MH i2c: 01 07 00 E4 12 00 00 00 00 00 FF 0F 0B [06:00:52]process_action close_receipt done [06:00:52]requested_data is exist [06:00:52]produce_requested_data [06:00:52]requested_item fm.sn is exist - process it [06:00:52]wFMCommunicate request_size=4 [06:00:52]MH_SAM_APDU [06:00:52]CAPDU: 80 11 00 00 [06:00:52]Write to MH i2c: E2 08 00 E5 12 80 11 00 00 00 00 00 00 71 [06:00:52]Write i2c OK [06:00:52]MH_I2C_Read... [06:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:52]Read from MH i2c: E2 [06:00:52]MH_I2C_Read... [06:00:52]Read from MH i2c: E2 17 00 [06:00:52]MH_I2C_Read... [06:00:52]Read from MH i2c: E2 17 00 E5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C8 [06:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [06:00:52]wFMCommunicate OK [06:00:52]requested_item fd.num is exist - process it [06:00:52]SAM_PROTO_GetFieldsCounters [06:00:52]wFMCommunicate request_size=4 [06:00:52]MH_SAM_APDU [06:00:52]CAPDU: 80 13 00 00 [06:00:52]Write to MH i2c: E2 08 00 E6 12 80 13 00 00 00 00 00 00 74 [06:00:52]Write i2c OK [06:00:52]MH_I2C_Read... [06:00:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:00:52]Read from MH i2c: E2 [06:00:52]MH_I2C_Read... [06:00:52]Read from MH i2c: E2 62 00 [06:00:52]MH_I2C_Read... [06:00:52]Read from MH i2c: E2 62 00 E6 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 59 E0 01 00 0E 04 04 00 2C 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 20 [06:00:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 59 E0 01 00 0E 04 04 00 2C 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 [06:00:52]wFMCommunicate OK [06:00:52]SAM_PROTO_GetFieldsCounters done [06:00:52]requested_item shift.num is exist - process it [06:00:52]requested_item shift.opened is exist - process it [06:00:52]req_shift_opened [06:00:52]FM_GetShiftState [06:00:52]SAM_PROTO_GetShiftState [06:00:52]wFMCommunicate request_size=4 [06:00:52]MH_SAM_APDU [06:00:52]CAPDU: 80 13 01 00 [06:00:52]Write to MH i2c: E2 08 00 E7 12 80 13 01 00 00 00 00 00 76 [06:00:52]Write i2c OK [06:00:52]MH_I2C_Read... [06:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:52]Read from MH i2c: E2 [06:00:52]MH_I2C_Read... [06:00:52]Read from MH i2c: E2 0E 00 [06:00:52]MH_I2C_Read... [06:00:52]Read from MH i2c: E2 0E 00 E7 12 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F5 [06:00:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [06:00:52]wFMCommunicate OK [06:00:52]SAM_PROTO_GetShiftState done [06:00:52]FM_GetShiftState done [06:00:52]req_shift_opened done [06:00:52]requested_item shift.open_date is exist - process it [06:00:52]req_shift_open_date [06:00:52]req_shift_open_date done [06:00:52]produce_requested_data done [06:00:52]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122969,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [06:00:52]process_action_free close_receipt [06:00:52]json_value_free [06:00:52]json_value_free done [06:00:52]process_json_proto returns [06:00:52]Send response to host [06:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122969,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [06:00:52]free response buf [06:00:52]execute_script done [06:00:52]execute_script returns [06:00:52]free content buf [06:00:52]Sock 10.Close socket [06:00:52]Sock 10.Thread stoped [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]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:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]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:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30: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:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57: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:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:43]accept exits with 7 [07:08:43]New connection [07:08:43]New thread 3066723684 created [07:08:43]Thread 3066436964 joined [07:08:43]Waiting for new connection... [07:08:43] Sock 7.Parse request [07:08:43]Sock 7.Check first char [07:08:43]Sock 7.First char is OK [07:08:43]request: POST /json_proto HTTP/1.0 [07:08:43]Method: POST [07:08:43]URL: /json_proto [07:08:43]Method is POST - this is cgi request [07:08:43]url: /json_proto [07:08:43]query_string will be loaded in cgi processing [07:08:43]execute_cgi json_proto POST (null) [07:08:43]execute_cgi path=json_proto method=POST [07:08:43]POST find Content-Length [07:08:43]Host: 172.17.37.4:8080 [07:08:43]Content-Length: 639 [07:08:43]Content-Type: application/json [07:08:43] [07:08:43]POST finish read [07:08:43]Found Content-Length = 639 [07:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.000, "sum" : 337.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:43]execute_script... [07:08:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.000, "sum" : 337.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:43]POST & json_proto [07:08:43]process_json_proto [07:08:43]json parsed OK: [07:08:43]protocol is kg_v1.0 [07:08:43]action value=close_receipt [07:08:43]process_action close_receipt [07:08:43]cmd_close_receipt [07:08:43]MH_GetDate [07:08:43]Write to MH i2c: F0 00 00 E8 12 E9 [07:08:43]Write i2c OK [07:08:43]MH_I2C_Read... [07:08:43]Read from MH i2c: F0 [07:08:43]MH_I2C_Read... [07:08:43]Read from MH i2c: F0 09 00 [07:08:43]MH_I2C_Read... [07:08:43]Read from MH i2c: F0 09 00 E8 12 00 7F 22 44 67 B8 5A 43 67 FA [07:08:43]GetLastDocTimeStamp 1732514451 [07:08:43]current date 1732518527 [07:08:43]FM_GetShiftState [07:08:43]SAM_PROTO_GetShiftState [07:08:43]wFMCommunicate request_size=4 [07:08:43]MH_SAM_APDU [07:08:43]CAPDU: 80 13 01 00 [07:08:43]Write to MH i2c: E2 08 00 E9 12 80 13 01 00 00 00 00 00 78 [07:08:44]Write i2c OK [07:08:44]MH_I2C_Read... [07:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:44]Read from MH i2c: E2 [07:08:44]MH_I2C_Read... [07:08:44]Read from MH i2c: E2 0E 00 [07:08:44]MH_I2C_Read... [07:08:44]Read from MH i2c: E2 0E 00 E9 12 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F7 [07:08:44]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:08:44]wFMCommunicate OK [07:08:44]SAM_PROTO_GetShiftState done [07:08:44]FM_GetShiftState done [07:08:44]opened in 1732493066 [07:08:44]opened+sec_in_day 1732579466 [07:08:44]quantity*price = 33700 [07:08:44]sum+1 = 33701 [07:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 337.00 НСП 1% : 2.98 НДС 12% : 35.79 Наличными: 337.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 11 25.11.2024 07:08 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122970 ФПД: 144984072489609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T070847&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122970&fm=144984072489609&tin=02508201610067®Number=0000000000092681&sum=33700 [07:08:45]StoreToDocumentArchive [07:08:45]shift 556 fd 122970 [07:08:45]save to /storage/0556/doc_00122970 [07:08:45]save last doc name /storage/0556/doc_00122970 to /storage/kkm_last_doc_name [07:08:45]save OK [07:08:45]Clear old archive folders... [07:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:45]tlvbuf is 02082A90 [07:08:45]SAM_PROTO_ClearQueue [07:08:45]wFMCommunicate request_size=4 [07:08:45]MH_SAM_APDU [07:08:45]CAPDU: 80 09 00 00 [07:08:45]Write to MH i2c: E2 08 00 F6 12 80 09 00 00 00 00 00 00 7A [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:45]Read from MH i2c: E2 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 F6 12 00 90 00 7C [07:08:45]RAPDU: 90 00 [07:08:45]wFMCommunicate OK [07:08:45]SAM_PROTO_ClearQueue done [07:08:45]KKMCreateOFDPacket [07:08:45]OFDProtocolAddRootSTLVToBuf [07:08:45]FM_MakeSignedData [07:08:45]FM_MakeSignedData [07:08:45]SAM_PROTO_SignData [07:08:45]wFMCommunicate request_size=4 [07:08:45]MH_SAM_APDU [07:08:45]CAPDU: 80 0D 01 02 [07:08:45]Write to MH i2c: E2 08 00 F7 12 80 0D 01 02 00 00 00 00 82 [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:45]Read from MH i2c: E2 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 F7 12 00 90 00 7D [07:08:45]RAPDU: 90 00 [07:08:45]wFMCommunicate OK [07:08:45]wFMCommunicate request_size=255 [07:08:45]MH_SAM_APDU [07:08:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 A4 83 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 7F 22 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5A E0 01 00 35 04 06 00 83 [07:08:45]Write to MH i2c: E2 02 01 F8 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 A4 83 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 7F 22 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5A E0 01 00 35 04 06 00 83 00 00 84 [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:45]Read from MH i2c: E2 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 F8 12 00 90 00 7E [07:08:45]RAPDU: 90 00 [07:08:45]wFMCommunicate OK [07:08:45]wFMCommunicate request_size=10 [07:08:45]MH_SAM_APDU [07:08:45]CAPDU: 80 0D 02 02 05 DC BC 23 8A 89 [07:08:45]Write to MH i2c: E2 0D 00 F9 12 80 0D 02 02 05 00 DC BC 23 8A 89 00 00 5D [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:45]Read from MH i2c: E2 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 F9 12 00 90 00 7F [07:08:45]RAPDU: 90 00 [07:08:45]wFMCommunicate OK [07:08:45]wFMCommunicate request_size=4 [07:08:45]MH_SAM_APDU [07:08:45]CAPDU: 80 0D 03 02 [07:08:45]Write to MH i2c: E2 08 00 FA 12 80 0D 03 02 00 00 00 00 87 [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:45]Read from MH i2c: E2 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 0B 00 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 0B 00 FA 12 00 C3 4E 84 81 DB 0E 46 C8 90 00 95 [07:08:45]RAPDU: C3 4E 84 81 DB 0E 46 C8 90 00 [07:08:45]wFMCommunicate OK [07:08:45]SAM_PROTO_SignData done [07:08:45]FM_MakeSignedData done [07:08:45]CreateOFDProtocolMessage [07:08:45]wFMCommunicate request_size=4 [07:08:45]MH_SAM_APDU [07:08:45]CAPDU: 80 11 00 00 [07:08:45]Write to MH i2c: E2 08 00 FB 12 80 11 00 00 00 00 00 00 87 [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:45]Read from MH i2c: E2 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 17 00 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 17 00 FB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DE [07:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:08:45]wFMCommunicate OK [07:08:45]CreateOFDProtocolMessage done [07:08:45]OFDSenderStorePacket 122970 [07:08:45]StoreOFDPacket docnum=122970 [07:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8D BB 07 01 75 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 A4 83 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 7F 22 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5A E0 01 00 35 04 06 00 83 DC BC 23 8A 89 C3 4E 84 81 DB 0E 46 C8 [07:08:45]CheckFolder [07:08:45]dirname=/storage/ofd_packets [07:08:45]CheckFolder done [07:08:45]ProducePacketName [07:08:45]name=ofd_packets/00122970 [07:08:45]NVStorageSaveData ofd_packets/00122970 [07:08:45]File name is /storage/ofd_packets/00122970 [07:08:45]Write 301 bytes [07:08:45]NVStorageSaveData done [07:08:45]OFDSenderStorePacket done [07:08:45]KKMCreateOFDPacket done [07:08:45]NVStorageSaveData kkm_last_timestamp [07:08:45]File name is /storage/kkm_last_timestamp [07:08:45]Write 4 bytes [07:08:45]NVStorageSaveData done [07:08:45]ExternCall_PrintAddStr [07:08:45]wPrintStart [07:08:45]Write to MH i2c: 01 00 00 FC 12 0E [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: 01 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: 01 07 00 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: 01 07 00 FC 12 00 00 00 00 00 FF 0F 23 [07:08:45]RasterBufferAndPrint [07:08:45]line Счет N : (1)717754 [07:08:45]line ИНН: 02508201610067 [07:08:45]line Контрольно-Кассовый Чек [07:08:45]line ПРОДАЖА [07:08:45]line ТРК (МРК, ГНК) : 12 [07:08:45]line Товар: 2710124130 [07:08:45]line Аи-92-К-4 [07:08:45]line 5.000 * 67.40 [07:08:45]line = 337.00 [07:08:45]line НДС 12% НСП 1% [07:08:45]line > о реализуемом товаре [07:08:45]line ИТОГО: 337.00 [07:08:45]line НСП 1% : 2.98 [07:08:45]line НДС 12% : 35.79 [07:08:45]line Наличными: 337.00 [07:08:45]line Безнал.: 0.00 [07:08:45]line Место: АЗС № 64 "Партнер Нефть" [07:08:45]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:08:45]line СНО: Общий режим [07:08:45]line Чек 11 25.11.2024 07:08 [07:08:45]line Смена: 556 ФФД: 1.0 [07:08:45]line ЗНМ: 0300000033 [07:08:45]line РНМ: 0000000000092681 [07:08:45]line Версия ККМ: 001 [07:08:45]line ФМ: 0000000000874881 [07:08:45]line ФД: 122970 [07:08:45]line ФПД: 144984072489609 [07:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T070847&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122970&fm=144984072489609&tin=02508201610067®Number=0000000000092681&sum=33700 [07:08:46]OFD Sender: Processing packet 122970 [packets to send 7, broken 6] [07:08:46]ProducePacketName [07:08:46]name=ofd_packets/00122970 [07:08:46]OFD Sender: To server: pG, [07:08:46]CommunicateWithHost lk.salyk.kg:30040 [07:08:46]ConnectInit lk.salyk.kg [07:08:46]written 0, free lines is 4095 [07:08:46]Connected sock=10 [07:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8D BB 07 01 75 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 A4 83 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 7F 22 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5A E0 01 00 35 04 06 00 83 DC BC 23 8A 89 C3 4E 84 81 DB 0E 46 C8 [07:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 40 FB 47 00 9E 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 34 38 38 31 10 04 04 00 5A E0 01 00 F4 03 04 00 46 CE 43 67 B6 04 01 00 00 8A 02 DD CF 58 7A 8C 32 [07:08:46]CommunicateWithHost err = 0 [07:08:46]CheckOFDResponse [07:08:46]1017 (14) - 77093643461234 [07:08:46]1041 (16) - 0000000000874881 [07:08:46]1040 (4) - 122970 [07:08:46]1012 (4) - 25.11.2024 01:09 [07:08:46]1206 (1) - 0 [07:08:46]OFD Sender: Remove packet 122970 [07:08:46]ProducePacketName [07:08:46]name=ofd_packets/00122970 [07:08:46]NVStorageDeleteData [07:08:46]Write to MH i2c: 01 00 00 24 13 37 [07:08:46]Write i2c OK [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: 01 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: 01 07 00 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 88 0C D2 [07:08:46]RasterBufferAndPrint [07:08:46]line [07:08:46]line [07:08:46]line [07:08:46]line [07:08:46]line [07:08:46]written 0, free lines is 3213 [07:08:46]MH_Cut [07:08:46]Write to MH i2c: D1 01 00 2B 13 01 10 [07:08:46]Write i2c OK [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: D1 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: D1 01 00 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: D1 01 00 2B 13 00 0F [07:08:46]Write to MH i2c: 01 00 00 2C 13 3F [07:08:46]Write i2c OK [07:08:46]MH_I2C_Read... [07:08:46]OFD Sender: No OFD packet to send [07:08:47]*** Cut start [07:08:47]*** Partial cut [07:08:47]*** CUTSNS_PIN = 1 [07:08:47]*** CUTSNS_PIN = 0 [07:08:48]*** Brake cut motor [07:08:48]Read from MH i2c: 01 [07:08:48]MH_I2C_Read... [07:08:48]*** Stop cut motor [07:08:48]*** Cut end [07:08:48]Read from MH i2c: 01 07 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: 01 07 00 2C 13 00 00 00 00 00 FF 0F 54 [07:08:48]process_action close_receipt done [07:08:48]requested_data is exist [07:08:48]produce_requested_data [07:08:48]requested_item fm.sn is exist - process it [07:08:48]wFMCommunicate request_size=4 [07:08:48]MH_SAM_APDU [07:08:48]CAPDU: 80 11 00 00 [07:08:48]Write to MH i2c: E2 08 00 2D 13 80 11 00 00 00 00 00 00 BA [07:08:48]Write i2c OK [07:08:48]MH_I2C_Read... [07:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:48]Read from MH i2c: E2 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 17 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 17 00 2D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 11 [07:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:08:48]wFMCommunicate OK [07:08:48]requested_item fd.num is exist - process it [07:08:48]SAM_PROTO_GetFieldsCounters [07:08:48]wFMCommunicate request_size=4 [07:08:48]MH_SAM_APDU [07:08:48]CAPDU: 80 13 00 00 [07:08:48]Write to MH i2c: E2 08 00 2E 13 80 13 00 00 00 00 00 00 BD [07:08:48]Write i2c OK [07:08:48]MH_I2C_Read... [07:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:48]Read from MH i2c: E2 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 62 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 62 00 2E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5A E0 01 00 0E 04 04 00 2C 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 6D [07:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5A E0 01 00 0E 04 04 00 2C 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 [07:08:48]wFMCommunicate OK [07:08:48]SAM_PROTO_GetFieldsCounters done [07:08:48]requested_item shift.num is exist - process it [07:08:48]requested_item shift.opened is exist - process it [07:08:48]req_shift_opened [07:08:48]FM_GetShiftState [07:08:48]SAM_PROTO_GetShiftState [07:08:48]wFMCommunicate request_size=4 [07:08:48]MH_SAM_APDU [07:08:48]CAPDU: 80 13 01 00 [07:08:48]Write to MH i2c: E2 08 00 2F 13 80 13 01 00 00 00 00 00 BF [07:08:48]Write i2c OK [07:08:48]MH_I2C_Read... [07:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:48]Read from MH i2c: E2 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 0E 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 0E 00 2F 13 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3E [07:08:48]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:08:48]wFMCommunicate OK [07:08:48]SAM_PROTO_GetShiftState done [07:08:48]FM_GetShiftState done [07:08:48]req_shift_opened done [07:08:48]requested_item shift.open_date is exist - process it [07:08:48]req_shift_open_date [07:08:48]req_shift_open_date done [07:08:48]produce_requested_data done [07:08:48]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122970,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [07:08:48]process_action_free close_receipt [07:08:48]json_value_free [07:08:48]json_value_free done [07:08:48]process_json_proto returns [07:08:48]Send response to host [07:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122970,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [07:08:48]free response buf [07:08:48]execute_script done [07:08:48]execute_script returns [07:08:48]free content buf [07:08:48]Sock 7.Close socket [07:08:48]Sock 7.Thread stoped [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:07]accept exits with 9 [07:11:07]New connection [07:11:07]New thread 3066580324 created [07:11:07]Thread 3066723684 joined [07:11:07]Waiting for new connection... [07:11:07] Sock 9.Parse request [07:11:07]Sock 9.Check first char [07:11:07]Sock 9.First char is OK [07:11:07]request: POST /json_proto HTTP/1.0 [07:11:07]Method: POST [07:11:07]URL: /json_proto [07:11:07]Method is POST - this is cgi request [07:11:07]url: /json_proto [07:11:07]query_string will be loaded in cgi processing [07:11:07]execute_cgi json_proto POST (null) [07:11:07]execute_cgi path=json_proto method=POST [07:11:07]POST find Content-Length [07:11:07]Host: 172.17.37.4:8080 [07:11:07]Content-Length: 682 [07:11:07]Content-Type: application/json [07:11:07] [07:11:07]POST finish read [07:11:07]Found Content-Length = 682 [07:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:07]execute_script... [07:11:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:07]POST & json_proto [07:11:07]process_json_proto [07:11:07]json parsed OK: [07:11:07]protocol is kg_v1.0 [07:11:07]action value=close_receipt [07:11:07]process_action close_receipt [07:11:07]cmd_close_receipt [07:11:07]MH_GetDate [07:11:07]Write to MH i2c: F0 00 00 30 13 32 [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: F0 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: F0 09 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: F0 09 00 30 13 00 0E 23 44 67 B8 5A 43 67 D3 [07:11:07]GetLastDocTimeStamp 1732518527 [07:11:07]current date 1732518670 [07:11:07]FM_GetShiftState [07:11:07]SAM_PROTO_GetShiftState [07:11:07]wFMCommunicate request_size=4 [07:11:07]MH_SAM_APDU [07:11:07]CAPDU: 80 13 01 00 [07:11:07]Write to MH i2c: E2 08 00 31 13 80 13 01 00 00 00 00 00 C1 [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:07]Read from MH i2c: E2 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 0E 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 0E 00 31 13 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 40 [07:11:07]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:11:07]wFMCommunicate OK [07:11:07]SAM_PROTO_GetShiftState done [07:11:07]FM_GetShiftState done [07:11:07]opened in 1732493066 [07:11:07]opened+sec_in_day 1732579466 [07:11:07]quantity*price = 100021 [07:11:07]sum+1 = 100023 [07:11:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 12 25.11.2024 07:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122971 ФПД: 160347343578903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T071110&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122971&fm=160347343578903&tin=02508201610067®Number=0000000000092681&sum=100000 [07:11:08]StoreToDocumentArchive [07:11:08]shift 556 fd 122971 [07:11:08]save to /storage/0556/doc_00122971 [07:11:08]save last doc name /storage/0556/doc_00122971 to /storage/kkm_last_doc_name [07:11:08]save OK [07:11:08]Clear old archive folders... [07:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:11:08]tlvbuf is B6E89530 [07:11:08]SAM_PROTO_ClearQueue [07:11:08]wFMCommunicate request_size=4 [07:11:08]MH_SAM_APDU [07:11:08]CAPDU: 80 09 00 00 [07:11:08]Write to MH i2c: E2 08 00 3E 13 80 09 00 00 00 00 00 00 C3 [07:11:08]Write i2c OK [07:11:08]MH_I2C_Read... [07:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:08]Read from MH i2c: E2 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 03 00 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 03 00 3E 13 00 90 00 C5 [07:11:08]RAPDU: 90 00 [07:11:08]wFMCommunicate OK [07:11:08]SAM_PROTO_ClearQueue done [07:11:08]KKMCreateOFDPacket [07:11:08]OFDProtocolAddRootSTLVToBuf [07:11:08]FM_MakeSignedData [07:11:08]FM_MakeSignedData [07:11:08]SAM_PROTO_SignData [07:11:08]wFMCommunicate request_size=4 [07:11:08]MH_SAM_APDU [07:11:08]CAPDU: 80 0D 01 02 [07:11:08]Write to MH i2c: E2 08 00 3F 13 80 0D 01 02 00 00 00 00 CB [07:11:08]Write i2c OK [07:11:08]MH_I2C_Read... [07:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:08]Read from MH i2c: E2 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 03 00 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 03 00 3F 13 00 90 00 C6 [07:11:08]RAPDU: 90 00 [07:11:08]wFMCommunicate OK [07:11:08]wFMCommunicate request_size=255 [07:11:08]MH_SAM_APDU [07:11:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0E 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5B E0 01 00 35 04 06 00 91 [07:11:08]Write to MH i2c: E2 02 01 40 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0E 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5B E0 01 00 35 04 06 00 91 00 00 05 [07:11:08]Write i2c OK [07:11:08]MH_I2C_Read... [07:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:08]Read from MH i2c: E2 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 03 00 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 03 00 40 13 00 90 00 C7 [07:11:08]RAPDU: 90 00 [07:11:08]wFMCommunicate OK [07:11:08]wFMCommunicate request_size=10 [07:11:08]MH_SAM_APDU [07:11:08]CAPDU: 80 0D 02 02 05 D5 C6 74 67 17 [07:11:08]Write to MH i2c: E2 0D 00 41 13 80 0D 02 02 05 00 D5 C6 74 67 17 00 00 65 [07:11:08]Write i2c OK [07:11:08]MH_I2C_Read... [07:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:08]Read from MH i2c: E2 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 03 00 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 03 00 41 13 00 90 00 C8 [07:11:08]RAPDU: 90 00 [07:11:08]wFMCommunicate OK [07:11:08]wFMCommunicate request_size=4 [07:11:08]MH_SAM_APDU [07:11:08]CAPDU: 80 0D 03 02 [07:11:08]Write to MH i2c: E2 08 00 42 13 80 0D 03 02 00 00 00 00 D0 [07:11:08]Write i2c OK [07:11:08]MH_I2C_Read... [07:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:08]Read from MH i2c: E2 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 0B 00 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 0B 00 42 13 00 49 DF 69 AD 45 03 A5 AB 90 00 A7 [07:11:08]RAPDU: 49 DF 69 AD 45 03 A5 AB 90 00 [07:11:08]wFMCommunicate OK [07:11:08]SAM_PROTO_SignData done [07:11:08]FM_MakeSignedData done [07:11:08]CreateOFDProtocolMessage [07:11:08]wFMCommunicate request_size=4 [07:11:08]MH_SAM_APDU [07:11:08]CAPDU: 80 11 00 00 [07:11:08]Write to MH i2c: E2 08 00 43 13 80 11 00 00 00 00 00 00 D0 [07:11:08]Write i2c OK [07:11:08]MH_I2C_Read... [07:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:08]Read from MH i2c: E2 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 17 00 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: E2 17 00 43 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 27 [07:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:11:08]wFMCommunicate OK [07:11:08]CreateOFDProtocolMessage done [07:11:08]OFDSenderStorePacket 122971 [07:11:08]StoreOFDPacket docnum=122971 [07:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7E 81 07 01 87 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0E 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5B E0 01 00 35 04 06 00 91 D5 C6 74 67 17 49 DF 69 AD 45 03 A5 AB [07:11:08]CheckFolder [07:11:08]dirname=/storage/ofd_packets [07:11:08]CheckFolder done [07:11:08]ProducePacketName [07:11:08]name=ofd_packets/00122971 [07:11:08]NVStorageSaveData ofd_packets/00122971 [07:11:08]File name is /storage/ofd_packets/00122971 [07:11:08]Write 301 bytes [07:11:08]NVStorageSaveData done [07:11:08]OFDSenderStorePacket done [07:11:08]KKMCreateOFDPacket done [07:11:08]NVStorageSaveData kkm_last_timestamp [07:11:08]File name is /storage/kkm_last_timestamp [07:11:08]Write 4 bytes [07:11:08]NVStorageSaveData done [07:11:08]ExternCall_PrintAddStr [07:11:08]wPrintStart [07:11:08]Write to MH i2c: 01 00 00 44 13 57 [07:11:08]Write i2c OK [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: 01 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: 01 07 00 [07:11:08]MH_I2C_Read... [07:11:08]Read from MH i2c: 01 07 00 44 13 00 00 00 00 00 FF 0F 6C [07:11:08]RasterBufferAndPrint [07:11:08]line Счет N : (1)717755 [07:11:08]line ИНН: 02508201610067 [07:11:08]line Контрольно-Кассовый Чек [07:11:08]line ПРОДАЖА [07:11:08]line ТРК (МРК, ГНК) : 22 [07:11:08]line Товар: 2710124130 [07:11:08]line Аи-92-К-4 [07:11:08]line 14.840 * 67.40 [07:11:08]line = 1000.22 [07:11:08]line НДС 12% НСП 1% [07:11:08]line > о реализуемом товаре [07:11:08]line ОКРУГЛЕНИЕ: -0.22 [07:11:08]line ИТОГО: 1000.00 [07:11:08]line Внесено: 1000.00 [07:11:08]line СДАЧА: 0.00 [07:11:08]line НСП 1% : 8.85 [07:11:08]line НДС 12% : 106.22 [07:11:08]line Наличными: 1000.00 [07:11:08]line Безнал.: 0.00 [07:11:08]line Место: АЗС № 64 "Партнер Нефть" [07:11:08]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:11:08]line СНО: Общий режим [07:11:08]line Чек 12 25.11.2024 07:11 [07:11:08]line Смена: 556 ФФД: 1.0 [07:11:08]line ЗНМ: 0300000033 [07:11:08]line РНМ: 0000000000092681 [07:11:08]line Версия ККМ: 001 [07:11:08]line ФМ: 0000000000874881 [07:11:08]line ФД: 122971 [07:11:08]line ФПД: 160347343578903 [07:11:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T071110&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122971&fm=160347343578903&tin=02508201610067®Number=0000000000092681&sum=100000 [07:11:09]OFD Sender: Processing packet 122971 [packets to send 7, broken 6] [07:11:09]ProducePacketName [07:11:09]name=ofd_packets/00122971 [07:11:09]OFD Sender: To server: pG, [07:11:09]CommunicateWithHost lk.salyk.kg:30040 [07:11:09]ConnectInit lk.salyk.kg [07:11:09]written 0, free lines is 4095 [07:11:09]Connected sock=7 [07:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7E 81 07 01 87 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0E 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5B E0 01 00 35 04 06 00 91 D5 C6 74 67 17 49 DF 69 AD 45 03 A5 AB [07:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AC 5F 47 00 BC D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5B E0 01 00 F4 03 04 00 D5 CE 43 67 B6 04 01 00 00 97 EE CD 7D 2F 02 D5 F0 [07:11:09]CommunicateWithHost err = 0 [07:11:09]CheckOFDResponse [07:11:09]1017 (14) - 77093643461234 [07:11:09]1041 (16) - 0000000000874881 [07:11:09]1040 (4) - 122971 [07:11:09]1012 (4) - 25.11.2024 01:11 [07:11:09]1206 (1) - 0 [07:11:09]OFD Sender: Remove packet 122971 [07:11:09]ProducePacketName [07:11:09]name=ofd_packets/00122971 [07:11:09]NVStorageDeleteData [07:11:09]Write to MH i2c: 01 00 00 6F 13 82 [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: 01 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: 01 07 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: 01 07 00 6F 13 00 00 00 00 00 54 0C E9 [07:11:09]RasterBufferAndPrint [07:11:09]line [07:11:09]line [07:11:09]line [07:11:09]line [07:11:09]line [07:11:09]written 0, free lines is 3160 [07:11:09]MH_Cut [07:11:09]Write to MH i2c: D1 01 00 76 13 01 5B [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: D1 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: D1 01 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: D1 01 00 76 13 00 5A [07:11:09]Write to MH i2c: 01 00 00 77 13 8A [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:10]OFD Sender: No OFD packet to send [07:11:11]*** Cut start [07:11:11]*** Partial cut [07:11:11]*** CUTSNS_PIN = 1 [07:11:11]*** CUTSNS_PIN = 0 [07:11:11]*** Brake cut motor [07:11:11]Read from MH i2c: 01 [07:11:11]MH_I2C_Read... [07:11:11]*** Stop cut motor [07:11:11]*** Cut end [07:11:11]Read from MH i2c: 01 07 00 [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: 01 07 00 77 13 00 00 00 00 00 FF 0F 9F [07:11:11]process_action close_receipt done [07:11:11]requested_data is exist [07:11:11]produce_requested_data [07:11:11]requested_item fm.sn is exist - process it [07:11:11]wFMCommunicate request_size=4 [07:11:11]MH_SAM_APDU [07:11:11]CAPDU: 80 11 00 00 [07:11:11]Write to MH i2c: E2 08 00 78 13 80 11 00 00 00 00 00 00 05 [07:11:11]Write i2c OK [07:11:11]MH_I2C_Read... [07:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:11]Read from MH i2c: E2 [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: E2 17 00 [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: E2 17 00 78 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5C [07:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:11:11]wFMCommunicate OK [07:11:11]requested_item fd.num is exist - process it [07:11:11]SAM_PROTO_GetFieldsCounters [07:11:11]wFMCommunicate request_size=4 [07:11:11]MH_SAM_APDU [07:11:11]CAPDU: 80 13 00 00 [07:11:11]Write to MH i2c: E2 08 00 79 13 80 13 00 00 00 00 00 00 08 [07:11:11]Write i2c OK [07:11:11]MH_I2C_Read... [07:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:11]Read from MH i2c: E2 [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: E2 62 00 [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: E2 62 00 79 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5B E0 01 00 0E 04 04 00 2C 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 BC [07:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5B E0 01 00 0E 04 04 00 2C 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 [07:11:11]wFMCommunicate OK [07:11:11]SAM_PROTO_GetFieldsCounters done [07:11:11]requested_item shift.num is exist - process it [07:11:11]requested_item shift.opened is exist - process it [07:11:11]req_shift_opened [07:11:11]FM_GetShiftState [07:11:11]SAM_PROTO_GetShiftState [07:11:11]wFMCommunicate request_size=4 [07:11:11]MH_SAM_APDU [07:11:11]CAPDU: 80 13 01 00 [07:11:11]Write to MH i2c: E2 08 00 7A 13 80 13 01 00 00 00 00 00 0A [07:11:11]Write i2c OK [07:11:11]MH_I2C_Read... [07:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:12]Read from MH i2c: E2 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: E2 0E 00 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: E2 0E 00 7A 13 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 89 [07:11:12]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:11:12]wFMCommunicate OK [07:11:12]SAM_PROTO_GetShiftState done [07:11:12]FM_GetShiftState done [07:11:12]req_shift_opened done [07:11:12]requested_item shift.open_date is exist - process it [07:11:12]req_shift_open_date [07:11:12]req_shift_open_date done [07:11:12]produce_requested_data done [07:11:12]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122971,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [07:11:12]process_action_free close_receipt [07:11:12]json_value_free [07:11:12]json_value_free done [07:11:12]process_json_proto returns [07:11:12]Send response to host [07:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122971,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [07:11:12]free response buf [07:11:12]execute_script done [07:11:12]execute_script returns [07:11:12]free content buf [07:11:12]Sock 9.Close socket [07:11:12]Sock 9.Thread stoped [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:06]accept exits with 10 [07:12:06]New connection [07:12:06]New thread 3066723684 created [07:12:06]Thread 3066580324 joined [07:12:06]Waiting for new connection... [07:12:06] Sock 10.Parse request [07:12:06]Sock 10.Check first char [07:12:06]Sock 10.First char is OK [07:12:06]request: POST /json_proto HTTP/1.0 [07:12:06]Method: POST [07:12:06]URL: /json_proto [07:12:06]Method is POST - this is cgi request [07:12:06]url: /json_proto [07:12:06]query_string will be loaded in cgi processing [07:12:06]execute_cgi json_proto POST (null) [07:12:06]execute_cgi path=json_proto method=POST [07:12:06]POST find Content-Length [07:12:06]Host: 172.17.37.4:8080 [07:12:06]Content-Length: 682 [07:12:06]Content-Type: application/json [07:12:06] [07:12:06]POST finish read [07:12:06]Found Content-Length = 682 [07:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 23.740, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:06]execute_script... [07: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)717756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 23.740, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:06]POST & json_proto [07:12:06]process_json_proto [07:12:06]json parsed OK: [07:12:06]protocol is kg_v1.0 [07:12:06]action value=close_receipt [07:12:06]process_action close_receipt [07:12:06]cmd_close_receipt [07:12:06]MH_GetDate [07:12:06]Write to MH i2c: F0 00 00 7B 13 7D [07:12:06]Write i2c OK [07:12:06]MH_I2C_Read... [07:12:06]Read from MH i2c: F0 [07:12:06]MH_I2C_Read... [07:12:06]Read from MH i2c: F0 09 00 [07:12:06]MH_I2C_Read... [07:12:06]Read from MH i2c: F0 09 00 7B 13 00 4A 23 44 67 B8 5A 43 67 5A [07:12:06]GetLastDocTimeStamp 1732518670 [07:12:06]current date 1732518730 [07:12:06]FM_GetShiftState [07:12:06]SAM_PROTO_GetShiftState [07:12:06]wFMCommunicate request_size=4 [07:12:06]MH_SAM_APDU [07:12:06]CAPDU: 80 13 01 00 [07:12:06]Write to MH i2c: E2 08 00 7C 13 80 13 01 00 00 00 00 00 0C [07:12:06]Write i2c OK [07:12:06]MH_I2C_Read... [07:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:06]Read from MH i2c: E2 [07:12:06]MH_I2C_Read... [07:12:06]Read from MH i2c: E2 0E 00 [07:12:06]MH_I2C_Read... [07:12:06]Read from MH i2c: E2 0E 00 7C 13 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 8B [07:12:06]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:12:06]wFMCommunicate OK [07:12:06]SAM_PROTO_GetShiftState done [07:12:06]FM_GetShiftState done [07:12:06]opened in 1732493066 [07:12:06]opened+sec_in_day 1732579466 [07:12:06]quantity*price = 160007 [07:12:06]sum+1 = 160009 [07:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 13 25.11.2024 07:12 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122972 ФПД: 35188878910674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T071210&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122972&fm=35188878910674&tin=02508201610067®Number=0000000000092681&sum=160000 [07:12:08]StoreToDocumentArchive [07:12:08]shift 556 fd 122972 [07:12:08]save to /storage/0556/doc_00122972 [07:12:08]save last doc name /storage/0556/doc_00122972 to /storage/kkm_last_doc_name [07:12:08]save OK [07:12:08]Clear old archive folders... [07:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:08]tlvbuf is 0207E710 [07:12:08]SAM_PROTO_ClearQueue [07:12:08]wFMCommunicate request_size=4 [07:12:08]MH_SAM_APDU [07:12:08]CAPDU: 80 09 00 00 [07:12:08]Write to MH i2c: E2 08 00 89 13 80 09 00 00 00 00 00 00 0E [07:12:08]Write i2c OK [07:12:08]MH_I2C_Read... [07:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:08]Read from MH i2c: E2 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 89 13 00 90 00 10 [07:12:08]RAPDU: 90 00 [07:12:08]wFMCommunicate OK [07:12:08]SAM_PROTO_ClearQueue done [07:12:08]KKMCreateOFDPacket [07:12:08]OFDProtocolAddRootSTLVToBuf [07:12:08]FM_MakeSignedData [07:12:08]FM_MakeSignedData [07:12:08]SAM_PROTO_SignData [07:12:08]wFMCommunicate request_size=4 [07:12:08]MH_SAM_APDU [07:12:08]CAPDU: 80 0D 01 02 [07:12:08]Write to MH i2c: E2 08 00 8A 13 80 0D 01 02 00 00 00 00 16 [07:12:08]Write i2c OK [07:12:08]MH_I2C_Read... [07:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:08]Read from MH i2c: E2 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 8A 13 00 90 00 11 [07:12:08]RAPDU: 90 00 [07:12:08]wFMCommunicate OK [07:12:08]wFMCommunicate request_size=255 [07:12:08]MH_SAM_APDU [07: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 34 FF 03 08 00 03 BC 5C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 4A 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5C E0 01 00 35 04 06 00 20 [07:12:08]Write to MH i2c: E2 02 01 8B 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BC 5C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 4A 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5C E0 01 00 35 04 06 00 20 00 00 EA [07:12:08]Write i2c OK [07:12:08]MH_I2C_Read... [07:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:08]Read from MH i2c: E2 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 8B 13 00 90 00 12 [07:12:08]RAPDU: 90 00 [07:12:08]wFMCommunicate OK [07:12:08]wFMCommunicate request_size=10 [07:12:08]MH_SAM_APDU [07:12:08]CAPDU: 80 0D 02 02 05 01 0C A0 A4 D2 [07:12:08]Write to MH i2c: E2 0D 00 8C 13 80 0D 02 02 05 00 01 0C A0 A4 D2 00 00 46 [07:12:08]Write i2c OK [07:12:08]MH_I2C_Read... [07:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:08]Read from MH i2c: E2 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 8C 13 00 90 00 13 [07:12:08]RAPDU: 90 00 [07:12:08]wFMCommunicate OK [07:12:08]wFMCommunicate request_size=4 [07:12:08]MH_SAM_APDU [07:12:08]CAPDU: 80 0D 03 02 [07:12:08]Write to MH i2c: E2 08 00 8D 13 80 0D 03 02 00 00 00 00 1B [07:12:08]Write i2c OK [07:12:08]MH_I2C_Read... [07:12:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:08]Read from MH i2c: E2 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 0B 00 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 0B 00 8D 13 00 B6 6F 90 27 F7 C9 CF 8A 90 00 11 [07:12:08]RAPDU: B6 6F 90 27 F7 C9 CF 8A 90 00 [07:12:08]wFMCommunicate OK [07:12:08]SAM_PROTO_SignData done [07:12:08]FM_MakeSignedData done [07:12:08]CreateOFDProtocolMessage [07:12:08]wFMCommunicate request_size=4 [07:12:08]MH_SAM_APDU [07:12:08]CAPDU: 80 11 00 00 [07:12:08]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [07:12:08]Write i2c OK [07:12:08]MH_I2C_Read... [07:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:08]Read from MH i2c: E2 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 17 00 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 72 [07:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:12:08]wFMCommunicate OK [07:12:08]CreateOFDProtocolMessage done [07:12:08]OFDSenderStorePacket 122972 [07:12:08]StoreOFDPacket docnum=122972 [07:12:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 84 E4 07 01 FF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BC 5C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 4A 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5C E0 01 00 35 04 06 00 20 01 0C A0 A4 D2 B6 6F 90 27 F7 C9 CF 8A [07:12:08]CheckFolder [07:12:08]dirname=/storage/ofd_packets [07:12:08]CheckFolder done [07:12:08]ProducePacketName [07:12:08]name=ofd_packets/00122972 [07:12:08]NVStorageSaveData ofd_packets/00122972 [07:12:08]File name is /storage/ofd_packets/00122972 [07:12:08]Write 301 bytes [07:12:08]NVStorageSaveData done [07:12:08]OFDSenderStorePacket done [07:12:08]KKMCreateOFDPacket done [07:12:08]NVStorageSaveData kkm_last_timestamp [07:12:08]File name is /storage/kkm_last_timestamp [07:12:08]Write 4 bytes [07:12:08]NVStorageSaveData done [07:12:08]ExternCall_PrintAddStr [07:12:08]wPrintStart [07:12:08]Write to MH i2c: 01 00 00 8F 13 A2 [07:12:08]Write i2c OK [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: 01 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: 01 07 00 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: 01 07 00 8F 13 00 00 00 00 00 FF 0F B7 [07:12:08]RasterBufferAndPrint [07:12:08]line Счет N : (1)717756 [07:12:08]line ИНН: 02508201610067 [07:12:08]line Контрольно-Кассовый Чек [07:12:08]line ПРОДАЖА [07:12:08]line ТРК (МРК, ГНК) : 32 [07:12:08]line Товар: 2710124130 [07:12:08]line Аи-92-К-4 [07:12:08]line 23.740 * 67.40 [07:12:08]line = 1600.08 [07:12:08]line НДС 12% НСП 1% [07:12:08]line > о реализуемом товаре [07:12:08]line ОКРУГЛЕНИЕ: -0.08 [07:12:08]line ИТОГО: 1600.00 [07:12:08]line Внесено: 1600.00 [07:12:08]line СДАЧА: 0.00 [07:12:08]line НСП 1% : 14.16 [07:12:08]line НДС 12% : 169.92 [07:12:08]line Наличными: 1600.00 [07:12:08]line Безнал.: 0.00 [07:12:08]line Место: АЗС № 64 "Партнер Нефть" [07:12:08]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:12:08]line СНО: Общий режим [07:12:08]line Чек 13 25.11.2024 07:12 [07:12:08]line Смена: 556 ФФД: 1.0 [07:12:08]line ЗНМ: 0300000033 [07:12:08]line РНМ: 0000000000092681 [07:12:08]line Версия ККМ: 001 [07:12:08]line ФМ: 0000000000874881 [07:12:08]line ФД: 122972 [07:12:08]line ФПД: 35188878910674 [07:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T071210&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122972&fm=35188878910674&tin=02508201610067®Number=0000000000092681&sum=160000 [07:12:08]OFD Sender: Processing packet 122972 [packets to send 7, broken 6] [07:12:08]ProducePacketName [07:12:08]name=ofd_packets/00122972 [07:12:08]OFD Sender: To server: pG, [07:12:08]CommunicateWithHost lk.salyk.kg:30040 [07:12:08]ConnectInit lk.salyk.kg [07:12:08]written 0, free lines is 4095 [07:12:08]Connected sock=9 [07:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 84 E4 07 01 FF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BC 5C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 4A 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5C E0 01 00 35 04 06 00 20 01 0C A0 A4 D2 B6 6F 90 27 F7 C9 CF 8A [07:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 EE FA 47 00 1B 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 34 38 38 31 10 04 04 00 5C E0 01 00 F4 03 04 00 11 CF 43 67 B6 04 01 00 00 F9 06 A3 F9 5B B7 32 32 [07:12:09]CommunicateWithHost err = 0 [07:12:09]CheckOFDResponse [07:12:09]1017 (14) - 77093643461234 [07:12:09]1041 (16) - 0000000000874881 [07:12:09]1040 (4) - 122972 [07:12:09]1012 (4) - 25.11.2024 01:12 [07:12:09]1206 (1) - 0 [07:12:09]OFD Sender: Remove packet 122972 [07:12:09]ProducePacketName [07:12:09]name=ofd_packets/00122972 [07:12:09]NVStorageDeleteData [07:12:09]Write to MH i2c: 01 00 00 BA 13 CD [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: 01 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: 01 07 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: 01 07 00 BA 13 00 00 00 00 00 4B 0C 2B [07:12:09]RasterBufferAndPrint [07:12:09]line [07:12:09]line [07:12:09]line [07:12:09]line [07:12:09]line [07:12:09]written 0, free lines is 3152 [07:12:09]MH_Cut [07:12:09]Write to MH i2c: D1 01 00 C1 13 01 A6 [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: D1 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: D1 01 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: D1 01 00 C1 13 00 A5 [07:12:09]Write to MH i2c: 01 00 00 C2 13 D5 [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]OFD Sender: No OFD packet to send [07:12:10]*** Cut start [07:12:10]*** Partial cut [07:12:10]*** CUTSNS_PIN = 1 [07:12:10]*** CUTSNS_PIN = 0 [07:12:10]*** Brake cut motor [07:12:11]Read from MH i2c: 01 [07:12:11]MH_I2C_Read... [07:12:11]*** Stop cut motor [07:12:11]*** Cut end [07:12:11]Read from MH i2c: 01 07 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 07 00 C2 13 00 00 00 00 00 FF 0F EA [07:12:11]process_action close_receipt done [07:12:11]requested_data is exist [07:12:11]produce_requested_data [07:12:11]requested_item fm.sn is exist - process it [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 11 00 00 [07:12:11]Write to MH i2c: E2 08 00 C3 13 80 11 00 00 00 00 00 00 50 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 17 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 17 00 C3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A7 [07:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:12:11]wFMCommunicate OK [07:12:11]requested_item fd.num is exist - process it [07:12:11]SAM_PROTO_GetFieldsCounters [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 13 00 00 [07:12:11]Write to MH i2c: E2 08 00 C4 13 80 13 00 00 00 00 00 00 53 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 62 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 62 00 C4 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5C E0 01 00 0E 04 04 00 2C 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 0B [07:12:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5C E0 01 00 0E 04 04 00 2C 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 [07:12:11]wFMCommunicate OK [07:12:11]SAM_PROTO_GetFieldsCounters done [07:12:11]requested_item shift.num is exist - process it [07:12:11]requested_item shift.opened is exist - process it [07:12:11]req_shift_opened [07:12:11]FM_GetShiftState [07:12:11]SAM_PROTO_GetShiftState [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 13 01 00 [07:12:11]Write to MH i2c: E2 08 00 C5 13 80 13 01 00 00 00 00 00 55 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 0E 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 0E 00 C5 13 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D4 [07:12:11]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:12:11]wFMCommunicate OK [07:12:11]SAM_PROTO_GetShiftState done [07:12:11]FM_GetShiftState done [07:12:11]req_shift_opened done [07:12:11]requested_item shift.open_date is exist - process it [07:12:11]req_shift_open_date [07:12:11]req_shift_open_date done [07:12:11]produce_requested_data done [07:12:11]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122972,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [07:12:11]process_action_free close_receipt [07:12:11]json_value_free [07:12:11]json_value_free done [07:12:11]process_json_proto returns [07:12:11]Send response to host [07:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122972,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [07:12:11]free response buf [07:12:11]execute_script done [07:12:11]execute_script returns [07:12:11]free content buf [07:12:11]Sock 10.Close socket [07:12:11]Sock 10.Thread stoped [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:23]accept exits with 7 [07:13:23]New connection [07:13:23]New thread 3066580324 created [07:13:23]Thread 3066723684 joined [07:13:23]Waiting for new connection... [07:13:23] Sock 7.Parse request [07:13:23]Sock 7.Check first char [07:13:23]Sock 7.First char is OK [07:13:23]request: POST /json_proto HTTP/1.0 [07:13:23]Method: POST [07:13:23]URL: /json_proto [07:13:23]Method is POST - this is cgi request [07:13:23]url: /json_proto [07:13:23]query_string will be loaded in cgi processing [07:13:23]execute_cgi json_proto POST (null) [07:13:23]execute_cgi path=json_proto method=POST [07:13:23]POST find Content-Length [07:13:23]Host: 172.17.37.4:8080 [07:13:23]Content-Length: 816 [07:13:23]Content-Type: application/json [07:13:23] [07:13:23]POST finish read [07:13:23]Found Content-Length = 816 [07:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:23]execute_script... [07:13:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:23]POST & json_proto [07:13:23]process_json_proto [07:13:23]json parsed OK: [07:13:23]protocol is kg_v1.0 [07:13:23]action value=close_receipt [07:13:23]process_action close_receipt [07:13:23]cmd_close_receipt [07:13:23]MH_GetDate [07:13:23]Write to MH i2c: F0 00 00 C6 13 C8 [07:13:23]Write i2c OK [07:13:23]MH_I2C_Read... [07:13:23]Read from MH i2c: F0 [07:13:23]MH_I2C_Read... [07:13:23]Read from MH i2c: F0 09 00 [07:13:23]MH_I2C_Read... [07:13:23]Read from MH i2c: F0 09 00 C6 13 00 97 23 44 67 B8 5A 43 67 F2 [07:13:23]GetLastDocTimeStamp 1732518730 [07:13:23]current date 1732518807 [07:13:23]FM_GetShiftState [07:13:23]SAM_PROTO_GetShiftState [07:13:23]wFMCommunicate request_size=4 [07:13:23]MH_SAM_APDU [07:13:23]CAPDU: 80 13 01 00 [07:13:23]Write to MH i2c: E2 08 00 C7 13 80 13 01 00 00 00 00 00 57 [07:13:23]Write i2c OK [07:13:23]MH_I2C_Read... [07:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:23]Read from MH i2c: E2 [07:13:23]MH_I2C_Read... [07:13:23]Read from MH i2c: E2 0E 00 [07:13:23]MH_I2C_Read... [07:13:23]Read from MH i2c: E2 0E 00 C7 13 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D6 [07:13:23]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:13:23]wFMCommunicate OK [07:13:23]SAM_PROTO_GetShiftState done [07:13:23]FM_GetShiftState done [07:13:23]opened in 1732493066 [07:13:23]opened+sec_in_day 1732579466 [07:13:23]quantity*price = 50010 [07:13:23]sum+1 = 50012 [07:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 14 25.11.2024 07:13 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 122973 ФПД: 45825043176685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T071327&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122973&fm=45825043176685&tin=02508201610067®Number=0000000000092681&sum=50011 [07:13:24]StoreToDocumentArchive [07:13:24]shift 556 fd 122973 [07:13:24]save to /storage/0556/doc_00122973 [07:13:24]save last doc name /storage/0556/doc_00122973 to /storage/kkm_last_doc_name [07:13:24]save OK [07:13:24]Clear old archive folders... [07:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:13:24]tlvbuf is 02053DA0 [07:13:24]SAM_PROTO_ClearQueue [07:13:24]wFMCommunicate request_size=4 [07:13:24]MH_SAM_APDU [07:13:24]CAPDU: 80 09 00 00 [07:13:24]Write to MH i2c: E2 08 00 D4 13 80 09 00 00 00 00 00 00 59 [07:13:24]Write i2c OK [07:13:24]MH_I2C_Read... [07:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:24]Read from MH i2c: E2 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 03 00 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 03 00 D4 13 00 90 00 5B [07:13:24]RAPDU: 90 00 [07:13:24]wFMCommunicate OK [07:13:24]SAM_PROTO_ClearQueue done [07:13:24]KKMCreateOFDPacket [07:13:24]OFDProtocolAddRootSTLVToBuf [07:13:24]FM_MakeSignedData [07:13:24]FM_MakeSignedData [07:13:24]SAM_PROTO_SignData [07:13:24]wFMCommunicate request_size=4 [07:13:24]MH_SAM_APDU [07:13:24]CAPDU: 80 0D 01 02 [07:13:24]Write to MH i2c: E2 08 00 D5 13 80 0D 01 02 00 00 00 00 61 [07:13:24]Write i2c OK [07:13:24]MH_I2C_Read... [07:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:24]Read from MH i2c: E2 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 03 00 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [07:13:24]RAPDU: 90 00 [07:13:24]wFMCommunicate OK [07:13:24]wFMCommunicate request_size=255 [07:13:24]MH_SAM_APDU [07:13:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 97 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5D E0 01 00 35 04 06 00 29 [07:13:24]Write to MH i2c: E2 02 01 D6 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 97 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5D E0 01 00 35 04 06 00 29 00 00 E6 [07:13:24]Write i2c OK [07:13:24]MH_I2C_Read... [07:13:24]OFD Sender: No OFD packet to send [07:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:24]Read from MH i2c: E2 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 03 00 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 03 00 D6 13 00 90 00 5D [07:13:24]RAPDU: 90 00 [07:13:24]wFMCommunicate OK [07:13:24]wFMCommunicate request_size=10 [07:13:24]MH_SAM_APDU [07:13:24]CAPDU: 80 0D 02 02 05 AD 79 6B 9C ED [07:13:24]Write to MH i2c: E2 0D 00 D7 13 80 0D 02 02 05 00 AD 79 6B 9C ED 00 00 88 [07:13:24]Write i2c OK [07:13:24]MH_I2C_Read... [07:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:24]Read from MH i2c: E2 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 03 00 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 03 00 D7 13 00 90 00 5E [07:13:24]RAPDU: 90 00 [07:13:24]wFMCommunicate OK [07:13:24]wFMCommunicate request_size=4 [07:13:24]MH_SAM_APDU [07:13:24]CAPDU: 80 0D 03 02 [07:13:24]Write to MH i2c: E2 08 00 D8 13 80 0D 03 02 00 00 00 00 66 [07:13:24]Write i2c OK [07:13:24]MH_I2C_Read... [07:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:24]Read from MH i2c: E2 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 0B 00 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 0B 00 D8 13 00 2E 17 B9 61 B9 6F 04 33 90 00 25 [07:13:24]RAPDU: 2E 17 B9 61 B9 6F 04 33 90 00 [07:13:24]wFMCommunicate OK [07:13:24]SAM_PROTO_SignData done [07:13:24]FM_MakeSignedData done [07:13:24]CreateOFDProtocolMessage [07:13:24]wFMCommunicate request_size=4 [07:13:24]MH_SAM_APDU [07:13:24]CAPDU: 80 11 00 00 [07:13:24]Write to MH i2c: E2 08 00 D9 13 80 11 00 00 00 00 00 00 66 [07:13:24]Write i2c OK [07:13:24]MH_I2C_Read... [07:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:24]Read from MH i2c: E2 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 17 00 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: E2 17 00 D9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BD [07:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:13:24]wFMCommunicate OK [07:13:24]CreateOFDProtocolMessage done [07:13:24]OFDSenderStorePacket 122973 [07:13:24]StoreOFDPacket docnum=122973 [07:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 06 A9 07 01 01 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 97 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5D E0 01 00 35 04 06 00 29 AD 79 6B 9C ED 2E 17 B9 61 B9 6F 04 33 [07:13:24]CheckFolder [07:13:24]dirname=/storage/ofd_packets [07:13:24]CheckFolder done [07:13:24]ProducePacketName [07:13:24]name=ofd_packets/00122973 [07:13:24]NVStorageSaveData ofd_packets/00122973 [07:13:24]File name is /storage/ofd_packets/00122973 [07:13:24]Write 301 bytes [07:13:24]NVStorageSaveData done [07:13:24]OFDSenderStorePacket done [07:13:24]KKMCreateOFDPacket done [07:13:24]NVStorageSaveData kkm_last_timestamp [07:13:24]File name is /storage/kkm_last_timestamp [07:13:24]Write 4 bytes [07:13:24]NVStorageSaveData done [07:13:24]ExternCall_PrintAddStr [07:13:24]wPrintStart [07:13:24]Write to MH i2c: 01 00 00 DA 13 ED [07:13:24]Write i2c OK [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: 01 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: 01 07 00 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: 01 07 00 DA 13 00 00 00 00 00 FF 0F 02 [07:13:24]RasterBufferAndPrint [07:13:24]line Счет N : (1)717757 [07:13:24]line ИНН: 02508201610067 [07:13:24]line Контрольно-Кассовый Чек [07:13:24]line ПРОДАЖА [07:13:24]line ТРК (МРК, ГНК) : 22 [07:13:24]line Товар: 2710124130 [07:13:24]line Аи-92-К-4 [07:13:24]line 7.420 * 67.40 [07:13:24]line = 500.11 [07:13:24]line НДС 12% НСП 1% [07:13:24]line > о реализуемом товаре [07:13:24]line ИТОГО: 500.11 [07:13:24]line НСП 1% : 4.43 [07:13:24]line НДС 12% : 53.11 [07:13:24]line Наличными: 0.00 [07:13:24]line Безнал.: 500.11 [07:13:24]line Место: АЗС № 64 "Партнер Нефть" [07:13:24]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:13:24]line СНО: Общий режим [07:13:24]line Чек 14 25.11.2024 07:13 [07:13:24]line Смена: 556 ФФД: 1.0 [07:13:24]line ЗНМ: 0300000033 [07:13:24]line РНМ: 0000000000092681 [07:13:24]line Версия ККМ: 001 [07:13:24]line Платежная система: Бакай Банк [07:13:24]line ФМ: 0000000000874881 [07:13:24]line ФД: 122973 [07:13:24]line ФПД: 45825043176685 [07:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T071327&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122973&fm=45825043176685&tin=02508201610067®Number=0000000000092681&sum=50011 [07:13:25]OFD Sender: Processing packet 122973 [packets to send 7, broken 6] [07:13:25]ProducePacketName [07:13:25]name=ofd_packets/00122973 [07:13:25]OFD Sender: To server: pG, [07:13:25]CommunicateWithHost lk.salyk.kg:30040 [07:13:25]ConnectInit lk.salyk.kg [07:13:25]written 0, free lines is 4095 [07:13:25]Connected sock=10 [07:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 06 A9 07 01 01 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 97 23 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5D E0 01 00 35 04 06 00 29 AD 79 6B 9C ED 2E 17 B9 61 B9 6F 04 33 [07:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 DB A6 47 00 25 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 34 38 38 31 10 04 04 00 5D E0 01 00 F4 03 04 00 5D CF 43 67 B6 04 01 00 00 10 FF F1 64 F3 54 83 4B [07:13:25]CommunicateWithHost err = 0 [07:13:25]CheckOFDResponse [07:13:25]1017 (14) - 77093643461234 [07:13:25]1041 (16) - 0000000000874881 [07:13:25]1040 (4) - 122973 [07:13:25]1012 (4) - 25.11.2024 01:14 [07:13:25]1206 (1) - 0 [07:13:25]OFD Sender: Remove packet 122973 [07:13:25]ProducePacketName [07:13:25]name=ofd_packets/00122973 [07:13:25]NVStorageDeleteData [07:13:25]Write to MH i2c: 01 00 00 04 14 18 [07:13:25]Write i2c OK [07:13:25]MH_I2C_Read... [07:13:25]Read from MH i2c: 01 [07:13:25]MH_I2C_Read... [07:13:25]Read from MH i2c: 01 07 00 [07:13:25]MH_I2C_Read... [07:13:25]Read from MH i2c: 01 07 00 04 14 00 00 00 00 00 56 0C 81 [07:13:25]RasterBufferAndPrint [07:13:25]line [07:13:25]line [07:13:25]line [07:13:25]line [07:13:25]line [07:13:25]written 0, free lines is 3162 [07:13:25]MH_Cut [07:13:25]Write to MH i2c: D1 01 00 0B 14 01 F1 [07:13:25]Write i2c OK [07:13:25]MH_I2C_Read... [07:13:25]Read from MH i2c: D1 [07:13:25]MH_I2C_Read... [07:13:25]Read from MH i2c: D1 01 00 [07:13:25]MH_I2C_Read... [07:13:25]Read from MH i2c: D1 01 00 0B 14 00 F0 [07:13:25]Write to MH i2c: 01 00 00 0C 14 20 [07:13:25]Write i2c OK [07:13:25]MH_I2C_Read... [07:13:26]OFD Sender: No OFD packet to send [07:13:27]*** Cut start [07:13:27]*** Partial cut [07:13:27]*** CUTSNS_PIN = 1 [07:13:27]*** CUTSNS_PIN = 0 [07:13:27]*** Brake cut motor [07:13:27]Read from MH i2c: 01 [07:13:27]MH_I2C_Read... [07:13:27]*** Stop cut motor [07:13:27]*** Cut end [07:13:27]Read from MH i2c: 01 07 00 [07:13:27]MH_I2C_Read... [07:13:27]Read from MH i2c: 01 07 00 0C 14 00 00 00 00 00 FF 0F 35 [07:13:27]process_action close_receipt done [07:13:27]requested_data is exist [07:13:27]produce_requested_data [07:13:27]requested_item fm.sn is exist - process it [07:13:27]wFMCommunicate request_size=4 [07:13:27]MH_SAM_APDU [07:13:27]CAPDU: 80 11 00 00 [07:13:27]Write to MH i2c: E2 08 00 0D 14 80 11 00 00 00 00 00 00 9B [07:13:27]Write i2c OK [07:13:27]MH_I2C_Read... [07:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:27]Read from MH i2c: E2 [07:13:27]MH_I2C_Read... [07:13:27]Read from MH i2c: E2 17 00 [07:13:27]MH_I2C_Read... [07:13:27]Read from MH i2c: E2 17 00 0D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F2 [07:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:13:27]wFMCommunicate OK [07:13:27]requested_item fd.num is exist - process it [07:13:27]SAM_PROTO_GetFieldsCounters [07:13:27]wFMCommunicate request_size=4 [07:13:27]MH_SAM_APDU [07:13:27]CAPDU: 80 13 00 00 [07:13:27]Write to MH i2c: E2 08 00 0E 14 80 13 00 00 00 00 00 00 9E [07:13:27]Write i2c OK [07:13:27]MH_I2C_Read... [07:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:27]Read from MH i2c: E2 [07:13:27]MH_I2C_Read... [07:13:27]Read from MH i2c: E2 62 00 [07:13:27]MH_I2C_Read... [07:13:27]Read from MH i2c: E2 62 00 0E 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5D E0 01 00 0E 04 04 00 2C 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 5A [07:13:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5D E0 01 00 0E 04 04 00 2C 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 [07:13:27]wFMCommunicate OK [07:13:27]SAM_PROTO_GetFieldsCounters done [07:13:27]requested_item shift.num is exist - process it [07:13:27]requested_item shift.opened is exist - process it [07:13:27]req_shift_opened [07:13:27]FM_GetShiftState [07:13:27]SAM_PROTO_GetShiftState [07:13:27]wFMCommunicate request_size=4 [07:13:27]MH_SAM_APDU [07:13:27]CAPDU: 80 13 01 00 [07:13:27]Write to MH i2c: E2 08 00 0F 14 80 13 01 00 00 00 00 00 A0 [07:13:27]Write i2c OK [07:13:27]MH_I2C_Read... [07:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:28]Read from MH i2c: E2 [07:13:28]MH_I2C_Read... [07:13:28]Read from MH i2c: E2 0E 00 [07:13:28]MH_I2C_Read... [07:13:28]Read from MH i2c: E2 0E 00 0F 14 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1F [07:13:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:13:28]wFMCommunicate OK [07:13:28]SAM_PROTO_GetShiftState done [07:13:28]FM_GetShiftState done [07:13:28]req_shift_opened done [07:13:28]requested_item shift.open_date is exist - process it [07:13:28]req_shift_open_date [07:13:28]req_shift_open_date done [07:13:28]produce_requested_data done [07:13:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122973,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [07:13:28]process_action_free close_receipt [07:13:28]json_value_free [07:13:28]json_value_free done [07:13:28]process_json_proto returns [07:13:28]Send response to host [07:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122973,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [07:13:28]free response buf [07:13:28]execute_script done [07:13:28]execute_script returns [07:13:28]free content buf [07:13:28]Sock 7.Close socket [07:13:28]Sock 7.Thread stoped [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:10]accept exits with 9 [07:32:10]New connection [07:32:10]New thread 3066723684 created [07:32:10]Thread 3066580324 joined [07:32:10]Waiting for new connection... [07:32:10] Sock 9.Parse request [07:32:10]Sock 9.Check first char [07:32:10]Sock 9.First char is OK [07:32:10]request: POST /json_proto HTTP/1.0 [07:32:10]Method: POST [07:32:10]URL: /json_proto [07:32:10]Method is POST - this is cgi request [07:32:10]url: /json_proto [07:32:10]query_string will be loaded in cgi processing [07:32:10]execute_cgi json_proto POST (null) [07:32:10]execute_cgi path=json_proto method=POST [07:32:10]POST find Content-Length [07:32:10]Host: 172.17.37.4:8080 [07:32:10]Content-Length: 677 [07:32:10]Content-Type: application/json [07:32:10] [07:32:10]POST finish read [07:32:10]Found Content-Length = 677 [07:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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" ] } } [07:32:10]execute_script... [07:32: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)717758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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" ] } } [07:32:10]POST & json_proto [07:32:10]process_json_proto [07:32:10]json parsed OK: [07:32:10]protocol is kg_v1.0 [07:32:10]action value=close_receipt [07:32:10]process_action close_receipt [07:32:10]cmd_close_receipt [07:32:10]MH_GetDate [07:32:10]Write to MH i2c: F0 00 00 10 14 13 [07:32:10]Write i2c OK [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: F0 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: F0 09 00 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: F0 09 00 10 14 00 FE 27 44 67 B8 5A 43 67 A8 [07:32:10]GetLastDocTimeStamp 1732518807 [07:32:10]current date 1732519934 [07:32:10]FM_GetShiftState [07:32:10]SAM_PROTO_GetShiftState [07:32:10]wFMCommunicate request_size=4 [07:32:10]MH_SAM_APDU [07:32:10]CAPDU: 80 13 01 00 [07:32:10]Write to MH i2c: E2 08 00 11 14 80 13 01 00 00 00 00 00 A2 [07:32:10]Write i2c OK [07:32:10]MH_I2C_Read... [07:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:10]Read from MH i2c: E2 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: E2 0E 00 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: E2 0E 00 11 14 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 21 [07:32:10]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:32:10]wFMCommunicate OK [07:32:10]SAM_PROTO_GetShiftState done [07:32:10]FM_GetShiftState done [07:32:10]opened in 1732493066 [07:32:10]opened+sec_in_day 1732579466 [07:32:10]quantity*price = 40035 [07:32:10]sum+1 = 40037 [07:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 15 25.11.2024 07:32 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122974 ФПД: 205367817633858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T073214&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122974&fm=205367817633858&tin=02508201610067®Number=0000000000092681&sum=40000 [07:32:11]StoreToDocumentArchive [07:32:11]shift 556 fd 122974 [07:32:11]save to /storage/0556/doc_00122974 [07:32:11]save last doc name /storage/0556/doc_00122974 to /storage/kkm_last_doc_name [07:32:11]save OK [07:32:11]Clear old archive folders... [07:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:11]tlvbuf is 020758C0 [07:32:11]SAM_PROTO_ClearQueue [07:32:11]wFMCommunicate request_size=4 [07:32:11]MH_SAM_APDU [07:32:11]CAPDU: 80 09 00 00 [07:32:11]Write to MH i2c: E2 08 00 1E 14 80 09 00 00 00 00 00 00 A4 [07:32:11]Write i2c OK [07:32:11]MH_I2C_Read... [07:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:11]Read from MH i2c: E2 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 03 00 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [07:32:11]RAPDU: 90 00 [07:32:11]wFMCommunicate OK [07:32:11]SAM_PROTO_ClearQueue done [07:32:11]KKMCreateOFDPacket [07:32:11]OFDProtocolAddRootSTLVToBuf [07:32:11]FM_MakeSignedData [07:32:11]FM_MakeSignedData [07:32:11]SAM_PROTO_SignData [07:32:11]wFMCommunicate request_size=4 [07:32:11]MH_SAM_APDU [07:32:11]CAPDU: 80 0D 01 02 [07:32:11]Write to MH i2c: E2 08 00 1F 14 80 0D 01 02 00 00 00 00 AC [07:32:11]Write i2c OK [07:32:11]MH_I2C_Read... [07:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:11]Read from MH i2c: E2 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 03 00 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 03 00 1F 14 00 90 00 A7 [07:32:11]RAPDU: 90 00 [07:32:11]wFMCommunicate OK [07:32:11]wFMCommunicate request_size=255 [07:32:11]MH_SAM_APDU [07:32:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 0F 00 00 00 F4 03 04 00 FE 27 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E0 01 00 35 04 06 00 BA [07:32:11]Write to MH i2c: E2 02 01 20 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 0F 00 00 00 F4 03 04 00 FE 27 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E0 01 00 35 04 06 00 BA 00 00 40 [07:32:11]Write i2c OK [07:32:11]MH_I2C_Read... [07:32:11]OFD Sender: No OFD packet to send [07:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:12]Read from MH i2c: E2 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 03 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 03 00 20 14 00 90 00 A8 [07:32:12]RAPDU: 90 00 [07:32:12]wFMCommunicate OK [07:32:12]wFMCommunicate request_size=10 [07:32:12]MH_SAM_APDU [07:32:12]CAPDU: 80 0D 02 02 05 C7 EB D1 80 42 [07:32:12]Write to MH i2c: E2 0D 00 21 14 80 0D 02 02 05 00 C7 EB D1 80 42 00 00 FE [07:32:12]Write i2c OK [07:32:12]MH_I2C_Read... [07:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:12]Read from MH i2c: E2 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 03 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [07:32:12]RAPDU: 90 00 [07:32:12]wFMCommunicate OK [07:32:12]wFMCommunicate request_size=4 [07:32:12]MH_SAM_APDU [07:32:12]CAPDU: 80 0D 03 02 [07:32:12]Write to MH i2c: E2 08 00 22 14 80 0D 03 02 00 00 00 00 B1 [07:32:12]Write i2c OK [07:32:12]MH_I2C_Read... [07:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:12]Read from MH i2c: E2 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 0B 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 0B 00 22 14 00 72 71 2D DB 43 84 73 CB 90 00 A2 [07:32:12]RAPDU: 72 71 2D DB 43 84 73 CB 90 00 [07:32:12]wFMCommunicate OK [07:32:12]SAM_PROTO_SignData done [07:32:12]FM_MakeSignedData done [07:32:12]CreateOFDProtocolMessage [07:32:12]wFMCommunicate request_size=4 [07:32:12]MH_SAM_APDU [07:32:12]CAPDU: 80 11 00 00 [07:32:12]Write to MH i2c: E2 08 00 23 14 80 11 00 00 00 00 00 00 B1 [07:32:12]Write i2c OK [07:32:12]MH_I2C_Read... [07:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:12]Read from MH i2c: E2 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 17 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 17 00 23 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 08 [07:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:32:12]wFMCommunicate OK [07:32:12]CreateOFDProtocolMessage done [07:32:12]OFDSenderStorePacket 122974 [07:32:12]StoreOFDPacket docnum=122974 [07:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A7 AB 07 01 5E 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 0F 00 00 00 F4 03 04 00 FE 27 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E0 01 00 35 04 06 00 BA C7 EB D1 80 42 72 71 2D DB 43 84 73 CB [07:32:12]CheckFolder [07:32:12]dirname=/storage/ofd_packets [07:32:12]CheckFolder done [07:32:12]ProducePacketName [07:32:12]name=ofd_packets/00122974 [07:32:12]NVStorageSaveData ofd_packets/00122974 [07:32:12]File name is /storage/ofd_packets/00122974 [07:32:12]Write 301 bytes [07:32:12]NVStorageSaveData done [07:32:12]OFDSenderStorePacket done [07:32:12]KKMCreateOFDPacket done [07:32:12]NVStorageSaveData kkm_last_timestamp [07:32:12]File name is /storage/kkm_last_timestamp [07:32:12]Write 4 bytes [07:32:12]NVStorageSaveData done [07:32:12]ExternCall_PrintAddStr [07:32:12]wPrintStart [07:32:12]Write to MH i2c: 01 00 00 24 14 38 [07:32:12]Write i2c OK [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: 01 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: 01 07 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: 01 07 00 24 14 00 00 00 00 00 FF 0F 4D [07:32:12]RasterBufferAndPrint [07:32:12]line Счет N : (1)717758 [07:32:12]line ИНН: 02508201610067 [07:32:12]line Контрольно-Кассовый Чек [07:32:12]line ПРОДАЖА [07:32:12]line ТРК (МРК, ГНК) : 22 [07:32:12]line Товар: 2710124130 [07:32:12]line Аи-92-К-4 [07:32:12]line 5.940 * 67.40 [07:32:12]line = 400.36 [07:32:12]line НДС 12% НСП 1% [07:32:12]line > о реализуемом товаре [07:32:12]line ОКРУГЛЕНИЕ: -0.36 [07:32:12]line ИТОГО: 400.00 [07:32:12]line Внесено: 400.00 [07:32:12]line СДАЧА: 0.00 [07:32:12]line НСП 1% : 3.54 [07:32:12]line НДС 12% : 42.52 [07:32:12]line Наличными: 400.00 [07:32:12]line Безнал.: 0.00 [07:32:12]line Место: АЗС № 64 "Партнер Нефть" [07:32:12]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:32:12]line СНО: Общий режим [07:32:12]line Чек 15 25.11.2024 07:32 [07:32:12]line Смена: 556 ФФД: 1.0 [07:32:12]line ЗНМ: 0300000033 [07:32:12]line РНМ: 0000000000092681 [07:32:12]line Версия ККМ: 001 [07:32:12]line ФМ: 0000000000874881 [07:32:12]line ФД: 122974 [07:32:12]line ФПД: 205367817633858 [07:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T073214&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122974&fm=205367817633858&tin=02508201610067®Number=0000000000092681&sum=40000 [07:32:12]OFD Sender: Processing packet 122974 [packets to send 7, broken 6] [07:32:12]ProducePacketName [07:32:12]name=ofd_packets/00122974 [07:32:12]OFD Sender: To server: pG, [07:32:12]CommunicateWithHost lk.salyk.kg:30040 [07:32:12]ConnectInit lk.salyk.kg [07:32:12]written 0, free lines is 4095 [07:32:12]Connected sock=10 [07:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A7 AB 07 01 5E 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 0F 00 00 00 F4 03 04 00 FE 27 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E0 01 00 35 04 06 00 BA C7 EB D1 80 42 72 71 2D DB 43 84 73 CB [07:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3F 9A 47 00 49 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E0 01 00 F4 03 04 00 C4 D3 43 67 B6 04 01 00 00 BC 18 DE 1F 62 6E F4 DE [07:32:12]CommunicateWithHost err = 0 [07:32:12]CheckOFDResponse [07:32:12]1017 (14) - 77093643461234 [07:32:12]1041 (16) - 0000000000874881 [07:32:12]1040 (4) - 122974 [07:32:12]1012 (4) - 25.11.2024 01:32 [07:32:12]1206 (1) - 0 [07:32:12]OFD Sender: Remove packet 122974 [07:32:12]ProducePacketName [07:32:12]name=ofd_packets/00122974 [07:32:12]NVStorageDeleteData [07:32:12]Write to MH i2c: 01 00 00 4F 14 63 [07:32:12]Write i2c OK [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: 01 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: 01 07 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: 01 07 00 4F 14 00 00 00 00 00 4A 0C C0 [07:32:12]RasterBufferAndPrint [07:32:12]line [07:32:12]line [07:32:12]line [07:32:12]line [07:32:12]line [07:32:12]written 0, free lines is 3151 [07:32:12]MH_Cut [07:32:12]Write to MH i2c: D1 01 00 56 14 01 3C [07:32:12]Write i2c OK [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: D1 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: D1 01 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: D1 01 00 56 14 00 3B [07:32:12]Write to MH i2c: 01 00 00 57 14 6B [07:32:12]Write i2c OK [07:32:12]MH_I2C_Read... [07:32:13]OFD Sender: No OFD packet to send [07:32:14]*** Cut start [07:32:14]*** Partial cut [07:32:14]*** CUTSNS_PIN = 1 [07:32:14]*** CUTSNS_PIN = 0 [07:32:14]*** Brake cut motor [07:32:14]Read from MH i2c: 01 [07:32:14]MH_I2C_Read... [07:32:14]*** Stop cut motor [07:32:14]*** Cut end [07:32:14]Read from MH i2c: 01 07 00 [07:32:14]MH_I2C_Read... [07:32:14]Read from MH i2c: 01 07 00 57 14 00 00 00 00 00 FF 0F 80 [07:32:14]process_action close_receipt done [07:32:14]requested_data is exist [07:32:14]produce_requested_data [07:32:14]requested_item fm.sn is exist - process it [07:32:14]wFMCommunicate request_size=4 [07:32:14]MH_SAM_APDU [07:32:14]CAPDU: 80 11 00 00 [07:32:14]Write to MH i2c: E2 08 00 58 14 80 11 00 00 00 00 00 00 E6 [07:32:14]Write i2c OK [07:32:14]MH_I2C_Read... [07:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:15]Read from MH i2c: E2 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: E2 17 00 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: E2 17 00 58 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3D [07:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:32:15]wFMCommunicate OK [07:32:15]requested_item fd.num is exist - process it [07:32:15]SAM_PROTO_GetFieldsCounters [07:32:15]wFMCommunicate request_size=4 [07:32:15]MH_SAM_APDU [07:32:15]CAPDU: 80 13 00 00 [07:32:15]Write to MH i2c: E2 08 00 59 14 80 13 00 00 00 00 00 00 E9 [07:32:15]Write i2c OK [07:32:15]MH_I2C_Read... [07:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:15]Read from MH i2c: E2 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: E2 62 00 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: E2 62 00 59 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5E E0 01 00 0E 04 04 00 2C 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 A9 [07:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5E E0 01 00 0E 04 04 00 2C 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 [07:32:15]wFMCommunicate OK [07:32:15]SAM_PROTO_GetFieldsCounters done [07:32:15]requested_item shift.num is exist - process it [07:32:15]requested_item shift.opened is exist - process it [07:32:15]req_shift_opened [07:32:15]FM_GetShiftState [07:32:15]SAM_PROTO_GetShiftState [07:32:15]wFMCommunicate request_size=4 [07:32:15]MH_SAM_APDU [07:32:15]CAPDU: 80 13 01 00 [07:32:15]Write to MH i2c: E2 08 00 5A 14 80 13 01 00 00 00 00 00 EB [07:32:15]Write i2c OK [07:32:15]MH_I2C_Read... [07:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:15]Read from MH i2c: E2 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: E2 0E 00 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: E2 0E 00 5A 14 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 6A [07:32:15]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [07:32:15]wFMCommunicate OK [07:32:15]SAM_PROTO_GetShiftState done [07:32:15]FM_GetShiftState done [07:32:15]req_shift_opened done [07:32:15]requested_item shift.open_date is exist - process it [07:32:15]req_shift_open_date [07:32:15]req_shift_open_date done [07:32:15]produce_requested_data done [07:32:15]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122974,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [07:32:15]process_action_free close_receipt [07:32:15]json_value_free [07:32:15]json_value_free done [07:32:15]process_json_proto returns [07:32:15]Send response to host [07:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122974,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [07:32:15]free response buf [07:32:15]execute_script done [07:32:15]execute_script returns [07:32:15]free content buf [07:32:15]Sock 9.Close socket [07:32:15]Sock 9.Thread stoped [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]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:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:01]accept exits with 7 [08:26:01]New connection [08:26:01]New thread 3066580324 created [08:26:01]Thread 3066723684 joined [08:26:01]Waiting for new connection... [08:26:01] Sock 7.Parse request [08:26:01]Sock 7.Check first char [08:26:01]Sock 7.First char is OK [08:26:01]request: POST /json_proto HTTP/1.0 [08:26:01]Method: POST [08:26:01]URL: /json_proto [08:26:01]Method is POST - this is cgi request [08:26:01]url: /json_proto [08:26:01]query_string will be loaded in cgi processing [08:26:01]execute_cgi json_proto POST (null) [08:26:01]execute_cgi path=json_proto method=POST [08:26:01]POST find Content-Length [08:26:01]Host: 172.17.37.4:8080 [08:26:01]Content-Length: 800 [08:26:01]Content-Type: application/json [08:26:01] [08:26:01]POST finish read [08:26:01]Found Content-Length = 800 [08:26:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:01]execute_script... [08:26: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)717759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:01]POST & json_proto [08:26:01]process_json_proto [08:26:01]json parsed OK: [08:26:01]protocol is kg_v1.0 [08:26:01]action value=close_receipt [08:26:01]process_action close_receipt [08:26:01]cmd_close_receipt [08:26:01]MH_GetDate [08:26:01]Write to MH i2c: F0 00 00 5B 14 5E [08:26:01]Write i2c OK [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: F0 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: F0 09 00 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: F0 09 00 5B 14 00 9D 34 44 67 B8 5A 43 67 9F [08:26:01]GetLastDocTimeStamp 1732519934 [08:26:01]current date 1732523165 [08:26:01]FM_GetShiftState [08:26:01]SAM_PROTO_GetShiftState [08:26:01]wFMCommunicate request_size=4 [08:26:01]MH_SAM_APDU [08:26:01]CAPDU: 80 13 01 00 [08:26:01]Write to MH i2c: E2 08 00 5C 14 80 13 01 00 00 00 00 00 ED [08:26:01]Write i2c OK [08:26:01]MH_I2C_Read... [08:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:01]Read from MH i2c: E2 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 0E 00 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 0E 00 5C 14 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 6C [08:26:01]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:26:01]wFMCommunicate OK [08:26:01]SAM_PROTO_GetShiftState done [08:26:01]FM_GetShiftState done [08:26:01]opened in 1732493066 [08:26:01]opened+sec_in_day 1732579466 [08:26:01]quantity*price = 30060 [08:26:01]sum+1 = 30061 [08:26:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 16 25.11.2024 08:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 122975 ФПД: 262481855234371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T082605&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122975&fm=262481855234371&tin=02508201610067®Number=0000000000092681&sum=30060 [08:26:02]StoreToDocumentArchive [08:26:02]shift 556 fd 122975 [08:26:02]save to /storage/0556/doc_00122975 [08:26:02]save last doc name /storage/0556/doc_00122975 to /storage/kkm_last_doc_name [08:26:02]save OK [08:26:02]Clear old archive folders... [08:26:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:02]tlvbuf is 02092A70 [08:26:02]SAM_PROTO_ClearQueue [08:26:02]wFMCommunicate request_size=4 [08:26:02]MH_SAM_APDU [08:26:02]CAPDU: 80 09 00 00 [08:26:02]Write to MH i2c: E2 08 00 69 14 80 09 00 00 00 00 00 00 EF [08:26:02]Write i2c OK [08:26:02]MH_I2C_Read... [08:26:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:02]Read from MH i2c: E2 [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: E2 03 00 [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: E2 03 00 69 14 00 90 00 F1 [08:26:02]RAPDU: 90 00 [08:26:02]wFMCommunicate OK [08:26:02]SAM_PROTO_ClearQueue done [08:26:02]KKMCreateOFDPacket [08:26:02]OFDProtocolAddRootSTLVToBuf [08:26:02]FM_MakeSignedData [08:26:02]FM_MakeSignedData [08:26:02]SAM_PROTO_SignData [08:26:02]wFMCommunicate request_size=4 [08:26:02]MH_SAM_APDU [08:26:02]CAPDU: 80 0D 01 02 [08:26:02]Write to MH i2c: E2 08 00 6A 14 80 0D 01 02 00 00 00 00 F7 [08:26:02]Write i2c OK [08:26:02]MH_I2C_Read... [08:26:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:02]Read from MH i2c: E2 [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: E2 03 00 [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: E2 03 00 6A 14 00 90 00 F2 [08:26:02]RAPDU: 90 00 [08:26:02]wFMCommunicate OK [08:26:02]wFMCommunicate request_size=255 [08:26:02]MH_SAM_APDU [08:26:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 9D 34 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5F E0 01 00 35 04 06 00 EE [08:26:02]Write to MH i2c: E2 02 01 6B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 9D 34 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5F E0 01 00 35 04 06 00 EE 00 00 0A [08:26:02]Write i2c OK [08:26:02]MH_I2C_Read... [08:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:03]Read from MH i2c: E2 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 03 00 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 03 00 6B 14 00 90 00 F3 [08:26:03]RAPDU: 90 00 [08:26:03]wFMCommunicate OK [08:26:03]wFMCommunicate request_size=10 [08:26:03]MH_SAM_APDU [08:26:03]CAPDU: 80 0D 02 02 05 B9 D1 BD C1 43 [08:26:03]Write to MH i2c: E2 0D 00 6C 14 80 0D 02 02 05 00 B9 D1 BD C1 43 00 00 4F [08:26:03]Write i2c OK [08:26:03]MH_I2C_Read... [08:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:03]Read from MH i2c: E2 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 03 00 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 03 00 6C 14 00 90 00 F4 [08:26:03]RAPDU: 90 00 [08:26:03]wFMCommunicate OK [08:26:03]wFMCommunicate request_size=4 [08:26:03]MH_SAM_APDU [08:26:03]CAPDU: 80 0D 03 02 [08:26:03]Write to MH i2c: E2 08 00 6D 14 80 0D 03 02 00 00 00 00 FC [08:26:03]Write i2c OK [08:26:03]MH_I2C_Read... [08:26:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:03]Read from MH i2c: E2 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 0B 00 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 0B 00 6D 14 00 8D 23 DC BD 91 0F 34 B8 90 00 D2 [08:26:03]RAPDU: 8D 23 DC BD 91 0F 34 B8 90 00 [08:26:03]wFMCommunicate OK [08:26:03]SAM_PROTO_SignData done [08:26:03]FM_MakeSignedData done [08:26:03]CreateOFDProtocolMessage [08:26:03]wFMCommunicate request_size=4 [08:26:03]MH_SAM_APDU [08:26:03]CAPDU: 80 11 00 00 [08:26:03]Write to MH i2c: E2 08 00 6E 14 80 11 00 00 00 00 00 00 FC [08:26:03]Write i2c OK [08:26:03]MH_I2C_Read... [08:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:03]Read from MH i2c: E2 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 17 00 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 17 00 6E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 53 [08:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:26:03]wFMCommunicate OK [08:26:03]CreateOFDProtocolMessage done [08:26:03]OFDSenderStorePacket 122975 [08:26:03]StoreOFDPacket docnum=122975 [08:26:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A8 0E 07 01 03 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 9D 34 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5F E0 01 00 35 04 06 00 EE B9 D1 BD C1 43 8D 23 DC BD 91 0F 34 B8 [08:26:03]CheckFolder [08:26:03]dirname=/storage/ofd_packets [08:26:03]CheckFolder done [08:26:03]ProducePacketName [08:26:03]name=ofd_packets/00122975 [08:26:03]NVStorageSaveData ofd_packets/00122975 [08:26:03]File name is /storage/ofd_packets/00122975 [08:26:03]Write 301 bytes [08:26:03]NVStorageSaveData done [08:26:03]OFDSenderStorePacket done [08:26:03]KKMCreateOFDPacket done [08:26:03]NVStorageSaveData kkm_last_timestamp [08:26:03]File name is /storage/kkm_last_timestamp [08:26:03]Write 4 bytes [08:26:03]NVStorageSaveData done [08:26:03]ExternCall_PrintAddStr [08:26:03]wPrintStart [08:26:03]Write to MH i2c: 01 00 00 6F 14 83 [08:26:03]Write i2c OK [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: 01 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: 01 07 00 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: 01 07 00 6F 14 00 00 00 00 00 FF 0F 98 [08:26:03]RasterBufferAndPrint [08:26:03]line Счет N : (1)717759 [08:26:03]line ИНН: 02508201610067 [08:26:03]line Контрольно-Кассовый Чек [08:26:03]line ПРОДАЖА [08:26:03]line ТРК (МРК, ГНК) : 22 [08:26:03]line Товар: 2710124130 [08:26:03]line Аи-92-К-4 [08:26:03]line 4.460 * 67.40 [08:26:03]line = 300.60 [08:26:03]line НДС 12% НСП 1% [08:26:03]line > о реализуемом товаре [08:26:03]line ИТОГО: 300.60 [08:26:03]line НСП 1% : 2.66 [08:26:03]line НДС 12% : 31.92 [08:26:03]line Наличными: 0.00 [08:26:03]line Безнал.: 300.60 [08:26:03]line Место: АЗС № 64 "Партнер Нефть" [08:26:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:26:03]line СНО: Общий режим [08:26:03]line Чек 16 25.11.2024 08:26 [08:26:03]line Смена: 556 ФФД: 1.0 [08:26:03]line ЗНМ: 0300000033 [08:26:03]line РНМ: 0000000000092681 [08:26:03]line Версия ККМ: 001 [08:26:03]line Платежная система: O! деньги [08:26:03]line ФМ: 0000000000874881 [08:26:03]line ФД: 122975 [08:26:03]line ФПД: 262481855234371 [08:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T082605&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122975&fm=262481855234371&tin=02508201610067®Number=0000000000092681&sum=30060 [08:26:03]written 0, free lines is 4095 [08:26:03]OFD Sender: Processing packet 122975 [packets to send 7, broken 6] [08:26:03]ProducePacketName [08:26:03]name=ofd_packets/00122975 [08:26:03]OFD Sender: To server: pG, [08:26:03]CommunicateWithHost lk.salyk.kg:30040 [08:26:03]ConnectInit lk.salyk.kg [08:26:03]Connected sock=10 [08:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A8 0E 07 01 03 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 9D 34 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5F E0 01 00 35 04 06 00 EE B9 D1 BD C1 43 8D 23 DC BD 91 0F 34 B8 [08:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 53 BE 47 00 41 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 34 38 38 31 10 04 04 00 5F E0 01 00 F4 03 04 00 63 E0 43 67 B6 04 01 00 00 4E 26 9A DF 13 21 C3 88 [08:26:03]CommunicateWithHost err = 0 [08:26:03]CheckOFDResponse [08:26:03]1017 (14) - 77093643461234 [08:26:03]1041 (16) - 0000000000874881 [08:26:03]1040 (4) - 122975 [08:26:03]1012 (4) - 25.11.2024 02:26 [08:26:03]1206 (1) - 0 [08:26:03]OFD Sender: Remove packet 122975 [08:26:03]ProducePacketName [08:26:03]name=ofd_packets/00122975 [08:26:03]NVStorageDeleteData [08:26:03]Write to MH i2c: 01 00 00 99 14 AD [08:26:03]Write i2c OK [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: 01 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: 01 07 00 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: 01 07 00 99 14 00 00 00 00 00 54 0C 14 [08:26:03]RasterBufferAndPrint [08:26:03]line [08:26:03]line [08:26:03]line [08:26:03]line [08:26:03]line [08:26:03]written 0, free lines is 3160 [08:26:04]MH_Cut [08:26:04]Write to MH i2c: D1 01 00 A0 14 01 86 [08:26:04]Write i2c OK [08:26:04]MH_I2C_Read... [08:26:04]Read from MH i2c: D1 [08:26:04]MH_I2C_Read... [08:26:04]Read from MH i2c: D1 01 00 [08:26:04]MH_I2C_Read... [08:26:04]Read from MH i2c: D1 01 00 A0 14 00 85 [08:26:04]Write to MH i2c: 01 00 00 A1 14 B5 [08:26:04]Write i2c OK [08:26:04]MH_I2C_Read... [08:26:04]OFD Sender: No OFD packet to send [08:26:05]*** Cut start [08:26:05]*** Partial cut [08:26:05]*** CUTSNS_PIN = 1 [08:26:05]*** CUTSNS_PIN = 0 [08:26:05]*** Brake cut motor [08:26:06]Read from MH i2c: 01 [08:26:06]MH_I2C_Read... [08:26:06]*** Stop cut motor [08:26:06]*** Cut end [08:26:06]Read from MH i2c: 01 07 00 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: 01 07 00 A1 14 00 00 00 00 00 FF 0F CA [08:26:06]process_action close_receipt done [08:26:06]requested_data is exist [08:26:06]produce_requested_data [08:26:06]requested_item fm.sn is exist - process it [08:26:06]wFMCommunicate request_size=4 [08:26:06]MH_SAM_APDU [08:26:06]CAPDU: 80 11 00 00 [08:26:06]Write to MH i2c: E2 08 00 A2 14 80 11 00 00 00 00 00 00 30 [08:26:06]Write i2c OK [08:26:06]MH_I2C_Read... [08:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:06]Read from MH i2c: E2 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 17 00 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 17 00 A2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 87 [08:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:26:06]wFMCommunicate OK [08:26:06]requested_item fd.num is exist - process it [08:26:06]SAM_PROTO_GetFieldsCounters [08:26:06]wFMCommunicate request_size=4 [08:26:06]MH_SAM_APDU [08:26:06]CAPDU: 80 13 00 00 [08:26:06]Write to MH i2c: E2 08 00 A3 14 80 13 00 00 00 00 00 00 33 [08:26:06]Write i2c OK [08:26:06]MH_I2C_Read... [08:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:06]Read from MH i2c: E2 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 62 00 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 62 00 A3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5F E0 01 00 0E 04 04 00 2C 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 F7 [08:26:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5F E0 01 00 0E 04 04 00 2C 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:26:06]wFMCommunicate OK [08:26:06]SAM_PROTO_GetFieldsCounters done [08:26:06]requested_item shift.num is exist - process it [08:26:06]requested_item shift.opened is exist - process it [08:26:06]req_shift_opened [08:26:06]FM_GetShiftState [08:26:06]SAM_PROTO_GetShiftState [08:26:06]wFMCommunicate request_size=4 [08:26:06]MH_SAM_APDU [08:26:06]CAPDU: 80 13 01 00 [08:26:06]Write to MH i2c: E2 08 00 A4 14 80 13 01 00 00 00 00 00 35 [08:26:06]Write i2c OK [08:26:06]MH_I2C_Read... [08:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:06]Read from MH i2c: E2 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 0E 00 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 0E 00 A4 14 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B4 [08:26:06]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:26:06]wFMCommunicate OK [08:26:06]SAM_PROTO_GetShiftState done [08:26:06]FM_GetShiftState done [08:26:06]req_shift_opened done [08:26:06]requested_item shift.open_date is exist - process it [08:26:06]req_shift_open_date [08:26:06]req_shift_open_date done [08:26:06]produce_requested_data done [08:26:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122975,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [08:26:06]process_action_free close_receipt [08:26:06]json_value_free [08:26:06]json_value_free done [08:26:06]process_json_proto returns [08:26:06]Send response to host [08:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122975,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [08:26:06]free response buf [08:26:06]execute_script done [08:26:06]execute_script returns [08:26:06]free content buf [08:26:06]Sock 7.Close socket [08:26:06]Sock 7.Thread stoped [08:26:09]OFD Sender: No OFD packet to send [08:26:10]accept exits with 9 [08:26:10]New connection [08:26:10]New thread 3066723684 created [08:26:10]Thread 3066580324 joined [08:26:10]Waiting for new connection... [08:26:10] Sock 9.Parse request [08:26:10]Sock 9.Check first char [08:26:10]Sock 9.First char is OK [08:26:10]request: POST /json_proto HTTP/1.0 [08:26:10]Method: POST [08:26:10]URL: /json_proto [08:26:10]Method is POST - this is cgi request [08:26:10]url: /json_proto [08:26:10]query_string will be loaded in cgi processing [08:26:10]execute_cgi json_proto POST (null) [08:26:10]execute_cgi path=json_proto method=POST [08:26:10]POST find Content-Length [08:26:10]Host: 172.17.37.4:8080 [08:26:10]Content-Length: 677 [08:26:10]Content-Type: application/json [08:26:10] [08:26:10]POST finish read [08:26:10]Found Content-Length = 677 [08:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:26:10]execute_script... [08:26: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)717760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:26:10]POST & json_proto [08:26:10]process_json_proto [08:26:10]json parsed OK: [08:26:10]protocol is kg_v1.0 [08:26:10]action value=close_receipt [08:26:10]process_action close_receipt [08:26:10]cmd_close_receipt [08:26:10]MH_GetDate [08:26:10]Write to MH i2c: F0 00 00 A5 14 A8 [08:26:10]Write i2c OK [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: F0 [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: F0 09 00 [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: F0 09 00 A5 14 00 A6 34 44 67 B8 5A 43 67 F2 [08:26:10]GetLastDocTimeStamp 1732523165 [08:26:10]current date 1732523174 [08:26:10]FM_GetShiftState [08:26:10]SAM_PROTO_GetShiftState [08:26:10]wFMCommunicate request_size=4 [08:26:10]MH_SAM_APDU [08:26:10]CAPDU: 80 13 01 00 [08:26:10]Write to MH i2c: E2 08 00 A6 14 80 13 01 00 00 00 00 00 37 [08:26:10]Write i2c OK [08:26:10]MH_I2C_Read... [08:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:10]Read from MH i2c: E2 [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: E2 0E 00 [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: E2 0E 00 A6 14 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B6 [08:26:10]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:26:10]wFMCommunicate OK [08:26:10]SAM_PROTO_GetShiftState done [08:26:10]FM_GetShiftState done [08:26:10]opened in 1732493066 [08:26:10]opened+sec_in_day 1732579466 [08:26:10]quantity*price = 20017 [08:26:10]sum+1 = 20019 [08:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 17 25.11.2024 08:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122976 ФПД: 175687353084056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T082614&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122976&fm=175687353084056&tin=02508201610067®Number=0000000000092681&sum=20000 [08:26:11]StoreToDocumentArchive [08:26:11]shift 556 fd 122976 [08:26:11]save to /storage/0556/doc_00122976 [08:26:11]save last doc name /storage/0556/doc_00122976 to /storage/kkm_last_doc_name [08:26:11]save OK [08:26:11]Clear old archive folders... [08:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:11]tlvbuf is 02079280 [08:26:11]SAM_PROTO_ClearQueue [08:26:11]wFMCommunicate request_size=4 [08:26:11]MH_SAM_APDU [08:26:11]CAPDU: 80 09 00 00 [08:26:11]Write to MH i2c: E2 08 00 B3 14 80 09 00 00 00 00 00 00 39 [08:26:11]Write i2c OK [08:26:11]MH_I2C_Read... [08:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:11]Read from MH i2c: E2 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 03 00 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 03 00 B3 14 00 90 00 3B [08:26:11]RAPDU: 90 00 [08:26:11]wFMCommunicate OK [08:26:11]SAM_PROTO_ClearQueue done [08:26:11]KKMCreateOFDPacket [08:26:11]OFDProtocolAddRootSTLVToBuf [08:26:11]FM_MakeSignedData [08:26:11]FM_MakeSignedData [08:26:11]SAM_PROTO_SignData [08:26:11]wFMCommunicate request_size=4 [08:26:11]MH_SAM_APDU [08:26:11]CAPDU: 80 0D 01 02 [08:26:11]Write to MH i2c: E2 08 00 B4 14 80 0D 01 02 00 00 00 00 41 [08:26:11]Write i2c OK [08:26:11]MH_I2C_Read... [08:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:11]Read from MH i2c: E2 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 03 00 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 03 00 B4 14 00 90 00 3C [08:26:11]RAPDU: 90 00 [08:26:11]wFMCommunicate OK [08:26:11]wFMCommunicate request_size=255 [08:26:11]MH_SAM_APDU [08:26:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 11 00 00 00 F4 03 04 00 A6 34 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 60 E0 01 00 35 04 06 00 9F [08:26:11]Write to MH i2c: E2 02 01 B5 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 11 00 00 00 F4 03 04 00 A6 34 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 60 E0 01 00 35 04 06 00 9F 00 00 69 [08:26:11]Write i2c OK [08:26:11]MH_I2C_Read... [08:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:11]Read from MH i2c: E2 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 03 00 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [08:26:11]RAPDU: 90 00 [08:26:11]wFMCommunicate OK [08:26:11]wFMCommunicate request_size=10 [08:26:11]MH_SAM_APDU [08:26:11]CAPDU: 80 0D 02 02 05 C9 66 45 A8 98 [08:26:11]Write to MH i2c: E2 0D 00 B6 14 80 0D 02 02 05 00 C9 66 45 A8 98 00 00 02 [08:26:11]Write i2c OK [08:26:11]MH_I2C_Read... [08:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:11]Read from MH i2c: E2 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 03 00 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [08:26:11]RAPDU: 90 00 [08:26:11]wFMCommunicate OK [08:26:11]wFMCommunicate request_size=4 [08:26:11]MH_SAM_APDU [08:26:11]CAPDU: 80 0D 03 02 [08:26:11]Write to MH i2c: E2 08 00 B7 14 80 0D 03 02 00 00 00 00 46 [08:26:11]Write i2c OK [08:26:11]MH_I2C_Read... [08:26:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:11]Read from MH i2c: E2 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 0B 00 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 0B 00 B7 14 00 16 6A 1C EC 36 99 CD 1D 90 00 88 [08:26:11]RAPDU: 16 6A 1C EC 36 99 CD 1D 90 00 [08:26:11]wFMCommunicate OK [08:26:11]SAM_PROTO_SignData done [08:26:11]FM_MakeSignedData done [08:26:11]CreateOFDProtocolMessage [08:26:11]wFMCommunicate request_size=4 [08:26:11]MH_SAM_APDU [08:26:11]CAPDU: 80 11 00 00 [08:26:11]Write to MH i2c: E2 08 00 B8 14 80 11 00 00 00 00 00 00 46 [08:26:11]Write i2c OK [08:26:11]MH_I2C_Read... [08:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:11]Read from MH i2c: E2 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 17 00 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 17 00 B8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9D [08:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:26:11]wFMCommunicate OK [08:26:11]CreateOFDProtocolMessage done [08:26:11]OFDSenderStorePacket 122976 [08:26:11]StoreOFDPacket docnum=122976 [08:26:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 21 41 07 01 58 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 11 00 00 00 F4 03 04 00 A6 34 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 60 E0 01 00 35 04 06 00 9F C9 66 45 A8 98 16 6A 1C EC 36 99 CD 1D [08:26:11]CheckFolder [08:26:11]dirname=/storage/ofd_packets [08:26:11]CheckFolder done [08:26:11]ProducePacketName [08:26:11]name=ofd_packets/00122976 [08:26:11]NVStorageSaveData ofd_packets/00122976 [08:26:11]File name is /storage/ofd_packets/00122976 [08:26:11]Write 301 bytes [08:26:11]NVStorageSaveData done [08:26:11]OFDSenderStorePacket done [08:26:11]KKMCreateOFDPacket done [08:26:11]NVStorageSaveData kkm_last_timestamp [08:26:11]File name is /storage/kkm_last_timestamp [08:26:11]Write 4 bytes [08:26:11]NVStorageSaveData done [08:26:11]ExternCall_PrintAddStr [08:26:11]wPrintStart [08:26:11]Write to MH i2c: 01 00 00 B9 14 CD [08:26:11]Write i2c OK [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: 01 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: 01 07 00 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: 01 07 00 B9 14 00 00 00 00 00 FF 0F E2 [08:26:11]RasterBufferAndPrint [08:26:11]line Счет N : (1)717760 [08:26:11]line ИНН: 02508201610067 [08:26:11]line Контрольно-Кассовый Чек [08:26:11]line ПРОДАЖА [08:26:11]line ТРК (МРК, ГНК) : 22 [08:26:11]line Товар: 2710124130 [08:26:11]line Аи-92-К-4 [08:26:11]line 2.970 * 67.40 [08:26:11]line = 200.18 [08:26:11]line НДС 12% НСП 1% [08:26:11]line > о реализуемом товаре [08:26:11]line ОКРУГЛЕНИЕ: -0.18 [08:26:11]line ИТОГО: 200.00 [08:26:11]line Внесено: 200.00 [08:26:11]line СДАЧА: 0.00 [08:26:11]line НСП 1% : 1.77 [08:26:11]line НДС 12% : 21.26 [08:26:11]line Наличными: 200.00 [08:26:11]line Безнал.: 0.00 [08:26:11]line Место: АЗС № 64 "Партнер Нефть" [08:26:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:26:11]line СНО: Общий режим [08:26:11]line Чек 17 25.11.2024 08:26 [08:26:11]line Смена: 556 ФФД: 1.0 [08:26:11]line ЗНМ: 0300000033 [08:26:11]line РНМ: 0000000000092681 [08:26:11]line Версия ККМ: 001 [08:26:11]line ФМ: 0000000000874881 [08:26:11]line ФД: 122976 [08:26:11]line ФПД: 175687353084056 [08:26:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T082614&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122976&fm=175687353084056&tin=02508201610067®Number=0000000000092681&sum=20000 [08:26:11]written 0, free lines is 4095 [08:26:11]OFD Sender: Processing packet 122976 [packets to send 7, broken 6] [08:26:11]ProducePacketName [08:26:11]name=ofd_packets/00122976 [08:26:11]OFD Sender: To server: pG, [08:26:11]CommunicateWithHost lk.salyk.kg:30040 [08:26:11]ConnectInit lk.salyk.kg [08:26:11]Connected sock=10 [08:26:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 21 41 07 01 58 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 11 00 00 00 F4 03 04 00 A6 34 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 60 E0 01 00 35 04 06 00 9F C9 66 45 A8 98 16 6A 1C EC 36 99 CD 1D [08:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6E 61 47 00 96 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 34 38 38 31 10 04 04 00 60 E0 01 00 F4 03 04 00 6C E0 43 67 B6 04 01 00 00 40 8E C2 8B 16 5C 90 A1 [08:26:12]CommunicateWithHost err = 0 [08:26:12]CheckOFDResponse [08:26:12]1017 (14) - 77093643461234 [08:26:12]1041 (16) - 0000000000874881 [08:26:12]1040 (4) - 122976 [08:26:12]1012 (4) - 25.11.2024 02:26 [08:26:12]1206 (1) - 0 [08:26:12]OFD Sender: Remove packet 122976 [08:26:12]ProducePacketName [08:26:12]name=ofd_packets/00122976 [08:26:12]NVStorageDeleteData [08:26:12]Write to MH i2c: 01 00 00 E4 14 F8 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: 01 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: 01 07 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: 01 07 00 E4 14 00 00 00 00 00 4E 0C 59 [08:26:12]RasterBufferAndPrint [08:26:12]line [08:26:12]line [08:26:12]line [08:26:12]line [08:26:12]line [08:26:12]written 0, free lines is 3156 [08:26:12]MH_Cut [08:26:12]Write to MH i2c: D1 01 00 EB 14 01 D1 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: D1 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: D1 01 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: D1 01 00 EB 14 00 D0 [08:26:12]Write to MH i2c: 01 00 00 EC 14 00 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]OFD Sender: No OFD packet to send [08:26:13]*** Cut start [08:26:13]*** Partial cut [08:26:13]*** CUTSNS_PIN = 1 [08:26:13]*** CUTSNS_PIN = 0 [08:26:13]*** Brake cut motor [08:26:14]Read from MH i2c: 01 [08:26:14]MH_I2C_Read... [08:26:14]*** Stop cut motor [08:26:14]*** Cut end [08:26:14]Read from MH i2c: 01 07 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 FF 0F 15 [08:26:14]process_action close_receipt done [08:26:14]requested_data is exist [08:26:14]produce_requested_data [08:26:14]requested_item fm.sn is exist - process it [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 11 00 00 [08:26:14]Write to MH i2c: E2 08 00 ED 14 80 11 00 00 00 00 00 00 7B [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 17 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 17 00 ED 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D2 [08:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:26:14]wFMCommunicate OK [08:26:14]requested_item fd.num is exist - process it [08:26:14]SAM_PROTO_GetFieldsCounters [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 13 00 00 [08:26:14]Write to MH i2c: E2 08 00 EE 14 80 13 00 00 00 00 00 00 7E [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 62 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 62 00 EE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 60 E0 01 00 0E 04 04 00 2C 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 46 [08:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 60 E0 01 00 0E 04 04 00 2C 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:26:14]wFMCommunicate OK [08:26:14]SAM_PROTO_GetFieldsCounters done [08:26:14]requested_item shift.num is exist - process it [08:26:14]requested_item shift.opened is exist - process it [08:26:14]req_shift_opened [08:26:14]FM_GetShiftState [08:26:14]SAM_PROTO_GetShiftState [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 13 01 00 [08:26:14]Write to MH i2c: E2 08 00 EF 14 80 13 01 00 00 00 00 00 80 [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 0E 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 0E 00 EF 14 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FF [08:26:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:26:14]wFMCommunicate OK [08:26:14]SAM_PROTO_GetShiftState done [08:26:14]FM_GetShiftState done [08:26:14]req_shift_opened done [08:26:14]requested_item shift.open_date is exist - process it [08:26:14]req_shift_open_date [08:26:14]req_shift_open_date done [08:26:14]produce_requested_data done [08:26:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122976,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [08:26:14]process_action_free close_receipt [08:26:14]json_value_free [08:26:14]json_value_free done [08:26:14]process_json_proto returns [08:26:14]Send response to host [08:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122976,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [08:26:14]free response buf [08:26:14]execute_script done [08:26:14]execute_script returns [08:26:14]free content buf [08:26:14]Sock 9.Close socket [08:26:14]Sock 9.Thread stoped [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:04]accept exits with 7 [08:34:04]New connection [08:34:04]New thread 3066580324 created [08:34:04]Thread 3066723684 joined [08:34:04]Waiting for new connection... [08:34:04] Sock 7.Parse request [08:34:04]Sock 7.Check first char [08:34:04]Sock 7.First char is OK [08:34:04]request: POST /json_proto HTTP/1.0 [08:34:04]Method: POST [08:34:04]URL: /json_proto [08:34:04]Method is POST - this is cgi request [08:34:04]url: /json_proto [08:34:04]query_string will be loaded in cgi processing [08:34:04]execute_cgi json_proto POST (null) [08:34:04]execute_cgi path=json_proto method=POST [08:34:04]POST find Content-Length [08:34:04]Host: 172.17.37.4:8080 [08:34:04]Content-Length: 678 [08:34:04]Content-Type: application/json [08:34:04] [08:34:04]POST finish read [08:34:04]Found Content-Length = 678 [08:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "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" ] } } [08:34:04]execute_script... [08: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)717762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "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" ] } } [08:34:04]POST & json_proto [08:34:04]process_json_proto [08:34:04]json parsed OK: [08:34:04]protocol is kg_v1.0 [08:34:04]action value=close_receipt [08:34:04]process_action close_receipt [08:34:04]cmd_close_receipt [08:34:04]MH_GetDate [08:34:04]Write to MH i2c: F0 00 00 F0 14 F3 [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: F0 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: F0 09 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: F0 09 00 F0 14 00 80 36 44 67 B8 5A 43 67 19 [08:34:04]GetLastDocTimeStamp 1732523174 [08:34:04]current date 1732523648 [08:34:04]FM_GetShiftState [08:34:04]SAM_PROTO_GetShiftState [08:34:04]wFMCommunicate request_size=4 [08:34:04]MH_SAM_APDU [08:34:04]CAPDU: 80 13 01 00 [08:34:04]Write to MH i2c: E2 08 00 F1 14 80 13 01 00 00 00 00 00 82 [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:04]Read from MH i2c: E2 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 0E 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 0E 00 F1 14 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 01 [08:34:04]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:34:04]wFMCommunicate OK [08:34:04]SAM_PROTO_GetShiftState done [08:34:04]FM_GetShiftState done [08:34:04]opened in 1732493066 [08:34:04]opened+sec_in_day 1732579466 [08:34:04]quantity*price = 70028 [08:34:04]sum+1 = 70030 [08:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 18 25.11.2024 08:34 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122977 ФПД: 265275914943027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T083408&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122977&fm=265275914943027&tin=02508201610067®Number=0000000000092681&sum=70000 [08:34:05]StoreToDocumentArchive [08:34:05]shift 556 fd 122977 [08:34:05]save to /storage/0556/doc_00122977 [08:34:05]save last doc name /storage/0556/doc_00122977 to /storage/kkm_last_doc_name [08:34:05]save OK [08:34:05]Clear old archive folders... [08:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:05]tlvbuf is 0208B300 [08:34:05]SAM_PROTO_ClearQueue [08:34:05]wFMCommunicate request_size=4 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 09 00 00 [08:34:05]Write to MH i2c: E2 08 00 FE 14 80 09 00 00 00 00 00 00 84 [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [08:34:05]RAPDU: 90 00 [08:34:05]wFMCommunicate OK [08:34:05]SAM_PROTO_ClearQueue done [08:34:05]KKMCreateOFDPacket [08:34:05]OFDProtocolAddRootSTLVToBuf [08:34:05]FM_MakeSignedData [08:34:05]FM_MakeSignedData [08:34:05]SAM_PROTO_SignData [08:34:05]wFMCommunicate request_size=4 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 0D 01 02 [08:34:05]Write to MH i2c: E2 08 00 FF 14 80 0D 01 02 00 00 00 00 8C [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [08:34:05]RAPDU: 90 00 [08:34:05]wFMCommunicate OK [08:34:05]wFMCommunicate request_size=255 [08:34:05]MH_SAM_APDU [08: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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 12 00 00 00 F4 03 04 00 80 36 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 61 E0 01 00 35 04 06 00 F1 [08:34:05]Write to MH i2c: E2 02 01 00 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 12 00 00 00 F4 03 04 00 80 36 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 61 E0 01 00 35 04 06 00 F1 00 00 D6 [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [08:34:05]RAPDU: 90 00 [08:34:05]wFMCommunicate OK [08:34:05]wFMCommunicate request_size=10 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 0D 02 02 05 44 5C AD 7A 33 [08:34:05]Write to MH i2c: E2 0D 00 01 15 80 0D 02 02 05 00 44 5C AD 7A 33 00 00 94 [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [08:34:05]RAPDU: 90 00 [08:34:05]wFMCommunicate OK [08:34:05]wFMCommunicate request_size=4 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 0D 03 02 [08:34:05]Write to MH i2c: E2 08 00 02 15 80 0D 03 02 00 00 00 00 92 [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 0B 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 0B 00 02 15 00 D1 A7 F9 63 B7 C5 74 CA 90 00 21 [08:34:05]RAPDU: D1 A7 F9 63 B7 C5 74 CA 90 00 [08:34:05]wFMCommunicate OK [08:34:05]SAM_PROTO_SignData done [08:34:05]FM_MakeSignedData done [08:34:05]CreateOFDProtocolMessage [08:34:05]wFMCommunicate request_size=4 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 11 00 00 [08:34:05]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 17 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E9 [08:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:34:05]wFMCommunicate OK [08:34:05]CreateOFDProtocolMessage done [08:34:05]OFDSenderStorePacket 122977 [08:34:05]StoreOFDPacket docnum=122977 [08:34:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 CB 13 07 01 5B D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 12 00 00 00 F4 03 04 00 80 36 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 61 E0 01 00 35 04 06 00 F1 44 5C AD 7A 33 D1 A7 F9 63 B7 C5 74 CA [08:34:05]CheckFolder [08:34:05]dirname=/storage/ofd_packets [08:34:05]CheckFolder done [08:34:05]ProducePacketName [08:34:05]name=ofd_packets/00122977 [08:34:05]NVStorageSaveData ofd_packets/00122977 [08:34:05]File name is /storage/ofd_packets/00122977 [08:34:05]Write 301 bytes [08:34:05]NVStorageSaveData done [08:34:05]OFDSenderStorePacket done [08:34:05]KKMCreateOFDPacket done [08:34:05]NVStorageSaveData kkm_last_timestamp [08:34:05]File name is /storage/kkm_last_timestamp [08:34:05]Write 4 bytes [08:34:05]NVStorageSaveData done [08:34:05]ExternCall_PrintAddStr [08:34:05]wPrintStart [08:34:05]Write to MH i2c: 01 00 00 04 15 19 [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: 01 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: 01 07 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [08:34:05]RasterBufferAndPrint [08:34:05]line Счет N : (1)717762 [08:34:05]line ИНН: 02508201610067 [08:34:05]line Контрольно-Кассовый Чек [08:34:05]line ПРОДАЖА [08:34:05]line ТРК (МРК, ГНК) : 12 [08:34:05]line Товар: 2710124130 [08:34:05]line Аи-92-К-4 [08:34:05]line 10.390 * 67.40 [08:34:05]line = 700.29 [08:34:05]line НДС 12% НСП 1% [08:34:05]line > о реализуемом товаре [08:34:05]line ОКРУГЛЕНИЕ: -0.29 [08:34:05]line ИТОГО: 700.00 [08:34:05]line Внесено: 700.00 [08:34:05]line СДАЧА: 0.00 [08:34:05]line НСП 1% : 6.20 [08:34:05]line НДС 12% : 74.37 [08:34:05]line Наличными: 700.00 [08:34:05]line Безнал.: 0.00 [08:34:05]line Место: АЗС № 64 "Партнер Нефть" [08:34:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:34:05]line СНО: Общий режим [08:34:05]line Чек 18 25.11.2024 08:34 [08:34:05]line Смена: 556 ФФД: 1.0 [08:34:05]line ЗНМ: 0300000033 [08:34:05]line РНМ: 0000000000092681 [08:34:05]line Версия ККМ: 001 [08:34:05]line ФМ: 0000000000874881 [08:34:05]line ФД: 122977 [08:34:05]line ФПД: 265275914943027 [08:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T083408&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122977&fm=265275914943027&tin=02508201610067®Number=0000000000092681&sum=70000 [08:34:06]OFD Sender: Processing packet 122977 [packets to send 7, broken 6] [08:34:06]ProducePacketName [08:34:06]name=ofd_packets/00122977 [08:34:06]OFD Sender: To server: pG, [08:34:06]CommunicateWithHost lk.salyk.kg:30040 [08:34:06]ConnectInit lk.salyk.kg [08:34:06]written 0, free lines is 4095 [08:34:06]Connected sock=10 [08: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 34 38 38 31 0F 01 00 00 CB 13 07 01 5B D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 12 00 00 00 F4 03 04 00 80 36 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 61 E0 01 00 35 04 06 00 F1 44 5C AD 7A 33 D1 A7 F9 63 B7 C5 74 CA [08:34:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 67 2A 47 00 F8 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 34 38 38 31 10 04 04 00 61 E0 01 00 F4 03 04 00 46 E2 43 67 B6 04 01 00 00 27 CA F7 09 E2 76 4B 1D [08:34:06]CommunicateWithHost err = 0 [08:34:06]CheckOFDResponse [08:34:06]1017 (14) - 77093643461234 [08:34:06]1041 (16) - 0000000000874881 [08:34:06]1040 (4) - 122977 [08:34:06]1012 (4) - 25.11.2024 02:34 [08:34:06]1206 (1) - 0 [08:34:06]OFD Sender: Remove packet 122977 [08:34:06]ProducePacketName [08:34:06]name=ofd_packets/00122977 [08:34:06]NVStorageDeleteData [08:34:06]Write to MH i2c: 01 00 00 2F 15 44 [08:34:06]Write i2c OK [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: 01 [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: 01 07 00 [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: 01 07 00 2F 15 00 00 00 00 00 35 0C 8C [08:34:06]RasterBufferAndPrint [08:34:06]line [08:34:06]line [08:34:06]line [08:34:06]line [08:34:06]line [08:34:06]written 0, free lines is 3132 [08:34:06]MH_Cut [08:34:06]Write to MH i2c: D1 01 00 36 15 01 1D [08:34:06]Write i2c OK [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: D1 [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: D1 01 00 [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: D1 01 00 36 15 00 1C [08:34:06]Write to MH i2c: 01 00 00 37 15 4C [08:34:06]Write i2c OK [08:34:06]MH_I2C_Read... [08:34:06]OFD Sender: No OFD packet to send [08:34:07]*** Cut start [08:34:07]*** Partial cut [08:34:07]*** CUTSNS_PIN = 1 [08:34:08]*** CUTSNS_PIN = 0 [08:34:08]*** Brake cut motor [08:34:08]Read from MH i2c: 01 [08:34:08]MH_I2C_Read... [08:34:08]*** Stop cut motor [08:34:08]*** Cut end [08:34:08]Read from MH i2c: 01 07 00 [08:34:08]MH_I2C_Read... [08:34:08]Read from MH i2c: 01 07 00 37 15 00 00 00 00 00 FF 0F 61 [08:34:08]process_action close_receipt done [08:34:08]requested_data is exist [08:34:08]produce_requested_data [08:34:08]requested_item fm.sn is exist - process it [08:34:08]wFMCommunicate request_size=4 [08:34:08]MH_SAM_APDU [08:34:08]CAPDU: 80 11 00 00 [08:34:08]Write to MH i2c: E2 08 00 38 15 80 11 00 00 00 00 00 00 C7 [08:34:08]Write i2c OK [08:34:08]MH_I2C_Read... [08:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:08]Read from MH i2c: E2 [08:34:08]MH_I2C_Read... [08:34:08]Read from MH i2c: E2 17 00 [08:34:08]MH_I2C_Read... [08:34:08]Read from MH i2c: E2 17 00 38 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1E [08:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:34:08]wFMCommunicate OK [08:34:08]requested_item fd.num is exist - process it [08:34:08]SAM_PROTO_GetFieldsCounters [08:34:08]wFMCommunicate request_size=4 [08:34:08]MH_SAM_APDU [08:34:08]CAPDU: 80 13 00 00 [08:34:08]Write to MH i2c: E2 08 00 39 15 80 13 00 00 00 00 00 00 CA [08:34:08]Write i2c OK [08:34:08]MH_I2C_Read... [08:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:08]Read from MH i2c: E2 [08:34:08]MH_I2C_Read... [08:34:08]Read from MH i2c: E2 62 00 [08:34:08]MH_I2C_Read... [08:34:08]Read from MH i2c: E2 62 00 39 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 61 E0 01 00 0E 04 04 00 2C 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 96 [08: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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 61 E0 01 00 0E 04 04 00 2C 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:08]wFMCommunicate OK [08:34:08]SAM_PROTO_GetFieldsCounters done [08:34:08]requested_item shift.num is exist - process it [08:34:08]requested_item shift.opened is exist - process it [08:34:08]req_shift_opened [08:34:08]FM_GetShiftState [08:34:08]SAM_PROTO_GetShiftState [08:34:08]wFMCommunicate request_size=4 [08:34:08]MH_SAM_APDU [08:34:08]CAPDU: 80 13 01 00 [08:34:08]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [08:34:08]Write i2c OK [08:34:08]MH_I2C_Read... [08:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:08]Read from MH i2c: E2 [08:34:08]MH_I2C_Read... [08:34:08]Read from MH i2c: E2 0E 00 [08:34:08]MH_I2C_Read... [08:34:08]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4B [08:34:08]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:34:08]wFMCommunicate OK [08:34:08]SAM_PROTO_GetShiftState done [08:34:08]FM_GetShiftState done [08:34:08]req_shift_opened done [08:34:08]requested_item shift.open_date is exist - process it [08:34:08]req_shift_open_date [08:34:08]req_shift_open_date done [08:34:08]produce_requested_data done [08:34:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122977,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [08:34:08]process_action_free close_receipt [08:34:08]json_value_free [08:34:08]json_value_free done [08:34:08]process_json_proto returns [08:34:08]Send response to host [08:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122977,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [08:34:08]free response buf [08:34:08]execute_script done [08:34:08]execute_script returns [08:34:08]free content buf [08:34:08]Sock 7.Close socket [08:34:08]Sock 7.Thread stoped [08:34:11]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]accept exits with 9 [08:35:06]New connection [08:35:06]New thread 3066723684 created [08:35:06]Thread 3066580324 joined [08:35:06]Waiting for new connection... [08:35:06] Sock 9.Parse request [08:35:06]Sock 9.Check first char [08:35:06]Sock 9.First char is OK [08:35:06]request: POST /json_proto HTTP/1.0 [08:35:06]Method: POST [08:35:06]URL: /json_proto [08:35:06]Method is POST - this is cgi request [08:35:06]url: /json_proto [08:35:06]query_string will be loaded in cgi processing [08:35:06]execute_cgi json_proto POST (null) [08:35:06]execute_cgi path=json_proto method=POST [08:35:06]POST find Content-Length [08:35:06]Host: 172.17.37.4:8080 [08:35:06]Content-Length: 817 [08:35:06]Content-Type: application/json [08:35:06] [08:35:06]POST finish read [08:35:06]Found Content-Length = 817 [08:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:06]execute_script... [08:35: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)717761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:06]POST & json_proto [08:35:06]process_json_proto [08:35:06]json parsed OK: [08:35:06]protocol is kg_v1.0 [08:35:06]action value=close_receipt [08:35:06]process_action close_receipt [08:35:06]cmd_close_receipt [08:35:06]MH_GetDate [08:35:06]Write to MH i2c: F0 00 00 3B 15 3F [08:35:06]Write i2c OK [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: F0 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: F0 09 00 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: F0 09 00 3B 15 00 BE 36 44 67 B8 5A 43 67 A3 [08:35:06]GetLastDocTimeStamp 1732523648 [08:35:06]current date 1732523710 [08:35:06]FM_GetShiftState [08:35:06]SAM_PROTO_GetShiftState [08:35:06]wFMCommunicate request_size=4 [08:35:06]MH_SAM_APDU [08:35:06]CAPDU: 80 13 01 00 [08:35:06]Write to MH i2c: E2 08 00 3C 15 80 13 01 00 00 00 00 00 CE [08:35:06]Write i2c OK [08:35:06]MH_I2C_Read... [08:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:06]Read from MH i2c: E2 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 0E 00 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 0E 00 3C 15 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4D [08:35:06]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:35:06]wFMCommunicate OK [08:35:06]SAM_PROTO_GetShiftState done [08:35:06]FM_GetShiftState done [08:35:06]opened in 1732493066 [08:35:06]opened+sec_in_day 1732579466 [08:35:06]quantity*price = 67400 [08:35:06]sum+1 = 67401 [08:35:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 674.00 НСП 1% : 5.96 НДС 12% : 71.57 Наличными: 0.00 Безнал.: 674.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 19 25.11.2024 08:35 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 122978 ФПД: 252919961014489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T083510&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122978&fm=252919961014489&tin=02508201610067®Number=0000000000092681&sum=67400 [08:35:08]StoreToDocumentArchive [08:35:08]shift 556 fd 122978 [08:35:08]save to /storage/0556/doc_00122978 [08:35:08]save last doc name /storage/0556/doc_00122978 to /storage/kkm_last_doc_name [08:35:08]save OK [08:35:08]Clear old archive folders... [08:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:08]tlvbuf is 01F26740 [08:35:08]SAM_PROTO_ClearQueue [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 09 00 00 [08:35:08]Write to MH i2c: E2 08 00 49 15 80 09 00 00 00 00 00 00 D0 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]SAM_PROTO_ClearQueue done [08:35:08]KKMCreateOFDPacket [08:35:08]OFDProtocolAddRootSTLVToBuf [08:35:08]FM_MakeSignedData [08:35:08]FM_MakeSignedData [08:35:08]SAM_PROTO_SignData [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 0D 01 02 [08:35:08]Write to MH i2c: E2 08 00 4A 15 80 0D 01 02 00 00 00 00 D8 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]wFMCommunicate request_size=255 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 BE 36 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E0 01 00 35 04 06 00 E6 [08:35:08]Write to MH i2c: E2 02 01 4B 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 BE 36 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E0 01 00 35 04 06 00 E6 00 00 EA [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]wFMCommunicate request_size=10 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 0D 02 02 05 07 84 6E D0 D9 [08:35:08]Write to MH i2c: E2 0D 00 4C 15 80 0D 02 02 05 00 07 84 6E D0 D9 00 00 87 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 0D 03 02 [08:35:08]Write to MH i2c: E2 08 00 4D 15 80 0D 03 02 00 00 00 00 DD [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 0B 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 0B 00 4D 15 00 4D B0 25 33 77 DA 4A 1B 90 00 E9 [08:35:08]RAPDU: 4D B0 25 33 77 DA 4A 1B 90 00 [08:35:08]wFMCommunicate OK [08:35:08]SAM_PROTO_SignData done [08:35:08]FM_MakeSignedData done [08:35:08]CreateOFDProtocolMessage [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 11 00 00 [08:35:08]Write to MH i2c: E2 08 00 4E 15 80 11 00 00 00 00 00 00 DD [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 17 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 17 00 4E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 34 [08:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:35:08]wFMCommunicate OK [08:35:08]CreateOFDProtocolMessage done [08:35:08]OFDSenderStorePacket 122978 [08:35:08]StoreOFDPacket docnum=122978 [08:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 09 44 07 01 4E 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 BE 36 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E0 01 00 35 04 06 00 E6 07 84 6E D0 D9 4D B0 25 33 77 DA 4A 1B [08:35:08]CheckFolder [08:35:08]dirname=/storage/ofd_packets [08:35:08]CheckFolder done [08:35:08]ProducePacketName [08:35:08]name=ofd_packets/00122978 [08:35:08]NVStorageSaveData ofd_packets/00122978 [08:35:08]File name is /storage/ofd_packets/00122978 [08:35:08]Write 301 bytes [08:35:08]NVStorageSaveData done [08:35:08]OFDSenderStorePacket done [08:35:08]KKMCreateOFDPacket done [08:35:08]NVStorageSaveData kkm_last_timestamp [08:35:08]File name is /storage/kkm_last_timestamp [08:35:08]Write 4 bytes [08:35:08]NVStorageSaveData done [08:35:08]ExternCall_PrintAddStr [08:35:08]wPrintStart [08:35:08]Write to MH i2c: 01 00 00 4F 15 64 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 07 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 07 00 4F 15 00 00 00 00 00 FF 0F 79 [08:35:08]RasterBufferAndPrint [08:35:08]line Счет N : (1)717761 [08:35:08]line ИНН: 02508201610067 [08:35:08]line Контрольно-Кассовый Чек [08:35:08]line ПРОДАЖА [08:35:08]line ТРК (МРК, ГНК) : 22 [08:35:08]line Товар: 2710124130 [08:35:08]line Аи-92-К-4 [08:35:08]line 10.000 * 67.40 [08:35:08]line = 674.00 [08:35:08]line НДС 12% НСП 1% [08:35:08]line > о реализуемом товаре [08:35:08]line ИТОГО: 674.00 [08:35:08]line НСП 1% : 5.96 [08:35:08]line НДС 12% : 71.57 [08:35:08]line Наличными: 0.00 [08:35:08]line Безнал.: 674.00 [08:35:08]line Место: АЗС № 64 "Партнер Нефть" [08:35:08]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:35:08]line СНО: Общий режим [08:35:08]line Чек 19 25.11.2024 08:35 [08:35:08]line Смена: 556 ФФД: 1.0 [08:35:08]line ЗНМ: 0300000033 [08:35:08]line РНМ: 0000000000092681 [08:35:08]line Версия ККМ: 001 [08:35:08]line Платежная система: Бакай Банк [08:35:08]line ФМ: 0000000000874881 [08:35:08]line ФД: 122978 [08:35:08]line ФПД: 252919961014489 [08:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T083510&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122978&fm=252919961014489&tin=02508201610067®Number=0000000000092681&sum=67400 [08:35:08]written 0, free lines is 4095 [08:35:08]OFD Sender: Processing packet 122978 [packets to send 7, broken 6] [08:35:08]ProducePacketName [08:35:08]name=ofd_packets/00122978 [08:35:08]OFD Sender: To server: pG, [08:35:08]CommunicateWithHost lk.salyk.kg:30040 [08:35:08]ConnectInit lk.salyk.kg [08:35:08]Connected sock=10 [08:35:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 09 44 07 01 4E 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 BE 36 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E0 01 00 35 04 06 00 E6 07 84 6E D0 D9 4D B0 25 33 77 DA 4A 1B [08:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 89 B3 47 00 39 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E0 01 00 F4 03 04 00 85 E2 43 67 B6 04 01 00 00 0A 8B F6 79 FB 15 BC 98 [08:35:09]CommunicateWithHost err = 0 [08:35:09]CheckOFDResponse [08:35:09]1017 (14) - 77093643461234 [08:35:09]1041 (16) - 0000000000874881 [08:35:09]1040 (4) - 122978 [08:35:09]1012 (4) - 25.11.2024 02:35 [08:35:09]1206 (1) - 0 [08:35:09]OFD Sender: Remove packet 122978 [08:35:09]ProducePacketName [08:35:09]name=ofd_packets/00122978 [08:35:09]NVStorageDeleteData [08:35:09]Write to MH i2c: 01 00 00 79 15 8E [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: 01 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: 01 07 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: 01 07 00 79 15 00 00 00 00 00 51 0C F2 [08:35:09]RasterBufferAndPrint [08:35:09]line [08:35:09]line [08:35:09]line [08:35:09]line [08:35:09]line [08:35:09]written 0, free lines is 3158 [08:35:09]MH_Cut [08:35:09]Write to MH i2c: D1 01 00 80 15 01 67 [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: D1 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: D1 01 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: D1 01 00 80 15 00 66 [08:35:09]Write to MH i2c: 01 00 00 81 15 96 [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]OFD Sender: No OFD packet to send [08:35:10]*** Cut start [08:35:10]*** Partial cut [08:35:10]*** CUTSNS_PIN = 1 [08:35:10]*** CUTSNS_PIN = 0 [08:35:11]*** Brake cut motor [08:35:11]Read from MH i2c: 01 [08:35:11]MH_I2C_Read... [08:35:11]*** Stop cut motor [08:35:11]*** Cut end [08:35:11]Read from MH i2c: 01 07 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: 01 07 00 81 15 00 00 00 00 00 FF 0F AB [08:35:11]process_action close_receipt done [08:35:11]requested_data is exist [08:35:11]produce_requested_data [08:35:11]requested_item fm.sn is exist - process it [08:35:11]wFMCommunicate request_size=4 [08:35:11]MH_SAM_APDU [08:35:11]CAPDU: 80 11 00 00 [08:35:11]Write to MH i2c: E2 08 00 82 15 80 11 00 00 00 00 00 00 11 [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:11]Read from MH i2c: E2 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 17 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 17 00 82 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 68 [08:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:35:11]wFMCommunicate OK [08:35:11]requested_item fd.num is exist - process it [08:35:11]SAM_PROTO_GetFieldsCounters [08:35:11]wFMCommunicate request_size=4 [08:35:11]MH_SAM_APDU [08:35:11]CAPDU: 80 13 00 00 [08:35:11]Write to MH i2c: E2 08 00 83 15 80 13 00 00 00 00 00 00 14 [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:11]Read from MH i2c: E2 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 62 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 62 00 83 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 62 E0 01 00 0E 04 04 00 2C 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 E4 [08:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 62 E0 01 00 0E 04 04 00 2C 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:35:11]wFMCommunicate OK [08:35:11]SAM_PROTO_GetFieldsCounters done [08:35:11]requested_item shift.num is exist - process it [08:35:11]requested_item shift.opened is exist - process it [08:35:11]req_shift_opened [08:35:11]FM_GetShiftState [08:35:11]SAM_PROTO_GetShiftState [08:35:11]wFMCommunicate request_size=4 [08:35:11]MH_SAM_APDU [08:35:11]CAPDU: 80 13 01 00 [08:35:11]Write to MH i2c: E2 08 00 84 15 80 13 01 00 00 00 00 00 16 [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:11]Read from MH i2c: E2 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 0E 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 0E 00 84 15 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 95 [08:35:11]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:35:11]wFMCommunicate OK [08:35:11]SAM_PROTO_GetShiftState done [08:35:11]FM_GetShiftState done [08:35:11]req_shift_opened done [08:35:11]requested_item shift.open_date is exist - process it [08:35:11]req_shift_open_date [08:35:11]req_shift_open_date done [08:35:11]produce_requested_data done [08:35:11]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122978,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [08:35:11]process_action_free close_receipt [08:35:11]json_value_free [08:35:11]json_value_free done [08:35:11]process_json_proto returns [08:35:11]Send response to host [08:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122978,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [08:35:11]free response buf [08:35:11]execute_script done [08:35:11]execute_script returns [08:35:11]free content buf [08:35:11]Sock 9.Close socket [08:35:11]Sock 9.Thread stoped [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:45:56]accept exits with 7 [08:45:56]New connection [08:45:56]New thread 3066580324 created [08:45:56]Thread 3066723684 joined [08:45:56]Waiting for new connection... [08:45:56] Sock 7.Parse request [08:45:56]Sock 7.Check first char [08:45:56]Sock 7.First char is OK [08:45:56]request: POST /json_proto HTTP/1.0 [08:45:56]Method: POST [08:45:56]URL: /json_proto [08:45:56]Method is POST - this is cgi request [08:45:56]url: /json_proto [08:45:56]query_string will be loaded in cgi processing [08:45:56]execute_cgi json_proto POST (null) [08:45:56]execute_cgi path=json_proto method=POST [08:45:56]POST find Content-Length [08:45:56]Host: 172.17.37.4:8080 [08:45:56]Content-Length: 682 [08:45:56]Content-Type: application/json [08:45:56] [08:45:56]POST finish read [08:45:56]Found Content-Length = 682 [08:45:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:56]execute_script... [08:45: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)717763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:56]POST & json_proto [08:45:56]process_json_proto [08:45:56]json parsed OK: [08:45:56]protocol is kg_v1.0 [08:45:56]action value=close_receipt [08:45:56]process_action close_receipt [08:45:56]cmd_close_receipt [08:45:56]MH_GetDate [08:45:56]Write to MH i2c: F0 00 00 85 15 89 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: F0 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: F0 09 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: F0 09 00 85 15 00 48 39 44 67 B8 5A 43 67 7A [08:45:56]GetLastDocTimeStamp 1732523710 [08:45:56]current date 1732524360 [08:45:56]FM_GetShiftState [08:45:56]SAM_PROTO_GetShiftState [08:45:56]wFMCommunicate request_size=4 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 13 01 00 [08:45:56]Write to MH i2c: E2 08 00 86 15 80 13 01 00 00 00 00 00 18 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 0E 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 0E 00 86 15 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 97 [08:45:56]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:45:56]wFMCommunicate OK [08:45:56]SAM_PROTO_GetShiftState done [08:45:56]FM_GetShiftState done [08:45:56]opened in 1732493066 [08:45:56]opened+sec_in_day 1732579466 [08:45:56]quantity*price = 100021 [08:45:56]sum+1 = 100023 [08:45:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 20 25.11.2024 08:46 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122979 ФПД: 108805738364112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T084600&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122979&fm=108805738364112&tin=02508201610067®Number=0000000000092681&sum=100000 [08:45:57]StoreToDocumentArchive [08:45:57]shift 556 fd 122979 [08:45:57]save to /storage/0556/doc_00122979 [08:45:57]save last doc name /storage/0556/doc_00122979 to /storage/kkm_last_doc_name [08:45:57]save OK [08:45:57]Clear old archive folders... [08:45:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:57]tlvbuf is 020908C0 [08:45:57]SAM_PROTO_ClearQueue [08:45:57]wFMCommunicate request_size=4 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 09 00 00 [08:45:57]Write to MH i2c: E2 08 00 93 15 80 09 00 00 00 00 00 00 1A [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:57]Read from MH i2c: E2 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 03 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [08:45:57]RAPDU: 90 00 [08:45:57]wFMCommunicate OK [08:45:57]SAM_PROTO_ClearQueue done [08:45:57]KKMCreateOFDPacket [08:45:57]OFDProtocolAddRootSTLVToBuf [08:45:57]FM_MakeSignedData [08:45:57]FM_MakeSignedData [08:45:57]SAM_PROTO_SignData [08:45:57]wFMCommunicate request_size=4 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 0D 01 02 [08:45:57]Write to MH i2c: E2 08 00 94 15 80 0D 01 02 00 00 00 00 22 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:57]Read from MH i2c: E2 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 03 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [08:45:57]RAPDU: 90 00 [08:45:57]wFMCommunicate OK [08:45:57]wFMCommunicate request_size=255 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 48 39 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E0 01 00 35 04 06 00 62 [08:45:57]Write to MH i2c: E2 02 01 95 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 48 39 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E0 01 00 35 04 06 00 62 00 00 8D [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:57]Read from MH i2c: E2 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 03 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [08:45:57]RAPDU: 90 00 [08:45:57]wFMCommunicate OK [08:45:57]wFMCommunicate request_size=10 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 0D 02 02 05 F5 4F 62 7C D0 [08:45:57]Write to MH i2c: E2 0D 00 96 15 80 0D 02 02 05 00 F5 4F 62 7C D0 00 00 21 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:57]Read from MH i2c: E2 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 03 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [08:45:57]RAPDU: 90 00 [08:45:57]wFMCommunicate OK [08:45:57]wFMCommunicate request_size=4 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 0D 03 02 [08:45:57]Write to MH i2c: E2 08 00 97 15 80 0D 03 02 00 00 00 00 27 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:57]Read from MH i2c: E2 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 0B 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 0B 00 97 15 00 CC 6B 08 46 C4 C0 DA 04 90 00 0F [08:45:57]RAPDU: CC 6B 08 46 C4 C0 DA 04 90 00 [08:45:57]wFMCommunicate OK [08:45:57]SAM_PROTO_SignData done [08:45:57]FM_MakeSignedData done [08:45:57]CreateOFDProtocolMessage [08:45:57]wFMCommunicate request_size=4 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 11 00 00 [08:45:57]Write to MH i2c: E2 08 00 98 15 80 11 00 00 00 00 00 00 27 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:58]Read from MH i2c: E2 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 17 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 17 00 98 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7E [08:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:45:58]wFMCommunicate OK [08:45:58]CreateOFDProtocolMessage done [08:45:58]OFDSenderStorePacket 122979 [08:45:58]StoreOFDPacket docnum=122979 [08:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 23 B3 07 01 47 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 48 39 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E0 01 00 35 04 06 00 62 F5 4F 62 7C D0 CC 6B 08 46 C4 C0 DA 04 [08:45:58]CheckFolder [08:45:58]dirname=/storage/ofd_packets [08:45:58]CheckFolder done [08:45:58]ProducePacketName [08:45:58]name=ofd_packets/00122979 [08:45:58]NVStorageSaveData ofd_packets/00122979 [08:45:58]File name is /storage/ofd_packets/00122979 [08:45:58]Write 301 bytes [08:45:58]NVStorageSaveData done [08:45:58]OFDSenderStorePacket done [08:45:58]KKMCreateOFDPacket done [08:45:58]NVStorageSaveData kkm_last_timestamp [08:45:58]File name is /storage/kkm_last_timestamp [08:45:58]Write 4 bytes [08:45:58]NVStorageSaveData done [08:45:58]ExternCall_PrintAddStr [08:45:58]wPrintStart [08:45:58]Write to MH i2c: 01 00 00 99 15 AE [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: 01 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: 01 07 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: 01 07 00 99 15 00 00 00 00 00 FF 0F C3 [08:45:58]RasterBufferAndPrint [08:45:58]line Счет N : (1)717763 [08:45:58]line ИНН: 02508201610067 [08:45:58]line Контрольно-Кассовый Чек [08:45:58]line ПРОДАЖА [08:45:58]line ТРК (МРК, ГНК) : 22 [08:45:58]line Товар: 2710124130 [08:45:58]line Аи-92-К-4 [08:45:58]line 14.840 * 67.40 [08:45:58]line = 1000.22 [08:45:58]line НДС 12% НСП 1% [08:45:58]line > о реализуемом товаре [08:45:58]line ОКРУГЛЕНИЕ: -0.22 [08:45:58]line ИТОГО: 1000.00 [08:45:58]line Внесено: 1000.00 [08:45:58]line СДАЧА: 0.00 [08:45:58]line НСП 1% : 8.85 [08:45:58]line НДС 12% : 106.22 [08:45:58]line Наличными: 1000.00 [08:45:58]line Безнал.: 0.00 [08:45:58]line Место: АЗС № 64 "Партнер Нефть" [08:45:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:45:58]line СНО: Общий режим [08:45:58]line Чек 20 25.11.2024 08:46 [08:45:58]line Смена: 556 ФФД: 1.0 [08:45:58]line ЗНМ: 0300000033 [08:45:58]line РНМ: 0000000000092681 [08:45:58]line Версия ККМ: 001 [08:45:58]line ФМ: 0000000000874881 [08:45:58]line ФД: 122979 [08:45:58]line ФПД: 108805738364112 [08:45:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T084600&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122979&fm=108805738364112&tin=02508201610067®Number=0000000000092681&sum=100000 [08:45:58]written 0, free lines is 4095 [08:45:58]OFD Sender: Processing packet 122979 [packets to send 7, broken 6] [08:45:58]ProducePacketName [08:45:58]name=ofd_packets/00122979 [08:45:58]OFD Sender: To server: pG, [08:45:58]CommunicateWithHost lk.salyk.kg:30040 [08:45:58]ConnectInit lk.salyk.kg [08:45:58]Connected sock=10 [08:45:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 23 B3 07 01 47 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 48 39 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E0 01 00 35 04 06 00 62 F5 4F 62 7C D0 CC 6B 08 46 C4 C0 DA 04 [08:45:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D7 1D 47 00 58 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E0 01 00 F4 03 04 00 0E E5 43 67 B6 04 01 00 00 39 B7 C9 8E 26 55 F9 53 [08:45:58]CommunicateWithHost err = 0 [08:45:58]CheckOFDResponse [08:45:58]1017 (14) - 77093643461234 [08:45:58]1041 (16) - 0000000000874881 [08:45:58]1040 (4) - 122979 [08:45:58]1012 (4) - 25.11.2024 02:46 [08:45:58]1206 (1) - 0 [08:45:58]OFD Sender: Remove packet 122979 [08:45:58]ProducePacketName [08:45:58]name=ofd_packets/00122979 [08:45:58]NVStorageDeleteData [08:45:58]Write to MH i2c: 01 00 00 C4 15 D9 [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: 01 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: 01 07 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: 01 07 00 C4 15 00 00 00 00 00 44 0C 30 [08:45:58]RasterBufferAndPrint [08:45:58]line [08:45:58]line [08:45:58]line [08:45:58]line [08:45:58]line [08:45:58]written 0, free lines is 3144 [08:45:58]MH_Cut [08:45:58]Write to MH i2c: D1 01 00 CB 15 01 B2 [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: D1 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: D1 01 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: D1 01 00 CB 15 00 B1 [08:45:58]Write to MH i2c: 01 00 00 CC 15 E1 [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:58]OFD Sender: No OFD packet to send [08:45:59]*** Cut start [08:45:59]*** Partial cut [08:45:59]*** CUTSNS_PIN = 1 [08:45:59]*** CUTSNS_PIN = 0 [08:46:00]*** Brake cut motor [08:46:00]Read from MH i2c: 01 [08:46:00]MH_I2C_Read... [08:46:00]*** Stop cut motor [08:46:00]*** Cut end [08:46:00]Read from MH i2c: 01 07 00 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: 01 07 00 CC 15 00 00 00 00 00 FF 0F F6 [08:46:00]process_action close_receipt done [08:46:00]requested_data is exist [08:46:00]produce_requested_data [08:46:00]requested_item fm.sn is exist - process it [08:46:00]wFMCommunicate request_size=4 [08:46:00]MH_SAM_APDU [08:46:00]CAPDU: 80 11 00 00 [08:46:00]Write to MH i2c: E2 08 00 CD 15 80 11 00 00 00 00 00 00 5C [08:46:00]Write i2c OK [08:46:00]MH_I2C_Read... [08:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:00]Read from MH i2c: E2 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: E2 17 00 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: E2 17 00 CD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B3 [08:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:46:00]wFMCommunicate OK [08:46:00]requested_item fd.num is exist - process it [08:46:00]SAM_PROTO_GetFieldsCounters [08:46:00]wFMCommunicate request_size=4 [08:46:00]MH_SAM_APDU [08:46:00]CAPDU: 80 13 00 00 [08:46:00]Write to MH i2c: E2 08 00 CE 15 80 13 00 00 00 00 00 00 5F [08:46:00]Write i2c OK [08:46:00]MH_I2C_Read... [08:46:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:00]Read from MH i2c: E2 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: E2 62 00 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: E2 62 00 CE 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 63 E0 01 00 0E 04 04 00 2C 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 33 [08:46:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 63 E0 01 00 0E 04 04 00 2C 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:46:00]wFMCommunicate OK [08:46:00]SAM_PROTO_GetFieldsCounters done [08:46:00]requested_item shift.num is exist - process it [08:46:00]requested_item shift.opened is exist - process it [08:46:00]req_shift_opened [08:46:00]FM_GetShiftState [08:46:00]SAM_PROTO_GetShiftState [08:46:00]wFMCommunicate request_size=4 [08:46:00]MH_SAM_APDU [08:46:00]CAPDU: 80 13 01 00 [08:46:00]Write to MH i2c: E2 08 00 CF 15 80 13 01 00 00 00 00 00 61 [08:46:00]Write i2c OK [08:46:00]MH_I2C_Read... [08:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:00]Read from MH i2c: E2 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: E2 0E 00 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: E2 0E 00 CF 15 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E0 [08:46:00]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:46:00]wFMCommunicate OK [08:46:00]SAM_PROTO_GetShiftState done [08:46:00]FM_GetShiftState done [08:46:00]req_shift_opened done [08:46:00]requested_item shift.open_date is exist - process it [08:46:00]req_shift_open_date [08:46:00]req_shift_open_date done [08:46:00]produce_requested_data done [08:46:00]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122979,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [08:46:00]process_action_free close_receipt [08:46:00]json_value_free [08:46:00]json_value_free done [08:46:00]process_json_proto returns [08:46:00]Send response to host [08:46:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122979,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [08:46:00]free response buf [08:46:00]execute_script done [08:46:00]execute_script returns [08:46:00]free content buf [08:46:00]Sock 7.Close socket [08:46:00]Sock 7.Thread stoped [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:02]accept exits with 9 [08:48:02]New connection [08:48:02]New thread 3066723684 created [08:48:02]Thread 3066580324 joined [08:48:02]Waiting for new connection... [08:48:02] Sock 9.Parse request [08:48:02]Sock 9.Check first char [08:48:02]Sock 9.First char is OK [08:48:02]request: POST /json_proto HTTP/1.0 [08:48:02]Method: POST [08:48:02]URL: /json_proto [08:48:02]Method is POST - this is cgi request [08:48:02]url: /json_proto [08:48:02]query_string will be loaded in cgi processing [08:48:02]execute_cgi json_proto POST (null) [08:48:02]execute_cgi path=json_proto method=POST [08:48:02]POST find Content-Length [08:48:02]Host: 172.17.37.4:8080 [08:48:02]Content-Length: 677 [08:48:02]Content-Type: application/json [08:48:02] [08:48:02]POST finish read [08:48:02]Found Content-Length = 677 [08:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:02]execute_script... [08:48:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:02]POST & json_proto [08:48:02]process_json_proto [08:48:02]json parsed OK: [08:48:02]protocol is kg_v1.0 [08:48:02]action value=close_receipt [08:48:02]process_action close_receipt [08:48:02]cmd_close_receipt [08:48:02]MH_GetDate [08:48:02]Write to MH i2c: F0 00 00 D0 15 D4 [08:48:02]Write i2c OK [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: F0 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: F0 09 00 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: F0 09 00 D0 15 00 C7 39 44 67 B8 5A 43 67 44 [08:48:02]GetLastDocTimeStamp 1732524360 [08:48:02]current date 1732524487 [08:48:02]FM_GetShiftState [08:48:02]SAM_PROTO_GetShiftState [08:48:02]wFMCommunicate request_size=4 [08:48:02]MH_SAM_APDU [08:48:02]CAPDU: 80 13 01 00 [08:48:02]Write to MH i2c: E2 08 00 D1 15 80 13 01 00 00 00 00 00 63 [08:48:02]Write i2c OK [08:48:02]MH_I2C_Read... [08:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:02]Read from MH i2c: E2 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 0E 00 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 0E 00 D1 15 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E2 [08:48:02]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:48:02]wFMCommunicate OK [08:48:02]SAM_PROTO_GetShiftState done [08:48:02]FM_GetShiftState done [08:48:02]opened in 1732493066 [08:48:02]opened+sec_in_day 1732579466 [08:48:02]quantity*price = 50010 [08:48:02]sum+1 = 50012 [08:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 21 25.11.2024 08:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122980 ФПД: 35306639672197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T084807&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122980&fm=35306639672197&tin=02508201610067®Number=0000000000092681&sum=50000 [08:48:04]StoreToDocumentArchive [08:48:04]shift 556 fd 122980 [08:48:04]save to /storage/0556/doc_00122980 [08:48:04]save last doc name /storage/0556/doc_00122980 to /storage/kkm_last_doc_name [08:48:04]save OK [08:48:04]Clear old archive folders... [08:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:04]tlvbuf is 01F38510 [08:48:04]SAM_PROTO_ClearQueue [08:48:04]wFMCommunicate request_size=4 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 09 00 00 [08:48:04]Write to MH i2c: E2 08 00 DE 15 80 09 00 00 00 00 00 00 65 [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [08:48:04]RAPDU: 90 00 [08:48:04]wFMCommunicate OK [08:48:04]SAM_PROTO_ClearQueue done [08:48:04]KKMCreateOFDPacket [08:48:04]OFDProtocolAddRootSTLVToBuf [08:48:04]FM_MakeSignedData [08:48:04]FM_MakeSignedData [08:48:04]SAM_PROTO_SignData [08:48:04]wFMCommunicate request_size=4 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 0D 01 02 [08:48:04]Write to MH i2c: E2 08 00 DF 15 80 0D 01 02 00 00 00 00 6D [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [08:48:04]RAPDU: 90 00 [08:48:04]wFMCommunicate OK [08:48:04]wFMCommunicate request_size=255 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C7 39 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E0 01 00 35 04 06 00 20 [08:48:04]Write to MH i2c: E2 02 01 E0 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C7 39 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E0 01 00 35 04 06 00 20 00 00 27 [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [08:48:04]RAPDU: 90 00 [08:48:04]wFMCommunicate OK [08:48:04]wFMCommunicate request_size=10 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 0D 02 02 05 1C 77 B7 43 85 [08:48:04]Write to MH i2c: E2 0D 00 E1 15 80 0D 02 02 05 00 1C 77 B7 43 85 00 00 8C [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [08:48:04]RAPDU: 90 00 [08:48:04]wFMCommunicate OK [08:48:04]wFMCommunicate request_size=4 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 0D 03 02 [08:48:04]Write to MH i2c: E2 08 00 E2 15 80 0D 03 02 00 00 00 00 72 [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 0B 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 0B 00 E2 15 00 59 F2 02 53 AF 04 CA 94 90 00 24 [08:48:04]RAPDU: 59 F2 02 53 AF 04 CA 94 90 00 [08:48:04]wFMCommunicate OK [08:48:04]SAM_PROTO_SignData done [08:48:04]FM_MakeSignedData done [08:48:04]CreateOFDProtocolMessage [08:48:04]wFMCommunicate request_size=4 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 11 00 00 [08:48:04]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 17 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 17 00 E3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C9 [08:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:48:04]wFMCommunicate OK [08:48:04]CreateOFDProtocolMessage done [08:48:04]OFDSenderStorePacket 122980 [08:48:04]StoreOFDPacket docnum=122980 [08:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E7 18 07 01 3E 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C7 39 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E0 01 00 35 04 06 00 20 1C 77 B7 43 85 59 F2 02 53 AF 04 CA 94 [08:48:04]CheckFolder [08:48:04]dirname=/storage/ofd_packets [08:48:04]CheckFolder done [08:48:04]ProducePacketName [08:48:04]name=ofd_packets/00122980 [08:48:04]NVStorageSaveData ofd_packets/00122980 [08:48:04]File name is /storage/ofd_packets/00122980 [08:48:04]Write 301 bytes [08:48:04]NVStorageSaveData done [08:48:04]OFDSenderStorePacket done [08:48:04]KKMCreateOFDPacket done [08:48:04]NVStorageSaveData kkm_last_timestamp [08:48:04]File name is /storage/kkm_last_timestamp [08:48:04]Write 4 bytes [08:48:04]NVStorageSaveData done [08:48:04]ExternCall_PrintAddStr [08:48:04]wPrintStart [08:48:04]Write to MH i2c: 01 00 00 E4 15 F9 [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: 01 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: 01 07 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: 01 07 00 E4 15 00 00 00 00 00 FF 0F 0E [08:48:04]RasterBufferAndPrint [08:48:04]line Счет N : (1)717764 [08:48:04]line ИНН: 02508201610067 [08:48:04]line Контрольно-Кассовый Чек [08:48:04]line ПРОДАЖА [08:48:04]line ТРК (МРК, ГНК) : 32 [08:48:04]line Товар: 2710124130 [08:48:04]line Аи-92-К-4 [08:48:04]line 7.420 * 67.40 [08:48:04]line = 500.11 [08:48:04]line НДС 12% НСП 1% [08:48:04]line > о реализуемом товаре [08:48:04]line ОКРУГЛЕНИЕ: -0.11 [08:48:04]line ИТОГО: 500.00 [08:48:04]line Внесено: 500.00 [08:48:04]line СДАЧА: 0.00 [08:48:04]line НСП 1% : 4.43 [08:48:04]line НДС 12% : 53.11 [08:48:04]line Наличными: 500.00 [08:48:04]line Безнал.: 0.00 [08:48:04]line Место: АЗС № 64 "Партнер Нефть" [08:48:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:48:04]line СНО: Общий режим [08:48:04]line Чек 21 25.11.2024 08:48 [08:48:04]line Смена: 556 ФФД: 1.0 [08:48:04]line ЗНМ: 0300000033 [08:48:04]line РНМ: 0000000000092681 [08:48:04]line Версия ККМ: 001 [08:48:04]line ФМ: 0000000000874881 [08:48:04]line ФД: 122980 [08:48:04]line ФПД: 35306639672197 [08:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T084807&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122980&fm=35306639672197&tin=02508201610067®Number=0000000000092681&sum=50000 [08:48:04]OFD Sender: Processing packet 122980 [packets to send 7, broken 6] [08:48:04]ProducePacketName [08:48:04]name=ofd_packets/00122980 [08:48:04]OFD Sender: To server: pG, [08:48:04]CommunicateWithHost lk.salyk.kg:30040 [08:48:04]ConnectInit lk.salyk.kg [08:48:04]written 0, free lines is 4095 [08:48:05]Connected sock=10 [08:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E7 18 07 01 3E 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C7 39 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E0 01 00 35 04 06 00 20 1C 77 B7 43 85 59 F2 02 53 AF 04 CA 94 [08:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B1 EB 47 00 FC D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E0 01 00 F4 03 04 00 8D E5 43 67 B6 04 01 00 00 91 3C FC 3D 42 07 B9 73 [08:48:05]CommunicateWithHost err = 0 [08:48:05]CheckOFDResponse [08:48:05]1017 (14) - 77093643461234 [08:48:05]1041 (16) - 0000000000874881 [08:48:05]1040 (4) - 122980 [08:48:05]1012 (4) - 25.11.2024 02:48 [08:48:05]1206 (1) - 0 [08:48:05]OFD Sender: Remove packet 122980 [08:48:05]ProducePacketName [08:48:05]name=ofd_packets/00122980 [08:48:05]NVStorageDeleteData [08:48:05]Write to MH i2c: 01 00 00 0F 16 25 [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: 01 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: 01 07 00 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: 01 07 00 0F 16 00 00 00 00 00 3A 0C 72 [08:48:05]RasterBufferAndPrint [08:48:05]line [08:48:05]line [08:48:05]line [08:48:05]line [08:48:05]line [08:48:05]written 0, free lines is 3135 [08:48:05]MH_Cut [08:48:05]Write to MH i2c: D1 01 00 16 16 01 FE [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: D1 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: D1 01 00 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: D1 01 00 16 16 00 FD [08:48:05]Write to MH i2c: 01 00 00 17 16 2D [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]OFD Sender: No OFD packet to send [08:48:06]*** Cut start [08:48:06]*** Partial cut [08:48:06]*** CUTSNS_PIN = 1 [08:48:06]*** CUTSNS_PIN = 0 [08:48:07]*** Brake cut motor [08:48:07]Read from MH i2c: 01 [08:48:07]MH_I2C_Read... [08:48:07]*** Stop cut motor [08:48:07]*** Cut end [08:48:07]Read from MH i2c: 01 07 00 [08:48:07]MH_I2C_Read... [08:48:07]Read from MH i2c: 01 07 00 17 16 00 00 00 00 00 FF 0F 42 [08:48:07]process_action close_receipt done [08:48:07]requested_data is exist [08:48:07]produce_requested_data [08:48:07]requested_item fm.sn is exist - process it [08:48:07]wFMCommunicate request_size=4 [08:48:07]MH_SAM_APDU [08:48:07]CAPDU: 80 11 00 00 [08:48:07]Write to MH i2c: E2 08 00 18 16 80 11 00 00 00 00 00 00 A8 [08:48:07]Write i2c OK [08:48:07]MH_I2C_Read... [08:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:07]Read from MH i2c: E2 [08:48:07]MH_I2C_Read... [08:48:07]Read from MH i2c: E2 17 00 [08:48:07]MH_I2C_Read... [08:48:07]Read from MH i2c: E2 17 00 18 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FF [08:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:48:07]wFMCommunicate OK [08:48:07]requested_item fd.num is exist - process it [08:48:07]SAM_PROTO_GetFieldsCounters [08:48:07]wFMCommunicate request_size=4 [08:48:07]MH_SAM_APDU [08:48:07]CAPDU: 80 13 00 00 [08:48:07]Write to MH i2c: E2 08 00 19 16 80 13 00 00 00 00 00 00 AB [08:48:07]Write i2c OK [08:48:07]MH_I2C_Read... [08:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:07]Read from MH i2c: E2 [08:48:07]MH_I2C_Read... [08:48:07]Read from MH i2c: E2 62 00 [08:48:07]MH_I2C_Read... [08:48:07]Read from MH i2c: E2 62 00 19 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 64 E0 01 00 0E 04 04 00 2C 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 83 [08:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 64 E0 01 00 0E 04 04 00 2C 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:48:07]wFMCommunicate OK [08:48:07]SAM_PROTO_GetFieldsCounters done [08:48:07]requested_item shift.num is exist - process it [08:48:07]requested_item shift.opened is exist - process it [08:48:07]req_shift_opened [08:48:07]FM_GetShiftState [08:48:07]SAM_PROTO_GetShiftState [08:48:07]wFMCommunicate request_size=4 [08:48:07]MH_SAM_APDU [08:48:07]CAPDU: 80 13 01 00 [08:48:07]Write to MH i2c: E2 08 00 1A 16 80 13 01 00 00 00 00 00 AD [08:48:07]Write i2c OK [08:48:07]MH_I2C_Read... [08:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:07]Read from MH i2c: E2 [08:48:07]MH_I2C_Read... [08:48:07]Read from MH i2c: E2 0E 00 [08:48:07]MH_I2C_Read... [08:48:07]Read from MH i2c: E2 0E 00 1A 16 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2C [08:48:07]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:48:07]wFMCommunicate OK [08:48:07]SAM_PROTO_GetShiftState done [08:48:07]FM_GetShiftState done [08:48:07]req_shift_opened done [08:48:07]requested_item shift.open_date is exist - process it [08:48:07]req_shift_open_date [08:48:07]req_shift_open_date done [08:48:07]produce_requested_data done [08:48:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122980,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [08:48:07]process_action_free close_receipt [08:48:07]json_value_free [08:48:07]json_value_free done [08:48:07]process_json_proto returns [08:48:07]Send response to host [08:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122980,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [08:48:07]free response buf [08:48:07]execute_script done [08:48:07]execute_script returns [08:48:07]free content buf [08:48:07]Sock 9.Close socket [08:48:07]Sock 9.Thread stoped [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [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:34]accept exits with 7 [08:58:34]New connection [08:58:34]New thread 3066580324 created [08:58:34]Thread 3066723684 joined [08:58:34]Waiting for new connection... [08:58:34] Sock 7.Parse request [08:58:34]Sock 7.Check first char [08:58:34]Sock 7.First char is OK [08:58:34]request: POST /json_proto HTTP/1.0 [08:58:34]Method: POST [08:58:34]URL: /json_proto [08:58:34]Method is POST - this is cgi request [08:58:34]url: /json_proto [08:58:34]query_string will be loaded in cgi processing [08:58:34]execute_cgi json_proto POST (null) [08:58:34]execute_cgi path=json_proto method=POST [08:58:34]POST find Content-Length [08:58:34]Host: 172.17.37.4:8080 [08:58:34]Content-Length: 686 [08:58:34]Content-Type: application/json [08:58:34] [08:58:34]POST finish read [08:58:34]Found Content-Length = 686 [08:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 33.380, "sum" : 2500.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:34]execute_script... [08:58:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 33.380, "sum" : 2500.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:34]POST & json_proto [08:58:34]process_json_proto [08:58:34]json parsed OK: [08:58:34]protocol is kg_v1.0 [08:58:34]action value=close_receipt [08:58:34]process_action close_receipt [08:58:34]cmd_close_receipt [08:58:34]MH_GetDate [08:58:34]Write to MH i2c: F0 00 00 1B 16 20 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: F0 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: F0 09 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: F0 09 00 1B 16 00 3E 3C 44 67 B8 5A 43 67 0A [08:58:34]GetLastDocTimeStamp 1732524487 [08:58:34]current date 1732525118 [08:58:34]FM_GetShiftState [08:58:34]SAM_PROTO_GetShiftState [08:58:34]wFMCommunicate request_size=4 [08:58:34]MH_SAM_APDU [08:58:34]CAPDU: 80 13 01 00 [08:58:34]Write to MH i2c: E2 08 00 1C 16 80 13 01 00 00 00 00 00 AF [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:34]Read from MH i2c: E2 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 0E 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 0E 00 1C 16 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2E [08:58:34]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:58:34]wFMCommunicate OK [08:58:34]SAM_PROTO_GetShiftState done [08:58:34]FM_GetShiftState done [08:58:34]opened in 1732493066 [08:58:34]opened+sec_in_day 1732579466 [08:58:34]quantity*price = 250016 [08:58:34]sum+1 = 250017 [08:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 22 25.11.2024 08:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122981 ФПД: 53496710195688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T085838&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122981&fm=53496710195688&tin=02508201610067®Number=0000000000092681&sum=250000 [08:58:35]StoreToDocumentArchive [08:58:35]shift 556 fd 122981 [08:58:35]save to /storage/0556/doc_00122981 [08:58:35]save last doc name /storage/0556/doc_00122981 to /storage/kkm_last_doc_name [08:58:35]save OK [08:58:35]Clear old archive folders... [08:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:58:35]tlvbuf is B6D709C0 [08:58:35]SAM_PROTO_ClearQueue [08:58:35]wFMCommunicate request_size=4 [08:58:35]MH_SAM_APDU [08:58:35]CAPDU: 80 09 00 00 [08:58:35]Write to MH i2c: E2 08 00 29 16 80 09 00 00 00 00 00 00 B1 [08:58:35]Write i2c OK [08:58:35]MH_I2C_Read... [08:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:35]Read from MH i2c: E2 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 03 00 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [08:58:35]RAPDU: 90 00 [08:58:35]wFMCommunicate OK [08:58:35]SAM_PROTO_ClearQueue done [08:58:35]KKMCreateOFDPacket [08:58:35]OFDProtocolAddRootSTLVToBuf [08:58:35]FM_MakeSignedData [08:58:35]FM_MakeSignedData [08:58:35]SAM_PROTO_SignData [08:58:35]wFMCommunicate request_size=4 [08:58:35]MH_SAM_APDU [08:58:35]CAPDU: 80 0D 01 02 [08:58:35]Write to MH i2c: E2 08 00 2A 16 80 0D 01 02 00 00 00 00 B9 [08:58:35]Write i2c OK [08:58:35]MH_I2C_Read... [08:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:35]Read from MH i2c: E2 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 03 00 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 03 00 2A 16 00 90 00 B4 [08:58:35]RAPDU: 90 00 [08:58:35]wFMCommunicate OK [08:58:35]wFMCommunicate request_size=255 [08:58:35]MH_SAM_APDU [08:58:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3E 3C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E0 01 00 35 04 06 00 [08:58:35]Write to MH i2c: E2 02 01 2B 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3E 3C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E0 01 00 35 04 06 00 00 00 F9 [08:58:35]Write i2c OK [08:58:35]MH_I2C_Read... [08:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:35]Read from MH i2c: E2 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 03 00 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [08:58:35]RAPDU: 90 00 [08:58:35]wFMCommunicate OK [08:58:35]wFMCommunicate request_size=11 [08:58:35]MH_SAM_APDU [08:58:35]CAPDU: 80 0D 02 02 06 30 A7 AC 68 69 E8 [08:58:35]Write to MH i2c: E2 0E 00 2C 16 80 0D 02 02 06 00 30 A7 AC 68 69 E8 00 00 04 [08:58:35]Write i2c OK [08:58:35]MH_I2C_Read... [08:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:35]Read from MH i2c: E2 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 03 00 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 03 00 2C 16 00 90 00 B6 [08:58:35]RAPDU: 90 00 [08:58:35]wFMCommunicate OK [08:58:35]wFMCommunicate request_size=4 [08:58:35]MH_SAM_APDU [08:58:35]CAPDU: 80 0D 03 02 [08:58:35]Write to MH i2c: E2 08 00 2D 16 80 0D 03 02 00 00 00 00 BE [08:58:35]Write i2c OK [08:58:35]MH_I2C_Read... [08:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:35]Read from MH i2c: E2 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 0B 00 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 0B 00 2D 16 00 AF 17 D6 1D AE 27 EE 09 90 00 44 [08:58:35]RAPDU: AF 17 D6 1D AE 27 EE 09 90 00 [08:58:35]wFMCommunicate OK [08:58:35]SAM_PROTO_SignData done [08:58:35]FM_MakeSignedData done [08:58:35]CreateOFDProtocolMessage [08:58:35]wFMCommunicate request_size=4 [08:58:35]MH_SAM_APDU [08:58:35]CAPDU: 80 11 00 00 [08:58:35]Write to MH i2c: E2 08 00 2E 16 80 11 00 00 00 00 00 00 BE [08:58:35]Write i2c OK [08:58:35]MH_I2C_Read... [08:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:36]Read from MH i2c: E2 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 17 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 17 00 2E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 15 [08:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:58:36]wFMCommunicate OK [08:58:36]CreateOFDProtocolMessage done [08:58:36]OFDSenderStorePacket 122981 [08:58:36]StoreOFDPacket docnum=122981 [08:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 75 E8 08 01 79 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3E 3C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E0 01 00 35 04 06 00 30 A7 AC 68 69 E8 AF 17 D6 1D AE 27 EE 09 [08:58:36]CheckFolder [08:58:36]dirname=/storage/ofd_packets [08:58:36]CheckFolder done [08:58:36]ProducePacketName [08:58:36]name=ofd_packets/00122981 [08:58:36]NVStorageSaveData ofd_packets/00122981 [08:58:36]File name is /storage/ofd_packets/00122981 [08:58:36]Write 302 bytes [08:58:36]NVStorageSaveData done [08:58:36]OFDSenderStorePacket done [08:58:36]KKMCreateOFDPacket done [08:58:36]NVStorageSaveData kkm_last_timestamp [08:58:36]File name is /storage/kkm_last_timestamp [08:58:36]Write 4 bytes [08:58:36]NVStorageSaveData done [08:58:36]ExternCall_PrintAddStr [08:58:36]wPrintStart [08:58:36]Write to MH i2c: 01 00 00 2F 16 45 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 07 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 07 00 2F 16 00 00 00 00 00 FF 0F 5A [08:58:36]RasterBufferAndPrint [08:58:36]line Счет N : (1)717765 [08:58:36]line ИНН: 02508201610067 [08:58:36]line Контрольно-Кассовый Чек [08:58:36]line ПРОДАЖА [08:58:36]line ТРК (МРК, ГНК) : 5 [08:58:36]line Товар: 2710194210 [08:58:36]line ДТ(л)-К-5 [08:58:36]line 33.380 * 74.90 [08:58:36]line = 2500.16 [08:58:36]line НДС 12% НСП 1% [08:58:36]line > о реализуемом товаре [08:58:36]line ОКРУГЛЕНИЕ: -0.16 [08:58:36]line ИТОГО: 2500.00 [08:58:36]line Внесено: 2500.00 [08:58:36]line СДАЧА: 0.00 [08:58:36]line НСП 1% : 22.12 [08:58:36]line НДС 12% : 265.50 [08:58:36]line Наличными: 2500.00 [08:58:36]line Безнал.: 0.00 [08:58:36]line Место: АЗС № 64 "Партнер Нефть" [08:58:36]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:58:36]line СНО: Общий режим [08:58:36]line Чек 22 25.11.2024 08:58 [08:58:36]line Смена: 556 ФФД: 1.0 [08:58:36]line ЗНМ: 0300000033 [08:58:36]line РНМ: 0000000000092681 [08:58:36]line Версия ККМ: 001 [08:58:36]line ФМ: 0000000000874881 [08:58:36]line ФД: 122981 [08:58:36]line ФПД: 53496710195688 [08:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T085838&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122981&fm=53496710195688&tin=02508201610067®Number=0000000000092681&sum=250000 [08:58:36]OFD Sender: Processing packet 122981 [packets to send 7, broken 6] [08:58:36]ProducePacketName [08:58:36]name=ofd_packets/00122981 [08:58:36]OFD Sender: To server: pG, [08:58:36]CommunicateWithHost lk.salyk.kg:30040 [08:58:36]ConnectInit lk.salyk.kg [08:58:36]written 0, free lines is 4095 [08:58:36]Connected sock=10 [08:58:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 75 E8 08 01 79 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3E 3C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E0 01 00 35 04 06 00 30 A7 AC 68 69 E8 AF 17 D6 1D AE 27 EE 09 [08:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 5B F7 47 00 AD 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E0 01 00 F4 03 04 00 04 E8 43 67 B6 04 01 00 00 69 61 AC D6 8E CC 1D F0 [08:58:36]CommunicateWithHost err = 0 [08:58:36]CheckOFDResponse [08:58:36]1017 (14) - 77093643461234 [08:58:36]1041 (16) - 0000000000874881 [08:58:36]1040 (4) - 122981 [08:58:36]1012 (4) - 25.11.2024 02:59 [08:58:36]1206 (1) - 0 [08:58:36]OFD Sender: Remove packet 122981 [08:58:36]ProducePacketName [08:58:36]name=ofd_packets/00122981 [08:58:36]NVStorageDeleteData [08:58:36]Write to MH i2c: 01 00 00 5A 16 70 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 07 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 07 00 5A 16 00 00 00 00 00 44 0C C7 [08:58:36]RasterBufferAndPrint [08:58:36]line [08:58:36]line [08:58:36]line [08:58:36]line [08:58:36]line [08:58:36]written 0, free lines is 3145 [08:58:36]MH_Cut [08:58:36]Write to MH i2c: D1 01 00 61 16 01 49 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: D1 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: D1 01 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: D1 01 00 61 16 00 48 [08:58:36]Write to MH i2c: 01 00 00 62 16 78 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:37]OFD Sender: No OFD packet to send [08:58:38]*** Cut start [08:58:38]*** Partial cut [08:58:38]*** CUTSNS_PIN = 1 [08:58:38]*** CUTSNS_PIN = 0 [08:58:38]*** Brake cut motor [08:58:38]Read from MH i2c: 01 [08:58:38]MH_I2C_Read... [08:58:38]*** Stop cut motor [08:58:38]*** Cut end [08:58:38]Read from MH i2c: 01 07 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 07 00 62 16 00 00 00 00 00 FF 0F 8D [08:58:38]process_action close_receipt done [08:58:38]requested_data is exist [08:58:38]produce_requested_data [08:58:38]requested_item fm.sn is exist - process it [08:58:38]wFMCommunicate request_size=4 [08:58:38]MH_SAM_APDU [08:58:38]CAPDU: 80 11 00 00 [08:58:38]Write to MH i2c: E2 08 00 63 16 80 11 00 00 00 00 00 00 F3 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:38]Read from MH i2c: E2 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 17 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 17 00 63 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4A [08:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:58:38]wFMCommunicate OK [08:58:38]requested_item fd.num is exist - process it [08:58:38]SAM_PROTO_GetFieldsCounters [08:58:38]wFMCommunicate request_size=4 [08:58:38]MH_SAM_APDU [08:58:38]CAPDU: 80 13 00 00 [08:58:38]Write to MH i2c: E2 08 00 64 16 80 13 00 00 00 00 00 00 F6 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:39]Read from MH i2c: E2 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 62 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 62 00 64 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 65 E0 01 00 0E 04 04 00 2C 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 D2 [08:58:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 65 E0 01 00 0E 04 04 00 2C 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:58:39]wFMCommunicate OK [08:58:39]SAM_PROTO_GetFieldsCounters done [08:58:39]requested_item shift.num is exist - process it [08:58:39]requested_item shift.opened is exist - process it [08:58:39]req_shift_opened [08:58:39]FM_GetShiftState [08:58:39]SAM_PROTO_GetShiftState [08:58:39]wFMCommunicate request_size=4 [08:58:39]MH_SAM_APDU [08:58:39]CAPDU: 80 13 01 00 [08:58:39]Write to MH i2c: E2 08 00 65 16 80 13 01 00 00 00 00 00 F8 [08:58:39]Write i2c OK [08:58:39]MH_I2C_Read... [08:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:39]Read from MH i2c: E2 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 0E 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 0E 00 65 16 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 77 [08:58:39]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [08:58:39]wFMCommunicate OK [08:58:39]SAM_PROTO_GetShiftState done [08:58:39]FM_GetShiftState done [08:58:39]req_shift_opened done [08:58:39]requested_item shift.open_date is exist - process it [08:58:39]req_shift_open_date [08:58:39]req_shift_open_date done [08:58:39]produce_requested_data done [08:58:39]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122981,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [08:58:39]process_action_free close_receipt [08:58:39]json_value_free [08:58:39]json_value_free done [08:58:39]process_json_proto returns [08:58:39]Send response to host [08:58:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122981,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [08:58:39]free response buf [08:58:39]execute_script done [08:58:39]execute_script returns [08:58:39]free content buf [08:58:39]Sock 7.Close socket [08:58:39]Sock 7.Thread stoped [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:39]accept exits with 9 [09:02:39]New connection [09:02:39]New thread 3066723684 created [09:02:39]Thread 3066580324 joined [09:02:39]Waiting for new connection... [09:02:39] Sock 9.Parse request [09:02:39]Sock 9.Check first char [09:02:39]Sock 9.First char is OK [09:02:39]request: POST /json_proto HTTP/1.0 [09:02:39]Method: POST [09:02:39]URL: /json_proto [09:02:39]Method is POST - this is cgi request [09:02:39]url: /json_proto [09:02:39]query_string will be loaded in cgi processing [09:02:39]execute_cgi json_proto POST (null) [09:02:39]execute_cgi path=json_proto method=POST [09:02:39]POST find Content-Length [09:02:39]Host: 172.17.37.4:8080 [09:02:39]Content-Length: 823 [09:02:39]Content-Type: application/json [09:02:39] [09:02:39]POST finish read [09:02:39]Found Content-Length = 823 [09:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 40.060, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:39]execute_script... [09:02: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)717766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 40.060, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:39]POST & json_proto [09:02:39]process_json_proto [09:02:39]json parsed OK: [09:02:39]protocol is kg_v1.0 [09:02:39]action value=close_receipt [09:02:39]process_action close_receipt [09:02:39]cmd_close_receipt [09:02:39]MH_GetDate [09:02:39]Write to MH i2c: F0 00 00 66 16 6B [09:02:39]Write i2c OK [09:02:39]MH_I2C_Read... [09:02:39]Read from MH i2c: F0 [09:02:39]MH_I2C_Read... [09:02:39]Read from MH i2c: F0 09 00 [09:02:39]MH_I2C_Read... [09:02:39]Read from MH i2c: F0 09 00 66 16 00 33 3D 44 67 B8 5A 43 67 4B [09:02:39]GetLastDocTimeStamp 1732525118 [09:02:39]current date 1732525363 [09:02:39]FM_GetShiftState [09:02:39]SAM_PROTO_GetShiftState [09:02:39]wFMCommunicate request_size=4 [09:02:39]MH_SAM_APDU [09:02:39]CAPDU: 80 13 01 00 [09:02:39]Write to MH i2c: E2 08 00 67 16 80 13 01 00 00 00 00 00 FA [09:02:39]Write i2c OK [09:02:39]MH_I2C_Read... [09:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:39]Read from MH i2c: E2 [09:02:39]MH_I2C_Read... [09:02:39]Read from MH i2c: E2 0E 00 [09:02:39]MH_I2C_Read... [09:02:39]Read from MH i2c: E2 0E 00 67 16 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 79 [09:02:39]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:02:39]wFMCommunicate OK [09:02:39]SAM_PROTO_GetShiftState done [09:02:39]FM_GetShiftState done [09:02:39]opened in 1732493066 [09:02:39]opened+sec_in_day 1732579466 [09:02:39]quantity*price = 300049 [09:02:39]sum+1 = 300050 [09:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.49 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.49 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 23 25.11.2024 09:02 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 122982 ФПД: 168821321751881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T090244&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122982&fm=168821321751881&tin=02508201610067®Number=0000000000092681&sum=300049 [09:02:41]StoreToDocumentArchive [09:02:41]shift 556 fd 122982 [09:02:41]save to /storage/0556/doc_00122982 [09:02:41]save last doc name /storage/0556/doc_00122982 to /storage/kkm_last_doc_name [09:02:41]save OK [09:02:41]Clear old archive folders... [09:02:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:02:41]tlvbuf is B6E70550 [09:02:41]SAM_PROTO_ClearQueue [09:02:41]wFMCommunicate request_size=4 [09:02:41]MH_SAM_APDU [09:02:41]CAPDU: 80 09 00 00 [09:02:41]Write to MH i2c: E2 08 00 74 16 80 09 00 00 00 00 00 00 FC [09:02:41]Write i2c OK [09:02:41]MH_I2C_Read... [09:02:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:41]Read from MH i2c: E2 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 03 00 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 03 00 74 16 00 90 00 FE [09:02:41]RAPDU: 90 00 [09:02:41]wFMCommunicate OK [09:02:41]SAM_PROTO_ClearQueue done [09:02:41]KKMCreateOFDPacket [09:02:41]OFDProtocolAddRootSTLVToBuf [09:02:41]FM_MakeSignedData [09:02:41]FM_MakeSignedData [09:02:41]SAM_PROTO_SignData [09:02:41]wFMCommunicate request_size=4 [09:02:41]MH_SAM_APDU [09:02:41]CAPDU: 80 0D 01 02 [09:02:41]Write to MH i2c: E2 08 00 75 16 80 0D 01 02 00 00 00 00 04 [09:02:41]Write i2c OK [09:02:41]MH_I2C_Read... [09:02:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:41]Read from MH i2c: E2 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 03 00 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 03 00 75 16 00 90 00 FF [09:02:41]RAPDU: 90 00 [09:02:41]wFMCommunicate OK [09:02:41]wFMCommunicate request_size=255 [09:02:41]MH_SAM_APDU [09:02:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 34 3D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E0 01 00 35 04 06 00 [09:02:41]Write to MH i2c: E2 02 01 76 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 34 3D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E0 01 00 35 04 06 00 00 00 C5 [09:02:41]Write i2c OK [09:02:41]MH_I2C_Read... [09:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:41]Read from MH i2c: E2 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 03 00 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 03 00 76 16 00 90 00 00 [09:02:41]RAPDU: 90 00 [09:02:41]wFMCommunicate OK [09:02:41]wFMCommunicate request_size=11 [09:02:41]MH_SAM_APDU [09:02:41]CAPDU: 80 0D 02 02 06 99 8A C6 E9 DD 49 [09:02:41]Write to MH i2c: E2 0E 00 77 16 80 0D 02 02 06 00 99 8A C6 E9 DD 49 00 00 0B [09:02:41]Write i2c OK [09:02:41]MH_I2C_Read... [09:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:41]Read from MH i2c: E2 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 03 00 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 03 00 77 16 00 90 00 01 [09:02:41]RAPDU: 90 00 [09:02:41]wFMCommunicate OK [09:02:41]wFMCommunicate request_size=4 [09:02:41]MH_SAM_APDU [09:02:41]CAPDU: 80 0D 03 02 [09:02:41]Write to MH i2c: E2 08 00 78 16 80 0D 03 02 00 00 00 00 09 [09:02:41]Write i2c OK [09:02:41]MH_I2C_Read... [09:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:41]Read from MH i2c: E2 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 0B 00 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 0B 00 78 16 00 A6 4F C8 D0 40 90 DF 0A 90 00 50 [09:02:41]RAPDU: A6 4F C8 D0 40 90 DF 0A 90 00 [09:02:41]wFMCommunicate OK [09:02:41]SAM_PROTO_SignData done [09:02:41]FM_MakeSignedData done [09:02:41]CreateOFDProtocolMessage [09:02:41]wFMCommunicate request_size=4 [09:02:41]MH_SAM_APDU [09:02:41]CAPDU: 80 11 00 00 [09:02:41]Write to MH i2c: E2 08 00 79 16 80 11 00 00 00 00 00 00 09 [09:02:41]Write i2c OK [09:02:41]MH_I2C_Read... [09:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:41]Read from MH i2c: E2 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 17 00 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: E2 17 00 79 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 60 [09:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:02:41]wFMCommunicate OK [09:02:41]CreateOFDProtocolMessage done [09:02:41]OFDSenderStorePacket 122982 [09:02:41]StoreOFDPacket docnum=122982 [09:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1C 44 08 01 67 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 34 3D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E0 01 00 35 04 06 00 99 8A C6 E9 DD 49 A6 4F C8 D0 40 90 DF 0A [09:02:41]CheckFolder [09:02:41]dirname=/storage/ofd_packets [09:02:41]CheckFolder done [09:02:41]ProducePacketName [09:02:41]name=ofd_packets/00122982 [09:02:41]NVStorageSaveData ofd_packets/00122982 [09:02:41]File name is /storage/ofd_packets/00122982 [09:02:41]Write 302 bytes [09:02:41]NVStorageSaveData done [09:02:41]OFDSenderStorePacket done [09:02:41]KKMCreateOFDPacket done [09:02:41]NVStorageSaveData kkm_last_timestamp [09:02:41]File name is /storage/kkm_last_timestamp [09:02:41]Write 4 bytes [09:02:41]NVStorageSaveData done [09:02:41]ExternCall_PrintAddStr [09:02:41]wPrintStart [09:02:41]Write to MH i2c: 01 00 00 7A 16 90 [09:02:41]Write i2c OK [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: 01 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: 01 07 00 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: 01 07 00 7A 16 00 00 00 00 00 FF 0F A5 [09:02:41]RasterBufferAndPrint [09:02:41]line Счет N : (1)717766 [09:02:41]line ИНН: 02508201610067 [09:02:41]line Контрольно-Кассовый Чек [09:02:41]line ПРОДАЖА [09:02:41]line ТРК (МРК, ГНК) : 5 [09:02:41]line Товар: 2710194210 [09:02:41]line ДТ(л)-К-5 [09:02:41]line 40.060 * 74.90 [09:02:41]line = 3000.49 [09:02:41]line НДС 12% НСП 1% [09:02:41]line > о реализуемом товаре [09:02:41]line ИТОГО: 3000.49 [09:02:41]line НСП 1% : 26.55 [09:02:41]line НДС 12% : 318.64 [09:02:41]line Наличными: 0.00 [09:02:41]line Безнал.: 3000.49 [09:02:41]line Место: АЗС № 64 "Партнер Нефть" [09:02:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:02:41]line СНО: Общий режим [09:02:41]line Чек 23 25.11.2024 09:02 [09:02:41]line Смена: 556 ФФД: 1.0 [09:02:41]line ЗНМ: 0300000033 [09:02:41]line РНМ: 0000000000092681 [09:02:41]line Версия ККМ: 001 [09:02:41]line Платежная система: Бакай Банк [09:02:41]line ФМ: 0000000000874881 [09:02:41]line ФД: 122982 [09:02:41]line ФПД: 168821321751881 [09:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T090244&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122982&fm=168821321751881&tin=02508201610067®Number=0000000000092681&sum=300049 [09:02:41]written 0, free lines is 4095 [09:02:41]OFD Sender: Processing packet 122982 [packets to send 7, broken 6] [09:02:41]ProducePacketName [09:02:41]name=ofd_packets/00122982 [09:02:41]OFD Sender: To server: pG, [09:02:41]CommunicateWithHost lk.salyk.kg:30040 [09:02:41]ConnectInit lk.salyk.kg [09:02:41]Connected sock=10 [09:02:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1C 44 08 01 67 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 34 3D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E0 01 00 35 04 06 00 99 8A C6 E9 DD 49 A6 4F C8 D0 40 90 DF 0A [09:02:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 0E 7C 47 00 47 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E0 01 00 F4 03 04 00 FA E8 43 67 B6 04 01 00 00 92 4C 1A 53 87 75 01 4D [09:02:42]CommunicateWithHost err = 0 [09:02:42]CheckOFDResponse [09:02:42]1017 (14) - 77093643461234 [09:02:42]1041 (16) - 0000000000874881 [09:02:42]1040 (4) - 122982 [09:02:42]1012 (4) - 25.11.2024 03:03 [09:02:42]1206 (1) - 0 [09:02:42]OFD Sender: Remove packet 122982 [09:02:42]ProducePacketName [09:02:42]name=ofd_packets/00122982 [09:02:42]NVStorageDeleteData [09:02:42]Write to MH i2c: 01 00 00 A4 16 BA [09:02:42]Write i2c OK [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: 01 [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: 01 07 00 [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: 01 07 00 A4 16 00 00 00 00 00 5C 0C 29 [09:02:42]RasterBufferAndPrint [09:02:42]line [09:02:42]line [09:02:42]line [09:02:42]line [09:02:42]line [09:02:42]written 0, free lines is 3169 [09:02:42]MH_Cut [09:02:42]Write to MH i2c: D1 01 00 AB 16 01 93 [09:02:42]Write i2c OK [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: D1 [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: D1 01 00 [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: D1 01 00 AB 16 00 92 [09:02:42]Write to MH i2c: 01 00 00 AC 16 C2 [09:02:42]Write i2c OK [09:02:42]MH_I2C_Read... [09:02:42]OFD Sender: No OFD packet to send [09:02:43]*** Cut start [09:02:43]*** Partial cut [09:02:43]*** CUTSNS_PIN = 1 [09:02:43]*** CUTSNS_PIN = 0 [09:02:44]*** Brake cut motor [09:02:44]Read from MH i2c: 01 [09:02:44]MH_I2C_Read... [09:02:44]*** Stop cut motor [09:02:44]*** Cut end [09:02:44]Read from MH i2c: 01 07 00 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: 01 07 00 AC 16 00 00 00 00 00 FF 0F D7 [09:02:44]process_action close_receipt done [09:02:44]requested_data is exist [09:02:44]produce_requested_data [09:02:44]requested_item fm.sn is exist - process it [09:02:44]wFMCommunicate request_size=4 [09:02:44]MH_SAM_APDU [09:02:44]CAPDU: 80 11 00 00 [09:02:44]Write to MH i2c: E2 08 00 AD 16 80 11 00 00 00 00 00 00 3D [09:02:44]Write i2c OK [09:02:44]MH_I2C_Read... [09:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:44]Read from MH i2c: E2 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 17 00 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 17 00 AD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 94 [09:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:02:44]wFMCommunicate OK [09:02:44]requested_item fd.num is exist - process it [09:02:44]SAM_PROTO_GetFieldsCounters [09:02:44]wFMCommunicate request_size=4 [09:02:44]MH_SAM_APDU [09:02:44]CAPDU: 80 13 00 00 [09:02:44]Write to MH i2c: E2 08 00 AE 16 80 13 00 00 00 00 00 00 40 [09:02:44]Write i2c OK [09:02:44]MH_I2C_Read... [09:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:44]Read from MH i2c: E2 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 62 00 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 62 00 AE 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 66 E0 01 00 0E 04 04 00 2C 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 20 [09:02:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 66 E0 01 00 0E 04 04 00 2C 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 [09:02:44]wFMCommunicate OK [09:02:44]SAM_PROTO_GetFieldsCounters done [09:02:44]requested_item shift.num is exist - process it [09:02:44]requested_item shift.opened is exist - process it [09:02:44]req_shift_opened [09:02:44]FM_GetShiftState [09:02:44]SAM_PROTO_GetShiftState [09:02:44]wFMCommunicate request_size=4 [09:02:44]MH_SAM_APDU [09:02:44]CAPDU: 80 13 01 00 [09:02:44]Write to MH i2c: E2 08 00 AF 16 80 13 01 00 00 00 00 00 42 [09:02:44]Write i2c OK [09:02:44]MH_I2C_Read... [09:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:44]Read from MH i2c: E2 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 0E 00 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 0E 00 AF 16 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C1 [09:02:44]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:02:44]wFMCommunicate OK [09:02:44]SAM_PROTO_GetShiftState done [09:02:44]FM_GetShiftState done [09:02:44]req_shift_opened done [09:02:44]requested_item shift.open_date is exist - process it [09:02:44]req_shift_open_date [09:02:44]req_shift_open_date done [09:02:44]produce_requested_data done [09:02:44]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122982,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [09:02:44]process_action_free close_receipt [09:02:44]json_value_free [09:02:44]json_value_free done [09:02:44]process_json_proto returns [09:02:44]Send response to host [09:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122982,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [09:02:44]free response buf [09:02:44]execute_script done [09:02:44]execute_script returns [09:02:44]free content buf [09:02:44]Sock 9.Close socket [09:02:44]Sock 9.Thread stoped [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:53]accept exits with 7 [09:06:53]New connection [09:06:53]New thread 3066580324 created [09:06:53]Thread 3066723684 joined [09:06:53]Waiting for new connection... [09:06:53] Sock 7.Parse request [09:06:53]Sock 7.Check first char [09:06:53]Sock 7.First char is OK [09:06:53]request: POST /json_proto HTTP/1.0 [09:06:53]Method: POST [09:06:53]URL: /json_proto [09:06:53]Method is POST - this is cgi request [09:06:53]url: /json_proto [09:06:53]query_string will be loaded in cgi processing [09:06:53]execute_cgi json_proto POST (null) [09:06:53]execute_cgi path=json_proto method=POST [09:06:53]POST find Content-Length [09:06:53]Host: 172.17.37.4:8080 [09:06:53]Content-Length: 677 [09:06:53]Content-Type: application/json [09:06:53] [09:06:53]POST finish read [09:06:53]Found Content-Length = 677 [09:06:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:06:53]execute_script... [09:06: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)717767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:06:53]POST & json_proto [09:06:53]process_json_proto [09:06:53]json parsed OK: [09:06:53]protocol is kg_v1.0 [09:06:53]action value=close_receipt [09:06:53]process_action close_receipt [09:06:53]cmd_close_receipt [09:06:53]MH_GetDate [09:06:53]Write to MH i2c: F0 00 00 B0 16 B5 [09:06:53]Write i2c OK [09:06:53]MH_I2C_Read... [09:06:53]Read from MH i2c: F0 [09:06:53]MH_I2C_Read... [09:06:53]Read from MH i2c: F0 09 00 [09:06:53]MH_I2C_Read... [09:06:53]Read from MH i2c: F0 09 00 B0 16 00 31 3E 44 67 B8 5A 43 67 94 [09:06:53]GetLastDocTimeStamp 1732525364 [09:06:53]current date 1732525617 [09:06:53]FM_GetShiftState [09:06:53]SAM_PROTO_GetShiftState [09:06:53]wFMCommunicate request_size=4 [09:06:53]MH_SAM_APDU [09:06:53]CAPDU: 80 13 01 00 [09:06:53]Write to MH i2c: E2 08 00 B1 16 80 13 01 00 00 00 00 00 44 [09:06:53]Write i2c OK [09:06:53]MH_I2C_Read... [09:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:53]Read from MH i2c: E2 [09:06:53]MH_I2C_Read... [09:06:53]Read from MH i2c: E2 0E 00 [09:06:53]MH_I2C_Read... [09:06:53]Read from MH i2c: E2 0E 00 B1 16 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C3 [09:06:53]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:06:53]wFMCommunicate OK [09:06:53]SAM_PROTO_GetShiftState done [09:06:53]FM_GetShiftState done [09:06:53]opened in 1732493066 [09:06:53]opened+sec_in_day 1732579466 [09:06:53]quantity*price = 30060 [09:06:53]sum+1 = 30061 [09:06:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 24 25.11.2024 09:06 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122983 ФПД: 208353606513623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T090657&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122983&fm=208353606513623&tin=02508201610067®Number=0000000000092681&sum=30000 [09:06:54]StoreToDocumentArchive [09:06:54]shift 556 fd 122983 [09:06:54]save to /storage/0556/doc_00122983 [09:06:54]save last doc name /storage/0556/doc_00122983 to /storage/kkm_last_doc_name [09:06:54]save OK [09:06:54]Clear old archive folders... [09:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:54]tlvbuf is 020832B0 [09:06:54]SAM_PROTO_ClearQueue [09:06:54]wFMCommunicate request_size=4 [09:06:54]MH_SAM_APDU [09:06:54]CAPDU: 80 09 00 00 [09:06:54]Write to MH i2c: E2 08 00 BE 16 80 09 00 00 00 00 00 00 46 [09:06:54]Write i2c OK [09:06:54]MH_I2C_Read... [09:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:54]Read from MH i2c: E2 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 03 00 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 03 00 BE 16 00 90 00 48 [09:06:54]RAPDU: 90 00 [09:06:54]wFMCommunicate OK [09:06:54]SAM_PROTO_ClearQueue done [09:06:54]KKMCreateOFDPacket [09:06:54]OFDProtocolAddRootSTLVToBuf [09:06:54]FM_MakeSignedData [09:06:54]FM_MakeSignedData [09:06:54]SAM_PROTO_SignData [09:06:54]wFMCommunicate request_size=4 [09:06:54]MH_SAM_APDU [09:06:54]CAPDU: 80 0D 01 02 [09:06:54]Write to MH i2c: E2 08 00 BF 16 80 0D 01 02 00 00 00 00 4E [09:06:54]Write i2c OK [09:06:54]MH_I2C_Read... [09:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:54]Read from MH i2c: E2 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 03 00 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 03 00 BF 16 00 90 00 49 [09:06:54]RAPDU: 90 00 [09:06:54]wFMCommunicate OK [09:06:54]wFMCommunicate request_size=255 [09:06:54]MH_SAM_APDU [09:06:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 31 3E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E0 01 00 35 04 06 00 BD [09:06:54]Write to MH i2c: E2 02 01 C0 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 31 3E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E0 01 00 35 04 06 00 BD 00 00 66 [09:06:54]Write i2c OK [09:06:54]MH_I2C_Read... [09:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:55]Read from MH i2c: E2 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 03 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 03 00 C0 16 00 90 00 4A [09:06:55]RAPDU: 90 00 [09:06:55]wFMCommunicate OK [09:06:55]wFMCommunicate request_size=10 [09:06:55]MH_SAM_APDU [09:06:55]CAPDU: 80 0D 02 02 05 7F 1A B4 33 D7 [09:06:55]Write to MH i2c: E2 0D 00 C1 16 80 0D 02 02 05 00 7F 1A B4 33 D7 00 00 B2 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:55]Read from MH i2c: E2 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 03 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 03 00 C1 16 00 90 00 4B [09:06:55]RAPDU: 90 00 [09:06:55]wFMCommunicate OK [09:06:55]wFMCommunicate request_size=4 [09:06:55]MH_SAM_APDU [09:06:55]CAPDU: 80 0D 03 02 [09:06:55]Write to MH i2c: E2 08 00 C2 16 80 0D 03 02 00 00 00 00 53 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:55]Read from MH i2c: E2 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 0B 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 0B 00 C2 16 00 49 81 B6 4F BF 48 6F 73 90 00 0C [09:06:55]RAPDU: 49 81 B6 4F BF 48 6F 73 90 00 [09:06:55]wFMCommunicate OK [09:06:55]SAM_PROTO_SignData done [09:06:55]FM_MakeSignedData done [09:06:55]CreateOFDProtocolMessage [09:06:55]wFMCommunicate request_size=4 [09:06:55]MH_SAM_APDU [09:06:55]CAPDU: 80 11 00 00 [09:06:55]Write to MH i2c: E2 08 00 C3 16 80 11 00 00 00 00 00 00 53 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:55]Read from MH i2c: E2 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 17 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 17 00 C3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AA [09:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:06:55]wFMCommunicate OK [09:06:55]CreateOFDProtocolMessage done [09:06:55]OFDSenderStorePacket 122983 [09:06:55]StoreOFDPacket docnum=122983 [09:06:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D5 BC 07 01 61 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 31 3E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E0 01 00 35 04 06 00 BD 7F 1A B4 33 D7 49 81 B6 4F BF 48 6F 73 [09:06:55]CheckFolder [09:06:55]dirname=/storage/ofd_packets [09:06:55]CheckFolder done [09:06:55]ProducePacketName [09:06:55]name=ofd_packets/00122983 [09:06:55]NVStorageSaveData ofd_packets/00122983 [09:06:55]File name is /storage/ofd_packets/00122983 [09:06:55]Write 301 bytes [09:06:55]NVStorageSaveData done [09:06:55]OFDSenderStorePacket done [09:06:55]KKMCreateOFDPacket done [09:06:55]NVStorageSaveData kkm_last_timestamp [09:06:55]File name is /storage/kkm_last_timestamp [09:06:55]Write 4 bytes [09:06:55]NVStorageSaveData done [09:06:55]ExternCall_PrintAddStr [09:06:55]wPrintStart [09:06:55]Write to MH i2c: 01 00 00 C4 16 DA [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: 01 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: 01 07 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: 01 07 00 C4 16 00 00 00 00 00 FF 0F EF [09:06:55]RasterBufferAndPrint [09:06:55]line Счет N : (1)717767 [09:06:55]line ИНН: 02508201610067 [09:06:55]line Контрольно-Кассовый Чек [09:06:55]line ПРОДАЖА [09:06:55]line ТРК (МРК, ГНК) : 12 [09:06:55]line Товар: 2710124130 [09:06:55]line Аи-92-К-4 [09:06:55]line 4.460 * 67.40 [09:06:55]line = 300.60 [09:06:55]line НДС 12% НСП 1% [09:06:55]line > о реализуемом товаре [09:06:55]line ОКРУГЛЕНИЕ: -0.60 [09:06:55]line ИТОГО: 300.00 [09:06:55]line Внесено: 300.00 [09:06:55]line СДАЧА: 0.00 [09:06:55]line НСП 1% : 2.66 [09:06:55]line НДС 12% : 31.92 [09:06:55]line Наличными: 300.00 [09:06:55]line Безнал.: 0.00 [09:06:55]line Место: АЗС № 64 "Партнер Нефть" [09:06:55]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:06:55]line СНО: Общий режим [09:06:55]line Чек 24 25.11.2024 09:06 [09:06:55]line Смена: 556 ФФД: 1.0 [09:06:55]line ЗНМ: 0300000033 [09:06:55]line РНМ: 0000000000092681 [09:06:55]line Версия ККМ: 001 [09:06:55]line ФМ: 0000000000874881 [09:06:55]line ФД: 122983 [09:06:55]line ФПД: 208353606513623 [09:06:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T090657&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122983&fm=208353606513623&tin=02508201610067®Number=0000000000092681&sum=30000 [09:06:55]OFD Sender: Processing packet 122983 [packets to send 7, broken 6] [09:06:55]ProducePacketName [09:06:55]name=ofd_packets/00122983 [09:06:55]OFD Sender: To server: pG, [09:06:55]CommunicateWithHost lk.salyk.kg:30040 [09:06:55]ConnectInit lk.salyk.kg [09:06:55]written 0, free lines is 4095 [09:06:55]Connected sock=10 [09:06:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D5 BC 07 01 61 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 31 3E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E0 01 00 35 04 06 00 BD 7F 1A B4 33 D7 49 81 B6 4F BF 48 6F 73 [09:06:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 53 47 47 00 B9 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E0 01 00 F4 03 04 00 F8 E9 43 67 B6 04 01 00 00 3D 0A 3C C5 4B 75 0A C7 [09:06:56]CommunicateWithHost err = 0 [09:06:56]CheckOFDResponse [09:06:56]1017 (14) - 77093643461234 [09:06:56]1041 (16) - 0000000000874881 [09:06:56]1040 (4) - 122983 [09:06:56]1012 (4) - 25.11.2024 03:07 [09:06:56]1206 (1) - 0 [09:06:56]OFD Sender: Remove packet 122983 [09:06:56]ProducePacketName [09:06:56]name=ofd_packets/00122983 [09:06:56]NVStorageDeleteData [09:06:56]Write to MH i2c: 01 00 00 EF 16 05 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 EF 16 00 00 00 00 00 3E 0C 56 [09:06:56]RasterBufferAndPrint [09:06:56]line [09:06:56]line [09:06:56]line [09:06:56]line [09:06:56]line [09:06:56]written 0, free lines is 3138 [09:06:56]MH_Cut [09:06:56]Write to MH i2c: D1 01 00 F6 16 01 DE [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: D1 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: D1 01 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: D1 01 00 F6 16 00 DD [09:06:56]Write to MH i2c: 01 00 00 F7 16 0D [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]OFD Sender: No OFD packet to send [09:06:57]*** Cut start [09:06:57]*** Partial cut [09:06:57]*** CUTSNS_PIN = 1 [09:06:57]*** CUTSNS_PIN = 0 [09:06:57]*** Brake cut motor [09:06:58]Read from MH i2c: 01 [09:06:58]*** Stop cut motor [09:06:58]*** Cut end [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 07 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 07 00 F7 16 00 00 00 00 00 FF 0F 22 [09:06:58]process_action close_receipt done [09:06:58]requested_data is exist [09:06:58]produce_requested_data [09:06:58]requested_item fm.sn is exist - process it [09:06:58]wFMCommunicate request_size=4 [09:06:58]MH_SAM_APDU [09:06:58]CAPDU: 80 11 00 00 [09:06:58]Write to MH i2c: E2 08 00 F8 16 80 11 00 00 00 00 00 00 88 [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:58]Read from MH i2c: E2 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 17 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 17 00 F8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DF [09:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:06:58]wFMCommunicate OK [09:06:58]requested_item fd.num is exist - process it [09:06:58]SAM_PROTO_GetFieldsCounters [09:06:58]wFMCommunicate request_size=4 [09:06:58]MH_SAM_APDU [09:06:58]CAPDU: 80 13 00 00 [09:06:58]Write to MH i2c: E2 08 00 F9 16 80 13 00 00 00 00 00 00 8B [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:58]Read from MH i2c: E2 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 62 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 62 00 F9 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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 67 E0 01 00 0E 04 04 00 2C 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 6F [09:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 67 E0 01 00 0E 04 04 00 2C 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 [09:06:58]wFMCommunicate OK [09:06:58]SAM_PROTO_GetFieldsCounters done [09:06:58]requested_item shift.num is exist - process it [09:06:58]requested_item shift.opened is exist - process it [09:06:58]req_shift_opened [09:06:58]FM_GetShiftState [09:06:58]SAM_PROTO_GetShiftState [09:06:58]wFMCommunicate request_size=4 [09:06:58]MH_SAM_APDU [09:06:58]CAPDU: 80 13 01 00 [09:06:58]Write to MH i2c: E2 08 00 FA 16 80 13 01 00 00 00 00 00 8D [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:58]Read from MH i2c: E2 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 0E 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 0E 00 FA 16 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0C [09:06:58]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:06:58]wFMCommunicate OK [09:06:58]SAM_PROTO_GetShiftState done [09:06:58]FM_GetShiftState done [09:06:58]req_shift_opened done [09:06:58]requested_item shift.open_date is exist - process it [09:06:58]req_shift_open_date [09:06:58]req_shift_open_date done [09:06:58]produce_requested_data done [09:06:58]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122983,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [09:06:58]process_action_free close_receipt [09:06:58]json_value_free [09:06:58]json_value_free done [09:06:58]process_json_proto returns [09:06:58]Send response to host [09:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122983,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [09:06:58]free response buf [09:06:58]execute_script done [09:06:58]execute_script returns [09:06:58]free content buf [09:06:58]Sock 7.Close socket [09:06:58]Sock 7.Thread stoped [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:08]accept exits with 9 [09:12:08]New connection [09:12:08]New thread 3066723684 created [09:12:08]Thread 3066580324 joined [09:12:08]Waiting for new connection... [09:12:08] Sock 9.Parse request [09:12:08]Sock 9.Check first char [09:12:08]Sock 9.First char is OK [09:12:08]request: POST /json_proto HTTP/1.0 [09:12:08]Method: POST [09:12:08]URL: /json_proto [09:12:08]Method is POST - this is cgi request [09:12:08]url: /json_proto [09:12:08]query_string will be loaded in cgi processing [09:12:08]execute_cgi json_proto POST (null) [09:12:08]execute_cgi path=json_proto method=POST [09:12:08]POST find Content-Length [09:12:08]Host: 172.17.37.4:8080 [09:12:08]Content-Length: 677 [09:12:08]Content-Type: application/json [09:12:08] [09:12:08]POST finish read [09:12:08]Found Content-Length = 677 [09:12:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:08]execute_script... [09:12: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)717768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:08]POST & json_proto [09:12:08]process_json_proto [09:12:08]json parsed OK: [09:12:08]protocol is kg_v1.0 [09:12:08]action value=close_receipt [09:12:08]process_action close_receipt [09:12:08]cmd_close_receipt [09:12:08]MH_GetDate [09:12:08]Write to MH i2c: F0 00 00 FB 16 00 [09:12:08]Write i2c OK [09:12:08]MH_I2C_Read... [09:12:08]Read from MH i2c: F0 [09:12:08]MH_I2C_Read... [09:12:08]Read from MH i2c: F0 09 00 [09:12:08]MH_I2C_Read... [09:12:08]Read from MH i2c: F0 09 00 FB 16 00 6D 3F 44 67 B8 5A 43 67 1C [09:12:08]GetLastDocTimeStamp 1732525617 [09:12:08]current date 1732525933 [09:12:08]FM_GetShiftState [09:12:08]SAM_PROTO_GetShiftState [09:12:08]wFMCommunicate request_size=4 [09:12:08]MH_SAM_APDU [09:12:08]CAPDU: 80 13 01 00 [09:12:08]Write to MH i2c: E2 08 00 FC 16 80 13 01 00 00 00 00 00 8F [09:12:08]Write i2c OK [09:12:08]MH_I2C_Read... [09:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:08]Read from MH i2c: E2 [09:12:08]MH_I2C_Read... [09:12:08]Read from MH i2c: E2 0E 00 [09:12:08]MH_I2C_Read... [09:12:08]Read from MH i2c: E2 0E 00 FC 16 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0E [09:12:08]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:12:08]wFMCommunicate OK [09:12:08]SAM_PROTO_GetShiftState done [09:12:08]FM_GetShiftState done [09:12:08]opened in 1732493066 [09:12:08]opened+sec_in_day 1732579466 [09:12:08]quantity*price = 20017 [09:12:08]sum+1 = 20019 [09:12:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 25 25.11.2024 09:12 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122984 ФПД: 14929287789307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T091213&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122984&fm=14929287789307&tin=02508201610067®Number=0000000000092681&sum=20000 [09:12:10]StoreToDocumentArchive [09:12:10]shift 556 fd 122984 [09:12:10]save to /storage/0556/doc_00122984 [09:12:10]save last doc name /storage/0556/doc_00122984 to /storage/kkm_last_doc_name [09:12:10]save OK [09:12:10]Clear old archive folders... [09:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:10]tlvbuf is 02057DD0 [09:12:10]SAM_PROTO_ClearQueue [09:12:10]wFMCommunicate request_size=4 [09:12:10]MH_SAM_APDU [09:12:10]CAPDU: 80 09 00 00 [09:12:10]Write to MH i2c: E2 08 00 09 17 80 09 00 00 00 00 00 00 92 [09:12:10]Write i2c OK [09:12:10]MH_I2C_Read... [09:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:10]Read from MH i2c: E2 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 03 00 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 03 00 09 17 00 90 00 94 [09:12:10]RAPDU: 90 00 [09:12:10]wFMCommunicate OK [09:12:10]SAM_PROTO_ClearQueue done [09:12:10]KKMCreateOFDPacket [09:12:10]OFDProtocolAddRootSTLVToBuf [09:12:10]FM_MakeSignedData [09:12:10]FM_MakeSignedData [09:12:10]SAM_PROTO_SignData [09:12:10]wFMCommunicate request_size=4 [09:12:10]MH_SAM_APDU [09:12:10]CAPDU: 80 0D 01 02 [09:12:10]Write to MH i2c: E2 08 00 0A 17 80 0D 01 02 00 00 00 00 9A [09:12:10]Write i2c OK [09:12:10]MH_I2C_Read... [09:12:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:10]Read from MH i2c: E2 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 03 00 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 03 00 0A 17 00 90 00 95 [09:12:10]RAPDU: 90 00 [09:12:10]wFMCommunicate OK [09:12:10]wFMCommunicate request_size=255 [09:12:10]MH_SAM_APDU [09:12:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 19 00 00 00 F4 03 04 00 6D 3F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E0 01 00 35 04 06 00 0D [09:12:10]Write to MH i2c: E2 02 01 0B 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 19 00 00 00 F4 03 04 00 6D 3F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E0 01 00 35 04 06 00 0D 00 00 12 [09:12:10]Write i2c OK [09:12:10]MH_I2C_Read... [09:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:10]Read from MH i2c: E2 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 03 00 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 03 00 0B 17 00 90 00 96 [09:12:10]RAPDU: 90 00 [09:12:10]wFMCommunicate OK [09:12:10]wFMCommunicate request_size=10 [09:12:10]MH_SAM_APDU [09:12:10]CAPDU: 80 0D 02 02 05 93 FE E5 3A FB [09:12:10]Write to MH i2c: E2 0D 00 0C 17 80 0D 02 02 05 00 93 FE E5 3A FB 00 00 52 [09:12:10]Write i2c OK [09:12:10]MH_I2C_Read... [09:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:10]Read from MH i2c: E2 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 03 00 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 03 00 0C 17 00 90 00 97 [09:12:10]RAPDU: 90 00 [09:12:10]wFMCommunicate OK [09:12:10]wFMCommunicate request_size=4 [09:12:10]MH_SAM_APDU [09:12:10]CAPDU: 80 0D 03 02 [09:12:10]Write to MH i2c: E2 08 00 0D 17 80 0D 03 02 00 00 00 00 9F [09:12:10]Write i2c OK [09:12:10]MH_I2C_Read... [09:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:10]Read from MH i2c: E2 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 0B 00 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 0B 00 0D 17 00 A1 F1 51 11 0C C1 C1 59 90 00 7B [09:12:10]RAPDU: A1 F1 51 11 0C C1 C1 59 90 00 [09:12:10]wFMCommunicate OK [09:12:10]SAM_PROTO_SignData done [09:12:10]FM_MakeSignedData done [09:12:10]CreateOFDProtocolMessage [09:12:10]wFMCommunicate request_size=4 [09:12:10]MH_SAM_APDU [09:12:10]CAPDU: 80 11 00 00 [09:12:10]Write to MH i2c: E2 08 00 0E 17 80 11 00 00 00 00 00 00 9F [09:12:10]Write i2c OK [09:12:10]MH_I2C_Read... [09:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:10]Read from MH i2c: E2 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 17 00 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 17 00 0E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F6 [09:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:12:10]wFMCommunicate OK [09:12:10]CreateOFDProtocolMessage done [09:12:10]OFDSenderStorePacket 122984 [09:12:10]StoreOFDPacket docnum=122984 [09:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1C 2A 07 01 FA F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 19 00 00 00 F4 03 04 00 6D 3F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E0 01 00 35 04 06 00 0D 93 FE E5 3A FB A1 F1 51 11 0C C1 C1 59 [09:12:10]CheckFolder [09:12:10]dirname=/storage/ofd_packets [09:12:10]CheckFolder done [09:12:10]ProducePacketName [09:12:10]name=ofd_packets/00122984 [09:12:10]NVStorageSaveData ofd_packets/00122984 [09:12:10]File name is /storage/ofd_packets/00122984 [09:12:10]Write 301 bytes [09:12:10]NVStorageSaveData done [09:12:10]OFDSenderStorePacket done [09:12:10]KKMCreateOFDPacket done [09:12:10]NVStorageSaveData kkm_last_timestamp [09:12:10]File name is /storage/kkm_last_timestamp [09:12:10]Write 4 bytes [09:12:10]NVStorageSaveData done [09:12:10]ExternCall_PrintAddStr [09:12:10]wPrintStart [09:12:10]Write to MH i2c: 01 00 00 0F 17 26 [09:12:10]Write i2c OK [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: 01 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: 01 07 00 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: 01 07 00 0F 17 00 00 00 00 00 FF 0F 3B [09:12:10]RasterBufferAndPrint [09:12:10]line Счет N : (1)717768 [09:12:10]line ИНН: 02508201610067 [09:12:10]line Контрольно-Кассовый Чек [09:12:10]line ПРОДАЖА [09:12:10]line ТРК (МРК, ГНК) : 32 [09:12:10]line Товар: 2710124130 [09:12:10]line Аи-92-К-4 [09:12:10]line 2.970 * 67.40 [09:12:10]line = 200.18 [09:12:10]line НДС 12% НСП 1% [09:12:10]line > о реализуемом товаре [09:12:10]line ОКРУГЛЕНИЕ: -0.18 [09:12:10]line ИТОГО: 200.00 [09:12:10]line Внесено: 200.00 [09:12:10]line СДАЧА: 0.00 [09:12:10]line НСП 1% : 1.77 [09:12:10]line НДС 12% : 21.26 [09:12:10]line Наличными: 200.00 [09:12:10]line Безнал.: 0.00 [09:12:10]line Место: АЗС № 64 "Партнер Нефть" [09:12:10]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:12:10]line СНО: Общий режим [09:12:10]line Чек 25 25.11.2024 09:12 [09:12:10]line Смена: 556 ФФД: 1.0 [09:12:10]line ЗНМ: 0300000033 [09:12:10]line РНМ: 0000000000092681 [09:12:10]line Версия ККМ: 001 [09:12:10]line ФМ: 0000000000874881 [09:12:10]line ФД: 122984 [09:12:10]line ФПД: 14929287789307 [09:12:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T091213&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122984&fm=14929287789307&tin=02508201610067®Number=0000000000092681&sum=20000 [09:12:10]OFD Sender: Processing packet 122984 [packets to send 7, broken 6] [09:12:10]ProducePacketName [09:12:10]name=ofd_packets/00122984 [09:12:10]OFD Sender: To server: pG, [09:12:10]CommunicateWithHost lk.salyk.kg:30040 [09:12:10]ConnectInit lk.salyk.kg [09:12:10]written 0, free lines is 4095 [09:12:11]Connected sock=10 [09:12:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1C 2A 07 01 FA F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 19 00 00 00 F4 03 04 00 6D 3F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E0 01 00 35 04 06 00 0D 93 FE E5 3A FB A1 F1 51 11 0C C1 C1 59 [09:12:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 59 48 47 00 EA B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E0 01 00 F4 03 04 00 33 EB 43 67 B6 04 01 00 00 E6 9A E7 AB 9F BD 2C 6C [09:12:11]CommunicateWithHost err = 0 [09:12:11]CheckOFDResponse [09:12:11]1017 (14) - 77093643461234 [09:12:11]1041 (16) - 0000000000874881 [09:12:11]1040 (4) - 122984 [09:12:11]1012 (4) - 25.11.2024 03:12 [09:12:11]1206 (1) - 0 [09:12:11]OFD Sender: Remove packet 122984 [09:12:11]ProducePacketName [09:12:11]name=ofd_packets/00122984 [09:12:11]NVStorageDeleteData [09:12:11]Write to MH i2c: 01 00 00 3A 17 51 [09:12:11]Write i2c OK [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: 01 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: 01 07 00 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: 01 07 00 3A 17 00 00 00 00 00 3C 0C A0 [09:12:11]RasterBufferAndPrint [09:12:11]line [09:12:11]line [09:12:11]line [09:12:11]line [09:12:11]line [09:12:11]written 0, free lines is 3137 [09:12:11]MH_Cut [09:12:11]Write to MH i2c: D1 01 00 41 17 01 2A [09:12:11]Write i2c OK [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: D1 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: D1 01 00 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: D1 01 00 41 17 00 29 [09:12:11]Write to MH i2c: 01 00 00 42 17 59 [09:12:11]Write i2c OK [09:12:11]MH_I2C_Read... [09:12:11]OFD Sender: No OFD packet to send [09:12:12]*** Cut start [09:12:12]*** Partial cut [09:12:12]*** CUTSNS_PIN = 1 [09:12:12]*** CUTSNS_PIN = 0 [09:12:13]*** Brake cut motor [09:12:13]Read from MH i2c: 01 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: *** Stop cut motor [09:12:13]01 07 *** Cut end [09:12:13]00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: 01 07 00 42 17 00 00 00 00 00 FF 0F 6E [09:12:13]process_action close_receipt done [09:12:13]requested_data is exist [09:12:13]produce_requested_data [09:12:13]requested_item fm.sn is exist - process it [09:12:13]wFMCommunicate request_size=4 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 11 00 00 [09:12:13]Write to MH i2c: E2 08 00 43 17 80 11 00 00 00 00 00 00 D4 [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 17 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 17 00 43 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2B [09:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:12:13]wFMCommunicate OK [09:12:13]requested_item fd.num is exist - process it [09:12:13]SAM_PROTO_GetFieldsCounters [09:12:13]wFMCommunicate request_size=4 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 13 00 00 [09:12:13]Write to MH i2c: E2 08 00 44 17 80 13 00 00 00 00 00 00 D7 [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 62 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 62 00 44 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 68 E0 01 00 0E 04 04 00 2C 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 BF [09:12:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 68 E0 01 00 0E 04 04 00 2C 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 [09:12:13]wFMCommunicate OK [09:12:13]SAM_PROTO_GetFieldsCounters done [09:12:13]requested_item shift.num is exist - process it [09:12:13]requested_item shift.opened is exist - process it [09:12:13]req_shift_opened [09:12:13]FM_GetShiftState [09:12:13]SAM_PROTO_GetShiftState [09:12:13]wFMCommunicate request_size=4 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 13 01 00 [09:12:13]Write to MH i2c: E2 08 00 45 17 80 13 01 00 00 00 00 00 D9 [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 0E 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 0E 00 45 17 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 58 [09:12:13]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:12:13]wFMCommunicate OK [09:12:13]SAM_PROTO_GetShiftState done [09:12:13]FM_GetShiftState done [09:12:13]req_shift_opened done [09:12:13]requested_item shift.open_date is exist - process it [09:12:13]req_shift_open_date [09:12:13]req_shift_open_date done [09:12:13]produce_requested_data done [09:12:13]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122984,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [09:12:13]process_action_free close_receipt [09:12:13]json_value_free [09:12:13]json_value_free done [09:12:13]process_json_proto returns [09:12:13]Send response to host [09:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122984,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [09:12:13]free response buf [09:12:13]execute_script done [09:12:13]execute_script returns [09:12:13]free content buf [09:12:13]Sock 9.Close socket [09:12:13]Sock 9.Thread stoped [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:29]accept exits with 7 [09:25:29]New connection [09:25:29]New thread 3066580324 created [09:25:29]Thread 3066723684 joined [09:25:29]Waiting for new connection... [09:25:29] Sock 7.Parse request [09:25:29]Sock 7.Check first char [09:25:29]Sock 7.First char is OK [09:25:29]request: POST /json_proto HTTP/1.0 [09:25:29]Method: POST [09:25:29]URL: /json_proto [09:25:29]Method is POST - this is cgi request [09:25:29]url: /json_proto [09:25:29]query_string will be loaded in cgi processing [09:25:29]execute_cgi json_proto POST (null) [09:25:29]execute_cgi path=json_proto method=POST [09:25:29]POST find Content-Length [09:25:29]Host: 172.17.37.4:8080 [09:25:29]Content-Length: 677 [09:25:29]Content-Type: application/json [09:25:29] [09:25:29]POST finish read [09:25:29]Found Content-Length = 677 [09:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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:25:29]execute_script... [09:25: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)717769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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:25:29]POST & json_proto [09:25:29]process_json_proto [09:25:29]json parsed OK: [09:25:29]protocol is kg_v1.0 [09:25:29]action value=close_receipt [09:25:29]process_action close_receipt [09:25:29]cmd_close_receipt [09:25:29]MH_GetDate [09:25:29]Write to MH i2c: F0 00 00 46 17 4C [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: F0 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: F0 09 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: F0 09 00 46 17 00 8E 42 44 67 B8 5A 43 67 8C [09:25:29]GetLastDocTimeStamp 1732525933 [09:25:29]current date 1732526734 [09:25:29]FM_GetShiftState [09:25:29]SAM_PROTO_GetShiftState [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 13 01 00 [09:25:29]Write to MH i2c: E2 08 00 47 17 80 13 01 00 00 00 00 00 DB [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0E 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0E 00 47 17 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 5A [09:25:29]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:25:29]wFMCommunicate OK [09:25:29]SAM_PROTO_GetShiftState done [09:25:29]FM_GetShiftState done [09:25:29]opened in 1732493066 [09:25:29]opened+sec_in_day 1732579466 [09:25:29]quantity*price = 40035 [09:25:29]sum+1 = 40037 [09:25:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 26 25.11.2024 09:25 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122985 ФПД: 254540077995767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T092534&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122985&fm=254540077995767&tin=02508201610067®Number=0000000000092681&sum=40000 [09:25:30]StoreToDocumentArchive [09:25:30]shift 556 fd 122985 [09:25:30]save to /storage/0556/doc_00122985 [09:25:30]save last doc name /storage/0556/doc_00122985 to /storage/kkm_last_doc_name [09:25:30]save OK [09:25:30]Clear old archive folders... [09:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:30]tlvbuf is 02090770 [09:25:30]SAM_PROTO_ClearQueue [09:25:30]wFMCommunicate request_size=4 [09:25:30]MH_SAM_APDU [09:25:30]CAPDU: 80 09 00 00 [09:25:30]Write to MH i2c: E2 08 00 54 17 80 09 00 00 00 00 00 00 DD [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:30]Read from MH i2c: E2 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 54 17 00 90 00 DF [09:25:30]RAPDU: 90 00 [09:25:30]wFMCommunicate OK [09:25:30]SAM_PROTO_ClearQueue done [09:25:30]KKMCreateOFDPacket [09:25:30]OFDProtocolAddRootSTLVToBuf [09:25:30]FM_MakeSignedData [09:25:30]FM_MakeSignedData [09:25:30]SAM_PROTO_SignData [09:25:30]wFMCommunicate request_size=4 [09:25:30]MH_SAM_APDU [09:25:30]CAPDU: 80 0D 01 02 [09:25:30]Write to MH i2c: E2 08 00 55 17 80 0D 01 02 00 00 00 00 E5 [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 55 17 00 90 00 E0 [09:25:31]RAPDU: 90 00 [09:25:31]wFMCommunicate OK [09:25:31]wFMCommunicate request_size=255 [09:25:31]MH_SAM_APDU [09:25: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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 1A 00 00 00 F4 03 04 00 8E 42 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E0 01 00 35 04 06 00 E7 [09:25:31]Write to MH i2c: E2 02 01 56 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 1A 00 00 00 F4 03 04 00 8E 42 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E0 01 00 35 04 06 00 E7 00 00 67 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 56 17 00 90 00 E1 [09:25:31]RAPDU: 90 00 [09:25:31]wFMCommunicate OK [09:25:31]wFMCommunicate request_size=10 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 0D 02 02 05 80 BA EE 16 F7 [09:25:31]Write to MH i2c: E2 0D 00 57 17 80 0D 02 02 05 00 80 BA EE 16 F7 00 00 27 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 57 17 00 90 00 E2 [09:25:31]RAPDU: 90 00 [09:25:31]wFMCommunicate OK [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 0D 03 02 [09:25:31]Write to MH i2c: E2 08 00 58 17 80 0D 03 02 00 00 00 00 EA [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0B 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0B 00 58 17 00 62 E6 E5 42 F0 7F 6D AB 90 00 E1 [09:25:31]RAPDU: 62 E6 E5 42 F0 7F 6D AB 90 00 [09:25:31]wFMCommunicate OK [09:25:31]SAM_PROTO_SignData done [09:25:31]FM_MakeSignedData done [09:25:31]CreateOFDProtocolMessage [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 11 00 00 [09:25:31]Write to MH i2c: E2 08 00 59 17 80 11 00 00 00 00 00 00 EA [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 17 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 17 00 59 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 41 [09:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:25:31]wFMCommunicate OK [09:25:31]CreateOFDProtocolMessage done [09:25:31]OFDSenderStorePacket 122985 [09:25:31]StoreOFDPacket docnum=122985 [09:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 BA 51 07 01 07 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 1A 00 00 00 F4 03 04 00 8E 42 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E0 01 00 35 04 06 00 E7 80 BA EE 16 F7 62 E6 E5 42 F0 7F 6D AB [09:25:31]CheckFolder [09:25:31]dirname=/storage/ofd_packets [09:25:31]CheckFolder done [09:25:31]ProducePacketName [09:25:31]name=ofd_packets/00122985 [09:25:31]NVStorageSaveData ofd_packets/00122985 [09:25:31]File name is /storage/ofd_packets/00122985 [09:25:31]Write 301 bytes [09:25:31]NVStorageSaveData done [09:25:31]OFDSenderStorePacket done [09:25:31]KKMCreateOFDPacket done [09:25:31]NVStorageSaveData kkm_last_timestamp [09:25:31]File name is /storage/kkm_last_timestamp [09:25:31]Write 4 bytes [09:25:31]NVStorageSaveData done [09:25:31]ExternCall_PrintAddStr [09:25:31]wPrintStart [09:25:31]Write to MH i2c: 01 00 00 5A 17 71 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 07 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 07 00 5A 17 00 00 00 00 00 FF 0F 86 [09:25:31]RasterBufferAndPrint [09:25:31]line Счет N : (1)717769 [09:25:31]line ИНН: 02508201610067 [09:25:31]line Контрольно-Кассовый Чек [09:25:31]line ПРОДАЖА [09:25:31]line ТРК (МРК, ГНК) : 12 [09:25:31]line Товар: 2710124130 [09:25:31]line Аи-92-К-4 [09:25:31]line 5.940 * 67.40 [09:25:31]line = 400.36 [09:25:31]line НДС 12% НСП 1% [09:25:31]line > о реализуемом товаре [09:25:31]line ОКРУГЛЕНИЕ: -0.36 [09:25:31]line ИТОГО: 400.00 [09:25:31]line Внесено: 400.00 [09:25:31]line СДАЧА: 0.00 [09:25:31]line НСП 1% : 3.54 [09:25:31]line НДС 12% : 42.52 [09:25:31]line Наличными: 400.00 [09:25:31]line Безнал.: 0.00 [09:25:31]line Место: АЗС № 64 "Партнер Нефть" [09:25:31]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:25:31]line СНО: Общий режим [09:25:31]line Чек 26 25.11.2024 09:25 [09:25:31]line Смена: 556 ФФД: 1.0 [09:25:31]line ЗНМ: 0300000033 [09:25:31]line РНМ: 0000000000092681 [09:25:31]line Версия ККМ: 001 [09:25:31]line ФМ: 0000000000874881 [09:25:31]line ФД: 122985 [09:25:31]line ФПД: 254540077995767 [09:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T092534&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122985&fm=254540077995767&tin=02508201610067®Number=0000000000092681&sum=40000 [09:25:31]OFD Sender: Processing packet 122985 [packets to send 7, broken 6] [09:25:31]ProducePacketName [09:25:31]name=ofd_packets/00122985 [09:25:31]OFD Sender: To server: pG, [09:25:31]CommunicateWithHost lk.salyk.kg:30040 [09:25:31]ConnectInit lk.salyk.kg [09:25:31]written 0, free lines is 4095 [09:25:31]Connected sock=10 [09:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 BA 51 07 01 07 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 1A 00 00 00 F4 03 04 00 8E 42 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E0 01 00 35 04 06 00 E7 80 BA EE 16 F7 62 E6 E5 42 F0 7F 6D AB [09:25:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 DE 90 47 00 28 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E0 01 00 F4 03 04 00 54 EE 43 67 B6 04 01 00 00 31 57 A1 A4 3C 79 A9 19 [09:25:32]CommunicateWithHost err = 0 [09:25:32]CheckOFDResponse [09:25:32]1017 (14) - 77093643461234 [09:25:32]1041 (16) - 0000000000874881 [09:25:32]1040 (4) - 122985 [09:25:32]1012 (4) - 25.11.2024 03:26 [09:25:32]1206 (1) - 0 [09:25:32]OFD Sender: Remove packet 122985 [09:25:32]ProducePacketName [09:25:32]name=ofd_packets/00122985 [09:25:32]NVStorageDeleteData [09:25:32]Write to MH i2c: 01 00 00 85 17 9C [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 07 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 07 00 85 17 00 00 00 00 00 43 0C F2 [09:25:32]RasterBufferAndPrint [09:25:32]line [09:25:32]line [09:25:32]line [09:25:32]line [09:25:32]line [09:25:32]written 0, free lines is 3145 [09:25:32]MH_Cut [09:25:32]Write to MH i2c: D1 01 00 8C 17 01 75 [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: D1 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: D1 01 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: D1 01 00 8C 17 00 74 [09:25:32]Write to MH i2c: 01 00 00 8D 17 A4 [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]OFD Sender: No OFD packet to send [09:25:33]*** Cut start [09:25:33]*** Partial cut [09:25:33]*** CUTSNS_PIN = 1 [09:25:33]*** CUTSNS_PIN = 0 [09:25:33]*** Brake cut motor [09:25:34]Read from MH i2c: 01 [09:25:34]MH_I2C_Read... [09:25:34]*** Stop cut motor [09:25:34]*** Cut end [09:25:34]Read from MH i2c: 01 07 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: 01 07 00 8D 17 00 00 00 00 00 FF 0F B9 [09:25:34]process_action close_receipt done [09:25:34]requested_data is exist [09:25:34]produce_requested_data [09:25:34]requested_item fm.sn is exist - process it [09:25:34]wFMCommunicate request_size=4 [09:25:34]MH_SAM_APDU [09:25:34]CAPDU: 80 11 00 00 [09:25:34]Write to MH i2c: E2 08 00 8E 17 80 11 00 00 00 00 00 00 1F [09:25:34]Write i2c OK [09:25:34]MH_I2C_Read... [09:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:34]Read from MH i2c: E2 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 17 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 17 00 8E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 76 [09:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:25:34]wFMCommunicate OK [09:25:34]requested_item fd.num is exist - process it [09:25:34]SAM_PROTO_GetFieldsCounters [09:25:34]wFMCommunicate request_size=4 [09:25:34]MH_SAM_APDU [09:25:34]CAPDU: 80 13 00 00 [09:25:34]Write to MH i2c: E2 08 00 8F 17 80 13 00 00 00 00 00 00 22 [09:25:34]Write i2c OK [09:25:34]MH_I2C_Read... [09:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:34]Read from MH i2c: E2 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 62 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 62 00 8F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 69 E0 01 00 0E 04 04 00 2C 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 0E [09:25:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 69 E0 01 00 0E 04 04 00 2C 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 [09:25:34]wFMCommunicate OK [09:25:34]SAM_PROTO_GetFieldsCounters done [09:25:34]requested_item shift.num is exist - process it [09:25:34]requested_item shift.opened is exist - process it [09:25:34]req_shift_opened [09:25:34]FM_GetShiftState [09:25:34]SAM_PROTO_GetShiftState [09:25:34]wFMCommunicate request_size=4 [09:25:34]MH_SAM_APDU [09:25:34]CAPDU: 80 13 01 00 [09:25:34]Write to MH i2c: E2 08 00 90 17 80 13 01 00 00 00 00 00 24 [09:25:34]Write i2c OK [09:25:34]MH_I2C_Read... [09:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:34]Read from MH i2c: E2 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 0E 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 0E 00 90 17 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A3 [09:25:34]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:25:34]wFMCommunicate OK [09:25:34]SAM_PROTO_GetShiftState done [09:25:34]FM_GetShiftState done [09:25:34]req_shift_opened done [09:25:34]requested_item shift.open_date is exist - process it [09:25:34]req_shift_open_date [09:25:34]req_shift_open_date done [09:25:34]produce_requested_data done [09:25:34]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122985,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [09:25:34]process_action_free close_receipt [09:25:34]json_value_free [09:25:34]json_value_free done [09:25:34]process_json_proto returns [09:25:34]Send response to host [09:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122985,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [09:25:34]free response buf [09:25:34]execute_script done [09:25:34]execute_script returns [09:25:34]free content buf [09:25:34]Sock 7.Close socket [09:25:34]Sock 7.Thread stoped [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]accept exits with 9 [09:48:38]New connection [09:48:38]New thread 3066723684 created [09:48:38]Thread 3066580324 joined [09:48:38]Waiting for new connection... [09:48:38] Sock 9.Parse request [09:48:38]Sock 9.Check first char [09:48:38]Sock 9.First char is OK [09:48:38]request: POST /json_proto HTTP/1.0 [09:48:38]Method: POST [09:48:38]URL: /json_proto [09:48:38]Method is POST - this is cgi request [09:48:38]url: /json_proto [09:48:38]query_string will be loaded in cgi processing [09:48:38]execute_cgi json_proto POST (null) [09:48:38]execute_cgi path=json_proto method=POST [09:48:38]POST find Content-Length [09:48:38]Host: 172.17.37.4:8080 [09:48:38]Content-Length: 796 [09:48:38]Content-Type: application/json [09:48:38] [09:48:38]POST finish read [09:48:38]Found Content-Length = 796 [09:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32287", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:38]execute_script... [09:48: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)717771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32287", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:38]POST & json_proto [09:48:38]process_json_proto [09:48:38]json parsed OK: [09:48:38]protocol is kg_v1.0 [09:48:38]action value=close_receipt [09:48:38]process_action close_receipt [09:48:38]cmd_close_receipt [09:48:38]MH_GetDate [09:48:38]Write to MH i2c: F0 00 00 91 17 97 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: F0 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: F0 09 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: F0 09 00 91 17 00 FA 47 44 67 B8 5A 43 67 48 [09:48:38]GetLastDocTimeStamp 1732526734 [09:48:38]current date 1732528122 [09:48:38]FM_GetShiftState [09:48:38]SAM_PROTO_GetShiftState [09:48:38]wFMCommunicate request_size=4 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 13 01 00 [09:48:38]Write to MH i2c: E2 08 00 92 17 80 13 01 00 00 00 00 00 26 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 0E 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 0E 00 92 17 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A5 [09:48:38]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:48:38]wFMCommunicate OK [09:48:38]SAM_PROTO_GetShiftState done [09:48:38]FM_GetShiftState done [09:48:38]opened in 1732493066 [09:48:38]opened+sec_in_day 1732579466 [09:48:38]quantity*price = 0 [09:48:38]sum+1 = 1 [09:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 27 25.11.2024 09:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 32287 ФМ: 0000000000874881 ФД: 122986 ФПД: 14407506800543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T094842&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122986&fm=14407506800543&tin=02508201610067®Number=0000000000092681&sum=0 [09:48:39]StoreToDocumentArchive [09:48:39]shift 556 fd 122986 [09:48:39]save to /storage/0556/doc_00122986 [09:48:39]save last doc name /storage/0556/doc_00122986 to /storage/kkm_last_doc_name [09:48:39]save OK [09:48:39]Clear old archive folders... [09:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:48:39]tlvbuf is 02057BD0 [09:48:39]SAM_PROTO_ClearQueue [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 09 00 00 [09:48:39]Write to MH i2c: E2 08 00 9F 17 80 09 00 00 00 00 00 00 28 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 9F 17 00 90 00 2A [09:48:39]RAPDU: 90 00 [09:48:39]wFMCommunicate OK [09:48:39]SAM_PROTO_ClearQueue done [09:48:39]KKMCreateOFDPacket [09:48:39]OFDProtocolAddRootSTLVToBuf [09:48:39]FM_MakeSignedData [09:48:39]FM_MakeSignedData [09:48:39]SAM_PROTO_SignData [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 0D 01 02 [09:48:39]Write to MH i2c: E2 08 00 A0 17 80 0D 01 02 00 00 00 00 30 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 A0 17 00 90 00 2B [09:48:39]RAPDU: 90 00 [09:48:39]wFMCommunicate OK [09:48:39]wFMCommunicate request_size=255 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 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 1B 00 00 00 F4 03 04 00 FA 47 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E0 01 00 35 04 06 00 [09:48:39]Write to MH i2c: E2 02 01 A1 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 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 1B 00 00 00 F4 03 04 00 FA 47 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E0 01 00 35 04 06 00 00 00 31 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 A1 17 00 90 00 2C [09:48:39]RAPDU: 90 00 [09:48:39]wFMCommunicate OK [09:48:39]wFMCommunicate request_size=11 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 0D 02 02 06 0D 1A 82 53 2F 9F [09:48:39]Write to MH i2c: E2 0E 00 A2 17 80 0D 02 02 06 00 0D 1A 82 53 2F 9F 00 00 09 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 A2 17 00 90 00 2D [09:48:39]RAPDU: 90 00 [09:48:39]wFMCommunicate OK [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 0D 03 02 [09:48:39]Write to MH i2c: E2 08 00 A3 17 80 0D 03 02 00 00 00 00 35 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0B 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0B 00 A3 17 00 C4 18 18 5F F7 68 1F 3A 90 00 41 [09:48:40]RAPDU: C4 18 18 5F F7 68 1F 3A 90 00 [09:48:40]wFMCommunicate OK [09:48:40]SAM_PROTO_SignData done [09:48:40]FM_MakeSignedData done [09:48:40]CreateOFDProtocolMessage [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 11 00 00 [09:48:40]Write to MH i2c: E2 08 00 A4 17 80 11 00 00 00 00 00 00 35 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 A4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8C [09:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:48:40]wFMCommunicate OK [09:48:40]CreateOFDProtocolMessage done [09:48:40]OFDSenderStorePacket 122986 [09:48:40]StoreOFDPacket docnum=122986 [09:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 79 6C 08 01 F8 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 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 1B 00 00 00 F4 03 04 00 FA 47 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E0 01 00 35 04 06 00 0D 1A 82 53 2F 9F C4 18 18 5F F7 68 1F 3A [09:48:40]CheckFolder [09:48:40]dirname=/storage/ofd_packets [09:48:40]CheckFolder done [09:48:40]ProducePacketName [09:48:40]name=ofd_packets/00122986 [09:48:40]NVStorageSaveData ofd_packets/00122986 [09:48:40]File name is /storage/ofd_packets/00122986 [09:48:40]Write 302 bytes [09:48:40]NVStorageSaveData done [09:48:40]OFDSenderStorePacket done [09:48:40]KKMCreateOFDPacket done [09:48:40]NVStorageSaveData kkm_last_timestamp [09:48:40]File name is /storage/kkm_last_timestamp [09:48:40]Write 4 bytes [09:48:40]NVStorageSaveData done [09:48:40]ExternCall_PrintAddStr [09:48:40]wPrintStart [09:48:40]Write to MH i2c: 01 00 00 A5 17 BC [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 A5 17 00 00 00 00 00 FF 0F D1 [09:48:40]RasterBufferAndPrint [09:48:40]line Счет N : (1)717771 [09:48:40]line ИНН: 02508201610067 [09:48:40]line Контрольно-Кассовый Чек [09:48:40]line ПРОДАЖА [09:48:40]line ТРК (МРК, ГНК) : 6 [09:48:40]line Товар: 2710194210 [09:48:40]line ДТ(л)-К-5 [09:48:40]line 10.000 * 0.00 [09:48:40]line = 0.00 [09:48:40]line НДС 12% НСП 1% [09:48:40]line > о реализуемом товаре [09:48:40]line ИТОГО: 0.00 [09:48:40]line НСП 1% : 0.00 [09:48:40]line НДС 12% : 0.00 [09:48:40]line Наличными: 0.00 [09:48:40]line Безнал.: 0.00 [09:48:40]line Место: АЗС № 64 "Партнер Нефть" [09:48:40]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:48:40]line СНО: Общий режим [09:48:40]line Чек 27 25.11.2024 09:48 [09:48:40]line Смена: 556 ФФД: 1.0 [09:48:40]line ЗНМ: 0300000033 [09:48:40]line РНМ: 0000000000092681 [09:48:40]line Версия ККМ: 001 [09:48:40]line Талоны: Топливная Карта [09:48:40]line 32287 [09:48:40]line ФМ: 0000000000874881 [09:48:40]line ФД: 122986 [09:48:40]line ФПД: 14407506800543 [09:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T094842&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122986&fm=14407506800543&tin=02508201610067®Number=0000000000092681&sum=0 [09:48:40]written 0, free lines is 4095 [09:48:40]OFD Sender: Processing packet 122986 [packets to send 7, broken 6] [09:48:40]ProducePacketName [09:48:40]name=ofd_packets/00122986 [09:48:40]OFD Sender: To server: pG, [09:48:40]CommunicateWithHost lk.salyk.kg:30040 [09:48:40]ConnectInit lk.salyk.kg [09:48:40]Connected sock=10 [09:48:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 79 6C 08 01 F8 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 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 1B 00 00 00 F4 03 04 00 FA 47 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E0 01 00 35 04 06 00 0D 1A 82 53 2F 9F C4 18 18 5F F7 68 1F 3A [09:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D4 C3 47 00 B1 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E0 01 00 F4 03 04 00 C0 F3 43 67 B6 04 01 00 00 C5 61 89 E8 42 A1 4A F0 [09:48:40]CommunicateWithHost err = 0 [09:48:40]CheckOFDResponse [09:48:40]1017 (14) - 77093643461234 [09:48:40]1041 (16) - 0000000000874881 [09:48:40]1040 (4) - 122986 [09:48:40]1012 (4) - 25.11.2024 03:49 [09:48:40]1206 (1) - 0 [09:48:40]OFD Sender: Remove packet 122986 [09:48:40]ProducePacketName [09:48:40]name=ofd_packets/00122986 [09:48:40]NVStorageDeleteData [09:48:40]Write to MH i2c: 01 00 00 CF 17 E6 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 CF 17 00 00 00 00 00 5E 0C 57 [09:48:40]RasterBufferAndPrint [09:48:40]line [09:48:40]line [09:48:40]line [09:48:40]line [09:48:40]line [09:48:40]written 0, free lines is 3170 [09:48:40]MH_Cut [09:48:40]Write to MH i2c: D1 01 00 D6 17 01 BF [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: D1 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: D1 01 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: D1 01 00 D6 17 00 BE [09:48:40]Write to MH i2c: 01 00 00 D7 17 EE [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:41]OFD Sender: No OFD packet to send [09:48:42]*** Cut start [09:48:42]*** Partial cut [09:48:42]*** CUTSNS_PIN = 1 [09:48:42]*** CUTSNS_PIN = 0 [09:48:42]*** Brake cut motor [09:48:42]Read from MH i2c: 01 [09:48:42]MH_I2C_Read... [09:48:42]*** Stop cut motor [09:48:42]*** Cut end [09:48:42]Read from MH i2c: 01 07 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: 01 07 00 D7 17 00 00 00 00 00 FF 0F 03 [09:48:42]process_action close_receipt done [09:48:42]requested_data is exist [09:48:42]produce_requested_data [09:48:42]requested_item fm.sn is exist - process it [09:48:42]wFMCommunicate request_size=4 [09:48:42]MH_SAM_APDU [09:48:42]CAPDU: 80 11 00 00 [09:48:42]Write to MH i2c: E2 08 00 D8 17 80 11 00 00 00 00 00 00 69 [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:42]Read from MH i2c: E2 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 17 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 17 00 D8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C0 [09:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:48:42]wFMCommunicate OK [09:48:42]requested_item fd.num is exist - process it [09:48:42]SAM_PROTO_GetFieldsCounters [09:48:42]wFMCommunicate request_size=4 [09:48:42]MH_SAM_APDU [09:48:42]CAPDU: 80 13 00 00 [09:48:42]Write to MH i2c: E2 08 00 D9 17 80 13 00 00 00 00 00 00 6C [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:43]Read from MH i2c: E2 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 62 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 62 00 D9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6A E0 01 00 0E 04 04 00 2C 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 5C [09:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6A E0 01 00 0E 04 04 00 2C 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 [09:48:43]wFMCommunicate OK [09:48:43]SAM_PROTO_GetFieldsCounters done [09:48:43]requested_item shift.num is exist - process it [09:48:43]requested_item shift.opened is exist - process it [09:48:43]req_shift_opened [09:48:43]FM_GetShiftState [09:48:43]SAM_PROTO_GetShiftState [09:48:43]wFMCommunicate request_size=4 [09:48:43]MH_SAM_APDU [09:48:43]CAPDU: 80 13 01 00 [09:48:43]Write to MH i2c: E2 08 00 DA 17 80 13 01 00 00 00 00 00 6E [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:43]Read from MH i2c: E2 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 DA 17 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 ED [09:48:43]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:48:43]wFMCommunicate OK [09:48:43]SAM_PROTO_GetShiftState done [09:48:43]FM_GetShiftState done [09:48:43]req_shift_opened done [09:48:43]requested_item shift.open_date is exist - process it [09:48:43]req_shift_open_date [09:48:43]req_shift_open_date done [09:48:43]produce_requested_data done [09:48:43]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122986,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [09:48:43]process_action_free close_receipt [09:48:43]json_value_free [09:48:43]json_value_free done [09:48:43]process_json_proto returns [09:48:43]Send response to host [09:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122986,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [09:48:43]free response buf [09:48:43]execute_script done [09:48:43]execute_script returns [09:48:43]free content buf [09:48:43]Sock 9.Close socket [09:48:43]Sock 9.Thread stoped [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:52]accept exits with 7 [09:50:52]New connection [09:50:52]New thread 3066580324 created [09:50:52]Thread 3066723684 joined [09:50:52]Waiting for new connection... [09:50:52] Sock 7.Parse request [09:50:52]Sock 7.Check first char [09:50:52]Sock 7.First char is OK [09:50:52]request: POST /json_proto HTTP/1.0 [09:50:52]Method: POST [09:50:52]URL: /json_proto [09:50:52]Method is POST - this is cgi request [09:50:52]url: /json_proto [09:50:52]query_string will be loaded in cgi processing [09:50:52]execute_cgi json_proto POST (null) [09:50:52]execute_cgi path=json_proto method=POST [09:50:52]POST find Content-Length [09:50:52]Host: 172.17.37.4:8080 [09:50:52]Content-Length: 807 [09:50:52]Content-Type: application/json [09:50:52] [09:50:52]POST finish read [09:50:52]Found Content-Length = 807 [09:50:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 40.060, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:52]execute_script... [09:50: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)717772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 40.060, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:52]POST & json_proto [09:50:52]process_json_proto [09:50:52]json parsed OK: [09:50:52]protocol is kg_v1.0 [09:50:52]action value=close_receipt [09:50:52]process_action close_receipt [09:50:52]cmd_close_receipt [09:50:52]MH_GetDate [09:50:52]Write to MH i2c: F0 00 00 DB 17 E1 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: F0 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: F0 09 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: F0 09 00 DB 17 00 80 48 44 67 B8 5A 43 67 19 [09:50:52]GetLastDocTimeStamp 1732528122 [09:50:52]current date 1732528256 [09:50:52]FM_GetShiftState [09:50:52]SAM_PROTO_GetShiftState [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 13 01 00 [09:50:52]Write to MH i2c: E2 08 00 DC 17 80 13 01 00 00 00 00 00 70 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0E 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0E 00 DC 17 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 EF [09:50:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:50:52]wFMCommunicate OK [09:50:52]SAM_PROTO_GetShiftState done [09:50:52]FM_GetShiftState done [09:50:52]opened in 1732493066 [09:50:52]opened+sec_in_day 1732579466 [09:50:52]quantity*price = 300049 [09:50:52]sum+1 = 300050 [09:50:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.49 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.49 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 28 25.11.2024 09:50 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 122987 ФПД: 235422056663805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T095056&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122987&fm=235422056663805&tin=02508201610067®Number=0000000000092681&sum=300049 [09:50:53]StoreToDocumentArchive [09:50:53]shift 556 fd 122987 [09:50:53]save to /storage/0556/doc_00122987 [09:50:53]save last doc name /storage/0556/doc_00122987 to /storage/kkm_last_doc_name [09:50:53]save OK [09:50:53]Clear old archive folders... [09:50:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:50:53]tlvbuf is 020760D0 [09:50:53]SAM_PROTO_ClearQueue [09:50:53]wFMCommunicate request_size=4 [09:50:53]MH_SAM_APDU [09:50:53]CAPDU: 80 09 00 00 [09:50:53]Write to MH i2c: E2 08 00 E9 17 80 09 00 00 00 00 00 00 72 [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:53]Read from MH i2c: E2 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 E9 17 00 90 00 74 [09:50:53]RAPDU: 90 00 [09:50:53]wFMCommunicate OK [09:50:53]SAM_PROTO_ClearQueue done [09:50:53]KKMCreateOFDPacket [09:50:53]OFDProtocolAddRootSTLVToBuf [09:50:53]FM_MakeSignedData [09:50:53]FM_MakeSignedData [09:50:53]SAM_PROTO_SignData [09:50:53]wFMCommunicate request_size=4 [09:50:53]MH_SAM_APDU [09:50:53]CAPDU: 80 0D 01 02 [09:50:53]Write to MH i2c: E2 08 00 EA 17 80 0D 01 02 00 00 00 00 7A [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:53]Read from MH i2c: E2 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 EA 17 00 90 00 75 [09:50:53]RAPDU: 90 00 [09:50:53]wFMCommunicate OK [09:50:53]wFMCommunicate request_size=255 [09:50:53]MH_SAM_APDU [09:50:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 80 48 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E0 01 00 35 04 06 00 [09:50:53]Write to MH i2c: E2 02 01 EB 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 80 48 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E0 01 00 35 04 06 00 00 00 9C [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:53]Read from MH i2c: E2 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 EB 17 00 90 00 76 [09:50:53]RAPDU: 90 00 [09:50:53]wFMCommunicate OK [09:50:53]wFMCommunicate request_size=11 [09:50:53]MH_SAM_APDU [09:50:53]CAPDU: 80 0D 02 02 06 D6 1D 78 0F 4A FD [09:50:53]Write to MH i2c: E2 0E 00 EC 17 80 0D 02 02 06 00 D6 1D 78 0F 4A FD 00 00 4A [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:53]Read from MH i2c: E2 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 EC 17 00 90 00 77 [09:50:53]RAPDU: 90 00 [09:50:53]wFMCommunicate OK [09:50:53]wFMCommunicate request_size=4 [09:50:53]MH_SAM_APDU [09:50:53]CAPDU: 80 0D 03 02 [09:50:53]Write to MH i2c: E2 08 00 ED 17 80 0D 03 02 00 00 00 00 7F [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:54]Read from MH i2c: E2 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 0B 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 0B 00 ED 17 00 B4 B1 A9 A8 26 70 B8 15 90 00 99 [09:50:54]RAPDU: B4 B1 A9 A8 26 70 B8 15 90 00 [09:50:54]wFMCommunicate OK [09:50:54]SAM_PROTO_SignData done [09:50:54]FM_MakeSignedData done [09:50:54]CreateOFDProtocolMessage [09:50:54]wFMCommunicate request_size=4 [09:50:54]MH_SAM_APDU [09:50:54]CAPDU: 80 11 00 00 [09:50:54]Write to MH i2c: E2 08 00 EE 17 80 11 00 00 00 00 00 00 7F [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:54]Read from MH i2c: E2 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 17 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 17 00 EE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D6 [09:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:50:54]wFMCommunicate OK [09:50:54]CreateOFDProtocolMessage done [09:50:54]OFDSenderStorePacket 122987 [09:50:54]StoreOFDPacket docnum=122987 [09:50:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 9F A4 08 01 99 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 80 48 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E0 01 00 35 04 06 00 D6 1D 78 0F 4A FD B4 B1 A9 A8 26 70 B8 15 [09:50:54]CheckFolder [09:50:54]dirname=/storage/ofd_packets [09:50:54]CheckFolder done [09:50:54]ProducePacketName [09:50:54]name=ofd_packets/00122987 [09:50:54]NVStorageSaveData ofd_packets/00122987 [09:50:54]File name is /storage/ofd_packets/00122987 [09:50:54]Write 302 bytes [09:50:54]NVStorageSaveData done [09:50:54]OFDSenderStorePacket done [09:50:54]KKMCreateOFDPacket done [09:50:54]NVStorageSaveData kkm_last_timestamp [09:50:54]File name is /storage/kkm_last_timestamp [09:50:54]Write 4 bytes [09:50:54]NVStorageSaveData done [09:50:54]ExternCall_PrintAddStr [09:50:54]wPrintStart [09:50:54]Write to MH i2c: 01 00 00 EF 17 06 [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 07 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 07 00 EF 17 00 00 00 00 00 FF 0F 1B [09:50:54]RasterBufferAndPrint [09:50:54]line Счет N : (1)717772 [09:50:54]line ИНН: 02508201610067 [09:50:54]line Контрольно-Кассовый Чек [09:50:54]line ПРОДАЖА [09:50:54]line ТРК (МРК, ГНК) : 5 [09:50:54]line Товар: 2710194210 [09:50:54]line ДТ(л)-К-5 [09:50:54]line 40.060 * 74.90 [09:50:54]line = 3000.49 [09:50:54]line НДС 12% НСП 1% [09:50:54]line > о реализуемом товаре [09:50:54]line ИТОГО: 3000.49 [09:50:54]line НСП 1% : 26.55 [09:50:54]line НДС 12% : 318.64 [09:50:54]line Наличными: 0.00 [09:50:54]line Безнал.: 3000.49 [09:50:54]line Место: АЗС № 64 "Партнер Нефть" [09:50:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:50:54]line СНО: Общий режим [09:50:54]line Чек 28 25.11.2024 09:50 [09:50:54]line Смена: 556 ФФД: 1.0 [09:50:54]line ЗНМ: 0300000033 [09:50:54]line РНМ: 0000000000092681 [09:50:54]line Версия ККМ: 001 [09:50:54]line Платежная система: O! деньги [09:50:54]line ФМ: 0000000000874881 [09:50:54]line ФД: 122987 [09:50:54]line ФПД: 235422056663805 [09:50:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T095056&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122987&fm=235422056663805&tin=02508201610067®Number=0000000000092681&sum=300049 [09:50:54]written 0, free lines is 4095 [09:50:54]OFD Sender: Processing packet 122987 [packets to send 7, broken 6] [09:50:54]ProducePacketName [09:50:54]name=ofd_packets/00122987 [09:50:54]OFD Sender: To server: pG, [09:50:54]CommunicateWithHost lk.salyk.kg:30040 [09:50:54]ConnectInit lk.salyk.kg [09:50:54]Write to MH i2c: 01 00 00 19 18 31 [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 07 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 07 00 19 18 00 00 00 00 00 68 0C AC [09:50:54]RasterBufferAndPrint [09:50:54]line [09:50:54]line [09:50:54]line [09:50:54]line [09:50:54]line [09:50:54]written 0, free lines is 3179 [09:50:54]MH_Cut [09:50:54]Write to MH i2c: D1 01 00 20 18 01 0A [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: D1 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: D1 01 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: D1 01 00 20 18 00 09 [09:50:54]Write to MH i2c: 01 00 00 21 18 39 [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:56]*** Cut start [09:50:56]*** Partial cut [09:50:56]*** CUTSNS_PIN = 1 [09:50:56]*** CUTSNS_PIN = 0 [09:50:56]*** Brake cut motor [09:50:56]Read from MH i2c: 01 [09:50:56]MH_I2C_Read... [09:50:56]*** Stop cut motor [09:50:56]*** Cut end [09:50:56]Read from MH i2c: 01 07 00 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: 01 07 00 21 18 00 00 00 00 00 FF 0F 4E [09:50:56]process_action close_receipt done [09:50:56]requested_data is exist [09:50:56]produce_requested_data [09:50:56]requested_item fm.sn is exist - process it [09:50:56]wFMCommunicate request_size=4 [09:50:56]MH_SAM_APDU [09:50:56]CAPDU: 80 11 00 00 [09:50:56]Write to MH i2c: E2 08 00 22 18 80 11 00 00 00 00 00 00 B4 [09:50:56]Write i2c OK [09:50:56]MH_I2C_Read... [09:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:56]Read from MH i2c: E2 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 17 00 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 17 00 22 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0B [09:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:50:56]wFMCommunicate OK [09:50:56]requested_item fd.num is exist - process it [09:50:56]SAM_PROTO_GetFieldsCounters [09:50:56]wFMCommunicate request_size=4 [09:50:56]MH_SAM_APDU [09:50:56]CAPDU: 80 13 00 00 [09:50:56]Write to MH i2c: E2 08 00 23 18 80 13 00 00 00 00 00 00 B7 [09:50:56]Write i2c OK [09:50:56]MH_I2C_Read... [09:50:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:57]Read from MH i2c: E2 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 62 00 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 62 00 23 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6B E0 01 00 0E 04 04 00 2C 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 AB [09:50:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6B E0 01 00 0E 04 04 00 2C 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:50:57]wFMCommunicate OK [09:50:57]SAM_PROTO_GetFieldsCounters done [09:50:57]requested_item shift.num is exist - process it [09:50:57]requested_item shift.opened is exist - process it [09:50:57]req_shift_opened [09:50:57]FM_GetShiftState [09:50:57]SAM_PROTO_GetShiftState [09:50:57]wFMCommunicate request_size=4 [09:50:57]MH_SAM_APDU [09:50:57]CAPDU: 80 13 01 00 [09:50:57]Write to MH i2c: E2 08 00 24 18 80 13 01 00 00 00 00 00 B9 [09:50:57]Write i2c OK [09:50:57]MH_I2C_Read... [09:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:57]Read from MH i2c: E2 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 0E 00 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 0E 00 24 18 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 38 [09:50:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:50:57]wFMCommunicate OK [09:50:57]SAM_PROTO_GetShiftState done [09:50:57]FM_GetShiftState done [09:50:57]req_shift_opened done [09:50:57]requested_item shift.open_date is exist - process it [09:50:57]req_shift_open_date [09:50:57]req_shift_open_date done [09:50:57]produce_requested_data done [09:50:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122987,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [09:50:57]process_action_free close_receipt [09:50:57]json_value_free [09:50:57]json_value_free done [09:50:57]process_json_proto returns [09:50:57]Send response to host [09:50:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122987,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [09:50:57]free response buf [09:50:57]execute_script done [09:50:57]execute_script returns [09:50:57]free content buf [09:50:57]Sock 7.Close socket [09:50:57]Sock 7.Thread stoped [09:53:04]ConnectInit Can't connect to host [09:53:04]CommunicateWithHost connect error [09:53:04]CommunicateWithHost err = -1 [09:53:04]OFD Sender: Server communicate error [09:53:09]OFD Sender: Processing packet 122987 [packets to send 7, broken 6] [09:53:09]ProducePacketName [09:53:09]name=ofd_packets/00122987 [09:53:09]OFD Sender: To server: pG, [09:53:09]CommunicateWithHost lk.salyk.kg:30040 [09:53:09]ConnectInit lk.salyk.kg [09:53:09]Connected sock=7 [09:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 9F A4 08 01 99 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 80 48 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E0 01 00 35 04 06 00 D6 1D 78 0F 4A FD B4 B1 A9 A8 26 70 B8 15 [09:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 07 D5 47 00 55 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 34 38 38 31 10 04 04 00 6B E0 01 00 F4 03 04 00 CE F4 43 67 B6 04 01 00 00 B0 AC E0 CD E8 58 DE 2B [09:53:09]CommunicateWithHost err = 0 [09:53:09]CheckOFDResponse [09:53:09]1017 (14) - 77093643461234 [09:53:09]1041 (16) - 0000000000874881 [09:53:09]1040 (4) - 122987 [09:53:09]1012 (4) - 25.11.2024 03:53 [09:53:09]1206 (1) - 0 [09:53:09]OFD Sender: Remove packet 122987 [09:53:09]ProducePacketName [09:53:09]name=ofd_packets/00122987 [09:53:09]NVStorageDeleteData [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:02]accept exits with 9 [09:59:02]New connection [09:59:02]New thread 3066723684 created [09:59:02]Thread 3066580324 joined [09:59:02]Waiting for new connection... [09:59:02] Sock 9.Parse request [09:59:02]Sock 9.Check first char [09:59:02]Sock 9.First char is OK [09:59:02]request: POST /json_proto HTTP/1.0 [09:59:02]Method: POST [09:59:02]URL: /json_proto [09:59:02]Method is POST - this is cgi request [09:59:02]url: /json_proto [09:59:02]query_string will be loaded in cgi processing [09:59:02]execute_cgi json_proto POST (null) [09:59:02]execute_cgi path=json_proto method=POST [09:59:02]POST find Content-Length [09:59:02]Host: 172.17.37.4:8080 [09:59:02]Content-Length: 816 [09:59:02]Content-Type: application/json [09:59:02] [09:59:02]POST finish read [09:59:02]Found Content-Length = 816 [09:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:02]execute_script... [09:59:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:02]POST & json_proto [09:59:02]process_json_proto [09:59:02]json parsed OK: [09:59:02]protocol is kg_v1.0 [09:59:02]action value=close_receipt [09:59:02]process_action close_receipt [09:59:02]cmd_close_receipt [09:59:02]MH_GetDate [09:59:02]Write to MH i2c: F0 00 00 25 18 2C [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: F0 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: F0 09 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: F0 09 00 25 18 00 6B 4A 44 67 B8 5A 43 67 51 [09:59:02]GetLastDocTimeStamp 1732528256 [09:59:02]current date 1732528747 [09:59:02]FM_GetShiftState [09:59:02]SAM_PROTO_GetShiftState [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 13 01 00 [09:59:02]Write to MH i2c: E2 08 00 26 18 80 13 01 00 00 00 00 00 BB [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 26 18 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3A [09:59:02]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_GetShiftState done [09:59:02]FM_GetShiftState done [09:59:02]opened in 1732493066 [09:59:02]opened+sec_in_day 1732579466 [09:59:02]quantity*price = 20017 [09:59:02]sum+1 = 20019 [09:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.18 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.18 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 29 25.11.2024 09:59 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 122988 ФПД: 56470487390258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T095907&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122988&fm=56470487390258&tin=02508201610067®Number=0000000000092681&sum=20018 [09:59:03]StoreToDocumentArchive [09:59:03]shift 556 fd 122988 [09:59:03]save to /storage/0556/doc_00122988 [09:59:03]save last doc name /storage/0556/doc_00122988 to /storage/kkm_last_doc_name [09:59:03]save OK [09:59:03]Clear old archive folders... [09:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:03]tlvbuf is 01F42630 [09:59:03]SAM_PROTO_ClearQueue [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 09 00 00 [09:59:03]Write to MH i2c: E2 08 00 33 18 80 09 00 00 00 00 00 00 BD [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 33 18 00 90 00 BF [09:59:03]RAPDU: 90 00 [09:59:03]wFMCommunicate OK [09:59:03]SAM_PROTO_ClearQueue done [09:59:03]KKMCreateOFDPacket [09:59:03]OFDProtocolAddRootSTLVToBuf [09:59:03]FM_MakeSignedData [09:59:03]FM_MakeSignedData [09:59:03]SAM_PROTO_SignData [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 0D 01 02 [09:59:03]Write to MH i2c: E2 08 00 34 18 80 0D 01 02 00 00 00 00 C5 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 34 18 00 90 00 C0 [09:59:03]RAPDU: 90 00 [09:59:03]wFMCommunicate OK [09:59:03]wFMCommunicate request_size=255 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6B 4A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E0 01 00 35 04 06 00 33 [09:59:03]Write to MH i2c: E2 02 01 35 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6B 4A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E0 01 00 35 04 06 00 33 00 00 98 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 03 00 [09:59:04]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:04]Read from MH i2c: E2 03 00 35 18 00 90 00 C1 [09:59:04]RAPDU: 90 00 [09:59:04]wFMCommunicate OK [09:59:04]wFMCommunicate request_size=10 [09:59:04]MH_SAM_APDU [09:59:04]CAPDU: 80 0D 02 02 05 5C 0F 57 58 32 [09:59:04]Write to MH i2c: E2 0D 00 36 18 80 0D 02 02 05 00 5C 0F 57 58 32 00 00 1E [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 03 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 03 00 36 18 00 90 00 C2 [09:59:04]RAPDU: 90 00 [09:59:04]wFMCommunicate OK [09:59:04]wFMCommunicate request_size=4 [09:59:04]MH_SAM_APDU [09:59:04]CAPDU: 80 0D 03 02 [09:59:04]Write to MH i2c: E2 08 00 37 18 80 0D 03 02 00 00 00 00 CA [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 0B 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 0B 00 37 18 00 43 BF B3 8E 5E 33 BA 04 90 00 5D [09:59:04]RAPDU: 43 BF B3 8E 5E 33 BA 04 90 00 [09:59:04]wFMCommunicate OK [09:59:04]SAM_PROTO_SignData done [09:59:04]FM_MakeSignedData done [09:59:04]CreateOFDProtocolMessage [09:59:04]wFMCommunicate request_size=4 [09:59:04]MH_SAM_APDU [09:59:04]CAPDU: 80 11 00 00 [09:59:04]Write to MH i2c: E2 08 00 38 18 80 11 00 00 00 00 00 00 CA [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 17 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 17 00 38 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 21 [09:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:59:04]wFMCommunicate OK [09:59:04]CreateOFDProtocolMessage done [09:59:04]OFDSenderStorePacket 122988 [09:59:04]StoreOFDPacket docnum=122988 [09:59:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 61 68 07 01 58 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6B 4A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E0 01 00 35 04 06 00 33 5C 0F 57 58 32 43 BF B3 8E 5E 33 BA 04 [09:59:04]CheckFolder [09:59:04]dirname=/storage/ofd_packets [09:59:04]CheckFolder done [09:59:04]ProducePacketName [09:59:04]name=ofd_packets/00122988 [09:59:04]NVStorageSaveData ofd_packets/00122988 [09:59:04]File name is /storage/ofd_packets/00122988 [09:59:04]Write 301 bytes [09:59:04]NVStorageSaveData done [09:59:04]OFDSenderStorePacket done [09:59:04]KKMCreateOFDPacket done [09:59:04]NVStorageSaveData kkm_last_timestamp [09:59:04]File name is /storage/kkm_last_timestamp [09:59:04]Write 4 bytes [09:59:04]NVStorageSaveData done [09:59:04]ExternCall_PrintAddStr [09:59:04]wPrintStart [09:59:04]Write to MH i2c: 01 00 00 39 18 51 [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 07 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 07 00 39 18 00 00 00 00 00 FF 0F 66 [09:59:04]RasterBufferAndPrint [09:59:04]line Счет N : (1)717770 [09:59:04]line ИНН: 02508201610067 [09:59:04]line Контрольно-Кассовый Чек [09:59:04]line ПРОДАЖА [09:59:04]line ТРК (МРК, ГНК) : 32 [09:59:04]line Товар: 2710124130 [09:59:04]line Аи-92-К-4 [09:59:04]line 2.970 * 67.40 [09:59:04]line = 200.18 [09:59:04]line НДС 12% НСП 1% [09:59:04]line > о реализуемом товаре [09:59:04]line ИТОГО: 200.18 [09:59:04]line НСП 1% : 1.77 [09:59:04]line НДС 12% : 21.26 [09:59:04]line Наличными: 0.00 [09:59:04]line Безнал.: 200.18 [09:59:04]line Место: АЗС № 64 "Партнер Нефть" [09:59:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:59:04]line СНО: Общий режим [09:59:04]line Чек 29 25.11.2024 09:59 [09:59:04]line Смена: 556 ФФД: 1.0 [09:59:04]line ЗНМ: 0300000033 [09:59:04]line РНМ: 0000000000092681 [09:59:04]line Версия ККМ: 001 [09:59:04]line Платежная система: Бакай Банк [09:59:04]line ФМ: 0000000000874881 [09:59:04]line ФД: 122988 [09:59:04]line ФПД: 56470487390258 [09:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T095907&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122988&fm=56470487390258&tin=02508201610067®Number=0000000000092681&sum=20018 [09:59:04]OFD Sender: Processing packet 122988 [packets to send 7, broken 6] [09:59:04]ProducePacketName [09:59:04]name=ofd_packets/00122988 [09:59:04]OFD Sender: To server: pG, [09:59:04]CommunicateWithHost lk.salyk.kg:30040 [09:59:04]ConnectInit lk.salyk.kg [09:59:04]written 0, free lines is 4095 [09:59:04]Connected sock=10 [09:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 61 68 07 01 58 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6B 4A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E0 01 00 35 04 06 00 33 5C 0F 57 58 32 43 BF B3 8E 5E 33 BA 04 [09:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 09 9A 47 00 7C 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E0 01 00 F4 03 04 00 31 F6 43 67 B6 04 01 00 00 C4 17 98 E3 AA 90 74 7D [09:59:04]CommunicateWithHost err = 0 [09:59:04]CheckOFDResponse [09:59:04]1017 (14) - 77093643461234 [09:59:04]1041 (16) - 0000000000874881 [09:59:04]1040 (4) - 122988 [09:59:04]1012 (4) - 25.11.2024 03:59 [09:59:04]1206 (1) - 0 [09:59:04]OFD Sender: Remove packet 122988 [09:59:04]ProducePacketName [09:59:04]name=ofd_packets/00122988 [09:59:04]NVStorageDeleteData [09:59:05]Write to MH i2c: 01 00 00 63 18 7B [09:59:05]Write i2c OK [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: 01 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: 01 07 00 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: 01 07 00 63 18 00 00 00 00 00 62 0C F0 [09:59:05]RasterBufferAndPrint [09:59:05]line [09:59:05]line [09:59:05]line [09:59:05]line [09:59:05]line [09:59:05]written 0, free lines is 3176 [09:59:05]MH_Cut [09:59:05]Write to MH i2c: D1 01 00 6A 18 01 54 [09:59:05]Write i2c OK [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: D1 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: D1 01 00 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: D1 01 00 6A 18 00 53 [09:59:05]Write to MH i2c: 01 00 00 6B 18 83 [09:59:05]Write i2c OK [09:59:05]MH_I2C_Read... [09:59:05]OFD Sender: No OFD packet to send [09:59:06]*** Cut start [09:59:06]*** Partial cut [09:59:06]*** CUTSNS_PIN = 1 [09:59:06]*** CUTSNS_PIN = 0 [09:59:06]*** Brake cut motor [09:59:07]Read from MH i2c: 01 [09:59:07]MH_I2C_Read... [09:59:07]*** Stop cut motor [09:59:07]*** Cut end [09:59:07]Read from MH i2c: 01 07 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: 01 07 00 6B 18 00 00 00 00 00 FF 0F 98 [09:59:07]process_action close_receipt done [09:59:07]requested_data is exist [09:59:07]produce_requested_data [09:59:07]requested_item fm.sn is exist - process it [09:59:07]wFMCommunicate request_size=4 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 11 00 00 [09:59:07]Write to MH i2c: E2 08 00 6C 18 80 11 00 00 00 00 00 00 FE [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 17 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 17 00 6C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 55 [09:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:59:07]wFMCommunicate OK [09:59:07]requested_item fd.num is exist - process it [09:59:07]SAM_PROTO_GetFieldsCounters [09:59:07]wFMCommunicate request_size=4 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 13 00 00 [09:59:07]Write to MH i2c: E2 08 00 6D 18 80 13 00 00 00 00 00 00 01 [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 62 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 62 00 6D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6C E0 01 00 0E 04 04 00 2C 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 F9 [09:59:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6C E0 01 00 0E 04 04 00 2C 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:59:07]wFMCommunicate OK [09:59:07]SAM_PROTO_GetFieldsCounters done [09:59:07]requested_item shift.num is exist - process it [09:59:07]requested_item shift.opened is exist - process it [09:59:07]req_shift_opened [09:59:07]FM_GetShiftState [09:59:07]SAM_PROTO_GetShiftState [09:59:07]wFMCommunicate request_size=4 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 13 01 00 [09:59:07]Write to MH i2c: E2 08 00 6E 18 80 13 01 00 00 00 00 00 03 [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 0E 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 0E 00 6E 18 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 82 [09:59:07]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:59:07]wFMCommunicate OK [09:59:07]SAM_PROTO_GetShiftState done [09:59:07]FM_GetShiftState done [09:59:07]req_shift_opened done [09:59:07]requested_item shift.open_date is exist - process it [09:59:07]req_shift_open_date [09:59:07]req_shift_open_date done [09:59:07]produce_requested_data done [09:59:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122988,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [09:59:07]process_action_free close_receipt [09:59:07]json_value_free [09:59:07]json_value_free done [09:59:07]process_json_proto returns [09:59:07]Send response to host [09:59:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122988,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [09:59:07]free response buf [09:59:07]execute_script done [09:59:07]execute_script returns [09:59:07]free content buf [09:59:07]Sock 9.Close socket [09:59:07]Sock 9.Thread stoped [09:59:07]accept exits with 7 [09:59:07]New connection [09:59:07]New thread 3066580324 created [09:59:07]Thread 3066723684 joined [09:59:07]Waiting for new connection... [09:59:07] Sock 7.Parse request [09:59:07]Sock 7.Check first char [09:59:07]Sock 7.First char is OK [09:59:07]request: POST /json_proto HTTP/1.0 [09:59:07]Method: POST [09:59:07]URL: /json_proto [09:59:07]Method is POST - this is cgi request [09:59:07]url: /json_proto [09:59:07]query_string will be loaded in cgi processing [09:59:07]execute_cgi json_proto POST (null) [09:59:07]execute_cgi path=json_proto method=POST [09:59:07]POST find Content-Length [09:59:07]Host: 172.17.37.4:8080 [09:59:07]Content-Length: 682 [09:59:07]Content-Type: application/json [09:59:07] [09:59:07]POST finish read [09:59:07]Found Content-Length = 682 [09:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 25.230, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:07]execute_script... [09:59: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)717773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 25.230, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:07]POST & json_proto [09:59:07]process_json_proto [09:59:07]json parsed OK: [09:59:07]protocol is kg_v1.0 [09:59:07]action value=close_receipt [09:59:07]process_action close_receipt [09:59:07]cmd_close_receipt [09:59:07]MH_GetDate [09:59:07]Write to MH i2c: F0 00 00 6F 18 76 [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: F0 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: F0 09 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: F0 09 00 6F 18 00 70 4A 44 67 B8 5A 43 67 A0 [09:59:07]GetLastDocTimeStamp 1732528747 [09:59:07]current date 1732528752 [09:59:07]FM_GetShiftState [09:59:07]SAM_PROTO_GetShiftState [09:59:07]wFMCommunicate request_size=4 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 13 01 00 [09:59:07]Write to MH i2c: E2 08 00 70 18 80 13 01 00 00 00 00 00 05 [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 0E 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 0E 00 70 18 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 84 [09:59:07]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:59:07]wFMCommunicate OK [09:59:07]SAM_PROTO_GetShiftState done [09:59:07]FM_GetShiftState done [09:59:07]opened in 1732493066 [09:59:07]opened+sec_in_day 1732579466 [09:59:07]quantity*price = 170050 [09:59:07]sum+1 = 170051 [09:59:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 30 25.11.2024 09:59 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122989 ФПД: 211899483147824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T095912&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122989&fm=211899483147824&tin=02508201610067®Number=0000000000092681&sum=170000 [09:59:09]StoreToDocumentArchive [09:59:09]shift 556 fd 122989 [09:59:09]save to /storage/0556/doc_00122989 [09:59:09]save last doc name /storage/0556/doc_00122989 to /storage/kkm_last_doc_name [09:59:09]save OK [09:59:09]Clear old archive folders... [09:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:09]tlvbuf is 01F2F490 [09:59:09]SAM_PROTO_ClearQueue [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 09 00 00 [09:59:09]Write to MH i2c: E2 08 00 7D 18 80 09 00 00 00 00 00 00 07 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 7D 18 00 90 00 09 [09:59:09]RAPDU: 90 00 [09:59:09]wFMCommunicate OK [09:59:09]SAM_PROTO_ClearQueue done [09:59:09]KKMCreateOFDPacket [09:59:09]OFDProtocolAddRootSTLVToBuf [09:59:09]FM_MakeSignedData [09:59:09]FM_MakeSignedData [09:59:09]SAM_PROTO_SignData [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 0D 01 02 [09:59:09]Write to MH i2c: E2 08 00 7E 18 80 0D 01 02 00 00 00 00 0F [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 7E 18 00 90 00 0A [09:59:09]RAPDU: 90 00 [09:59:09]wFMCommunicate OK [09:59:09]wFMCommunicate request_size=255 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 62 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 70 4A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E0 01 00 35 04 06 00 C0 [09:59:09]Write to MH i2c: E2 02 01 7F 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 62 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 70 4A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E0 01 00 35 04 06 00 C0 00 00 20 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 7F 18 00 90 00 0B [09:59:09]RAPDU: 90 00 [09:59:09]wFMCommunicate OK [09:59:09]wFMCommunicate request_size=10 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 0D 02 02 05 B8 B1 6B CE 30 [09:59:09]Write to MH i2c: E2 0D 00 80 18 80 0D 02 02 05 00 B8 B1 6B CE 30 00 00 EE [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 80 18 00 90 00 0C [09:59:09]RAPDU: 90 00 [09:59:09]wFMCommunicate OK [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 0D 03 02 [09:59:09]Write to MH i2c: E2 08 00 81 18 80 0D 03 02 00 00 00 00 14 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 0B 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 0B 00 81 18 00 C1 79 1C B4 B8 6F 4C 73 90 00 05 [09:59:09]RAPDU: C1 79 1C B4 B8 6F 4C 73 90 00 [09:59:09]wFMCommunicate OK [09:59:09]SAM_PROTO_SignData done [09:59:09]FM_MakeSignedData done [09:59:09]CreateOFDProtocolMessage [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 11 00 00 [09:59:09]Write to MH i2c: E2 08 00 82 18 80 11 00 00 00 00 00 00 14 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 17 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 17 00 82 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6B [09:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:59:09]wFMCommunicate OK [09:59:09]CreateOFDProtocolMessage done [09:59:09]OFDSenderStorePacket 122989 [09:59:09]StoreOFDPacket docnum=122989 [09:59:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D5 94 07 01 BB 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 62 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 70 4A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E0 01 00 35 04 06 00 C0 B8 B1 6B CE 30 C1 79 1C B4 B8 6F 4C 73 [09:59:09]CheckFolder [09:59:09]dirname=/storage/ofd_packets [09:59:09]CheckFolder done [09:59:09]ProducePacketName [09:59:09]name=ofd_packets/00122989 [09:59:09]NVStorageSaveData ofd_packets/00122989 [09:59:09]File name is /storage/ofd_packets/00122989 [09:59:09]Write 301 bytes [09:59:09]NVStorageSaveData done [09:59:09]OFDSenderStorePacket done [09:59:09]KKMCreateOFDPacket done [09:59:09]NVStorageSaveData kkm_last_timestamp [09:59:09]File name is /storage/kkm_last_timestamp [09:59:09]Write 4 bytes [09:59:09]NVStorageSaveData done [09:59:09]ExternCall_PrintAddStr [09:59:09]wPrintStart [09:59:09]Write to MH i2c: 01 00 00 83 18 9B [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: 01 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: 01 07 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: 01 07 00 83 18 00 00 00 00 00 FF 0F B0 [09:59:09]RasterBufferAndPrint [09:59:09]line Счет N : (1)717773 [09:59:09]line ИНН: 02508201610067 [09:59:09]line Контрольно-Кассовый Чек [09:59:09]line ПРОДАЖА [09:59:09]line ТРК (МРК, ГНК) : 32 [09:59:09]line Товар: 2710124130 [09:59:09]line Аи-92-К-4 [09:59:09]line 25.230 * 67.40 [09:59:09]line = 1700.50 [09:59:09]line НДС 12% НСП 1% [09:59:09]line > о реализуемом товаре [09:59:09]line ОКРУГЛЕНИЕ: -0.50 [09:59:09]line ИТОГО: 1700.00 [09:59:09]line Внесено: 1700.00 [09:59:09]line СДАЧА: 0.00 [09:59:09]line НСП 1% : 15.05 [09:59:09]line НДС 12% : 180.58 [09:59:09]line Наличными: 1700.00 [09:59:09]line Безнал.: 0.00 [09:59:09]line Место: АЗС № 64 "Партнер Нефть" [09:59:10]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:59:10]line СНО: Общий режим [09:59:10]line Чек 30 25.11.2024 09:59 [09:59:10]line Смена: 556 ФФД: 1.0 [09:59:10]line ЗНМ: 0300000033 [09:59:10]line РНМ: 0000000000092681 [09:59:10]line Версия ККМ: 001 [09:59:10]line ФМ: 0000000000874881 [09:59:10]line ФД: 122989 [09:59:10]line ФПД: 211899483147824 [09:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T095912&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122989&fm=211899483147824&tin=02508201610067®Number=0000000000092681&sum=170000 [09:59:10]OFD Sender: Processing packet 122989 [packets to send 7, broken 6] [09:59:10]ProducePacketName [09:59:10]name=ofd_packets/00122989 [09:59:10]OFD Sender: To server: pG, [09:59:10]CommunicateWithHost lk.salyk.kg:30040 [09:59:10]ConnectInit lk.salyk.kg [09:59:10]written 0, free lines is 4095 [09:59:10]Connected sock=10 [09:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D5 94 07 01 BB 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 62 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 70 4A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E0 01 00 35 04 06 00 C0 B8 B1 6B CE 30 C1 79 1C B4 B8 6F 4C 73 [09:59:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 8E FC 47 00 2B 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E0 01 00 F4 03 04 00 36 F6 43 67 B6 04 01 00 00 ED 5C AF 89 50 0D A4 A9 [09:59:10]CommunicateWithHost err = 0 [09:59:10]CheckOFDResponse [09:59:10]1017 (14) - 77093643461234 [09:59:10]1041 (16) - 0000000000874881 [09:59:10]1040 (4) - 122989 [09:59:10]1012 (4) - 25.11.2024 03:59 [09:59:10]1206 (1) - 0 [09:59:10]OFD Sender: Remove packet 122989 [09:59:10]ProducePacketName [09:59:10]name=ofd_packets/00122989 [09:59:10]NVStorageDeleteData [09:59:10]Write to MH i2c: 01 00 00 AE 18 C6 [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 07 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 07 00 AE 18 00 00 00 00 00 5C 0C 35 [09:59:10]RasterBufferAndPrint [09:59:10]line [09:59:10]line [09:59:10]line [09:59:10]line [09:59:10]line [09:59:10]written 0, free lines is 3172 [09:59:10]MH_Cut [09:59:10]Write to MH i2c: D1 01 00 B5 18 01 9F [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: D1 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: D1 01 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: D1 01 00 B5 18 00 9E [09:59:10]Write to MH i2c: 01 00 00 B6 18 CE [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]OFD Sender: No OFD packet to send [09:59:11]*** Cut start [09:59:11]*** Partial cut [09:59:11]*** CUTSNS_PIN = 1 [09:59:11]*** CUTSNS_PIN = 0 [09:59:12]*** Brake cut motor [09:59:12]Read from MH i2c: 01 [09:59:12]MH_I2C_Read... [09:59:12]*** Stop cut motor [09:59:12]*** Cut end [09:59:12]Read from MH i2c: 01 07 00 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: 01 07 00 B6 18 00 00 00 00 00 FF 0F E3 [09:59:12]process_action close_receipt done [09:59:12]requested_data is exist [09:59:12]produce_requested_data [09:59:12]requested_item fm.sn is exist - process it [09:59:12]wFMCommunicate request_size=4 [09:59:12]MH_SAM_APDU [09:59:12]CAPDU: 80 11 00 00 [09:59:12]Write to MH i2c: E2 08 00 B7 18 80 11 00 00 00 00 00 00 49 [09:59:12]Write i2c OK [09:59:12]MH_I2C_Read... [09:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:12]Read from MH i2c: E2 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 17 00 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 17 00 B7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A0 [09:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:59:12]wFMCommunicate OK [09:59:12]requested_item fd.num is exist - process it [09:59:12]SAM_PROTO_GetFieldsCounters [09:59:12]wFMCommunicate request_size=4 [09:59:12]MH_SAM_APDU [09:59:12]CAPDU: 80 13 00 00 [09:59:12]Write to MH i2c: E2 08 00 B8 18 80 13 00 00 00 00 00 00 4C [09:59:12]Write i2c OK [09:59:12]MH_I2C_Read... [09:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:12]Read from MH i2c: E2 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 62 00 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 62 00 B8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6D E0 01 00 0E 04 04 00 2C 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 48 [09:59:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6D E0 01 00 0E 04 04 00 2C 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:59:12]wFMCommunicate OK [09:59:12]SAM_PROTO_GetFieldsCounters done [09:59:12]requested_item shift.num is exist - process it [09:59:12]requested_item shift.opened is exist - process it [09:59:12]req_shift_opened [09:59:12]FM_GetShiftState [09:59:12]SAM_PROTO_GetShiftState [09:59:12]wFMCommunicate request_size=4 [09:59:12]MH_SAM_APDU [09:59:12]CAPDU: 80 13 01 00 [09:59:12]Write to MH i2c: E2 08 00 B9 18 80 13 01 00 00 00 00 00 4E [09:59:12]Write i2c OK [09:59:12]MH_I2C_Read... [09:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:12]Read from MH i2c: E2 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 0E 00 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 0E 00 B9 18 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 CD [09:59:12]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [09:59:12]wFMCommunicate OK [09:59:12]SAM_PROTO_GetShiftState done [09:59:12]FM_GetShiftState done [09:59:12]req_shift_opened done [09:59:12]requested_item shift.open_date is exist - process it [09:59:12]req_shift_open_date [09:59:12]req_shift_open_date done [09:59:12]produce_requested_data done [09:59:12]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122989,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [09:59:12]process_action_free close_receipt [09:59:12]json_value_free [09:59:12]json_value_free done [09:59:12]process_json_proto returns [09:59:12]Send response to host [09:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122989,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [09:59:12]free response buf [09:59:12]execute_script done [09:59:12]execute_script returns [09:59:12]free content buf [09:59:12]Sock 7.Close socket [09:59:12]Sock 7.Thread stoped [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:39]accept exits with 9 [10:21:39]New connection [10:21:39]New thread 3066723684 created [10:21:39]Thread 3066580324 joined [10:21:39]Waiting for new connection... [10:21:39] Sock 9.Parse request [10:21:39]Sock 9.Check first char [10:21:39]Sock 9.First char is OK [10:21:39]request: POST /json_proto HTTP/1.0 [10:21:39]Method: POST [10:21:39]URL: /json_proto [10:21:39]Method is POST - this is cgi request [10:21:39]url: /json_proto [10:21:39]query_string will be loaded in cgi processing [10:21:39]execute_cgi json_proto POST (null) [10:21:39]execute_cgi path=json_proto method=POST [10:21:39]POST find Content-Length [10:21:39]Host: 172.17.37.4:8080 [10:21:39]Content-Length: 677 [10:21:39]Content-Type: application/json [10:21:39] [10:21:39]POST finish read [10:21:39]Found Content-Length = 677 [10:21:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:39]execute_script... [10:21: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)717782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:39]POST & json_proto [10:21:39]process_json_proto [10:21:39]json parsed OK: [10:21:39]protocol is kg_v1.0 [10:21:39]action value=close_receipt [10:21:39]process_action close_receipt [10:21:39]cmd_close_receipt [10:21:39]MH_GetDate [10:21:39]Write to MH i2c: F0 00 00 BA 18 C1 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: F0 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: F0 09 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: F0 09 00 BA 18 00 B7 4F 44 67 B8 5A 43 67 37 [10:21:39]GetLastDocTimeStamp 1732528752 [10:21:39]current date 1732530103 [10:21:39]FM_GetShiftState [10:21:39]SAM_PROTO_GetShiftState [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 13 01 00 [10:21:39]Write to MH i2c: E2 08 00 BB 18 80 13 01 00 00 00 00 00 50 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0E 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0E 00 BB 18 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 CF [10:21:39]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_GetShiftState done [10:21:39]FM_GetShiftState done [10:21:39]opened in 1732493066 [10:21:39]opened+sec_in_day 1732579466 [10:21:39]quantity*price = 40035 [10:21:39]sum+1 = 40037 [10:21:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 31 25.11.2024 10:21 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122990 ФПД: 276695590907459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102143&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122990&fm=276695590907459&tin=02508201610067®Number=0000000000092681&sum=40000 [10:21:40]StoreToDocumentArchive [10:21:40]shift 556 fd 122990 [10:21:40]save to /storage/0556/doc_00122990 [10:21:40]save last doc name /storage/0556/doc_00122990 to /storage/kkm_last_doc_name [10:21:40]save OK [10:21:40]Clear old archive folders... [10:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:40]tlvbuf is B6F209F0 [10:21:40]SAM_PROTO_ClearQueue [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 09 00 00 [10:21:40]Write to MH i2c: E2 08 00 C8 18 80 09 00 00 00 00 00 00 52 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 03 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 03 00 C8 18 00 90 00 54 [10:21:40]RAPDU: 90 00 [10:21:40]wFMCommunicate OK [10:21:40]SAM_PROTO_ClearQueue done [10:21:40]KKMCreateOFDPacket [10:21:40]OFDProtocolAddRootSTLVToBuf [10:21:40]FM_MakeSignedData [10:21:40]FM_MakeSignedData [10:21:40]SAM_PROTO_SignData [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 0D 01 02 [10:21:40]Write to MH i2c: E2 08 00 C9 18 80 0D 01 02 00 00 00 00 5A [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 03 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 03 00 C9 18 00 90 00 55 [10:21:40]RAPDU: 90 00 [10:21:40]wFMCommunicate OK [10:21:40]wFMCommunicate request_size=255 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 B7 4F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E0 01 00 35 04 06 00 FB [10:21:40]Write to MH i2c: E2 02 01 CA 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 B7 4F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E0 01 00 35 04 06 00 FB 00 00 30 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 03 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 03 00 CA 18 00 90 00 56 [10:21:40]RAPDU: 90 00 [10:21:40]wFMCommunicate OK [10:21:40]wFMCommunicate request_size=10 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 0D 02 02 05 A7 36 68 2E 43 [10:21:40]Write to MH i2c: E2 0D 00 CB 18 80 0D 02 02 05 00 A7 36 68 2E 43 00 00 1D [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 03 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 03 00 CB 18 00 90 00 57 [10:21:40]RAPDU: 90 00 [10:21:40]wFMCommunicate OK [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 0D 03 02 [10:21:40]Write to MH i2c: E2 08 00 CC 18 80 0D 03 02 00 00 00 00 5F [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 0B 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 0B 00 CC 18 00 34 A6 93 A2 B8 E7 15 81 90 00 A4 [10:21:40]RAPDU: 34 A6 93 A2 B8 E7 15 81 90 00 [10:21:40]wFMCommunicate OK [10:21:40]SAM_PROTO_SignData done [10:21:40]FM_MakeSignedData done [10:21:40]CreateOFDProtocolMessage [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 11 00 00 [10:21:40]Write to MH i2c: E2 08 00 CD 18 80 11 00 00 00 00 00 00 5F [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 17 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 17 00 CD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B6 [10:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:21:40]wFMCommunicate OK [10:21:40]CreateOFDProtocolMessage done [10:21:40]OFDSenderStorePacket 122990 [10:21:40]StoreOFDPacket docnum=122990 [10:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 18 99 07 01 FE 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 B7 4F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E0 01 00 35 04 06 00 FB A7 36 68 2E 43 34 A6 93 A2 B8 E7 15 81 [10:21:40]CheckFolder [10:21:40]dirname=/storage/ofd_packets [10:21:40]CheckFolder done [10:21:40]ProducePacketName [10:21:40]name=ofd_packets/00122990 [10:21:40]NVStorageSaveData ofd_packets/00122990 [10:21:40]File name is /storage/ofd_packets/00122990 [10:21:40]Write 301 bytes [10:21:40]NVStorageSaveData done [10:21:40]OFDSenderStorePacket done [10:21:40]KKMCreateOFDPacket done [10:21:40]NVStorageSaveData kkm_last_timestamp [10:21:40]File name is /storage/kkm_last_timestamp [10:21:40]Write 4 bytes [10:21:40]NVStorageSaveData done [10:21:41]ExternCall_PrintAddStr [10:21:41]wPrintStart [10:21:41]Write to MH i2c: 01 00 00 CE 18 E6 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: 01 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: 01 07 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: 01 07 00 CE 18 00 00 00 00 00 FF 0F FB [10:21:41]RasterBufferAndPrint [10:21:41]line Счет N : (1)717782 [10:21:41]line ИНН: 02508201610067 [10:21:41]line Контрольно-Кассовый Чек [10:21:41]line ПРОДАЖА [10:21:41]line ТРК (МРК, ГНК) : 12 [10:21:41]line Товар: 2710124130 [10:21:41]line Аи-92-К-4 [10:21:41]line 5.940 * 67.40 [10:21:41]line = 400.36 [10:21:41]line НДС 12% НСП 1% [10:21:41]line > о реализуемом товаре [10:21:41]line ОКРУГЛЕНИЕ: -0.36 [10:21:41]line ИТОГО: 400.00 [10:21:41]line Внесено: 400.00 [10:21:41]line СДАЧА: 0.00 [10:21:41]line НСП 1% : 3.54 [10:21:41]line НДС 12% : 42.52 [10:21:41]line Наличными: 400.00 [10:21:41]line Безнал.: 0.00 [10:21:41]line Место: АЗС № 64 "Партнер Нефть" [10:21:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:21:41]line СНО: Общий режим [10:21:41]line Чек 31 25.11.2024 10:21 [10:21:41]line Смена: 556 ФФД: 1.0 [10:21:41]line ЗНМ: 0300000033 [10:21:41]line РНМ: 0000000000092681 [10:21:41]line Версия ККМ: 001 [10:21:41]line ФМ: 0000000000874881 [10:21:41]line ФД: 122990 [10:21:41]line ФПД: 276695590907459 [10:21:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102143&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122990&fm=276695590907459&tin=02508201610067®Number=0000000000092681&sum=40000 [10:21:41]OFD Sender: Processing packet 122990 [packets to send 7, broken 6] [10:21:41]ProducePacketName [10:21:41]name=ofd_packets/00122990 [10:21:41]OFD Sender: To server: pG, [10:21:41]CommunicateWithHost lk.salyk.kg:30040 [10:21:41]ConnectInit lk.salyk.kg [10:21:41]written 0, free lines is 4095 [10:21:41]Connected sock=10 [10:21:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 18 99 07 01 FE 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 B7 4F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E0 01 00 35 04 06 00 FB A7 36 68 2E 43 34 A6 93 A2 B8 E7 15 81 [10:21:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 0B 97 47 00 F3 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E0 01 00 F4 03 04 00 7D FB 43 67 B6 04 01 00 00 DD 4B 16 70 E5 01 ED AA [10:21:41]CommunicateWithHost err = 0 [10:21:41]CheckOFDResponse [10:21:41]1017 (14) - 77093643461234 [10:21:41]1041 (16) - 0000000000874881 [10:21:41]1040 (4) - 122990 [10:21:41]1012 (4) - 25.11.2024 04:22 [10:21:41]1206 (1) - 0 [10:21:41]OFD Sender: Remove packet 122990 [10:21:41]ProducePacketName [10:21:41]name=ofd_packets/00122990 [10:21:41]NVStorageDeleteData [10:21:41]Write to MH i2c: 01 00 00 F9 18 11 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: 01 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: 01 07 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: 01 07 00 F9 18 00 00 00 00 00 4B 0C 6F [10:21:41]RasterBufferAndPrint [10:21:41]line [10:21:41]line [10:21:41]line [10:21:41]line [10:21:41]line [10:21:41]written 0, free lines is 3151 [10:21:41]MH_Cut [10:21:41]Write to MH i2c: D1 01 00 00 19 01 EB [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: D1 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: D1 01 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: D1 01 00 00 19 00 EA [10:21:41]Write to MH i2c: 01 00 00 01 19 1A [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:42]OFD Sender: No OFD packet to send [10:21:43]*** Cut start [10:21:43]*** Partial cut [10:21:43]*** CUTSNS_PIN = 1 [10:21:43]*** CUTSNS_PIN = 0 [10:21:43]*** Brake cut motor [10:21:43]Read from MH i2c: 01 [10:21:43]MH_I2C_Read... [10:21:43]*** Stop cut motor [10:21:43]*** Cut end [10:21:43]Read from MH i2c: 01 07 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 07 00 01 19 00 00 00 00 00 FF 0F 2F [10:21:43]process_action close_receipt done [10:21:43]requested_data is exist [10:21:43]produce_requested_data [10:21:43]requested_item fm.sn is exist - process it [10:21:43]wFMCommunicate request_size=4 [10:21:43]MH_SAM_APDU [10:21:43]CAPDU: 80 11 00 00 [10:21:43]Write to MH i2c: E2 08 00 02 19 80 11 00 00 00 00 00 00 95 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 17 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 17 00 02 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EC [10:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:21:43]wFMCommunicate OK [10:21:43]requested_item fd.num is exist - process it [10:21:43]SAM_PROTO_GetFieldsCounters [10:21:43]wFMCommunicate request_size=4 [10:21:43]MH_SAM_APDU [10:21:43]CAPDU: 80 13 00 00 [10:21:43]Write to MH i2c: E2 08 00 03 19 80 13 00 00 00 00 00 00 98 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 62 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 62 00 03 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6E E0 01 00 0E 04 04 00 2C 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 98 [10:21:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6E E0 01 00 0E 04 04 00 2C 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 [10:21:44]wFMCommunicate OK [10:21:44]SAM_PROTO_GetFieldsCounters done [10:21:44]requested_item shift.num is exist - process it [10:21:44]requested_item shift.opened is exist - process it [10:21:44]req_shift_opened [10:21:44]FM_GetShiftState [10:21:44]SAM_PROTO_GetShiftState [10:21:44]wFMCommunicate request_size=4 [10:21:44]MH_SAM_APDU [10:21:44]CAPDU: 80 13 01 00 [10:21:44]Write to MH i2c: E2 08 00 04 19 80 13 01 00 00 00 00 00 9A [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:44]Read from MH i2c: E2 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 0E 00 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 0E 00 04 19 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 19 [10:21:44]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:21:44]wFMCommunicate OK [10:21:44]SAM_PROTO_GetShiftState done [10:21:44]FM_GetShiftState done [10:21:44]req_shift_opened done [10:21:44]requested_item shift.open_date is exist - process it [10:21:44]req_shift_open_date [10:21:44]req_shift_open_date done [10:21:44]produce_requested_data done [10:21:44]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122990,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:21:44]process_action_free close_receipt [10:21:44]json_value_free [10:21:44]json_value_free done [10:21:44]process_json_proto returns [10:21:44]Send response to host [10:21:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122990,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:21:44]free response buf [10:21:44]execute_script done [10:21:44]execute_script returns [10:21:44]free content buf [10:21:44]Sock 9.Close socket [10:21:44]Sock 9.Thread stoped [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:50]accept exits with 7 [10:24:50]New connection [10:24:50]New thread 3066580324 created [10:24:50]Thread 3066723684 joined [10:24:50]Waiting for new connection... [10:24:50] Sock 7.Parse request [10:24:50]Sock 7.Check first char [10:24:50]Sock 7.First char is OK [10:24:50]request: POST /json_proto HTTP/1.0 [10:24:50]Method: POST [10:24:50]URL: /json_proto [10:24:50]Method is POST - this is cgi request [10:24:50]url: /json_proto [10:24:50]query_string will be loaded in cgi processing [10:24:50]execute_cgi json_proto POST (null) [10:24:50]execute_cgi path=json_proto method=POST [10:24:50]POST find Content-Length [10:24:50]Host: 172.17.37.4:8080 [10:24:50]Content-Length: 681 [10:24:50]Content-Type: application/json [10:24:50] [10:24:50]POST finish read [10:24:50]Found Content-Length = 681 [10:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 4.010, "sum" : 300.35, "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:24:50]execute_script... [10:24: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)717784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 4.010, "sum" : 300.35, "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:24:50]POST & json_proto [10:24:50]process_json_proto [10:24:50]json parsed OK: [10:24:50]protocol is kg_v1.0 [10:24:50]action value=close_receipt [10:24:50]process_action close_receipt [10:24:50]cmd_close_receipt [10:24:50]MH_GetDate [10:24:50]Write to MH i2c: F0 00 00 05 19 0D [10:24:50]Write i2c OK [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: F0 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: F0 09 00 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: F0 09 00 05 19 00 76 50 44 67 B8 5A 43 67 43 [10:24:50]GetLastDocTimeStamp 1732530103 [10:24:50]current date 1732530294 [10:24:50]FM_GetShiftState [10:24:50]SAM_PROTO_GetShiftState [10:24:50]wFMCommunicate request_size=4 [10:24:50]MH_SAM_APDU [10:24:50]CAPDU: 80 13 01 00 [10:24:50]Write to MH i2c: E2 08 00 06 19 80 13 01 00 00 00 00 00 9C [10:24:50]Write i2c OK [10:24:50]MH_I2C_Read... [10:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:50]Read from MH i2c: E2 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 0E 00 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 0E 00 06 19 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1B [10:24:50]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:24:50]wFMCommunicate OK [10:24:50]SAM_PROTO_GetShiftState done [10:24:50]FM_GetShiftState done [10:24:50]opened in 1732493066 [10:24:50]opened+sec_in_day 1732579466 [10:24:50]quantity*price = 30034 [10:24:50]sum+1 = 30036 [10:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 32 25.11.2024 10:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122991 ФПД: 76935004773601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102454&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122991&fm=76935004773601&tin=02508201610067®Number=0000000000092681&sum=30000 [10:24:51]StoreToDocumentArchive [10:24:51]shift 556 fd 122991 [10:24:51]save to /storage/0556/doc_00122991 [10:24:51]save last doc name /storage/0556/doc_00122991 to /storage/kkm_last_doc_name [10:24:51]save OK [10:24:51]Clear old archive folders... [10:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:24:51]tlvbuf is 01F26890 [10:24:51]SAM_PROTO_ClearQueue [10:24:51]wFMCommunicate request_size=4 [10:24:51]MH_SAM_APDU [10:24:51]CAPDU: 80 09 00 00 [10:24:51]Write to MH i2c: E2 08 00 13 19 80 09 00 00 00 00 00 00 9E [10:24:51]Write i2c OK [10:24:51]MH_I2C_Read... [10:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:51]Read from MH i2c: E2 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 03 00 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 03 00 13 19 00 90 00 A0 [10:24:51]RAPDU: 90 00 [10:24:51]wFMCommunicate OK [10:24:51]SAM_PROTO_ClearQueue done [10:24:51]KKMCreateOFDPacket [10:24:51]OFDProtocolAddRootSTLVToBuf [10:24:51]FM_MakeSignedData [10:24:51]FM_MakeSignedData [10:24:51]SAM_PROTO_SignData [10:24:51]wFMCommunicate request_size=4 [10:24:51]MH_SAM_APDU [10:24:51]CAPDU: 80 0D 01 02 [10:24:51]Write to MH i2c: E2 08 00 14 19 80 0D 01 02 00 00 00 00 A6 [10:24:51]Write i2c OK [10:24:51]MH_I2C_Read... [10:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:51]Read from MH i2c: E2 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 03 00 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 03 00 14 19 00 90 00 A1 [10:24:51]RAPDU: 90 00 [10:24:51]wFMCommunicate OK [10:24:51]wFMCommunicate request_size=255 [10:24:51]MH_SAM_APDU [10:24:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 00 00 00 F4 03 04 00 76 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E0 01 00 35 04 06 00 [10:24:51]Write to MH i2c: E2 02 01 15 19 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 00 00 00 F4 03 04 00 76 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E0 01 00 35 04 06 00 00 00 B6 [10:24:51]Write i2c OK [10:24:51]MH_I2C_Read... [10:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:51]Read from MH i2c: E2 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 03 00 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 03 00 15 19 00 90 00 A2 [10:24:51]RAPDU: 90 00 [10:24:51]wFMCommunicate OK [10:24:51]wFMCommunicate request_size=11 [10:24:51]MH_SAM_APDU [10:24:51]CAPDU: 80 0D 02 02 06 45 F8 D3 A1 5C E1 [10:24:51]Write to MH i2c: E2 0E 00 16 19 80 0D 02 02 06 00 45 F8 D3 A1 5C E1 00 00 A3 [10:24:51]Write i2c OK [10:24:51]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 16 19 00 90 00 A3 [10:24:52]RAPDU: 90 00 [10:24:52]wFMCommunicate OK [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 0D 03 02 [10:24:52]Write to MH i2c: E2 08 00 17 19 80 0D 03 02 00 00 00 00 AB [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 0B 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 0B 00 17 19 00 2D B0 D0 25 C2 B3 80 BE 90 00 31 [10:24:52]RAPDU: 2D B0 D0 25 C2 B3 80 BE 90 00 [10:24:52]wFMCommunicate OK [10:24:52]SAM_PROTO_SignData done [10:24:52]FM_MakeSignedData done [10:24:52]CreateOFDProtocolMessage [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 11 00 00 [10:24:52]Write to MH i2c: E2 08 00 18 19 80 11 00 00 00 00 00 00 AB [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 17 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 17 00 18 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 02 [10:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:24:52]wFMCommunicate OK [10:24:52]CreateOFDProtocolMessage done [10:24:52]OFDSenderStorePacket 122991 [10:24:52]StoreOFDPacket docnum=122991 [10:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 24 E5 08 01 98 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 00 00 00 F4 03 04 00 76 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E0 01 00 35 04 06 00 45 F8 D3 A1 5C E1 2D B0 D0 25 C2 B3 80 BE [10:24:52]CheckFolder [10:24:52]dirname=/storage/ofd_packets [10:24:52]CheckFolder done [10:24:52]ProducePacketName [10:24:52]name=ofd_packets/00122991 [10:24:52]NVStorageSaveData ofd_packets/00122991 [10:24:52]File name is /storage/ofd_packets/00122991 [10:24:52]Write 302 bytes [10:24:52]NVStorageSaveData done [10:24:52]OFDSenderStorePacket done [10:24:52]KKMCreateOFDPacket done [10:24:52]NVStorageSaveData kkm_last_timestamp [10:24:52]File name is /storage/kkm_last_timestamp [10:24:52]Write 4 bytes [10:24:52]NVStorageSaveData done [10:24:52]ExternCall_PrintAddStr [10:24:52]wPrintStart [10:24:52]Write to MH i2c: 01 00 00 19 19 32 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 07 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 07 00 19 19 00 00 00 00 00 FF 0F 47 [10:24:52]RasterBufferAndPrint [10:24:52]line Счет N : (1)717784 [10:24:52]line ИНН: 02508201610067 [10:24:52]line Контрольно-Кассовый Чек [10:24:52]line ПРОДАЖА [10:24:52]line ТРК (МРК, ГНК) : 6 [10:24:52]line Товар: 2710194210 [10:24:52]line ДТ(л)-К-5 [10:24:52]line 4.010 * 74.90 [10:24:52]line = 300.35 [10:24:52]line НДС 12% НСП 1% [10:24:52]line > о реализуемом товаре [10:24:52]line ОКРУГЛЕНИЕ: -0.35 [10:24:52]line ИТОГО: 300.00 [10:24:52]line Внесено: 300.00 [10:24:52]line СДАЧА: 0.00 [10:24:52]line НСП 1% : 2.66 [10:24:52]line НДС 12% : 31.90 [10:24:52]line Наличными: 300.00 [10:24:52]line Безнал.: 0.00 [10:24:52]line Место: АЗС № 64 "Партнер Нефть" [10:24:52]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:24:52]line СНО: Общий режим [10:24:52]line Чек 32 25.11.2024 10:24 [10:24:52]line Смена: 556 ФФД: 1.0 [10:24:52]line ЗНМ: 0300000033 [10:24:52]line РНМ: 0000000000092681 [10:24:52]line Версия ККМ: 001 [10:24:52]line ФМ: 0000000000874881 [10:24:52]line ФД: 122991 [10:24:52]line ФПД: 76935004773601 [10:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102454&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122991&fm=76935004773601&tin=02508201610067®Number=0000000000092681&sum=30000 [10:24:52]OFD Sender: Processing packet 122991 [packets to send 7, broken 6] [10:24:52]ProducePacketName [10:24:52]name=ofd_packets/00122991 [10:24:52]OFD Sender: To server: pG, [10:24:52]CommunicateWithHost lk.salyk.kg:30040 [10:24:52]ConnectInit lk.salyk.kg [10:24:52]written 0, free lines is 4095 [10:24:52]Connected sock=10 [10:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 24 E5 08 01 98 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 00 00 00 F4 03 04 00 76 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E0 01 00 35 04 06 00 45 F8 D3 A1 5C E1 2D B0 D0 25 C2 B3 80 BE [10:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F8 07 47 00 55 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E0 01 00 F4 03 04 00 3D FC 43 67 B6 04 01 00 00 31 D8 DB 42 BC B7 EE D4 [10:24:52]CommunicateWithHost err = 0 [10:24:52]CheckOFDResponse [10:24:52]1017 (14) - 77093643461234 [10:24:52]1041 (16) - 0000000000874881 [10:24:52]1040 (4) - 122991 [10:24:52]1012 (4) - 25.11.2024 04:25 [10:24:52]1206 (1) - 0 [10:24:52]OFD Sender: Remove packet 122991 [10:24:52]ProducePacketName [10:24:52]name=ofd_packets/00122991 [10:24:52]NVStorageDeleteData [10:24:52]Write to MH i2c: 01 00 00 44 19 5D [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 07 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 07 00 44 19 00 00 00 00 00 4D 0C BD [10:24:52]RasterBufferAndPrint [10:24:52]line [10:24:52]line [10:24:52]line [10:24:52]line [10:24:52]line [10:24:52]written 0, free lines is 3153 [10:24:52]MH_Cut [10:24:52]Write to MH i2c: D1 01 00 4B 19 01 36 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: D1 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: D1 01 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: D1 01 00 4B 19 00 35 [10:24:52]Write to MH i2c: 01 00 00 4C 19 65 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:53]OFD Sender: No OFD packet to send [10:24:54]*** Cut start [10:24:54]*** Partial cut [10:24:54]*** CUTSNS_PIN = 1 [10:24:54]*** CUTSNS_PIN = 0 [10:24:54]*** Brake cut motor [10:24:54]Read from MH i2c: 01 [10:24:54]MH_I2C_Read... [10:24:54]*** Stop cut motor [10:24:54]*** Cut end [10:24:54]Read from MH i2c: 01 07 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: 01 07 00 4C 19 00 00 00 00 00 FF 0F 7A [10:24:54]process_action close_receipt done [10:24:54]requested_data is exist [10:24:54]produce_requested_data [10:24:54]requested_item fm.sn is exist - process it [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 11 00 00 [10:24:54]Write to MH i2c: E2 08 00 4D 19 80 11 00 00 00 00 00 00 E0 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 4D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 37 [10:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:24:54]wFMCommunicate OK [10:24:54]requested_item fd.num is exist - process it [10:24:54]SAM_PROTO_GetFieldsCounters [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 13 00 00 [10:24:54]Write to MH i2c: E2 08 00 4E 19 80 13 00 00 00 00 00 00 E3 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:55]Read from MH i2c: E2 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 62 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 62 00 4E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6F E0 01 00 0E 04 04 00 2C 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 E7 [10:24:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6F E0 01 00 0E 04 04 00 2C 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 [10:24:55]wFMCommunicate OK [10:24:55]SAM_PROTO_GetFieldsCounters done [10:24:55]requested_item shift.num is exist - process it [10:24:55]requested_item shift.opened is exist - process it [10:24:55]req_shift_opened [10:24:55]FM_GetShiftState [10:24:55]SAM_PROTO_GetShiftState [10:24:55]wFMCommunicate request_size=4 [10:24:55]MH_SAM_APDU [10:24:55]CAPDU: 80 13 01 00 [10:24:55]Write to MH i2c: E2 08 00 4F 19 80 13 01 00 00 00 00 00 E5 [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:55]Read from MH i2c: E2 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 0E 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 0E 00 4F 19 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 64 [10:24:55]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:24:55]wFMCommunicate OK [10:24:55]SAM_PROTO_GetShiftState done [10:24:55]FM_GetShiftState done [10:24:55]req_shift_opened done [10:24:55]requested_item shift.open_date is exist - process it [10:24:55]req_shift_open_date [10:24:55]req_shift_open_date done [10:24:55]produce_requested_data done [10:24:55]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122991,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:24:55]process_action_free close_receipt [10:24:55]json_value_free [10:24:55]json_value_free done [10:24:55]process_json_proto returns [10:24:55]Send response to host [10:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122991,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:24:55]free response buf [10:24:55]execute_script done [10:24:55]execute_script returns [10:24:55]free content buf [10:24:55]Sock 7.Close socket [10:24:55]Sock 7.Thread stoped [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:46]accept exits with 9 [10:25:46]New connection [10:25:46]New thread 3066723684 created [10:25:46]Thread 3066580324 joined [10:25:46]Waiting for new connection... [10:25:46] Sock 9.Parse request [10:25:46]Sock 9.Check first char [10:25:46]Sock 9.First char is OK [10:25:46]request: POST /json_proto HTTP/1.0 [10:25:46]Method: POST [10:25:46]URL: /json_proto [10:25:46]Method is POST - this is cgi request [10:25:46]url: /json_proto [10:25:46]query_string will be loaded in cgi processing [10:25:46]execute_cgi json_proto POST (null) [10:25:46]execute_cgi path=json_proto method=POST [10:25:46]POST find Content-Length [10:25:46]Host: 172.17.37.4:8080 [10:25:46]Content-Length: 792 [10:25:46]Content-Type: application/json [10:25:46] [10:25:46]POST finish read [10:25:46]Found Content-Length = 792 [10:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32035", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:46]execute_script... [10:25:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32035", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:46]POST & json_proto [10:25:46]process_json_proto [10:25:46]json parsed OK: [10:25:46]protocol is kg_v1.0 [10:25:46]action value=close_receipt [10:25:46]process_action close_receipt [10:25:46]cmd_close_receipt [10:25:46]MH_GetDate [10:25:46]Write to MH i2c: F0 00 00 50 19 58 [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 09 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 09 00 50 19 00 AE 50 44 67 B8 5A 43 67 C6 [10:25:46]GetLastDocTimeStamp 1732530294 [10:25:46]current date 1732530350 [10:25:46]FM_GetShiftState [10:25:46]SAM_PROTO_GetShiftState [10:25:46]wFMCommunicate request_size=4 [10:25:46]MH_SAM_APDU [10:25:46]CAPDU: 80 13 01 00 [10:25:46]Write to MH i2c: E2 08 00 51 19 80 13 01 00 00 00 00 00 E7 [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:46]Read from MH i2c: E2 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 51 19 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 66 [10:25:46]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:25:46]wFMCommunicate OK [10:25:46]SAM_PROTO_GetShiftState done [10:25:46]FM_GetShiftState done [10:25:46]opened in 1732493066 [10:25:46]opened+sec_in_day 1732579466 [10:25:46]quantity*price = 0 [10:25:46]sum+1 = 1 [10:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 33 25.11.2024 10:25 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 32035 ФМ: 0000000000874881 ФД: 122992 ФПД: 217809093481611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102550&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122992&fm=217809093481611&tin=02508201610067®Number=0000000000092681&sum=0 [10:25:47]StoreToDocumentArchive [10:25:47]shift 556 fd 122992 [10:25:47]save to /storage/0556/doc_00122992 [10:25:47]save last doc name /storage/0556/doc_00122992 to /storage/kkm_last_doc_name [10:25:47]save OK [10:25:47]Clear old archive folders... [10:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:47]tlvbuf is B6E708D0 [10:25:47]SAM_PROTO_ClearQueue [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 09 00 00 [10:25:47]Write to MH i2c: E2 08 00 5E 19 80 09 00 00 00 00 00 00 E9 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 5E 19 00 90 00 EB [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]SAM_PROTO_ClearQueue done [10:25:47]KKMCreateOFDPacket [10:25:47]OFDProtocolAddRootSTLVToBuf [10:25:47]FM_MakeSignedData [10:25:47]FM_MakeSignedData [10:25:47]SAM_PROTO_SignData [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 01 02 [10:25:47]Write to MH i2c: E2 08 00 5F 19 80 0D 01 02 00 00 00 00 F1 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 5F 19 00 90 00 EC [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]wFMCommunicate request_size=255 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 21 00 00 00 F4 03 04 00 AE 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E0 01 00 35 04 06 00 C6 [10:25:47]Write to MH i2c: E2 02 01 60 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 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 21 00 00 00 F4 03 04 00 AE 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E0 01 00 35 04 06 00 C6 00 00 45 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 60 19 00 90 00 ED [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]wFMCommunicate request_size=10 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 02 02 05 18 A1 A5 54 8B [10:25:47]Write to MH i2c: E2 0D 00 61 19 80 0D 02 02 05 00 18 A1 A5 54 8B 00 00 3B [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 61 19 00 90 00 EE [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 03 02 [10:25:47]Write to MH i2c: E2 08 00 62 19 80 0D 03 02 00 00 00 00 F6 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 0B 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 0B 00 62 19 00 00 ED A1 D5 BE 71 0A 45 90 00 D8 [10:25:47]RAPDU: 00 ED A1 D5 BE 71 0A 45 90 00 [10:25:47]wFMCommunicate OK [10:25:47]SAM_PROTO_SignData done [10:25:47]FM_MakeSignedData done [10:25:47]CreateOFDProtocolMessage [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 11 00 00 [10:25:47]Write to MH i2c: E2 08 00 63 19 80 11 00 00 00 00 00 00 F6 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 17 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 17 00 63 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4D [10:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:25:47]wFMCommunicate OK [10:25:47]CreateOFDProtocolMessage done [10:25:47]OFDSenderStorePacket 122992 [10:25:47]StoreOFDPacket docnum=122992 [10:25:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B0 BA 07 01 77 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 21 00 00 00 F4 03 04 00 AE 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E0 01 00 35 04 06 00 C6 18 A1 A5 54 8B 00 ED A1 D5 BE 71 0A 45 [10:25:47]CheckFolder [10:25:47]dirname=/storage/ofd_packets [10:25:47]CheckFolder done [10:25:47]ProducePacketName [10:25:47]name=ofd_packets/00122992 [10:25:47]NVStorageSaveData ofd_packets/00122992 [10:25:47]File name is /storage/ofd_packets/00122992 [10:25:47]Write 301 bytes [10:25:47]NVStorageSaveData done [10:25:47]OFDSenderStorePacket done [10:25:47]KKMCreateOFDPacket done [10:25:47]NVStorageSaveData kkm_last_timestamp [10:25:47]File name is /storage/kkm_last_timestamp [10:25:47]Write 4 bytes [10:25:47]NVStorageSaveData done [10:25:47]ExternCall_PrintAddStr [10:25:47]wPrintStart [10:25:47]Write to MH i2c: 01 00 00 64 19 7D [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 64 19 00 00 00 00 00 FF 0F 92 [10:25:47]RasterBufferAndPrint [10:25:47]line Счет N : (1)717783 [10:25:47]line ИНН: 02508201610067 [10:25:47]line Контрольно-Кассовый Чек [10:25:47]line ПРОДАЖА [10:25:47]line ТРК (МРК, ГНК) : 12 [10:25:47]line Товар: 2710124130 [10:25:47]line Аи-92-К-4 [10:25:47]line 10.000 * 0.00 [10:25:47]line = 0.00 [10:25:47]line НДС 12% НСП 1% [10:25:47]line > о реализуемом товаре [10:25:47]line ИТОГО: 0.00 [10:25:47]line НСП 1% : 0.00 [10:25:47]line НДС 12% : 0.00 [10:25:47]line Наличными: 0.00 [10:25:47]line Безнал.: 0.00 [10:25:47]line Место: АЗС № 64 "Партнер Нефть" [10:25:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:25:47]line СНО: Общий режим [10:25:47]line Чек 33 25.11.2024 10:25 [10:25:47]line Смена: 556 ФФД: 1.0 [10:25:47]line ЗНМ: 0300000033 [10:25:47]line РНМ: 0000000000092681 [10:25:47]line Версия ККМ: 001 [10:25:47]line Талоны: Топливная Карта [10:25:47]line 32035 [10:25:47]line ФМ: 0000000000874881 [10:25:47]line ФД: 122992 [10:25:47]line ФПД: 217809093481611 [10:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102550&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122992&fm=217809093481611&tin=02508201610067®Number=0000000000092681&sum=0 [10:25:48]OFD Sender: Processing packet 122992 [packets to send 7, broken 6] [10:25:48]ProducePacketName [10:25:48]name=ofd_packets/00122992 [10:25:48]OFD Sender: To server: pG, [10:25:48]CommunicateWithHost lk.salyk.kg:30040 [10:25:48]ConnectInit lk.salyk.kg [10:25:48]written 0, free lines is 4095 [10:25:48]Connected sock=10 [10:25:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B0 BA 07 01 77 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 21 00 00 00 F4 03 04 00 AE 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E0 01 00 35 04 06 00 C6 18 A1 A5 54 8B 00 ED A1 D5 BE 71 0A 45 [10:25:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D2 BE 47 00 0B 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E0 01 00 F4 03 04 00 74 FC 43 67 B6 04 01 00 00 7B AA 4E 13 06 D4 36 D0 [10:25:48]CommunicateWithHost err = 0 [10:25:48]CheckOFDResponse [10:25:48]1017 (14) - 77093643461234 [10:25:48]1041 (16) - 0000000000874881 [10:25:48]1040 (4) - 122992 [10:25:48]1012 (4) - 25.11.2024 04:26 [10:25:48]1206 (1) - 0 [10:25:48]OFD Sender: Remove packet 122992 [10:25:48]ProducePacketName [10:25:48]name=ofd_packets/00122992 [10:25:48]NVStorageDeleteData [10:25:48]Write to MH i2c: 01 00 00 8E 19 A7 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 8E 19 00 00 00 00 00 5D 0C 17 [10:25:48]RasterBufferAndPrint [10:25:48]line [10:25:48]line [10:25:48]line [10:25:48]line [10:25:48]line [10:25:48]written 0, free lines is 3168 [10:25:48]MH_Cut [10:25:48]Write to MH i2c: D1 01 00 95 19 01 80 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: D1 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: D1 01 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: D1 01 00 95 19 00 7F [10:25:48]Write to MH i2c: 01 00 00 96 19 AF [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]OFD Sender: No OFD packet to send [10:25:49]*** Cut start [10:25:49]*** Partial cut [10:25:49]*** CUTSNS_PIN = 1 [10:25:49]*** CUTSNS_PIN = 0 [10:25:50]*** Brake cut motor [10:25:50]Read from MH i2c: 01 [10:25:50]MH_I2C_Read... [10:25:50]*** Stop cut motor [10:25:50]*** Cut end [10:25:50]Read from MH i2c: 01 07 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 96 19 00 00 00 00 00 FF 0F C4 [10:25:50]process_action close_receipt done [10:25:50]requested_data is exist [10:25:50]produce_requested_data [10:25:50]requested_item fm.sn is exist - process it [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 11 00 00 [10:25:50]Write to MH i2c: E2 08 00 97 19 80 11 00 00 00 00 00 00 2A [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 17 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 17 00 97 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 81 [10:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:25:50]wFMCommunicate OK [10:25:50]requested_item fd.num is exist - process it [10:25:50]SAM_PROTO_GetFieldsCounters [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 13 00 00 [10:25:50]Write to MH i2c: E2 08 00 98 19 80 13 00 00 00 00 00 00 2D [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 62 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 62 00 98 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 70 E0 01 00 0E 04 04 00 2C 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 35 [10:25:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 70 E0 01 00 0E 04 04 00 2C 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 [10:25:50]wFMCommunicate OK [10:25:50]SAM_PROTO_GetFieldsCounters done [10:25:50]requested_item shift.num is exist - process it [10:25:50]requested_item shift.opened is exist - process it [10:25:50]req_shift_opened [10:25:50]FM_GetShiftState [10:25:50]SAM_PROTO_GetShiftState [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 13 01 00 [10:25:50]Write to MH i2c: E2 08 00 99 19 80 13 01 00 00 00 00 00 2F [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 99 19 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 AE [10:25:50]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:25:50]wFMCommunicate OK [10:25:50]SAM_PROTO_GetShiftState done [10:25:50]FM_GetShiftState done [10:25:50]req_shift_opened done [10:25:50]requested_item shift.open_date is exist - process it [10:25:50]req_shift_open_date [10:25:50]req_shift_open_date done [10:25:50]produce_requested_data done [10:25:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122992,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:25:50]process_action_free close_receipt [10:25:50]json_value_free [10:25:50]json_value_free done [10:25:50]process_json_proto returns [10:25:50]Send response to host [10:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122992,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:25:50]free response buf [10:25:50]execute_script done [10:25:50]execute_script returns [10:25:50]free content buf [10:25:50]Sock 9.Close socket [10:25:50]Sock 9.Thread stoped [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:52]accept exits with 7 [10:26:52]New connection [10:26:52]New thread 3066580324 created [10:26:52]Thread 3066723684 joined [10:26:52]Waiting for new connection... [10:26:52] Sock 7.Parse request [10:26:52]Sock 7.Check first char [10:26:52]Sock 7.First char is OK [10:26:52]request: POST /json_proto HTTP/1.0 [10:26:52]Method: POST [10:26:52]URL: /json_proto [10:26:52]Method is POST - this is cgi request [10:26:52]url: /json_proto [10:26:52]query_string will be loaded in cgi processing [10:26:52]execute_cgi json_proto POST (null) [10:26:52]execute_cgi path=json_proto method=POST [10:26:52]POST find Content-Length [10:26:52]Host: 172.17.37.4:8080 [10:26:52]Content-Length: 792 [10:26:52]Content-Type: application/json [10:26:52] [10:26:52]POST finish read [10:26:52]Found Content-Length = 792 [10:26:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68888", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:52]execute_script... [10:26: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)717785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68888", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:52]POST & json_proto [10:26:52]process_json_proto [10:26:52]json parsed OK: [10:26:52]protocol is kg_v1.0 [10:26:52]action value=close_receipt [10:26:52]process_action close_receipt [10:26:52]cmd_close_receipt [10:26:52]MH_GetDate [10:26:52]Write to MH i2c: F0 00 00 9A 19 A2 [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: F0 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: F0 09 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: F0 09 00 9A 19 00 F1 50 44 67 B8 5A 43 67 53 [10:26:52]GetLastDocTimeStamp 1732530350 [10:26:52]current date 1732530417 [10:26:52]FM_GetShiftState [10:26:52]SAM_PROTO_GetShiftState [10:26:52]wFMCommunicate request_size=4 [10:26:52]MH_SAM_APDU [10:26:52]CAPDU: 80 13 01 00 [10:26:52]Write to MH i2c: E2 08 00 9B 19 80 13 01 00 00 00 00 00 31 [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:52]Read from MH i2c: E2 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 0E 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 0E 00 9B 19 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B0 [10:26:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:26:52]wFMCommunicate OK [10:26:52]SAM_PROTO_GetShiftState done [10:26:52]FM_GetShiftState done [10:26:52]opened in 1732493066 [10:26:52]opened+sec_in_day 1732579466 [10:26:52]quantity*price = 0 [10:26:52]sum+1 = 1 [10:26:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 34 25.11.2024 10:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 68888 ФМ: 0000000000874881 ФД: 122993 ФПД: 2080353125154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102657&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122993&fm=2080353125154&tin=02508201610067®Number=0000000000092681&sum=0 [10:26:53]StoreToDocumentArchive [10:26:53]shift 556 fd 122993 [10:26:53]save to /storage/0556/doc_00122993 [10:26:53]save last doc name /storage/0556/doc_00122993 to /storage/kkm_last_doc_name [10:26:53]save OK [10:26:53]Clear old archive folders... [10:26:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:53]tlvbuf is 02090530 [10:26:53]SAM_PROTO_ClearQueue [10:26:53]wFMCommunicate request_size=4 [10:26:53]MH_SAM_APDU [10:26:53]CAPDU: 80 09 00 00 [10:26:53]Write to MH i2c: E2 08 00 A8 19 80 09 00 00 00 00 00 00 33 [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:53]Read from MH i2c: E2 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 03 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [10:26:53]RAPDU: 90 00 [10:26:53]wFMCommunicate OK [10:26:53]SAM_PROTO_ClearQueue done [10:26:53]KKMCreateOFDPacket [10:26:53]OFDProtocolAddRootSTLVToBuf [10:26:53]FM_MakeSignedData [10:26:53]FM_MakeSignedData [10:26:53]SAM_PROTO_SignData [10:26:53]wFMCommunicate request_size=4 [10:26:53]MH_SAM_APDU [10:26:53]CAPDU: 80 0D 01 02 [10:26:53]Write to MH i2c: E2 08 00 A9 19 80 0D 01 02 00 00 00 00 3B [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:53]Read from MH i2c: E2 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 03 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 03 00 A9 19 00 90 00 36 [10:26:53]RAPDU: 90 00 [10:26:53]wFMCommunicate OK [10:26:53]wFMCommunicate request_size=255 [10:26:53]MH_SAM_APDU [10:26:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 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 22 00 00 00 F4 03 04 00 F1 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E0 01 00 35 04 06 00 01 [10:26:53]Write to MH i2c: E2 02 01 AA 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 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 22 00 00 00 F4 03 04 00 F1 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E0 01 00 35 04 06 00 01 00 00 46 [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]OFD Sender: No OFD packet to send [10:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 03 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 03 00 AA 19 00 90 00 37 [10:26:54]RAPDU: 90 00 [10:26:54]wFMCommunicate OK [10:26:54]wFMCommunicate request_size=10 [10:26:54]MH_SAM_APDU [10:26:54]CAPDU: 80 0D 02 02 05 E4 5E B5 83 22 [10:26:54]Write to MH i2c: E2 0D 00 AB 19 80 0D 02 02 05 00 E4 5E B5 83 22 00 00 E4 [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 03 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 03 00 AB 19 00 90 00 38 [10:26:54]RAPDU: 90 00 [10:26:54]wFMCommunicate OK [10:26:54]wFMCommunicate request_size=4 [10:26:54]MH_SAM_APDU [10:26:54]CAPDU: 80 0D 03 02 [10:26:54]Write to MH i2c: E2 08 00 AC 19 80 0D 03 02 00 00 00 00 40 [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0B 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0B 00 AC 19 00 72 53 51 64 A9 04 A3 4F 90 00 5A [10:26:54]RAPDU: 72 53 51 64 A9 04 A3 4F 90 00 [10:26:54]wFMCommunicate OK [10:26:54]SAM_PROTO_SignData done [10:26:54]FM_MakeSignedData done [10:26:54]CreateOFDProtocolMessage [10:26:54]wFMCommunicate request_size=4 [10:26:54]MH_SAM_APDU [10:26:54]CAPDU: 80 11 00 00 [10:26:54]Write to MH i2c: E2 08 00 AD 19 80 11 00 00 00 00 00 00 40 [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 17 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 17 00 AD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 97 [10:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:26:54]wFMCommunicate OK [10:26:54]CreateOFDProtocolMessage done [10:26:54]OFDSenderStorePacket 122993 [10:26:54]StoreOFDPacket docnum=122993 [10:26:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 23 3B 07 01 60 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 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 22 00 00 00 F4 03 04 00 F1 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E0 01 00 35 04 06 00 01 E4 5E B5 83 22 72 53 51 64 A9 04 A3 4F [10:26:54]CheckFolder [10:26:54]dirname=/storage/ofd_packets [10:26:54]CheckFolder done [10:26:54]ProducePacketName [10:26:54]name=ofd_packets/00122993 [10:26:54]NVStorageSaveData ofd_packets/00122993 [10:26:54]File name is /storage/ofd_packets/00122993 [10:26:54]Write 301 bytes [10:26:54]NVStorageSaveData done [10:26:54]OFDSenderStorePacket done [10:26:54]KKMCreateOFDPacket done [10:26:54]NVStorageSaveData kkm_last_timestamp [10:26:54]File name is /storage/kkm_last_timestamp [10:26:54]Write 4 bytes [10:26:54]NVStorageSaveData done [10:26:54]ExternCall_PrintAddStr [10:26:54]wPrintStart [10:26:54]Write to MH i2c: 01 00 00 AE 19 C7 [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: 01 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: 01 07 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: 01 07 00 AE 19 00 00 00 00 00 FF 0F DC [10:26:54]RasterBufferAndPrint [10:26:54]line Счет N : (1)717785 [10:26:54]line ИНН: 02508201610067 [10:26:54]line Контрольно-Кассовый Чек [10:26:54]line ПРОДАЖА [10:26:54]line ТРК (МРК, ГНК) : 22 [10:26:54]line Товар: 2710124130 [10:26:54]line Аи-92-К-4 [10:26:54]line 20.000 * 0.00 [10:26:54]line = 0.00 [10:26:54]line НДС 12% НСП 1% [10:26:54]line > о реализуемом товаре [10:26:54]line ИТОГО: 0.00 [10:26:54]line НСП 1% : 0.00 [10:26:54]line НДС 12% : 0.00 [10:26:54]line Наличными: 0.00 [10:26:54]line Безнал.: 0.00 [10:26:54]line Место: АЗС № 64 "Партнер Нефть" [10:26:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:26:54]line СНО: Общий режим [10:26:54]line Чек 34 25.11.2024 10:26 [10:26:54]line Смена: 556 ФФД: 1.0 [10:26:54]line ЗНМ: 0300000033 [10:26:54]line РНМ: 0000000000092681 [10:26:54]line Версия ККМ: 001 [10:26:54]line Талоны: Топливная Карта [10:26:54]line 68888 [10:26:54]line ФМ: 0000000000874881 [10:26:54]line ФД: 122993 [10:26:54]line ФПД: 2080353125154 [10:26:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102657&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122993&fm=2080353125154&tin=02508201610067®Number=0000000000092681&sum=0 [10:26:54]OFD Sender: Processing packet 122993 [packets to send 7, broken 6] [10:26:54]ProducePacketName [10:26:54]name=ofd_packets/00122993 [10:26:54]OFD Sender: To server: pG, [10:26:54]CommunicateWithHost lk.salyk.kg:30040 [10:26:54]ConnectInit lk.salyk.kg [10:26:54]written 0, free lines is 4095 [10:26:54]Connected sock=10 [10:26:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 23 3B 07 01 60 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 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 22 00 00 00 F4 03 04 00 F1 50 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E0 01 00 35 04 06 00 01 E4 5E B5 83 22 72 53 51 64 A9 04 A3 4F [10:26:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 0A 74 47 00 BF 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E0 01 00 F4 03 04 00 B7 FC 43 67 B6 04 01 00 00 01 DA D1 A7 B2 FF BD 2E [10:26:55]CommunicateWithHost err = 0 [10:26:55]CheckOFDResponse [10:26:55]1017 (14) - 77093643461234 [10:26:55]1041 (16) - 0000000000874881 [10:26:55]1040 (4) - 122993 [10:26:55]1012 (4) - 25.11.2024 04:27 [10:26:55]1206 (1) - 0 [10:26:55]OFD Sender: Remove packet 122993 [10:26:55]ProducePacketName [10:26:55]name=ofd_packets/00122993 [10:26:55]NVStorageDeleteData [10:26:55]Write to MH i2c: 01 00 00 D8 19 F1 [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: 01 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: 01 07 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: 01 07 00 D8 19 00 00 00 00 00 5C 0C 60 [10:26:55]RasterBufferAndPrint [10:26:55]line [10:26:55]line [10:26:55]line [10:26:55]line [10:26:55]line [10:26:55]written 0, free lines is 3168 [10:26:55]MH_Cut [10:26:55]Write to MH i2c: D1 01 00 DF 19 01 CA [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: D1 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: D1 01 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: D1 01 00 DF 19 00 C9 [10:26:55]Write to MH i2c: 01 00 00 E0 19 F9 [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]OFD Sender: No OFD packet to send [10:26:56]*** Cut start [10:26:56]*** Partial cut [10:26:56]*** CUTSNS_PIN = 1 [10:26:56]*** CUTSNS_PIN = 0 [10:26:56]*** Brake cut motor [10:26:57]Read from MH i2c: 01 [10:26:57]MH_I2C_Read... [10:26:57]*** Stop cut motor [10:26:57]*** Cut end [10:26:57]Read from MH i2c: 01 07 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 E0 19 00 00 00 00 00 FF 0F 0E [10:26:57]process_action close_receipt done [10:26:57]requested_data is exist [10:26:57]produce_requested_data [10:26:57]requested_item fm.sn is exist - process it [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 11 00 00 [10:26:57]Write to MH i2c: E2 08 00 E1 19 80 11 00 00 00 00 00 00 74 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 E1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CB [10:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:26:57]wFMCommunicate OK [10:26:57]requested_item fd.num is exist - process it [10:26:57]SAM_PROTO_GetFieldsCounters [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 13 00 00 [10:26:57]Write to MH i2c: E2 08 00 E2 19 80 13 00 00 00 00 00 00 77 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 62 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 62 00 E2 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 71 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [10:26:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 71 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:57]wFMCommunicate OK [10:26:57]SAM_PROTO_GetFieldsCounters done [10:26:57]requested_item shift.num is exist - process it [10:26:57]requested_item shift.opened is exist - process it [10:26:57]req_shift_opened [10:26:57]FM_GetShiftState [10:26:57]SAM_PROTO_GetShiftState [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 13 01 00 [10:26:57]Write to MH i2c: E2 08 00 E3 19 80 13 01 00 00 00 00 00 79 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0E 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0E 00 E3 19 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F8 [10:26:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:26:57]wFMCommunicate OK [10:26:57]SAM_PROTO_GetShiftState done [10:26:57]FM_GetShiftState done [10:26:57]req_shift_opened done [10:26:57]requested_item shift.open_date is exist - process it [10:26:57]req_shift_open_date [10:26:57]req_shift_open_date done [10:26:57]produce_requested_data done [10:26:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122993,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:26:57]process_action_free close_receipt [10:26:57]json_value_free [10:26:57]json_value_free done [10:26:57]process_json_proto returns [10:26:57]Send response to host [10:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122993,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:26:57]free response buf [10:26:57]execute_script done [10:26:57]execute_script returns [10:26:57]free content buf [10:26:57]Sock 7.Close socket [10:26:57]Sock 7.Thread stoped [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:00]accept exits with 9 [10:28:00]New connection [10:28:00]New thread 3066723684 created [10:28:00]Thread 3066580324 joined [10:28:00]Waiting for new connection... [10:28:00] Sock 9.Parse request [10:28:00]Sock 9.Check first char [10:28:00]Sock 9.First char is OK [10:28:00]request: POST /json_proto HTTP/1.0 [10:28:00]Method: POST [10:28:00]URL: /json_proto [10:28:00]Method is POST - this is cgi request [10:28:00]url: /json_proto [10:28:00]query_string will be loaded in cgi processing [10:28:00]execute_cgi json_proto POST (null) [10:28:00]execute_cgi path=json_proto method=POST [10:28:00]POST find Content-Length [10:28:00]Host: 172.17.37.4:8080 [10:28:00]Content-Length: 682 [10:28:00]Content-Type: application/json [10:28:00] [10:28:00]POST finish read [10:28:00]Found Content-Length = 682 [10:28:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 12.020, "sum" : 900.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:00]execute_script... [10:28: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)717786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 12.020, "sum" : 900.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:00]POST & json_proto [10:28:00]process_json_proto [10:28:00]json parsed OK: [10:28:00]protocol is kg_v1.0 [10:28:00]action value=close_receipt [10:28:00]process_action close_receipt [10:28:00]cmd_close_receipt [10:28:00]MH_GetDate [10:28:00]Write to MH i2c: F0 00 00 E4 19 EC [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: F0 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: F0 09 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: F0 09 00 E4 19 00 35 51 44 67 B8 5A 43 67 E2 [10:28:00]GetLastDocTimeStamp 1732530417 [10:28:00]current date 1732530485 [10:28:00]FM_GetShiftState [10:28:00]SAM_PROTO_GetShiftState [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 13 01 00 [10:28:00]Write to MH i2c: E2 08 00 E5 19 80 13 01 00 00 00 00 00 7B [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 0E 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 0E 00 E5 19 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FA [10:28:00]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:28:00]wFMCommunicate OK [10:28:00]SAM_PROTO_GetShiftState done [10:28:00]FM_GetShiftState done [10:28:00]opened in 1732493066 [10:28:00]opened+sec_in_day 1732579466 [10:28:00]quantity*price = 90029 [10:28:00]sum+1 = 90031 [10:28:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.61 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 35 25.11.2024 10:28 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122994 ФПД: 186950297654676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102805&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122994&fm=186950297654676&tin=02508201610067®Number=0000000000092681&sum=90000 [10:28:01]StoreToDocumentArchive [10:28:01]shift 556 fd 122994 [10:28:01]save to /storage/0556/doc_00122994 [10:28:01]save last doc name /storage/0556/doc_00122994 to /storage/kkm_last_doc_name [10:28:01]save OK [10:28:01]Clear old archive folders... [10:28:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:28:01]tlvbuf is 01F25D70 [10:28:01]SAM_PROTO_ClearQueue [10:28:01]wFMCommunicate request_size=4 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 09 00 00 [10:28:01]Write to MH i2c: E2 08 00 F2 19 80 09 00 00 00 00 00 00 7D [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:01]Read from MH i2c: E2 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 03 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 03 00 F2 19 00 90 00 7F [10:28:01]RAPDU: 90 00 [10:28:01]wFMCommunicate OK [10:28:01]SAM_PROTO_ClearQueue done [10:28:01]KKMCreateOFDPacket [10:28:01]OFDProtocolAddRootSTLVToBuf [10:28:01]FM_MakeSignedData [10:28:01]FM_MakeSignedData [10:28:01]SAM_PROTO_SignData [10:28:01]wFMCommunicate request_size=4 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 0D 01 02 [10:28:01]Write to MH i2c: E2 08 00 F3 19 80 0D 01 02 00 00 00 00 85 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:01]Read from MH i2c: E2 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 03 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 03 00 F3 19 00 90 00 80 [10:28:01]RAPDU: 90 00 [10:28:01]wFMCommunicate OK [10:28:01]wFMCommunicate request_size=255 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F4 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 AE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 35 51 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 72 E0 01 00 35 04 06 00 [10:28:01]Write to MH i2c: E2 02 01 F4 19 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F4 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 AE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 35 51 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 72 E0 01 00 35 04 06 00 00 00 B1 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:02]Read from MH i2c: E2 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 03 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 03 00 F4 19 00 90 00 81 [10:28:02]RAPDU: 90 00 [10:28:02]wFMCommunicate OK [10:28:02]wFMCommunicate request_size=11 [10:28:02]MH_SAM_APDU [10:28:02]CAPDU: 80 0D 02 02 06 AA 07 C2 15 15 94 [10:28:02]Write to MH i2c: E2 0E 00 F5 19 80 0D 02 02 06 00 AA 07 C2 15 15 94 00 00 C5 [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:02]Read from MH i2c: E2 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 03 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 03 00 F5 19 00 90 00 82 [10:28:02]RAPDU: 90 00 [10:28:02]wFMCommunicate OK [10:28:02]wFMCommunicate request_size=4 [10:28:02]MH_SAM_APDU [10:28:02]CAPDU: 80 0D 03 02 [10:28:02]Write to MH i2c: E2 08 00 F6 19 80 0D 03 02 00 00 00 00 8A [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:02]Read from MH i2c: E2 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 0B 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 0B 00 F6 19 00 77 F7 46 BA E4 E1 D1 91 90 00 20 [10:28:02]RAPDU: 77 F7 46 BA E4 E1 D1 91 90 00 [10:28:02]wFMCommunicate OK [10:28:02]SAM_PROTO_SignData done [10:28:02]FM_MakeSignedData done [10:28:02]CreateOFDProtocolMessage [10:28:02]wFMCommunicate request_size=4 [10:28:02]MH_SAM_APDU [10:28:02]CAPDU: 80 11 00 00 [10:28:02]Write to MH i2c: E2 08 00 F7 19 80 11 00 00 00 00 00 00 8A [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:02]Read from MH i2c: E2 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 17 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 17 00 F7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E1 [10:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:28:02]wFMCommunicate OK [10:28:02]CreateOFDProtocolMessage done [10:28:02]OFDSenderStorePacket 122994 [10:28:02]StoreOFDPacket docnum=122994 [10:28:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 59 AB 08 01 47 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F4 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 AE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 35 51 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 72 E0 01 00 35 04 06 00 AA 07 C2 15 15 94 77 F7 46 BA E4 E1 D1 91 [10:28:02]CheckFolder [10:28:02]dirname=/storage/ofd_packets [10:28:02]CheckFolder done [10:28:02]ProducePacketName [10:28:02]name=ofd_packets/00122994 [10:28:02]NVStorageSaveData ofd_packets/00122994 [10:28:02]File name is /storage/ofd_packets/00122994 [10:28:02]Write 302 bytes [10:28:02]NVStorageSaveData done [10:28:02]OFDSenderStorePacket done [10:28:02]KKMCreateOFDPacket done [10:28:02]NVStorageSaveData kkm_last_timestamp [10:28:02]File name is /storage/kkm_last_timestamp [10:28:02]Write 4 bytes [10:28:02]NVStorageSaveData done [10:28:02]ExternCall_PrintAddStr [10:28:02]wPrintStart [10:28:02]Write to MH i2c: 01 00 00 F8 19 11 [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 07 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 07 00 F8 19 00 00 00 00 00 FF 0F 26 [10:28:02]RasterBufferAndPrint [10:28:02]line Счет N : (1)717786 [10:28:02]line ИНН: 02508201610067 [10:28:02]line Контрольно-Кассовый Чек [10:28:02]line ПРОДАЖА [10:28:02]line ТРК (МРК, ГНК) : 5 [10:28:02]line Товар: 2710194210 [10:28:02]line ДТ(л)-К-5 [10:28:02]line 12.020 * 74.90 [10:28:02]line = 900.30 [10:28:02]line НДС 12% НСП 1% [10:28:02]line > о реализуемом товаре [10:28:02]line ОКРУГЛЕНИЕ: -0.30 [10:28:02]line ИТОГО: 900.00 [10:28:02]line Внесено: 900.00 [10:28:02]line СДАЧА: 0.00 [10:28:02]line НСП 1% : 7.97 [10:28:02]line НДС 12% : 95.61 [10:28:02]line Наличными: 900.00 [10:28:02]line Безнал.: 0.00 [10:28:02]line Место: АЗС № 64 "Партнер Нефть" [10:28:02]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:28:02]line СНО: Общий режим [10:28:02]line Чек 35 25.11.2024 10:28 [10:28:02]line Смена: 556 ФФД: 1.0 [10:28:02]line ЗНМ: 0300000033 [10:28:02]line РНМ: 0000000000092681 [10:28:02]line Версия ККМ: 001 [10:28:02]line ФМ: 0000000000874881 [10:28:02]line ФД: 122994 [10:28:02]line ФПД: 186950297654676 [10:28:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T102805&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122994&fm=186950297654676&tin=02508201610067®Number=0000000000092681&sum=90000 [10:28:02]OFD Sender: Processing packet 122994 [packets to send 7, broken 6] [10:28:02]ProducePacketName [10:28:02]name=ofd_packets/00122994 [10:28:02]OFD Sender: To server: pG, [10:28:02]CommunicateWithHost lk.salyk.kg:30040 [10:28:02]ConnectInit lk.salyk.kg [10:28:02]written 0, free lines is 4095 [10:28:02]Connected sock=10 [10:28:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 59 AB 08 01 47 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F4 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 AE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 35 51 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 72 E0 01 00 35 04 06 00 AA 07 C2 15 15 94 77 F7 46 BA E4 E1 D1 91 [10:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 21 69 47 00 E3 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 34 38 38 31 10 04 04 00 72 E0 01 00 F4 03 04 00 FB FC 43 67 B6 04 01 00 00 36 DA 45 A7 D4 4E DC 2C [10:28:03]CommunicateWithHost err = 0 [10:28:03]CheckOFDResponse [10:28:03]1017 (14) - 77093643461234 [10:28:03]1041 (16) - 0000000000874881 [10:28:03]1040 (4) - 122994 [10:28:03]1012 (4) - 25.11.2024 04:28 [10:28:03]1206 (1) - 0 [10:28:03]OFD Sender: Remove packet 122994 [10:28:03]ProducePacketName [10:28:03]name=ofd_packets/00122994 [10:28:03]NVStorageDeleteData [10:28:03]Write to MH i2c: 01 00 00 23 1A 3D [10:28:03]Write i2c OK [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: 01 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: 01 07 00 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: 01 07 00 23 1A 00 00 00 00 00 44 0C 94 [10:28:03]RasterBufferAndPrint [10:28:03]line [10:28:03]line [10:28:03]line [10:28:03]line [10:28:03]line [10:28:03]written 0, free lines is 3146 [10:28:03]MH_Cut [10:28:03]Write to MH i2c: D1 01 00 2A 1A 01 16 [10:28:03]Write i2c OK [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: D1 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: D1 01 00 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: D1 01 00 2A 1A 00 15 [10:28:03]Write to MH i2c: 01 00 00 2B 1A 45 [10:28:03]Write i2c OK [10:28:03]MH_I2C_Read... [10:28:03]OFD Sender: No OFD packet to send [10:28:04]*** Cut start [10:28:04]*** Partial cut [10:28:04]*** CUTSNS_PIN = 1 [10:28:04]*** CUTSNS_PIN = 0 [10:28:04]*** Brake cut motor [10:28:05]Read from MH i2c: 01 [10:28:05]MH_I2C_Read... [10:28:05]*** Stop cut motor [10:28:05]*** Cut end [10:28:05]Read from MH i2c: 01 07 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: 01 07 00 2B 1A 00 00 00 00 00 FF 0F 5A [10:28:05]process_action close_receipt done [10:28:05]requested_data is exist [10:28:05]produce_requested_data [10:28:05]requested_item fm.sn is exist - process it [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 11 00 00 [10:28:05]Write to MH i2c: E2 08 00 2C 1A 80 11 00 00 00 00 00 00 C0 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 17 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 17 00 2C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 17 [10:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:28:05]wFMCommunicate OK [10:28:05]requested_item fd.num is exist - process it [10:28:05]SAM_PROTO_GetFieldsCounters [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 13 00 00 [10:28:05]Write to MH i2c: E2 08 00 2D 1A 80 13 00 00 00 00 00 00 C3 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 62 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 62 00 2D 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 72 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:28:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 72 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:05]wFMCommunicate OK [10:28:05]SAM_PROTO_GetFieldsCounters done [10:28:05]requested_item shift.num is exist - process it [10:28:05]requested_item shift.opened is exist - process it [10:28:05]req_shift_opened [10:28:05]FM_GetShiftState [10:28:05]SAM_PROTO_GetShiftState [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 13 01 00 [10:28:05]Write to MH i2c: E2 08 00 2E 1A 80 13 01 00 00 00 00 00 C5 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 0E 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 0E 00 2E 1A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 44 [10:28:05]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:28:05]wFMCommunicate OK [10:28:05]SAM_PROTO_GetShiftState done [10:28:05]FM_GetShiftState done [10:28:05]req_shift_opened done [10:28:05]requested_item shift.open_date is exist - process it [10:28:05]req_shift_open_date [10:28:05]req_shift_open_date done [10:28:05]produce_requested_data done [10:28:05]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122994,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:28:05]process_action_free close_receipt [10:28:05]json_value_free [10:28:05]json_value_free done [10:28:05]process_json_proto returns [10:28:05]Send response to host [10:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122994,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:28:05]free response buf [10:28:05]execute_script done [10:28:05]execute_script returns [10:28:05]free content buf [10:28:05]Sock 9.Close socket [10:28:05]Sock 9.Thread stoped [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]accept exits with 7 [10:31:33]New connection [10:31:33]New thread 3066580324 created [10:31:33]Thread 3066723684 joined [10:31:33]Waiting for new connection... [10:31:33] Sock 7.Parse request [10:31:33]Sock 7.Check first char [10:31:33]Sock 7.First char is OK [10:31:33]request: POST /json_proto HTTP/1.0 [10:31:33]Method: POST [10:31:33]URL: /json_proto [10:31:33]Method is POST - this is cgi request [10:31:33]url: /json_proto [10:31:33]query_string will be loaded in cgi processing [10:31:33]execute_cgi json_proto POST (null) [10:31:33]execute_cgi path=json_proto method=POST [10:31:33]POST find Content-Length [10:31:33]Host: 172.17.37.4:8080 [10:31:33]Content-Length: 803 [10:31:33]Content-Type: application/json [10:31:33] [10:31:33]POST finish read [10:31:33]Found Content-Length = 803 [10:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:33]execute_script... [10: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)717787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:33]POST & json_proto [10:31:33]process_json_proto [10:31:33]json parsed OK: [10:31:33]protocol is kg_v1.0 [10:31:33]action value=close_receipt [10:31:33]process_action close_receipt [10:31:33]cmd_close_receipt [10:31:33]MH_GetDate [10:31:33]Write to MH i2c: F0 00 00 2F 1A 38 [10:31:33]Write i2c OK [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: F0 [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: F0 09 00 [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: F0 09 00 2F 1A 00 0A 52 44 67 B8 5A 43 67 04 [10:31:33]GetLastDocTimeStamp 1732530485 [10:31:33]current date 1732530698 [10:31:33]FM_GetShiftState [10:31:33]SAM_PROTO_GetShiftState [10:31:33]wFMCommunicate request_size=4 [10:31:33]MH_SAM_APDU [10:31:33]CAPDU: 80 13 01 00 [10:31:33]Write to MH i2c: E2 08 00 30 1A 80 13 01 00 00 00 00 00 C7 [10:31:33]Write i2c OK [10:31:33]MH_I2C_Read... [10:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:33]Read from MH i2c: E2 [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: E2 0E 00 [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: E2 0E 00 30 1A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 46 [10:31:33]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:31:33]wFMCommunicate OK [10:31:33]SAM_PROTO_GetShiftState done [10:31:33]FM_GetShiftState done [10:31:33]opened in 1732493066 [10:31:33]opened+sec_in_day 1732579466 [10:31:33]quantity*price = 100021 [10:31:33]sum+1 = 100023 [10:31:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 36 25.11.2024 10:31 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 122995 ФПД: 280632755211769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T103138&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122995&fm=280632755211769&tin=02508201610067®Number=0000000000092681&sum=100022 [10:31:34]StoreToDocumentArchive [10:31:34]shift 556 fd 122995 [10:31:34]save to /storage/0556/doc_00122995 [10:31:34]save last doc name /storage/0556/doc_00122995 to /storage/kkm_last_doc_name [10:31:34]save OK [10:31:34]Clear old archive folders... [10:31:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:34]tlvbuf is 02092F40 [10:31:34]SAM_PROTO_ClearQueue [10:31:34]wFMCommunicate request_size=4 [10:31:34]MH_SAM_APDU [10:31:34]CAPDU: 80 09 00 00 [10:31:34]Write to MH i2c: E2 08 00 3D 1A 80 09 00 00 00 00 00 00 C9 [10:31:34]Write i2c OK [10:31:34]MH_I2C_Read... [10:31:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:34]Read from MH i2c: E2 [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 03 00 [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 03 00 3D 1A 00 90 00 CB [10:31:34]RAPDU: 90 00 [10:31:34]wFMCommunicate OK [10:31:34]SAM_PROTO_ClearQueue done [10:31:34]KKMCreateOFDPacket [10:31:34]OFDProtocolAddRootSTLVToBuf [10:31:34]FM_MakeSignedData [10:31:34]FM_MakeSignedData [10:31:34]SAM_PROTO_SignData [10:31:34]wFMCommunicate request_size=4 [10:31:34]MH_SAM_APDU [10:31:34]CAPDU: 80 0D 01 02 [10:31:34]Write to MH i2c: E2 08 00 3E 1A 80 0D 01 02 00 00 00 00 D1 [10:31:34]Write i2c OK [10:31:34]MH_I2C_Read... [10:31:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:34]Read from MH i2c: E2 [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 03 00 [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 03 00 3E 1A 00 90 00 CC [10:31:34]RAPDU: 90 00 [10:31:34]wFMCommunicate OK [10:31:34]wFMCommunicate request_size=255 [10:31:34]MH_SAM_APDU [10: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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0A 52 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E0 01 00 35 04 06 00 FF [10:31:34]Write to MH i2c: E2 02 01 3F 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0A 52 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E0 01 00 35 04 06 00 FF 00 00 00 [10:31:34]Write i2c OK [10:31:34]MH_I2C_Read... [10:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:35]Read from MH i2c: E2 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 03 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 03 00 3F 1A 00 90 00 CD [10:31:35]RAPDU: 90 00 [10:31:35]wFMCommunicate OK [10:31:35]wFMCommunicate request_size=10 [10:31:35]MH_SAM_APDU [10:31:35]CAPDU: 80 0D 02 02 05 3B E7 AF CD F9 [10:31:35]Write to MH i2c: E2 0D 00 40 1A 80 0D 02 02 05 00 3B E7 AF CD F9 00 00 75 [10:31:35]Write i2c OK [10:31:35]MH_I2C_Read... [10:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:35]Read from MH i2c: E2 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 03 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 03 00 40 1A 00 90 00 CE [10:31:35]RAPDU: 90 00 [10:31:35]wFMCommunicate OK [10:31:35]wFMCommunicate request_size=4 [10:31:35]MH_SAM_APDU [10:31:35]CAPDU: 80 0D 03 02 [10:31:35]Write to MH i2c: E2 08 00 41 1A 80 0D 03 02 00 00 00 00 D6 [10:31:35]Write i2c OK [10:31:35]MH_I2C_Read... [10:31:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:35]Read from MH i2c: E2 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 0B 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 0B 00 41 1A 00 EB 3E 99 44 96 3D 01 B8 90 00 69 [10:31:35]RAPDU: EB 3E 99 44 96 3D 01 B8 90 00 [10:31:35]wFMCommunicate OK [10:31:35]SAM_PROTO_SignData done [10:31:35]FM_MakeSignedData done [10:31:35]CreateOFDProtocolMessage [10:31:35]wFMCommunicate request_size=4 [10:31:35]MH_SAM_APDU [10:31:35]CAPDU: 80 11 00 00 [10:31:35]Write to MH i2c: E2 08 00 42 1A 80 11 00 00 00 00 00 00 D6 [10:31:35]Write i2c OK [10:31:35]MH_I2C_Read... [10:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:35]Read from MH i2c: E2 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 17 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 17 00 42 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2D [10:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:31:35]wFMCommunicate OK [10:31:35]CreateOFDProtocolMessage done [10:31:35]OFDSenderStorePacket 122995 [10:31:35]StoreOFDPacket docnum=122995 [10:31:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F3 A9 07 01 96 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0A 52 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E0 01 00 35 04 06 00 FF 3B E7 AF CD F9 EB 3E 99 44 96 3D 01 B8 [10:31:35]CheckFolder [10:31:35]dirname=/storage/ofd_packets [10:31:35]CheckFolder done [10:31:35]ProducePacketName [10:31:35]name=ofd_packets/00122995 [10:31:35]NVStorageSaveData ofd_packets/00122995 [10:31:35]File name is /storage/ofd_packets/00122995 [10:31:35]Write 301 bytes [10:31:35]NVStorageSaveData done [10:31:35]OFDSenderStorePacket done [10:31:35]KKMCreateOFDPacket done [10:31:35]NVStorageSaveData kkm_last_timestamp [10:31:35]File name is /storage/kkm_last_timestamp [10:31:35]Write 4 bytes [10:31:35]NVStorageSaveData done [10:31:35]ExternCall_PrintAddStr [10:31:35]wPrintStart [10:31:35]Write to MH i2c: 01 00 00 43 1A 5D [10:31:35]Write i2c OK [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: 01 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: 01 07 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: 01 07 00 43 1A 00 00 00 00 00 FF 0F 72 [10:31:35]RasterBufferAndPrint [10:31:35]line Счет N : (1)717787 [10:31:35]line ИНН: 02508201610067 [10:31:35]line Контрольно-Кассовый Чек [10:31:35]line ПРОДАЖА [10:31:35]line ТРК (МРК, ГНК) : 42 [10:31:35]line Товар: 2710124130 [10:31:35]line Аи-92-К-4 [10:31:35]line 14.840 * 67.40 [10:31:35]line = 1000.22 [10:31:35]line НДС 12% НСП 1% [10:31:35]line > о реализуемом товаре [10:31:35]line ИТОГО: 1000.22 [10:31:35]line НСП 1% : 8.85 [10:31:35]line НДС 12% : 106.22 [10:31:35]line Наличными: 0.00 [10:31:35]line Безнал.: 1000.22 [10:31:35]line Место: АЗС № 64 "Партнер Нефть" [10:31:35]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:31:35]line СНО: Общий режим [10:31:35]line Чек 36 25.11.2024 10:31 [10:31:35]line Смена: 556 ФФД: 1.0 [10:31:35]line ЗНМ: 0300000033 [10:31:35]line РНМ: 0000000000092681 [10:31:35]line Версия ККМ: 001 [10:31:35]line Платежная система: O! деньги [10:31:35]line ФМ: 0000000000874881 [10:31:35]line ФД: 122995 [10:31:35]line ФПД: 280632755211769 [10:31:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T103138&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122995&fm=280632755211769&tin=02508201610067®Number=0000000000092681&sum=100022 [10:31:35]OFD Sender: Processing packet 122995 [packets to send 7, broken 6] [10:31:35]ProducePacketName [10:31:35]name=ofd_packets/00122995 [10:31:35]OFD Sender: To server: pG, [10:31:35]CommunicateWithHost lk.salyk.kg:30040 [10:31:35]ConnectInit lk.salyk.kg [10:31:35]written 0, free lines is 4095 [10:31:35]Connected sock=10 [10: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 34 38 38 31 0F 01 00 00 F3 A9 07 01 96 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0A 52 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E0 01 00 35 04 06 00 FF 3B E7 AF CD F9 EB 3E 99 44 96 3D 01 B8 [10:31:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 49 FB 47 00 C0 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 34 38 38 31 10 04 04 00 73 E0 01 00 F4 03 04 00 D0 FD 43 67 B6 04 01 00 00 27 E8 01 DF 10 17 D4 F6 [10:31:35]CommunicateWithHost err = 0 [10:31:35]CheckOFDResponse [10:31:35]1017 (14) - 77093643461234 [10:31:35]1041 (16) - 0000000000874881 [10:31:35]1040 (4) - 122995 [10:31:35]1012 (4) - 25.11.2024 04:32 [10:31:35]1206 (1) - 0 [10:31:35]OFD Sender: Remove packet 122995 [10:31:35]ProducePacketName [10:31:35]name=ofd_packets/00122995 [10:31:35]NVStorageDeleteData [10:31:36]Write to MH i2c: 01 00 00 6D 1A 87 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: 01 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: 01 07 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: 01 07 00 6D 1A 00 00 00 00 00 58 0C F2 [10:31:36]RasterBufferAndPrint [10:31:36]line [10:31:36]line [10:31:36]line [10:31:36]line [10:31:36]line [10:31:36]written 0, free lines is 3164 [10:31:36]MH_Cut [10:31:36]Write to MH i2c: D1 01 00 74 1A 01 60 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: D1 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: D1 01 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: D1 01 00 74 1A 00 5F [10:31:36]Write to MH i2c: 01 00 00 75 1A 8F [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]OFD Sender: No OFD packet to send [10:31:37]*** Cut start [10:31:37]*** Partial cut [10:31:37]*** CUTSNS_PIN = 1 [10:31:37]*** CUTSNS_PIN = 0 [10:31:37]*** Brake cut motor [10:31:38]Read from MH i2c: 01 [10:31:38]MH_I2C_Read... [10:31:38]*** Stop cut motor [10:31:38]*** Cut end [10:31:38]Read from MH i2c: 01 07 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 07 00 75 1A 00 00 00 00 00 FF 0F A4 [10:31:38]process_action close_receipt done [10:31:38]requested_data is exist [10:31:38]produce_requested_data [10:31:38]requested_item fm.sn is exist - process it [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 11 00 00 [10:31:38]Write to MH i2c: E2 08 00 76 1A 80 11 00 00 00 00 00 00 0A [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 17 00 [10:31:38]MH_I2C_Read... [10:31:38]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 34 38 38 31 90 00 61 [10:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:31:38]wFMCommunicate OK [10:31:38]requested_item fd.num is exist - process it [10:31:38]SAM_PROTO_GetFieldsCounters [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 13 00 00 [10:31:38]Write to MH i2c: E2 08 00 77 1A 80 13 00 00 00 00 00 00 0D [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 62 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 62 00 77 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 73 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [10:31:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 73 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:38]wFMCommunicate OK [10:31:38]SAM_PROTO_GetFieldsCounters done [10:31:38]requested_item shift.num is exist - process it [10:31:38]requested_item shift.opened is exist - process it [10:31:38]req_shift_opened [10:31:38]FM_GetShiftState [10:31:38]SAM_PROTO_GetShiftState [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 13 01 00 [10:31:38]Write to MH i2c: E2 08 00 78 1A 80 13 01 00 00 00 00 00 0F [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0E 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0E 00 78 1A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 8E [10:31:38]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:31:38]wFMCommunicate OK [10:31:38]SAM_PROTO_GetShiftState done [10:31:38]FM_GetShiftState done [10:31:38]req_shift_opened done [10:31:38]requested_item shift.open_date is exist - process it [10:31:38]req_shift_open_date [10:31:38]req_shift_open_date done [10:31:38]produce_requested_data done [10:31:38]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122995,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:31:38]process_action_free close_receipt [10:31:38]json_value_free [10:31:38]json_value_free done [10:31:38]process_json_proto returns [10:31:38]Send response to host [10:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122995,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:31:38]free response buf [10:31:38]execute_script done [10:31:38]execute_script returns [10:31:38]free content buf [10:31:38]Sock 7.Close socket [10:31:38]Sock 7.Thread stoped [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:25]accept exits with 9 [10:36:25]New connection [10:36:25]New thread 3066723684 created [10:36:25]Thread 3066580324 joined [10:36:25]Waiting for new connection... [10:36:25] Sock 9.Parse request [10:36:25]Sock 9.Check first char [10:36:25]Sock 9.First char is OK [10:36:25]request: POST /json_proto HTTP/1.0 [10:36:25]Method: POST [10:36:25]URL: /json_proto [10:36:25]Method is POST - this is cgi request [10:36:25]url: /json_proto [10:36:25]query_string will be loaded in cgi processing [10:36:25]execute_cgi json_proto POST (null) [10:36:25]execute_cgi path=json_proto method=POST [10:36:25]POST find Content-Length [10:36:25]Host: 172.17.37.4:8080 [10:36:25]Content-Length: 803 [10:36:25]Content-Type: application/json [10:36:25] [10:36:25]POST finish read [10:36:25]Found Content-Length = 803 [10:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 29.680, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:25]execute_script... [10:36: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)717788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 29.680, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:25]POST & json_proto [10:36:25]process_json_proto [10:36:25]json parsed OK: [10:36:25]protocol is kg_v1.0 [10:36:25]action value=close_receipt [10:36:25]process_action close_receipt [10:36:25]cmd_close_receipt [10:36:25]MH_GetDate [10:36:25]Write to MH i2c: F0 00 00 79 1A 82 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: F0 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: F0 09 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: F0 09 00 79 1A 00 2E 53 44 67 B8 5A 43 67 73 [10:36:25]GetLastDocTimeStamp 1732530698 [10:36:25]current date 1732530990 [10:36:25]FM_GetShiftState [10:36:25]SAM_PROTO_GetShiftState [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 13 01 00 [10:36:25]Write to MH i2c: E2 08 00 7A 1A 80 13 01 00 00 00 00 00 11 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 0E 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 0E 00 7A 1A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 90 [10:36:25]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:36:25]wFMCommunicate OK [10:36:25]SAM_PROTO_GetShiftState done [10:36:25]FM_GetShiftState done [10:36:25]opened in 1732493066 [10:36:25]opened+sec_in_day 1732579466 [10:36:25]quantity*price = 200043 [10:36:25]sum+1 = 200044 [10:36:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 37 25.11.2024 10:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 122996 ФПД: 103278397195772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T103630&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122996&fm=103278397195772&tin=02508201610067®Number=0000000000092681&sum=200043 [10:36:26]StoreToDocumentArchive [10:36:26]shift 556 fd 122996 [10:36:26]save to /storage/0556/doc_00122996 [10:36:26]save last doc name /storage/0556/doc_00122996 to /storage/kkm_last_doc_name [10:36:26]save OK [10:36:26]Clear old archive folders... [10:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:26]tlvbuf is B6E70300 [10:36:26]SAM_PROTO_ClearQueue [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 09 00 00 [10:36:26]Write to MH i2c: E2 08 00 87 1A 80 09 00 00 00 00 00 00 13 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 87 1A 00 90 00 15 [10:36:26]RAPDU: 90 00 [10:36:26]wFMCommunicate OK [10:36:26]SAM_PROTO_ClearQueue done [10:36:26]KKMCreateOFDPacket [10:36:26]OFDProtocolAddRootSTLVToBuf [10:36:26]FM_MakeSignedData [10:36:26]FM_MakeSignedData [10:36:26]SAM_PROTO_SignData [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 0D 01 02 [10:36:26]Write to MH i2c: E2 08 00 88 1A 80 0D 01 02 00 00 00 00 1B [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 88 1A 00 90 00 16 [10:36:26]RAPDU: 90 00 [10:36:26]wFMCommunicate OK [10:36:26]wFMCommunicate request_size=255 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2E 53 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E0 01 00 35 04 06 00 5D [10:36:26]Write to MH i2c: E2 02 01 89 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 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2E 53 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E0 01 00 35 04 06 00 5D 00 00 D9 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 03 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 03 00 89 1A 00 90 00 17 [10:36:27]RAPDU: 90 00 [10:36:27]wFMCommunicate OK [10:36:27]wFMCommunicate request_size=10 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 0D 02 02 05 EE 60 2D 85 FC [10:36:27]Write to MH i2c: E2 0D 00 8A 1A 80 0D 02 02 05 00 EE 60 2D 85 FC 00 00 24 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 03 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 03 00 8A 1A 00 90 00 18 [10:36:27]RAPDU: 90 00 [10:36:27]wFMCommunicate OK [10:36:27]wFMCommunicate request_size=4 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 0D 03 02 [10:36:27]Write to MH i2c: E2 08 00 8B 1A 80 0D 03 02 00 00 00 00 20 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 0B 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 0B 00 8B 1A 00 79 59 B1 46 82 B2 47 16 90 00 7B [10:36:27]RAPDU: 79 59 B1 46 82 B2 47 16 90 00 [10:36:27]wFMCommunicate OK [10:36:27]SAM_PROTO_SignData done [10:36:27]FM_MakeSignedData done [10:36:27]CreateOFDProtocolMessage [10:36:27]wFMCommunicate request_size=4 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 11 00 00 [10:36:27]Write to MH i2c: E2 08 00 8C 1A 80 11 00 00 00 00 00 00 20 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 17 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 17 00 8C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 77 [10:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:36:27]wFMCommunicate OK [10:36:27]CreateOFDProtocolMessage done [10:36:27]OFDSenderStorePacket 122996 [10:36:27]StoreOFDPacket docnum=122996 [10:36:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DA 31 07 01 E6 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 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2E 53 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E0 01 00 35 04 06 00 5D EE 60 2D 85 FC 79 59 B1 46 82 B2 47 16 [10:36:27]CheckFolder [10:36:27]dirname=/storage/ofd_packets [10:36:27]CheckFolder done [10:36:27]ProducePacketName [10:36:27]name=ofd_packets/00122996 [10:36:27]NVStorageSaveData ofd_packets/00122996 [10:36:27]File name is /storage/ofd_packets/00122996 [10:36:27]Write 301 bytes [10:36:27]NVStorageSaveData done [10:36:27]OFDSenderStorePacket done [10:36:27]KKMCreateOFDPacket done [10:36:27]NVStorageSaveData kkm_last_timestamp [10:36:27]File name is /storage/kkm_last_timestamp [10:36:27]Write 4 bytes [10:36:27]NVStorageSaveData done [10:36:27]ExternCall_PrintAddStr [10:36:27]wPrintStart [10:36:27]Write to MH i2c: 01 00 00 8D 1A A7 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 07 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 07 00 8D 1A 00 00 00 00 00 FF 0F BC [10:36:27]RasterBufferAndPrint [10:36:27]line Счет N : (1)717788 [10:36:27]line ИНН: 02508201610067 [10:36:27]line Контрольно-Кассовый Чек [10:36:27]line ПРОДАЖА [10:36:27]line ТРК (МРК, ГНК) : 22 [10:36:27]line Товар: 2710124130 [10:36:27]line Аи-92-К-4 [10:36:27]line 29.680 * 67.40 [10:36:27]line = 2000.43 [10:36:27]line НДС 12% НСП 1% [10:36:27]line > о реализуемом товаре [10:36:27]line ИТОГО: 2000.43 [10:36:27]line НСП 1% : 17.70 [10:36:27]line НДС 12% : 212.43 [10:36:27]line Наличными: 0.00 [10:36:27]line Безнал.: 2000.43 [10:36:27]line Место: АЗС № 64 "Партнер Нефть" [10:36:27]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:36:27]line СНО: Общий режим [10:36:27]line Чек 37 25.11.2024 10:36 [10:36:27]line Смена: 556 ФФД: 1.0 [10:36:27]line ЗНМ: 0300000033 [10:36:27]line РНМ: 0000000000092681 [10:36:27]line Версия ККМ: 001 [10:36:27]line Платежная система: O! деньги [10:36:27]line ФМ: 0000000000874881 [10:36:27]line ФД: 122996 [10:36:27]line ФПД: 103278397195772 [10:36:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T103630&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122996&fm=103278397195772&tin=02508201610067®Number=0000000000092681&sum=200043 [10:36:27]written 0, free lines is 4095 [10:36:27]OFD Sender: Processing packet 122996 [packets to send 7, broken 6] [10:36:27]ProducePacketName [10:36:27]name=ofd_packets/00122996 [10:36:27]OFD Sender: To server: pG, [10:36:27]CommunicateWithHost lk.salyk.kg:30040 [10:36:27]ConnectInit lk.salyk.kg [10:36:27]Connected sock=10 [10:36:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DA 31 07 01 E6 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 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2E 53 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E0 01 00 35 04 06 00 5D EE 60 2D 85 FC 79 59 B1 46 82 B2 47 16 [10:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 79 04 47 00 8E 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E0 01 00 F4 03 04 00 F4 FE 43 67 B6 04 01 00 00 99 B7 29 42 77 CB 09 04 [10:36:27]CommunicateWithHost err = 0 [10:36:28]CheckOFDResponse [10:36:28]1017 (14) - 77093643461234 [10:36:28]1041 (16) - 0000000000874881 [10:36:28]1040 (4) - 122996 [10:36:28]1012 (4) - 25.11.2024 04:37 [10:36:28]1206 (1) - 0 [10:36:28]OFD Sender: Remove packet 122996 [10:36:28]ProducePacketName [10:36:28]name=ofd_packets/00122996 [10:36:28]NVStorageDeleteData [10:36:28]Write to MH i2c: 01 00 00 B7 1A D1 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: 01 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: 01 07 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: 01 07 00 B7 1A 00 00 00 00 00 5A 0C 3E [10:36:28]RasterBufferAndPrint [10:36:28]line [10:36:28]line [10:36:28]line [10:36:28]line [10:36:28]line [10:36:28]written 0, free lines is 3167 [10:36:28]MH_Cut [10:36:28]Write to MH i2c: D1 01 00 BE 1A 01 AA [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: D1 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: D1 01 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: D1 01 00 BE 1A 00 A9 [10:36:28]Write to MH i2c: 01 00 00 BF 1A D9 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]OFD Sender: No OFD packet to send [10:36:29]*** Cut start [10:36:29]*** Partial cut [10:36:29]*** CUTSNS_PIN = 1 [10:36:29]*** CUTSNS_PIN = 0 [10:36:29]*** Brake cut motor [10:36:30]Read from MH i2c: 01 [10:36:30]MH_I2C_Read... [10:36:30]*** Stop cut motor [10:36:30]*** Cut end [10:36:30]Read from MH i2c: 01 07 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: 01 07 00 BF 1A 00 00 00 00 00 FF 0F EE [10:36:30]process_action close_receipt done [10:36:30]requested_data is exist [10:36:30]produce_requested_data [10:36:30]requested_item fm.sn is exist - process it [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 11 00 00 [10:36:30]Write to MH i2c: E2 08 00 C0 1A 80 11 00 00 00 00 00 00 54 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:30]Read from MH i2c: E2 17 00 [10:36:30]MH_I2C_Read... [10:36:30]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 34 38 38 31 90 00 AB [10:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:36:30]wFMCommunicate OK [10:36:30]requested_item fd.num is exist - process it [10:36:30]SAM_PROTO_GetFieldsCounters [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 13 00 00 [10:36:30]Write to MH i2c: E2 08 00 C1 1A 80 13 00 00 00 00 00 00 57 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 62 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 62 00 C1 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 74 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [10:36:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 74 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:30]wFMCommunicate OK [10:36:30]SAM_PROTO_GetFieldsCounters done [10:36:30]requested_item shift.num is exist - process it [10:36:30]requested_item shift.opened is exist - process it [10:36:30]req_shift_opened [10:36:30]FM_GetShiftState [10:36:30]SAM_PROTO_GetShiftState [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 13 01 00 [10:36:30]Write to MH i2c: E2 08 00 C2 1A 80 13 01 00 00 00 00 00 59 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 0E 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 0E 00 C2 1A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D8 [10:36:30]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:36:30]wFMCommunicate OK [10:36:30]SAM_PROTO_GetShiftState done [10:36:30]FM_GetShiftState done [10:36:30]req_shift_opened done [10:36:30]requested_item shift.open_date is exist - process it [10:36:30]req_shift_open_date [10:36:30]req_shift_open_date done [10:36:30]produce_requested_data done [10:36:30]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122996,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:36:30]process_action_free close_receipt [10:36:30]json_value_free [10:36:30]json_value_free done [10:36:30]process_json_proto returns [10:36:30]Send response to host [10:36:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122996,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:36:30]free response buf [10:36:30]execute_script done [10:36:30]execute_script returns [10:36:30]free content buf [10:36:30]Sock 9.Close socket [10:36:30]Sock 9.Thread stoped [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:14]accept exits with 7 [10:37:14]New connection [10:37:14]New thread 3066580324 created [10:37:14]Thread 3066723684 joined [10:37:14]Waiting for new connection... [10:37:14] Sock 7.Parse request [10:37:14]Sock 7.Check first char [10:37:14]Sock 7.First char is OK [10:37:14]request: POST /json_proto HTTP/1.0 [10:37:14]Method: POST [10:37:14]URL: /json_proto [10:37:14]Method is POST - this is cgi request [10:37:14]url: /json_proto [10:37:14]query_string will be loaded in cgi processing [10:37:14]execute_cgi json_proto POST (null) [10:37:14]execute_cgi path=json_proto method=POST [10:37:14]POST find Content-Length [10:37:14]Host: 172.17.37.4:8080 [10:37:14]Content-Length: 678 [10:37:14]Content-Type: application/json [10:37:14] [10:37:14]POST finish read [10:37:14]Found Content-Length = 678 [10:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "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" ] } } [10:37:14]execute_script... [10:37: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)717789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "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" ] } } [10:37:14]POST & json_proto [10:37:14]process_json_proto [10:37:14]json parsed OK: [10:37:14]protocol is kg_v1.0 [10:37:14]action value=close_receipt [10:37:14]process_action close_receipt [10:37:14]cmd_close_receipt [10:37:14]MH_GetDate [10:37:14]Write to MH i2c: F0 00 00 C3 1A CC [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: F0 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: F0 09 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: F0 09 00 C3 1A 00 5F 53 44 67 B8 5A 43 67 EE [10:37:14]GetLastDocTimeStamp 1732530990 [10:37:14]current date 1732531039 [10:37:14]FM_GetShiftState [10:37:14]SAM_PROTO_GetShiftState [10:37:14]wFMCommunicate request_size=4 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 13 01 00 [10:37:14]Write to MH i2c: E2 08 00 C4 1A 80 13 01 00 00 00 00 00 5B [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0E 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0E 00 C4 1A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 DA [10:37:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:37:14]wFMCommunicate OK [10:37:14]SAM_PROTO_GetShiftState done [10:37:14]FM_GetShiftState done [10:37:14]opened in 1732493066 [10:37:14]opened+sec_in_day 1732579466 [10:37:14]quantity*price = 80003 [10:37:14]sum+1 = 80005 [10:37:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 38 25.11.2024 10:37 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122997 ФПД: 168333916524451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T103719&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122997&fm=168333916524451&tin=02508201610067®Number=0000000000092681&sum=80000 [10:37:15]StoreToDocumentArchive [10:37:15]shift 556 fd 122997 [10:37:15]save to /storage/0556/doc_00122997 [10:37:15]save last doc name /storage/0556/doc_00122997 to /storage/kkm_last_doc_name [10:37:15]save OK [10:37:15]Clear old archive folders... [10:37:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:15]tlvbuf is 02090800 [10:37:15]SAM_PROTO_ClearQueue [10:37:15]wFMCommunicate request_size=4 [10:37:15]MH_SAM_APDU [10:37:15]CAPDU: 80 09 00 00 [10:37:15]Write to MH i2c: E2 08 00 D1 1A 80 09 00 00 00 00 00 00 5D [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:15]Read from MH i2c: E2 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: E2 03 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: E2 03 00 D1 1A 00 90 00 5F [10:37:15]RAPDU: 90 00 [10:37:15]wFMCommunicate OK [10:37:15]SAM_PROTO_ClearQueue done [10:37:15]KKMCreateOFDPacket [10:37:15]OFDProtocolAddRootSTLVToBuf [10:37:15]FM_MakeSignedData [10:37:15]FM_MakeSignedData [10:37:15]SAM_PROTO_SignData [10:37:15]wFMCommunicate request_size=4 [10:37:15]MH_SAM_APDU [10:37:15]CAPDU: 80 0D 01 02 [10:37:15]Write to MH i2c: E2 08 00 D2 1A 80 0D 01 02 00 00 00 00 65 [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:15]Read from MH i2c: E2 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: E2 03 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: E2 03 00 D2 1A 00 90 00 60 [10:37:15]RAPDU: 90 00 [10:37:15]wFMCommunicate OK [10:37:15]wFMCommunicate request_size=255 [10:37:15]MH_SAM_APDU [10:37:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5F 53 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E0 01 00 35 04 06 00 99 [10:37:15]Write to MH i2c: E2 02 01 D3 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 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5F 53 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E0 01 00 35 04 06 00 99 00 00 53 [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 D3 1A 00 90 00 61 [10:37:16]RAPDU: 90 00 [10:37:16]wFMCommunicate OK [10:37:16]wFMCommunicate request_size=10 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 0D 02 02 05 19 4B 4C 4F A3 [10:37:16]Write to MH i2c: E2 0D 00 D4 1A 80 0D 02 02 05 00 19 4B 4C 4F A3 00 00 14 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 D4 1A 00 90 00 62 [10:37:16]RAPDU: 90 00 [10:37:16]wFMCommunicate OK [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 0D 03 02 [10:37:16]Write to MH i2c: E2 08 00 D5 1A 80 0D 03 02 00 00 00 00 6A [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0B 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0B 00 D5 1A 00 65 79 FF 4F 81 F3 8B 0A 90 00 A0 [10:37:16]RAPDU: 65 79 FF 4F 81 F3 8B 0A 90 00 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_SignData done [10:37:16]FM_MakeSignedData done [10:37:16]CreateOFDProtocolMessage [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 11 00 00 [10:37:16]Write to MH i2c: E2 08 00 D6 1A 80 11 00 00 00 00 00 00 6A [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 D6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C1 [10:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:37:16]wFMCommunicate OK [10:37:16]CreateOFDProtocolMessage done [10:37:16]OFDSenderStorePacket 122997 [10:37:16]StoreOFDPacket docnum=122997 [10:37:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 EF EC 07 01 9C 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 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5F 53 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E0 01 00 35 04 06 00 99 19 4B 4C 4F A3 65 79 FF 4F 81 F3 8B 0A [10:37:16]CheckFolder [10:37:16]dirname=/storage/ofd_packets [10:37:16]CheckFolder done [10:37:16]ProducePacketName [10:37:16]name=ofd_packets/00122997 [10:37:16]NVStorageSaveData ofd_packets/00122997 [10:37:16]File name is /storage/ofd_packets/00122997 [10:37:16]Write 301 bytes [10:37:16]NVStorageSaveData done [10:37:16]OFDSenderStorePacket done [10:37:16]KKMCreateOFDPacket done [10:37:16]NVStorageSaveData kkm_last_timestamp [10:37:16]File name is /storage/kkm_last_timestamp [10:37:16]Write 4 bytes [10:37:16]NVStorageSaveData done [10:37:16]ExternCall_PrintAddStr [10:37:16]wPrintStart [10:37:16]Write to MH i2c: 01 00 00 D7 1A F1 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 07 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 07 00 D7 1A 00 00 00 00 00 FF 0F 06 [10:37:16]RasterBufferAndPrint [10:37:16]line Счет N : (1)717789 [10:37:16]line ИНН: 02508201610067 [10:37:16]line Контрольно-Кассовый Чек [10:37:16]line ПРОДАЖА [10:37:16]line ТРК (МРК, ГНК) : 42 [10:37:16]line Товар: 2710124130 [10:37:16]line Аи-92-К-4 [10:37:16]line 11.870 * 67.40 [10:37:16]line = 800.04 [10:37:16]line НДС 12% НСП 1% [10:37:16]line > о реализуемом товаре [10:37:16]line ОКРУГЛЕНИЕ: -0.04 [10:37:16]line ИТОГО: 800.00 [10:37:16]line Внесено: 800.00 [10:37:16]line СДАЧА: 0.00 [10:37:16]line НСП 1% : 7.08 [10:37:16]line НДС 12% : 84.96 [10:37:16]line Наличными: 800.00 [10:37:16]line Безнал.: 0.00 [10:37:16]line Место: АЗС № 64 "Партнер Нефть" [10:37:16]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:37:16]line СНО: Общий режим [10:37:16]line Чек 38 25.11.2024 10:37 [10:37:16]line Смена: 556 ФФД: 1.0 [10:37:16]line ЗНМ: 0300000033 [10:37:16]line РНМ: 0000000000092681 [10:37:16]line Версия ККМ: 001 [10:37:16]line ФМ: 0000000000874881 [10:37:16]line ФД: 122997 [10:37:16]line ФПД: 168333916524451 [10:37:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T103719&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122997&fm=168333916524451&tin=02508201610067®Number=0000000000092681&sum=80000 [10:37:16]OFD Sender: Processing packet 122997 [packets to send 7, broken 6] [10:37:16]ProducePacketName [10:37:16]name=ofd_packets/00122997 [10:37:16]OFD Sender: To server: pG, [10:37:16]CommunicateWithHost lk.salyk.kg:30040 [10:37:16]ConnectInit lk.salyk.kg [10:37:16]written 0, free lines is 4095 [10:37:16]Connected sock=11 [10:37:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 EF EC 07 01 9C 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 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5F 53 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E0 01 00 35 04 06 00 99 19 4B 4C 4F A3 65 79 FF 4F 81 F3 8B 0A [10:37:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 54 D6 47 00 A0 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E0 01 00 F4 03 04 00 25 FF 43 67 B6 04 01 00 00 89 1B 19 92 23 04 BB 08 [10:37:16]CommunicateWithHost err = 0 [10:37:16]CheckOFDResponse [10:37:16]1017 (14) - 77093643461234 [10:37:16]1041 (16) - 0000000000874881 [10:37:16]1040 (4) - 122997 [10:37:16]1012 (4) - 25.11.2024 04:37 [10:37:16]1206 (1) - 0 [10:37:16]OFD Sender: Remove packet 122997 [10:37:16]ProducePacketName [10:37:16]name=ofd_packets/00122997 [10:37:16]NVStorageDeleteData [10:37:17]Write to MH i2c: 01 00 00 02 1B 1D [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 07 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 07 00 02 1B 00 00 00 00 00 44 0C 74 [10:37:17]RasterBufferAndPrint [10:37:17]line [10:37:17]line [10:37:17]line [10:37:17]line [10:37:17]line [10:37:17]written 0, free lines is 3144 [10:37:17]MH_Cut [10:37:17]Write to MH i2c: D1 01 00 09 1B 01 F6 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: D1 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: D1 01 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: D1 01 00 09 1B 00 F5 [10:37:17]Write to MH i2c: 01 00 00 0A 1B 25 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]OFD Sender: No OFD packet to send [10:37:18]*** Cut start [10:37:18]*** Partial cut [10:37:18]*** CUTSNS_PIN = 1 [10:37:18]*** CUTSNS_PIN = 0 [10:37:18]*** Brake cut motor [10:37:19]Read from MH i2c: 01 [10:37:19]MH_I2C_Read... [10:37:19]*** Stop cut motor [10:37:19]*** Cut end [10:37:19]Read from MH i2c: 01 07 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: 01 07 00 0A 1B 00 00 00 00 00 FF 0F 3A [10:37:19]process_action close_receipt done [10:37:19]requested_data is exist [10:37:19]produce_requested_data [10:37:19]requested_item fm.sn is exist - process it [10:37:19]wFMCommunicate request_size=4 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 11 00 00 [10:37:19]Write to MH i2c: E2 08 00 0B 1B 80 11 00 00 00 00 00 00 A0 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 17 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 17 00 0B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F7 [10:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:37:19]wFMCommunicate OK [10:37:19]requested_item fd.num is exist - process it [10:37:19]SAM_PROTO_GetFieldsCounters [10:37:19]wFMCommunicate request_size=4 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 13 00 00 [10:37:19]Write to MH i2c: E2 08 00 0C 1B 80 13 00 00 00 00 00 00 A3 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 62 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 62 00 0C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 75 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:37:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 75 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:19]wFMCommunicate OK [10:37:19]SAM_PROTO_GetFieldsCounters done [10:37:19]requested_item shift.num is exist - process it [10:37:19]requested_item shift.opened is exist - process it [10:37:19]req_shift_opened [10:37:19]FM_GetShiftState [10:37:19]SAM_PROTO_GetShiftState [10:37:19]wFMCommunicate request_size=4 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 13 01 00 [10:37:19]Write to MH i2c: E2 08 00 0D 1B 80 13 01 00 00 00 00 00 A5 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 0E 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 0E 00 0D 1B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 24 [10:37:19]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:37:19]wFMCommunicate OK [10:37:19]SAM_PROTO_GetShiftState done [10:37:19]FM_GetShiftState done [10:37:19]req_shift_opened done [10:37:19]requested_item shift.open_date is exist - process it [10:37:19]req_shift_open_date [10:37:19]req_shift_open_date done [10:37:19]produce_requested_data done [10:37:19]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122997,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:37:19]process_action_free close_receipt [10:37:19]json_value_free [10:37:19]json_value_free done [10:37:19]process_json_proto returns [10:37:19]Send response to host [10:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122997,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:37:19]free response buf [10:37:19]execute_script done [10:37:19]execute_script returns [10:37:19]free content buf [10:37:19]Sock 7.Close socket [10:37:19]Sock 7.Thread stoped [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:02]accept exits with 9 [10:41:02]New connection [10:41:02]New thread 3066723684 created [10:41:02]Thread 3066580324 joined [10:41:02]Waiting for new connection... [10:41:02] Sock 9.Parse request [10:41:02]Sock 9.Check first char [10:41:02]Sock 9.First char is OK [10:41:02]request: POST /json_proto HTTP/1.0 [10:41:02]Method: POST [10:41:02]URL: /json_proto [10:41:02]Method is POST - this is cgi request [10:41:02]url: /json_proto [10:41:02]query_string will be loaded in cgi processing [10:41:02]execute_cgi json_proto POST (null) [10:41:02]execute_cgi path=json_proto method=POST [10:41:02]POST find Content-Length [10:41:02]Host: 172.17.37.4:8080 [10:41:02]Content-Length: 677 [10:41:02]Content-Type: application/json [10:41:02] [10:41:02]POST finish read [10:41:02]Found Content-Length = 677 [10:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:02]execute_script... [10:41:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:02]POST & json_proto [10:41:02]process_json_proto [10:41:02]json parsed OK: [10:41:02]protocol is kg_v1.0 [10:41:02]action value=close_receipt [10:41:02]process_action close_receipt [10:41:02]cmd_close_receipt [10:41:02]MH_GetDate [10:41:02]Write to MH i2c: F0 00 00 0E 1B 18 [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: F0 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: F0 09 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: F0 09 00 0E 1B 00 43 54 44 67 B8 5A 43 67 1F [10:41:02]GetLastDocTimeStamp 1732531039 [10:41:02]current date 1732531267 [10:41:02]FM_GetShiftState [10:41:02]SAM_PROTO_GetShiftState [10:41:02]wFMCommunicate request_size=4 [10:41:02]MH_SAM_APDU [10:41:02]CAPDU: 80 13 01 00 [10:41:02]Write to MH i2c: E2 08 00 0F 1B 80 13 01 00 00 00 00 00 A7 [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:02]Read from MH i2c: E2 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: E2 0E 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: E2 0E 00 0F 1B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 26 [10:41:02]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:41:02]wFMCommunicate OK [10:41:02]SAM_PROTO_GetShiftState done [10:41:02]FM_GetShiftState done [10:41:02]opened in 1732493066 [10:41:02]opened+sec_in_day 1732579466 [10:41:02]quantity*price = 50010 [10:41:02]sum+1 = 50012 [10:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 39 25.11.2024 10:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 122998 ФПД: 123940894849348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104107&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122998&fm=123940894849348&tin=02508201610067®Number=0000000000092681&sum=50000 [10:41:04]StoreToDocumentArchive [10:41:04]shift 556 fd 122998 [10:41:04]save to /storage/0556/doc_00122998 [10:41:04]save last doc name /storage/0556/doc_00122998 to /storage/kkm_last_doc_name [10:41:04]save OK [10:41:04]Clear old archive folders... [10:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:04]tlvbuf is 02092E40 [10:41:04]SAM_PROTO_ClearQueue [10:41:04]wFMCommunicate request_size=4 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 09 00 00 [10:41:04]Write to MH i2c: E2 08 00 1C 1B 80 09 00 00 00 00 00 00 A9 [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 1C 1B 00 90 00 AB [10:41:04]RAPDU: 90 00 [10:41:04]wFMCommunicate OK [10:41:04]SAM_PROTO_ClearQueue done [10:41:04]KKMCreateOFDPacket [10:41:04]OFDProtocolAddRootSTLVToBuf [10:41:04]FM_MakeSignedData [10:41:04]FM_MakeSignedData [10:41:04]SAM_PROTO_SignData [10:41:04]wFMCommunicate request_size=4 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 0D 01 02 [10:41:04]Write to MH i2c: E2 08 00 1D 1B 80 0D 01 02 00 00 00 00 B1 [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 1D 1B 00 90 00 AC [10:41:04]RAPDU: 90 00 [10:41:04]wFMCommunicate OK [10:41:04]wFMCommunicate request_size=255 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 43 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E0 01 00 35 04 06 00 70 [10:41:04]Write to MH i2c: E2 02 01 1E 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 43 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E0 01 00 35 04 06 00 70 00 00 76 [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 1E 1B 00 90 00 AD [10:41:04]RAPDU: 90 00 [10:41:04]wFMCommunicate OK [10:41:04]wFMCommunicate request_size=10 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 0D 02 02 05 B9 3D 02 B9 44 [10:41:04]Write to MH i2c: E2 0D 00 1F 1B 80 0D 02 02 05 00 B9 3D 02 B9 44 00 00 B3 [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 1F 1B 00 90 00 AE [10:41:04]RAPDU: 90 00 [10:41:04]wFMCommunicate OK [10:41:04]wFMCommunicate request_size=4 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 0D 03 02 [10:41:04]Write to MH i2c: E2 08 00 20 1B 80 0D 03 02 00 00 00 00 B6 [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 0B 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 0B 00 20 1B 00 50 EA 56 B6 5D F7 15 74 90 00 DA [10:41:04]RAPDU: 50 EA 56 B6 5D F7 15 74 90 00 [10:41:04]wFMCommunicate OK [10:41:04]SAM_PROTO_SignData done [10:41:04]FM_MakeSignedData done [10:41:04]CreateOFDProtocolMessage [10:41:04]wFMCommunicate request_size=4 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 11 00 00 [10:41:04]Write to MH i2c: E2 08 00 21 1B 80 11 00 00 00 00 00 00 B6 [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 17 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 17 00 21 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0D [10:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:41:04]wFMCommunicate OK [10:41:04]CreateOFDProtocolMessage done [10:41:04]OFDSenderStorePacket 122998 [10:41:04]StoreOFDPacket docnum=122998 [10:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E8 C3 07 01 B8 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 43 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E0 01 00 35 04 06 00 70 B9 3D 02 B9 44 50 EA 56 B6 5D F7 15 74 [10:41:04]CheckFolder [10:41:04]dirname=/storage/ofd_packets [10:41:04]CheckFolder done [10:41:04]ProducePacketName [10:41:04]name=ofd_packets/00122998 [10:41:04]NVStorageSaveData ofd_packets/00122998 [10:41:04]File name is /storage/ofd_packets/00122998 [10:41:04]Write 301 bytes [10:41:04]NVStorageSaveData done [10:41:04]OFDSenderStorePacket done [10:41:04]KKMCreateOFDPacket done [10:41:04]NVStorageSaveData kkm_last_timestamp [10:41:04]File name is /storage/kkm_last_timestamp [10:41:04]Write 4 bytes [10:41:04]NVStorageSaveData done [10:41:04]ExternCall_PrintAddStr [10:41:04]wPrintStart [10:41:04]Write to MH i2c: 01 00 00 22 1B 3D [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: 01 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: 01 07 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: 01 07 00 22 1B 00 00 00 00 00 FF 0F 52 [10:41:04]RasterBufferAndPrint [10:41:04]line Счет N : (1)717791 [10:41:04]line ИНН: 02508201610067 [10:41:04]line Контрольно-Кассовый Чек [10:41:04]line ПРОДАЖА [10:41:04]line ТРК (МРК, ГНК) : 12 [10:41:04]line Товар: 2710124130 [10:41:04]line Аи-92-К-4 [10:41:04]line 7.420 * 67.40 [10:41:04]line = 500.11 [10:41:04]line НДС 12% НСП 1% [10:41:04]line > о реализуемом товаре [10:41:04]line ОКРУГЛЕНИЕ: -0.11 [10:41:04]line ИТОГО: 500.00 [10:41:04]line Внесено: 500.00 [10:41:04]line СДАЧА: 0.00 [10:41:04]line НСП 1% : 4.43 [10:41:04]line НДС 12% : 53.11 [10:41:04]line Наличными: 500.00 [10:41:04]line Безнал.: 0.00 [10:41:04]line Место: АЗС № 64 "Партнер Нефть" [10:41:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:41:04]line СНО: Общий режим [10:41:04]line Чек 39 25.11.2024 10:41 [10:41:04]line Смена: 556 ФФД: 1.0 [10:41:04]line ЗНМ: 0300000033 [10:41:04]line РНМ: 0000000000092681 [10:41:04]line Версия ККМ: 001 [10:41:04]line ФМ: 0000000000874881 [10:41:04]line ФД: 122998 [10:41:04]line ФПД: 123940894849348 [10:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104107&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122998&fm=123940894849348&tin=02508201610067®Number=0000000000092681&sum=50000 [10:41:04]OFD Sender: Processing packet 122998 [packets to send 7, broken 6] [10:41:04]ProducePacketName [10:41:04]name=ofd_packets/00122998 [10:41:04]OFD Sender: To server: pG, [10:41:04]CommunicateWithHost lk.salyk.kg:30040 [10:41:04]ConnectInit lk.salyk.kg [10:41:04]written 0, free lines is 4095 [10:41:04]Connected sock=7 [10:41:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E8 C3 07 01 B8 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 43 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E0 01 00 35 04 06 00 70 B9 3D 02 B9 44 50 EA 56 B6 5D F7 15 74 [10:41:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C9 74 47 00 60 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 34 38 38 31 10 04 04 00 76 E0 01 00 F4 03 04 00 09 00 44 67 B6 04 01 00 00 82 E9 7D A2 E4 26 08 71 [10:41:05]CommunicateWithHost err = 0 [10:41:05]CheckOFDResponse [10:41:05]1017 (14) - 77093643461234 [10:41:05]1041 (16) - 0000000000874881 [10:41:05]1040 (4) - 122998 [10:41:05]1012 (4) - 25.11.2024 04:41 [10:41:05]1206 (1) - 0 [10:41:05]OFD Sender: Remove packet 122998 [10:41:05]ProducePacketName [10:41:05]name=ofd_packets/00122998 [10:41:05]NVStorageDeleteData [10:41:05]Write to MH i2c: 01 00 00 4D 1B 68 [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: 01 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: 01 07 00 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: 01 07 00 4D 1B 00 00 00 00 00 46 0C C1 [10:41:05]RasterBufferAndPrint [10:41:05]line [10:41:05]line [10:41:05]line [10:41:05]line [10:41:05]line [10:41:05]written 0, free lines is 3147 [10:41:05]MH_Cut [10:41:05]Write to MH i2c: D1 01 00 54 1B 01 41 [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: D1 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: D1 01 00 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: D1 01 00 54 1B 00 40 [10:41:05]Write to MH i2c: 01 00 00 55 1B 70 [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]OFD Sender: No OFD packet to send [10:41:06]*** Cut start [10:41:06]*** Partial cut [10:41:06]*** CUTSNS_PIN = 1 [10:41:06]*** CUTSNS_PIN = 0 [10:41:06]*** Brake cut motor [10:41:07]Read from MH i2c: 01 [10:41:07]MH_I2C_Read... [10:41:07]*** Stop cut motor [10:41:07]*** Cut end [10:41:07]Read from MH i2c: 01 07 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: 01 07 00 55 1B 00 00 00 00 00 FF 0F 85 [10:41:07]process_action close_receipt done [10:41:07]requested_data is exist [10:41:07]produce_requested_data [10:41:07]requested_item fm.sn is exist - process it [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 11 00 00 [10:41:07]Write to MH i2c: E2 08 00 56 1B 80 11 00 00 00 00 00 00 EB [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 17 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 17 00 56 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 42 [10:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:41:07]wFMCommunicate OK [10:41:07]requested_item fd.num is exist - process it [10:41:07]SAM_PROTO_GetFieldsCounters [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 13 00 00 [10:41:07]Write to MH i2c: E2 08 00 57 1B 80 13 00 00 00 00 00 00 EE [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 62 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 62 00 57 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 76 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [10:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 76 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:07]wFMCommunicate OK [10:41:07]SAM_PROTO_GetFieldsCounters done [10:41:07]requested_item shift.num is exist - process it [10:41:07]requested_item shift.opened is exist - process it [10:41:07]req_shift_opened [10:41:07]FM_GetShiftState [10:41:07]SAM_PROTO_GetShiftState [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 13 01 00 [10:41:07]Write to MH i2c: E2 08 00 58 1B 80 13 01 00 00 00 00 00 F0 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 0E 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 0E 00 58 1B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 6F [10:41:07]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:41:07]wFMCommunicate OK [10:41:07]SAM_PROTO_GetShiftState done [10:41:07]FM_GetShiftState done [10:41:07]req_shift_opened done [10:41:07]requested_item shift.open_date is exist - process it [10:41:07]req_shift_open_date [10:41:07]req_shift_open_date done [10:41:07]produce_requested_data done [10:41:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122998,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:41:07]process_action_free close_receipt [10:41:07]json_value_free [10:41:07]json_value_free done [10:41:07]process_json_proto returns [10:41:07]Send response to host [10:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122998,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:41:07]free response buf [10:41:07]execute_script done [10:41:07]execute_script returns [10:41:07]free content buf [10:41:07]Sock 9.Close socket [10:41:07]Sock 9.Thread stoped [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:27]accept exits with 10 [10:41:27]New connection [10:41:27]New thread 3066580324 created [10:41:27]Thread 3066723684 joined [10:41:27]Waiting for new connection... [10:41:27] Sock 10.Parse request [10:41:27]Sock 10.Check first char [10:41:27]Sock 10.First char is OK [10:41:27]request: POST /json_proto HTTP/1.0 [10:41:27]Method: POST [10:41:27]URL: /json_proto [10:41:27]Method is POST - this is cgi request [10:41:27]url: /json_proto [10:41:27]query_string will be loaded in cgi processing [10:41:27]execute_cgi json_proto POST (null) [10:41:27]execute_cgi path=json_proto method=POST [10:41:27]POST find Content-Length [10:41:27]Host: 172.17.37.4:8080 [10:41:27]Content-Length: 792 [10:41:27]Content-Type: application/json [10:41:27] [10:41:27]POST finish read [10:41:27]Found Content-Length = 792 [10:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32464", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:27]execute_script... [10:41:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32464", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:27]POST & json_proto [10:41:27]process_json_proto [10:41:27]json parsed OK: [10:41:27]protocol is kg_v1.0 [10:41:27]action value=close_receipt [10:41:27]process_action close_receipt [10:41:27]cmd_close_receipt [10:41:27]MH_GetDate [10:41:27]Write to MH i2c: F0 00 00 59 1B 63 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: F0 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: F0 09 00 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: F0 09 00 59 1B 00 5B 54 44 67 B8 5A 43 67 82 [10:41:27]GetLastDocTimeStamp 1732531267 [10:41:27]current date 1732531291 [10:41:27]FM_GetShiftState [10:41:27]SAM_PROTO_GetShiftState [10:41:27]wFMCommunicate request_size=4 [10:41:27]MH_SAM_APDU [10:41:27]CAPDU: 80 13 01 00 [10:41:27]Write to MH i2c: E2 08 00 5A 1B 80 13 01 00 00 00 00 00 F2 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:27]Read from MH i2c: E2 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: E2 0E 00 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: E2 0E 00 5A 1B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 71 [10:41:27]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:41:27]wFMCommunicate OK [10:41:27]SAM_PROTO_GetShiftState done [10:41:27]FM_GetShiftState done [10:41:27]opened in 1732493066 [10:41:27]opened+sec_in_day 1732579466 [10:41:27]quantity*price = 0 [10:41:27]sum+1 = 1 [10:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 40 25.11.2024 10:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 32464 ФМ: 0000000000874881 ФД: 122999 ФПД: 32365579381709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104131&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122999&fm=32365579381709&tin=02508201610067®Number=0000000000092681&sum=0 [10:41:28]StoreToDocumentArchive [10:41:28]shift 556 fd 122999 [10:41:28]save to /storage/0556/doc_00122999 [10:41:28]save last doc name /storage/0556/doc_00122999 to /storage/kkm_last_doc_name [10:41:28]save OK [10:41:28]Clear old archive folders... [10:41:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:28]tlvbuf is B6E70A90 [10:41:28]SAM_PROTO_ClearQueue [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 09 00 00 [10:41:28]Write to MH i2c: E2 08 00 67 1B 80 09 00 00 00 00 00 00 F4 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 67 1B 00 90 00 F6 [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_ClearQueue done [10:41:28]KKMCreateOFDPacket [10:41:28]OFDProtocolAddRootSTLVToBuf [10:41:28]FM_MakeSignedData [10:41:28]FM_MakeSignedData [10:41:28]SAM_PROTO_SignData [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 01 02 [10:41:28]Write to MH i2c: E2 08 00 68 1B 80 0D 01 02 00 00 00 00 FC [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 68 1B 00 90 00 F7 [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]wFMCommunicate request_size=255 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 28 00 00 00 F4 03 04 00 5B 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E0 01 00 35 04 06 00 1D [10:41:28]Write to MH i2c: E2 02 01 69 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 5B 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E0 01 00 35 04 06 00 1D 00 00 66 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 69 1B 00 90 00 F8 [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]wFMCommunicate request_size=10 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 02 02 05 6F B2 DC AB CD [10:41:28]Write to MH i2c: E2 0D 00 6A 1B 80 0D 02 02 05 00 6F B2 DC AB CD 00 00 7E [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 6A 1B 00 90 00 F9 [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 03 02 [10:41:28]Write to MH i2c: E2 08 00 6B 1B 80 0D 03 02 00 00 00 00 01 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0B 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0B 00 6B 1B 00 48 F2 07 DF 0E 0E 79 E4 90 00 9B [10:41:28]RAPDU: 48 F2 07 DF 0E 0E 79 E4 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_SignData done [10:41:28]FM_MakeSignedData done [10:41:28]CreateOFDProtocolMessage [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 11 00 00 [10:41:28]Write to MH i2c: E2 08 00 6C 1B 80 11 00 00 00 00 00 00 01 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 17 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 17 00 6C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 58 [10:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:41:28]wFMCommunicate OK [10:41:28]CreateOFDProtocolMessage done [10:41:28]OFDSenderStorePacket 122999 [10:41:28]StoreOFDPacket docnum=122999 [10:41:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E5 FD 07 01 C3 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 34 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 28 00 00 00 F4 03 04 00 5B 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E0 01 00 35 04 06 00 1D 6F B2 DC AB CD 48 F2 07 DF 0E 0E 79 E4 [10:41:28]CheckFolder [10:41:28]dirname=/storage/ofd_packets [10:41:28]CheckFolder done [10:41:28]ProducePacketName [10:41:28]name=ofd_packets/00122999 [10:41:28]NVStorageSaveData ofd_packets/00122999 [10:41:28]File name is /storage/ofd_packets/00122999 [10:41:28]Write 301 bytes [10:41:28]NVStorageSaveData done [10:41:28]OFDSenderStorePacket done [10:41:28]KKMCreateOFDPacket done [10:41:28]NVStorageSaveData kkm_last_timestamp [10:41:28]File name is /storage/kkm_last_timestamp [10:41:28]Write 4 bytes [10:41:28]NVStorageSaveData done [10:41:28]ExternCall_PrintAddStr [10:41:28]wPrintStart [10:41:28]Write to MH i2c: 01 00 00 6D 1B 88 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: 01 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: 01 07 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: 01 07 00 6D 1B 00 00 00 00 00 FF 0F 9D [10:41:28]RasterBufferAndPrint [10:41:28]line Счет N : (1)717790 [10:41:28]line ИНН: 02508201610067 [10:41:28]line Контрольно-Кассовый Чек [10:41:28]line ПРОДАЖА [10:41:28]line ТРК (МРК, ГНК) : 32 [10:41:28]line Товар: 2710124130 [10:41:28]line Аи-92-К-4 [10:41:28]line 10.000 * 0.00 [10:41:28]line = 0.00 [10:41:28]line НДС 12% НСП 1% [10:41:28]line > о реализуемом товаре [10:41:28]line ИТОГО: 0.00 [10:41:28]line НСП 1% : 0.00 [10:41:28]line НДС 12% : 0.00 [10:41:28]line Наличными: 0.00 [10:41:28]line Безнал.: 0.00 [10:41:28]line Место: АЗС № 64 "Партнер Нефть" [10:41:28]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:41:28]line СНО: Общий режим [10:41:28]line Чек 40 25.11.2024 10:41 [10:41:28]line Смена: 556 ФФД: 1.0 [10:41:28]line ЗНМ: 0300000033 [10:41:28]line РНМ: 0000000000092681 [10:41:28]line Версия ККМ: 001 [10:41:28]line Талоны: Топливная Карта [10:41:28]line 32464 [10:41:28]line ФМ: 0000000000874881 [10:41:28]line ФД: 122999 [10:41:28]line ФПД: 32365579381709 [10:41:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104131&type=1&operation_type=1&fn_number=0000000000874881&fd_number=122999&fm=32365579381709&tin=02508201610067®Number=0000000000092681&sum=0 [10:41:28]written 0, free lines is 4095 [10:41:28]OFD Sender: Processing packet 122999 [packets to send 7, broken 6] [10:41:28]ProducePacketName [10:41:28]name=ofd_packets/00122999 [10:41:28]OFD Sender: To server: pG, [10:41:28]CommunicateWithHost lk.salyk.kg:30040 [10:41:28]ConnectInit lk.salyk.kg [10:41:29]Connected sock=9 [10:41:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E5 FD 07 01 C3 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 34 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 28 00 00 00 F4 03 04 00 5B 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E0 01 00 35 04 06 00 1D 6F B2 DC AB CD 48 F2 07 DF 0E 0E 79 E4 [10:41:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4B E2 47 00 62 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E0 01 00 F4 03 04 00 21 00 44 67 B6 04 01 00 00 47 BC 0E 2D 69 50 AB CF [10:41:29]CommunicateWithHost err = 0 [10:41:29]CheckOFDResponse [10:41:29]1017 (14) - 77093643461234 [10:41:29]1041 (16) - 0000000000874881 [10:41:29]1040 (4) - 122999 [10:41:29]1012 (4) - 25.11.2024 04:42 [10:41:29]1206 (1) - 0 [10:41:29]OFD Sender: Remove packet 122999 [10:41:29]ProducePacketName [10:41:29]name=ofd_packets/00122999 [10:41:29]NVStorageDeleteData [10:41:29]Write to MH i2c: 01 00 00 97 1B B2 [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 07 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 07 00 97 1B 00 00 00 00 00 61 0C 26 [10:41:29]RasterBufferAndPrint [10:41:29]line [10:41:29]line [10:41:29]line [10:41:29]line [10:41:29]line [10:41:29]written 0, free lines is 3173 [10:41:29]MH_Cut [10:41:29]Write to MH i2c: D1 01 00 9E 1B 01 8B [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: D1 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: D1 01 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: D1 01 00 9E 1B 00 8A [10:41:29]Write to MH i2c: 01 00 00 9F 1B BA [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]OFD Sender: No OFD packet to send [10:41:30]*** Cut start [10:41:30]*** Partial cut [10:41:30]*** CUTSNS_PIN = 1 [10:41:30]*** CUTSNS_PIN = 0 [10:41:30]*** Brake cut motor [10:41:31]Read from MH i2c: 01 [10:41:31]MH_I2C_Read... [10:41:31]*** Stop cut motor [10:41:31]*** Cut end [10:41:31]Read from MH i2c: 01 07 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 07 00 9F 1B 00 00 00 00 00 FF 0F CF [10:41:31]process_action close_receipt done [10:41:31]requested_data is exist [10:41:31]produce_requested_data [10:41:31]requested_item fm.sn is exist - process it [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 11 00 00 [10:41:31]Write to MH i2c: E2 08 00 A0 1B 80 11 00 00 00 00 00 00 35 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 17 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 17 00 A0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8C [10:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:41:31]wFMCommunicate OK [10:41:31]requested_item fd.num is exist - process it [10:41:31]SAM_PROTO_GetFieldsCounters [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 13 00 00 [10:41:31]Write to MH i2c: E2 08 00 A1 1B 80 13 00 00 00 00 00 00 38 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 62 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 62 00 A1 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 77 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [10:41:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 77 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:31]wFMCommunicate OK [10:41:31]SAM_PROTO_GetFieldsCounters done [10:41:31]requested_item shift.num is exist - process it [10:41:31]requested_item shift.opened is exist - process it [10:41:31]req_shift_opened [10:41:31]FM_GetShiftState [10:41:31]SAM_PROTO_GetShiftState [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 13 01 00 [10:41:31]Write to MH i2c: E2 08 00 A2 1B 80 13 01 00 00 00 00 00 3A [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 0E 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 0E 00 A2 1B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B9 [10:41:31]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:41:31]wFMCommunicate OK [10:41:31]SAM_PROTO_GetShiftState done [10:41:31]FM_GetShiftState done [10:41:31]req_shift_opened done [10:41:31]requested_item shift.open_date is exist - process it [10:41:31]req_shift_open_date [10:41:31]req_shift_open_date done [10:41:31]produce_requested_data done [10:41:31]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":122999,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:41:31]process_action_free close_receipt [10:41:31]json_value_free [10:41:31]json_value_free done [10:41:31]process_json_proto returns [10:41:31]Send response to host [10:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":122999,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:41:31]free response buf [10:41:31]execute_script done [10:41:31]execute_script returns [10:41:31]free content buf [10:41:31]Sock 10.Close socket [10:41:31]Sock 10.Thread stoped [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]accept exits with 7 [10:43:29]New connection [10:43:29]New thread 3066723684 created [10:43:29]Thread 3066580324 joined [10:43:29]Waiting for new connection... [10:43:29] Sock 7.Parse request [10:43:29]Sock 7.Check first char [10:43:29]Sock 7.First char is OK [10:43:29]request: POST /json_proto HTTP/1.0 [10:43:29]Method: POST [10:43:29]URL: /json_proto [10:43:29]Method is POST - this is cgi request [10:43:29]url: /json_proto [10:43:29]query_string will be loaded in cgi processing [10:43:29]execute_cgi json_proto POST (null) [10:43:29]execute_cgi path=json_proto method=POST [10:43:29]POST find Content-Length [10:43:29]Host: 172.17.37.4:8080 [10:43:29]Content-Length: 677 [10:43:29]Content-Type: application/json [10:43:29] [10:43:29]POST finish read [10:43:29]Found Content-Length = 677 [10:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:29]execute_script... [10:43: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)717792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:29]POST & json_proto [10:43:29]process_json_proto [10:43:29]json parsed OK: [10:43:29]protocol is kg_v1.0 [10:43:29]action value=close_receipt [10:43:29]process_action close_receipt [10:43:29]cmd_close_receipt [10:43:29]MH_GetDate [10:43:29]Write to MH i2c: F0 00 00 A3 1B AD [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: F0 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: F0 09 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: F0 09 00 A3 1B 00 D5 54 44 67 B8 5A 43 67 46 [10:43:29]GetLastDocTimeStamp 1732531291 [10:43:29]current date 1732531413 [10:43:29]FM_GetShiftState [10:43:29]SAM_PROTO_GetShiftState [10:43:29]wFMCommunicate request_size=4 [10:43:29]MH_SAM_APDU [10:43:29]CAPDU: 80 13 01 00 [10:43:29]Write to MH i2c: E2 08 00 A4 1B 80 13 01 00 00 00 00 00 3C [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0E 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0E 00 A4 1B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 BB [10:43:29]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:43:29]wFMCommunicate OK [10:43:29]SAM_PROTO_GetShiftState done [10:43:29]FM_GetShiftState done [10:43:29]opened in 1732493066 [10:43:29]opened+sec_in_day 1732579466 [10:43:29]quantity*price = 50010 [10:43:29]sum+1 = 50012 [10:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 41 25.11.2024 10:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123000 ФПД: 278810059629041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104334&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123000&fm=278810059629041&tin=02508201610067®Number=0000000000092681&sum=50000 [10:43:30]StoreToDocumentArchive [10:43:30]shift 556 fd 123000 [10:43:30]save to /storage/0556/doc_00123000 [10:43:30]save last doc name /storage/0556/doc_00123000 to /storage/kkm_last_doc_name [10:43:30]save OK [10:43:30]Clear old archive folders... [10:43:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:30]tlvbuf is B6D701B0 [10:43:30]SAM_PROTO_ClearQueue [10:43:30]wFMCommunicate request_size=4 [10:43:30]MH_SAM_APDU [10:43:30]CAPDU: 80 09 00 00 [10:43:30]Write to MH i2c: E2 08 00 B1 1B 80 09 00 00 00 00 00 00 3E [10:43:30]Write i2c OK [10:43:30]MH_I2C_Read... [10:43:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:30]Read from MH i2c: E2 [10:43:30]MH_I2C_Read... [10:43:30]Read from MH i2c: E2 03 00 [10:43:30]MH_I2C_Read... [10:43:30]Read from MH i2c: E2 03 00 B1 1B 00 90 00 40 [10:43:30]RAPDU: 90 00 [10:43:30]wFMCommunicate OK [10:43:30]SAM_PROTO_ClearQueue done [10:43:30]KKMCreateOFDPacket [10:43:30]OFDProtocolAddRootSTLVToBuf [10:43:30]FM_MakeSignedData [10:43:30]FM_MakeSignedData [10:43:30]SAM_PROTO_SignData [10:43:30]wFMCommunicate request_size=4 [10:43:30]MH_SAM_APDU [10:43:30]CAPDU: 80 0D 01 02 [10:43:30]Write to MH i2c: E2 08 00 B2 1B 80 0D 01 02 00 00 00 00 46 [10:43:30]Write i2c OK [10:43:30]MH_I2C_Read... [10:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:30]Read from MH i2c: E2 [10:43:30]MH_I2C_Read... [10:43:30]Read from MH i2c: E2 03 00 [10:43:30]MH_I2C_Read... [10:43:30]Read from MH i2c: E2 03 00 B2 1B 00 90 00 41 [10:43:30]RAPDU: 90 00 [10:43:30]wFMCommunicate OK [10:43:30]wFMCommunicate request_size=255 [10:43:30]MH_SAM_APDU [10: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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D6 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E0 01 00 35 04 06 00 FD [10:43:30]Write to MH i2c: E2 02 01 B3 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D6 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E0 01 00 35 04 06 00 FD 00 00 2F [10:43:30]Write i2c OK [10:43:30]MH_I2C_Read... [10:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:30]Read from MH i2c: E2 [10:43:30]MH_I2C_Read... [10:43:30]Read from MH i2c: E2 03 00 [10:43:30]MH_I2C_Read... [10:43:30]Read from MH i2c: E2 03 00 B3 1B 00 90 00 42 [10:43:30]RAPDU: 90 00 [10:43:30]wFMCommunicate OK [10:43:30]wFMCommunicate request_size=10 [10:43:30]MH_SAM_APDU [10:43:30]CAPDU: 80 0D 02 02 05 93 86 90 61 F1 [10:43:30]Write to MH i2c: E2 0D 00 B4 1B 80 0D 02 02 05 00 93 86 90 61 F1 00 00 4E [10:43:30]Write i2c OK [10:43:30]MH_I2C_Read... [10:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:30]Read from MH i2c: E2 [10:43:30]MH_I2C_Read... [10:43:30]Read from MH i2c: E2 03 00 [10:43:30]MH_I2C_Read... [10:43:30]Read from MH i2c: E2 03 00 B4 1B 00 90 00 43 [10:43:30]RAPDU: 90 00 [10:43:30]wFMCommunicate OK [10:43:30]wFMCommunicate request_size=4 [10:43:30]MH_SAM_APDU [10:43:30]CAPDU: 80 0D 03 02 [10:43:30]Write to MH i2c: E2 08 00 B5 1B 80 0D 03 02 00 00 00 00 4B [10:43:30]Write i2c OK [10:43:30]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 0B 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 0B 00 B5 1B 00 3C 7C 50 23 6F 6D 50 AA 90 00 4D [10:43:31]RAPDU: 3C 7C 50 23 6F 6D 50 AA 90 00 [10:43:31]wFMCommunicate OK [10:43:31]SAM_PROTO_SignData done [10:43:31]FM_MakeSignedData done [10:43:31]CreateOFDProtocolMessage [10:43:31]wFMCommunicate request_size=4 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 11 00 00 [10:43:31]Write to MH i2c: E2 08 00 B6 1B 80 11 00 00 00 00 00 00 4B [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 17 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 17 00 B6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A2 [10:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:43:31]wFMCommunicate OK [10:43:31]CreateOFDProtocolMessage done [10:43:31]OFDSenderStorePacket 123000 [10:43:31]StoreOFDPacket docnum=123000 [10:43:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 69 95 07 01 8C 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D6 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E0 01 00 35 04 06 00 FD 93 86 90 61 F1 3C 7C 50 23 6F 6D 50 AA [10:43:31]CheckFolder [10:43:31]dirname=/storage/ofd_packets [10:43:31]CheckFolder done [10:43:31]ProducePacketName [10:43:31]name=ofd_packets/00123000 [10:43:31]NVStorageSaveData ofd_packets/00123000 [10:43:31]File name is /storage/ofd_packets/00123000 [10:43:31]Write 301 bytes [10:43:31]NVStorageSaveData done [10:43:31]OFDSenderStorePacket done [10:43:31]KKMCreateOFDPacket done [10:43:31]NVStorageSaveData kkm_last_timestamp [10:43:31]File name is /storage/kkm_last_timestamp [10:43:31]Write 4 bytes [10:43:31]NVStorageSaveData done [10:43:31]ExternCall_PrintAddStr [10:43:31]wPrintStart [10:43:31]Write to MH i2c: 01 00 00 B7 1B D2 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 07 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 07 00 B7 1B 00 00 00 00 00 FF 0F E7 [10:43:31]RasterBufferAndPrint [10:43:31]line Счет N : (1)717792 [10:43:31]line ИНН: 02508201610067 [10:43:31]line Контрольно-Кассовый Чек [10:43:31]line ПРОДАЖА [10:43:31]line ТРК (МРК, ГНК) : 22 [10:43:31]line Товар: 2710124130 [10:43:31]line Аи-92-К-4 [10:43:31]line 7.420 * 67.40 [10:43:31]line = 500.11 [10:43:31]line НДС 12% НСП 1% [10:43:31]line > о реализуемом товаре [10:43:31]line ОКРУГЛЕНИЕ: -0.11 [10:43:31]line ИТОГО: 500.00 [10:43:31]line Внесено: 500.00 [10:43:31]line СДАЧА: 0.00 [10:43:31]line НСП 1% : 4.43 [10:43:31]line НДС 12% : 53.11 [10:43:31]line Наличными: 500.00 [10:43:31]line Безнал.: 0.00 [10:43:31]line Место: АЗС № 64 "Партнер Нефть" [10:43:31]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:43:31]line СНО: Общий режим [10:43:31]line Чек 41 25.11.2024 10:43 [10:43:31]line Смена: 556 ФФД: 1.0 [10:43:31]line ЗНМ: 0300000033 [10:43:31]line РНМ: 0000000000092681 [10:43:31]line Версия ККМ: 001 [10:43:31]line ФМ: 0000000000874881 [10:43:31]line ФД: 123000 [10:43:31]line ФПД: 278810059629041 [10:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104334&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123000&fm=278810059629041&tin=02508201610067®Number=0000000000092681&sum=50000 [10:43:31]OFD Sender: Processing packet 123000 [packets to send 7, broken 6] [10:43:31]ProducePacketName [10:43:31]name=ofd_packets/00123000 [10:43:31]OFD Sender: To server: pG, [10:43:31]CommunicateWithHost lk.salyk.kg:30040 [10:43:31]ConnectInit lk.salyk.kg [10:43:31]written 0, free lines is 4095 [10:43:31]Connected sock=10 [10:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 69 95 07 01 8C 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D6 54 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E0 01 00 35 04 06 00 FD 93 86 90 61 F1 3C 7C 50 23 6F 6D 50 AA [10:43:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 BB C0 47 00 EE 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E0 01 00 F4 03 04 00 9C 00 44 67 B6 04 01 00 00 38 09 13 89 C2 63 D6 BB [10:43:31]CommunicateWithHost err = 0 [10:43:31]CheckOFDResponse [10:43:31]1017 (14) - 77093643461234 [10:43:31]1041 (16) - 0000000000874881 [10:43:31]1040 (4) - 123000 [10:43:31]1012 (4) - 25.11.2024 04:44 [10:43:31]1206 (1) - 0 [10:43:31]OFD Sender: Remove packet 123000 [10:43:31]ProducePacketName [10:43:31]name=ofd_packets/00123000 [10:43:31]NVStorageDeleteData [10:43:31]Write to MH i2c: 01 00 00 E2 1B FD [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 07 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 07 00 E2 1B 00 00 00 00 00 46 0C 56 [10:43:31]RasterBufferAndPrint [10:43:31]line [10:43:31]line [10:43:31]line [10:43:31]line [10:43:31]line [10:43:31]written 0, free lines is 3147 [10:43:31]MH_Cut [10:43:31]Write to MH i2c: D1 01 00 E9 1B 01 D6 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: D1 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: D1 01 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: D1 01 00 E9 1B 00 D5 [10:43:31]Write to MH i2c: 01 00 00 EA 1B 05 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:32]OFD Sender: No OFD packet to send [10:43:33]*** Cut start [10:43:33]*** Partial cut [10:43:33]*** CUTSNS_PIN = 1 [10:43:33]*** CUTSNS_PIN = 0 [10:43:33]*** Brake cut motor [10:43:33]Read from MH i2c: 01 [10:43:33]MH_I2C_Read... [10:43:33]*** Stop cut motor [10:43:33]*** Cut end [10:43:33]Read from MH i2c: 01 07 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 FF 0F 1A [10:43:33]process_action close_receipt done [10:43:33]requested_data is exist [10:43:33]produce_requested_data [10:43:33]requested_item fm.sn is exist - process it [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 11 00 00 [10:43:33]Write to MH i2c: E2 08 00 EB 1B 80 11 00 00 00 00 00 00 80 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:33]Read from MH i2c: E2 17 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 17 00 EB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D7 [10:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:43:33]wFMCommunicate OK [10:43:33]requested_item fd.num is exist - process it [10:43:33]SAM_PROTO_GetFieldsCounters [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 13 00 00 [10:43:33]Write to MH i2c: E2 08 00 EC 1B 80 13 00 00 00 00 00 00 83 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:34]Read from MH i2c: E2 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 62 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 62 00 EC 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 78 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [10:43:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 78 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:34]wFMCommunicate OK [10:43:34]SAM_PROTO_GetFieldsCounters done [10:43:34]requested_item shift.num is exist - process it [10:43:34]requested_item shift.opened is exist - process it [10:43:34]req_shift_opened [10:43:34]FM_GetShiftState [10:43:34]SAM_PROTO_GetShiftState [10:43:34]wFMCommunicate request_size=4 [10:43:34]MH_SAM_APDU [10:43:34]CAPDU: 80 13 01 00 [10:43:34]Write to MH i2c: E2 08 00 ED 1B 80 13 01 00 00 00 00 00 85 [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:34]Read from MH i2c: E2 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 0E 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 0E 00 ED 1B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 04 [10:43:34]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:43:34]wFMCommunicate OK [10:43:34]SAM_PROTO_GetShiftState done [10:43:34]FM_GetShiftState done [10:43:34]req_shift_opened done [10:43:34]requested_item shift.open_date is exist - process it [10:43:34]req_shift_open_date [10:43:34]req_shift_open_date done [10:43:34]produce_requested_data done [10:43:34]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123000,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:43:34]process_action_free close_receipt [10:43:34]json_value_free [10:43:34]json_value_free done [10:43:34]process_json_proto returns [10:43:34]Send response to host [10:43:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123000,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:43:34]free response buf [10:43:34]execute_script done [10:43:34]execute_script returns [10:43:34]free content buf [10:43:34]Sock 7.Close socket [10:43:34]Sock 7.Thread stoped [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:45]accept exits with 9 [10:45:45]New connection [10:45:45]New thread 3066580324 created [10:45:45]Thread 3066723684 joined [10:45:45]Waiting for new connection... [10:45:45] Sock 9.Parse request [10:45:45]Sock 9.Check first char [10:45:45]Sock 9.First char is OK [10:45:45]request: POST /json_proto HTTP/1.0 [10:45:45]Method: POST [10:45:45]URL: /json_proto [10:45:45]Method is POST - this is cgi request [10:45:45]url: /json_proto [10:45:45]query_string will be loaded in cgi processing [10:45:45]execute_cgi json_proto POST (null) [10:45:45]execute_cgi path=json_proto method=POST [10:45:45]POST find Content-Length [10:45:45]Host: 172.17.37.4:8080 [10:45:45]Content-Length: 801 [10:45:45]Content-Type: application/json [10:45:45] [10:45:45]POST finish read [10:45:45]Found Content-Length = 801 [10:45:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:45]execute_script... [10:45: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)717793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:45]POST & json_proto [10:45:45]process_json_proto [10:45:45]json parsed OK: [10:45:45]protocol is kg_v1.0 [10:45:45]action value=close_receipt [10:45:45]process_action close_receipt [10:45:45]cmd_close_receipt [10:45:45]MH_GetDate [10:45:45]Write to MH i2c: F0 00 00 EE 1B F8 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: F0 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: F0 09 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: F0 09 00 EE 1B 00 5E 55 44 67 B8 5A 43 67 1B [10:45:45]GetLastDocTimeStamp 1732531414 [10:45:45]current date 1732531550 [10:45:45]FM_GetShiftState [10:45:45]SAM_PROTO_GetShiftState [10:45:45]wFMCommunicate request_size=4 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 13 01 00 [10:45:45]Write to MH i2c: E2 08 00 EF 1B 80 13 01 00 00 00 00 00 87 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 0E 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 0E 00 EF 1B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 06 [10:45:45]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:45:45]wFMCommunicate OK [10:45:45]SAM_PROTO_GetShiftState done [10:45:45]FM_GetShiftState done [10:45:45]opened in 1732493066 [10:45:45]opened+sec_in_day 1732579466 [10:45:45]quantity*price = 70028 [10:45:45]sum+1 = 70030 [10:45:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.29 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.29 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 42 25.11.2024 10:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123001 ФПД: 223696619804923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104550&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123001&fm=223696619804923&tin=02508201610067®Number=0000000000092681&sum=70029 [10:45:47]StoreToDocumentArchive [10:45:47]shift 556 fd 123001 [10:45:47]save to /storage/0556/doc_00123001 [10:45:47]save last doc name /storage/0556/doc_00123001 to /storage/kkm_last_doc_name [10:45:47]save OK [10:45:47]Clear old archive folders... [10:45:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:47]tlvbuf is 0205BCF0 [10:45:47]SAM_PROTO_ClearQueue [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 09 00 00 [10:45:47]Write to MH i2c: E2 08 00 FC 1B 80 09 00 00 00 00 00 00 89 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 03 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 03 00 FC 1B 00 90 00 8B [10:45:47]RAPDU: 90 00 [10:45:47]wFMCommunicate OK [10:45:47]SAM_PROTO_ClearQueue done [10:45:47]KKMCreateOFDPacket [10:45:47]OFDProtocolAddRootSTLVToBuf [10:45:47]FM_MakeSignedData [10:45:47]FM_MakeSignedData [10:45:47]SAM_PROTO_SignData [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 0D 01 02 [10:45:47]Write to MH i2c: E2 08 00 FD 1B 80 0D 01 02 00 00 00 00 91 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 03 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 03 00 FD 1B 00 90 00 8C [10:45:47]RAPDU: 90 00 [10:45:47]wFMCommunicate OK [10:45:47]wFMCommunicate request_size=255 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 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 00 00 00 00 00 00 39 04 06 00 8D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5E 55 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E0 01 00 35 04 06 00 CB [10:45:47]Write to MH i2c: E2 02 01 FE 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 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 00 00 00 00 00 00 39 04 06 00 8D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5E 55 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E0 01 00 35 04 06 00 CB 00 00 1B [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]OFD Sender: No OFD packet to send [10:45:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 03 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 03 00 FE 1B 00 90 00 8D [10:45:47]RAPDU: 90 00 [10:45:47]wFMCommunicate OK [10:45:47]wFMCommunicate request_size=10 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 0D 02 02 05 73 6D 8F 98 FB [10:45:47]Write to MH i2c: E2 0D 00 FF 1B 80 0D 02 02 05 00 73 6D 8F 98 FB 00 00 A0 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 03 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 03 00 FF 1B 00 90 00 8E [10:45:47]RAPDU: 90 00 [10:45:47]wFMCommunicate OK [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 0D 03 02 [10:45:47]Write to MH i2c: E2 08 00 00 1C 80 0D 03 02 00 00 00 00 97 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 0B 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 0B 00 00 1C 00 EF 4B BE E0 71 5E 08 26 90 00 6D [10:45:47]RAPDU: EF 4B BE E0 71 5E 08 26 90 00 [10:45:47]wFMCommunicate OK [10:45:47]SAM_PROTO_SignData done [10:45:47]FM_MakeSignedData done [10:45:47]CreateOFDProtocolMessage [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 11 00 00 [10:45:47]Write to MH i2c: E2 08 00 01 1C 80 11 00 00 00 00 00 00 97 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 17 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 17 00 01 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EE [10:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:45:47]wFMCommunicate OK [10:45:47]CreateOFDProtocolMessage done [10:45:47]OFDSenderStorePacket 123001 [10:45:47]StoreOFDPacket docnum=123001 [10:45:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 89 BA 07 01 4C 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 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 00 00 00 00 00 00 39 04 06 00 8D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5E 55 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E0 01 00 35 04 06 00 CB 73 6D 8F 98 FB EF 4B BE E0 71 5E 08 26 [10:45:47]CheckFolder [10:45:47]dirname=/storage/ofd_packets [10:45:47]CheckFolder done [10:45:47]ProducePacketName [10:45:47]name=ofd_packets/00123001 [10:45:47]NVStorageSaveData ofd_packets/00123001 [10:45:47]File name is /storage/ofd_packets/00123001 [10:45:47]Write 301 bytes [10:45:47]NVStorageSaveData done [10:45:47]OFDSenderStorePacket done [10:45:47]KKMCreateOFDPacket done [10:45:47]NVStorageSaveData kkm_last_timestamp [10:45:47]File name is /storage/kkm_last_timestamp [10:45:47]Write 4 bytes [10:45:47]NVStorageSaveData done [10:45:47]ExternCall_PrintAddStr [10:45:47]wPrintStart [10:45:47]Write to MH i2c: 01 00 00 02 1C 1E [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: 01 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: 01 07 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: 01 07 00 02 1C 00 00 00 00 00 FF 0F 33 [10:45:47]RasterBufferAndPrint [10:45:47]line Счет N : (1)717793 [10:45:47]line ИНН: 02508201610067 [10:45:47]line Контрольно-Кассовый Чек [10:45:47]line ПРОДАЖА [10:45:47]line ТРК (МРК, ГНК) : 32 [10:45:47]line Товар: 2710124130 [10:45:47]line Аи-92-К-4 [10:45:47]line 10.390 * 67.40 [10:45:47]line = 700.29 [10:45:47]line НДС 12% НСП 1% [10:45:47]line > о реализуемом товаре [10:45:47]line ИТОГО: 700.29 [10:45:47]line НСП 1% : 6.20 [10:45:47]line НДС 12% : 74.37 [10:45:47]line Наличными: 0.00 [10:45:47]line Безнал.: 700.29 [10:45:47]line Место: АЗС № 64 "Партнер Нефть" [10:45:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:45:47]line СНО: Общий режим [10:45:47]line Чек 42 25.11.2024 10:45 [10:45:47]line Смена: 556 ФФД: 1.0 [10:45:47]line ЗНМ: 0300000033 [10:45:47]line РНМ: 0000000000092681 [10:45:47]line Версия ККМ: 001 [10:45:47]line Платежная система: O! деньги [10:45:47]line ФМ: 0000000000874881 [10:45:47]line ФД: 123001 [10:45:47]line ФПД: 223696619804923 [10:45:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104550&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123001&fm=223696619804923&tin=02508201610067®Number=0000000000092681&sum=70029 [10:45:47]OFD Sender: Processing packet 123001 [packets to send 7, broken 6] [10:45:47]ProducePacketName [10:45:47]name=ofd_packets/00123001 [10:45:47]OFD Sender: To server: pG, [10:45:47]CommunicateWithHost lk.salyk.kg:30040 [10:45:47]ConnectInit lk.salyk.kg [10:45:47]written 0, free lines is 4095 [10:45:48]Connected sock=10 [10:45:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 89 BA 07 01 4C 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 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 00 00 00 00 00 00 39 04 06 00 8D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5E 55 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E0 01 00 35 04 06 00 CB 73 6D 8F 98 FB EF 4B BE E0 71 5E 08 26 [10:45:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B1 E8 47 00 08 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E0 01 00 F4 03 04 00 24 01 44 67 B6 04 01 00 00 C1 80 57 02 C1 B1 8B 18 [10:45:48]CommunicateWithHost err = 0 [10:45:48]CheckOFDResponse [10:45:48]1017 (14) - 77093643461234 [10:45:48]1041 (16) - 0000000000874881 [10:45:48]1040 (4) - 123001 [10:45:48]1012 (4) - 25.11.2024 04:46 [10:45:48]1206 (1) - 0 [10:45:48]OFD Sender: Remove packet 123001 [10:45:48]ProducePacketName [10:45:48]name=ofd_packets/00123001 [10:45:48]NVStorageDeleteData [10:45:48]Write to MH i2c: 01 00 00 2C 1C 48 [10:45:48]Write i2c OK [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: 01 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: 01 07 00 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: 01 07 00 2C 1C 00 00 00 00 00 60 0C BB [10:45:48]RasterBufferAndPrint [10:45:48]line [10:45:48]line [10:45:48]line [10:45:48]line [10:45:48]line [10:45:48]written 0, free lines is 3172 [10:45:48]MH_Cut [10:45:48]Write to MH i2c: D1 01 00 33 1C 01 21 [10:45:48]Write i2c OK [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: D1 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: D1 01 00 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: D1 01 00 33 1C 00 20 [10:45:48]Write to MH i2c: 01 00 00 34 1C 50 [10:45:48]Write i2c OK [10:45:48]MH_I2C_Read... [10:45:48]OFD Sender: No OFD packet to send [10:45:49]*** Cut start [10:45:49]*** Partial cut [10:45:49]*** CUTSNS_PIN = 1 [10:45:49]*** CUTSNS_PIN = 0 [10:45:50]*** Brake cut motor [10:45:50]Read from MH i2c: 01 [10:45:50]MH_I2C_Read... [10:45:50]*** Stop cut motor [10:45:50]*** Cut end [10:45:50]Read from MH i2c: 01 07 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 07 00 34 1C 00 00 00 00 00 FF 0F 65 [10:45:50]process_action close_receipt done [10:45:50]requested_data is exist [10:45:50]produce_requested_data [10:45:50]requested_item fm.sn is exist - process it [10:45:50]wFMCommunicate request_size=4 [10:45:50]MH_SAM_APDU [10:45:50]CAPDU: 80 11 00 00 [10:45:50]Write to MH i2c: E2 08 00 35 1C 80 11 00 00 00 00 00 00 CB [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:50]Read from MH i2c: E2 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: E2 17 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: E2 17 00 35 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 22 [10:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:45:50]wFMCommunicate OK [10:45:50]requested_item fd.num is exist - process it [10:45:50]SAM_PROTO_GetFieldsCounters [10:45:50]wFMCommunicate request_size=4 [10:45:50]MH_SAM_APDU [10:45:50]CAPDU: 80 13 00 00 [10:45:50]Write to MH i2c: E2 08 00 36 1C 80 13 00 00 00 00 00 00 CE [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:50]Read from MH i2c: E2 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: E2 62 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: E2 62 00 36 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 79 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [10:45:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 79 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:50]wFMCommunicate OK [10:45:50]SAM_PROTO_GetFieldsCounters done [10:45:50]requested_item shift.num is exist - process it [10:45:50]requested_item shift.opened is exist - process it [10:45:50]req_shift_opened [10:45:50]FM_GetShiftState [10:45:50]SAM_PROTO_GetShiftState [10:45:50]wFMCommunicate request_size=4 [10:45:50]MH_SAM_APDU [10:45:50]CAPDU: 80 13 01 00 [10:45:50]Write to MH i2c: E2 08 00 37 1C 80 13 01 00 00 00 00 00 D0 [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:50]Read from MH i2c: E2 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: E2 0E 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: E2 0E 00 37 1C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4F [10:45:50]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:45:50]wFMCommunicate OK [10:45:50]SAM_PROTO_GetShiftState done [10:45:50]FM_GetShiftState done [10:45:50]req_shift_opened done [10:45:50]requested_item shift.open_date is exist - process it [10:45:50]req_shift_open_date [10:45:50]req_shift_open_date done [10:45:50]produce_requested_data done [10:45:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123001,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:45:50]process_action_free close_receipt [10:45:50]json_value_free [10:45:50]json_value_free done [10:45:50]process_json_proto returns [10:45:50]Send response to host [10:45:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123001,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:45:50]free response buf [10:45:50]execute_script done [10:45:50]execute_script returns [10:45:50]free content buf [10:45:50]Sock 9.Close socket [10:45:50]Sock 9.Thread stoped [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:33]accept exits with 7 [10:49:33]New connection [10:49:33]New thread 3066723684 created [10:49:33]Thread 3066580324 joined [10:49:33]Waiting for new connection... [10:49:33] Sock 7.Parse request [10:49:33]Sock 7.Check first char [10:49:33]Sock 7.First char is OK [10:49:33]request: POST /json_proto HTTP/1.0 [10:49:33]Method: POST [10:49:33]URL: /json_proto [10:49:33]Method is POST - this is cgi request [10:49:33]url: /json_proto [10:49:33]query_string will be loaded in cgi processing [10:49:33]execute_cgi json_proto POST (null) [10:49:33]execute_cgi path=json_proto method=POST [10:49:33]POST find Content-Length [10:49:33]Host: 172.17.37.4:8080 [10:49:33]Content-Length: 800 [10:49:33]Content-Type: application/json [10:49:33] [10:49:33]POST finish read [10:49:33]Found Content-Length = 800 [10:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:33]execute_script... [10:49: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)717794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:33]POST & json_proto [10:49:33]process_json_proto [10:49:33]json parsed OK: [10:49:33]protocol is kg_v1.0 [10:49:33]action value=close_receipt [10:49:33]process_action close_receipt [10:49:33]cmd_close_receipt [10:49:33]MH_GetDate [10:49:33]Write to MH i2c: F0 00 00 38 1C 43 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: F0 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: F0 09 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: F0 09 00 38 1C 00 42 56 44 67 B8 5A 43 67 4B [10:49:33]GetLastDocTimeStamp 1732531550 [10:49:33]current date 1732531778 [10:49:33]FM_GetShiftState [10:49:33]SAM_PROTO_GetShiftState [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 13 01 00 [10:49:33]Write to MH i2c: E2 08 00 39 1C 80 13 01 00 00 00 00 00 D2 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 0E 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 0E 00 39 1C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 51 [10:49:33]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:49:33]wFMCommunicate OK [10:49:33]SAM_PROTO_GetShiftState done [10:49:33]FM_GetShiftState done [10:49:33]opened in 1732493066 [10:49:33]opened+sec_in_day 1732579466 [10:49:33]quantity*price = 20017 [10:49:33]sum+1 = 20019 [10:49:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.18 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.18 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 43 25.11.2024 10:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123002 ФПД: 91664564023130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104938&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123002&fm=91664564023130&tin=02508201610067®Number=0000000000092681&sum=20018 [10:49:35]StoreToDocumentArchive [10:49:35]shift 556 fd 123002 [10:49:35]save to /storage/0556/doc_00123002 [10:49:35]save last doc name /storage/0556/doc_00123002 to /storage/kkm_last_doc_name [10:49:35]save OK [10:49:35]Clear old archive folders... [10:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:35]tlvbuf is 01F3E980 [10:49:35]SAM_PROTO_ClearQueue [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 09 00 00 [10:49:35]Write to MH i2c: E2 08 00 46 1C 80 09 00 00 00 00 00 00 D4 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 46 1C 00 90 00 D6 [10:49:35]RAPDU: 90 00 [10:49:35]wFMCommunicate OK [10:49:35]SAM_PROTO_ClearQueue done [10:49:35]KKMCreateOFDPacket [10:49:35]OFDProtocolAddRootSTLVToBuf [10:49:35]FM_MakeSignedData [10:49:35]FM_MakeSignedData [10:49:35]SAM_PROTO_SignData [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 0D 01 02 [10:49:35]Write to MH i2c: E2 08 00 47 1C 80 0D 01 02 00 00 00 00 DC [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 47 1C 00 90 00 D7 [10:49:35]RAPDU: 90 00 [10:49:35]wFMCommunicate OK [10:49:35]wFMCommunicate request_size=255 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 42 56 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E0 01 00 35 04 06 00 53 [10:49:35]Write to MH i2c: E2 02 01 48 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 42 56 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E0 01 00 35 04 06 00 53 00 00 CE [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 48 1C 00 90 00 D8 [10:49:35]RAPDU: 90 00 [10:49:35]wFMCommunicate OK [10:49:35]wFMCommunicate request_size=10 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 0D 02 02 05 5E 51 C6 EF 5A [10:49:35]Write to MH i2c: E2 0D 00 49 1C 80 0D 02 02 05 00 5E 51 C6 EF 5A 00 00 A7 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 49 1C 00 90 00 D9 [10:49:35]RAPDU: 90 00 [10:49:35]wFMCommunicate OK [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 0D 03 02 [10:49:35]Write to MH i2c: E2 08 00 4A 1C 80 0D 03 02 00 00 00 00 E1 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 0B 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 0B 00 4A 1C 00 79 77 BB 3F C3 31 0C 7A 90 00 46 [10:49:35]RAPDU: 79 77 BB 3F C3 31 0C 7A 90 00 [10:49:35]wFMCommunicate OK [10:49:35]SAM_PROTO_SignData done [10:49:35]FM_MakeSignedData done [10:49:35]CreateOFDProtocolMessage [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 11 00 00 [10:49:35]Write to MH i2c: E2 08 00 4B 1C 80 11 00 00 00 00 00 00 E1 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 17 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 17 00 4B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 38 [10:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:49:35]wFMCommunicate OK [10:49:35]CreateOFDProtocolMessage done [10:49:35]OFDSenderStorePacket 123002 [10:49:35]StoreOFDPacket docnum=123002 [10:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7E F3 07 01 8F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 42 56 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E0 01 00 35 04 06 00 53 5E 51 C6 EF 5A 79 77 BB 3F C3 31 0C 7A [10:49:35]CheckFolder [10:49:35]dirname=/storage/ofd_packets [10:49:35]CheckFolder done [10:49:35]ProducePacketName [10:49:35]name=ofd_packets/00123002 [10:49:35]NVStorageSaveData ofd_packets/00123002 [10:49:35]File name is /storage/ofd_packets/00123002 [10:49:35]Write 301 bytes [10:49:35]NVStorageSaveData done [10:49:35]OFDSenderStorePacket done [10:49:35]KKMCreateOFDPacket done [10:49:35]NVStorageSaveData kkm_last_timestamp [10:49:35]File name is /storage/kkm_last_timestamp [10:49:35]Write 4 bytes [10:49:35]NVStorageSaveData done [10:49:35]ExternCall_PrintAddStr [10:49:35]wPrintStart [10:49:35]Write to MH i2c: 01 00 00 4C 1C 68 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: 01 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: 01 07 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: 01 07 00 4C 1C 00 00 00 00 00 FF 0F 7D [10:49:35]RasterBufferAndPrint [10:49:35]line Счет N : (1)717794 [10:49:35]line ИНН: 02508201610067 [10:49:35]line Контрольно-Кассовый Чек [10:49:35]line ПРОДАЖА [10:49:35]line ТРК (МРК, ГНК) : 12 [10:49:35]line Товар: 2710124130 [10:49:35]line Аи-92-К-4 [10:49:35]line 2.970 * 67.40 [10:49:35]line = 200.18 [10:49:35]line НДС 12% НСП 1% [10:49:35]line > о реализуемом товаре [10:49:35]line ИТОГО: 200.18 [10:49:35]line НСП 1% : 1.77 [10:49:35]line НДС 12% : 21.26 [10:49:35]line Наличными: 0.00 [10:49:35]line Безнал.: 200.18 [10:49:35]line Место: АЗС № 64 "Партнер Нефть" [10:49:35]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:49:35]line СНО: Общий режим [10:49:35]line Чек 43 25.11.2024 10:49 [10:49:35]line Смена: 556 ФФД: 1.0 [10:49:35]line ЗНМ: 0300000033 [10:49:35]line РНМ: 0000000000092681 [10:49:35]line Версия ККМ: 001 [10:49:35]line Платежная система: O! деньги [10:49:35]line ФМ: 0000000000874881 [10:49:35]line ФД: 123002 [10:49:35]line ФПД: 91664564023130 [10:49:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T104938&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123002&fm=91664564023130&tin=02508201610067®Number=0000000000092681&sum=20018 [10:49:35]OFD Sender: Processing packet 123002 [packets to send 7, broken 6] [10:49:35]ProducePacketName [10:49:35]name=ofd_packets/00123002 [10:49:35]OFD Sender: To server: pG, [10:49:35]CommunicateWithHost lk.salyk.kg:30040 [10:49:35]ConnectInit lk.salyk.kg [10:49:35]written 0, free lines is 4095 [10:49:36]Connected sock=10 [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 34 38 38 31 0F 01 00 00 7E F3 07 01 8F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 42 56 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E0 01 00 35 04 06 00 53 5E 51 C6 EF 5A 79 77 BB 3F C3 31 0C 7A [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 34 38 38 31 4F 00 00 00 5C 69 47 00 3E 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E0 01 00 F4 03 04 00 08 02 44 67 B6 04 01 00 00 A2 E2 95 97 A8 64 49 28 [10:49:36]CommunicateWithHost err = 0 [10:49:36]CheckOFDResponse [10:49:36]1017 (14) - 77093643461234 [10:49:36]1041 (16) - 0000000000874881 [10:49:36]1040 (4) - 123002 [10:49:36]1012 (4) - 25.11.2024 04:50 [10:49:36]1206 (1) - 0 [10:49:36]OFD Sender: Remove packet 123002 [10:49:36]ProducePacketName [10:49:36]name=ofd_packets/00123002 [10:49:36]NVStorageDeleteData [10:49:36]Write to MH i2c: 01 00 00 76 1C 92 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 07 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 07 00 76 1C 00 00 00 00 00 57 0C FC [10:49:36]RasterBufferAndPrint [10:49:36]line [10:49:36]line [10:49:36]line [10:49:36]line [10:49:36]line [10:49:36]written 0, free lines is 3165 [10:49:36]MH_Cut [10:49:36]Write to MH i2c: D1 01 00 7D 1C 01 6B [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: D1 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: D1 01 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: D1 01 00 7D 1C 00 6A [10:49:36]Write to MH i2c: 01 00 00 7E 1C 9A [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]OFD Sender: No OFD packet to send [10:49:37]*** Cut start [10:49:37]*** Partial cut [10:49:37]*** CUTSNS_PIN = 1 [10:49:37]*** CUTSNS_PIN = 0 [10:49:38]*** Brake cut motor [10:49:38]Read from MH i2c: 01 [10:49:38]MH_I2C_Read... [10:49:38]*** Stop cut motor [10:49:38]*** Cut end [10:49:38]Read from MH i2c: 01 07 00 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: 01 07 00 7E 1C 00 00 00 00 00 FF 0F AF [10:49:38]process_action close_receipt done [10:49:38]requested_data is exist [10:49:38]produce_requested_data [10:49:38]requested_item fm.sn is exist - process it [10:49:38]wFMCommunicate request_size=4 [10:49:38]MH_SAM_APDU [10:49:38]CAPDU: 80 11 00 00 [10:49:38]Write to MH i2c: E2 08 00 7F 1C 80 11 00 00 00 00 00 00 15 [10:49:38]Write i2c OK [10:49:38]MH_I2C_Read... [10:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:38]Read from MH i2c: E2 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 17 00 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 17 00 7F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6C [10:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:49:38]wFMCommunicate OK [10:49:38]requested_item fd.num is exist - process it [10:49:38]SAM_PROTO_GetFieldsCounters [10:49:38]wFMCommunicate request_size=4 [10:49:38]MH_SAM_APDU [10:49:38]CAPDU: 80 13 00 00 [10:49:38]Write to MH i2c: E2 08 00 80 1C 80 13 00 00 00 00 00 00 18 [10:49:38]Write i2c OK [10:49:38]MH_I2C_Read... [10:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:38]Read from MH i2c: E2 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 62 00 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 62 00 80 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7A E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [10:49:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7A E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:38]wFMCommunicate OK [10:49:38]SAM_PROTO_GetFieldsCounters done [10:49:38]requested_item shift.num is exist - process it [10:49:38]requested_item shift.opened is exist - process it [10:49:38]req_shift_opened [10:49:38]FM_GetShiftState [10:49:38]SAM_PROTO_GetShiftState [10:49:38]wFMCommunicate request_size=4 [10:49:38]MH_SAM_APDU [10:49:38]CAPDU: 80 13 01 00 [10:49:38]Write to MH i2c: E2 08 00 81 1C 80 13 01 00 00 00 00 00 1A [10:49:38]Write i2c OK [10:49:38]MH_I2C_Read... [10:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:38]Read from MH i2c: E2 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 0E 00 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 0E 00 81 1C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 99 [10:49:38]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [10:49:38]wFMCommunicate OK [10:49:38]SAM_PROTO_GetShiftState done [10:49:38]FM_GetShiftState done [10:49:38]req_shift_opened done [10:49:38]requested_item shift.open_date is exist - process it [10:49:38]req_shift_open_date [10:49:38]req_shift_open_date done [10:49:38]produce_requested_data done [10:49:38]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123002,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [10:49:38]process_action_free close_receipt [10:49:38]json_value_free [10:49:38]json_value_free done [10:49:38]process_json_proto returns [10:49:38]Send response to host [10:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123002,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [10:49:38]free response buf [10:49:38]execute_script done [10:49:38]execute_script returns [10:49:38]free content buf [10:49:38]Sock 7.Close socket [10:49:38]Sock 7.Thread stoped [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54: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:53]accept exits with 9 [11:00:53]New connection [11:00:53]New thread 3066580324 created [11:00:53]Thread 3066723684 joined [11:00:53]Waiting for new connection... [11:00:53] Sock 9.Parse request [11:00:53]Sock 9.Check first char [11:00:53]Sock 9.First char is OK [11:00:53]request: POST /json_proto HTTP/1.0 [11:00:53]Method: POST [11:00:53]URL: /json_proto [11:00:53]Method is POST - this is cgi request [11:00:53]url: /json_proto [11:00:53]query_string will be loaded in cgi processing [11:00:53]execute_cgi json_proto POST (null) [11:00:53]execute_cgi path=json_proto method=POST [11:00:53]POST find Content-Length [11:00:53]Host: 172.17.37.4:8080 [11:00:53]Content-Length: 803 [11:00:53]Content-Type: application/json [11:00:53] [11:00:53]POST finish read [11:00:53]Found Content-Length = 803 [11:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:53]execute_script... [11:00: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)717795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:53]POST & json_proto [11:00:53]process_json_proto [11:00:53]json parsed OK: [11:00:53]protocol is kg_v1.0 [11:00:53]action value=close_receipt [11:00:53]process_action close_receipt [11:00:53]cmd_close_receipt [11:00:53]MH_GetDate [11:00:53]Write to MH i2c: F0 00 00 82 1C 8D [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: F0 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: F0 09 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: F0 09 00 82 1C 00 E9 58 44 67 B8 5A 43 67 3E [11:00:53]GetLastDocTimeStamp 1732531778 [11:00:53]current date 1732532457 [11:00:53]FM_GetShiftState [11:00:53]SAM_PROTO_GetShiftState [11:00:53]wFMCommunicate request_size=4 [11:00:53]MH_SAM_APDU [11:00:53]CAPDU: 80 13 01 00 [11:00:53]Write to MH i2c: E2 08 00 83 1C 80 13 01 00 00 00 00 00 1C [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:53]Read from MH i2c: E2 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 0E 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 0E 00 83 1C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 9B [11:00:53]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:00:53]wFMCommunicate OK [11:00:53]SAM_PROTO_GetShiftState done [11:00:53]FM_GetShiftState done [11:00:53]opened in 1732493066 [11:00:53]opened+sec_in_day 1732579466 [11:00:53]quantity*price = 150032 [11:00:53]sum+1 = 150033 [11:00:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 44 25.11.2024 11:00 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123003 ФПД: 197351290522408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T110057&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123003&fm=197351290522408&tin=02508201610067®Number=0000000000092681&sum=150032 [11:00:54]StoreToDocumentArchive [11:00:54]shift 556 fd 123003 [11:00:54]save to /storage/0556/doc_00123003 [11:00:54]save last doc name /storage/0556/doc_00123003 to /storage/kkm_last_doc_name [11:00:54]save OK [11:00:54]Clear old archive folders... [11:00:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:54]tlvbuf is 02057BD0 [11:00:54]SAM_PROTO_ClearQueue [11:00:54]wFMCommunicate request_size=4 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 09 00 00 [11:00:54]Write to MH i2c: E2 08 00 90 1C 80 09 00 00 00 00 00 00 1E [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 03 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 03 00 90 1C 00 90 00 20 [11:00:54]RAPDU: 90 00 [11:00:54]wFMCommunicate OK [11:00:54]SAM_PROTO_ClearQueue done [11:00:54]KKMCreateOFDPacket [11:00:54]OFDProtocolAddRootSTLVToBuf [11:00:54]FM_MakeSignedData [11:00:54]FM_MakeSignedData [11:00:54]SAM_PROTO_SignData [11:00:54]wFMCommunicate request_size=4 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 0D 01 02 [11:00:54]Write to MH i2c: E2 08 00 91 1C 80 0D 01 02 00 00 00 00 26 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 03 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 03 00 91 1C 00 90 00 21 [11:00:54]RAPDU: 90 00 [11:00:54]wFMCommunicate OK [11:00:54]wFMCommunicate request_size=255 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E9 58 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E0 01 00 35 04 06 00 B3 [11:00:54]Write to MH i2c: E2 02 01 92 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E9 58 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E0 01 00 35 04 06 00 B3 00 00 05 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 03 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 03 00 92 1C 00 90 00 22 [11:00:54]RAPDU: 90 00 [11:00:54]wFMCommunicate OK [11:00:54]wFMCommunicate request_size=10 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 0D 02 02 05 7D 6D 91 4B 28 [11:00:54]Write to MH i2c: E2 0D 00 93 1C 80 0D 02 02 05 00 7D 6D 91 4B 28 00 00 21 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 03 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 03 00 93 1C 00 90 00 23 [11:00:54]RAPDU: 90 00 [11:00:54]wFMCommunicate OK [11:00:54]wFMCommunicate request_size=4 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 0D 03 02 [11:00:54]Write to MH i2c: E2 08 00 94 1C 80 0D 03 02 00 00 00 00 2B [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 0B 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 0B 00 94 1C 00 D6 DA 2A 6A 41 A3 D7 14 90 00 3F [11:00:54]RAPDU: D6 DA 2A 6A 41 A3 D7 14 90 00 [11:00:54]wFMCommunicate OK [11:00:54]SAM_PROTO_SignData done [11:00:54]FM_MakeSignedData done [11:00:54]CreateOFDProtocolMessage [11:00:54]wFMCommunicate request_size=4 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 11 00 00 [11:00:54]Write to MH i2c: E2 08 00 95 1C 80 11 00 00 00 00 00 00 2B [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 17 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 17 00 95 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 82 [11:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:00:54]wFMCommunicate OK [11:00:54]CreateOFDProtocolMessage done [11:00:54]OFDSenderStorePacket 123003 [11:00:54]StoreOFDPacket docnum=123003 [11:00:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 00 7B 07 01 8B 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 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E9 58 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E0 01 00 35 04 06 00 B3 7D 6D 91 4B 28 D6 DA 2A 6A 41 A3 D7 14 [11:00:54]CheckFolder [11:00:54]dirname=/storage/ofd_packets [11:00:54]CheckFolder done [11:00:54]ProducePacketName [11:00:54]name=ofd_packets/00123003 [11:00:54]NVStorageSaveData ofd_packets/00123003 [11:00:54]File name is /storage/ofd_packets/00123003 [11:00:54]Write 301 bytes [11:00:54]NVStorageSaveData done [11:00:54]OFDSenderStorePacket done [11:00:54]KKMCreateOFDPacket done [11:00:54]NVStorageSaveData kkm_last_timestamp [11:00:54]File name is /storage/kkm_last_timestamp [11:00:54]Write 4 bytes [11:00:54]NVStorageSaveData done [11:00:54]ExternCall_PrintAddStr [11:00:54]wPrintStart [11:00:54]Write to MH i2c: 01 00 00 96 1C B2 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: 01 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: 01 07 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: 01 07 00 96 1C 00 00 00 00 00 FF 0F C7 [11:00:54]RasterBufferAndPrint [11:00:54]line Счет N : (1)717795 [11:00:54]line ИНН: 02508201610067 [11:00:54]line Контрольно-Кассовый Чек [11:00:54]line ПРОДАЖА [11:00:54]line ТРК (МРК, ГНК) : 42 [11:00:54]line Товар: 2710124130 [11:00:54]line Аи-92-К-4 [11:00:54]line 22.260 * 67.40 [11:00:54]line = 1500.32 [11:00:54]line НДС 12% НСП 1% [11:00:54]line > о реализуемом товаре [11:00:54]line ИТОГО: 1500.32 [11:00:54]line НСП 1% : 13.28 [11:00:54]line НДС 12% : 159.33 [11:00:54]line Наличными: 0.00 [11:00:54]line Безнал.: 1500.32 [11:00:54]line Место: АЗС № 64 "Партнер Нефть" [11:00:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:00:54]line СНО: Общий режим [11:00:54]line Чек 44 25.11.2024 11:00 [11:00:54]line Смена: 556 ФФД: 1.0 [11:00:54]line ЗНМ: 0300000033 [11:00:54]line РНМ: 0000000000092681 [11:00:54]line Версия ККМ: 001 [11:00:54]line Платежная система: O! деньги [11:00:54]line ФМ: 0000000000874881 [11:00:54]line ФД: 123003 [11:00:54]line ФПД: 197351290522408 [11:00:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T110057&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123003&fm=197351290522408&tin=02508201610067®Number=0000000000092681&sum=150032 [11:00:55]written 0, free lines is 4095 [11:00:55]OFD Sender: Processing packet 123003 [packets to send 7, broken 6] [11:00:55]ProducePacketName [11:00:55]name=ofd_packets/00123003 [11:00:55]OFD Sender: To server: pG, [11:00:55]CommunicateWithHost lk.salyk.kg:30040 [11:00:55]ConnectInit lk.salyk.kg [11:00:55]Connected sock=10 [11:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 00 7B 07 01 8B 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 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E9 58 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E0 01 00 35 04 06 00 B3 7D 6D 91 4B 28 D6 DA 2A 6A 41 A3 D7 14 [11:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 2D AA 47 00 36 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E0 01 00 F4 03 04 00 B0 04 44 67 B6 04 01 00 00 01 F8 44 22 C6 C5 0D 4A [11:00:55]CommunicateWithHost err = 0 [11:00:55]CheckOFDResponse [11:00:55]1017 (14) - 77093643461234 [11:00:55]1041 (16) - 0000000000874881 [11:00:55]1040 (4) - 123003 [11:00:55]1012 (4) - 25.11.2024 05:01 [11:00:55]1206 (1) - 0 [11:00:55]OFD Sender: Remove packet 123003 [11:00:55]ProducePacketName [11:00:55]name=ofd_packets/00123003 [11:00:55]NVStorageDeleteData [11:00:55]Write to MH i2c: 01 00 00 C0 1C DC [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: 01 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: 01 07 00 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: 01 07 00 C0 1C 00 00 00 00 00 58 0C 47 [11:00:55]RasterBufferAndPrint [11:00:55]line [11:00:55]line [11:00:55]line [11:00:55]line [11:00:55]line [11:00:55]written 0, free lines is 3165 [11:00:55]MH_Cut [11:00:55]Write to MH i2c: D1 01 00 C7 1C 01 B5 [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: D1 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: D1 01 00 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: D1 01 00 C7 1C 00 B4 [11:00:55]Write to MH i2c: 01 00 00 C8 1C E4 [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:56]OFD Sender: No OFD packet to send [11:00:57]*** Cut start [11:00:57]*** Partial cut [11:00:57]*** CUTSNS_PIN = 1 [11:00:57]*** CUTSNS_PIN = 0 [11:00:57]*** Brake cut motor [11:00:57]Read from MH i2c: 01 [11:00:57]MH_I2C_Read... [11:00:57]*** Stop cut motor [11:00:57]*** Cut end [11:00:57]Read from MH i2c: 01 07 00 [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: 01 07 00 C8 1C 00 00 00 00 00 FF 0F F9 [11:00:57]process_action close_receipt done [11:00:57]requested_data is exist [11:00:57]produce_requested_data [11:00:57]requested_item fm.sn is exist - process it [11:00:57]wFMCommunicate request_size=4 [11:00:57]MH_SAM_APDU [11:00:57]CAPDU: 80 11 00 00 [11:00:57]Write to MH i2c: E2 08 00 C9 1C 80 11 00 00 00 00 00 00 5F [11:00:57]Write i2c OK [11:00:57]MH_I2C_Read... [11:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:57]Read from MH i2c: E2 [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: E2 17 00 [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: E2 17 00 C9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B6 [11:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:00:57]wFMCommunicate OK [11:00:57]requested_item fd.num is exist - process it [11:00:57]SAM_PROTO_GetFieldsCounters [11:00:57]wFMCommunicate request_size=4 [11:00:57]MH_SAM_APDU [11:00:57]CAPDU: 80 13 00 00 [11:00:57]Write to MH i2c: E2 08 00 CA 1C 80 13 00 00 00 00 00 00 62 [11:00:57]Write i2c OK [11:00:57]MH_I2C_Read... [11:00:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:57]Read from MH i2c: E2 [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: E2 62 00 [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: E2 62 00 CA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7B E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [11:00:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7B E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:57]wFMCommunicate OK [11:00:57]SAM_PROTO_GetFieldsCounters done [11:00:57]requested_item shift.num is exist - process it [11:00:57]requested_item shift.opened is exist - process it [11:00:57]req_shift_opened [11:00:57]FM_GetShiftState [11:00:57]SAM_PROTO_GetShiftState [11:00:57]wFMCommunicate request_size=4 [11:00:57]MH_SAM_APDU [11:00:57]CAPDU: 80 13 01 00 [11:00:57]Write to MH i2c: E2 08 00 CB 1C 80 13 01 00 00 00 00 00 64 [11:00:57]Write i2c OK [11:00:57]MH_I2C_Read... [11:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:58]Read from MH i2c: E2 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 0E 00 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 0E 00 CB 1C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E3 [11:00:58]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:00:58]wFMCommunicate OK [11:00:58]SAM_PROTO_GetShiftState done [11:00:58]FM_GetShiftState done [11:00:58]req_shift_opened done [11:00:58]requested_item shift.open_date is exist - process it [11:00:58]req_shift_open_date [11:00:58]req_shift_open_date done [11:00:58]produce_requested_data done [11:00:58]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123003,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:00:58]process_action_free close_receipt [11:00:58]json_value_free [11:00:58]json_value_free done [11:00:58]process_json_proto returns [11:00:58]Send response to host [11:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123003,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:00:58]free response buf [11:00:58]execute_script done [11:00:58]execute_script returns [11:00:58]free content buf [11:00:58]Sock 9.Close socket [11:00:58]Sock 9.Thread stoped [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]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:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:09]accept exits with 7 [11:07:09]New connection [11:07:09]New thread 3066723684 created [11:07:09]Thread 3066580324 joined [11:07:09]Waiting for new connection... [11:07:09] Sock 7.Parse request [11:07:09]Sock 7.Check first char [11:07:09]Sock 7.First char is OK [11:07:09]request: POST /json_proto HTTP/1.0 [11:07:09]Method: POST [11:07:09]URL: /json_proto [11:07:09]Method is POST - this is cgi request [11:07:09]url: /json_proto [11:07:09]query_string will be loaded in cgi processing [11:07:09]execute_cgi json_proto POST (null) [11:07:09]execute_cgi path=json_proto method=POST [11:07:09]POST find Content-Length [11:07:09]Host: 172.17.37.4:8080 [11:07:09]Content-Length: 682 [11:07:09]Content-Type: application/json [11:07:09] [11:07:09]POST finish read [11:07:09]Found Content-Length = 682 [11:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:09]execute_script... [11:07: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)717796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:09]POST & json_proto [11:07:09]process_json_proto [11:07:09]json parsed OK: [11:07:09]protocol is kg_v1.0 [11:07:09]action value=close_receipt [11:07:09]process_action close_receipt [11:07:09]cmd_close_receipt [11:07:09]MH_GetDate [11:07:09]Write to MH i2c: F0 00 00 CC 1C D7 [11:07:09]Write i2c OK [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: F0 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: F0 09 00 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: F0 09 00 CC 1C 00 62 5A 44 67 B8 5A 43 67 03 [11:07:09]GetLastDocTimeStamp 1732532457 [11:07:09]current date 1732532834 [11:07:09]FM_GetShiftState [11:07:09]SAM_PROTO_GetShiftState [11:07:09]wFMCommunicate request_size=4 [11:07:09]MH_SAM_APDU [11:07:09]CAPDU: 80 13 01 00 [11:07:09]Write to MH i2c: E2 08 00 CD 1C 80 13 01 00 00 00 00 00 66 [11:07:09]Write i2c OK [11:07:09]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0E 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0E 00 CD 1C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E5 [11:07:10]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:07:10]wFMCommunicate OK [11:07:10]SAM_PROTO_GetShiftState done [11:07:10]FM_GetShiftState done [11:07:10]opened in 1732493066 [11:07:10]opened+sec_in_day 1732579466 [11:07:10]quantity*price = 100055 [11:07:10]sum+1 = 100057 [11:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 45 25.11.2024 11:07 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123004 ФПД: 100809525506089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T110714&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123004&fm=100809525506089&tin=02508201610067®Number=0000000000092681&sum=100000 [11:07:11]StoreToDocumentArchive [11:07:11]shift 556 fd 123004 [11:07:11]save to /storage/0556/doc_00123004 [11:07:11]save last doc name /storage/0556/doc_00123004 to /storage/kkm_last_doc_name [11:07:11]save OK [11:07:11]Clear old archive folders... [11:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:11]tlvbuf is 01F264F0 [11:07:11]SAM_PROTO_ClearQueue [11:07:11]wFMCommunicate request_size=4 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 09 00 00 [11:07:11]Write to MH i2c: E2 08 00 DA 1C 80 09 00 00 00 00 00 00 68 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 DA 1C 00 90 00 6A [11:07:11]RAPDU: 90 00 [11:07:11]wFMCommunicate OK [11:07:11]SAM_PROTO_ClearQueue done [11:07:11]KKMCreateOFDPacket [11:07:11]OFDProtocolAddRootSTLVToBuf [11:07:11]FM_MakeSignedData [11:07:11]FM_MakeSignedData [11:07:11]SAM_PROTO_SignData [11:07:11]wFMCommunicate request_size=4 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 0D 01 02 [11:07:11]Write to MH i2c: E2 08 00 DB 1C 80 0D 01 02 00 00 00 00 70 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 DB 1C 00 90 00 6B [11:07:11]RAPDU: 90 00 [11:07:11]wFMCommunicate OK [11:07:11]wFMCommunicate request_size=255 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 00 00 00 F4 03 04 00 62 5A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E0 01 00 35 04 06 00 5B [11:07:11]Write to MH i2c: E2 02 01 DC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 00 00 00 F4 03 04 00 62 5A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E0 01 00 35 04 06 00 5B 00 00 66 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 DC 1C 00 90 00 6C [11:07:11]RAPDU: 90 00 [11:07:11]wFMCommunicate OK [11:07:11]wFMCommunicate request_size=10 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 0D 02 02 05 AF 8B F5 30 29 [11:07:11]Write to MH i2c: E2 0D 00 DD 1C 80 0D 02 02 05 00 AF 8B F5 30 29 00 00 05 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]OFD Sender: No OFD packet to send [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:11]Read from MH i2c: E2 03 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 DD 1C 00 90 00 6D [11:07:11]RAPDU: 90 00 [11:07:11]wFMCommunicate OK [11:07:11]wFMCommunicate request_size=4 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 0D 03 02 [11:07:11]Write to MH i2c: E2 08 00 DE 1C 80 0D 03 02 00 00 00 00 75 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 0B 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 0B 00 DE 1C 00 C7 12 2A F4 71 1F C5 26 90 00 E8 [11:07:11]RAPDU: C7 12 2A F4 71 1F C5 26 90 00 [11:07:11]wFMCommunicate OK [11:07:11]SAM_PROTO_SignData done [11:07:11]FM_MakeSignedData done [11:07:11]CreateOFDProtocolMessage [11:07:11]wFMCommunicate request_size=4 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 11 00 00 [11:07:11]Write to MH i2c: E2 08 00 DF 1C 80 11 00 00 00 00 00 00 75 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 17 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 17 00 DF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CC [11:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:07:11]wFMCommunicate OK [11:07:11]CreateOFDProtocolMessage done [11:07:11]OFDSenderStorePacket 123004 [11:07:11]StoreOFDPacket docnum=123004 [11:07:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 2D 14 07 01 3E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 00 00 00 F4 03 04 00 62 5A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E0 01 00 35 04 06 00 5B AF 8B F5 30 29 C7 12 2A F4 71 1F C5 26 [11:07:11]CheckFolder [11:07:11]dirname=/storage/ofd_packets [11:07:11]CheckFolder done [11:07:11]ProducePacketName [11:07:11]name=ofd_packets/00123004 [11:07:11]NVStorageSaveData ofd_packets/00123004 [11:07:11]File name is /storage/ofd_packets/00123004 [11:07:11]Write 301 bytes [11:07:11]NVStorageSaveData done [11:07:11]OFDSenderStorePacket done [11:07:11]KKMCreateOFDPacket done [11:07:11]NVStorageSaveData kkm_last_timestamp [11:07:11]File name is /storage/kkm_last_timestamp [11:07:11]Write 4 bytes [11:07:11]NVStorageSaveData done [11:07:11]ExternCall_PrintAddStr [11:07:11]wPrintStart [11:07:11]Write to MH i2c: 01 00 00 E0 1C FC [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: 01 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: 01 07 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: 01 07 00 E0 1C 00 00 00 00 00 FF 0F 11 [11:07:11]RasterBufferAndPrint [11:07:11]line Счет N : (1)717796 [11:07:11]line ИНН: 02508201610067 [11:07:11]line Контрольно-Кассовый Чек [11:07:11]line ПРОДАЖА [11:07:11]line ТРК (МРК, ГНК) : 11 [11:07:11]line Товар: 2710124500 [11:07:11]line Аи-95-К-5 [11:07:11]line 13.270 * 75.40 [11:07:11]line = 1000.56 [11:07:11]line НДС 12% НСП 1% [11:07:11]line > о реализуемом товаре [11:07:11]line ОКРУГЛЕНИЕ: -0.56 [11:07:11]line ИТОГО: 1000.00 [11:07:11]line Внесено: 1000.00 [11:07:11]line СДАЧА: 0.00 [11:07:11]line НСП 1% : 8.85 [11:07:11]line НДС 12% : 106.25 [11:07:11]line Наличными: 1000.00 [11:07:11]line Безнал.: 0.00 [11:07:11]line Место: АЗС № 64 "Партнер Нефть" [11:07:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:07:11]line СНО: Общий режим [11:07:11]line Чек 45 25.11.2024 11:07 [11:07:11]line Смена: 556 ФФД: 1.0 [11:07:11]line ЗНМ: 0300000033 [11:07:11]line РНМ: 0000000000092681 [11:07:11]line Версия ККМ: 001 [11:07:11]line ФМ: 0000000000874881 [11:07:11]line ФД: 123004 [11:07:11]line ФПД: 100809525506089 [11:07:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T110714&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123004&fm=100809525506089&tin=02508201610067®Number=0000000000092681&sum=100000 [11:07:11]OFD Sender: Processing packet 123004 [packets to send 7, broken 6] [11:07:11]ProducePacketName [11:07:11]name=ofd_packets/00123004 [11:07:11]OFD Sender: To server: pG, [11:07:11]CommunicateWithHost lk.salyk.kg:30040 [11:07:11]ConnectInit lk.salyk.kg [11:07:11]written 0, free lines is 4095 [11:07:12]Connected sock=10 [11:07:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 2D 14 07 01 3E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 00 00 00 F4 03 04 00 62 5A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E0 01 00 35 04 06 00 5B AF 8B F5 30 29 C7 12 2A F4 71 1F C5 26 [11:07:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 33 E7 47 00 09 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E0 01 00 F4 03 04 00 28 06 44 67 B6 04 01 00 00 0A 8A 71 0E 6D 44 91 9F [11:07:12]CommunicateWithHost err = 0 [11:07:12]CheckOFDResponse [11:07:12]1017 (14) - 77093643461234 [11:07:12]1041 (16) - 0000000000874881 [11:07:12]1040 (4) - 123004 [11:07:12]1012 (4) - 25.11.2024 05:07 [11:07:12]1206 (1) - 0 [11:07:12]OFD Sender: Remove packet 123004 [11:07:12]ProducePacketName [11:07:12]name=ofd_packets/00123004 [11:07:12]NVStorageDeleteData [11:07:12]Write to MH i2c: 01 00 00 0B 1D 28 [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 07 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 07 00 0B 1D 00 00 00 00 00 48 0C 83 [11:07:12]RasterBufferAndPrint [11:07:12]line [11:07:12]line [11:07:12]line [11:07:12]line [11:07:12]line [11:07:12]written 0, free lines is 3148 [11:07:12]MH_Cut [11:07:12]Write to MH i2c: D1 01 00 12 1D 01 01 [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: D1 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: D1 01 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: D1 01 00 12 1D 00 00 [11:07:12]Write to MH i2c: 01 00 00 13 1D 30 [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]OFD Sender: No OFD packet to send [11:07:13]*** Cut start [11:07:13]*** Partial cut [11:07:13]*** CUTSNS_PIN = 1 [11:07:13]*** CUTSNS_PIN = 0 [11:07:14]*** Brake cut motor [11:07:14]Read from MH i2c: 01 [11:07:14]MH_I2C_Read... [11:07:14]*** Stop cut motor [11:07:14]*** Cut end [11:07:14]Read from MH i2c: 01 07 00 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: 01 07 00 13 1D 00 00 00 00 00 FF 0F 45 [11:07:14]process_action close_receipt done [11:07:14]requested_data is exist [11:07:14]produce_requested_data [11:07:14]requested_item fm.sn is exist - process it [11:07:14]wFMCommunicate request_size=4 [11:07:14]MH_SAM_APDU [11:07:14]CAPDU: 80 11 00 00 [11:07:14]Write to MH i2c: E2 08 00 14 1D 80 11 00 00 00 00 00 00 AB [11:07:14]Write i2c OK [11:07:14]MH_I2C_Read... [11:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:14]Read from MH i2c: E2 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: E2 17 00 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: E2 17 00 14 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 02 [11:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:07:14]wFMCommunicate OK [11:07:14]requested_item fd.num is exist - process it [11:07:14]SAM_PROTO_GetFieldsCounters [11:07:14]wFMCommunicate request_size=4 [11:07:14]MH_SAM_APDU [11:07:14]CAPDU: 80 13 00 00 [11:07:14]Write to MH i2c: E2 08 00 15 1D 80 13 00 00 00 00 00 00 AE [11:07:14]Write i2c OK [11:07:14]MH_I2C_Read... [11:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:14]Read from MH i2c: E2 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: E2 62 00 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: E2 62 00 15 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7C E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [11:07:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7C E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:14]wFMCommunicate OK [11:07:14]SAM_PROTO_GetFieldsCounters done [11:07:14]requested_item shift.num is exist - process it [11:07:14]requested_item shift.opened is exist - process it [11:07:14]req_shift_opened [11:07:14]FM_GetShiftState [11:07:14]SAM_PROTO_GetShiftState [11:07:14]wFMCommunicate request_size=4 [11:07:14]MH_SAM_APDU [11:07:14]CAPDU: 80 13 01 00 [11:07:14]Write to MH i2c: E2 08 00 16 1D 80 13 01 00 00 00 00 00 B0 [11:07:14]Write i2c OK [11:07:14]MH_I2C_Read... [11:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:14]Read from MH i2c: E2 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: E2 0E 00 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: E2 0E 00 16 1D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2F [11:07:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:07:14]wFMCommunicate OK [11:07:14]SAM_PROTO_GetShiftState done [11:07:14]FM_GetShiftState done [11:07:14]req_shift_opened done [11:07:14]requested_item shift.open_date is exist - process it [11:07:14]req_shift_open_date [11:07:14]req_shift_open_date done [11:07:14]produce_requested_data done [11:07:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123004,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:07:14]process_action_free close_receipt [11:07:14]json_value_free [11:07:14]json_value_free done [11:07:14]process_json_proto returns [11:07:14]Send response to host [11:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123004,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:07:14]free response buf [11:07:14]execute_script done [11:07:14]execute_script returns [11:07:14]free content buf [11:07:14]Sock 7.Close socket [11:07:14]Sock 7.Thread stoped [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:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]accept exits with 9 [11:10:32]New connection [11:10:32]New thread 3066580324 created [11:10:32]Thread 3066723684 joined [11:10:32]Waiting for new connection... [11:10:32] Sock 9.Parse request [11:10:32]Sock 9.Check first char [11:10:32]Sock 9.First char is OK [11:10:32]request: POST /json_proto HTTP/1.0 [11:10:32]Method: POST [11:10:32]URL: /json_proto [11:10:32]Method is POST - this is cgi request [11:10:32]url: /json_proto [11:10:32]query_string will be loaded in cgi processing [11:10:32]execute_cgi json_proto POST (null) [11:10:32]execute_cgi path=json_proto method=POST [11:10:32]POST find Content-Length [11:10:32]Host: 172.17.37.4:8080 [11:10:32]Content-Length: 801 [11:10:32]Content-Type: application/json [11:10:32] [11:10:32]POST finish read [11:10:32]Found Content-Length = 801 [11:10:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:32]execute_script... [11:10:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:32]POST & json_proto [11:10:32]process_json_proto [11:10:32]json parsed OK: [11:10:32]protocol is kg_v1.0 [11:10:32]action value=close_receipt [11:10:32]process_action close_receipt [11:10:32]cmd_close_receipt [11:10:32]MH_GetDate [11:10:32]Write to MH i2c: F0 00 00 17 1D 23 [11:10:32]Write i2c OK [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: F0 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: F0 09 00 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: F0 09 00 17 1D 00 2D 5B 44 67 B8 5A 43 67 1B [11:10:32]GetLastDocTimeStamp 1732532834 [11:10:32]current date 1732533037 [11:10:32]FM_GetShiftState [11:10:32]SAM_PROTO_GetShiftState [11:10:32]wFMCommunicate request_size=4 [11:10:32]MH_SAM_APDU [11:10:32]CAPDU: 80 13 01 00 [11:10:32]Write to MH i2c: E2 08 00 18 1D 80 13 01 00 00 00 00 00 B2 [11:10:32]Write i2c OK [11:10:32]MH_I2C_Read... [11:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:32]Read from MH i2c: E2 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: E2 0E 00 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: E2 0E 00 18 1D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 31 [11:10:32]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:10:32]wFMCommunicate OK [11:10:32]SAM_PROTO_GetShiftState done [11:10:32]FM_GetShiftState done [11:10:32]opened in 1732493066 [11:10:32]opened+sec_in_day 1732579466 [11:10:32]quantity*price = 80003 [11:10:32]sum+1 = 80005 [11:10:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.04 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.04 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 46 25.11.2024 11:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123005 ФПД: 184646299128420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T111037&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123005&fm=184646299128420&tin=02508201610067®Number=0000000000092681&sum=80004 [11:10:34]StoreToDocumentArchive [11:10:34]shift 556 fd 123005 [11:10:34]save to /storage/0556/doc_00123005 [11:10:34]save last doc name /storage/0556/doc_00123005 to /storage/kkm_last_doc_name [11:10:34]save OK [11:10:34]Clear old archive folders... [11:10:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:34]tlvbuf is B6E89190 [11:10:34]SAM_PROTO_ClearQueue [11:10:34]wFMCommunicate request_size=4 [11:10:34]MH_SAM_APDU [11:10:34]CAPDU: 80 09 00 00 [11:10:34]Write to MH i2c: E2 08 00 25 1D 80 09 00 00 00 00 00 00 B4 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:34]Read from MH i2c: E2 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 25 1D 00 90 00 B6 [11:10:34]RAPDU: 90 00 [11:10:34]wFMCommunicate OK [11:10:34]SAM_PROTO_ClearQueue done [11:10:34]KKMCreateOFDPacket [11:10:34]OFDProtocolAddRootSTLVToBuf [11:10:34]FM_MakeSignedData [11:10:34]FM_MakeSignedData [11:10:34]SAM_PROTO_SignData [11:10:34]wFMCommunicate request_size=4 [11:10:34]MH_SAM_APDU [11:10:34]CAPDU: 80 0D 01 02 [11:10:34]Write to MH i2c: E2 08 00 26 1D 80 0D 01 02 00 00 00 00 BC [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:34]Read from MH i2c: E2 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 26 1D 00 90 00 B7 [11:10:34]RAPDU: 90 00 [11:10:34]wFMCommunicate OK [11:10:34]wFMCommunicate request_size=255 [11:10:34]MH_SAM_APDU [11:10:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 2D 5B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7D E0 01 00 35 04 06 00 A7 [11:10:34]Write to MH i2c: E2 02 01 27 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 2D 5B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7D E0 01 00 35 04 06 00 A7 00 00 A6 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:34]Read from MH i2c: E2 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 27 1D 00 90 00 B8 [11:10:34]RAPDU: 90 00 [11:10:34]wFMCommunicate OK [11:10:34]wFMCommunicate request_size=10 [11:10:34]MH_SAM_APDU [11:10:34]CAPDU: 80 0D 02 02 05 EF 51 11 92 64 [11:10:34]Write to MH i2c: E2 0D 00 28 1D 80 0D 02 02 05 00 EF 51 11 92 64 00 00 10 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:34]Read from MH i2c: E2 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 03 00 28 1D 00 90 00 B9 [11:10:34]RAPDU: 90 00 [11:10:34]wFMCommunicate OK [11:10:34]wFMCommunicate request_size=4 [11:10:34]MH_SAM_APDU [11:10:34]CAPDU: 80 0D 03 02 [11:10:34]Write to MH i2c: E2 08 00 29 1D 80 0D 03 02 00 00 00 00 C1 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:34]Read from MH i2c: E2 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 0B 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 0B 00 29 1D 00 2C 29 B3 60 B3 2B 0D FB 90 00 10 [11:10:34]RAPDU: 2C 29 B3 60 B3 2B 0D FB 90 00 [11:10:34]wFMCommunicate OK [11:10:34]SAM_PROTO_SignData done [11:10:34]FM_MakeSignedData done [11:10:34]CreateOFDProtocolMessage [11:10:34]wFMCommunicate request_size=4 [11:10:34]MH_SAM_APDU [11:10:34]CAPDU: 80 11 00 00 [11:10:34]Write to MH i2c: E2 08 00 2A 1D 80 11 00 00 00 00 00 00 C1 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:34]Read from MH i2c: E2 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 17 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 17 00 2A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 18 [11:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:10:34]wFMCommunicate OK [11:10:34]CreateOFDProtocolMessage done [11:10:34]OFDSenderStorePacket 123005 [11:10:34]StoreOFDPacket docnum=123005 [11:10:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F9 BE 07 01 72 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 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 2D 5B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7D E0 01 00 35 04 06 00 A7 EF 51 11 92 64 2C 29 B3 60 B3 2B 0D FB [11:10:34]CheckFolder [11:10:34]dirname=/storage/ofd_packets [11:10:34]CheckFolder done [11:10:34]ProducePacketName [11:10:34]name=ofd_packets/00123005 [11:10:34]NVStorageSaveData ofd_packets/00123005 [11:10:34]File name is /storage/ofd_packets/00123005 [11:10:34]Write 301 bytes [11:10:34]NVStorageSaveData done [11:10:34]OFDSenderStorePacket done [11:10:34]KKMCreateOFDPacket done [11:10:34]NVStorageSaveData kkm_last_timestamp [11:10:34]File name is /storage/kkm_last_timestamp [11:10:34]Write 4 bytes [11:10:34]NVStorageSaveData done [11:10:34]ExternCall_PrintAddStr [11:10:34]wPrintStart [11:10:34]Write to MH i2c: 01 00 00 2B 1D 48 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: 01 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: 01 07 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: 01 07 00 2B 1D 00 00 00 00 00 FF 0F 5D [11:10:34]RasterBufferAndPrint [11:10:34]line Счет N : (1)717797 [11:10:34]line ИНН: 02508201610067 [11:10:34]line Контрольно-Кассовый Чек [11:10:34]line ПРОДАЖА [11:10:34]line ТРК (МРК, ГНК) : 32 [11:10:34]line Товар: 2710124130 [11:10:34]line Аи-92-К-4 [11:10:34]line 11.870 * 67.40 [11:10:34]line = 800.04 [11:10:34]line НДС 12% НСП 1% [11:10:34]line > о реализуемом товаре [11:10:34]line ИТОГО: 800.04 [11:10:34]line НСП 1% : 7.08 [11:10:34]line НДС 12% : 84.96 [11:10:34]line Наличными: 0.00 [11:10:34]line Безнал.: 800.04 [11:10:34]line Место: АЗС № 64 "Партнер Нефть" [11:10:34]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:10:34]line СНО: Общий режим [11:10:34]line Чек 46 25.11.2024 11:10 [11:10:34]line Смена: 556 ФФД: 1.0 [11:10:34]line ЗНМ: 0300000033 [11:10:34]line РНМ: 0000000000092681 [11:10:34]line Версия ККМ: 001 [11:10:34]line Платежная система: O! деньги [11:10:34]line ФМ: 0000000000874881 [11:10:34]line ФД: 123005 [11:10:34]line ФПД: 184646299128420 [11:10:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T111037&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123005&fm=184646299128420&tin=02508201610067®Number=0000000000092681&sum=80004 [11:10:34]written 0, free lines is 4095 [11:10:34]OFD Sender: Processing packet 123005 [packets to send 7, broken 6] [11:10:34]ProducePacketName [11:10:34]name=ofd_packets/00123005 [11:10:34]OFD Sender: To server: pG, [11:10:34]CommunicateWithHost lk.salyk.kg:30040 [11:10:34]ConnectInit lk.salyk.kg [11:10:34]Connected sock=10 [11:10:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F9 BE 07 01 72 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 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 2D 5B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7D E0 01 00 35 04 06 00 A7 EF 51 11 92 64 2C 29 B3 60 B3 2B 0D FB [11:10:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A3 56 47 00 AD 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 34 38 38 31 10 04 04 00 7D E0 01 00 F4 03 04 00 F3 06 44 67 B6 04 01 00 00 41 96 09 9E 84 1D 6A 5A [11:10:35]CommunicateWithHost err = 0 [11:10:35]CheckOFDResponse [11:10:35]1017 (14) - 77093643461234 [11:10:35]1041 (16) - 0000000000874881 [11:10:35]1040 (4) - 123005 [11:10:35]1012 (4) - 25.11.2024 05:11 [11:10:35]1206 (1) - 0 [11:10:35]OFD Sender: Remove packet 123005 [11:10:35]ProducePacketName [11:10:35]name=ofd_packets/00123005 [11:10:35]NVStorageDeleteData [11:10:35]Write to MH i2c: 01 00 00 55 1D 72 [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: 01 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: 01 07 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: 01 07 00 55 1D 00 00 00 00 00 56 0C DB [11:10:35]RasterBufferAndPrint [11:10:35]line [11:10:35]line [11:10:35]line [11:10:35]line [11:10:35]line [11:10:35]written 0, free lines is 3163 [11:10:35]MH_Cut [11:10:35]Write to MH i2c: D1 01 00 5C 1D 01 4B [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: D1 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: D1 01 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: D1 01 00 5C 1D 00 4A [11:10:35]Write to MH i2c: 01 00 00 5D 1D 7A [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]OFD Sender: No OFD packet to send [11:10:36]*** Cut start [11:10:36]*** Partial cut [11:10:36]*** CUTSNS_PIN = 1 [11:10:36]*** CUTSNS_PIN = 0 [11:10:37]*** Brake cut motor [11:10:37]Read from MH i2c: 01 [11:10:37]MH_I2C_Read... [11:10:37]*** Stop cut motor [11:10:37]*** Cut end [11:10:37]Read from MH i2c: 01 07 00 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: 01 07 00 5D 1D 00 00 00 00 00 FF 0F 8F [11:10:37]process_action close_receipt done [11:10:37]requested_data is exist [11:10:37]produce_requested_data [11:10:37]requested_item fm.sn is exist - process it [11:10:37]wFMCommunicate request_size=4 [11:10:37]MH_SAM_APDU [11:10:37]CAPDU: 80 11 00 00 [11:10:37]Write to MH i2c: E2 08 00 5E 1D 80 11 00 00 00 00 00 00 F5 [11:10:37]Write i2c OK [11:10:37]MH_I2C_Read... [11:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:37]Read from MH i2c: E2 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 17 00 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 17 00 5E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4C [11:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:10:37]wFMCommunicate OK [11:10:37]requested_item fd.num is exist - process it [11:10:37]SAM_PROTO_GetFieldsCounters [11:10:37]wFMCommunicate request_size=4 [11:10:37]MH_SAM_APDU [11:10:37]CAPDU: 80 13 00 00 [11:10:37]Write to MH i2c: E2 08 00 5F 1D 80 13 00 00 00 00 00 00 F8 [11:10:37]Write i2c OK [11:10:37]MH_I2C_Read... [11:10:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:37]Read from MH i2c: E2 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 62 00 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 62 00 5F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7D E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [11:10:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7D E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:37]wFMCommunicate OK [11:10:37]SAM_PROTO_GetFieldsCounters done [11:10:37]requested_item shift.num is exist - process it [11:10:37]requested_item shift.opened is exist - process it [11:10:37]req_shift_opened [11:10:37]FM_GetShiftState [11:10:37]SAM_PROTO_GetShiftState [11:10:37]wFMCommunicate request_size=4 [11:10:37]MH_SAM_APDU [11:10:37]CAPDU: 80 13 01 00 [11:10:37]Write to MH i2c: E2 08 00 60 1D 80 13 01 00 00 00 00 00 FA [11:10:37]Write i2c OK [11:10:37]MH_I2C_Read... [11:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:37]Read from MH i2c: E2 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 0E 00 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 0E 00 60 1D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 79 [11:10:37]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:10:37]wFMCommunicate OK [11:10:37]SAM_PROTO_GetShiftState done [11:10:37]FM_GetShiftState done [11:10:37]req_shift_opened done [11:10:37]requested_item shift.open_date is exist - process it [11:10:37]req_shift_open_date [11:10:37]req_shift_open_date done [11:10:37]produce_requested_data done [11:10:37]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123005,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:10:37]process_action_free close_receipt [11:10:37]json_value_free [11:10:37]json_value_free done [11:10:37]process_json_proto returns [11:10:37]Send response to host [11:10:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123005,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:10:37]free response buf [11:10:37]execute_script done [11:10:37]execute_script returns [11:10:37]free content buf [11:10:37]Sock 9.Close socket [11:10:37]Sock 9.Thread stoped [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:27]accept exits with 7 [11:15:27]New connection [11:15:27]New thread 3066723684 created [11:15:27]Thread 3066580324 joined [11:15:27]Waiting for new connection... [11:15:27] Sock 7.Parse request [11:15:27]Sock 7.Check first char [11:15:27]Sock 7.First char is OK [11:15:27]request: POST /json_proto HTTP/1.0 [11:15:27]Method: POST [11:15:27]URL: /json_proto [11:15:27]Method is POST - this is cgi request [11:15:27]url: /json_proto [11:15:27]query_string will be loaded in cgi processing [11:15:27]execute_cgi json_proto POST (null) [11:15:27]execute_cgi path=json_proto method=POST [11:15:27]POST find Content-Length [11:15:27]Host: 172.17.37.4:8080 [11:15:27]Content-Length: 677 [11:15:27]Content-Type: application/json [11:15:27] [11:15:27]POST finish read [11:15:27]Found Content-Length = 677 [11:15:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:27]execute_script... [11:15:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:27]POST & json_proto [11:15:27]process_json_proto [11:15:27]json parsed OK: [11:15:27]protocol is kg_v1.0 [11:15:27]action value=close_receipt [11:15:27]process_action close_receipt [11:15:27]cmd_close_receipt [11:15:27]MH_GetDate [11:15:27]Write to MH i2c: F0 00 00 61 1D 6D [11:15:27]Write i2c OK [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: F0 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: F0 09 00 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: F0 09 00 61 1D 00 53 5C 44 67 B8 5A 43 67 8C [11:15:27]GetLastDocTimeStamp 1732533037 [11:15:27]current date 1732533331 [11:15:27]FM_GetShiftState [11:15:27]SAM_PROTO_GetShiftState [11:15:27]wFMCommunicate request_size=4 [11:15:27]MH_SAM_APDU [11:15:27]CAPDU: 80 13 01 00 [11:15:27]Write to MH i2c: E2 08 00 62 1D 80 13 01 00 00 00 00 00 FC [11:15:27]Write i2c OK [11:15:27]MH_I2C_Read... [11:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:27]Read from MH i2c: E2 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 0E 00 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 0E 00 62 1D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 7B [11:15:27]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:15:27]wFMCommunicate OK [11:15:27]SAM_PROTO_GetShiftState done [11:15:27]FM_GetShiftState done [11:15:27]opened in 1732493066 [11:15:27]opened+sec_in_day 1732579466 [11:15:27]quantity*price = 40035 [11:15:27]sum+1 = 40037 [11:15:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 47 25.11.2024 11:15 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123006 ФПД: 249709358116438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T111531&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123006&fm=249709358116438&tin=02508201610067®Number=0000000000092681&sum=40000 [11:15:28]StoreToDocumentArchive [11:15:28]shift 556 fd 123006 [11:15:28]save to /storage/0556/doc_00123006 [11:15:28]save last doc name /storage/0556/doc_00123006 to /storage/kkm_last_doc_name [11:15:28]save OK [11:15:28]Clear old archive folders... [11:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:28]tlvbuf is 02057BB0 [11:15:28]SAM_PROTO_ClearQueue [11:15:28]wFMCommunicate request_size=4 [11:15:28]MH_SAM_APDU [11:15:28]CAPDU: 80 09 00 00 [11:15:28]Write to MH i2c: E2 08 00 6F 1D 80 09 00 00 00 00 00 00 FE [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:28]Read from MH i2c: E2 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 6F 1D 00 90 00 00 [11:15:28]RAPDU: 90 00 [11:15:28]wFMCommunicate OK [11:15:28]SAM_PROTO_ClearQueue done [11:15:28]KKMCreateOFDPacket [11:15:28]OFDProtocolAddRootSTLVToBuf [11:15:28]FM_MakeSignedData [11:15:28]FM_MakeSignedData [11:15:28]SAM_PROTO_SignData [11:15:28]wFMCommunicate request_size=4 [11:15:28]MH_SAM_APDU [11:15:28]CAPDU: 80 0D 01 02 [11:15:28]Write to MH i2c: E2 08 00 70 1D 80 0D 01 02 00 00 00 00 06 [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:28]Read from MH i2c: E2 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 70 1D 00 90 00 01 [11:15:28]RAPDU: 90 00 [11:15:28]wFMCommunicate OK [11:15:28]wFMCommunicate request_size=255 [11:15:28]MH_SAM_APDU [11:15:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 2F 00 00 00 F4 03 04 00 53 5C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E0 01 00 35 04 06 00 E3 [11:15:28]Write to MH i2c: E2 02 01 71 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 2F 00 00 00 F4 03 04 00 53 5C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E0 01 00 35 04 06 00 E3 00 00 8D [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:28]Read from MH i2c: E2 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 71 1D 00 90 00 02 [11:15:28]RAPDU: 90 00 [11:15:28]wFMCommunicate OK [11:15:28]wFMCommunicate request_size=10 [11:15:28]MH_SAM_APDU [11:15:28]CAPDU: 80 0D 02 02 05 1B FD 96 6E 56 [11:15:28]Write to MH i2c: E2 0D 00 72 1D 80 0D 02 02 05 00 1B FD 96 6E 56 00 00 85 [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:28]Read from MH i2c: E2 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 72 1D 00 90 00 03 [11:15:28]RAPDU: 90 00 [11:15:28]wFMCommunicate OK [11:15:28]wFMCommunicate request_size=4 [11:15:28]MH_SAM_APDU [11:15:28]CAPDU: 80 0D 03 02 [11:15:28]Write to MH i2c: E2 08 00 73 1D 80 0D 03 02 00 00 00 00 0B [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:28]Read from MH i2c: E2 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 0B 00 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 0B 00 73 1D 00 D2 97 BE 19 12 BD 3A 66 90 00 BB [11:15:28]RAPDU: D2 97 BE 19 12 BD 3A 66 90 00 [11:15:28]wFMCommunicate OK [11:15:28]SAM_PROTO_SignData done [11:15:28]FM_MakeSignedData done [11:15:28]CreateOFDProtocolMessage [11:15:28]wFMCommunicate request_size=4 [11:15:28]MH_SAM_APDU [11:15:28]CAPDU: 80 11 00 00 [11:15:28]Write to MH i2c: E2 08 00 74 1D 80 11 00 00 00 00 00 00 0B [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:28]Read from MH i2c: E2 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 17 00 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 17 00 74 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 62 [11:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:15:28]wFMCommunicate OK [11:15:28]CreateOFDProtocolMessage done [11:15:28]OFDSenderStorePacket 123006 [11:15:28]StoreOFDPacket docnum=123006 [11:15:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DF CB 07 01 CA 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 2F 00 00 00 F4 03 04 00 53 5C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E0 01 00 35 04 06 00 E3 1B FD 96 6E 56 D2 97 BE 19 12 BD 3A 66 [11:15:28]CheckFolder [11:15:28]dirname=/storage/ofd_packets [11:15:28]CheckFolder done [11:15:28]ProducePacketName [11:15:28]name=ofd_packets/00123006 [11:15:28]NVStorageSaveData ofd_packets/00123006 [11:15:28]File name is /storage/ofd_packets/00123006 [11:15:28]Write 301 bytes [11:15:28]NVStorageSaveData done [11:15:28]OFDSenderStorePacket done [11:15:28]KKMCreateOFDPacket done [11:15:28]NVStorageSaveData kkm_last_timestamp [11:15:28]File name is /storage/kkm_last_timestamp [11:15:28]Write 4 bytes [11:15:28]NVStorageSaveData done [11:15:28]ExternCall_PrintAddStr [11:15:28]wPrintStart [11:15:28]Write to MH i2c: 01 00 00 75 1D 92 [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: 01 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: 01 07 00 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: 01 07 00 75 1D 00 00 00 00 00 FF 0F A7 [11:15:28]RasterBufferAndPrint [11:15:28]line Счет N : (1)717798 [11:15:28]line ИНН: 02508201610067 [11:15:28]line Контрольно-Кассовый Чек [11:15:28]line ПРОДАЖА [11:15:28]line ТРК (МРК, ГНК) : 42 [11:15:28]line Товар: 2710124130 [11:15:28]line Аи-92-К-4 [11:15:28]line 5.940 * 67.40 [11:15:28]line = 400.36 [11:15:28]line НДС 12% НСП 1% [11:15:28]line > о реализуемом товаре [11:15:28]line ОКРУГЛЕНИЕ: -0.36 [11:15:28]line ИТОГО: 400.00 [11:15:28]line Внесено: 400.00 [11:15:28]line СДАЧА: 0.00 [11:15:28]line НСП 1% : 3.54 [11:15:28]line НДС 12% : 42.52 [11:15:28]line Наличными: 400.00 [11:15:28]line Безнал.: 0.00 [11:15:28]line Место: АЗС № 64 "Партнер Нефть" [11:15:28]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:15:28]line СНО: Общий режим [11:15:28]line Чек 47 25.11.2024 11:15 [11:15:28]line Смена: 556 ФФД: 1.0 [11:15:28]line ЗНМ: 0300000033 [11:15:28]line РНМ: 0000000000092681 [11:15:28]line Версия ККМ: 001 [11:15:28]line ФМ: 0000000000874881 [11:15:28]line ФД: 123006 [11:15:28]line ФПД: 249709358116438 [11:15:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T111531&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123006&fm=249709358116438&tin=02508201610067®Number=0000000000092681&sum=40000 [11:15:29]OFD Sender: Processing packet 123006 [packets to send 7, broken 6] [11:15:29]ProducePacketName [11:15:29]name=ofd_packets/00123006 [11:15:29]OFD Sender: To server: pG, [11:15:29]CommunicateWithHost lk.salyk.kg:30040 [11:15:29]ConnectInit lk.salyk.kg [11:15:29]written 0, free lines is 4095 [11:15:29]Connected sock=10 [11:15:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DF CB 07 01 CA 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 2F 00 00 00 F4 03 04 00 53 5C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E0 01 00 35 04 06 00 E3 1B FD 96 6E 56 D2 97 BE 19 12 BD 3A 66 [11:15:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 FC 33 47 00 9C FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E0 01 00 F4 03 04 00 19 08 44 67 B6 04 01 00 00 4C FB A7 A9 1C D0 B8 48 [11:15:29]CommunicateWithHost err = 0 [11:15:29]CheckOFDResponse [11:15:29]1017 (14) - 77093643461234 [11:15:29]1041 (16) - 0000000000874881 [11:15:29]1040 (4) - 123006 [11:15:29]1012 (4) - 25.11.2024 05:16 [11:15:29]1206 (1) - 0 [11:15:29]OFD Sender: Remove packet 123006 [11:15:29]ProducePacketName [11:15:29]name=ofd_packets/00123006 [11:15:29]NVStorageDeleteData [11:15:29]Write to MH i2c: 01 00 00 A0 1D BD [11:15:29]Write i2c OK [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: 01 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: 01 07 00 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: 01 07 00 A0 1D 00 00 00 00 00 4B 0C 1B [11:15:29]RasterBufferAndPrint [11:15:29]line [11:15:29]line [11:15:29]line [11:15:29]line [11:15:29]line [11:15:29]written 0, free lines is 3151 [11:15:29]MH_Cut [11:15:29]Write to MH i2c: D1 01 00 A7 1D 01 96 [11:15:29]Write i2c OK [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: D1 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: D1 01 00 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: D1 01 00 A7 1D 00 95 [11:15:29]Write to MH i2c: 01 00 00 A8 1D C5 [11:15:29]Write i2c OK [11:15:29]MH_I2C_Read... [11:15:29]OFD Sender: No OFD packet to send [11:15:30]*** Cut start [11:15:30]*** Partial cut [11:15:30]*** CUTSNS_PIN = 1 [11:15:30]*** CUTSNS_PIN = 0 [11:15:31]*** Brake cut motor [11:15:31]Read from MH i2c: 01 [11:15:31]MH_I2C_Read... [11:15:31]*** Stop cut motor [11:15:31]*** Cut end [11:15:31]Read from MH i2c: 01 07 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: 01 07 00 A8 1D 00 00 00 00 00 FF 0F DA [11:15:31]process_action close_receipt done [11:15:31]requested_data is exist [11:15:31]produce_requested_data [11:15:31]requested_item fm.sn is exist - process it [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 11 00 00 [11:15:31]Write to MH i2c: E2 08 00 A9 1D 80 11 00 00 00 00 00 00 40 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 17 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 17 00 A9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 97 [11:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:15:31]wFMCommunicate OK [11:15:31]requested_item fd.num is exist - process it [11:15:31]SAM_PROTO_GetFieldsCounters [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 13 00 00 [11:15:31]Write to MH i2c: E2 08 00 AA 1D 80 13 00 00 00 00 00 00 43 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 62 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 62 00 AA 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7E E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [11:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7E E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:31]wFMCommunicate OK [11:15:31]SAM_PROTO_GetFieldsCounters done [11:15:31]requested_item shift.num is exist - process it [11:15:31]requested_item shift.opened is exist - process it [11:15:31]req_shift_opened [11:15:31]FM_GetShiftState [11:15:31]SAM_PROTO_GetShiftState [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 13 01 00 [11:15:31]Write to MH i2c: E2 08 00 AB 1D 80 13 01 00 00 00 00 00 45 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 0E 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 0E 00 AB 1D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C4 [11:15:31]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:15:31]wFMCommunicate OK [11:15:31]SAM_PROTO_GetShiftState done [11:15:31]FM_GetShiftState done [11:15:31]req_shift_opened done [11:15:31]requested_item shift.open_date is exist - process it [11:15:31]req_shift_open_date [11:15:31]req_shift_open_date done [11:15:31]produce_requested_data done [11:15:31]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123006,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:15:31]process_action_free close_receipt [11:15:31]json_value_free [11:15:31]json_value_free done [11:15:31]process_json_proto returns [11:15:31]Send response to host [11:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123006,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:15:31]free response buf [11:15:31]execute_script done [11:15:31]execute_script returns [11:15:31]free content buf [11:15:31]Sock 7.Close socket [11:15:31]Sock 7.Thread stoped [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:17]accept exits with 9 [11:17:17]New connection [11:17:17]New thread 3066580324 created [11:17:17]Thread 3066723684 joined [11:17:17]Waiting for new connection... [11:17:17] Sock 9.Parse request [11:17:17]Sock 9.Check first char [11:17:17]Sock 9.First char is OK [11:17:17]request: POST /json_proto HTTP/1.0 [11:17:17]Method: POST [11:17:17]URL: /json_proto [11:17:17]Method is POST - this is cgi request [11:17:17]url: /json_proto [11:17:17]query_string will be loaded in cgi processing [11:17:17]execute_cgi json_proto POST (null) [11:17:17]execute_cgi path=json_proto method=POST [11:17:17]POST find Content-Length [11:17:17]Host: 172.17.37.4:8080 [11:17:17]Content-Length: 678 [11:17:17]Content-Type: application/json [11:17:17] [11:17:17]POST finish read [11:17:17]Found Content-Length = 678 [11:17:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:17]execute_script... [11:17: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)717799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:17]POST & json_proto [11:17:17]process_json_proto [11:17:17]json parsed OK: [11:17:17]protocol is kg_v1.0 [11:17:17]action value=close_receipt [11:17:17]process_action close_receipt [11:17:17]cmd_close_receipt [11:17:17]MH_GetDate [11:17:17]Write to MH i2c: F0 00 00 AC 1D B8 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: F0 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: F0 09 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: F0 09 00 AC 1D 00 C1 5C 44 67 B8 5A 43 67 45 [11:17:17]GetLastDocTimeStamp 1732533331 [11:17:17]current date 1732533441 [11:17:17]FM_GetShiftState [11:17:17]SAM_PROTO_GetShiftState [11:17:17]wFMCommunicate request_size=4 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 13 01 00 [11:17:17]Write to MH i2c: E2 08 00 AD 1D 80 13 01 00 00 00 00 00 47 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 0E 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 0E 00 AD 1D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C6 [11:17:17]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:17:17]wFMCommunicate OK [11:17:17]SAM_PROTO_GetShiftState done [11:17:17]FM_GetShiftState done [11:17:17]opened in 1732493066 [11:17:17]opened+sec_in_day 1732579466 [11:17:17]quantity*price = 70028 [11:17:17]sum+1 = 70030 [11:17:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 48 25.11.2024 11:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123007 ФПД: 112840352872173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T111721&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123007&fm=112840352872173&tin=02508201610067®Number=0000000000092681&sum=70000 [11:17:18]StoreToDocumentArchive [11:17:18]shift 556 fd 123007 [11:17:18]save to /storage/0556/doc_00123007 [11:17:18]save last doc name /storage/0556/doc_00123007 to /storage/kkm_last_doc_name [11:17:18]save OK [11:17:18]Clear old archive folders... [11:17:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:18]tlvbuf is 02057B40 [11:17:18]SAM_PROTO_ClearQueue [11:17:18]wFMCommunicate request_size=4 [11:17:18]MH_SAM_APDU [11:17:18]CAPDU: 80 09 00 00 [11:17:18]Write to MH i2c: E2 08 00 BA 1D 80 09 00 00 00 00 00 00 49 [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:18]Read from MH i2c: E2 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 03 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 03 00 BA 1D 00 90 00 4B [11:17:18]RAPDU: 90 00 [11:17:18]wFMCommunicate OK [11:17:18]SAM_PROTO_ClearQueue done [11:17:18]KKMCreateOFDPacket [11:17:18]OFDProtocolAddRootSTLVToBuf [11:17:18]FM_MakeSignedData [11:17:18]FM_MakeSignedData [11:17:18]SAM_PROTO_SignData [11:17:18]wFMCommunicate request_size=4 [11:17:18]MH_SAM_APDU [11:17:18]CAPDU: 80 0D 01 02 [11:17:18]Write to MH i2c: E2 08 00 BB 1D 80 0D 01 02 00 00 00 00 51 [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:18]Read from MH i2c: E2 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 03 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 03 00 BB 1D 00 90 00 4C [11:17:18]RAPDU: 90 00 [11:17:18]wFMCommunicate OK [11:17:18]wFMCommunicate request_size=255 [11:17:18]MH_SAM_APDU [11:17:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 30 00 00 00 F4 03 04 00 C1 5C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E0 01 00 35 04 06 00 66 [11:17:18]Write to MH i2c: E2 02 01 BC 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 30 00 00 00 F4 03 04 00 C1 5C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E0 01 00 35 04 06 00 66 00 00 B2 [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:18]Read from MH i2c: E2 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 03 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 03 00 BC 1D 00 90 00 4D [11:17:18]RAPDU: 90 00 [11:17:18]wFMCommunicate OK [11:17:18]wFMCommunicate request_size=10 [11:17:18]MH_SAM_APDU [11:17:18]CAPDU: 80 0D 02 02 05 A0 B1 26 36 ED [11:17:18]Write to MH i2c: E2 0D 00 BD 1D 80 0D 02 02 05 00 A0 B1 26 36 ED 00 00 F8 [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:18]Read from MH i2c: E2 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 03 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 03 00 BD 1D 00 90 00 4E [11:17:18]RAPDU: 90 00 [11:17:18]wFMCommunicate OK [11:17:18]wFMCommunicate request_size=4 [11:17:18]MH_SAM_APDU [11:17:18]CAPDU: 80 0D 03 02 [11:17:18]Write to MH i2c: E2 08 00 BE 1D 80 0D 03 02 00 00 00 00 56 [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:18]Read from MH i2c: E2 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 0B 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 0B 00 BE 1D 00 27 45 0A 7D 16 6F 13 D1 90 00 B3 [11:17:18]RAPDU: 27 45 0A 7D 16 6F 13 D1 90 00 [11:17:18]wFMCommunicate OK [11:17:18]SAM_PROTO_SignData done [11:17:18]FM_MakeSignedData done [11:17:18]CreateOFDProtocolMessage [11:17:18]wFMCommunicate request_size=4 [11:17:18]MH_SAM_APDU [11:17:18]CAPDU: 80 11 00 00 [11:17:18]Write to MH i2c: E2 08 00 BF 1D 80 11 00 00 00 00 00 00 56 [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:18]Read from MH i2c: E2 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 17 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 17 00 BF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AD [11:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:17:18]wFMCommunicate OK [11:17:18]CreateOFDProtocolMessage done [11:17:18]OFDSenderStorePacket 123007 [11:17:18]StoreOFDPacket docnum=123007 [11:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C6 7D 07 01 1D AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 30 00 00 00 F4 03 04 00 C1 5C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E0 01 00 35 04 06 00 66 A0 B1 26 36 ED 27 45 0A 7D 16 6F 13 D1 [11:17:18]CheckFolder [11:17:18]dirname=/storage/ofd_packets [11:17:18]CheckFolder done [11:17:18]ProducePacketName [11:17:18]name=ofd_packets/00123007 [11:17:18]NVStorageSaveData ofd_packets/00123007 [11:17:18]File name is /storage/ofd_packets/00123007 [11:17:18]Write 301 bytes [11:17:18]NVStorageSaveData done [11:17:18]OFDSenderStorePacket done [11:17:18]KKMCreateOFDPacket done [11:17:18]NVStorageSaveData kkm_last_timestamp [11:17:18]File name is /storage/kkm_last_timestamp [11:17:18]Write 4 bytes [11:17:18]NVStorageSaveData done [11:17:18]ExternCall_PrintAddStr [11:17:18]wPrintStart [11:17:18]Write to MH i2c: 01 00 00 C0 1D DD [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: 01 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: 01 07 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: 01 07 00 C0 1D 00 00 00 00 00 FF 0F F2 [11:17:18]RasterBufferAndPrint [11:17:18]line Счет N : (1)717799 [11:17:18]line ИНН: 02508201610067 [11:17:18]line Контрольно-Кассовый Чек [11:17:18]line ПРОДАЖА [11:17:18]line ТРК (МРК, ГНК) : 32 [11:17:18]line Товар: 2710124130 [11:17:18]line Аи-92-К-4 [11:17:18]line 10.390 * 67.40 [11:17:18]line = 700.29 [11:17:18]line НДС 12% НСП 1% [11:17:18]line > о реализуемом товаре [11:17:18]line ОКРУГЛЕНИЕ: -0.29 [11:17:18]line ИТОГО: 700.00 [11:17:18]line Внесено: 700.00 [11:17:18]line СДАЧА: 0.00 [11:17:18]line НСП 1% : 6.20 [11:17:18]line НДС 12% : 74.37 [11:17:18]line Наличными: 700.00 [11:17:18]line Безнал.: 0.00 [11:17:18]line Место: АЗС № 64 "Партнер Нефть" [11:17:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:17:18]line СНО: Общий режим [11:17:18]line Чек 48 25.11.2024 11:17 [11:17:18]line Смена: 556 ФФД: 1.0 [11:17:18]line ЗНМ: 0300000033 [11:17:18]line РНМ: 0000000000092681 [11:17:18]line Версия ККМ: 001 [11:17:18]line ФМ: 0000000000874881 [11:17:18]line ФД: 123007 [11:17:18]line ФПД: 112840352872173 [11:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T111721&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123007&fm=112840352872173&tin=02508201610067®Number=0000000000092681&sum=70000 [11:17:19]OFD Sender: Processing packet 123007 [packets to send 7, broken 6] [11:17:19]ProducePacketName [11:17:19]name=ofd_packets/00123007 [11:17:19]OFD Sender: To server: pG, [11:17:19]CommunicateWithHost lk.salyk.kg:30040 [11:17:19]ConnectInit lk.salyk.kg [11:17:19]written 0, free lines is 4095 [11:17:19]Connected sock=10 [11:17:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C6 7D 07 01 1D AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 30 00 00 00 F4 03 04 00 C1 5C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E0 01 00 35 04 06 00 66 A0 B1 26 36 ED 27 45 0A 7D 16 6F 13 D1 [11:17:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 86 F1 47 00 7D BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E0 01 00 F4 03 04 00 87 08 44 67 B6 04 01 00 00 66 D6 E2 9A 01 81 78 CE [11:17:19]CommunicateWithHost err = 0 [11:17:19]CheckOFDResponse [11:17:19]1017 (14) - 77093643461234 [11:17:19]1041 (16) - 0000000000874881 [11:17:19]1040 (4) - 123007 [11:17:19]1012 (4) - 25.11.2024 05:17 [11:17:19]1206 (1) - 0 [11:17:19]OFD Sender: Remove packet 123007 [11:17:19]ProducePacketName [11:17:19]name=ofd_packets/00123007 [11:17:19]NVStorageDeleteData [11:17:19]Write to MH i2c: 01 00 00 EB 1D 08 [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: 01 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: 01 07 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: 01 07 00 EB 1D 00 00 00 00 00 3F 0C 5A [11:17:19]RasterBufferAndPrint [11:17:19]line [11:17:19]line [11:17:19]line [11:17:19]line [11:17:19]line [11:17:19]written 0, free lines is 3141 [11:17:19]MH_Cut [11:17:19]Write to MH i2c: D1 01 00 F2 1D 01 E1 [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: D1 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: D1 01 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: D1 01 00 F2 1D 00 E0 [11:17:19]Write to MH i2c: 01 00 00 F3 1D 10 [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]OFD Sender: No OFD packet to send [11:17:20]*** Cut start [11:17:20]*** Partial cut [11:17:20]*** CUTSNS_PIN = 1 [11:17:21]*** CUTSNS_PIN = 0 [11:17:21]*** Brake cut motor [11:17:21]Read from MH i2c: 01 [11:17:21]MH_I2C_Read... [11:17:21]*** Stop cut motor [11:17:21]*** Cut end [11:17:21]Read from MH i2c: 01 07 00 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: 01 07 00 F3 1D 00 00 00 00 00 FF 0F 25 [11:17:21]process_action close_receipt done [11:17:21]requested_data is exist [11:17:21]produce_requested_data [11:17:21]requested_item fm.sn is exist - process it [11:17:21]wFMCommunicate request_size=4 [11:17:21]MH_SAM_APDU [11:17:21]CAPDU: 80 11 00 00 [11:17:21]Write to MH i2c: E2 08 00 F4 1D 80 11 00 00 00 00 00 00 8B [11:17:21]Write i2c OK [11:17:21]MH_I2C_Read... [11:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:21]Read from MH i2c: E2 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: E2 17 00 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: E2 17 00 F4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E2 [11:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:17:21]wFMCommunicate OK [11:17:21]requested_item fd.num is exist - process it [11:17:21]SAM_PROTO_GetFieldsCounters [11:17:21]wFMCommunicate request_size=4 [11:17:21]MH_SAM_APDU [11:17:21]CAPDU: 80 13 00 00 [11:17:21]Write to MH i2c: E2 08 00 F5 1D 80 13 00 00 00 00 00 00 8E [11:17:21]Write i2c OK [11:17:21]MH_I2C_Read... [11:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:21]Read from MH i2c: E2 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: E2 62 00 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: E2 62 00 F5 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7F E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [11:17:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7F E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:21]wFMCommunicate OK [11:17:21]SAM_PROTO_GetFieldsCounters done [11:17:21]requested_item shift.num is exist - process it [11:17:21]requested_item shift.opened is exist - process it [11:17:21]req_shift_opened [11:17:21]FM_GetShiftState [11:17:21]SAM_PROTO_GetShiftState [11:17:21]wFMCommunicate request_size=4 [11:17:21]MH_SAM_APDU [11:17:21]CAPDU: 80 13 01 00 [11:17:21]Write to MH i2c: E2 08 00 F6 1D 80 13 01 00 00 00 00 00 90 [11:17:21]Write i2c OK [11:17:21]MH_I2C_Read... [11:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:21]Read from MH i2c: E2 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: E2 0E 00 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: E2 0E 00 F6 1D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0F [11:17:21]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:17:21]wFMCommunicate OK [11:17:21]SAM_PROTO_GetShiftState done [11:17:21]FM_GetShiftState done [11:17:21]req_shift_opened done [11:17:21]requested_item shift.open_date is exist - process it [11:17:21]req_shift_open_date [11:17:21]req_shift_open_date done [11:17:21]produce_requested_data done [11:17:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123007,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:17:21]process_action_free close_receipt [11:17:21]json_value_free [11:17:21]json_value_free done [11:17:21]process_json_proto returns [11:17:21]Send response to host [11:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123007,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:17:21]free response buf [11:17:21]execute_script done [11:17:21]execute_script returns [11:17:21]free content buf [11:17:21]Sock 9.Close socket [11:17:21]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:33]accept exits with 7 [11:19:33]New connection [11:19:33]New thread 3066723684 created [11:19:33]Thread 3066580324 joined [11:19:33]Waiting for new connection... [11:19:33] Sock 7.Parse request [11:19:33]Sock 7.Check first char [11:19:33]Sock 7.First char is OK [11:19:33]request: POST /json_proto HTTP/1.0 [11:19:33]Method: POST [11:19:33]URL: /json_proto [11:19:33]Method is POST - this is cgi request [11:19:33]url: /json_proto [11:19:33]query_string will be loaded in cgi processing [11:19:33]execute_cgi json_proto POST (null) [11:19:33]execute_cgi path=json_proto method=POST [11:19:33]POST find Content-Length [11:19:33]Host: 172.17.37.4:8080 [11:19:33]Content-Length: 801 [11:19:33]Content-Type: application/json [11:19:33] [11:19:33]POST finish read [11:19:33]Found Content-Length = 801 [11:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 10.620, "sum" : 800.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:33]execute_script... [11:19: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)717800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 10.620, "sum" : 800.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:33]POST & json_proto [11:19:33]process_json_proto [11:19:33]json parsed OK: [11:19:33]protocol is kg_v1.0 [11:19:33]action value=close_receipt [11:19:33]process_action close_receipt [11:19:33]cmd_close_receipt [11:19:33]MH_GetDate [11:19:33]Write to MH i2c: F0 00 00 F7 1D 03 [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: F0 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: F0 09 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: F0 09 00 F7 1D 00 4A 5D 44 67 B8 5A 43 67 1A [11:19:33]GetLastDocTimeStamp 1732533441 [11:19:33]current date 1732533578 [11:19:33]FM_GetShiftState [11:19:33]SAM_PROTO_GetShiftState [11:19:33]wFMCommunicate request_size=4 [11:19:33]MH_SAM_APDU [11:19:33]CAPDU: 80 13 01 00 [11:19:33]Write to MH i2c: E2 08 00 F8 1D 80 13 01 00 00 00 00 00 92 [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:33]Read from MH i2c: E2 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 0E 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 0E 00 F8 1D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 11 [11:19:33]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:19:33]wFMCommunicate OK [11:19:33]SAM_PROTO_GetShiftState done [11:19:33]FM_GetShiftState done [11:19:33]opened in 1732493066 [11:19:33]opened+sec_in_day 1732579466 [11:19:33]quantity*price = 80074 [11:19:33]sum+1 = 80076 [11:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.75 НСП 1% : 7.09 НДС 12% : 85.03 Наличными: 0.00 Безнал.: 800.75 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 49 25.11.2024 11:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123008 ФПД: 232101194437721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T111938&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123008&fm=232101194437721&tin=02508201610067®Number=0000000000092681&sum=80075 [11:19:34]StoreToDocumentArchive [11:19:34]shift 556 fd 123008 [11:19:34]save to /storage/0556/doc_00123008 [11:19:34]save last doc name /storage/0556/doc_00123008 to /storage/kkm_last_doc_name [11:19:34]save OK [11:19:34]Clear old archive folders... [11:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:34]tlvbuf is 0208FE80 [11:19:34]SAM_PROTO_ClearQueue [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 09 00 00 [11:19:34]Write to MH i2c: E2 08 00 05 1E 80 09 00 00 00 00 00 00 95 [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 05 1E 00 90 00 97 [11:19:35]RAPDU: 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_ClearQueue done [11:19:35]KKMCreateOFDPacket [11:19:35]OFDProtocolAddRootSTLVToBuf [11:19:35]FM_MakeSignedData [11:19:35]FM_MakeSignedData [11:19:35]SAM_PROTO_SignData [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 0D 01 02 [11:19:35]Write to MH i2c: E2 08 00 06 1E 80 0D 01 02 00 00 00 00 9D [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:35]OFD Sender: No OFD packet to send [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 06 1E 00 90 00 98 [11:19:35]RAPDU: 90 00 [11:19:35]wFMCommunicate OK [11:19:35]wFMCommunicate request_size=255 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 CB 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 4A 5D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 80 E0 01 00 35 04 06 00 D3 [11:19:35]Write to MH i2c: E2 02 01 07 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 CB 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 4A 5D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 80 E0 01 00 35 04 06 00 D3 00 00 F6 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 07 1E 00 90 00 99 [11:19:35]RAPDU: 90 00 [11:19:35]wFMCommunicate OK [11:19:35]wFMCommunicate request_size=10 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 0D 02 02 05 18 45 3F 14 59 [11:19:35]Write to MH i2c: E2 0D 00 08 1E 80 0D 02 02 05 00 18 45 3F 14 59 00 00 B3 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 08 1E 00 90 00 9A [11:19:35]RAPDU: 90 00 [11:19:35]wFMCommunicate OK [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 0D 03 02 [11:19:35]Write to MH i2c: E2 08 00 09 1E 80 0D 03 02 00 00 00 00 A2 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0B 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0B 00 09 1E 00 AE CA 3F 2F 0C 0C F5 24 90 00 BA [11:19:35]RAPDU: AE CA 3F 2F 0C 0C F5 24 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_SignData done [11:19:35]FM_MakeSignedData done [11:19:35]CreateOFDProtocolMessage [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 11 00 00 [11:19:35]Write to MH i2c: E2 08 00 0A 1E 80 11 00 00 00 00 00 00 A2 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 17 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 17 00 0A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F9 [11:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:19:35]wFMCommunicate OK [11:19:35]CreateOFDProtocolMessage done [11:19:35]OFDSenderStorePacket 123008 [11:19:35]StoreOFDPacket docnum=123008 [11:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 87 2B 07 01 7B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 CB 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 4A 5D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 80 E0 01 00 35 04 06 00 D3 18 45 3F 14 59 AE CA 3F 2F 0C 0C F5 24 [11:19:35]CheckFolder [11:19:35]dirname=/storage/ofd_packets [11:19:35]CheckFolder done [11:19:35]ProducePacketName [11:19:35]name=ofd_packets/00123008 [11:19:35]NVStorageSaveData ofd_packets/00123008 [11:19:35]File name is /storage/ofd_packets/00123008 [11:19:35]Write 301 bytes [11:19:35]NVStorageSaveData done [11:19:35]OFDSenderStorePacket done [11:19:35]KKMCreateOFDPacket done [11:19:35]NVStorageSaveData kkm_last_timestamp [11:19:35]File name is /storage/kkm_last_timestamp [11:19:35]Write 4 bytes [11:19:35]NVStorageSaveData done [11:19:35]ExternCall_PrintAddStr [11:19:35]wPrintStart [11:19:35]Write to MH i2c: 01 00 00 0B 1E 29 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 07 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 07 00 0B 1E 00 00 00 00 00 FF 0F 3E [11:19:35]RasterBufferAndPrint [11:19:35]line Счет N : (1)717800 [11:19:35]line ИНН: 02508201610067 [11:19:35]line Контрольно-Кассовый Чек [11:19:35]line ПРОДАЖА [11:19:35]line ТРК (МРК, ГНК) : 11 [11:19:35]line Товар: 2710124500 [11:19:35]line Аи-95-К-5 [11:19:35]line 10.620 * 75.40 [11:19:35]line = 800.75 [11:19:35]line НДС 12% НСП 1% [11:19:35]line > о реализуемом товаре [11:19:35]line ИТОГО: 800.75 [11:19:35]line НСП 1% : 7.09 [11:19:35]line НДС 12% : 85.03 [11:19:35]line Наличными: 0.00 [11:19:35]line Безнал.: 800.75 [11:19:35]line Место: АЗС № 64 "Партнер Нефть" [11:19:35]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:19:35]line СНО: Общий режим [11:19:35]line Чек 49 25.11.2024 11:19 [11:19:35]line Смена: 556 ФФД: 1.0 [11:19:35]line ЗНМ: 0300000033 [11:19:35]line РНМ: 0000000000092681 [11:19:35]line Версия ККМ: 001 [11:19:35]line Платежная система: O! деньги [11:19:35]line ФМ: 0000000000874881 [11:19:35]line ФД: 123008 [11:19:35]line ФПД: 232101194437721 [11:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T111938&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123008&fm=232101194437721&tin=02508201610067®Number=0000000000092681&sum=80075 [11:19:35]OFD Sender: Processing packet 123008 [packets to send 7, broken 6] [11:19:35]ProducePacketName [11:19:35]name=ofd_packets/00123008 [11:19:35]OFD Sender: To server: pG, [11:19:35]CommunicateWithHost lk.salyk.kg:30040 [11:19:35]ConnectInit lk.salyk.kg [11:19:35]written 0, free lines is 4095 [11:19:35]Connected sock=10 [11:19:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 87 2B 07 01 7B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 CB 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 4A 5D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 80 E0 01 00 35 04 06 00 D3 18 45 3F 14 59 AE CA 3F 2F 0C 0C F5 24 [11:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 78 4E 47 00 8E 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 34 38 38 31 10 04 04 00 80 E0 01 00 F4 03 04 00 10 09 44 67 B6 04 01 00 00 23 45 81 4C 7C BC 14 FF [11:19:36]CommunicateWithHost err = 0 [11:19:36]CheckOFDResponse [11:19:36]1017 (14) - 77093643461234 [11:19:36]1041 (16) - 0000000000874881 [11:19:36]1040 (4) - 123008 [11:19:36]1012 (4) - 25.11.2024 05:20 [11:19:36]1206 (1) - 0 [11:19:36]OFD Sender: Remove packet 123008 [11:19:36]ProducePacketName [11:19:36]name=ofd_packets/00123008 [11:19:36]NVStorageDeleteData [11:19:36]Write to MH i2c: 01 00 00 35 1E 53 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 07 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 07 00 35 1E 00 00 00 00 00 55 0C BB [11:19:36]RasterBufferAndPrint [11:19:36]line [11:19:36]line [11:19:36]line [11:19:36]line [11:19:36]line [11:19:36]written 0, free lines is 3164 [11:19:36]MH_Cut [11:19:36]Write to MH i2c: D1 01 00 3C 1E 01 2C [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: D1 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: D1 01 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: D1 01 00 3C 1E 00 2B [11:19:36]Write to MH i2c: 01 00 00 3D 1E 5B [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]OFD Sender: No OFD packet to send [11:19:37]*** Cut start [11:19:37]*** Partial cut [11:19:37]*** CUTSNS_PIN = 1 [11:19:37]*** CUTSNS_PIN = 0 [11:19:37]*** Brake cut motor [11:19:38]Read from MH i2c: 01 [11:19:38]MH_I2C_Read... [11:19:38]*** Stop cut motor [11:19:38]*** Cut end [11:19:38]Read from MH i2c: 01 07 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: 01 07 00 3D 1E 00 00 00 00 00 FF 0F 70 [11:19:38]process_action close_receipt done [11:19:38]requested_data is exist [11:19:38]produce_requested_data [11:19:38]requested_item fm.sn is exist - process it [11:19:38]wFMCommunicate request_size=4 [11:19:38]MH_SAM_APDU [11:19:38]CAPDU: 80 11 00 00 [11:19:38]Write to MH i2c: E2 08 00 3E 1E 80 11 00 00 00 00 00 00 D6 [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:38]Read from MH i2c: E2 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 17 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 17 00 3E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2D [11:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:19:38]wFMCommunicate OK [11:19:38]requested_item fd.num is exist - process it [11:19:38]SAM_PROTO_GetFieldsCounters [11:19:38]wFMCommunicate request_size=4 [11:19:38]MH_SAM_APDU [11:19:38]CAPDU: 80 13 00 00 [11:19:38]Write to MH i2c: E2 08 00 3F 1E 80 13 00 00 00 00 00 00 D9 [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:38]Read from MH i2c: E2 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 62 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 62 00 3F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 80 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [11:19:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 80 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:38]wFMCommunicate OK [11:19:38]SAM_PROTO_GetFieldsCounters done [11:19:38]requested_item shift.num is exist - process it [11:19:38]requested_item shift.opened is exist - process it [11:19:38]req_shift_opened [11:19:38]FM_GetShiftState [11:19:38]SAM_PROTO_GetShiftState [11:19:38]wFMCommunicate request_size=4 [11:19:38]MH_SAM_APDU [11:19:38]CAPDU: 80 13 01 00 [11:19:38]Write to MH i2c: E2 08 00 40 1E 80 13 01 00 00 00 00 00 DB [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:38]Read from MH i2c: E2 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 0E 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 0E 00 40 1E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 5A [11:19:38]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:19:38]wFMCommunicate OK [11:19:38]SAM_PROTO_GetShiftState done [11:19:38]FM_GetShiftState done [11:19:38]req_shift_opened done [11:19:38]requested_item shift.open_date is exist - process it [11:19:38]req_shift_open_date [11:19:38]req_shift_open_date done [11:19:38]produce_requested_data done [11:19:38]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123008,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:19:38]process_action_free close_receipt [11:19:38]json_value_free [11:19:38]json_value_free done [11:19:38]process_json_proto returns [11:19:38]Send response to host [11:19:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123008,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:19:38]free response buf [11:19:38]execute_script done [11:19:38]execute_script returns [11:19:38]free content buf [11:19:38]Sock 7.Close socket [11:19:38]Sock 7.Thread stoped [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:21:57]accept exits with 9 [11:21:57]New connection [11:21:57]New thread 3066580324 created [11:21:57]Thread 3066723684 joined [11:21:57]Waiting for new connection... [11:21:57] Sock 9.Parse request [11:21:57]Sock 9.Check first char [11:21:57]Sock 9.First char is OK [11:21:57]request: POST /json_proto HTTP/1.0 [11:21:57]Method: POST [11:21:57]URL: /json_proto [11:21:57]Method is POST - this is cgi request [11:21:57]url: /json_proto [11:21:57]query_string will be loaded in cgi processing [11:21:57]execute_cgi json_proto POST (null) [11:21:57]execute_cgi path=json_proto method=POST [11:21:57]POST find Content-Length [11:21:57]Host: 172.17.37.4:8080 [11:21:57]Content-Length: 677 [11:21:57]Content-Type: application/json [11:21:57] [11:21:57]POST finish read [11:21:57]Found Content-Length = 677 [11:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:57]execute_script... [11:21: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)717801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:57]POST & json_proto [11:21:57]process_json_proto [11:21:57]json parsed OK: [11:21:57]protocol is kg_v1.0 [11:21:57]action value=close_receipt [11:21:57]process_action close_receipt [11:21:57]cmd_close_receipt [11:21:57]MH_GetDate [11:21:57]Write to MH i2c: F0 00 00 41 1E 4E [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: F0 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: F0 09 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: F0 09 00 41 1E 00 DA 5D 44 67 B8 5A 43 67 F5 [11:21:57]GetLastDocTimeStamp 1732533578 [11:21:57]current date 1732533722 [11:21:57]FM_GetShiftState [11:21:57]SAM_PROTO_GetShiftState [11:21:57]wFMCommunicate request_size=4 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 13 01 00 [11:21:57]Write to MH i2c: E2 08 00 42 1E 80 13 01 00 00 00 00 00 DD [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 0E 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 0E 00 42 1E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 5C [11:21:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:21:57]wFMCommunicate OK [11:21:57]SAM_PROTO_GetShiftState done [11:21:57]FM_GetShiftState done [11:21:57]opened in 1732493066 [11:21:57]opened+sec_in_day 1732579466 [11:21:57]quantity*price = 50010 [11:21:57]sum+1 = 50012 [11:21:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 50 25.11.2024 11:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123009 ФПД: 184598542219446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T112202&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123009&fm=184598542219446&tin=02508201610067®Number=0000000000092681&sum=50000 [11:21:58]StoreToDocumentArchive [11:21:58]shift 556 fd 123009 [11:21:58]save to /storage/0556/doc_00123009 [11:21:58]save last doc name /storage/0556/doc_00123009 to /storage/kkm_last_doc_name [11:21:58]save OK [11:21:58]Clear old archive folders... [11:21:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:58]tlvbuf is 0208FED0 [11:21:58]SAM_PROTO_ClearQueue [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 09 00 00 [11:21:58]Write to MH i2c: E2 08 00 4F 1E 80 09 00 00 00 00 00 00 DF [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 4F 1E 00 90 00 E1 [11:21:58]RAPDU: 90 00 [11:21:58]wFMCommunicate OK [11:21:58]SAM_PROTO_ClearQueue done [11:21:58]KKMCreateOFDPacket [11:21:58]OFDProtocolAddRootSTLVToBuf [11:21:58]FM_MakeSignedData [11:21:58]FM_MakeSignedData [11:21:58]SAM_PROTO_SignData [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 0D 01 02 [11:21:58]Write to MH i2c: E2 08 00 50 1E 80 0D 01 02 00 00 00 00 E7 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 50 1E 00 90 00 E2 [11:21:58]RAPDU: 90 00 [11:21:58]wFMCommunicate OK [11:21:58]wFMCommunicate request_size=255 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DA 5D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 81 E0 01 00 35 04 06 00 A7 [11:21:58]Write to MH i2c: E2 02 01 51 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DA 5D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 81 E0 01 00 35 04 06 00 A7 00 00 99 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 51 1E 00 90 00 E3 [11:21:58]RAPDU: 90 00 [11:21:58]wFMCommunicate OK [11:21:58]wFMCommunicate request_size=10 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 0D 02 02 05 E4 32 88 F8 B6 [11:21:58]Write to MH i2c: E2 0D 00 52 1E 80 0D 02 02 05 00 E4 32 88 F8 B6 00 00 40 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 03 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 03 00 52 1E 00 90 00 E4 [11:21:59]RAPDU: 90 00 [11:21:59]wFMCommunicate OK [11:21:59]wFMCommunicate request_size=4 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 0D 03 02 [11:21:59]Write to MH i2c: E2 08 00 53 1E 80 0D 03 02 00 00 00 00 EC [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 0B 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 0B 00 53 1E 00 B8 AF 8D 5D F8 03 36 E7 90 00 56 [11:21:59]RAPDU: B8 AF 8D 5D F8 03 36 E7 90 00 [11:21:59]wFMCommunicate OK [11:21:59]SAM_PROTO_SignData done [11:21:59]FM_MakeSignedData done [11:21:59]CreateOFDProtocolMessage [11:21:59]wFMCommunicate request_size=4 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 11 00 00 [11:21:59]Write to MH i2c: E2 08 00 54 1E 80 11 00 00 00 00 00 00 EC [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 17 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 17 00 54 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 43 [11:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:21:59]wFMCommunicate OK [11:21:59]CreateOFDProtocolMessage done [11:21:59]OFDSenderStorePacket 123009 [11:21:59]StoreOFDPacket docnum=123009 [11:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6C 8D 07 01 A0 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DA 5D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 81 E0 01 00 35 04 06 00 A7 E4 32 88 F8 B6 B8 AF 8D 5D F8 03 36 E7 [11:21:59]CheckFolder [11:21:59]dirname=/storage/ofd_packets [11:21:59]CheckFolder done [11:21:59]ProducePacketName [11:21:59]name=ofd_packets/00123009 [11:21:59]NVStorageSaveData ofd_packets/00123009 [11:21:59]File name is /storage/ofd_packets/00123009 [11:21:59]Write 301 bytes [11:21:59]NVStorageSaveData done [11:21:59]OFDSenderStorePacket done [11:21:59]KKMCreateOFDPacket done [11:21:59]NVStorageSaveData kkm_last_timestamp [11:21:59]File name is /storage/kkm_last_timestamp [11:21:59]Write 4 bytes [11:21:59]NVStorageSaveData done [11:21:59]ExternCall_PrintAddStr [11:21:59]wPrintStart [11:21:59]Write to MH i2c: 01 00 00 55 1E 73 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 07 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 07 00 55 1E 00 00 00 00 00 FF 0F 88 [11:21:59]RasterBufferAndPrint [11:21:59]line Счет N : (1)717801 [11:21:59]line ИНН: 02508201610067 [11:21:59]line Контрольно-Кассовый Чек [11:21:59]line ПРОДАЖА [11:21:59]line ТРК (МРК, ГНК) : 12 [11:21:59]line Товар: 2710124130 [11:21:59]line Аи-92-К-4 [11:21:59]line 7.420 * 67.40 [11:21:59]line = 500.11 [11:21:59]line НДС 12% НСП 1% [11:21:59]line > о реализуемом товаре [11:21:59]line ОКРУГЛЕНИЕ: -0.11 [11:21:59]line ИТОГО: 500.00 [11:21:59]line Внесено: 500.00 [11:21:59]line СДАЧА: 0.00 [11:21:59]line НСП 1% : 4.43 [11:21:59]line НДС 12% : 53.11 [11:21:59]line Наличными: 500.00 [11:21:59]line Безнал.: 0.00 [11:21:59]line Место: АЗС № 64 "Партнер Нефть" [11:21:59]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:21:59]line СНО: Общий режим [11:21:59]line Чек 50 25.11.2024 11:22 [11:21:59]line Смена: 556 ФФД: 1.0 [11:21:59]line ЗНМ: 0300000033 [11:21:59]line РНМ: 0000000000092681 [11:21:59]line Версия ККМ: 001 [11:21:59]line ФМ: 0000000000874881 [11:21:59]line ФД: 123009 [11:21:59]line ФПД: 184598542219446 [11:21:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T112202&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123009&fm=184598542219446&tin=02508201610067®Number=0000000000092681&sum=50000 [11:21:59]OFD Sender: Processing packet 123009 [packets to send 7, broken 6] [11:21:59]ProducePacketName [11:21:59]name=ofd_packets/00123009 [11:21:59]OFD Sender: To server: pG, [11:21:59]CommunicateWithHost lk.salyk.kg:30040 [11:21:59]ConnectInit lk.salyk.kg [11:21:59]written 0, free lines is 4095 [11:21:59]Connected sock=10 [11:21:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6C 8D 07 01 A0 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DA 5D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 81 E0 01 00 35 04 06 00 A7 E4 32 88 F8 B6 B8 AF 8D 5D F8 03 36 E7 [11:21:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 73 FD 47 00 E9 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 81 E0 01 00 F4 03 04 00 A0 09 44 67 B6 04 01 00 00 7E 8B 37 B3 A8 71 12 05 [11:21:59]CommunicateWithHost err = 0 [11:21:59]CheckOFDResponse [11:21:59]1017 (14) - 77093643461234 [11:21:59]1041 (16) - 0000000000874881 [11:21:59]1040 (4) - 123009 [11:21:59]1012 (4) - 25.11.2024 05:22 [11:21:59]1206 (1) - 0 [11:21:59]OFD Sender: Remove packet 123009 [11:21:59]ProducePacketName [11:21:59]name=ofd_packets/00123009 [11:21:59]NVStorageDeleteData [11:21:59]Write to MH i2c: 01 00 00 80 1E 9E [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 07 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 07 00 80 1E 00 00 00 00 00 47 0C F8 [11:21:59]RasterBufferAndPrint [11:21:59]line [11:21:59]line [11:21:59]line [11:21:59]line [11:21:59]line [11:21:59]written 0, free lines is 3147 [11:21:59]MH_Cut [11:21:59]Write to MH i2c: D1 01 00 87 1E 01 77 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: D1 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: D1 01 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: D1 01 00 87 1E 00 76 [11:21:59]Write to MH i2c: 01 00 00 88 1E A6 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:22:00]OFD Sender: No OFD packet to send [11:22:01]*** Cut start [11:22:01]*** Partial cut [11:22:01]*** CUTSNS_PIN = 1 [11:22:01]*** CUTSNS_PIN = 0 [11:22:01]*** Brake cut motor [11:22:01]Read from MH i2c: 01 [11:22:01]MH_I2C_Read... [11:22:01]*** Stop cut motor [11:22:01]*** Cut end [11:22:01]Read from MH i2c: 01 07 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 07 00 88 1E 00 00 00 00 00 FF 0F BB [11:22:01]process_action close_receipt done [11:22:01]requested_data is exist [11:22:01]produce_requested_data [11:22:01]requested_item fm.sn is exist - process it [11:22:01]wFMCommunicate request_size=4 [11:22:01]MH_SAM_APDU [11:22:01]CAPDU: 80 11 00 00 [11:22:01]Write to MH i2c: E2 08 00 89 1E 80 11 00 00 00 00 00 00 21 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:01]Read from MH i2c: E2 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: E2 17 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: E2 17 00 89 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 78 [11:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:22:01]wFMCommunicate OK [11:22:01]requested_item fd.num is exist - process it [11:22:01]SAM_PROTO_GetFieldsCounters [11:22:01]wFMCommunicate request_size=4 [11:22:01]MH_SAM_APDU [11:22:01]CAPDU: 80 13 00 00 [11:22:01]Write to MH i2c: E2 08 00 8A 1E 80 13 00 00 00 00 00 00 24 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 62 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 62 00 8A 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 81 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [11:22:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 81 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_GetFieldsCounters done [11:22:02]requested_item shift.num is exist - process it [11:22:02]requested_item shift.opened is exist - process it [11:22:02]req_shift_opened [11:22:02]FM_GetShiftState [11:22:02]SAM_PROTO_GetShiftState [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 13 01 00 [11:22:02]Write to MH i2c: E2 08 00 8B 1E 80 13 01 00 00 00 00 00 26 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0E 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0E 00 8B 1E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A5 [11:22:02]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_GetShiftState done [11:22:02]FM_GetShiftState done [11:22:02]req_shift_opened done [11:22:02]requested_item shift.open_date is exist - process it [11:22:02]req_shift_open_date [11:22:02]req_shift_open_date done [11:22:02]produce_requested_data done [11:22:02]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123009,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:22:02]process_action_free close_receipt [11:22:02]json_value_free [11:22:02]json_value_free done [11:22:02]process_json_proto returns [11:22:02]Send response to host [11:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123009,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:22:02]free response buf [11:22:02]execute_script done [11:22:02]execute_script returns [11:22:02]free content buf [11:22:02]Sock 9.Close socket [11:22:02]Sock 9.Thread stoped [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:10]accept exits with 7 [11:27:10]New connection [11:27:10]New thread 3066723684 created [11:27:10]Thread 3066580324 joined [11:27:10]Waiting for new connection... [11:27:10] Sock 7.Parse request [11:27:10]Sock 7.Check first char [11:27:10]Sock 7.First char is OK [11:27:10]request: POST /json_proto HTTP/1.0 [11:27:10]Method: POST [11:27:10]URL: /json_proto [11:27:10]Method is POST - this is cgi request [11:27:10]url: /json_proto [11:27:10]query_string will be loaded in cgi processing [11:27:10]execute_cgi json_proto POST (null) [11:27:10]execute_cgi path=json_proto method=POST [11:27:10]POST find Content-Length [11:27:10]Host: 172.17.37.4:8080 [11:27:10]Content-Length: 682 [11:27:10]Content-Type: application/json [11:27:10] [11:27:10]POST finish read [11:27:10]Found Content-Length = 682 [11:27:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:10]execute_script... [11:27:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:10]POST & json_proto [11:27:10]process_json_proto [11:27:10]json parsed OK: [11:27:10]protocol is kg_v1.0 [11:27:10]action value=close_receipt [11:27:10]process_action close_receipt [11:27:10]cmd_close_receipt [11:27:10]MH_GetDate [11:27:10]Write to MH i2c: F0 00 00 8C 1E 99 [11:27:10]Write i2c OK [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: F0 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: F0 09 00 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: F0 09 00 8C 1E 00 13 5F 44 67 B8 5A 43 67 7B [11:27:10]GetLastDocTimeStamp 1732533722 [11:27:10]current date 1732534035 [11:27:10]FM_GetShiftState [11:27:10]SAM_PROTO_GetShiftState [11:27:10]wFMCommunicate request_size=4 [11:27:10]MH_SAM_APDU [11:27:10]CAPDU: 80 13 01 00 [11:27:10]Write to MH i2c: E2 08 00 8D 1E 80 13 01 00 00 00 00 00 28 [11:27:10]Write i2c OK [11:27:10]MH_I2C_Read... [11:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:10]Read from MH i2c: E2 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: E2 0E 00 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: E2 0E 00 8D 1E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A7 [11:27:10]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:27:10]wFMCommunicate OK [11:27:10]SAM_PROTO_GetShiftState done [11:27:10]FM_GetShiftState done [11:27:10]opened in 1732493066 [11:27:10]opened+sec_in_day 1732579466 [11:27:10]quantity*price = 100021 [11:27:10]sum+1 = 100023 [11:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 51 25.11.2024 11:27 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123010 ФПД: 185931099368855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T112715&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123010&fm=185931099368855&tin=02508201610067®Number=0000000000092681&sum=100000 [11:27:11]StoreToDocumentArchive [11:27:11]shift 556 fd 123010 [11:27:11]save to /storage/0556/doc_00123010 [11:27:11]save last doc name /storage/0556/doc_00123010 to /storage/kkm_last_doc_name [11:27:11]save OK [11:27:11]Clear old archive folders... [11:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:11]tlvbuf is 02092760 [11:27:11]SAM_PROTO_ClearQueue [11:27:11]wFMCommunicate request_size=4 [11:27:11]MH_SAM_APDU [11:27:11]CAPDU: 80 09 00 00 [11:27:11]Write to MH i2c: E2 08 00 9A 1E 80 09 00 00 00 00 00 00 2A [11:27:11]Write i2c OK [11:27:11]MH_I2C_Read... [11:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:11]Read from MH i2c: E2 [11:27:11]MH_I2C_Read... [11:27:11]Read from MH i2c: E2 03 00 [11:27:11]MH_I2C_Read... [11:27:11]Read from MH i2c: E2 03 00 9A 1E 00 90 00 2C [11:27:11]RAPDU: 90 00 [11:27:11]wFMCommunicate OK [11:27:11]SAM_PROTO_ClearQueue done [11:27:11]KKMCreateOFDPacket [11:27:11]OFDProtocolAddRootSTLVToBuf [11:27:11]FM_MakeSignedData [11:27:11]FM_MakeSignedData [11:27:11]SAM_PROTO_SignData [11:27:11]wFMCommunicate request_size=4 [11:27:11]MH_SAM_APDU [11:27:11]CAPDU: 80 0D 01 02 [11:27:11]Write to MH i2c: E2 08 00 9B 1E 80 0D 01 02 00 00 00 00 32 [11:27:11]Write i2c OK [11:27:11]MH_I2C_Read... [11:27:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:11]Read from MH i2c: E2 [11:27:11]MH_I2C_Read... [11:27:11]Read from MH i2c: E2 03 00 [11:27:11]MH_I2C_Read... [11:27:11]Read from MH i2c: E2 03 00 9B 1E 00 90 00 2D [11:27:11]RAPDU: 90 00 [11:27:11]wFMCommunicate OK [11:27:11]wFMCommunicate request_size=255 [11:27:11]MH_SAM_APDU [11:27:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 13 5F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 82 E0 01 00 35 04 06 00 A9 [11:27:11]Write to MH i2c: E2 02 01 9C 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 13 5F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 82 E0 01 00 35 04 06 00 A9 00 00 13 [11:27:12]Write i2c OK [11:27:12]MH_I2C_Read... [11:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:12]Read from MH i2c: E2 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: E2 03 00 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: E2 03 00 9C 1E 00 90 00 2E [11:27:12]RAPDU: 90 00 [11:27:12]wFMCommunicate OK [11:27:12]wFMCommunicate request_size=10 [11:27:12]MH_SAM_APDU [11:27:12]CAPDU: 80 0D 02 02 05 1A 75 21 6D 97 [11:27:12]Write to MH i2c: E2 0D 00 9D 1E 80 0D 02 02 05 00 1A 75 21 6D 97 00 00 F3 [11:27:12]Write i2c OK [11:27:12]MH_I2C_Read... [11:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:12]Read from MH i2c: E2 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: E2 03 00 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: E2 03 00 9D 1E 00 90 00 2F [11:27:12]RAPDU: 90 00 [11:27:12]wFMCommunicate OK [11:27:12]wFMCommunicate request_size=4 [11:27:12]MH_SAM_APDU [11:27:12]CAPDU: 80 0D 03 02 [11:27:12]Write to MH i2c: E2 08 00 9E 1E 80 0D 03 02 00 00 00 00 37 [11:27:12]Write i2c OK [11:27:12]MH_I2C_Read... [11:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:12]Read from MH i2c: E2 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: E2 0B 00 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: E2 0B 00 9E 1E 00 2F C6 38 3B 92 23 D7 EB 90 00 17 [11:27:12]RAPDU: 2F C6 38 3B 92 23 D7 EB 90 00 [11:27:12]wFMCommunicate OK [11:27:12]SAM_PROTO_SignData done [11:27:12]FM_MakeSignedData done [11:27:12]CreateOFDProtocolMessage [11:27:12]wFMCommunicate request_size=4 [11:27:12]MH_SAM_APDU [11:27:12]CAPDU: 80 11 00 00 [11:27:12]Write to MH i2c: E2 08 00 9F 1E 80 11 00 00 00 00 00 00 37 [11:27:12]Write i2c OK [11:27:12]MH_I2C_Read... [11:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:12]Read from MH i2c: E2 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: E2 17 00 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: E2 17 00 9F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8E [11:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:27:12]wFMCommunicate OK [11:27:12]CreateOFDProtocolMessage done [11:27:12]OFDSenderStorePacket 123010 [11:27:12]StoreOFDPacket docnum=123010 [11:27:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 40 E6 07 01 8A 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 13 5F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 82 E0 01 00 35 04 06 00 A9 1A 75 21 6D 97 2F C6 38 3B 92 23 D7 EB [11:27:12]CheckFolder [11:27:12]dirname=/storage/ofd_packets [11:27:12]CheckFolder done [11:27:12]ProducePacketName [11:27:12]name=ofd_packets/00123010 [11:27:12]NVStorageSaveData ofd_packets/00123010 [11:27:12]File name is /storage/ofd_packets/00123010 [11:27:12]Write 301 bytes [11:27:12]NVStorageSaveData done [11:27:12]OFDSenderStorePacket done [11:27:12]KKMCreateOFDPacket done [11:27:12]NVStorageSaveData kkm_last_timestamp [11:27:12]File name is /storage/kkm_last_timestamp [11:27:12]Write 4 bytes [11:27:12]NVStorageSaveData done [11:27:12]ExternCall_PrintAddStr [11:27:12]wPrintStart [11:27:12]Write to MH i2c: 01 00 00 A0 1E BE [11:27:12]Write i2c OK [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: 01 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: 01 07 00 [11:27:12]MH_I2C_Read... [11:27:12]Read from MH i2c: 01 07 00 A0 1E 00 00 00 00 00 FF 0F D3 [11:27:12]RasterBufferAndPrint [11:27:12]line Счет N : (1)717803 [11:27:12]line ИНН: 02508201610067 [11:27:12]line Контрольно-Кассовый Чек [11:27:12]line ПРОДАЖА [11:27:12]line ТРК (МРК, ГНК) : 32 [11:27:12]line Товар: 2710124130 [11:27:12]line Аи-92-К-4 [11:27:12]line 14.840 * 67.40 [11:27:12]line = 1000.22 [11:27:12]line НДС 12% НСП 1% [11:27:12]line > о реализуемом товаре [11:27:12]line ОКРУГЛЕНИЕ: -0.22 [11:27:12]line ИТОГО: 1000.00 [11:27:12]line Внесено: 1000.00 [11:27:12]line СДАЧА: 0.00 [11:27:12]line НСП 1% : 8.85 [11:27:12]line НДС 12% : 106.22 [11:27:12]line Наличными: 1000.00 [11:27:12]line Безнал.: 0.00 [11:27:12]line Место: АЗС № 64 "Партнер Нефть" [11:27:12]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:27:12]line СНО: Общий режим [11:27:12]line Чек 51 25.11.2024 11:27 [11:27:12]line Смена: 556 ФФД: 1.0 [11:27:12]line ЗНМ: 0300000033 [11:27:12]line РНМ: 0000000000092681 [11:27:12]line Версия ККМ: 001 [11:27:12]line ФМ: 0000000000874881 [11:27:12]line ФД: 123010 [11:27:12]line ФПД: 185931099368855 [11:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T112715&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123010&fm=185931099368855&tin=02508201610067®Number=0000000000092681&sum=100000 [11:27:12]OFD Sender: Processing packet 123010 [packets to send 7, broken 6] [11:27:12]ProducePacketName [11:27:12]name=ofd_packets/00123010 [11:27:12]OFD Sender: To server: pG, [11:27:12]CommunicateWithHost lk.salyk.kg:30040 [11:27:12]ConnectInit lk.salyk.kg [11:27:12]written 0, free lines is 4095 [11:27:12]Connected sock=10 [11:27:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 40 E6 07 01 8A 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 13 5F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 82 E0 01 00 35 04 06 00 A9 1A 75 21 6D 97 2F C6 38 3B 92 23 D7 EB [11:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C1 F7 47 00 89 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 34 38 38 31 10 04 04 00 82 E0 01 00 F4 03 04 00 D9 0A 44 67 B6 04 01 00 00 09 6D 48 53 59 A2 EA 14 [11:27:13]CommunicateWithHost err = 0 [11:27:13]CheckOFDResponse [11:27:13]1017 (14) - 77093643461234 [11:27:13]1041 (16) - 0000000000874881 [11:27:13]1040 (4) - 123010 [11:27:13]1012 (4) - 25.11.2024 05:27 [11:27:13]1206 (1) - 0 [11:27:13]OFD Sender: Remove packet 123010 [11:27:13]ProducePacketName [11:27:13]name=ofd_packets/00123010 [11:27:13]NVStorageDeleteData [11:27:13]Write to MH i2c: 01 00 00 CB 1E E9 [11:27:13]Write i2c OK [11:27:13]MH_I2C_Read... [11:27:13]Read from MH i2c: 01 [11:27:13]MH_I2C_Read... [11:27:13]Read from MH i2c: 01 07 00 [11:27:13]MH_I2C_Read... [11:27:13]Read from MH i2c: 01 07 00 CB 1E 00 00 00 00 00 4F 0C 4B [11:27:13]RasterBufferAndPrint [11:27:13]line [11:27:13]line [11:27:13]line [11:27:13]line [11:27:13]line [11:27:13]written 0, free lines is 3156 [11:27:13]MH_Cut [11:27:13]Write to MH i2c: D1 01 00 D2 1E 01 C2 [11:27:13]Write i2c OK [11:27:13]MH_I2C_Read... [11:27:13]Read from MH i2c: D1 [11:27:13]MH_I2C_Read... [11:27:13]Read from MH i2c: D1 01 00 [11:27:13]MH_I2C_Read... [11:27:13]Read from MH i2c: D1 01 00 D2 1E 00 C1 [11:27:13]Write to MH i2c: 01 00 00 D3 1E F1 [11:27:13]Write i2c OK [11:27:13]MH_I2C_Read... [11:27:13]OFD Sender: No OFD packet to send [11:27:14]*** Cut start [11:27:14]*** Partial cut [11:27:14]*** CUTSNS_PIN = 1 [11:27:14]*** CUTSNS_PIN = 0 [11:27:14]*** Brake cut motor [11:27:15]Read from MH i2c: 01 [11:27:15]MH_I2C_Read... [11:27:15]*** Stop cut motor [11:27:15]*** Cut end [11:27:15]Read from MH i2c: 01 07 00 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: 01 07 00 D3 1E 00 00 00 00 00 FF 0F 06 [11:27:15]process_action close_receipt done [11:27:15]requested_data is exist [11:27:15]produce_requested_data [11:27:15]requested_item fm.sn is exist - process it [11:27:15]wFMCommunicate request_size=4 [11:27:15]MH_SAM_APDU [11:27:15]CAPDU: 80 11 00 00 [11:27:15]Write to MH i2c: E2 08 00 D4 1E 80 11 00 00 00 00 00 00 6C [11:27:15]Write i2c OK [11:27:15]MH_I2C_Read... [11:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:15]Read from MH i2c: E2 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: E2 17 00 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: E2 17 00 D4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C3 [11:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:27:15]wFMCommunicate OK [11:27:15]requested_item fd.num is exist - process it [11:27:15]SAM_PROTO_GetFieldsCounters [11:27:15]wFMCommunicate request_size=4 [11:27:15]MH_SAM_APDU [11:27:15]CAPDU: 80 13 00 00 [11:27:15]Write to MH i2c: E2 08 00 D5 1E 80 13 00 00 00 00 00 00 6F [11:27:15]Write i2c OK [11:27:15]MH_I2C_Read... [11:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:15]Read from MH i2c: E2 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: E2 62 00 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: E2 62 00 D5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 82 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [11:27:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 82 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:15]wFMCommunicate OK [11:27:15]SAM_PROTO_GetFieldsCounters done [11:27:15]requested_item shift.num is exist - process it [11:27:15]requested_item shift.opened is exist - process it [11:27:15]req_shift_opened [11:27:15]FM_GetShiftState [11:27:15]SAM_PROTO_GetShiftState [11:27:15]wFMCommunicate request_size=4 [11:27:15]MH_SAM_APDU [11:27:15]CAPDU: 80 13 01 00 [11:27:15]Write to MH i2c: E2 08 00 D6 1E 80 13 01 00 00 00 00 00 71 [11:27:15]Write i2c OK [11:27:15]MH_I2C_Read... [11:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:15]Read from MH i2c: E2 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: E2 0E 00 [11:27:15]MH_I2C_Read... [11:27:15]Read from MH i2c: E2 0E 00 D6 1E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F0 [11:27:15]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:27:15]wFMCommunicate OK [11:27:15]SAM_PROTO_GetShiftState done [11:27:15]FM_GetShiftState done [11:27:15]req_shift_opened done [11:27:15]requested_item shift.open_date is exist - process it [11:27:15]req_shift_open_date [11:27:15]req_shift_open_date done [11:27:15]produce_requested_data done [11:27:15]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123010,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:27:15]process_action_free close_receipt [11:27:15]json_value_free [11:27:15]json_value_free done [11:27:15]process_json_proto returns [11:27:15]Send response to host [11:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123010,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:27:15]free response buf [11:27:15]execute_script done [11:27:15]execute_script returns [11:27:15]free content buf [11:27:15]Sock 7.Close socket [11:27:15]Sock 7.Thread stoped [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:27]accept exits with 9 [11:27:27]New connection [11:27:27]New thread 3066580324 created [11:27:27]Thread 3066723684 joined [11:27:27]Waiting for new connection... [11:27:27] Sock 9.Parse request [11:27:27]Sock 9.Check first char [11:27:27]Sock 9.First char is OK [11:27:27]request: POST /json_proto HTTP/1.0 [11:27:27]Method: POST [11:27:27]URL: /json_proto [11:27:27]Method is POST - this is cgi request [11:27:27]url: /json_proto [11:27:27]query_string will be loaded in cgi processing [11:27:27]execute_cgi json_proto POST (null) [11:27:27]execute_cgi path=json_proto method=POST [11:27:27]POST find Content-Length [11:27:27]Host: 172.17.37.4:8080 [11:27:27]Content-Length: 792 [11:27:27]Content-Type: application/json [11:27:27] [11:27:27]POST finish read [11:27:27]Found Content-Length = 792 [11:27:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:27]execute_script... [11:27: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)717802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:27]POST & json_proto [11:27:27]process_json_proto [11:27:27]json parsed OK: [11:27:27]protocol is kg_v1.0 [11:27:27]action value=close_receipt [11:27:27]process_action close_receipt [11:27:27]cmd_close_receipt [11:27:27]MH_GetDate [11:27:27]Write to MH i2c: F0 00 00 D7 1E E4 [11:27:27]Write i2c OK [11:27:27]MH_I2C_Read... [11:27:27]Read from MH i2c: F0 [11:27:27]MH_I2C_Read... [11:27:27]Read from MH i2c: F0 09 00 [11:27:27]MH_I2C_Read... [11:27:27]Read from MH i2c: F0 09 00 D7 1E 00 24 5F 44 67 B8 5A 43 67 D7 [11:27:27]GetLastDocTimeStamp 1732534035 [11:27:27]current date 1732534052 [11:27:27]FM_GetShiftState [11:27:27]SAM_PROTO_GetShiftState [11:27:27]wFMCommunicate request_size=4 [11:27:27]MH_SAM_APDU [11:27:27]CAPDU: 80 13 01 00 [11:27:27]Write to MH i2c: E2 08 00 D8 1E 80 13 01 00 00 00 00 00 73 [11:27:27]Write i2c OK [11:27:27]MH_I2C_Read... [11:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:27]Read from MH i2c: E2 [11:27:27]MH_I2C_Read... [11:27:27]Read from MH i2c: E2 0E 00 [11:27:27]MH_I2C_Read... [11:27:27]Read from MH i2c: E2 0E 00 D8 1E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F2 [11:27:27]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:27:27]wFMCommunicate OK [11:27:27]SAM_PROTO_GetShiftState done [11:27:27]FM_GetShiftState done [11:27:27]opened in 1732493066 [11:27:27]opened+sec_in_day 1732579466 [11:27:27]quantity*price = 0 [11:27:27]sum+1 = 1 [11:27:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 52 25.11.2024 11:27 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 32286 ФМ: 0000000000874881 ФД: 123011 ФПД: 33471391058025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T112732&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123011&fm=33471391058025&tin=02508201610067®Number=0000000000092681&sum=0 [11:27:28]StoreToDocumentArchive [11:27:28]shift 556 fd 123011 [11:27:28]save to /storage/0556/doc_00123011 [11:27:28]save last doc name /storage/0556/doc_00123011 to /storage/kkm_last_doc_name [11:27:28]save OK [11:27:28]Clear old archive folders... [11:27:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:28]tlvbuf is 01F46A10 [11:27:28]SAM_PROTO_ClearQueue [11:27:28]wFMCommunicate request_size=4 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 09 00 00 [11:27:28]Write to MH i2c: E2 08 00 E5 1E 80 09 00 00 00 00 00 00 75 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 E5 1E 00 90 00 77 [11:27:28]RAPDU: 90 00 [11:27:28]wFMCommunicate OK [11:27:28]SAM_PROTO_ClearQueue done [11:27:28]KKMCreateOFDPacket [11:27:28]OFDProtocolAddRootSTLVToBuf [11:27:28]FM_MakeSignedData [11:27:28]FM_MakeSignedData [11:27:28]SAM_PROTO_SignData [11:27:28]wFMCommunicate request_size=4 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 0D 01 02 [11:27:28]Write to MH i2c: E2 08 00 E6 1E 80 0D 01 02 00 00 00 00 7D [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]OFD Sender: No OFD packet to send [11:27:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 E6 1E 00 90 00 78 [11:27:28]RAPDU: 90 00 [11:27:28]wFMCommunicate OK [11:27:28]wFMCommunicate request_size=255 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 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 34 00 00 00 F4 03 04 00 24 5F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E0 01 00 35 04 06 00 1E [11:27:28]Write to MH i2c: E2 02 01 E7 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 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 34 00 00 00 F4 03 04 00 24 5F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E0 01 00 35 04 06 00 1E 00 00 D4 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 E7 1E 00 90 00 79 [11:27:28]RAPDU: 90 00 [11:27:28]wFMCommunicate OK [11:27:28]wFMCommunicate request_size=10 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 0D 02 02 05 71 2A 5F C8 69 [11:27:28]Write to MH i2c: E2 0D 00 E8 1E 80 0D 02 02 05 00 71 2A 5F C8 69 00 00 B5 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 E8 1E 00 90 00 7A [11:27:28]RAPDU: 90 00 [11:27:28]wFMCommunicate OK [11:27:28]wFMCommunicate request_size=4 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 0D 03 02 [11:27:28]Write to MH i2c: E2 08 00 E9 1E 80 0D 03 02 00 00 00 00 82 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 0B 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 0B 00 E9 1E 00 86 23 67 EA EF 0E 05 82 90 00 01 [11:27:28]RAPDU: 86 23 67 EA EF 0E 05 82 90 00 [11:27:28]wFMCommunicate OK [11:27:28]SAM_PROTO_SignData done [11:27:28]FM_MakeSignedData done [11:27:28]CreateOFDProtocolMessage [11:27:28]wFMCommunicate request_size=4 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 11 00 00 [11:27:28]Write to MH i2c: E2 08 00 EA 1E 80 11 00 00 00 00 00 00 82 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 17 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 17 00 EA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D9 [11:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:27:29]wFMCommunicate OK [11:27:29]CreateOFDProtocolMessage done [11:27:29]OFDSenderStorePacket 123011 [11:27:29]StoreOFDPacket docnum=123011 [11:27:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 98 F8 07 01 BE C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 34 00 00 00 F4 03 04 00 24 5F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E0 01 00 35 04 06 00 1E 71 2A 5F C8 69 86 23 67 EA EF 0E 05 82 [11:27:29]CheckFolder [11:27:29]dirname=/storage/ofd_packets [11:27:29]CheckFolder done [11:27:29]ProducePacketName [11:27:29]name=ofd_packets/00123011 [11:27:29]NVStorageSaveData ofd_packets/00123011 [11:27:29]File name is /storage/ofd_packets/00123011 [11:27:29]Write 301 bytes [11:27:29]NVStorageSaveData done [11:27:29]OFDSenderStorePacket done [11:27:29]KKMCreateOFDPacket done [11:27:29]NVStorageSaveData kkm_last_timestamp [11:27:29]File name is /storage/kkm_last_timestamp [11:27:29]Write 4 bytes [11:27:29]NVStorageSaveData done [11:27:29]ExternCall_PrintAddStr [11:27:29]wPrintStart [11:27:29]Write to MH i2c: 01 00 00 EB 1E 09 [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: 01 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: 01 07 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: 01 07 00 EB 1E 00 00 00 00 00 FF 0F 1E [11:27:29]RasterBufferAndPrint [11:27:29]line Счет N : (1)717802 [11:27:29]line ИНН: 02508201610067 [11:27:29]line Контрольно-Кассовый Чек [11:27:29]line ПРОДАЖА [11:27:29]line ТРК (МРК, ГНК) : 22 [11:27:29]line Товар: 2710124130 [11:27:29]line Аи-92-К-4 [11:27:29]line 10.000 * 0.00 [11:27:29]line = 0.00 [11:27:29]line НДС 12% НСП 1% [11:27:29]line > о реализуемом товаре [11:27:29]line ИТОГО: 0.00 [11:27:29]line НСП 1% : 0.00 [11:27:29]line НДС 12% : 0.00 [11:27:29]line Наличными: 0.00 [11:27:29]line Безнал.: 0.00 [11:27:29]line Место: АЗС № 64 "Партнер Нефть" [11:27:29]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:27:29]line СНО: Общий режим [11:27:29]line Чек 52 25.11.2024 11:27 [11:27:29]line Смена: 556 ФФД: 1.0 [11:27:29]line ЗНМ: 0300000033 [11:27:29]line РНМ: 0000000000092681 [11:27:29]line Версия ККМ: 001 [11:27:29]line Талоны: Топливная Карта [11:27:29]line 32286 [11:27:29]line ФМ: 0000000000874881 [11:27:29]line ФД: 123011 [11:27:29]line ФПД: 33471391058025 [11:27:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T112732&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123011&fm=33471391058025&tin=02508201610067®Number=0000000000092681&sum=0 [11:27:29]OFD Sender: Processing packet 123011 [packets to send 7, broken 6] [11:27:29]ProducePacketName [11:27:29]name=ofd_packets/00123011 [11:27:29]OFD Sender: To server: pG, [11:27:29]CommunicateWithHost lk.salyk.kg:30040 [11:27:29]ConnectInit lk.salyk.kg [11:27:29]written 0, free lines is 4095 [11:27:29]Connected sock=10 [11:27:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 98 F8 07 01 BE C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 34 00 00 00 F4 03 04 00 24 5F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E0 01 00 35 04 06 00 1E 71 2A 5F C8 69 86 23 67 EA EF 0E 05 82 [11:27:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 12 ED 47 00 55 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E0 01 00 F4 03 04 00 EA 0A 44 67 B6 04 01 00 00 A2 A4 48 CB 08 C7 59 C6 [11:27:29]CommunicateWithHost err = 0 [11:27:29]CheckOFDResponse [11:27:29]1017 (14) - 77093643461234 [11:27:29]1041 (16) - 0000000000874881 [11:27:29]1040 (4) - 123011 [11:27:29]1012 (4) - 25.11.2024 05:28 [11:27:29]1206 (1) - 0 [11:27:29]OFD Sender: Remove packet 123011 [11:27:29]ProducePacketName [11:27:29]name=ofd_packets/00123011 [11:27:29]NVStorageDeleteData [11:27:29]Write to MH i2c: 01 00 00 15 1F 34 [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: 01 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: 01 07 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: 01 07 00 15 1F 00 00 00 00 00 67 0C AE [11:27:29]RasterBufferAndPrint [11:27:29]line [11:27:29]line [11:27:29]line [11:27:29]line [11:27:29]line [11:27:29]written 0, free lines is 3180 [11:27:29]MH_Cut [11:27:29]Write to MH i2c: D1 01 00 1C 1F 01 0D [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: D1 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: D1 01 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: D1 01 00 1C 1F 00 0C [11:27:29]Write to MH i2c: 01 00 00 1D 1F 3C [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:30]OFD Sender: No OFD packet to send [11:27:31]*** Cut start [11:27:31]*** Partial cut [11:27:31]*** CUTSNS_PIN = 1 [11:27:31]*** CUTSNS_PIN = 0 [11:27:31]*** Brake cut motor [11:27:31]Read from MH i2c: 01 [11:27:31]MH_I2C_Read... [11:27:31]*** Stop cut motor [11:27:31]*** Cut end [11:27:31]Read from MH i2c: 01 07 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 07 00 1D 1F 00 00 00 00 00 FF 0F 51 [11:27:31]process_action close_receipt done [11:27:31]requested_data is exist [11:27:31]produce_requested_data [11:27:31]requested_item fm.sn is exist - process it [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 11 00 00 [11:27:31]Write to MH i2c: E2 08 00 1E 1F 80 11 00 00 00 00 00 00 B7 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 17 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 17 00 1E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0E [11:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:27:31]wFMCommunicate OK [11:27:31]requested_item fd.num is exist - process it [11:27:31]SAM_PROTO_GetFieldsCounters [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 13 00 00 [11:27:31]Write to MH i2c: E2 08 00 1F 1F 80 13 00 00 00 00 00 00 BA [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 62 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 62 00 1F 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 83 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [11:27:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 83 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:31]wFMCommunicate OK [11:27:31]SAM_PROTO_GetFieldsCounters done [11:27:31]requested_item shift.num is exist - process it [11:27:31]requested_item shift.opened is exist - process it [11:27:31]req_shift_opened [11:27:31]FM_GetShiftState [11:27:31]SAM_PROTO_GetShiftState [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 13 01 00 [11:27:31]Write to MH i2c: E2 08 00 20 1F 80 13 01 00 00 00 00 00 BC [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0E 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0E 00 20 1F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3B [11:27:31]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:27:31]wFMCommunicate OK [11:27:31]SAM_PROTO_GetShiftState done [11:27:31]FM_GetShiftState done [11:27:31]req_shift_opened done [11:27:31]requested_item shift.open_date is exist - process it [11:27:31]req_shift_open_date [11:27:31]req_shift_open_date done [11:27:31]produce_requested_data done [11:27:31]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123011,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:27:31]process_action_free close_receipt [11:27:31]json_value_free [11:27:31]json_value_free done [11:27:31]process_json_proto returns [11:27:31]Send response to host [11:27:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123011,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:27:31]free response buf [11:27:31]execute_script done [11:27:31]execute_script returns [11:27:31]free content buf [11:27:31]Sock 9.Close socket [11:27:31]Sock 9.Thread stoped [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:04]accept exits with 7 [11:45:04]New connection [11:45:04]New thread 3066723684 created [11:45:04]Thread 3066580324 joined [11:45:04]Waiting for new connection... [11:45:04] Sock 7.Parse request [11:45:04]Sock 7.Check first char [11:45:04]Sock 7.First char is OK [11:45:04]request: POST /json_proto HTTP/1.0 [11:45:04]Method: POST [11:45:04]URL: /json_proto [11:45:04]Method is POST - this is cgi request [11:45:04]url: /json_proto [11:45:04]query_string will be loaded in cgi processing [11:45:04]execute_cgi json_proto POST (null) [11:45:04]execute_cgi path=json_proto method=POST [11:45:04]POST find Content-Length [11:45:04]Host: 172.17.37.4:8080 [11:45:04]Content-Length: 677 [11:45:04]Content-Type: application/json [11:45:04] [11:45:04]POST finish read [11:45:04]Found Content-Length = 677 [11:45:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:04]execute_script... [11:45: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)717807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:04]POST & json_proto [11:45:04]process_json_proto [11:45:04]json parsed OK: [11:45:04]protocol is kg_v1.0 [11:45:04]action value=close_receipt [11:45:04]process_action close_receipt [11:45:04]cmd_close_receipt [11:45:04]MH_GetDate [11:45:04]Write to MH i2c: F0 00 00 21 1F 2F [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: F0 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: F0 09 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: F0 09 00 21 1F 00 45 63 44 67 B8 5A 43 67 47 [11:45:04]GetLastDocTimeStamp 1732534052 [11:45:04]current date 1732535109 [11:45:04]FM_GetShiftState [11:45:04]SAM_PROTO_GetShiftState [11:45:04]wFMCommunicate request_size=4 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 13 01 00 [11:45:04]Write to MH i2c: E2 08 00 22 1F 80 13 01 00 00 00 00 00 BE [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 0E 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 0E 00 22 1F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3D [11:45:04]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:45:04]wFMCommunicate OK [11:45:04]SAM_PROTO_GetShiftState done [11:45:04]FM_GetShiftState done [11:45:04]opened in 1732493066 [11:45:04]opened+sec_in_day 1732579466 [11:45:04]quantity*price = 30060 [11:45:04]sum+1 = 30061 [11:45:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 53 25.11.2024 11:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123012 ФПД: 161208563805865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T114509&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123012&fm=161208563805865&tin=02508201610067®Number=0000000000092681&sum=30000 [11:45:05]StoreToDocumentArchive [11:45:05]shift 556 fd 123012 [11:45:05]save to /storage/0556/doc_00123012 [11:45:05]save last doc name /storage/0556/doc_00123012 to /storage/kkm_last_doc_name [11:45:05]save OK [11:45:05]Clear old archive folders... [11:45:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:05]tlvbuf is B6E70090 [11:45:05]SAM_PROTO_ClearQueue [11:45:05]wFMCommunicate request_size=4 [11:45:05]MH_SAM_APDU [11:45:05]CAPDU: 80 09 00 00 [11:45:05]Write to MH i2c: E2 08 00 2F 1F 80 09 00 00 00 00 00 00 C0 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:05]Read from MH i2c: E2 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 03 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 03 00 2F 1F 00 90 00 C2 [11:45:05]RAPDU: 90 00 [11:45:05]wFMCommunicate OK [11:45:05]SAM_PROTO_ClearQueue done [11:45:05]KKMCreateOFDPacket [11:45:05]OFDProtocolAddRootSTLVToBuf [11:45:05]FM_MakeSignedData [11:45:05]FM_MakeSignedData [11:45:05]SAM_PROTO_SignData [11:45:05]wFMCommunicate request_size=4 [11:45:05]MH_SAM_APDU [11:45:05]CAPDU: 80 0D 01 02 [11:45:05]Write to MH i2c: E2 08 00 30 1F 80 0D 01 02 00 00 00 00 C8 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:05]Read from MH i2c: E2 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 03 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 03 00 30 1F 00 90 00 C3 [11:45:05]RAPDU: 90 00 [11:45:05]wFMCommunicate OK [11:45:05]wFMCommunicate request_size=255 [11:45:05]MH_SAM_APDU [11:45:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 45 63 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E0 01 00 35 04 06 00 92 [11:45:05]Write to MH i2c: E2 02 01 31 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 45 63 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E0 01 00 35 04 06 00 92 00 00 28 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]OFD Sender: No OFD packet to send [11:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 03 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 03 00 31 1F 00 90 00 C4 [11:45:06]RAPDU: 90 00 [11:45:06]wFMCommunicate OK [11:45:06]wFMCommunicate request_size=10 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 0D 02 02 05 9E 4B 2E 2E A9 [11:45:06]Write to MH i2c: E2 0D 00 32 1F 80 0D 02 02 05 00 9E 4B 2E 2E A9 00 00 C3 [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 03 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 03 00 32 1F 00 90 00 C5 [11:45:06]RAPDU: 90 00 [11:45:06]wFMCommunicate OK [11:45:06]wFMCommunicate request_size=4 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 0D 03 02 [11:45:06]Write to MH i2c: E2 08 00 33 1F 80 0D 03 02 00 00 00 00 CD [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 0B 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 0B 00 33 1F 00 45 69 F7 18 92 63 7B EC 90 00 E7 [11:45:06]RAPDU: 45 69 F7 18 92 63 7B EC 90 00 [11:45:06]wFMCommunicate OK [11:45:06]SAM_PROTO_SignData done [11:45:06]FM_MakeSignedData done [11:45:06]CreateOFDProtocolMessage [11:45:06]wFMCommunicate request_size=4 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 11 00 00 [11:45:06]Write to MH i2c: E2 08 00 34 1F 80 11 00 00 00 00 00 00 CD [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 17 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 17 00 34 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 24 [11:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:45:06]wFMCommunicate OK [11:45:06]CreateOFDProtocolMessage done [11:45:06]OFDSenderStorePacket 123012 [11:45:06]StoreOFDPacket docnum=123012 [11:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5D BC 07 01 2E BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 45 63 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E0 01 00 35 04 06 00 92 9E 4B 2E 2E A9 45 69 F7 18 92 63 7B EC [11:45:06]CheckFolder [11:45:06]dirname=/storage/ofd_packets [11:45:06]CheckFolder done [11:45:06]ProducePacketName [11:45:06]name=ofd_packets/00123012 [11:45:06]NVStorageSaveData ofd_packets/00123012 [11:45:06]File name is /storage/ofd_packets/00123012 [11:45:06]Write 301 bytes [11:45:06]NVStorageSaveData done [11:45:06]OFDSenderStorePacket done [11:45:06]KKMCreateOFDPacket done [11:45:06]NVStorageSaveData kkm_last_timestamp [11:45:06]File name is /storage/kkm_last_timestamp [11:45:06]Write 4 bytes [11:45:06]NVStorageSaveData done [11:45:06]ExternCall_PrintAddStr [11:45:06]wPrintStart [11:45:06]Write to MH i2c: 01 00 00 35 1F 54 [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: 01 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: 01 07 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: 01 07 00 35 1F 00 00 00 00 00 FF 0F 69 [11:45:06]RasterBufferAndPrint [11:45:06]line Счет N : (1)717807 [11:45:06]line ИНН: 02508201610067 [11:45:06]line Контрольно-Кассовый Чек [11:45:06]line ПРОДАЖА [11:45:06]line ТРК (МРК, ГНК) : 42 [11:45:06]line Товар: 2710124130 [11:45:06]line Аи-92-К-4 [11:45:06]line 4.460 * 67.40 [11:45:06]line = 300.60 [11:45:06]line НДС 12% НСП 1% [11:45:06]line > о реализуемом товаре [11:45:06]line ОКРУГЛЕНИЕ: -0.60 [11:45:06]line ИТОГО: 300.00 [11:45:06]line Внесено: 300.00 [11:45:06]line СДАЧА: 0.00 [11:45:06]line НСП 1% : 2.66 [11:45:06]line НДС 12% : 31.92 [11:45:06]line Наличными: 300.00 [11:45:06]line Безнал.: 0.00 [11:45:06]line Место: АЗС № 64 "Партнер Нефть" [11:45:06]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:45:06]line СНО: Общий режим [11:45:06]line Чек 53 25.11.2024 11:45 [11:45:06]line Смена: 556 ФФД: 1.0 [11:45:06]line ЗНМ: 0300000033 [11:45:06]line РНМ: 0000000000092681 [11:45:06]line Версия ККМ: 001 [11:45:06]line ФМ: 0000000000874881 [11:45:06]line ФД: 123012 [11:45:06]line ФПД: 161208563805865 [11:45:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T114509&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123012&fm=161208563805865&tin=02508201610067®Number=0000000000092681&sum=30000 [11:45:06]OFD Sender: Processing packet 123012 [packets to send 7, broken 6] [11:45:06]ProducePacketName [11:45:06]name=ofd_packets/00123012 [11:45:06]OFD Sender: To server: pG, [11:45:06]CommunicateWithHost lk.salyk.kg:30040 [11:45:06]ConnectInit lk.salyk.kg [11:45:06]written 0, free lines is 4095 [11:45:06]Connected sock=10 [11:45:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5D BC 07 01 2E BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 45 63 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E0 01 00 35 04 06 00 92 9E 4B 2E 2E A9 45 69 F7 18 92 63 7B EC [11:45:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 FF 00 47 00 C5 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E0 01 00 F4 03 04 00 0B 0F 44 67 B6 04 01 00 00 D6 0C AC 09 BA EE E9 4B [11:45:06]CommunicateWithHost err = 0 [11:45:06]CheckOFDResponse [11:45:06]1017 (14) - 77093643461234 [11:45:06]1041 (16) - 0000000000874881 [11:45:06]1040 (4) - 123012 [11:45:06]1012 (4) - 25.11.2024 05:45 [11:45:06]1206 (1) - 0 [11:45:06]OFD Sender: Remove packet 123012 [11:45:06]ProducePacketName [11:45:06]name=ofd_packets/00123012 [11:45:06]NVStorageDeleteData [11:45:07]Write to MH i2c: 01 00 00 60 1F 7F [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: 01 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: 01 07 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: 01 07 00 60 1F 00 00 00 00 00 4E 0C E0 [11:45:07]RasterBufferAndPrint [11:45:07]line [11:45:07]line [11:45:07]line [11:45:07]line [11:45:07]line [11:45:07]written 0, free lines is 3153 [11:45:07]MH_Cut [11:45:07]Write to MH i2c: D1 01 00 67 1F 01 58 [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: D1 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: D1 01 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: D1 01 00 67 1F 00 57 [11:45:07]Write to MH i2c: 01 00 00 68 1F 87 [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]OFD Sender: No OFD packet to send [11:45:08]*** Cut start [11:45:08]*** Partial cut [11:45:08]*** CUTSNS_PIN = 1 [11:45:08]*** CUTSNS_PIN = 0 [11:45:08]*** Brake cut motor [11:45:09]Read from MH i2c: 01 [11:45:09]MH_I2C_Read... [11:45:09]*** Stop cut motor [11:45:09]*** Cut end [11:45:09]Read from MH i2c: 01 07 00 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: 01 07 00 68 1F 00 00 00 00 00 FF 0F 9C [11:45:09]process_action close_receipt done [11:45:09]requested_data is exist [11:45:09]produce_requested_data [11:45:09]requested_item fm.sn is exist - process it [11:45:09]wFMCommunicate request_size=4 [11:45:09]MH_SAM_APDU [11:45:09]CAPDU: 80 11 00 00 [11:45:09]Write to MH i2c: E2 08 00 69 1F 80 11 00 00 00 00 00 00 02 [11:45:09]Write i2c OK [11:45:09]MH_I2C_Read... [11:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:09]Read from MH i2c: E2 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: E2 17 00 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: E2 17 00 69 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 59 [11:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:45:09]wFMCommunicate OK [11:45:09]requested_item fd.num is exist - process it [11:45:09]SAM_PROTO_GetFieldsCounters [11:45:09]wFMCommunicate request_size=4 [11:45:09]MH_SAM_APDU [11:45:09]CAPDU: 80 13 00 00 [11:45:09]Write to MH i2c: E2 08 00 6A 1F 80 13 00 00 00 00 00 00 05 [11:45:09]Write i2c OK [11:45:09]MH_I2C_Read... [11:45:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:09]Read from MH i2c: E2 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: E2 62 00 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: E2 62 00 6A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 84 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [11:45:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 84 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:09]wFMCommunicate OK [11:45:09]SAM_PROTO_GetFieldsCounters done [11:45:09]requested_item shift.num is exist - process it [11:45:09]requested_item shift.opened is exist - process it [11:45:09]req_shift_opened [11:45:09]FM_GetShiftState [11:45:09]SAM_PROTO_GetShiftState [11:45:09]wFMCommunicate request_size=4 [11:45:09]MH_SAM_APDU [11:45:09]CAPDU: 80 13 01 00 [11:45:09]Write to MH i2c: E2 08 00 6B 1F 80 13 01 00 00 00 00 00 07 [11:45:09]Write i2c OK [11:45:09]MH_I2C_Read... [11:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:09]Read from MH i2c: E2 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: E2 0E 00 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: E2 0E 00 6B 1F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 86 [11:45:09]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:45:09]wFMCommunicate OK [11:45:09]SAM_PROTO_GetShiftState done [11:45:09]FM_GetShiftState done [11:45:09]req_shift_opened done [11:45:09]requested_item shift.open_date is exist - process it [11:45:09]req_shift_open_date [11:45:09]req_shift_open_date done [11:45:09]produce_requested_data done [11:45:09]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123012,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:45:09]process_action_free close_receipt [11:45:09]json_value_free [11:45:09]json_value_free done [11:45:09]process_json_proto returns [11:45:09]Send response to host [11:45:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123012,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:45:09]free response buf [11:45:09]execute_script done [11:45:09]execute_script returns [11:45:09]free content buf [11:45:09]Sock 7.Close socket [11:45:09]Sock 7.Thread stoped [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:08]accept exits with 9 [11:48:08]New connection [11:48:08]New thread 3066580324 created [11:48:08]Thread 3066723684 joined [11:48:08]Waiting for new connection... [11:48:08] Sock 9.Parse request [11:48:08]Sock 9.Check first char [11:48:08]Sock 9.First char is OK [11:48:08]request: POST /json_proto HTTP/1.0 [11:48:08]Method: POST [11:48:08]URL: /json_proto [11:48:08]Method is POST - this is cgi request [11:48:08]url: /json_proto [11:48:08]query_string will be loaded in cgi processing [11:48:08]execute_cgi json_proto POST (null) [11:48:08]execute_cgi path=json_proto method=POST [11:48:08]POST find Content-Length [11:48:08]Host: 172.17.37.4:8080 [11:48:08]Content-Length: 677 [11:48:08]Content-Type: application/json [11:48:08] [11:48:08]POST finish read [11:48:08]Found Content-Length = 677 [11:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:08]execute_script... [11:48:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:08]POST & json_proto [11:48:08]process_json_proto [11:48:08]json parsed OK: [11:48:08]protocol is kg_v1.0 [11:48:08]action value=close_receipt [11:48:08]process_action close_receipt [11:48:08]cmd_close_receipt [11:48:08]MH_GetDate [11:48:08]Write to MH i2c: F0 00 00 6C 1F 7A [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: F0 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: F0 09 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: F0 09 00 6C 1F 00 FC 63 44 67 B8 5A 43 67 49 [11:48:08]GetLastDocTimeStamp 1732535109 [11:48:08]current date 1732535292 [11:48:08]FM_GetShiftState [11:48:08]SAM_PROTO_GetShiftState [11:48:08]wFMCommunicate request_size=4 [11:48:08]MH_SAM_APDU [11:48:08]CAPDU: 80 13 01 00 [11:48:08]Write to MH i2c: E2 08 00 6D 1F 80 13 01 00 00 00 00 00 09 [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:08]Read from MH i2c: E2 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 0E 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 0E 00 6D 1F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 88 [11:48:08]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:48:08]wFMCommunicate OK [11:48:08]SAM_PROTO_GetShiftState done [11:48:08]FM_GetShiftState done [11:48:08]opened in 1732493066 [11:48:08]opened+sec_in_day 1732579466 [11:48:08]quantity*price = 50010 [11:48:08]sum+1 = 50012 [11:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 54 25.11.2024 11:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123013 ФПД: 213988663313790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T114812&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123013&fm=213988663313790&tin=02508201610067®Number=0000000000092681&sum=50000 [11:48:09]StoreToDocumentArchive [11:48:09]shift 556 fd 123013 [11:48:09]save to /storage/0556/doc_00123013 [11:48:09]save last doc name /storage/0556/doc_00123013 to /storage/kkm_last_doc_name [11:48:09]save OK [11:48:09]Clear old archive folders... [11:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:09]tlvbuf is B6E70200 [11:48:09]SAM_PROTO_ClearQueue [11:48:09]wFMCommunicate request_size=4 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 09 00 00 [11:48:09]Write to MH i2c: E2 08 00 7A 1F 80 09 00 00 00 00 00 00 0B [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 7A 1F 00 90 00 0D [11:48:09]RAPDU: 90 00 [11:48:09]wFMCommunicate OK [11:48:09]SAM_PROTO_ClearQueue done [11:48:09]KKMCreateOFDPacket [11:48:09]OFDProtocolAddRootSTLVToBuf [11:48:09]FM_MakeSignedData [11:48:09]FM_MakeSignedData [11:48:09]SAM_PROTO_SignData [11:48:09]wFMCommunicate request_size=4 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 0D 01 02 [11:48:09]Write to MH i2c: E2 08 00 7B 1F 80 0D 01 02 00 00 00 00 13 [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 7B 1F 00 90 00 0E [11:48:09]RAPDU: 90 00 [11:48:09]wFMCommunicate OK [11:48:09]wFMCommunicate request_size=255 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 FC 63 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E0 01 00 35 04 06 00 C2 [11:48:09]Write to MH i2c: E2 02 01 7C 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 FC 63 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E0 01 00 35 04 06 00 C2 00 00 10 [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 7C 1F 00 90 00 0F [11:48:09]RAPDU: 90 00 [11:48:09]wFMCommunicate OK [11:48:09]wFMCommunicate request_size=10 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 0D 02 02 05 9F 1E 43 45 7E [11:48:09]Write to MH i2c: E2 0D 00 7D 1F 80 0D 02 02 05 00 9F 1E 43 45 7E 00 00 E3 [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 7D 1F 00 90 00 10 [11:48:09]RAPDU: 90 00 [11:48:09]wFMCommunicate OK [11:48:09]wFMCommunicate request_size=4 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 0D 03 02 [11:48:09]Write to MH i2c: E2 08 00 7E 1F 80 0D 03 02 00 00 00 00 18 [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 0B 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 0B 00 7E 1F 00 11 4B EA E0 F8 C6 23 3A 90 00 5A [11:48:09]RAPDU: 11 4B EA E0 F8 C6 23 3A 90 00 [11:48:09]wFMCommunicate OK [11:48:09]SAM_PROTO_SignData done [11:48:09]FM_MakeSignedData done [11:48:09]CreateOFDProtocolMessage [11:48:09]wFMCommunicate request_size=4 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 11 00 00 [11:48:09]Write to MH i2c: E2 08 00 7F 1F 80 11 00 00 00 00 00 00 18 [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 17 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 17 00 7F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6F [11:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:48:09]wFMCommunicate OK [11:48:09]CreateOFDProtocolMessage done [11:48:09]OFDSenderStorePacket 123013 [11:48:09]StoreOFDPacket docnum=123013 [11:48:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 91 10 07 01 2B 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 FC 63 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E0 01 00 35 04 06 00 C2 9F 1E 43 45 7E 11 4B EA E0 F8 C6 23 3A [11:48:09]CheckFolder [11:48:09]dirname=/storage/ofd_packets [11:48:09]CheckFolder done [11:48:09]ProducePacketName [11:48:09]name=ofd_packets/00123013 [11:48:09]NVStorageSaveData ofd_packets/00123013 [11:48:09]File name is /storage/ofd_packets/00123013 [11:48:09]Write 301 bytes [11:48:09]NVStorageSaveData done [11:48:09]OFDSenderStorePacket done [11:48:09]KKMCreateOFDPacket done [11:48:09]NVStorageSaveData kkm_last_timestamp [11:48:09]File name is /storage/kkm_last_timestamp [11:48:09]Write 4 bytes [11:48:09]NVStorageSaveData done [11:48:09]ExternCall_PrintAddStr [11:48:09]wPrintStart [11:48:09]Write to MH i2c: 01 00 00 80 1F 9F [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: 01 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: 01 07 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 FF 0F B4 [11:48:09]RasterBufferAndPrint [11:48:09]line Счет N : (1)717808 [11:48:09]line ИНН: 02508201610067 [11:48:09]line Контрольно-Кассовый Чек [11:48:09]line ПРОДАЖА [11:48:09]line ТРК (МРК, ГНК) : 32 [11:48:09]line Товар: 2710124130 [11:48:09]line Аи-92-К-4 [11:48:09]line 7.420 * 67.40 [11:48:09]line = 500.11 [11:48:09]line НДС 12% НСП 1% [11:48:09]line > о реализуемом товаре [11:48:09]line ОКРУГЛЕНИЕ: -0.11 [11:48:09]line ИТОГО: 500.00 [11:48:09]line Внесено: 500.00 [11:48:09]line СДАЧА: 0.00 [11:48:09]line НСП 1% : 4.43 [11:48:09]line НДС 12% : 53.11 [11:48:09]line Наличными: 500.00 [11:48:09]line Безнал.: 0.00 [11:48:09]line Место: АЗС № 64 "Партнер Нефть" [11:48:09]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:48:09]line СНО: Общий режим [11:48:09]line Чек 54 25.11.2024 11:48 [11:48:09]line Смена: 556 ФФД: 1.0 [11:48:09]line ЗНМ: 0300000033 [11:48:09]line РНМ: 0000000000092681 [11:48:09]line Версия ККМ: 001 [11:48:09]line ФМ: 0000000000874881 [11:48:09]line ФД: 123013 [11:48:09]line ФПД: 213988663313790 [11:48:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T114812&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123013&fm=213988663313790&tin=02508201610067®Number=0000000000092681&sum=50000 [11:48:10]OFD Sender: Processing packet 123013 [packets to send 7, broken 6] [11:48:10]ProducePacketName [11:48:10]name=ofd_packets/00123013 [11:48:10]OFD Sender: To server: pG, [11:48:10]CommunicateWithHost lk.salyk.kg:30040 [11:48:10]ConnectInit lk.salyk.kg [11:48:10]written 0, free lines is 4095 [11:48:10]Connected sock=7 [11:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 91 10 07 01 2B 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 FC 63 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E0 01 00 35 04 06 00 C2 9F 1E 43 45 7E 11 4B EA E0 F8 C6 23 3A [11:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 44 2E 47 00 FC BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E0 01 00 F4 03 04 00 C2 0F 44 67 B6 04 01 00 00 9D 49 16 6E 69 F0 DC FC [11:48:10]CommunicateWithHost err = 0 [11:48:10]CheckOFDResponse [11:48:10]1017 (14) - 77093643461234 [11:48:10]1041 (16) - 0000000000874881 [11:48:10]1040 (4) - 123013 [11:48:10]1012 (4) - 25.11.2024 05:48 [11:48:10]1206 (1) - 0 [11:48:10]OFD Sender: Remove packet 123013 [11:48:10]ProducePacketName [11:48:10]name=ofd_packets/00123013 [11:48:10]NVStorageDeleteData [11:48:10]Write to MH i2c: 01 00 00 AB 1F CA [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 AB 1F 00 00 00 00 00 58 0C 35 [11:48:10]RasterBufferAndPrint [11:48:10]line [11:48:10]line [11:48:10]line [11:48:10]line [11:48:10]line [11:48:10]written 0, free lines is 3165 [11:48:10]MH_Cut [11:48:10]Write to MH i2c: D1 01 00 B2 1F 01 A3 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: D1 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: D1 01 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: D1 01 00 B2 1F 00 A2 [11:48:10]Write to MH i2c: 01 00 00 B3 1F D2 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]OFD Sender: No OFD packet to send [11:48:11]*** Cut start [11:48:11]*** Partial cut [11:48:11]*** CUTSNS_PIN = 1 [11:48:12]*** CUTSNS_PIN = 0 [11:48:12]*** Brake cut motor [11:48:12]Read from MH i2c: 01 [11:48:12]MH_I2C_Read... [11:48:12]*** Stop cut motor [11:48:12]*** Cut end [11:48:12]Read from MH i2c: 01 07 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: 01 07 00 B3 1F 00 00 00 00 00 FF 0F E7 [11:48:12]process_action close_receipt done [11:48:12]requested_data is exist [11:48:12]produce_requested_data [11:48:12]requested_item fm.sn is exist - process it [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 11 00 00 [11:48:12]Write to MH i2c: E2 08 00 B4 1F 80 11 00 00 00 00 00 00 4D [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 17 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 17 00 B4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A4 [11:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:48:12]wFMCommunicate OK [11:48:12]requested_item fd.num is exist - process it [11:48:12]SAM_PROTO_GetFieldsCounters [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 13 00 00 [11:48:12]Write to MH i2c: E2 08 00 B5 1F 80 13 00 00 00 00 00 00 50 [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 62 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 62 00 B5 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 85 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [11:48:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 85 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:12]wFMCommunicate OK [11:48:12]SAM_PROTO_GetFieldsCounters done [11:48:12]requested_item shift.num is exist - process it [11:48:12]requested_item shift.opened is exist - process it [11:48:12]req_shift_opened [11:48:12]FM_GetShiftState [11:48:12]SAM_PROTO_GetShiftState [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 13 01 00 [11:48:12]Write to MH i2c: E2 08 00 B6 1F 80 13 01 00 00 00 00 00 52 [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 0E 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 0E 00 B6 1F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D1 [11:48:12]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:48:12]wFMCommunicate OK [11:48:12]SAM_PROTO_GetShiftState done [11:48:12]FM_GetShiftState done [11:48:12]req_shift_opened done [11:48:12]requested_item shift.open_date is exist - process it [11:48:12]req_shift_open_date [11:48:12]req_shift_open_date done [11:48:12]produce_requested_data done [11:48:12]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123013,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:48:12]process_action_free close_receipt [11:48:12]json_value_free [11:48:12]json_value_free done [11:48:12]process_json_proto returns [11:48:12]Send response to host [11:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123013,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:48:12]free response buf [11:48:12]execute_script done [11:48:12]execute_script returns [11:48:12]free content buf [11:48:12]Sock 9.Close socket [11:48:12]Sock 9.Thread stoped [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:19]accept exits with 10 [11:49:19]New connection [11:49:19]New thread 3066723684 created [11:49:19]Thread 3066580324 joined [11:49:19]Waiting for new connection... [11:49:19] Sock 10.Parse request [11:49:19]Sock 10.Check first char [11:49:19]Sock 10.First char is OK [11:49:19]request: POST /json_proto HTTP/1.0 [11:49:19]Method: POST [11:49:19]URL: /json_proto [11:49:19]Method is POST - this is cgi request [11:49:19]url: /json_proto [11:49:19]query_string will be loaded in cgi processing [11:49:19]execute_cgi json_proto POST (null) [11:49:19]execute_cgi path=json_proto method=POST [11:49:19]POST find Content-Length [11:49:19]Host: 172.17.37.4:8080 [11:49:19]Content-Length: 678 [11:49:19]Content-Type: application/json [11:49:19] [11:49:19]POST finish read [11:49:19]Found Content-Length = 678 [11:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:19]execute_script... [11:49:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:19]POST & json_proto [11:49:19]process_json_proto [11:49:19]json parsed OK: [11:49:19]protocol is kg_v1.0 [11:49:19]action value=close_receipt [11:49:19]process_action close_receipt [11:49:19]cmd_close_receipt [11:49:19]MH_GetDate [11:49:19]Write to MH i2c: F0 00 00 B7 1F C5 [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: F0 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: F0 09 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: F0 09 00 B7 1F 00 44 64 44 67 B8 5A 43 67 DD [11:49:19]GetLastDocTimeStamp 1732535292 [11:49:19]current date 1732535364 [11:49:19]FM_GetShiftState [11:49:19]SAM_PROTO_GetShiftState [11:49:19]wFMCommunicate request_size=4 [11:49:19]MH_SAM_APDU [11:49:19]CAPDU: 80 13 01 00 [11:49:19]Write to MH i2c: E2 08 00 B8 1F 80 13 01 00 00 00 00 00 54 [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 0E 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 0E 00 B8 1F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D3 [11:49:19]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:49:19]wFMCommunicate OK [11:49:19]SAM_PROTO_GetShiftState done [11:49:19]FM_GetShiftState done [11:49:19]opened in 1732493066 [11:49:19]opened+sec_in_day 1732579466 [11:49:19]quantity*price = 70028 [11:49:19]sum+1 = 70030 [11:49:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 55 25.11.2024 11:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123014 ФПД: 51785003048285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T114924&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123014&fm=51785003048285&tin=02508201610067®Number=0000000000092681&sum=70000 [11:49:20]StoreToDocumentArchive [11:49:20]shift 556 fd 123014 [11:49:20]save to /storage/0556/doc_00123014 [11:49:20]save last doc name /storage/0556/doc_00123014 to /storage/kkm_last_doc_name [11:49:20]save OK [11:49:20]Clear old archive folders... [11:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:20]tlvbuf is B6E700F0 [11:49:20]SAM_PROTO_ClearQueue [11:49:20]wFMCommunicate request_size=4 [11:49:20]MH_SAM_APDU [11:49:20]CAPDU: 80 09 00 00 [11:49:20]Write to MH i2c: E2 08 00 C5 1F 80 09 00 00 00 00 00 00 56 [11:49:20]Write i2c OK [11:49:20]MH_I2C_Read... [11:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:20]Read from MH i2c: E2 [11:49:20]MH_I2C_Read... [11:49:20]Read from MH i2c: E2 03 00 [11:49:20]MH_I2C_Read... [11:49:20]Read from MH i2c: E2 03 00 C5 1F 00 90 00 58 [11:49:20]RAPDU: 90 00 [11:49:20]wFMCommunicate OK [11:49:20]SAM_PROTO_ClearQueue done [11:49:20]KKMCreateOFDPacket [11:49:20]OFDProtocolAddRootSTLVToBuf [11:49:20]FM_MakeSignedData [11:49:20]FM_MakeSignedData [11:49:20]SAM_PROTO_SignData [11:49:20]wFMCommunicate request_size=4 [11:49:20]MH_SAM_APDU [11:49:20]CAPDU: 80 0D 01 02 [11:49:20]Write to MH i2c: E2 08 00 C6 1F 80 0D 01 02 00 00 00 00 5E [11:49:20]Write i2c OK [11:49:20]MH_I2C_Read... [11:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:20]Read from MH i2c: E2 [11:49:20]MH_I2C_Read... [11:49:20]Read from MH i2c: E2 03 00 [11:49:20]MH_I2C_Read... [11:49:20]Read from MH i2c: E2 03 00 C6 1F 00 90 00 59 [11:49:20]RAPDU: 90 00 [11:49:20]wFMCommunicate OK [11:49:20]wFMCommunicate request_size=255 [11:49:20]MH_SAM_APDU [11:49:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 37 00 00 00 F4 03 04 00 44 64 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E0 01 00 35 04 06 00 2F [11:49:20]Write to MH i2c: E2 02 01 C7 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 37 00 00 00 F4 03 04 00 44 64 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E0 01 00 35 04 06 00 2F 00 00 21 [11:49:20]Write i2c OK [11:49:20]MH_I2C_Read... [11:49:21]OFD Sender: No OFD packet to send [11:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:21]Read from MH i2c: E2 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 03 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 03 00 C7 1F 00 90 00 5A [11:49:21]RAPDU: 90 00 [11:49:21]wFMCommunicate OK [11:49:21]wFMCommunicate request_size=10 [11:49:21]MH_SAM_APDU [11:49:21]CAPDU: 80 0D 02 02 05 19 22 B6 1D 5D [11:49:21]Write to MH i2c: E2 0D 00 C8 1F 80 0D 02 02 05 00 19 22 B6 1D 5D 00 00 D6 [11:49:21]Write i2c OK [11:49:21]MH_I2C_Read... [11:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:21]Read from MH i2c: E2 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 03 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 03 00 C8 1F 00 90 00 5B [11:49:21]RAPDU: 90 00 [11:49:21]wFMCommunicate OK [11:49:21]wFMCommunicate request_size=4 [11:49:21]MH_SAM_APDU [11:49:21]CAPDU: 80 0D 03 02 [11:49:21]Write to MH i2c: E2 08 00 C9 1F 80 0D 03 02 00 00 00 00 63 [11:49:21]Write i2c OK [11:49:21]MH_I2C_Read... [11:49:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:21]Read from MH i2c: E2 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 0B 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 0B 00 C9 1F 00 95 33 A4 85 E3 BD CE A2 90 00 65 [11:49:21]RAPDU: 95 33 A4 85 E3 BD CE A2 90 00 [11:49:21]wFMCommunicate OK [11:49:21]SAM_PROTO_SignData done [11:49:21]FM_MakeSignedData done [11:49:21]CreateOFDProtocolMessage [11:49:21]wFMCommunicate request_size=4 [11:49:21]MH_SAM_APDU [11:49:21]CAPDU: 80 11 00 00 [11:49:21]Write to MH i2c: E2 08 00 CA 1F 80 11 00 00 00 00 00 00 63 [11:49:21]Write i2c OK [11:49:21]MH_I2C_Read... [11:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:21]Read from MH i2c: E2 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 17 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 17 00 CA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BA [11:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:49:21]wFMCommunicate OK [11:49:21]CreateOFDProtocolMessage done [11:49:21]OFDSenderStorePacket 123014 [11:49:21]StoreOFDPacket docnum=123014 [11:49:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0B E9 07 01 26 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 37 00 00 00 F4 03 04 00 44 64 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E0 01 00 35 04 06 00 2F 19 22 B6 1D 5D 95 33 A4 85 E3 BD CE A2 [11:49:21]CheckFolder [11:49:21]dirname=/storage/ofd_packets [11:49:21]CheckFolder done [11:49:21]ProducePacketName [11:49:21]name=ofd_packets/00123014 [11:49:21]NVStorageSaveData ofd_packets/00123014 [11:49:21]File name is /storage/ofd_packets/00123014 [11:49:21]Write 301 bytes [11:49:21]NVStorageSaveData done [11:49:21]OFDSenderStorePacket done [11:49:21]KKMCreateOFDPacket done [11:49:21]NVStorageSaveData kkm_last_timestamp [11:49:21]File name is /storage/kkm_last_timestamp [11:49:21]Write 4 bytes [11:49:21]NVStorageSaveData done [11:49:21]ExternCall_PrintAddStr [11:49:21]wPrintStart [11:49:21]Write to MH i2c: 01 00 00 CB 1F EA [11:49:21]Write i2c OK [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: 01 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: 01 07 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 FF 0F FF [11:49:21]RasterBufferAndPrint [11:49:21]line Счет N : (1)717809 [11:49:21]line ИНН: 02508201610067 [11:49:21]line Контрольно-Кассовый Чек [11:49:21]line ПРОДАЖА [11:49:21]line ТРК (МРК, ГНК) : 12 [11:49:21]line Товар: 2710124130 [11:49:21]line Аи-92-К-4 [11:49:21]line 10.390 * 67.40 [11:49:21]line = 700.29 [11:49:21]line НДС 12% НСП 1% [11:49:21]line > о реализуемом товаре [11:49:21]line ОКРУГЛЕНИЕ: -0.29 [11:49:21]line ИТОГО: 700.00 [11:49:21]line Внесено: 700.00 [11:49:21]line СДАЧА: 0.00 [11:49:21]line НСП 1% : 6.20 [11:49:21]line НДС 12% : 74.37 [11:49:21]line Наличными: 700.00 [11:49:21]line Безнал.: 0.00 [11:49:21]line Место: АЗС № 64 "Партнер Нефть" [11:49:21]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:49:21]line СНО: Общий режим [11:49:21]line Чек 55 25.11.2024 11:49 [11:49:21]line Смена: 556 ФФД: 1.0 [11:49:21]line ЗНМ: 0300000033 [11:49:21]line РНМ: 0000000000092681 [11:49:21]line Версия ККМ: 001 [11:49:21]line ФМ: 0000000000874881 [11:49:21]line ФД: 123014 [11:49:21]line ФПД: 51785003048285 [11:49:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T114924&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123014&fm=51785003048285&tin=02508201610067®Number=0000000000092681&sum=70000 [11:49:21]OFD Sender: Processing packet 123014 [packets to send 7, broken 6] [11:49:21]ProducePacketName [11:49:21]name=ofd_packets/00123014 [11:49:21]OFD Sender: To server: pG, [11:49:21]CommunicateWithHost lk.salyk.kg:30040 [11:49:21]ConnectInit lk.salyk.kg [11:49:21]written 0, free lines is 4095 [11:49:21]Connected sock=9 [11:49:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0B E9 07 01 26 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 37 00 00 00 F4 03 04 00 44 64 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E0 01 00 35 04 06 00 2F 19 22 B6 1D 5D 95 33 A4 85 E3 BD CE A2 [11:49:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 9E A1 47 00 45 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E0 01 00 F4 03 04 00 0A 10 44 67 B6 04 01 00 00 71 D8 27 DD 23 9F 42 1F [11:49:21]CommunicateWithHost err = 0 [11:49:21]CheckOFDResponse [11:49:21]1017 (14) - 77093643461234 [11:49:21]1041 (16) - 0000000000874881 [11:49:21]1040 (4) - 123014 [11:49:21]1012 (4) - 25.11.2024 05:50 [11:49:21]1206 (1) - 0 [11:49:21]OFD Sender: Remove packet 123014 [11:49:21]ProducePacketName [11:49:21]name=ofd_packets/00123014 [11:49:21]NVStorageDeleteData [11:49:21]Write to MH i2c: 01 00 00 F6 1F 15 [11:49:21]Write i2c OK [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: 01 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: 01 07 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: 01 07 00 F6 1F 00 00 00 00 00 56 0C 7E [11:49:21]RasterBufferAndPrint [11:49:21]line [11:49:21]line [11:49:21]line [11:49:21]line [11:49:21]line [11:49:22]written 0, free lines is 3160 [11:49:22]MH_Cut [11:49:22]Write to MH i2c: D1 01 00 FD 1F 01 EE [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: D1 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: D1 01 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: D1 01 00 FD 1F 00 ED [11:49:22]Write to MH i2c: 01 00 00 FE 1F 1D [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]OFD Sender: No OFD packet to send [11:49:23]*** Cut start [11:49:23]*** Partial cut [11:49:23]*** CUTSNS_PIN = 1 [11:49:23]*** CUTSNS_PIN = 0 [11:49:23]*** Brake cut motor [11:49:23]Read from MH i2c: 01 [11:49:23]MH_I2C_Read... [11:49:23]*** Stop cut motor [11:49:23]*** Cut end [11:49:23]Read from MH i2c: 01 07 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 07 00 FE 1F 00 00 00 00 00 FF 0F 32 [11:49:23]process_action close_receipt done [11:49:23]requested_data is exist [11:49:23]produce_requested_data [11:49:23]requested_item fm.sn is exist - process it [11:49:23]wFMCommunicate request_size=4 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 11 00 00 [11:49:23]Write to MH i2c: E2 08 00 FF 1F 80 11 00 00 00 00 00 00 98 [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:24]Read from MH i2c: E2 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 17 00 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 17 00 FF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EF [11:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:49:24]wFMCommunicate OK [11:49:24]requested_item fd.num is exist - process it [11:49:24]SAM_PROTO_GetFieldsCounters [11:49:24]wFMCommunicate request_size=4 [11:49:24]MH_SAM_APDU [11:49:24]CAPDU: 80 13 00 00 [11:49:24]Write to MH i2c: E2 08 00 00 20 80 13 00 00 00 00 00 00 9C [11:49:24]Write i2c OK [11:49:24]MH_I2C_Read... [11:49:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:24]Read from MH i2c: E2 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 62 00 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 62 00 00 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 86 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [11:49:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 86 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:24]wFMCommunicate OK [11:49:24]SAM_PROTO_GetFieldsCounters done [11:49:24]requested_item shift.num is exist - process it [11:49:24]requested_item shift.opened is exist - process it [11:49:24]req_shift_opened [11:49:24]FM_GetShiftState [11:49:24]SAM_PROTO_GetShiftState [11:49:24]wFMCommunicate request_size=4 [11:49:24]MH_SAM_APDU [11:49:24]CAPDU: 80 13 01 00 [11:49:24]Write to MH i2c: E2 08 00 01 20 80 13 01 00 00 00 00 00 9E [11:49:24]Write i2c OK [11:49:24]MH_I2C_Read... [11:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:24]Read from MH i2c: E2 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 0E 00 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 0E 00 01 20 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1D [11:49:24]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:49:24]wFMCommunicate OK [11:49:24]SAM_PROTO_GetShiftState done [11:49:24]FM_GetShiftState done [11:49:24]req_shift_opened done [11:49:24]requested_item shift.open_date is exist - process it [11:49:24]req_shift_open_date [11:49:24]req_shift_open_date done [11:49:24]produce_requested_data done [11:49:24]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123014,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:49:24]process_action_free close_receipt [11:49:24]json_value_free [11:49:24]json_value_free done [11:49:24]process_json_proto returns [11:49:24]Send response to host [11:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123014,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:49:24]free response buf [11:49:24]execute_script done [11:49:24]execute_script returns [11:49:24]free content buf [11:49:24]Sock 10.Close socket [11:49:24]Sock 10.Thread stoped [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:12]accept exits with 7 [11:50:12]New connection [11:50:12]New thread 3066580324 created [11:50:12]Thread 3066723684 joined [11:50:12]Waiting for new connection... [11:50:12] Sock 7.Parse request [11:50:12]Sock 7.Check first char [11:50:12]Sock 7.First char is OK [11:50:12]request: POST /json_proto HTTP/1.0 [11:50:12]Method: POST [11:50:12]URL: /json_proto [11:50:12]Method is POST - this is cgi request [11:50:12]url: /json_proto [11:50:12]query_string will be loaded in cgi processing [11:50:12]execute_cgi json_proto POST (null) [11:50:12]execute_cgi path=json_proto method=POST [11:50:12]POST find Content-Length [11:50:12]Host: 172.17.37.4:8080 [11:50:12]Content-Length: 682 [11:50:12]Content-Type: application/json [11:50:12] [11:50:12]POST finish read [11:50:12]Found Content-Length = 682 [11:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:12]execute_script... [11:50: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)717810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:12]POST & json_proto [11:50:12]process_json_proto [11:50:12]json parsed OK: [11:50:12]protocol is kg_v1.0 [11:50:12]action value=close_receipt [11:50:12]process_action close_receipt [11:50:12]cmd_close_receipt [11:50:12]MH_GetDate [11:50:12]Write to MH i2c: F0 00 00 02 20 11 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: F0 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: F0 09 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: F0 09 00 02 20 00 79 64 44 67 B8 5A 43 67 5E [11:50:12]GetLastDocTimeStamp 1732535364 [11:50:12]current date 1732535417 [11:50:12]FM_GetShiftState [11:50:12]SAM_PROTO_GetShiftState [11:50:12]wFMCommunicate request_size=4 [11:50:12]MH_SAM_APDU [11:50:12]CAPDU: 80 13 01 00 [11:50:12]Write to MH i2c: E2 08 00 03 20 80 13 01 00 00 00 00 00 A0 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:12]Read from MH i2c: E2 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 0E 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 0E 00 03 20 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1F [11:50:12]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:50:12]wFMCommunicate OK [11:50:12]SAM_PROTO_GetShiftState done [11:50:12]FM_GetShiftState done [11:50:12]opened in 1732493066 [11:50:12]opened+sec_in_day 1732579466 [11:50:12]quantity*price = 100021 [11:50:12]sum+1 = 100023 [11:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 56 25.11.2024 11:50 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123015 ФПД: 151850124815723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T115017&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123015&fm=151850124815723&tin=02508201610067®Number=0000000000092681&sum=100000 [11:50:13]StoreToDocumentArchive [11:50:13]shift 556 fd 123015 [11:50:13]save to /storage/0556/doc_00123015 [11:50:13]save last doc name /storage/0556/doc_00123015 to /storage/kkm_last_doc_name [11:50:13]save OK [11:50:13]Clear old archive folders... [11:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:13]tlvbuf is B6E701A0 [11:50:13]SAM_PROTO_ClearQueue [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 09 00 00 [11:50:13]Write to MH i2c: E2 08 00 10 20 80 09 00 00 00 00 00 00 A2 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 10 20 00 90 00 A4 [11:50:13]RAPDU: 90 00 [11:50:13]wFMCommunicate OK [11:50:13]SAM_PROTO_ClearQueue done [11:50:13]KKMCreateOFDPacket [11:50:13]OFDProtocolAddRootSTLVToBuf [11:50:13]FM_MakeSignedData [11:50:13]FM_MakeSignedData [11:50:13]SAM_PROTO_SignData [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 0D 01 02 [11:50:13]Write to MH i2c: E2 08 00 11 20 80 0D 01 02 00 00 00 00 AA [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 11 20 00 90 00 A5 [11:50:13]RAPDU: 90 00 [11:50:13]wFMCommunicate OK [11:50:13]wFMCommunicate request_size=255 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 79 64 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E0 01 00 35 04 06 00 8A [11:50:13]Write to MH i2c: E2 02 01 12 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 79 64 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E0 01 00 35 04 06 00 8A 00 00 E1 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 12 20 00 90 00 A6 [11:50:13]RAPDU: 90 00 [11:50:13]wFMCommunicate OK [11:50:13]wFMCommunicate request_size=10 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 0D 02 02 05 1B 5C BF AD 6B [11:50:13]Write to MH i2c: E2 0D 00 13 20 80 0D 02 02 05 00 1B 5C BF AD 6B 00 00 05 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 13 20 00 90 00 A7 [11:50:14]RAPDU: 90 00 [11:50:14]wFMCommunicate OK [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 0D 03 02 [11:50:14]Write to MH i2c: E2 08 00 14 20 80 0D 03 02 00 00 00 00 AF [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 0B 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 0B 00 14 20 00 4F 68 CF F8 51 C3 2C A4 90 00 12 [11:50:14]RAPDU: 4F 68 CF F8 51 C3 2C A4 90 00 [11:50:14]wFMCommunicate OK [11:50:14]SAM_PROTO_SignData done [11:50:14]FM_MakeSignedData done [11:50:14]CreateOFDProtocolMessage [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 11 00 00 [11:50:14]Write to MH i2c: E2 08 00 15 20 80 11 00 00 00 00 00 00 AF [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 17 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 17 00 15 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 06 [11:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:50:14]wFMCommunicate OK [11:50:14]CreateOFDProtocolMessage done [11:50:14]OFDSenderStorePacket 123015 [11:50:14]StoreOFDPacket docnum=123015 [11:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5C 65 07 01 0E 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 79 64 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E0 01 00 35 04 06 00 8A 1B 5C BF AD 6B 4F 68 CF F8 51 C3 2C A4 [11:50:14]CheckFolder [11:50:14]dirname=/storage/ofd_packets [11:50:14]CheckFolder done [11:50:14]ProducePacketName [11:50:14]name=ofd_packets/00123015 [11:50:14]NVStorageSaveData ofd_packets/00123015 [11:50:14]File name is /storage/ofd_packets/00123015 [11:50:14]Write 301 bytes [11:50:14]NVStorageSaveData done [11:50:14]OFDSenderStorePacket done [11:50:14]KKMCreateOFDPacket done [11:50:14]NVStorageSaveData kkm_last_timestamp [11:50:14]File name is /storage/kkm_last_timestamp [11:50:14]Write 4 bytes [11:50:14]NVStorageSaveData done [11:50:14]ExternCall_PrintAddStr [11:50:14]wPrintStart [11:50:14]Write to MH i2c: 01 00 00 16 20 36 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 07 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 07 00 16 20 00 00 00 00 00 FF 0F 4B [11:50:14]RasterBufferAndPrint [11:50:14]line Счет N : (1)717810 [11:50:14]line ИНН: 02508201610067 [11:50:14]line Контрольно-Кассовый Чек [11:50:14]line ПРОДАЖА [11:50:14]line ТРК (МРК, ГНК) : 22 [11:50:14]line Товар: 2710124130 [11:50:14]line Аи-92-К-4 [11:50:14]line 14.840 * 67.40 [11:50:14]line = 1000.22 [11:50:14]line НДС 12% НСП 1% [11:50:14]line > о реализуемом товаре [11:50:14]line ОКРУГЛЕНИЕ: -0.22 [11:50:14]line ИТОГО: 1000.00 [11:50:14]line Внесено: 1000.00 [11:50:14]line СДАЧА: 0.00 [11:50:14]line НСП 1% : 8.85 [11:50:14]line НДС 12% : 106.22 [11:50:14]line Наличными: 1000.00 [11:50:14]line Безнал.: 0.00 [11:50:14]line Место: АЗС № 64 "Партнер Нефть" [11:50:14]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:50:14]line СНО: Общий режим [11:50:14]line Чек 56 25.11.2024 11:50 [11:50:14]line Смена: 556 ФФД: 1.0 [11:50:14]line ЗНМ: 0300000033 [11:50:14]line РНМ: 0000000000092681 [11:50:14]line Версия ККМ: 001 [11:50:14]line ФМ: 0000000000874881 [11:50:14]line ФД: 123015 [11:50:14]line ФПД: 151850124815723 [11:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T115017&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123015&fm=151850124815723&tin=02508201610067®Number=0000000000092681&sum=100000 [11:50:14]written 0, free lines is 4095 [11:50:14]OFD Sender: Processing packet 123015 [packets to send 7, broken 6] [11:50:14]ProducePacketName [11:50:14]name=ofd_packets/00123015 [11:50:14]OFD Sender: To server: pG, [11:50:14]CommunicateWithHost lk.salyk.kg:30040 [11:50:14]ConnectInit lk.salyk.kg [11:50:14]Connected sock=10 [11:50:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5C 65 07 01 0E 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 79 64 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E0 01 00 35 04 06 00 8A 1B 5C BF AD 6B 4F 68 CF F8 51 C3 2C A4 [11:50:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 62 70 47 00 15 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E0 01 00 F4 03 04 00 3E 10 44 67 B6 04 01 00 00 3B B3 77 29 34 FC 37 DC [11:50:14]CommunicateWithHost err = 0 [11:50:14]CheckOFDResponse [11:50:14]1017 (14) - 77093643461234 [11:50:14]1041 (16) - 0000000000874881 [11:50:14]1040 (4) - 123015 [11:50:14]1012 (4) - 25.11.2024 05:50 [11:50:14]1206 (1) - 0 [11:50:14]OFD Sender: Remove packet 123015 [11:50:14]ProducePacketName [11:50:14]name=ofd_packets/00123015 [11:50:14]NVStorageDeleteData [11:50:14]Write to MH i2c: 01 00 00 41 20 61 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 07 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 07 00 41 20 00 00 00 00 00 55 0C C9 [11:50:14]RasterBufferAndPrint [11:50:14]line [11:50:14]line [11:50:14]line [11:50:14]line [11:50:14]line [11:50:14]written 0, free lines is 3160 [11:50:14]MH_Cut [11:50:14]Write to MH i2c: D1 01 00 48 20 01 3A [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: D1 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: D1 01 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: D1 01 00 48 20 00 39 [11:50:14]Write to MH i2c: 01 00 00 49 20 69 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]OFD Sender: No OFD packet to send [11:50:15]*** Cut start [11:50:15]*** Partial cut [11:50:15]*** CUTSNS_PIN = 1 [11:50:15]*** CUTSNS_PIN = 0 [11:50:16]*** Brake cut motor [11:50:16]Read from MH i2c: 01 [11:50:16]MH_I2C_Read... [11:50:16]*** Stop cut motor [11:50:16]*** Cut end [11:50:16]Read from MH i2c: 01 07 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: 01 07 00 49 20 00 00 00 00 00 FF 0F 7E [11:50:16]process_action close_receipt done [11:50:16]requested_data is exist [11:50:16]produce_requested_data [11:50:16]requested_item fm.sn is exist - process it [11:50:16]wFMCommunicate request_size=4 [11:50:16]MH_SAM_APDU [11:50:16]CAPDU: 80 11 00 00 [11:50:16]Write to MH i2c: E2 08 00 4A 20 80 11 00 00 00 00 00 00 E4 [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:16]Read from MH i2c: E2 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 17 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 17 00 4A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3B [11:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:50:16]wFMCommunicate OK [11:50:16]requested_item fd.num is exist - process it [11:50:16]SAM_PROTO_GetFieldsCounters [11:50:16]wFMCommunicate request_size=4 [11:50:16]MH_SAM_APDU [11:50:16]CAPDU: 80 13 00 00 [11:50:16]Write to MH i2c: E2 08 00 4B 20 80 13 00 00 00 00 00 00 E7 [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:16]Read from MH i2c: E2 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 62 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 62 00 4B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 87 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [11:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 87 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:16]wFMCommunicate OK [11:50:16]SAM_PROTO_GetFieldsCounters done [11:50:16]requested_item shift.num is exist - process it [11:50:16]requested_item shift.opened is exist - process it [11:50:16]req_shift_opened [11:50:16]FM_GetShiftState [11:50:16]SAM_PROTO_GetShiftState [11:50:16]wFMCommunicate request_size=4 [11:50:16]MH_SAM_APDU [11:50:16]CAPDU: 80 13 01 00 [11:50:16]Write to MH i2c: E2 08 00 4C 20 80 13 01 00 00 00 00 00 E9 [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:16]Read from MH i2c: E2 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 0E 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 0E 00 4C 20 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 68 [11:50:16]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [11:50:16]wFMCommunicate OK [11:50:16]SAM_PROTO_GetShiftState done [11:50:16]FM_GetShiftState done [11:50:16]req_shift_opened done [11:50:16]requested_item shift.open_date is exist - process it [11:50:16]req_shift_open_date [11:50:16]req_shift_open_date done [11:50:16]produce_requested_data done [11:50:16]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123015,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [11:50:16]process_action_free close_receipt [11:50:16]json_value_free [11:50:16]json_value_free done [11:50:16]process_json_proto returns [11:50:16]Send response to host [11:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123015,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [11:50:16]free response buf [11:50:16]execute_script done [11:50:16]execute_script returns [11:50:16]free content buf [11:50:16]Sock 7.Close socket [11:50:16]Sock 7.Thread stoped [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:23]accept exits with 9 [12:00:23]New connection [12:00:23]New thread 3066723684 created [12:00:23]Thread 3066580324 joined [12:00:23]Waiting for new connection... [12:00:23] Sock 9.Parse request [12:00:23]Sock 9.Check first char [12:00:23]Sock 9.First char is OK [12:00:23]request: POST /json_proto HTTP/1.0 [12:00:23]Method: POST [12:00:23]URL: /json_proto [12:00:23]Method is POST - this is cgi request [12:00:23]url: /json_proto [12:00:23]query_string will be loaded in cgi processing [12:00:23]execute_cgi json_proto POST (null) [12:00:23]execute_cgi path=json_proto method=POST [12:00:23]POST find Content-Length [12:00:23]Host: 172.17.37.4:8080 [12:00:23]Content-Length: 677 [12:00:23]Content-Type: application/json [12:00:23] [12:00:23]POST finish read [12:00:23]Found Content-Length = 677 [12:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:00:23]execute_script... [12:00: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)717811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:00:23]POST & json_proto [12:00:23]process_json_proto [12:00:23]json parsed OK: [12:00:23]protocol is kg_v1.0 [12:00:23]action value=close_receipt [12:00:23]process_action close_receipt [12:00:23]cmd_close_receipt [12:00:23]MH_GetDate [12:00:23]Write to MH i2c: F0 00 00 4D 20 5C [12:00:23]Write i2c OK [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: F0 [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: F0 09 00 [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: F0 09 00 4D 20 00 DB 66 44 67 B8 5A 43 67 0D [12:00:23]GetLastDocTimeStamp 1732535417 [12:00:23]current date 1732536027 [12:00:23]FM_GetShiftState [12:00:23]SAM_PROTO_GetShiftState [12:00:23]wFMCommunicate request_size=4 [12:00:23]MH_SAM_APDU [12:00:23]CAPDU: 80 13 01 00 [12:00:23]Write to MH i2c: E2 08 00 4E 20 80 13 01 00 00 00 00 00 EB [12:00:23]Write i2c OK [12:00:23]MH_I2C_Read... [12:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:23]Read from MH i2c: E2 [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: E2 0E 00 [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: E2 0E 00 4E 20 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 6A [12:00:23]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:00:23]wFMCommunicate OK [12:00:23]SAM_PROTO_GetShiftState done [12:00:23]FM_GetShiftState done [12:00:23]opened in 1732493066 [12:00:23]opened+sec_in_day 1732579466 [12:00:23]quantity*price = 30060 [12:00:23]sum+1 = 30061 [12:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 57 25.11.2024 12:00 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123016 ФПД: 217861068723038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120027&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123016&fm=217861068723038&tin=02508201610067®Number=0000000000092681&sum=30000 [12:00:24]StoreToDocumentArchive [12:00:24]shift 556 fd 123016 [12:00:24]save to /storage/0556/doc_00123016 [12:00:24]save last doc name /storage/0556/doc_00123016 to /storage/kkm_last_doc_name [12:00:24]save OK [12:00:24]Clear old archive folders... [12:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:24]tlvbuf is 01F5EA60 [12:00:24]SAM_PROTO_ClearQueue [12:00:24]wFMCommunicate request_size=4 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 09 00 00 [12:00:24]Write to MH i2c: E2 08 00 5B 20 80 09 00 00 00 00 00 00 ED [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 03 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 03 00 5B 20 00 90 00 EF [12:00:24]RAPDU: 90 00 [12:00:24]wFMCommunicate OK [12:00:24]SAM_PROTO_ClearQueue done [12:00:24]KKMCreateOFDPacket [12:00:24]OFDProtocolAddRootSTLVToBuf [12:00:24]FM_MakeSignedData [12:00:24]FM_MakeSignedData [12:00:24]SAM_PROTO_SignData [12:00:24]wFMCommunicate request_size=4 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 0D 01 02 [12:00:24]Write to MH i2c: E2 08 00 5C 20 80 0D 01 02 00 00 00 00 F5 [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 03 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 03 00 5C 20 00 90 00 F0 [12:00:24]RAPDU: 90 00 [12:00:24]wFMCommunicate OK [12:00:24]wFMCommunicate request_size=255 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 DB 66 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E0 01 00 35 04 06 00 C6 [12:00:24]Write to MH i2c: E2 02 01 5D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 DB 66 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E0 01 00 35 04 06 00 C6 00 00 2A [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 03 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 03 00 5D 20 00 90 00 F1 [12:00:24]RAPDU: 90 00 [12:00:24]wFMCommunicate OK [12:00:24]wFMCommunicate request_size=10 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 0D 02 02 05 24 BB 9C 93 5E [12:00:24]Write to MH i2c: E2 0D 00 5E 20 80 0D 02 02 05 00 24 BB 9C 93 5E 00 00 6E [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 03 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 03 00 5E 20 00 90 00 F2 [12:00:24]RAPDU: 90 00 [12:00:24]wFMCommunicate OK [12:00:24]wFMCommunicate request_size=4 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 0D 03 02 [12:00:24]Write to MH i2c: E2 08 00 5F 20 80 0D 03 02 00 00 00 00 FA [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 0B 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 0B 00 5F 20 00 C2 3E F4 74 4D 88 20 E4 90 00 3C [12:00:24]RAPDU: C2 3E F4 74 4D 88 20 E4 90 00 [12:00:24]wFMCommunicate OK [12:00:24]SAM_PROTO_SignData done [12:00:24]FM_MakeSignedData done [12:00:24]CreateOFDProtocolMessage [12:00:24]wFMCommunicate request_size=4 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 11 00 00 [12:00:24]Write to MH i2c: E2 08 00 60 20 80 11 00 00 00 00 00 00 FA [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 17 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 17 00 60 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 51 [12:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:00:24]wFMCommunicate OK [12:00:24]CreateOFDProtocolMessage done [12:00:24]OFDSenderStorePacket 123016 [12:00:24]StoreOFDPacket docnum=123016 [12:00:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3C 7E 07 01 91 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 DB 66 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E0 01 00 35 04 06 00 C6 24 BB 9C 93 5E C2 3E F4 74 4D 88 20 E4 [12:00:24]CheckFolder [12:00:24]dirname=/storage/ofd_packets [12:00:24]CheckFolder done [12:00:24]ProducePacketName [12:00:24]name=ofd_packets/00123016 [12:00:24]NVStorageSaveData ofd_packets/00123016 [12:00:24]File name is /storage/ofd_packets/00123016 [12:00:24]Write 301 bytes [12:00:24]NVStorageSaveData done [12:00:24]OFDSenderStorePacket done [12:00:24]KKMCreateOFDPacket done [12:00:24]NVStorageSaveData kkm_last_timestamp [12:00:24]File name is /storage/kkm_last_timestamp [12:00:24]Write 4 bytes [12:00:24]NVStorageSaveData done [12:00:24]ExternCall_PrintAddStr [12:00:24]wPrintStart [12:00:24]Write to MH i2c: 01 00 00 61 20 81 [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: 01 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: 01 07 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: 01 07 00 61 20 00 00 00 00 00 FF 0F 96 [12:00:24]RasterBufferAndPrint [12:00:24]line Счет N : (1)717811 [12:00:24]line ИНН: 02508201610067 [12:00:24]line Контрольно-Кассовый Чек [12:00:24]line ПРОДАЖА [12:00:24]line ТРК (МРК, ГНК) : 12 [12:00:24]line Товар: 2710124130 [12:00:24]line Аи-92-К-4 [12:00:24]line 4.460 * 67.40 [12:00:24]line = 300.60 [12:00:24]line НДС 12% НСП 1% [12:00:24]line > о реализуемом товаре [12:00:24]line ОКРУГЛЕНИЕ: -0.60 [12:00:24]line ИТОГО: 300.00 [12:00:24]line Внесено: 300.00 [12:00:24]line СДАЧА: 0.00 [12:00:24]line НСП 1% : 2.66 [12:00:24]line НДС 12% : 31.92 [12:00:24]line Наличными: 300.00 [12:00:24]line Безнал.: 0.00 [12:00:24]line Место: АЗС № 64 "Партнер Нефть" [12:00:24]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:00:24]line СНО: Общий режим [12:00:24]line Чек 57 25.11.2024 12:00 [12:00:24]line Смена: 556 ФФД: 1.0 [12:00:24]line ЗНМ: 0300000033 [12:00:24]line РНМ: 0000000000092681 [12:00:24]line Версия ККМ: 001 [12:00:24]line ФМ: 0000000000874881 [12:00:24]line ФД: 123016 [12:00:24]line ФПД: 217861068723038 [12:00:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120027&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123016&fm=217861068723038&tin=02508201610067®Number=0000000000092681&sum=30000 [12:00:25]OFD Sender: Processing packet 123016 [packets to send 7, broken 6] [12:00:25]ProducePacketName [12:00:25]name=ofd_packets/00123016 [12:00:25]OFD Sender: To server: pG, [12:00:25]CommunicateWithHost lk.salyk.kg:30040 [12:00:25]ConnectInit lk.salyk.kg [12:00:25]written 0, free lines is 4095 [12:00:25]Connected sock=11 [12:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3C 7E 07 01 91 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 DB 66 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E0 01 00 35 04 06 00 C6 24 BB 9C 93 5E C2 3E F4 74 4D 88 20 E4 [12:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 74 DD 47 00 CC 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 34 38 38 31 10 04 04 00 88 E0 01 00 F4 03 04 00 A1 12 44 67 B6 04 01 00 00 72 28 A0 24 9B FC 9F 2F [12:00:25]CommunicateWithHost err = 0 [12:00:25]CheckOFDResponse [12:00:25]1017 (14) - 77093643461234 [12:00:25]1041 (16) - 0000000000874881 [12:00:25]1040 (4) - 123016 [12:00:25]1012 (4) - 25.11.2024 06:01 [12:00:25]1206 (1) - 0 [12:00:25]OFD Sender: Remove packet 123016 [12:00:25]ProducePacketName [12:00:25]name=ofd_packets/00123016 [12:00:25]NVStorageDeleteData [12:00:25]Write to MH i2c: 01 00 00 8C 20 AC [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 07 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 07 00 8C 20 00 00 00 00 00 4A 0C 09 [12:00:25]RasterBufferAndPrint [12:00:25]line [12:00:25]line [12:00:25]line [12:00:25]line [12:00:25]line [12:00:25]written 0, free lines is 3150 [12:00:25]MH_Cut [12:00:25]Write to MH i2c: D1 01 00 93 20 01 85 [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: D1 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: D1 01 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: D1 01 00 93 20 00 84 [12:00:25]Write to MH i2c: 01 00 00 94 20 B4 [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]OFD Sender: No OFD packet to send [12:00:26]*** Cut start [12:00:26]*** Partial cut [12:00:26]*** CUTSNS_PIN = 1 [12:00:26]*** CUTSNS_PIN = 0 [12:00:27]*** Brake cut motor [12:00:27]Read from MH i2c: 01 [12:00:27]MH_I2C_Read... [12:00:27]*** Stop cut motor [12:00:27]*** Cut end [12:00:27]Read from MH i2c: 01 07 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: 01 07 00 94 20 00 00 00 00 00 FF 0F C9 [12:00:27]process_action close_receipt done [12:00:27]requested_data is exist [12:00:27]produce_requested_data [12:00:27]requested_item fm.sn is exist - process it [12:00:27]wFMCommunicate request_size=4 [12:00:27]MH_SAM_APDU [12:00:27]CAPDU: 80 11 00 00 [12:00:27]Write to MH i2c: E2 08 00 95 20 80 11 00 00 00 00 00 00 2F [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:27]Read from MH i2c: E2 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 17 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 17 00 95 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 86 [12:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:00:27]wFMCommunicate OK [12:00:27]requested_item fd.num is exist - process it [12:00:27]SAM_PROTO_GetFieldsCounters [12:00:27]wFMCommunicate request_size=4 [12:00:27]MH_SAM_APDU [12:00:27]CAPDU: 80 13 00 00 [12:00:27]Write to MH i2c: E2 08 00 96 20 80 13 00 00 00 00 00 00 32 [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:27]Read from MH i2c: E2 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 62 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 62 00 96 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 88 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:00:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 88 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:27]wFMCommunicate OK [12:00:27]SAM_PROTO_GetFieldsCounters done [12:00:27]requested_item shift.num is exist - process it [12:00:27]requested_item shift.opened is exist - process it [12:00:27]req_shift_opened [12:00:27]FM_GetShiftState [12:00:27]SAM_PROTO_GetShiftState [12:00:27]wFMCommunicate request_size=4 [12:00:27]MH_SAM_APDU [12:00:27]CAPDU: 80 13 01 00 [12:00:27]Write to MH i2c: E2 08 00 97 20 80 13 01 00 00 00 00 00 34 [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:27]Read from MH i2c: E2 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 0E 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 0E 00 97 20 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B3 [12:00:27]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:00:27]wFMCommunicate OK [12:00:27]SAM_PROTO_GetShiftState done [12:00:27]FM_GetShiftState done [12:00:27]req_shift_opened done [12:00:27]requested_item shift.open_date is exist - process it [12:00:27]req_shift_open_date [12:00:27]req_shift_open_date done [12:00:27]produce_requested_data done [12:00:27]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123016,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:00:27]process_action_free close_receipt [12:00:27]json_value_free [12:00:27]json_value_free done [12:00:27]process_json_proto returns [12:00:27]Send response to host [12:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123016,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:00:27]free response buf [12:00:27]execute_script done [12:00:27]execute_script returns [12:00:27]free content buf [12:00:27]Sock 9.Close socket [12:00:27]Sock 9.Thread stoped [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:28]accept exits with 7 [12:01:28]New connection [12:01:28]New thread 3066580324 created [12:01:28]Thread 3066723684 joined [12:01:28]Waiting for new connection... [12:01:28] Sock 7.Parse request [12:01:28]Sock 7.Check first char [12:01:28]Sock 7.First char is OK [12:01:28]request: POST /json_proto HTTP/1.0 [12:01:28]Method: POST [12:01:28]URL: /json_proto [12:01:28]Method is POST - this is cgi request [12:01:28]url: /json_proto [12:01:28]query_string will be loaded in cgi processing [12:01:28]execute_cgi json_proto POST (null) [12:01:28]execute_cgi path=json_proto method=POST [12:01:28]POST find Content-Length [12:01:28]Host: 172.17.37.4:8080 [12:01:28]Content-Length: 678 [12:01:28]Content-Type: application/json [12:01:28] [12:01:28]POST finish read [12:01:28]Found Content-Length = 678 [12:01:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "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:01:28]execute_script... [12:01: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)717812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "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:01:28]POST & json_proto [12:01:28]process_json_proto [12:01:28]json parsed OK: [12:01:28]protocol is kg_v1.0 [12:01:28]action value=close_receipt [12:01:28]process_action close_receipt [12:01:28]cmd_close_receipt [12:01:28]MH_GetDate [12:01:28]Write to MH i2c: F0 00 00 98 20 A7 [12:01:28]Write i2c OK [12:01:28]MH_I2C_Read... [12:01:28]Read from MH i2c: F0 [12:01:28]MH_I2C_Read... [12:01:28]Read from MH i2c: F0 09 00 [12:01:28]MH_I2C_Read... [12:01:28]Read from MH i2c: F0 09 00 98 20 00 1D 67 44 67 B8 5A 43 67 9B [12:01:28]GetLastDocTimeStamp 1732536027 [12:01:28]current date 1732536093 [12:01:28]FM_GetShiftState [12:01:28]SAM_PROTO_GetShiftState [12:01:28]wFMCommunicate request_size=4 [12:01:28]MH_SAM_APDU [12:01:28]CAPDU: 80 13 01 00 [12:01:28]Write to MH i2c: E2 08 00 99 20 80 13 01 00 00 00 00 00 36 [12:01:28]Write i2c OK [12:01:28]MH_I2C_Read... [12:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:28]Read from MH i2c: E2 [12:01:28]MH_I2C_Read... [12:01:28]Read from MH i2c: E2 0E 00 [12:01:28]MH_I2C_Read... [12:01:28]Read from MH i2c: E2 0E 00 99 20 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B5 [12:01:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:01:28]wFMCommunicate OK [12:01:28]SAM_PROTO_GetShiftState done [12:01:28]FM_GetShiftState done [12:01:28]opened in 1732493066 [12:01:28]opened+sec_in_day 1732579466 [12:01:28]quantity*price = 80003 [12:01:28]sum+1 = 80005 [12:01:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 58 25.11.2024 12:01 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123017 ФПД: 121408090176560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120133&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123017&fm=121408090176560&tin=02508201610067®Number=0000000000092681&sum=80000 [12:01:29]StoreToDocumentArchive [12:01:29]shift 556 fd 123017 [12:01:29]save to /storage/0556/doc_00123017 [12:01:29]save last doc name /storage/0556/doc_00123017 to /storage/kkm_last_doc_name [12:01:29]save OK [12:01:29]Clear old archive folders... [12:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:29]tlvbuf is B6F1D2B0 [12:01:29]SAM_PROTO_ClearQueue [12:01:29]wFMCommunicate request_size=4 [12:01:29]MH_SAM_APDU [12:01:29]CAPDU: 80 09 00 00 [12:01:29]Write to MH i2c: E2 08 00 A6 20 80 09 00 00 00 00 00 00 38 [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:29]Read from MH i2c: E2 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 03 00 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 03 00 A6 20 00 90 00 3A [12:01:29]RAPDU: 90 00 [12:01:29]wFMCommunicate OK [12:01:29]SAM_PROTO_ClearQueue done [12:01:29]KKMCreateOFDPacket [12:01:29]OFDProtocolAddRootSTLVToBuf [12:01:29]FM_MakeSignedData [12:01:29]FM_MakeSignedData [12:01:29]SAM_PROTO_SignData [12:01:29]wFMCommunicate request_size=4 [12:01:29]MH_SAM_APDU [12:01:29]CAPDU: 80 0D 01 02 [12:01:29]Write to MH i2c: E2 08 00 A7 20 80 0D 01 02 00 00 00 00 40 [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:29]Read from MH i2c: E2 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 03 00 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 03 00 A7 20 00 90 00 3B [12:01:29]RAPDU: 90 00 [12:01:29]wFMCommunicate OK [12:01:29]wFMCommunicate request_size=255 [12:01:29]MH_SAM_APDU [12:01:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1D 67 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E0 01 00 35 04 06 00 6E [12:01:29]Write to MH i2c: E2 02 01 A8 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1D 67 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E0 01 00 35 04 06 00 6E 00 00 FD [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:29]Read from MH i2c: E2 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 03 00 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 03 00 A8 20 00 90 00 3C [12:01:29]RAPDU: 90 00 [12:01:29]wFMCommunicate OK [12:01:29]wFMCommunicate request_size=10 [12:01:29]MH_SAM_APDU [12:01:29]CAPDU: 80 0D 02 02 05 6B 86 16 7C 30 [12:01:29]Write to MH i2c: E2 0D 00 A9 20 80 0D 02 02 05 00 6B 86 16 7C 30 00 00 00 [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:29]Read from MH i2c: E2 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 03 00 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 03 00 A9 20 00 90 00 3D [12:01:29]RAPDU: 90 00 [12:01:29]wFMCommunicate OK [12:01:29]wFMCommunicate request_size=4 [12:01:29]MH_SAM_APDU [12:01:29]CAPDU: 80 0D 03 02 [12:01:29]Write to MH i2c: E2 08 00 AA 20 80 0D 03 02 00 00 00 00 45 [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:29]Read from MH i2c: E2 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 0B 00 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 0B 00 AA 20 00 04 46 57 A3 49 3A E0 5A 90 00 47 [12:01:29]RAPDU: 04 46 57 A3 49 3A E0 5A 90 00 [12:01:29]wFMCommunicate OK [12:01:29]SAM_PROTO_SignData done [12:01:29]FM_MakeSignedData done [12:01:29]CreateOFDProtocolMessage [12:01:29]wFMCommunicate request_size=4 [12:01:29]MH_SAM_APDU [12:01:29]CAPDU: 80 11 00 00 [12:01:29]Write to MH i2c: E2 08 00 AB 20 80 11 00 00 00 00 00 00 45 [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:30]Read from MH i2c: E2 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 17 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 17 00 AB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9C [12:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:01:30]wFMCommunicate OK [12:01:30]CreateOFDProtocolMessage done [12:01:30]OFDSenderStorePacket 123017 [12:01:30]StoreOFDPacket docnum=123017 [12:01:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1C 9E 07 01 FB 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 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1D 67 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E0 01 00 35 04 06 00 6E 6B 86 16 7C 30 04 46 57 A3 49 3A E0 5A [12:01:30]CheckFolder [12:01:30]dirname=/storage/ofd_packets [12:01:30]CheckFolder done [12:01:30]ProducePacketName [12:01:30]name=ofd_packets/00123017 [12:01:30]NVStorageSaveData ofd_packets/00123017 [12:01:30]File name is /storage/ofd_packets/00123017 [12:01:30]Write 301 bytes [12:01:30]NVStorageSaveData done [12:01:30]OFDSenderStorePacket done [12:01:30]KKMCreateOFDPacket done [12:01:30]NVStorageSaveData kkm_last_timestamp [12:01:30]File name is /storage/kkm_last_timestamp [12:01:30]Write 4 bytes [12:01:30]NVStorageSaveData done [12:01:30]ExternCall_PrintAddStr [12:01:30]wPrintStart [12:01:30]Write to MH i2c: 01 00 00 AC 20 CC [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: 01 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: 01 07 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: 01 07 00 AC 20 00 00 00 00 00 FF 0F E1 [12:01:30]RasterBufferAndPrint [12:01:30]line Счет N : (1)717812 [12:01:30]line ИНН: 02508201610067 [12:01:30]line Контрольно-Кассовый Чек [12:01:30]line ПРОДАЖА [12:01:30]line ТРК (МРК, ГНК) : 42 [12:01:30]line Товар: 2710124130 [12:01:30]line Аи-92-К-4 [12:01:30]line 11.870 * 67.40 [12:01:30]line = 800.04 [12:01:30]line НДС 12% НСП 1% [12:01:30]line > о реализуемом товаре [12:01:30]line ОКРУГЛЕНИЕ: -0.04 [12:01:30]line ИТОГО: 800.00 [12:01:30]line Внесено: 800.00 [12:01:30]line СДАЧА: 0.00 [12:01:30]line НСП 1% : 7.08 [12:01:30]line НДС 12% : 84.96 [12:01:30]line Наличными: 800.00 [12:01:30]line Безнал.: 0.00 [12:01:30]line Место: АЗС № 64 "Партнер Нефть" [12:01:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:01:30]line СНО: Общий режим [12:01:30]line Чек 58 25.11.2024 12:01 [12:01:30]line Смена: 556 ФФД: 1.0 [12:01:30]line ЗНМ: 0300000033 [12:01:30]line РНМ: 0000000000092681 [12:01:30]line Версия ККМ: 001 [12:01:30]line ФМ: 0000000000874881 [12:01:30]line ФД: 123017 [12:01:30]line ФПД: 121408090176560 [12:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120133&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123017&fm=121408090176560&tin=02508201610067®Number=0000000000092681&sum=80000 [12:01:30]OFD Sender: Processing packet 123017 [packets to send 7, broken 6] [12:01:30]ProducePacketName [12:01:30]name=ofd_packets/00123017 [12:01:30]OFD Sender: To server: pG, [12:01:30]CommunicateWithHost lk.salyk.kg:30040 [12:01:30]ConnectInit lk.salyk.kg [12:01:30]written 0, free lines is 4095 [12:01:30]Connected sock=9 [12:01:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1C 9E 07 01 FB 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 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1D 67 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E0 01 00 35 04 06 00 6E 6B 86 16 7C 30 04 46 57 A3 49 3A E0 5A [12:01:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 53 FA 47 00 9E 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 34 38 38 31 10 04 04 00 89 E0 01 00 F4 03 04 00 E3 12 44 67 B6 04 01 00 00 DC 19 46 7B 2B AB EE 0A [12:01:30]CommunicateWithHost err = 0 [12:01:30]CheckOFDResponse [12:01:30]1017 (14) - 77093643461234 [12:01:30]1041 (16) - 0000000000874881 [12:01:30]1040 (4) - 123017 [12:01:30]1012 (4) - 25.11.2024 06:02 [12:01:30]1206 (1) - 0 [12:01:30]OFD Sender: Remove packet 123017 [12:01:30]ProducePacketName [12:01:30]name=ofd_packets/00123017 [12:01:30]NVStorageDeleteData [12:01:30]Write to MH i2c: 01 00 00 D7 20 F7 [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: 01 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: 01 07 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: 01 07 00 D7 20 00 00 00 00 00 4E 0C 58 [12:01:30]RasterBufferAndPrint [12:01:30]line [12:01:30]line [12:01:30]line [12:01:30]line [12:01:30]line [12:01:30]written 0, free lines is 3154 [12:01:30]MH_Cut [12:01:30]Write to MH i2c: D1 01 00 DE 20 01 D0 [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: D1 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: D1 01 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: D1 01 00 DE 20 00 CF [12:01:30]Write to MH i2c: 01 00 00 DF 20 FF [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:31]OFD Sender: No OFD packet to send [12:01:32]*** Cut start [12:01:32]*** Partial cut [12:01:32]*** CUTSNS_PIN = 1 [12:01:32]*** CUTSNS_PIN = 0 [12:01:32]*** Brake cut motor [12:01:32]Read from MH i2c: 01 [12:01:32]MH_I2C_Read... [12:01:32]*** Stop cut motor [12:01:32]*** Cut end [12:01:32]Read from MH i2c: 01 07 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 07 00 DF 20 00 00 00 00 00 FF 0F 14 [12:01:32]process_action close_receipt done [12:01:32]requested_data is exist [12:01:32]produce_requested_data [12:01:32]requested_item fm.sn is exist - process it [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 11 00 00 [12:01:32]Write to MH i2c: E2 08 00 E0 20 80 11 00 00 00 00 00 00 7A [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 17 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 17 00 E0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D1 [12:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:01:32]wFMCommunicate OK [12:01:32]requested_item fd.num is exist - process it [12:01:32]SAM_PROTO_GetFieldsCounters [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 13 00 00 [12:01:32]Write to MH i2c: E2 08 00 E1 20 80 13 00 00 00 00 00 00 7D [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 62 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 62 00 E1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 89 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:01:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 89 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_GetFieldsCounters done [12:01:33]requested_item shift.num is exist - process it [12:01:33]requested_item shift.opened is exist - process it [12:01:33]req_shift_opened [12:01:33]FM_GetShiftState [12:01:33]SAM_PROTO_GetShiftState [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 13 01 00 [12:01:33]Write to MH i2c: E2 08 00 E2 20 80 13 01 00 00 00 00 00 7F [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0E 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0E 00 E2 20 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FE [12:01:33]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_GetShiftState done [12:01:33]FM_GetShiftState done [12:01:33]req_shift_opened done [12:01:33]requested_item shift.open_date is exist - process it [12:01:33]req_shift_open_date [12:01:33]req_shift_open_date done [12:01:33]produce_requested_data done [12:01:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123017,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:01:33]process_action_free close_receipt [12:01:33]json_value_free [12:01:33]json_value_free done [12:01:33]process_json_proto returns [12:01:33]Send response to host [12:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123017,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:01:33]free response buf [12:01:33]execute_script done [12:01:33]execute_script returns [12:01:33]free content buf [12:01:33]Sock 7.Close socket [12:01:33]Sock 7.Thread stoped [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [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]accept exits with 10 [12:06:01]New connection [12:06:01]New thread 3066723684 created [12:06:01]Thread 3066580324 joined [12:06:01]Waiting for new connection... [12:06:01] Sock 10.Parse request [12:06:01]Sock 10.Check first char [12:06:01]Sock 10.First char is OK [12:06:01]request: POST /json_proto HTTP/1.0 [12:06:01]Method: POST [12:06:01]URL: /json_proto [12:06:01]Method is POST - this is cgi request [12:06:01]url: /json_proto [12:06:01]query_string will be loaded in cgi processing [12:06:01]execute_cgi json_proto POST (null) [12:06:01]execute_cgi path=json_proto method=POST [12:06:01]POST find Content-Length [12:06:01]Host: 172.17.37.4:8080 [12:06:01]Content-Length: 677 [12:06:01]Content-Type: application/json [12:06:01] [12:06:01]POST finish read [12:06:01]Found Content-Length = 677 [12:06:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:01]execute_script... [12:06: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)717813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:01]POST & json_proto [12:06:01]process_json_proto [12:06:01]json parsed OK: [12:06:01]protocol is kg_v1.0 [12:06:01]action value=close_receipt [12:06:01]process_action close_receipt [12:06:01]cmd_close_receipt [12:06:01]MH_GetDate [12:06:01]Write to MH i2c: F0 00 00 E3 20 F2 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: F0 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: F0 09 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: F0 09 00 E3 20 00 2D 68 44 67 B8 5A 43 67 F7 [12:06:01]GetLastDocTimeStamp 1732536093 [12:06:01]current date 1732536365 [12:06:01]FM_GetShiftState [12:06:01]SAM_PROTO_GetShiftState [12:06:01]wFMCommunicate request_size=4 [12:06:01]MH_SAM_APDU [12:06:01]CAPDU: 80 13 01 00 [12:06:01]Write to MH i2c: E2 08 00 E4 20 80 13 01 00 00 00 00 00 81 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:01]Read from MH i2c: E2 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 0E 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 0E 00 E4 20 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 00 [12:06:01]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:06:01]wFMCommunicate OK [12:06:01]SAM_PROTO_GetShiftState done [12:06:01]FM_GetShiftState done [12:06:01]opened in 1732493066 [12:06:01]opened+sec_in_day 1732579466 [12:06:01]quantity*price = 50010 [12:06:01]sum+1 = 50012 [12:06:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 59 25.11.2024 12:06 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123018 ФПД: 66906506284657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120606&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123018&fm=66906506284657&tin=02508201610067®Number=0000000000092681&sum=50000 [12:06:02]StoreToDocumentArchive [12:06:02]shift 556 fd 123018 [12:06:02]save to /storage/0556/doc_00123018 [12:06:02]save last doc name /storage/0556/doc_00123018 to /storage/kkm_last_doc_name [12:06:02]save OK [12:06:02]Clear old archive folders... [12:06:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:02]tlvbuf is 020B09D0 [12:06:02]SAM_PROTO_ClearQueue [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 09 00 00 [12:06:02]Write to MH i2c: E2 08 00 F1 20 80 09 00 00 00 00 00 00 83 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 03 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 03 00 F1 20 00 90 00 85 [12:06:02]RAPDU: 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_ClearQueue done [12:06:02]KKMCreateOFDPacket [12:06:02]OFDProtocolAddRootSTLVToBuf [12:06:02]FM_MakeSignedData [12:06:02]FM_MakeSignedData [12:06:02]SAM_PROTO_SignData [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 0D 01 02 [12:06:02]Write to MH i2c: E2 08 00 F2 20 80 0D 01 02 00 00 00 00 8B [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 03 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 03 00 F2 20 00 90 00 86 [12:06:02]RAPDU: 90 00 [12:06:02]wFMCommunicate OK [12:06:02]wFMCommunicate request_size=255 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2E 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8A E0 01 00 35 04 06 00 3C [12:06:02]Write to MH i2c: E2 02 01 F3 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2E 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8A E0 01 00 35 04 06 00 3C 00 00 43 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 03 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 03 00 F3 20 00 90 00 87 [12:06:02]RAPDU: 90 00 [12:06:02]wFMCommunicate OK [12:06:02]wFMCommunicate request_size=10 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 0D 02 02 05 D9 E2 8A 4E 71 [12:06:02]Write to MH i2c: E2 0D 00 F4 20 80 0D 02 02 05 00 D9 E2 8A 4E 71 00 00 9C [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 03 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 03 00 F4 20 00 90 00 88 [12:06:02]RAPDU: 90 00 [12:06:02]wFMCommunicate OK [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 0D 03 02 [12:06:02]Write to MH i2c: E2 08 00 F5 20 80 0D 03 02 00 00 00 00 90 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0B 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0B 00 F5 20 00 D8 38 3B B1 D7 53 4A B5 90 00 B6 [12:06:02]RAPDU: D8 38 3B B1 D7 53 4A B5 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_SignData done [12:06:02]FM_MakeSignedData done [12:06:02]CreateOFDProtocolMessage [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 11 00 00 [12:06:02]Write to MH i2c: E2 08 00 F6 20 80 11 00 00 00 00 00 00 90 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 F6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E7 [12:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:06:02]wFMCommunicate OK [12:06:02]CreateOFDProtocolMessage done [12:06:02]OFDSenderStorePacket 123018 [12:06:02]StoreOFDPacket docnum=123018 [12:06:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7E 27 07 01 C1 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2E 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8A E0 01 00 35 04 06 00 3C D9 E2 8A 4E 71 D8 38 3B B1 D7 53 4A B5 [12:06:02]CheckFolder [12:06:02]dirname=/storage/ofd_packets [12:06:02]CheckFolder done [12:06:02]ProducePacketName [12:06:02]name=ofd_packets/00123018 [12:06:02]NVStorageSaveData ofd_packets/00123018 [12:06:02]File name is /storage/ofd_packets/00123018 [12:06:02]Write 301 bytes [12:06:02]NVStorageSaveData done [12:06:02]OFDSenderStorePacket done [12:06:02]KKMCreateOFDPacket done [12:06:02]NVStorageSaveData kkm_last_timestamp [12:06:02]File name is /storage/kkm_last_timestamp [12:06:02]Write 4 bytes [12:06:02]NVStorageSaveData done [12:06:02]ExternCall_PrintAddStr [12:06:02]wPrintStart [12:06:02]Write to MH i2c: 01 00 00 F7 20 17 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 07 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 07 00 F7 20 00 00 00 00 00 FF 0F 2C [12:06:02]RasterBufferAndPrint [12:06:02]line Счет N : (1)717813 [12:06:02]line ИНН: 02508201610067 [12:06:02]line Контрольно-Кассовый Чек [12:06:02]line ПРОДАЖА [12:06:02]line ТРК (МРК, ГНК) : 22 [12:06:02]line Товар: 2710124130 [12:06:02]line Аи-92-К-4 [12:06:02]line 7.420 * 67.40 [12:06:02]line = 500.11 [12:06:02]line НДС 12% НСП 1% [12:06:02]line > о реализуемом товаре [12:06:02]line ОКРУГЛЕНИЕ: -0.11 [12:06:02]line ИТОГО: 500.00 [12:06:02]line Внесено: 500.00 [12:06:02]line СДАЧА: 0.00 [12:06:02]line НСП 1% : 4.43 [12:06:02]line НДС 12% : 53.11 [12:06:02]line Наличными: 500.00 [12:06:02]line Безнал.: 0.00 [12:06:02]line Место: АЗС № 64 "Партнер Нефть" [12:06:02]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:06:02]line СНО: Общий режим [12:06:02]line Чек 59 25.11.2024 12:06 [12:06:02]line Смена: 556 ФФД: 1.0 [12:06:02]line ЗНМ: 0300000033 [12:06:02]line РНМ: 0000000000092681 [12:06:02]line Версия ККМ: 001 [12:06:02]line ФМ: 0000000000874881 [12:06:02]line ФД: 123018 [12:06:02]line ФПД: 66906506284657 [12:06:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120606&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123018&fm=66906506284657&tin=02508201610067®Number=0000000000092681&sum=50000 [12:06:03]OFD Sender: Processing packet 123018 [packets to send 7, broken 6] [12:06:03]ProducePacketName [12:06:03]name=ofd_packets/00123018 [12:06:03]OFD Sender: To server: pG, [12:06:03]CommunicateWithHost lk.salyk.kg:30040 [12:06:03]ConnectInit lk.salyk.kg [12:06:03]written 0, free lines is 4095 [12:06:03]Connected sock=9 [12:06:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7E 27 07 01 C1 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2E 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8A E0 01 00 35 04 06 00 3C D9 E2 8A 4E 71 D8 38 3B B1 D7 53 4A B5 [12:06:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 46 68 47 00 26 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 34 38 38 31 10 04 04 00 8A E0 01 00 F4 03 04 00 F3 13 44 67 B6 04 01 00 00 84 A7 8D 02 74 07 9E 55 [12:06:03]CommunicateWithHost err = 0 [12:06:03]CheckOFDResponse [12:06:03]1017 (14) - 77093643461234 [12:06:03]1041 (16) - 0000000000874881 [12:06:03]1040 (4) - 123018 [12:06:03]1012 (4) - 25.11.2024 06:06 [12:06:03]1206 (1) - 0 [12:06:03]OFD Sender: Remove packet 123018 [12:06:03]ProducePacketName [12:06:03]name=ofd_packets/00123018 [12:06:03]NVStorageDeleteData [12:06:03]Write to MH i2c: 01 00 00 22 21 43 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: 01 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: 01 07 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: 01 07 00 22 21 00 00 00 00 00 4C 0C A2 [12:06:03]RasterBufferAndPrint [12:06:03]line [12:06:03]line [12:06:03]line [12:06:03]line [12:06:03]line [12:06:03]written 0, free lines is 3152 [12:06:03]MH_Cut [12:06:03]Write to MH i2c: D1 01 00 29 21 01 1C [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: D1 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: D1 01 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: D1 01 00 29 21 00 1B [12:06:03]Write to MH i2c: 01 00 00 2A 21 4B [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]OFD Sender: No OFD packet to send [12:06:04]*** Cut start [12:06:04]*** Partial cut [12:06:04]*** CUTSNS_PIN = 1 [12:06:04]*** CUTSNS_PIN = 0 [12:06:05]*** Brake cut motor [12:06:05]Read from MH i2c: 01 [12:06:05]MH_I2C_Read... [12:06:05]*** Stop cut motor [12:06:05]*** Cut end [12:06:05]Read from MH i2c: 01 07 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 07 00 2A 21 00 00 00 00 00 FF 0F 60 [12:06:05]process_action close_receipt done [12:06:05]requested_data is exist [12:06:05]produce_requested_data [12:06:05]requested_item fm.sn is exist - process it [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 11 00 00 [12:06:05]Write to MH i2c: E2 08 00 2B 21 80 11 00 00 00 00 00 00 C6 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 17 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 17 00 2B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1D [12:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:06:05]wFMCommunicate OK [12:06:05]requested_item fd.num is exist - process it [12:06:05]SAM_PROTO_GetFieldsCounters [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 13 00 00 [12:06:05]Write to MH i2c: E2 08 00 2C 21 80 13 00 00 00 00 00 00 C9 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 62 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 62 00 2C 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8A E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [12:06:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8A E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:05]wFMCommunicate OK [12:06:05]SAM_PROTO_GetFieldsCounters done [12:06:05]requested_item shift.num is exist - process it [12:06:05]requested_item shift.opened is exist - process it [12:06:05]req_shift_opened [12:06:05]FM_GetShiftState [12:06:05]SAM_PROTO_GetShiftState [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 13 01 00 [12:06:05]Write to MH i2c: E2 08 00 2D 21 80 13 01 00 00 00 00 00 CB [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 0E 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 0E 00 2D 21 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4A [12:06:05]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:06:05]wFMCommunicate OK [12:06:05]SAM_PROTO_GetShiftState done [12:06:05]FM_GetShiftState done [12:06:05]req_shift_opened done [12:06:05]requested_item shift.open_date is exist - process it [12:06:05]req_shift_open_date [12:06:05]req_shift_open_date done [12:06:05]produce_requested_data done [12:06:05]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123018,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:06:05]process_action_free close_receipt [12:06:05]json_value_free [12:06:05]json_value_free done [12:06:05]process_json_proto returns [12:06:05]Send response to host [12:06:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123018,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:06:05]free response buf [12:06:05]execute_script done [12:06:05]execute_script returns [12:06:05]free content buf [12:06:05]Sock 10.Close socket [12:06:05]Sock 10.Thread stoped [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:41]accept exits with 7 [12:07:41]New connection [12:07:41]New thread 3066580324 created [12:07:41]Thread 3066723684 joined [12:07:41]Waiting for new connection... [12:07:41] Sock 7.Parse request [12:07:41]Sock 7.Check first char [12:07:41]Sock 7.First char is OK [12:07:41]request: POST /json_proto HTTP/1.0 [12:07:41]Method: POST [12:07:41]URL: /json_proto [12:07:41]Method is POST - this is cgi request [12:07:41]url: /json_proto [12:07:41]query_string will be loaded in cgi processing [12:07:41]execute_cgi json_proto POST (null) [12:07:41]execute_cgi path=json_proto method=POST [12:07:41]POST find Content-Length [12:07:41]Host: 172.17.37.4:8080 [12:07:41]Content-Length: 677 [12:07:41]Content-Type: application/json [12:07:41] [12:07:41]POST finish read [12:07:41]Found Content-Length = 677 [12:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:07:41]execute_script... [12:07:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:07:41]POST & json_proto [12:07:41]process_json_proto [12:07:41]json parsed OK: [12:07:41]protocol is kg_v1.0 [12:07:41]action value=close_receipt [12:07:41]process_action close_receipt [12:07:41]cmd_close_receipt [12:07:41]MH_GetDate [12:07:41]Write to MH i2c: F0 00 00 2E 21 3E [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: F0 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: F0 09 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: F0 09 00 2E 21 00 92 68 44 67 B8 5A 43 67 A8 [12:07:41]GetLastDocTimeStamp 1732536366 [12:07:41]current date 1732536466 [12:07:41]FM_GetShiftState [12:07:41]SAM_PROTO_GetShiftState [12:07:41]wFMCommunicate request_size=4 [12:07:41]MH_SAM_APDU [12:07:41]CAPDU: 80 13 01 00 [12:07:41]Write to MH i2c: E2 08 00 2F 21 80 13 01 00 00 00 00 00 CD [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:41]Read from MH i2c: E2 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 0E 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 0E 00 2F 21 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4C [12:07:41]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:07:41]wFMCommunicate OK [12:07:41]SAM_PROTO_GetShiftState done [12:07:41]FM_GetShiftState done [12:07:41]opened in 1732493066 [12:07:41]opened+sec_in_day 1732579466 [12:07:41]quantity*price = 30060 [12:07:41]sum+1 = 30061 [12:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 60 25.11.2024 12:07 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123019 ФПД: 153312954069944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120746&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123019&fm=153312954069944&tin=02508201610067®Number=0000000000092681&sum=30000 [12:07:42]StoreToDocumentArchive [12:07:42]shift 556 fd 123019 [12:07:42]save to /storage/0556/doc_00123019 [12:07:42]save last doc name /storage/0556/doc_00123019 to /storage/kkm_last_doc_name [12:07:42]save OK [12:07:42]Clear old archive folders... [12:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:42]tlvbuf is B6F1D010 [12:07:42]SAM_PROTO_ClearQueue [12:07:42]wFMCommunicate request_size=4 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 09 00 00 [12:07:42]Write to MH i2c: E2 08 00 3C 21 80 09 00 00 00 00 00 00 CF [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:42]Read from MH i2c: E2 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 03 00 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 03 00 3C 21 00 90 00 D1 [12:07:42]RAPDU: 90 00 [12:07:42]wFMCommunicate OK [12:07:42]SAM_PROTO_ClearQueue done [12:07:42]KKMCreateOFDPacket [12:07:42]OFDProtocolAddRootSTLVToBuf [12:07:42]FM_MakeSignedData [12:07:42]FM_MakeSignedData [12:07:42]SAM_PROTO_SignData [12:07:42]wFMCommunicate request_size=4 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 0D 01 02 [12:07:42]Write to MH i2c: E2 08 00 3D 21 80 0D 01 02 00 00 00 00 D7 [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:42]Read from MH i2c: E2 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 03 00 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 03 00 3D 21 00 90 00 D2 [12:07:42]RAPDU: 90 00 [12:07:42]wFMCommunicate OK [12:07:42]wFMCommunicate request_size=255 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 92 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8B E0 01 00 35 04 06 00 8B [12:07:42]Write to MH i2c: E2 02 01 3E 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 92 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8B E0 01 00 35 04 06 00 8B 00 00 90 [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 [12:07:42]MH_I2C_Read... [12:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:42]Read from MH i2c: E2 03 00 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 03 00 3E 21 00 90 00 D3 [12:07:42]RAPDU: 90 00 [12:07:42]wFMCommunicate OK [12:07:42]wFMCommunicate request_size=10 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 0D 02 02 05 6F F4 2A B3 B8 [12:07:42]Write to MH i2c: E2 0D 00 3F 21 80 0D 02 02 05 00 6F F4 2A B3 B8 00 00 DC [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:42]Read from MH i2c: E2 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 03 00 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 03 00 3F 21 00 90 00 D4 [12:07:42]RAPDU: 90 00 [12:07:42]wFMCommunicate OK [12:07:42]wFMCommunicate request_size=4 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 0D 03 02 [12:07:42]Write to MH i2c: E2 08 00 40 21 80 0D 03 02 00 00 00 00 DC [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:42]Read from MH i2c: E2 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 0B 00 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 0B 00 40 21 00 29 A4 DC FB A6 29 86 B4 90 00 8A [12:07:42]RAPDU: 29 A4 DC FB A6 29 86 B4 90 00 [12:07:42]wFMCommunicate OK [12:07:42]SAM_PROTO_SignData done [12:07:42]FM_MakeSignedData done [12:07:42]CreateOFDProtocolMessage [12:07:42]wFMCommunicate request_size=4 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 11 00 00 [12:07:42]Write to MH i2c: E2 08 00 41 21 80 11 00 00 00 00 00 00 DC [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:42]Read from MH i2c: E2 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 17 00 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 17 00 41 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 33 [12:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:07:42]wFMCommunicate OK [12:07:42]CreateOFDProtocolMessage done [12:07:42]OFDSenderStorePacket 123019 [12:07:42]StoreOFDPacket docnum=123019 [12:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 2E 4D 07 01 8E 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 92 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8B E0 01 00 35 04 06 00 8B 6F F4 2A B3 B8 29 A4 DC FB A6 29 86 B4 [12:07:42]CheckFolder [12:07:42]dirname=/storage/ofd_packets [12:07:42]CheckFolder done [12:07:42]ProducePacketName [12:07:42]name=ofd_packets/00123019 [12:07:42]NVStorageSaveData ofd_packets/00123019 [12:07:42]File name is /storage/ofd_packets/00123019 [12:07:42]Write 301 bytes [12:07:42]NVStorageSaveData done [12:07:42]OFDSenderStorePacket done [12:07:42]KKMCreateOFDPacket done [12:07:42]NVStorageSaveData kkm_last_timestamp [12:07:42]File name is /storage/kkm_last_timestamp [12:07:42]Write 4 bytes [12:07:42]NVStorageSaveData done [12:07:42]ExternCall_PrintAddStr [12:07:42]wPrintStart [12:07:42]Write to MH i2c: 01 00 00 42 21 63 [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: 01 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: 01 07 00 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: 01 07 00 42 21 00 00 00 00 00 FF 0F 78 [12:07:42]RasterBufferAndPrint [12:07:42]line Счет N : (1)717814 [12:07:42]line ИНН: 02508201610067 [12:07:42]line Контрольно-Кассовый Чек [12:07:42]line ПРОДАЖА [12:07:42]line ТРК (МРК, ГНК) : 12 [12:07:42]line Товар: 2710124130 [12:07:42]line Аи-92-К-4 [12:07:42]line 4.460 * 67.40 [12:07:42]line = 300.60 [12:07:42]line НДС 12% НСП 1% [12:07:42]line > о реализуемом товаре [12:07:42]line ОКРУГЛЕНИЕ: -0.60 [12:07:42]line ИТОГО: 300.00 [12:07:42]line Внесено: 300.00 [12:07:42]line СДАЧА: 0.00 [12:07:42]line НСП 1% : 2.66 [12:07:42]line НДС 12% : 31.92 [12:07:42]line Наличными: 300.00 [12:07:42]line Безнал.: 0.00 [12:07:42]line Место: АЗС № 64 "Партнер Нефть" [12:07:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:07:42]line СНО: Общий режим [12:07:42]line Чек 60 25.11.2024 12:07 [12:07:42]line Смена: 556 ФФД: 1.0 [12:07:42]line ЗНМ: 0300000033 [12:07:42]line РНМ: 0000000000092681 [12:07:42]line Версия ККМ: 001 [12:07:42]line ФМ: 0000000000874881 [12:07:42]line ФД: 123019 [12:07:42]line ФПД: 153312954069944 [12:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120746&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123019&fm=153312954069944&tin=02508201610067®Number=0000000000092681&sum=30000 [12:07:43]OFD Sender: Processing packet 123019 [packets to send 7, broken 6] [12:07:43]ProducePacketName [12:07:43]name=ofd_packets/00123019 [12:07:43]OFD Sender: To server: pG, [12:07:43]CommunicateWithHost lk.salyk.kg:30040 [12:07:43]ConnectInit lk.salyk.kg [12:07:43]written 0, free lines is 4095 [12:07:43]Connected sock=10 [12:07:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 2E 4D 07 01 8E 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 92 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8B E0 01 00 35 04 06 00 8B 6F F4 2A B3 B8 29 A4 DC FB A6 29 86 B4 [12:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 09 B2 47 00 43 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 34 38 38 31 10 04 04 00 8B E0 01 00 F4 03 04 00 58 14 44 67 B6 04 01 00 00 5F F0 B2 37 58 35 2D 28 [12:07:43]CommunicateWithHost err = 0 [12:07:43]CheckOFDResponse [12:07:43]1017 (14) - 77093643461234 [12:07:43]1041 (16) - 0000000000874881 [12:07:43]1040 (4) - 123019 [12:07:43]1012 (4) - 25.11.2024 06:08 [12:07:43]1206 (1) - 0 [12:07:43]OFD Sender: Remove packet 123019 [12:07:43]ProducePacketName [12:07:43]name=ofd_packets/00123019 [12:07:43]NVStorageDeleteData [12:07:43]Write to MH i2c: 01 00 00 6D 21 8E [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: 01 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: 01 07 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: 01 07 00 6D 21 00 00 00 00 00 57 0C F8 [12:07:43]RasterBufferAndPrint [12:07:43]line [12:07:43]line [12:07:43]line [12:07:43]line [12:07:43]line [12:07:43]written 0, free lines is 3164 [12:07:43]MH_Cut [12:07:43]Write to MH i2c: D1 01 00 74 21 01 67 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: D1 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: D1 01 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: D1 01 00 74 21 00 66 [12:07:43]Write to MH i2c: 01 00 00 75 21 96 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:44]OFD Sender: No OFD packet to send [12:07:45]*** Cut start [12:07:45]*** Partial cut [12:07:45]*** CUTSNS_PIN = 1 [12:07:45]*** CUTSNS_PIN = 0 [12:07:45]*** Brake cut motor [12:07:45]Read from MH i2c: 01 [12:07:45]MH_I2C_Read... [12:07:45]*** Stop cut motor [12:07:45]*** Cut end [12:07:45]Read from MH i2c: 01 07 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: 01 07 00 75 21 00 00 00 00 00 FF 0F AB [12:07:45]process_action close_receipt done [12:07:45]requested_data is exist [12:07:45]produce_requested_data [12:07:45]requested_item fm.sn is exist - process it [12:07:45]wFMCommunicate request_size=4 [12:07:45]MH_SAM_APDU [12:07:45]CAPDU: 80 11 00 00 [12:07:45]Write to MH i2c: E2 08 00 76 21 80 11 00 00 00 00 00 00 11 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:45]Read from MH i2c: E2 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 17 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 17 00 76 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 68 [12:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:07:45]wFMCommunicate OK [12:07:45]requested_item fd.num is exist - process it [12:07:45]SAM_PROTO_GetFieldsCounters [12:07:45]wFMCommunicate request_size=4 [12:07:45]MH_SAM_APDU [12:07:45]CAPDU: 80 13 00 00 [12:07:45]Write to MH i2c: E2 08 00 77 21 80 13 00 00 00 00 00 00 14 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:45]Read from MH i2c: E2 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 62 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 62 00 77 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8B E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [12:07:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8B E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:45]wFMCommunicate OK [12:07:45]SAM_PROTO_GetFieldsCounters done [12:07:45]requested_item shift.num is exist - process it [12:07:45]requested_item shift.opened is exist - process it [12:07:45]req_shift_opened [12:07:45]FM_GetShiftState [12:07:45]SAM_PROTO_GetShiftState [12:07:45]wFMCommunicate request_size=4 [12:07:45]MH_SAM_APDU [12:07:45]CAPDU: 80 13 01 00 [12:07:45]Write to MH i2c: E2 08 00 78 21 80 13 01 00 00 00 00 00 16 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:45]Read from MH i2c: E2 [12:07:45]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0E 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0E 00 78 21 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 95 [12:07:46]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:07:46]wFMCommunicate OK [12:07:46]SAM_PROTO_GetShiftState done [12:07:46]FM_GetShiftState done [12:07:46]req_shift_opened done [12:07:46]requested_item shift.open_date is exist - process it [12:07:46]req_shift_open_date [12:07:46]req_shift_open_date done [12:07:46]produce_requested_data done [12:07:46]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123019,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:07:46]process_action_free close_receipt [12:07:46]json_value_free [12:07:46]json_value_free done [12:07:46]process_json_proto returns [12:07:46]Send response to host [12:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123019,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:07:46]free response buf [12:07:46]execute_script done [12:07:46]execute_script returns [12:07:46]free content buf [12:07:46]Sock 7.Close socket [12:07:46]Sock 7.Thread stoped [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:29]accept exits with 9 [12:09:29]New connection [12:09:29]New thread 3066723684 created [12:09:29]Thread 3066580324 joined [12:09:29]Waiting for new connection... [12:09:29] Sock 9.Parse request [12:09:29]Sock 9.Check first char [12:09:29]Sock 9.First char is OK [12:09:29]request: POST /json_proto HTTP/1.0 [12:09:29]Method: POST [12:09:29]URL: /json_proto [12:09:29]Method is POST - this is cgi request [12:09:29]url: /json_proto [12:09:29]query_string will be loaded in cgi processing [12:09:29]execute_cgi json_proto POST (null) [12:09:29]execute_cgi path=json_proto method=POST [12:09:29]POST find Content-Length [12:09:29]Host: 172.17.37.4:8080 [12:09:29]Content-Length: 678 [12:09:29]Content-Type: application/json [12:09:29] [12:09:29]POST finish read [12:09:29]Found Content-Length = 678 [12:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "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:09:29]execute_script... [12:09: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)717815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "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:09:29]POST & json_proto [12:09:29]process_json_proto [12:09:29]json parsed OK: [12:09:29]protocol is kg_v1.0 [12:09:29]action value=close_receipt [12:09:29]process_action close_receipt [12:09:29]cmd_close_receipt [12:09:29]MH_GetDate [12:09:29]Write to MH i2c: F0 00 00 79 21 89 [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: F0 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: F0 09 00 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: F0 09 00 79 21 00 FE 68 44 67 B8 5A 43 67 5F [12:09:29]GetLastDocTimeStamp 1732536466 [12:09:29]current date 1732536574 [12:09:29]FM_GetShiftState [12:09:29]SAM_PROTO_GetShiftState [12:09:29]wFMCommunicate request_size=4 [12:09:29]MH_SAM_APDU [12:09:29]CAPDU: 80 13 01 00 [12:09:29]Write to MH i2c: E2 08 00 7A 21 80 13 01 00 00 00 00 00 18 [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:29]Read from MH i2c: E2 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 0E 00 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 0E 00 7A 21 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 97 [12:09:29]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:09:29]wFMCommunicate OK [12:09:29]SAM_PROTO_GetShiftState done [12:09:29]FM_GetShiftState done [12:09:29]opened in 1732493066 [12:09:29]opened+sec_in_day 1732579466 [12:09:29]quantity*price = 80003 [12:09:29]sum+1 = 80005 [12:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 61 25.11.2024 12:09 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123020 ФПД: 33025137302731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120934&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123020&fm=33025137302731&tin=02508201610067®Number=0000000000092681&sum=80000 [12:09:30]StoreToDocumentArchive [12:09:30]shift 556 fd 123020 [12:09:30]save to /storage/0556/doc_00123020 [12:09:30]save last doc name /storage/0556/doc_00123020 to /storage/kkm_last_doc_name [12:09:30]save OK [12:09:30]Clear old archive folders... [12:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:30]tlvbuf is 02092900 [12:09:30]SAM_PROTO_ClearQueue [12:09:30]wFMCommunicate request_size=4 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 09 00 00 [12:09:30]Write to MH i2c: E2 08 00 87 21 80 09 00 00 00 00 00 00 1A [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 03 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 03 00 87 21 00 90 00 1C [12:09:30]RAPDU: 90 00 [12:09:30]wFMCommunicate OK [12:09:30]SAM_PROTO_ClearQueue done [12:09:30]KKMCreateOFDPacket [12:09:30]OFDProtocolAddRootSTLVToBuf [12:09:30]FM_MakeSignedData [12:09:30]FM_MakeSignedData [12:09:30]SAM_PROTO_SignData [12:09:30]wFMCommunicate request_size=4 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 0D 01 02 [12:09:30]Write to MH i2c: E2 08 00 88 21 80 0D 01 02 00 00 00 00 22 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 03 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 03 00 88 21 00 90 00 1D [12:09:30]RAPDU: 90 00 [12:09:30]wFMCommunicate OK [12:09:30]wFMCommunicate request_size=255 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 FE 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E0 01 00 35 04 06 00 1E [12:09:30]Write to MH i2c: E2 02 01 89 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 FE 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E0 01 00 35 04 06 00 1E 00 00 77 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 03 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 03 00 89 21 00 90 00 1E [12:09:30]RAPDU: 90 00 [12:09:30]wFMCommunicate OK [12:09:30]wFMCommunicate request_size=10 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 0D 02 02 05 09 43 93 DC CB [12:09:30]Write to MH i2c: E2 0D 00 8A 21 80 0D 02 02 05 00 09 43 93 DC CB 00 00 B5 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:31]Read from MH i2c: E2 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 03 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 03 00 8A 21 00 90 00 1F [12:09:31]RAPDU: 90 00 [12:09:31]wFMCommunicate OK [12:09:31]wFMCommunicate request_size=4 [12:09:31]MH_SAM_APDU [12:09:31]CAPDU: 80 0D 03 02 [12:09:31]Write to MH i2c: E2 08 00 8B 21 80 0D 03 02 00 00 00 00 27 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:31]Read from MH i2c: E2 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 0B 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 0B 00 8B 21 00 5C 47 55 BC 50 F8 1E C7 90 00 09 [12:09:31]RAPDU: 5C 47 55 BC 50 F8 1E C7 90 00 [12:09:31]wFMCommunicate OK [12:09:31]SAM_PROTO_SignData done [12:09:31]FM_MakeSignedData done [12:09:31]CreateOFDProtocolMessage [12:09:31]wFMCommunicate request_size=4 [12:09:31]MH_SAM_APDU [12:09:31]CAPDU: 80 11 00 00 [12:09:31]Write to MH i2c: E2 08 00 8C 21 80 11 00 00 00 00 00 00 27 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:31]Read from MH i2c: E2 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 17 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 17 00 8C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7E [12:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:09:31]wFMCommunicate OK [12:09:31]CreateOFDProtocolMessage done [12:09:31]OFDSenderStorePacket 123020 [12:09:31]StoreOFDPacket docnum=123020 [12:09:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 93 D2 07 01 C1 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 FE 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E0 01 00 35 04 06 00 1E 09 43 93 DC CB 5C 47 55 BC 50 F8 1E C7 [12:09:31]CheckFolder [12:09:31]dirname=/storage/ofd_packets [12:09:31]CheckFolder done [12:09:31]ProducePacketName [12:09:31]name=ofd_packets/00123020 [12:09:31]NVStorageSaveData ofd_packets/00123020 [12:09:31]File name is /storage/ofd_packets/00123020 [12:09:31]Write 301 bytes [12:09:31]NVStorageSaveData done [12:09:31]OFDSenderStorePacket done [12:09:31]KKMCreateOFDPacket done [12:09:31]NVStorageSaveData kkm_last_timestamp [12:09:31]File name is /storage/kkm_last_timestamp [12:09:31]Write 4 bytes [12:09:31]NVStorageSaveData done [12:09:31]ExternCall_PrintAddStr [12:09:31]wPrintStart [12:09:31]Write to MH i2c: 01 00 00 8D 21 AE [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: 01 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: 01 07 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: 01 07 00 8D 21 00 00 00 00 00 FF 0F C3 [12:09:31]RasterBufferAndPrint [12:09:31]line Счет N : (1)717815 [12:09:31]line ИНН: 02508201610067 [12:09:31]line Контрольно-Кассовый Чек [12:09:31]line ПРОДАЖА [12:09:31]line ТРК (МРК, ГНК) : 22 [12:09:31]line Товар: 2710124130 [12:09:31]line Аи-92-К-4 [12:09:31]line 11.870 * 67.40 [12:09:31]line = 800.04 [12:09:31]line НДС 12% НСП 1% [12:09:31]line > о реализуемом товаре [12:09:31]line ОКРУГЛЕНИЕ: -0.04 [12:09:31]line ИТОГО: 800.00 [12:09:31]line Внесено: 800.00 [12:09:31]line СДАЧА: 0.00 [12:09:31]line НСП 1% : 7.08 [12:09:31]line НДС 12% : 84.96 [12:09:31]line Наличными: 800.00 [12:09:31]line Безнал.: 0.00 [12:09:31]line Место: АЗС № 64 "Партнер Нефть" [12:09:31]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:09:31]line СНО: Общий режим [12:09:31]line Чек 61 25.11.2024 12:09 [12:09:31]line Смена: 556 ФФД: 1.0 [12:09:31]line ЗНМ: 0300000033 [12:09:31]line РНМ: 0000000000092681 [12:09:31]line Версия ККМ: 001 [12:09:31]line ФМ: 0000000000874881 [12:09:31]line ФД: 123020 [12:09:31]line ФПД: 33025137302731 [12:09:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T120934&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123020&fm=33025137302731&tin=02508201610067®Number=0000000000092681&sum=80000 [12:09:31]OFD Sender: Processing packet 123020 [packets to send 7, broken 6] [12:09:31]ProducePacketName [12:09:31]name=ofd_packets/00123020 [12:09:31]OFD Sender: To server: pG, [12:09:31]CommunicateWithHost lk.salyk.kg:30040 [12:09:31]ConnectInit lk.salyk.kg [12:09:31]written 0, free lines is 4095 [12:09:31]Connected sock=10 [12:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 93 D2 07 01 C1 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 FE 68 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E0 01 00 35 04 06 00 1E 09 43 93 DC CB 5C 47 55 BC 50 F8 1E C7 [12:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 77 03 47 00 25 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E0 01 00 F4 03 04 00 C4 14 44 67 B6 04 01 00 00 4A 90 47 2A 85 A4 6A A0 [12:09:31]CommunicateWithHost err = 0 [12:09:31]CheckOFDResponse [12:09:31]1017 (14) - 77093643461234 [12:09:31]1041 (16) - 0000000000874881 [12:09:31]1040 (4) - 123020 [12:09:31]1012 (4) - 25.11.2024 06:10 [12:09:31]1206 (1) - 0 [12:09:31]OFD Sender: Remove packet 123020 [12:09:31]ProducePacketName [12:09:31]name=ofd_packets/00123020 [12:09:31]NVStorageDeleteData [12:09:31]Write to MH i2c: 01 00 00 B8 21 D9 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: 01 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: 01 07 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: 01 07 00 B8 21 00 00 00 00 00 4E 0C 3A [12:09:31]RasterBufferAndPrint [12:09:31]line [12:09:31]line [12:09:31]line [12:09:31]line [12:09:31]line [12:09:31]written 0, free lines is 3152 [12:09:31]MH_Cut [12:09:31]Write to MH i2c: D1 01 00 BF 21 01 B2 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: D1 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: D1 01 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: D1 01 00 BF 21 00 B1 [12:09:31]Write to MH i2c: 01 00 00 C0 21 E1 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:32]OFD Sender: No OFD packet to send [12:09:33]*** Cut start [12:09:33]*** Partial cut [12:09:33]*** CUTSNS_PIN = 1 [12:09:33]*** CUTSNS_PIN = 0 [12:09:33]*** Brake cut motor [12:09:33]Read from MH i2c: 01 [12:09:33]MH_I2C_Read... [12:09:33]*** Stop cut motor [12:09:33]*** Cut end [12:09:33]Read from MH i2c: 01 07 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: 01 07 00 C0 21 00 00 00 00 00 FF 0F F6 [12:09:33]process_action close_receipt done [12:09:33]requested_data is exist [12:09:33]produce_requested_data [12:09:33]requested_item fm.sn is exist - process it [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 11 00 00 [12:09:33]Write to MH i2c: E2 08 00 C1 21 80 11 00 00 00 00 00 00 5C [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 17 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 17 00 C1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B3 [12:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:09:33]wFMCommunicate OK [12:09:33]requested_item fd.num is exist - process it [12:09:33]SAM_PROTO_GetFieldsCounters [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 13 00 00 [12:09:33]Write to MH i2c: E2 08 00 C2 21 80 13 00 00 00 00 00 00 5F [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 62 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 62 00 C2 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8C E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [12:09:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8C E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:34]wFMCommunicate OK [12:09:34]SAM_PROTO_GetFieldsCounters done [12:09:34]requested_item shift.num is exist - process it [12:09:34]requested_item shift.opened is exist - process it [12:09:34]req_shift_opened [12:09:34]FM_GetShiftState [12:09:34]SAM_PROTO_GetShiftState [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 13 01 00 [12:09:34]Write to MH i2c: E2 08 00 C3 21 80 13 01 00 00 00 00 00 61 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 0E 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 0E 00 C3 21 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E0 [12:09:34]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:09:34]wFMCommunicate OK [12:09:34]SAM_PROTO_GetShiftState done [12:09:34]FM_GetShiftState done [12:09:34]req_shift_opened done [12:09:34]requested_item shift.open_date is exist - process it [12:09:34]req_shift_open_date [12:09:34]req_shift_open_date done [12:09:34]produce_requested_data done [12:09:34]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123020,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:09:34]process_action_free close_receipt [12:09:34]json_value_free [12:09:34]json_value_free done [12:09:34]process_json_proto returns [12:09:34]Send response to host [12:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123020,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:09:34]free response buf [12:09:34]execute_script done [12:09:34]execute_script returns [12:09:34]free content buf [12:09:34]Sock 9.Close socket [12:09:34]Sock 9.Thread stoped [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]accept exits with 7 [12:10:57]New connection [12:10:57]New thread 3066580324 created [12:10:57]Thread 3066723684 joined [12:10:57]Waiting for new connection... [12:10:57] Sock 7.Parse request [12:10:57]Sock 7.Check first char [12:10:57]Sock 7.First char is OK [12:10:57]request: POST /json_proto HTTP/1.0 [12:10:57]Method: POST [12:10:57]URL: /json_proto [12:10:57]Method is POST - this is cgi request [12:10:57]url: /json_proto [12:10:57]query_string will be loaded in cgi processing [12:10:57]execute_cgi json_proto POST (null) [12:10:57]execute_cgi path=json_proto method=POST [12:10:57]POST find Content-Length [12:10:57]Host: 172.17.37.4:8080 [12:10:57]Content-Length: 807 [12:10:57]Content-Type: application/json [12:10:57] [12:10:57]POST finish read [12:10:57]Found Content-Length = 807 [12:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:57]execute_script... [12:10:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:57]POST & json_proto [12:10:57]process_json_proto [12:10:57]json parsed OK: [12:10:57]protocol is kg_v1.0 [12:10:57]action value=close_receipt [12:10:57]process_action close_receipt [12:10:57]cmd_close_receipt [12:10:57]MH_GetDate [12:10:57]Write to MH i2c: F0 00 00 C4 21 D4 [12:10:57]Write i2c OK [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: F0 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: F0 09 00 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: F0 09 00 C4 21 00 56 69 44 67 B8 5A 43 67 03 [12:10:57]GetLastDocTimeStamp 1732536574 [12:10:57]current date 1732536662 [12:10:57]FM_GetShiftState [12:10:57]SAM_PROTO_GetShiftState [12:10:57]wFMCommunicate request_size=4 [12:10:57]MH_SAM_APDU [12:10:57]CAPDU: 80 13 01 00 [12:10:57]Write to MH i2c: E2 08 00 C5 21 80 13 01 00 00 00 00 00 63 [12:10:57]Write i2c OK [12:10:57]MH_I2C_Read... [12:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:57]Read from MH i2c: E2 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: E2 0E 00 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: E2 0E 00 C5 21 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E2 [12:10:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:10:57]wFMCommunicate OK [12:10:57]SAM_PROTO_GetShiftState done [12:10:57]FM_GetShiftState done [12:10:57]opened in 1732493066 [12:10:57]opened+sec_in_day 1732579466 [12:10:57]quantity*price = 100066 [12:10:57]sum+1 = 100067 [12:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 62 25.11.2024 12:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123021 ФПД: 4889032977250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T121102&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123021&fm=4889032977250&tin=02508201610067®Number=0000000000092681&sum=100066 [12:10:58]StoreToDocumentArchive [12:10:58]shift 556 fd 123021 [12:10:58]save to /storage/0556/doc_00123021 [12:10:58]save last doc name /storage/0556/doc_00123021 to /storage/kkm_last_doc_name [12:10:58]save OK [12:10:58]Clear old archive folders... [12:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:10:58]tlvbuf is 02090220 [12:10:58]SAM_PROTO_ClearQueue [12:10:58]wFMCommunicate request_size=4 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 09 00 00 [12:10:58]Write to MH i2c: E2 08 00 D2 21 80 09 00 00 00 00 00 00 65 [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:58]Read from MH i2c: E2 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 03 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 03 00 D2 21 00 90 00 67 [12:10:58]RAPDU: 90 00 [12:10:58]wFMCommunicate OK [12:10:58]SAM_PROTO_ClearQueue done [12:10:58]KKMCreateOFDPacket [12:10:58]OFDProtocolAddRootSTLVToBuf [12:10:58]FM_MakeSignedData [12:10:58]FM_MakeSignedData [12:10:58]SAM_PROTO_SignData [12:10:58]wFMCommunicate request_size=4 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 0D 01 02 [12:10:58]Write to MH i2c: E2 08 00 D3 21 80 0D 01 02 00 00 00 00 6D [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:58]Read from MH i2c: E2 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 03 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [12:10:58]RAPDU: 90 00 [12:10:58]wFMCommunicate OK [12:10:58]wFMCommunicate request_size=255 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 56 69 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E0 01 00 35 04 06 00 [12:10:58]Write to MH i2c: E2 02 01 D4 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 56 69 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E0 01 00 35 04 06 00 00 00 1C [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:58]Read from MH i2c: E2 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 03 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 03 00 D4 21 00 90 00 69 [12:10:58]RAPDU: 90 00 [12:10:58]wFMCommunicate OK [12:10:58]wFMCommunicate request_size=11 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 0D 02 02 06 04 72 51 12 EB 62 [12:10:58]Write to MH i2c: E2 0E 00 D5 21 80 0D 02 02 06 00 04 72 51 12 EB 62 00 00 A2 [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:58]Read from MH i2c: E2 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 03 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 03 00 D5 21 00 90 00 6A [12:10:58]RAPDU: 90 00 [12:10:58]wFMCommunicate OK [12:10:58]wFMCommunicate request_size=4 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 0D 03 02 [12:10:58]Write to MH i2c: E2 08 00 D6 21 80 0D 03 02 00 00 00 00 72 [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:58]Read from MH i2c: E2 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 0B 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 0B 00 D6 21 00 FC 0C 25 6B 09 9B F8 D0 90 00 77 [12:10:58]RAPDU: FC 0C 25 6B 09 9B F8 D0 90 00 [12:10:58]wFMCommunicate OK [12:10:58]SAM_PROTO_SignData done [12:10:58]FM_MakeSignedData done [12:10:58]CreateOFDProtocolMessage [12:10:58]wFMCommunicate request_size=4 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 11 00 00 [12:10:58]Write to MH i2c: E2 08 00 D7 21 80 11 00 00 00 00 00 00 72 [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:58]Read from MH i2c: E2 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 17 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 17 00 D7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C9 [12:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:10:58]wFMCommunicate OK [12:10:58]CreateOFDProtocolMessage done [12:10:58]OFDSenderStorePacket 123021 [12:10:58]StoreOFDPacket docnum=123021 [12:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 AF E0 08 01 ED 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 56 69 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E0 01 00 35 04 06 00 04 72 51 12 EB 62 FC 0C 25 6B 09 9B F8 D0 [12:10:58]CheckFolder [12:10:58]dirname=/storage/ofd_packets [12:10:58]CheckFolder done [12:10:58]ProducePacketName [12:10:58]name=ofd_packets/00123021 [12:10:58]NVStorageSaveData ofd_packets/00123021 [12:10:58]File name is /storage/ofd_packets/00123021 [12:10:58]Write 302 bytes [12:10:58]NVStorageSaveData done [12:10:58]OFDSenderStorePacket done [12:10:58]KKMCreateOFDPacket done [12:10:58]NVStorageSaveData kkm_last_timestamp [12:10:58]File name is /storage/kkm_last_timestamp [12:10:58]Write 4 bytes [12:10:58]NVStorageSaveData done [12:10:58]ExternCall_PrintAddStr [12:10:58]wPrintStart [12:10:58]Write to MH i2c: 01 00 00 D8 21 F9 [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: 01 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: 01 07 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: 01 07 00 D8 21 00 00 00 00 00 FF 0F 0E [12:10:58]RasterBufferAndPrint [12:10:58]line Счет N : (1)717816 [12:10:58]line ИНН: 02508201610067 [12:10:58]line Контрольно-Кассовый Чек [12:10:58]line ПРОДАЖА [12:10:58]line ТРК (МРК, ГНК) : 5 [12:10:58]line Товар: 2710194210 [12:10:58]line ДТ(л)-К-5 [12:10:58]line 13.360 * 74.90 [12:10:58]line = 1000.66 [12:10:58]line НДС 12% НСП 1% [12:10:58]line > о реализуемом товаре [12:10:58]line ИТОГО: 1000.66 [12:10:58]line НСП 1% : 8.85 [12:10:58]line НДС 12% : 106.26 [12:10:58]line Наличными: 0.00 [12:10:58]line Безнал.: 1000.66 [12:10:58]line Место: АЗС № 64 "Партнер Нефть" [12:10:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:10:58]line СНО: Общий режим [12:10:58]line Чек 62 25.11.2024 12:11 [12:10:58]line Смена: 556 ФФД: 1.0 [12:10:58]line ЗНМ: 0300000033 [12:10:58]line РНМ: 0000000000092681 [12:10:58]line Версия ККМ: 001 [12:10:58]line Платежная система: O! деньги [12:10:58]line ФМ: 0000000000874881 [12:10:58]line ФД: 123021 [12:10:58]line ФПД: 4889032977250 [12:10:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T121102&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123021&fm=4889032977250&tin=02508201610067®Number=0000000000092681&sum=100066 [12:10:59]written 0, free lines is 4095 [12:10:59]OFD Sender: Processing packet 123021 [packets to send 7, broken 6] [12:10:59]ProducePacketName [12:10:59]name=ofd_packets/00123021 [12:10:59]OFD Sender: To server: pG, [12:10:59]CommunicateWithHost lk.salyk.kg:30040 [12:10:59]ConnectInit lk.salyk.kg [12:10:59]Connected sock=10 [12:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 AF E0 08 01 ED 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 56 69 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E0 01 00 35 04 06 00 04 72 51 12 EB 62 FC 0C 25 6B 09 9B F8 D0 [12:10:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 FF AA 47 00 7D 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E0 01 00 F4 03 04 00 1B 15 44 67 B6 04 01 00 00 FE 72 41 9B AD 8E CB A0 [12:10:59]CommunicateWithHost err = 0 [12:10:59]CheckOFDResponse [12:10:59]1017 (14) - 77093643461234 [12:10:59]1041 (16) - 0000000000874881 [12:10:59]1040 (4) - 123021 [12:10:59]1012 (4) - 25.11.2024 06:11 [12:10:59]1206 (1) - 0 [12:10:59]OFD Sender: Remove packet 123021 [12:10:59]ProducePacketName [12:10:59]name=ofd_packets/00123021 [12:10:59]NVStorageDeleteData [12:10:59]Write to MH i2c: 01 00 00 02 22 24 [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: 01 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: 01 07 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: 01 07 00 02 22 00 00 00 00 00 66 0C 9D [12:10:59]RasterBufferAndPrint [12:10:59]line [12:10:59]line [12:10:59]line [12:10:59]line [12:10:59]line [12:10:59]written 0, free lines is 3178 [12:10:59]MH_Cut [12:10:59]Write to MH i2c: D1 01 00 09 22 01 FD [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: D1 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: D1 01 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: D1 01 00 09 22 00 FC [12:10:59]Write to MH i2c: 01 00 00 0A 22 2C [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:11:00]OFD Sender: No OFD packet to send [12:11:00]*** Cut start [12:11:00]*** Partial cut [12:11:00]*** CUTSNS_PIN = 1 [12:11:01]*** CUTSNS_PIN = 0 [12:11:01]*** Brake cut motor [12:11:01]Read from MH i2c: 01 [12:11:01]MH_I2C_Read... [12:11:01]*** Stop cut motor [12:11:01]*** Cut end [12:11:01]Read from MH i2c: 01 07 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 07 00 0A 22 00 00 00 00 00 FF 0F 41 [12:11:01]process_action close_receipt done [12:11:01]requested_data is exist [12:11:01]produce_requested_data [12:11:01]requested_item fm.sn is exist - process it [12:11:01]wFMCommunicate request_size=4 [12:11:01]MH_SAM_APDU [12:11:01]CAPDU: 80 11 00 00 [12:11:01]Write to MH i2c: E2 08 00 0B 22 80 11 00 00 00 00 00 00 A7 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:01]Read from MH i2c: E2 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 17 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 17 00 0B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FE [12:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:11:01]wFMCommunicate OK [12:11:01]requested_item fd.num is exist - process it [12:11:01]SAM_PROTO_GetFieldsCounters [12:11:01]wFMCommunicate request_size=4 [12:11:01]MH_SAM_APDU [12:11:01]CAPDU: 80 13 00 00 [12:11:01]Write to MH i2c: E2 08 00 0C 22 80 13 00 00 00 00 00 00 AA [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:01]Read from MH i2c: E2 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 62 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 62 00 0C 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8D E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [12:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8D E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:01]wFMCommunicate OK [12:11:01]SAM_PROTO_GetFieldsCounters done [12:11:01]requested_item shift.num is exist - process it [12:11:01]requested_item shift.opened is exist - process it [12:11:01]req_shift_opened [12:11:01]FM_GetShiftState [12:11:01]SAM_PROTO_GetShiftState [12:11:01]wFMCommunicate request_size=4 [12:11:01]MH_SAM_APDU [12:11:01]CAPDU: 80 13 01 00 [12:11:01]Write to MH i2c: E2 08 00 0D 22 80 13 01 00 00 00 00 00 AC [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:01]Read from MH i2c: E2 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 0E 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 0E 00 0D 22 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2B [12:11:01]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:11:01]wFMCommunicate OK [12:11:01]SAM_PROTO_GetShiftState done [12:11:01]FM_GetShiftState done [12:11:01]req_shift_opened done [12:11:01]requested_item shift.open_date is exist - process it [12:11:01]req_shift_open_date [12:11:01]req_shift_open_date done [12:11:01]produce_requested_data done [12:11:01]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123021,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:11:01]process_action_free close_receipt [12:11:01]json_value_free [12:11:01]json_value_free done [12:11:01]process_json_proto returns [12:11:01]Send response to host [12:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123021,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:11:01]free response buf [12:11:01]execute_script done [12:11:01]execute_script returns [12:11:01]free content buf [12:11:01]Sock 7.Close socket [12:11:01]Sock 7.Thread stoped [12:11:05]OFD Sender: No OFD packet to send [12:11:09]accept exits with 9 [12:11:09]New connection [12:11:09]New thread 3066723684 created [12:11:09]Thread 3066580324 joined [12:11:09]Waiting for new connection... [12:11:09] Sock 9.Parse request [12:11:09]Sock 9.Check first char [12:11:09]Sock 9.First char is OK [12:11:09]request: POST /json_proto HTTP/1.0 [12:11:09]Method: POST [12:11:09]URL: /json_proto [12:11:09]Method is POST - this is cgi request [12:11:09]url: /json_proto [12:11:09]query_string will be loaded in cgi processing [12:11:09]execute_cgi json_proto POST (null) [12:11:09]execute_cgi path=json_proto method=POST [12:11:09]POST find Content-Length [12:11:09]Host: 172.17.37.4:8080 [12:11:09]Content-Length: 677 [12:11:09]Content-Type: application/json [12:11:09] [12:11:09]POST finish read [12:11:09]Found Content-Length = 677 [12:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:11:09]execute_script... [12:11:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:11:09]POST & json_proto [12:11:09]process_json_proto [12:11:09]json parsed OK: [12:11:09]protocol is kg_v1.0 [12:11:09]action value=close_receipt [12:11:09]process_action close_receipt [12:11:09]cmd_close_receipt [12:11:09]MH_GetDate [12:11:09]Write to MH i2c: F0 00 00 0E 22 1F [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: F0 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: F0 09 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: F0 09 00 0E 22 00 62 69 44 67 B8 5A 43 67 5A [12:11:09]GetLastDocTimeStamp 1732536662 [12:11:09]current date 1732536674 [12:11:09]FM_GetShiftState [12:11:09]SAM_PROTO_GetShiftState [12:11:09]wFMCommunicate request_size=4 [12:11:09]MH_SAM_APDU [12:11:09]CAPDU: 80 13 01 00 [12:11:09]Write to MH i2c: E2 08 00 0F 22 80 13 01 00 00 00 00 00 AE [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:09]Read from MH i2c: E2 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 0E 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 0E 00 0F 22 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2D [12:11:09]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:11:09]wFMCommunicate OK [12:11:09]SAM_PROTO_GetShiftState done [12:11:09]FM_GetShiftState done [12:11:09]opened in 1732493066 [12:11:09]opened+sec_in_day 1732579466 [12:11:09]quantity*price = 20017 [12:11:09]sum+1 = 20019 [12:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 63 25.11.2024 12:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123022 ФПД: 107886037087405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T121114&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123022&fm=107886037087405&tin=02508201610067®Number=0000000000092681&sum=20000 [12:11:10]StoreToDocumentArchive [12:11:10]shift 556 fd 123022 [12:11:10]save to /storage/0556/doc_00123022 [12:11:10]save last doc name /storage/0556/doc_00123022 to /storage/kkm_last_doc_name [12:11:10]save OK [12:11:10]Clear old archive folders... [12:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:10]tlvbuf is 020756D0 [12:11:10]SAM_PROTO_ClearQueue [12:11:10]wFMCommunicate request_size=4 [12:11:10]MH_SAM_APDU [12:11:10]CAPDU: 80 09 00 00 [12:11:10]Write to MH i2c: E2 08 00 1C 22 80 09 00 00 00 00 00 00 B0 [12:11:10]Write i2c OK [12:11:10]MH_I2C_Read... [12:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:10]Read from MH i2c: E2 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: E2 03 00 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: E2 03 00 1C 22 00 90 00 B2 [12:11:10]RAPDU: 90 00 [12:11:10]wFMCommunicate OK [12:11:10]SAM_PROTO_ClearQueue done [12:11:10]KKMCreateOFDPacket [12:11:10]OFDProtocolAddRootSTLVToBuf [12:11:10]FM_MakeSignedData [12:11:10]FM_MakeSignedData [12:11:10]SAM_PROTO_SignData [12:11:10]wFMCommunicate request_size=4 [12:11:10]MH_SAM_APDU [12:11:10]CAPDU: 80 0D 01 02 [12:11:10]Write to MH i2c: E2 08 00 1D 22 80 0D 01 02 00 00 00 00 B8 [12:11:10]Write i2c OK [12:11:10]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 1D 22 00 90 00 B3 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]wFMCommunicate request_size=255 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 3F 00 00 00 F4 03 04 00 62 69 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8E E0 01 00 35 04 06 00 62 [12:11:11]Write to MH i2c: E2 02 01 1E 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 3F 00 00 00 F4 03 04 00 62 69 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8E E0 01 00 35 04 06 00 62 00 00 F0 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 1E 22 00 90 00 B4 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]wFMCommunicate request_size=10 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 0D 02 02 05 1F 2C EA B4 AD [12:11:11]Write to MH i2c: E2 0D 00 1F 22 80 0D 02 02 05 00 1F 2C EA B4 AD 00 00 5B [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 1F 22 00 90 00 B5 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 0D 03 02 [12:11:11]Write to MH i2c: E2 08 00 20 22 80 0D 03 02 00 00 00 00 BD [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0B 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0B 00 20 22 00 3C 7B 1D 17 9C F7 90 F5 90 00 C1 [12:11:11]RAPDU: 3C 7B 1D 17 9C F7 90 F5 90 00 [12:11:11]wFMCommunicate OK [12:11:11]SAM_PROTO_SignData done [12:11:11]FM_MakeSignedData done [12:11:11]CreateOFDProtocolMessage [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 11 00 00 [12:11:11]Write to MH i2c: E2 08 00 21 22 80 11 00 00 00 00 00 00 BD [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 17 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 17 00 21 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 14 [12:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:11:11]wFMCommunicate OK [12:11:11]CreateOFDProtocolMessage done [12:11:11]OFDSenderStorePacket 123022 [12:11:11]StoreOFDPacket docnum=123022 [12:11:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 EA 25 07 01 DC 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 3F 00 00 00 F4 03 04 00 62 69 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8E E0 01 00 35 04 06 00 62 1F 2C EA B4 AD 3C 7B 1D 17 9C F7 90 F5 [12:11:11]CheckFolder [12:11:11]dirname=/storage/ofd_packets [12:11:11]CheckFolder done [12:11:11]ProducePacketName [12:11:11]name=ofd_packets/00123022 [12:11:11]NVStorageSaveData ofd_packets/00123022 [12:11:11]File name is /storage/ofd_packets/00123022 [12:11:11]Write 301 bytes [12:11:11]NVStorageSaveData done [12:11:11]OFDSenderStorePacket done [12:11:11]KKMCreateOFDPacket done [12:11:11]NVStorageSaveData kkm_last_timestamp [12:11:11]File name is /storage/kkm_last_timestamp [12:11:11]Write 4 bytes [12:11:11]NVStorageSaveData done [12:11:11]ExternCall_PrintAddStr [12:11:11]wPrintStart [12:11:11]Write to MH i2c: 01 00 00 22 22 44 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 07 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 07 00 22 22 00 00 00 00 00 FF 0F 59 [12:11:11]RasterBufferAndPrint [12:11:11]line Счет N : (1)717817 [12:11:11]line ИНН: 02508201610067 [12:11:11]line Контрольно-Кассовый Чек [12:11:11]line ПРОДАЖА [12:11:11]line ТРК (МРК, ГНК) : 12 [12:11:11]line Товар: 2710124130 [12:11:11]line Аи-92-К-4 [12:11:11]line 2.970 * 67.40 [12:11:11]line = 200.18 [12:11:11]line НДС 12% НСП 1% [12:11:11]line > о реализуемом товаре [12:11:11]line ОКРУГЛЕНИЕ: -0.18 [12:11:11]line ИТОГО: 200.00 [12:11:11]line Внесено: 200.00 [12:11:11]line СДАЧА: 0.00 [12:11:11]line НСП 1% : 1.77 [12:11:11]line НДС 12% : 21.26 [12:11:11]line Наличными: 200.00 [12:11:11]line Безнал.: 0.00 [12:11:11]line Место: АЗС № 64 "Партнер Нефть" [12:11:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:11:11]line СНО: Общий режим [12:11:11]line Чек 63 25.11.2024 12:11 [12:11:11]line Смена: 556 ФФД: 1.0 [12:11:11]line ЗНМ: 0300000033 [12:11:11]line РНМ: 0000000000092681 [12:11:11]line Версия ККМ: 001 [12:11:11]line ФМ: 0000000000874881 [12:11:11]line ФД: 123022 [12:11:11]line ФПД: 107886037087405 [12:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T121114&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123022&fm=107886037087405&tin=02508201610067®Number=0000000000092681&sum=20000 [12:11:11]written 0, free lines is 4095 [12:11:11]OFD Sender: Processing packet 123022 [packets to send 7, broken 6] [12:11:11]ProducePacketName [12:11:11]name=ofd_packets/00123022 [12:11:11]OFD Sender: To server: pG, [12:11:11]CommunicateWithHost lk.salyk.kg:30040 [12:11:11]ConnectInit lk.salyk.kg [12:11:11]Connected sock=10 [12:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 EA 25 07 01 DC 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 3F 00 00 00 F4 03 04 00 62 69 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8E E0 01 00 35 04 06 00 62 1F 2C EA B4 AD 3C 7B 1D 17 9C F7 90 F5 [12:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 07 1C 47 00 87 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 34 38 38 31 10 04 04 00 8E E0 01 00 F4 03 04 00 28 15 44 67 B6 04 01 00 00 34 86 C1 B3 1A 84 E2 66 [12:11:11]CommunicateWithHost err = 0 [12:11:11]CheckOFDResponse [12:11:11]1017 (14) - 77093643461234 [12:11:11]1041 (16) - 0000000000874881 [12:11:11]1040 (4) - 123022 [12:11:11]1012 (4) - 25.11.2024 06:11 [12:11:11]1206 (1) - 0 [12:11:11]OFD Sender: Remove packet 123022 [12:11:11]ProducePacketName [12:11:11]name=ofd_packets/00123022 [12:11:11]NVStorageDeleteData [12:11:11]Write to MH i2c: 01 00 00 4D 22 6F [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 07 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 07 00 4D 22 00 00 00 00 00 5D 0C DF [12:11:11]RasterBufferAndPrint [12:11:11]line [12:11:11]line [12:11:11]line [12:11:11]line [12:11:11]line [12:11:11]written 0, free lines is 3169 [12:11:11]MH_Cut [12:11:11]Write to MH i2c: D1 01 00 54 22 01 48 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: D1 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: D1 01 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: D1 01 00 54 22 00 47 [12:11:11]Write to MH i2c: 01 00 00 55 22 77 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:12]OFD Sender: No OFD packet to send [12:11:13]*** Cut start [12:11:13]*** Partial cut [12:11:13]*** CUTSNS_PIN = 1 [12:11:13]*** CUTSNS_PIN = 0 [12:11:13]*** Brake cut motor [12:11:13]Read from MH i2c: 01 [12:11:13]MH_I2C_Read... [12:11:13]*** Stop cut motor [12:11:13]*** Cut end [12:11:13]Read from MH i2c: 01 07 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 55 22 00 00 00 00 00 FF 0F 8C [12:11:13]process_action close_receipt done [12:11:13]requested_data is exist [12:11:13]produce_requested_data [12:11:13]requested_item fm.sn is exist - process it [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 11 00 00 [12:11:13]Write to MH i2c: E2 08 00 56 22 80 11 00 00 00 00 00 00 F2 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 56 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 49 [12:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:11:13]wFMCommunicate OK [12:11:13]requested_item fd.num is exist - process it [12:11:13]SAM_PROTO_GetFieldsCounters [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 13 00 00 [12:11:13]Write to MH i2c: E2 08 00 57 22 80 13 00 00 00 00 00 00 F5 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:14]Read from MH i2c: E2 62 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 62 00 57 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8E E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [12:11:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8E E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_GetFieldsCounters done [12:11:14]requested_item shift.num is exist - process it [12:11:14]requested_item shift.opened is exist - process it [12:11:14]req_shift_opened [12:11:14]FM_GetShiftState [12:11:14]SAM_PROTO_GetShiftState [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 13 01 00 [12:11:14]Write to MH i2c: E2 08 00 58 22 80 13 01 00 00 00 00 00 F7 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 58 22 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 76 [12:11:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_GetShiftState done [12:11:14]FM_GetShiftState done [12:11:14]req_shift_opened done [12:11:14]requested_item shift.open_date is exist - process it [12:11:14]req_shift_open_date [12:11:14]req_shift_open_date done [12:11:14]produce_requested_data done [12:11:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123022,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:11:14]process_action_free close_receipt [12:11:14]json_value_free [12:11:14]json_value_free done [12:11:14]process_json_proto returns [12:11:14]Send response to host [12:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123022,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:11:14]free response buf [12:11:14]execute_script done [12:11:14]execute_script returns [12:11:14]free content buf [12:11:14]Sock 9.Close socket [12:11:14]Sock 9.Thread stoped [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]accept exits with 7 [12:15:37]New connection [12:15:37]New thread 3066580324 created [12:15:37]Thread 3066723684 joined [12:15:37]Waiting for new connection... [12:15:37] Sock 7.Parse request [12:15:37]Sock 7.Check first char [12:15:37]Sock 7.First char is OK [12:15:37]request: POST /json_proto HTTP/1.0 [12:15:37]Method: POST [12:15:37]URL: /json_proto [12:15:37]Method is POST - this is cgi request [12:15:37]url: /json_proto [12:15:37]query_string will be loaded in cgi processing [12:15:37]execute_cgi json_proto POST (null) [12:15:37]execute_cgi path=json_proto method=POST [12:15:37]POST find Content-Length [12:15:37]Host: 172.17.37.4:8080 [12:15:37]Content-Length: 682 [12:15:37]Content-Type: application/json [12:15:37] [12:15:37]POST finish read [12:15:37]Found Content-Length = 682 [12:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 25.230, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:37]execute_script... [12:15: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)717818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 25.230, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:37]POST & json_proto [12:15:37]process_json_proto [12:15:37]json parsed OK: [12:15:37]protocol is kg_v1.0 [12:15:37]action value=close_receipt [12:15:37]process_action close_receipt [12:15:37]cmd_close_receipt [12:15:37]MH_GetDate [12:15:37]Write to MH i2c: F0 00 00 59 22 6A [12:15:37]Write i2c OK [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: F0 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: F0 09 00 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: F0 09 00 59 22 00 6D 6A 44 67 B8 5A 43 67 B1 [12:15:37]GetLastDocTimeStamp 1732536674 [12:15:37]current date 1732536941 [12:15:37]FM_GetShiftState [12:15:37]SAM_PROTO_GetShiftState [12:15:37]wFMCommunicate request_size=4 [12:15:37]MH_SAM_APDU [12:15:37]CAPDU: 80 13 01 00 [12:15:37]Write to MH i2c: E2 08 00 5A 22 80 13 01 00 00 00 00 00 F9 [12:15:37]Write i2c OK [12:15:37]MH_I2C_Read... [12:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:37]Read from MH i2c: E2 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: E2 0E 00 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: E2 0E 00 5A 22 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 78 [12:15:37]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:15:37]wFMCommunicate OK [12:15:37]SAM_PROTO_GetShiftState done [12:15:37]FM_GetShiftState done [12:15:37]opened in 1732493066 [12:15:37]opened+sec_in_day 1732579466 [12:15:37]quantity*price = 170050 [12:15:37]sum+1 = 170051 [12:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 64 25.11.2024 12:15 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123023 ФПД: 19275302942749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T121542&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123023&fm=19275302942749&tin=02508201610067®Number=0000000000092681&sum=170000 [12:15:38]StoreToDocumentArchive [12:15:38]shift 556 fd 123023 [12:15:38]save to /storage/0556/doc_00123023 [12:15:38]save last doc name /storage/0556/doc_00123023 to /storage/kkm_last_doc_name [12:15:38]save OK [12:15:38]Clear old archive folders... [12:15:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:38]tlvbuf is 020927B0 [12:15:38]SAM_PROTO_ClearQueue [12:15:38]wFMCommunicate request_size=4 [12:15:38]MH_SAM_APDU [12:15:38]CAPDU: 80 09 00 00 [12:15:38]Write to MH i2c: E2 08 00 67 22 80 09 00 00 00 00 00 00 FB [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:38]Read from MH i2c: E2 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 67 22 00 90 00 FD [12:15:38]RAPDU: 90 00 [12:15:38]wFMCommunicate OK [12:15:38]SAM_PROTO_ClearQueue done [12:15:38]KKMCreateOFDPacket [12:15:38]OFDProtocolAddRootSTLVToBuf [12:15:38]FM_MakeSignedData [12:15:38]FM_MakeSignedData [12:15:38]SAM_PROTO_SignData [12:15:38]wFMCommunicate request_size=4 [12:15:38]MH_SAM_APDU [12:15:38]CAPDU: 80 0D 01 02 [12:15:38]Write to MH i2c: E2 08 00 68 22 80 0D 01 02 00 00 00 00 03 [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:38]Read from MH i2c: E2 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 68 22 00 90 00 FE [12:15:38]RAPDU: 90 00 [12:15:38]wFMCommunicate OK [12:15:38]wFMCommunicate request_size=255 [12:15:38]MH_SAM_APDU [12:15:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 62 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 8A 46 00 00 00 00 07 04 06 00 10 98 02 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 6E 6A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E0 01 00 35 04 06 00 11 [12:15:38]Write to MH i2c: E2 02 01 69 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 62 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 8A 46 00 00 00 00 07 04 06 00 10 98 02 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 6E 6A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E0 01 00 35 04 06 00 11 00 00 C7 [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:38]Read from MH i2c: E2 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 69 22 00 90 00 FF [12:15:38]RAPDU: 90 00 [12:15:38]wFMCommunicate OK [12:15:38]wFMCommunicate request_size=10 [12:15:38]MH_SAM_APDU [12:15:38]CAPDU: 80 0D 02 02 05 87 E1 95 B8 1D [12:15:38]Write to MH i2c: E2 0D 00 6A 22 80 0D 02 02 05 00 87 E1 95 B8 1D 00 00 E2 [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:38]Read from MH i2c: E2 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 6A 22 00 90 00 00 [12:15:38]RAPDU: 90 00 [12:15:38]wFMCommunicate OK [12:15:38]wFMCommunicate request_size=4 [12:15:38]MH_SAM_APDU [12:15:38]CAPDU: 80 0D 03 02 [12:15:38]Write to MH i2c: E2 08 00 6B 22 80 0D 03 02 00 00 00 00 08 [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:38]Read from MH i2c: E2 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 0B 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 0B 00 6B 22 00 FC BA CD 23 CF F5 CA A9 90 00 E6 [12:15:38]RAPDU: FC BA CD 23 CF F5 CA A9 90 00 [12:15:38]wFMCommunicate OK [12:15:38]SAM_PROTO_SignData done [12:15:38]FM_MakeSignedData done [12:15:38]CreateOFDProtocolMessage [12:15:38]wFMCommunicate request_size=4 [12:15:38]MH_SAM_APDU [12:15:38]CAPDU: 80 11 00 00 [12:15:38]Write to MH i2c: E2 08 00 6C 22 80 11 00 00 00 00 00 00 08 [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:38]Read from MH i2c: E2 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 17 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 17 00 6C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5F [12:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:15:38]wFMCommunicate OK [12:15:38]CreateOFDProtocolMessage done [12:15:38]OFDSenderStorePacket 123023 [12:15:38]StoreOFDPacket docnum=123023 [12:15:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 09 39 07 01 0C EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 62 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 8A 46 00 00 00 00 07 04 06 00 10 98 02 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 6E 6A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E0 01 00 35 04 06 00 11 87 E1 95 B8 1D FC BA CD 23 CF F5 CA A9 [12:15:38]CheckFolder [12:15:38]dirname=/storage/ofd_packets [12:15:38]CheckFolder done [12:15:38]ProducePacketName [12:15:38]name=ofd_packets/00123023 [12:15:38]NVStorageSaveData ofd_packets/00123023 [12:15:38]File name is /storage/ofd_packets/00123023 [12:15:38]Write 301 bytes [12:15:38]NVStorageSaveData done [12:15:38]OFDSenderStorePacket done [12:15:38]KKMCreateOFDPacket done [12:15:38]NVStorageSaveData kkm_last_timestamp [12:15:38]File name is /storage/kkm_last_timestamp [12:15:38]Write 4 bytes [12:15:38]NVStorageSaveData done [12:15:38]ExternCall_PrintAddStr [12:15:38]wPrintStart [12:15:38]Write to MH i2c: 01 00 00 6D 22 8F [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: 01 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: 01 07 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 FF 0F A4 [12:15:38]RasterBufferAndPrint [12:15:38]line Счет N : (1)717818 [12:15:38]line ИНН: 02508201610067 [12:15:38]line Контрольно-Кассовый Чек [12:15:38]line ПРОДАЖА [12:15:38]line ТРК (МРК, ГНК) : 32 [12:15:38]line Товар: 2710124130 [12:15:38]line Аи-92-К-4 [12:15:38]line 25.230 * 67.40 [12:15:38]line = 1700.50 [12:15:38]line НДС 12% НСП 1% [12:15:38]line > о реализуемом товаре [12:15:38]line ОКРУГЛЕНИЕ: -0.50 [12:15:38]line ИТОГО: 1700.00 [12:15:38]line Внесено: 1700.00 [12:15:38]line СДАЧА: 0.00 [12:15:38]line НСП 1% : 15.05 [12:15:38]line НДС 12% : 180.58 [12:15:38]line Наличными: 1700.00 [12:15:38]line Безнал.: 0.00 [12:15:38]line Место: АЗС № 64 "Партнер Нефть" [12:15:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:15:38]line СНО: Общий режим [12:15:38]line Чек 64 25.11.2024 12:15 [12:15:38]line Смена: 556 ФФД: 1.0 [12:15:38]line ЗНМ: 0300000033 [12:15:38]line РНМ: 0000000000092681 [12:15:38]line Версия ККМ: 001 [12:15:38]line ФМ: 0000000000874881 [12:15:38]line ФД: 123023 [12:15:38]line ФПД: 19275302942749 [12:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T121542&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123023&fm=19275302942749&tin=02508201610067®Number=0000000000092681&sum=170000 [12:15:39]OFD Sender: Processing packet 123023 [packets to send 7, broken 6] [12:15:39]ProducePacketName [12:15:39]name=ofd_packets/00123023 [12:15:39]OFD Sender: To server: pG, [12:15:39]CommunicateWithHost lk.salyk.kg:30040 [12:15:39]ConnectInit lk.salyk.kg [12:15:39]written 0, free lines is 4095 [12:15:39]Connected sock=10 [12:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 09 39 07 01 0C EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 62 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 8A 46 00 00 00 00 07 04 06 00 10 98 02 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 6E 6A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E0 01 00 35 04 06 00 11 87 E1 95 B8 1D FC BA CD 23 CF F5 CA A9 [12:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 79 43 47 00 C0 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E0 01 00 F4 03 04 00 33 16 44 67 B6 04 01 00 00 0F C3 08 B9 A6 5D 63 A8 [12:15:39]CommunicateWithHost err = 0 [12:15:39]CheckOFDResponse [12:15:39]1017 (14) - 77093643461234 [12:15:39]1041 (16) - 0000000000874881 [12:15:39]1040 (4) - 123023 [12:15:39]1012 (4) - 25.11.2024 06:16 [12:15:39]1206 (1) - 0 [12:15:39]OFD Sender: Remove packet 123023 [12:15:39]ProducePacketName [12:15:39]name=ofd_packets/00123023 [12:15:39]NVStorageDeleteData [12:15:39]Write to MH i2c: 01 00 00 98 22 BA [12:15:39]Write i2c OK [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: 01 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: 01 07 00 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: 01 07 00 98 22 00 00 00 00 00 4F 0C 1C [12:15:39]RasterBufferAndPrint [12:15:39]line [12:15:39]line [12:15:39]line [12:15:39]line [12:15:39]line [12:15:39]written 0, free lines is 3156 [12:15:39]MH_Cut [12:15:39]Write to MH i2c: D1 01 00 9F 22 01 93 [12:15:39]Write i2c OK [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: D1 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: D1 01 00 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: D1 01 00 9F 22 00 92 [12:15:39]Write to MH i2c: 01 00 00 A0 22 C2 [12:15:39]Write i2c OK [12:15:39]MH_I2C_Read... [12:15:39]OFD Sender: No OFD packet to send [12:15:40]*** Cut start [12:15:40]*** Partial cut [12:15:40]*** CUTSNS_PIN = 1 [12:15:40]*** CUTSNS_PIN = 0 [12:15:41]*** Brake cut motor [12:15:41]Read from MH i2c: 01 [12:15:41]MH_I2C_Read... [12:15:41]*** Stop cut motor [12:15:41]*** Cut end [12:15:41]Read from MH i2c: 01 07 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: 01 07 00 A0 22 00 00 00 00 00 FF 0F D7 [12:15:41]process_action close_receipt done [12:15:41]requested_data is exist [12:15:41]produce_requested_data [12:15:41]requested_item fm.sn is exist - process it [12:15:41]wFMCommunicate request_size=4 [12:15:41]MH_SAM_APDU [12:15:41]CAPDU: 80 11 00 00 [12:15:41]Write to MH i2c: E2 08 00 A1 22 80 11 00 00 00 00 00 00 3D [12:15:41]Write i2c OK [12:15:41]MH_I2C_Read... [12:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:41]Read from MH i2c: E2 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 17 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 17 00 A1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 94 [12:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:15:41]wFMCommunicate OK [12:15:41]requested_item fd.num is exist - process it [12:15:41]SAM_PROTO_GetFieldsCounters [12:15:41]wFMCommunicate request_size=4 [12:15:41]MH_SAM_APDU [12:15:41]CAPDU: 80 13 00 00 [12:15:41]Write to MH i2c: E2 08 00 A2 22 80 13 00 00 00 00 00 00 40 [12:15:41]Write i2c OK [12:15:41]MH_I2C_Read... [12:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:41]Read from MH i2c: E2 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 62 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 62 00 A2 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8F E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [12:15:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8F E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:41]wFMCommunicate OK [12:15:41]SAM_PROTO_GetFieldsCounters done [12:15:41]requested_item shift.num is exist - process it [12:15:41]requested_item shift.opened is exist - process it [12:15:41]req_shift_opened [12:15:41]FM_GetShiftState [12:15:41]SAM_PROTO_GetShiftState [12:15:41]wFMCommunicate request_size=4 [12:15:41]MH_SAM_APDU [12:15:41]CAPDU: 80 13 01 00 [12:15:41]Write to MH i2c: E2 08 00 A3 22 80 13 01 00 00 00 00 00 42 [12:15:41]Write i2c OK [12:15:41]MH_I2C_Read... [12:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:41]Read from MH i2c: E2 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 0E 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 0E 00 A3 22 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C1 [12:15:41]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:15:41]wFMCommunicate OK [12:15:41]SAM_PROTO_GetShiftState done [12:15:41]FM_GetShiftState done [12:15:41]req_shift_opened done [12:15:41]requested_item shift.open_date is exist - process it [12:15:41]req_shift_open_date [12:15:41]req_shift_open_date done [12:15:41]produce_requested_data done [12:15:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123023,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:15:41]process_action_free close_receipt [12:15:41]json_value_free [12:15:41]json_value_free done [12:15:41]process_json_proto returns [12:15:41]Send response to host [12:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123023,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:15:41]free response buf [12:15:41]execute_script done [12:15:41]execute_script returns [12:15:41]free content buf [12:15:41]Sock 7.Close socket [12:15:41]Sock 7.Thread stoped [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:44]accept exits with 9 [12:19:44]New connection [12:19:44]New thread 3066723684 created [12:19:44]Thread 3066580324 joined [12:19:44]Waiting for new connection... [12:19:44] Sock 9.Parse request [12:19:44]Sock 9.Check first char [12:19:44]Sock 9.First char is OK [12:19:44]request: POST /json_proto HTTP/1.0 [12:19:44]Method: POST [12:19:44]URL: /json_proto [12:19:44]Method is POST - this is cgi request [12:19:44]url: /json_proto [12:19:44]query_string will be loaded in cgi processing [12:19:44]execute_cgi json_proto POST (null) [12:19:44]execute_cgi path=json_proto method=POST [12:19:44]POST find Content-Length [12:19:44]Host: 172.17.37.4:8080 [12:19:44]Content-Length: 686 [12:19:44]Content-Type: application/json [12:19:44] [12:19:44]POST finish read [12:19:44]Found Content-Length = 686 [12:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:44]execute_script... [12:19: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)717819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:44]POST & json_proto [12:19:44]process_json_proto [12:19:44]json parsed OK: [12:19:44]protocol is kg_v1.0 [12:19:44]action value=close_receipt [12:19:44]process_action close_receipt [12:19:44]cmd_close_receipt [12:19:44]MH_GetDate [12:19:44]Write to MH i2c: F0 00 00 A4 22 B5 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: F0 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: F0 09 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: F0 09 00 A4 22 00 65 6B 44 67 B8 5A 43 67 F5 [12:19:44]GetLastDocTimeStamp 1732536942 [12:19:44]current date 1732537189 [12:19:44]FM_GetShiftState [12:19:44]SAM_PROTO_GetShiftState [12:19:44]wFMCommunicate request_size=4 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 13 01 00 [12:19:44]Write to MH i2c: E2 08 00 A5 22 80 13 01 00 00 00 00 00 44 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0E 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0E 00 A5 22 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C3 [12:19:44]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:19:44]wFMCommunicate OK [12:19:44]SAM_PROTO_GetShiftState done [12:19:44]FM_GetShiftState done [12:19:44]opened in 1732493066 [12:19:44]opened+sec_in_day 1732579466 [12:19:44]quantity*price = 200057 [12:19:44]sum+1 = 200059 [12:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 65 25.11.2024 12:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123024 ФПД: 179120546890432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T121949&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123024&fm=179120546890432&tin=02508201610067®Number=0000000000092681&sum=200000 [12:19:45]StoreToDocumentArchive [12:19:45]shift 556 fd 123024 [12:19:45]save to /storage/0556/doc_00123024 [12:19:45]save last doc name /storage/0556/doc_00123024 to /storage/kkm_last_doc_name [12:19:45]save OK [12:19:45]Clear old archive folders... [12:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:19:45]tlvbuf is B6E70ED0 [12:19:45]SAM_PROTO_ClearQueue [12:19:45]wFMCommunicate request_size=4 [12:19:45]MH_SAM_APDU [12:19:45]CAPDU: 80 09 00 00 [12:19:45]Write to MH i2c: E2 08 00 B2 22 80 09 00 00 00 00 00 00 46 [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:45]Read from MH i2c: E2 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 03 00 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 03 00 B2 22 00 90 00 48 [12:19:45]RAPDU: 90 00 [12:19:45]wFMCommunicate OK [12:19:45]SAM_PROTO_ClearQueue done [12:19:45]KKMCreateOFDPacket [12:19:45]OFDProtocolAddRootSTLVToBuf [12:19:45]FM_MakeSignedData [12:19:45]FM_MakeSignedData [12:19:45]SAM_PROTO_SignData [12:19:45]wFMCommunicate request_size=4 [12:19:45]MH_SAM_APDU [12:19:45]CAPDU: 80 0D 01 02 [12:19:45]Write to MH i2c: E2 08 00 B3 22 80 0D 01 02 00 00 00 00 4E [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:45]Read from MH i2c: E2 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 03 00 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 03 00 B3 22 00 90 00 49 [12:19:45]RAPDU: 90 00 [12:19:45]wFMCommunicate OK [12:19:45]wFMCommunicate request_size=255 [12:19:45]MH_SAM_APDU [12:19:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 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 FD 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 41 00 00 00 F4 03 04 00 65 6B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 90 E0 01 00 35 04 06 00 [12:19:45]Write to MH i2c: E2 02 01 B4 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 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 FD 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 41 00 00 00 F4 03 04 00 65 6B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 90 E0 01 00 35 04 06 00 00 00 79 [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:45]Read from MH i2c: E2 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 03 00 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 03 00 B4 22 00 90 00 4A [12:19:45]RAPDU: 90 00 [12:19:45]wFMCommunicate OK [12:19:45]wFMCommunicate request_size=11 [12:19:45]MH_SAM_APDU [12:19:45]CAPDU: 80 0D 02 02 06 A2 E8 C0 91 C2 C0 [12:19:46]Write to MH i2c: E2 0E 00 B5 22 80 0D 02 02 06 00 A2 E8 C0 91 C2 C0 00 00 BA [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 B5 22 00 90 00 4B [12:19:46]RAPDU: 90 00 [12:19:46]wFMCommunicate OK [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 0D 03 02 [12:19:46]Write to MH i2c: E2 08 00 B6 22 80 0D 03 02 00 00 00 00 53 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0B 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0B 00 B6 22 00 E4 20 4F D0 53 AF 6B B2 90 00 96 [12:19:46]RAPDU: E4 20 4F D0 53 AF 6B B2 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_SignData done [12:19:46]FM_MakeSignedData done [12:19:46]CreateOFDProtocolMessage [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 11 00 00 [12:19:46]Write to MH i2c: E2 08 00 B7 22 80 11 00 00 00 00 00 00 53 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 B7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AA [12:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:19:46]wFMCommunicate OK [12:19:46]CreateOFDProtocolMessage done [12:19:46]OFDSenderStorePacket 123024 [12:19:46]StoreOFDPacket docnum=123024 [12:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 24 C2 08 01 68 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 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 FD 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 41 00 00 00 F4 03 04 00 65 6B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 90 E0 01 00 35 04 06 00 A2 E8 C0 91 C2 C0 E4 20 4F D0 53 AF 6B B2 [12:19:46]CheckFolder [12:19:46]dirname=/storage/ofd_packets [12:19:46]CheckFolder done [12:19:46]ProducePacketName [12:19:46]name=ofd_packets/00123024 [12:19:46]NVStorageSaveData ofd_packets/00123024 [12:19:46]File name is /storage/ofd_packets/00123024 [12:19:46]Write 302 bytes [12:19:46]NVStorageSaveData done [12:19:46]OFDSenderStorePacket done [12:19:46]KKMCreateOFDPacket done [12:19:46]NVStorageSaveData kkm_last_timestamp [12:19:46]File name is /storage/kkm_last_timestamp [12:19:46]Write 4 bytes [12:19:46]NVStorageSaveData done [12:19:46]ExternCall_PrintAddStr [12:19:46]wPrintStart [12:19:46]Write to MH i2c: 01 00 00 B8 22 DA [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 07 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 07 00 B8 22 00 00 00 00 00 FF 0F EF [12:19:46]RasterBufferAndPrint [12:19:46]line Счет N : (1)717819 [12:19:46]line ИНН: 02508201610067 [12:19:46]line Контрольно-Кассовый Чек [12:19:46]line ПРОДАЖА [12:19:46]line ТРК (МРК, ГНК) : 5 [12:19:46]line Товар: 2710194210 [12:19:46]line ДТ(л)-К-5 [12:19:46]line 26.710 * 74.90 [12:19:46]line = 2000.58 [12:19:46]line НДС 12% НСП 1% [12:19:46]line > о реализуемом товаре [12:19:46]line ОКРУГЛЕНИЕ: -0.58 [12:19:46]line ИТОГО: 2000.00 [12:19:46]line Внесено: 2000.00 [12:19:46]line СДАЧА: 0.00 [12:19:46]line НСП 1% : 17.70 [12:19:46]line НДС 12% : 212.45 [12:19:46]line Наличными: 2000.00 [12:19:46]line Безнал.: 0.00 [12:19:46]line Место: АЗС № 64 "Партнер Нефть" [12:19:46]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:19:46]line СНО: Общий режим [12:19:46]line Чек 65 25.11.2024 12:19 [12:19:46]line Смена: 556 ФФД: 1.0 [12:19:46]line ЗНМ: 0300000033 [12:19:46]line РНМ: 0000000000092681 [12:19:46]line Версия ККМ: 001 [12:19:46]line ФМ: 0000000000874881 [12:19:46]line ФД: 123024 [12:19:46]line ФПД: 179120546890432 [12:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T121949&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123024&fm=179120546890432&tin=02508201610067®Number=0000000000092681&sum=200000 [12:19:46]OFD Sender: Processing packet 123024 [packets to send 7, broken 6] [12:19:46]ProducePacketName [12:19:46]name=ofd_packets/00123024 [12:19:46]OFD Sender: To server: pG, [12:19:46]CommunicateWithHost lk.salyk.kg:30040 [12:19:46]ConnectInit lk.salyk.kg [12:19:46]written 0, free lines is 4095 [12:19:46]Connected sock=10 [12:19:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 24 C2 08 01 68 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 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 FD 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 41 00 00 00 F4 03 04 00 65 6B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 90 E0 01 00 35 04 06 00 A2 E8 C0 91 C2 C0 E4 20 4F D0 53 AF 6B B2 [12:19:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 8A A7 47 00 93 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 34 38 38 31 10 04 04 00 90 E0 01 00 F4 03 04 00 2B 17 44 67 B6 04 01 00 00 AE C7 28 1A 4E 46 30 D7 [12:19:46]CommunicateWithHost err = 0 [12:19:46]CheckOFDResponse [12:19:46]1017 (14) - 77093643461234 [12:19:46]1041 (16) - 0000000000874881 [12:19:46]1040 (4) - 123024 [12:19:46]1012 (4) - 25.11.2024 06:20 [12:19:46]1206 (1) - 0 [12:19:46]OFD Sender: Remove packet 123024 [12:19:46]ProducePacketName [12:19:46]name=ofd_packets/00123024 [12:19:46]NVStorageDeleteData [12:19:46]Write to MH i2c: 01 00 00 E3 22 05 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 07 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 07 00 E3 22 00 00 00 00 00 52 0C 6A [12:19:46]RasterBufferAndPrint [12:19:46]line [12:19:46]line [12:19:46]line [12:19:46]line [12:19:46]line [12:19:46]written 0, free lines is 3159 [12:19:46]MH_Cut [12:19:46]Write to MH i2c: D1 01 00 EA 22 01 DE [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: D1 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: D1 01 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: D1 01 00 EA 22 00 DD [12:19:46]Write to MH i2c: 01 00 00 EB 22 0D [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:47]OFD Sender: No OFD packet to send [12:19:48]*** Cut start [12:19:48]*** Partial cut [12:19:48]*** CUTSNS_PIN = 1 [12:19:48]*** CUTSNS_PIN = 0 [12:19:48]*** Brake cut motor [12:19:48]Read from MH i2c: 01 [12:19:48]MH_I2C_Read... [12:19:48]*** Stop cut motor [12:19:48]*** Cut end [12:19:48]Read from MH i2c: 01 07 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 EB 22 00 00 00 00 00 FF 0F 22 [12:19:48]process_action close_receipt done [12:19:48]requested_data is exist [12:19:48]produce_requested_data [12:19:48]requested_item fm.sn is exist - process it [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 11 00 00 [12:19:48]Write to MH i2c: E2 08 00 EC 22 80 11 00 00 00 00 00 00 88 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 17 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 17 00 EC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DF [12:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:19:49]wFMCommunicate OK [12:19:49]requested_item fd.num is exist - process it [12:19:49]SAM_PROTO_GetFieldsCounters [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 13 00 00 [12:19:49]Write to MH i2c: E2 08 00 ED 22 80 13 00 00 00 00 00 00 8B [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 62 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 62 00 ED 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 90 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [12:19:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 90 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:49]wFMCommunicate OK [12:19:49]SAM_PROTO_GetFieldsCounters done [12:19:49]requested_item shift.num is exist - process it [12:19:49]requested_item shift.opened is exist - process it [12:19:49]req_shift_opened [12:19:49]FM_GetShiftState [12:19:49]SAM_PROTO_GetShiftState [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 13 01 00 [12:19:49]Write to MH i2c: E2 08 00 EE 22 80 13 01 00 00 00 00 00 8D [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0E 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0E 00 EE 22 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0C [12:19:49]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:19:49]wFMCommunicate OK [12:19:49]SAM_PROTO_GetShiftState done [12:19:49]FM_GetShiftState done [12:19:49]req_shift_opened done [12:19:49]requested_item shift.open_date is exist - process it [12:19:49]req_shift_open_date [12:19:49]req_shift_open_date done [12:19:49]produce_requested_data done [12:19:49]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123024,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:19:49]process_action_free close_receipt [12:19:49]json_value_free [12:19:49]json_value_free done [12:19:49]process_json_proto returns [12:19:49]Send response to host [12:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123024,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:19:49]free response buf [12:19:49]execute_script done [12:19:49]execute_script returns [12:19:49]free content buf [12:19:49]Sock 9.Close socket [12:19:49]Sock 9.Thread stoped [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:03]accept exits with 7 [12:22:03]New connection [12:22:03]New thread 3066580324 created [12:22:03]Thread 3066723684 joined [12:22:03]Waiting for new connection... [12:22:03] Sock 7.Parse request [12:22:03]Sock 7.Check first char [12:22:03]Sock 7.First char is OK [12:22:03]request: POST /json_proto HTTP/1.0 [12:22:03]Method: POST [12:22:03]URL: /json_proto [12:22:03]Method is POST - this is cgi request [12:22:03]url: /json_proto [12:22:03]query_string will be loaded in cgi processing [12:22:03]execute_cgi json_proto POST (null) [12:22:03]execute_cgi path=json_proto method=POST [12:22:03]POST find Content-Length [12:22:03]Host: 172.17.37.4:8080 [12:22:03]Content-Length: 686 [12:22:03]Content-Type: application/json [12:22:03] [12:22:03]POST finish read [12:22:03]Found Content-Length = 686 [12:22:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:03]execute_script... [12:22: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)717820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:03]POST & json_proto [12:22:03]process_json_proto [12:22:03]json parsed OK: [12:22:03]protocol is kg_v1.0 [12:22:03]action value=close_receipt [12:22:03]process_action close_receipt [12:22:03]cmd_close_receipt [12:22:03]MH_GetDate [12:22:03]Write to MH i2c: F0 00 00 EF 22 00 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: F0 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: F0 09 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: F0 09 00 EF 22 00 F0 6B 44 67 B8 5A 43 67 CB [12:22:03]GetLastDocTimeStamp 1732537189 [12:22:03]current date 1732537328 [12:22:03]FM_GetShiftState [12:22:03]SAM_PROTO_GetShiftState [12:22:03]wFMCommunicate request_size=4 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 13 01 00 [12:22:03]Write to MH i2c: E2 08 00 F0 22 80 13 01 00 00 00 00 00 8F [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0E 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0E 00 F0 22 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0E [12:22:03]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:22:03]wFMCommunicate OK [12:22:03]SAM_PROTO_GetShiftState done [12:22:03]FM_GetShiftState done [12:22:03]opened in 1732493066 [12:22:03]opened+sec_in_day 1732579466 [12:22:03]quantity*price = 200057 [12:22:03]sum+1 = 200059 [12:22:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 66 25.11.2024 12:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123025 ФПД: 169125782318888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122208&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123025&fm=169125782318888&tin=02508201610067®Number=0000000000092681&sum=200000 [12:22:04]StoreToDocumentArchive [12:22:04]shift 556 fd 123025 [12:22:04]save to /storage/0556/doc_00123025 [12:22:04]save last doc name /storage/0556/doc_00123025 to /storage/kkm_last_doc_name [12:22:04]save OK [12:22:04]Clear old archive folders... [12:22:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:22:04]tlvbuf is 01F46CB0 [12:22:04]SAM_PROTO_ClearQueue [12:22:04]wFMCommunicate request_size=4 [12:22:04]MH_SAM_APDU [12:22:04]CAPDU: 80 09 00 00 [12:22:04]Write to MH i2c: E2 08 00 FD 22 80 09 00 00 00 00 00 00 91 [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:04]Read from MH i2c: E2 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: E2 03 00 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: E2 03 00 FD 22 00 90 00 93 [12:22:04]RAPDU: 90 00 [12:22:04]wFMCommunicate OK [12:22:04]SAM_PROTO_ClearQueue done [12:22:04]KKMCreateOFDPacket [12:22:04]OFDProtocolAddRootSTLVToBuf [12:22:04]FM_MakeSignedData [12:22:04]FM_MakeSignedData [12:22:04]SAM_PROTO_SignData [12:22:04]wFMCommunicate request_size=4 [12:22:04]MH_SAM_APDU [12:22:04]CAPDU: 80 0D 01 02 [12:22:04]Write to MH i2c: E2 08 00 FE 22 80 0D 01 02 00 00 00 00 99 [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:04]Read from MH i2c: E2 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: E2 03 00 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: E2 03 00 FE 22 00 90 00 94 [12:22:04]RAPDU: 90 00 [12:22:04]wFMCommunicate OK [12:22:04]wFMCommunicate request_size=255 [12:22:04]MH_SAM_APDU [12:22:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 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 FD 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 42 00 00 00 F4 03 04 00 F0 6B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E0 01 00 35 04 06 00 [12:22:04]Write to MH i2c: E2 02 01 FF 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 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 FD 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 42 00 00 00 F4 03 04 00 F0 6B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E0 01 00 35 04 06 00 00 00 51 [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:05]Read from MH i2c: E2 03 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 03 00 FF 22 00 90 00 95 [12:22:05]RAPDU: 90 00 [12:22:05]wFMCommunicate OK [12:22:05]wFMCommunicate request_size=11 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 0D 02 02 06 99 D1 AA 2D 6F 28 [12:22:05]Write to MH i2c: E2 0E 00 00 23 80 0D 02 02 06 00 99 D1 AA 2D 6F 28 00 00 81 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 03 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 03 00 00 23 00 90 00 97 [12:22:05]RAPDU: 90 00 [12:22:05]wFMCommunicate OK [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 0D 03 02 [12:22:05]Write to MH i2c: E2 08 00 01 23 80 0D 03 02 00 00 00 00 9F [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 0B 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 0B 00 01 23 00 D7 B8 DD 03 EC 01 1B 14 90 00 2B [12:22:05]RAPDU: D7 B8 DD 03 EC 01 1B 14 90 00 [12:22:05]wFMCommunicate OK [12:22:05]SAM_PROTO_SignData done [12:22:05]FM_MakeSignedData done [12:22:05]CreateOFDProtocolMessage [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 11 00 00 [12:22:05]Write to MH i2c: E2 08 00 02 23 80 11 00 00 00 00 00 00 9F [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 17 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 17 00 02 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F6 [12:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:22:05]wFMCommunicate OK [12:22:05]CreateOFDProtocolMessage done [12:22:05]OFDSenderStorePacket 123025 [12:22:05]StoreOFDPacket docnum=123025 [12:22:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 EB 32 08 01 86 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 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 FD 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 42 00 00 00 F4 03 04 00 F0 6B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E0 01 00 35 04 06 00 99 D1 AA 2D 6F 28 D7 B8 DD 03 EC 01 1B 14 [12:22:05]CheckFolder [12:22:05]dirname=/storage/ofd_packets [12:22:05]CheckFolder done [12:22:05]ProducePacketName [12:22:05]name=ofd_packets/00123025 [12:22:05]NVStorageSaveData ofd_packets/00123025 [12:22:05]File name is /storage/ofd_packets/00123025 [12:22:05]Write 302 bytes [12:22:05]NVStorageSaveData done [12:22:05]OFDSenderStorePacket done [12:22:05]KKMCreateOFDPacket done [12:22:05]NVStorageSaveData kkm_last_timestamp [12:22:05]File name is /storage/kkm_last_timestamp [12:22:05]Write 4 bytes [12:22:05]NVStorageSaveData done [12:22:05]ExternCall_PrintAddStr [12:22:05]wPrintStart [12:22:05]Write to MH i2c: 01 00 00 03 23 26 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 07 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 07 00 03 23 00 00 00 00 00 FF 0F 3B [12:22:05]RasterBufferAndPrint [12:22:05]line Счет N : (1)717820 [12:22:05]line ИНН: 02508201610067 [12:22:05]line Контрольно-Кассовый Чек [12:22:05]line ПРОДАЖА [12:22:05]line ТРК (МРК, ГНК) : 5 [12:22:05]line Товар: 2710194210 [12:22:05]line ДТ(л)-К-5 [12:22:05]line 26.710 * 74.90 [12:22:05]line = 2000.58 [12:22:05]line НДС 12% НСП 1% [12:22:05]line > о реализуемом товаре [12:22:05]line ОКРУГЛЕНИЕ: -0.58 [12:22:05]line ИТОГО: 2000.00 [12:22:05]line Внесено: 2000.00 [12:22:05]line СДАЧА: 0.00 [12:22:05]line НСП 1% : 17.70 [12:22:05]line НДС 12% : 212.45 [12:22:05]line Наличными: 2000.00 [12:22:05]line Безнал.: 0.00 [12:22:05]line Место: АЗС № 64 "Партнер Нефть" [12:22:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:22:05]line СНО: Общий режим [12:22:05]line Чек 66 25.11.2024 12:22 [12:22:05]line Смена: 556 ФФД: 1.0 [12:22:05]line ЗНМ: 0300000033 [12:22:05]line РНМ: 0000000000092681 [12:22:05]line Версия ККМ: 001 [12:22:05]line ФМ: 0000000000874881 [12:22:05]line ФД: 123025 [12:22:05]line ФПД: 169125782318888 [12:22:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122208&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123025&fm=169125782318888&tin=02508201610067®Number=0000000000092681&sum=200000 [12:22:05]OFD Sender: Processing packet 123025 [packets to send 7, broken 6] [12:22:05]ProducePacketName [12:22:05]name=ofd_packets/00123025 [12:22:05]OFD Sender: To server: pG, [12:22:05]CommunicateWithHost lk.salyk.kg:30040 [12:22:05]ConnectInit lk.salyk.kg [12:22:05]written 0, free lines is 4095 [12:22:05]Connected sock=10 [12:22:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 EB 32 08 01 86 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 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 FD 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 42 00 00 00 F4 03 04 00 F0 6B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E0 01 00 35 04 06 00 99 D1 AA 2D 6F 28 D7 B8 DD 03 EC 01 1B 14 [12:22:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 17 09 47 00 2D 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E0 01 00 F4 03 04 00 B6 17 44 67 B6 04 01 00 00 6D E1 98 2E CE A2 EE 98 [12:22:05]CommunicateWithHost err = 0 [12:22:05]CheckOFDResponse [12:22:05]1017 (14) - 77093643461234 [12:22:05]1041 (16) - 0000000000874881 [12:22:05]1040 (4) - 123025 [12:22:05]1012 (4) - 25.11.2024 06:22 [12:22:05]1206 (1) - 0 [12:22:05]OFD Sender: Remove packet 123025 [12:22:05]ProducePacketName [12:22:05]name=ofd_packets/00123025 [12:22:05]NVStorageDeleteData [12:22:06]Write to MH i2c: 01 00 00 2E 23 51 [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: 01 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: 01 07 00 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: 01 07 00 2E 23 00 00 00 00 00 4D 0C B1 [12:22:06]RasterBufferAndPrint [12:22:06]line [12:22:06]line [12:22:06]line [12:22:06]line [12:22:06]line [12:22:06]written 0, free lines is 3152 [12:22:06]MH_Cut [12:22:06]Write to MH i2c: D1 01 00 35 23 01 2A [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: D1 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: D1 01 00 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: D1 01 00 35 23 00 29 [12:22:06]Write to MH i2c: 01 00 00 36 23 59 [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]OFD Sender: No OFD packet to send [12:22:07]*** Cut start [12:22:07]*** Partial cut [12:22:07]*** CUTSNS_PIN = 1 [12:22:07]*** CUTSNS_PIN = 0 [12:22:07]*** Brake cut motor [12:22:08]Read from MH i2c: 01 [12:22:08]MH_I2C_Read... [12:22:08]*** Stop cut motor [12:22:08]*** Cut end [12:22:08]Read from MH i2c: 01 07 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 07 00 36 23 00 00 00 00 00 FF 0F 6E [12:22:08]process_action close_receipt done [12:22:08]requested_data is exist [12:22:08]produce_requested_data [12:22:08]requested_item fm.sn is exist - process it [12:22:08]wFMCommunicate request_size=4 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 11 00 00 [12:22:08]Write to MH i2c: E2 08 00 37 23 80 11 00 00 00 00 00 00 D4 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 17 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 17 00 37 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2B [12:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:22:08]wFMCommunicate OK [12:22:08]requested_item fd.num is exist - process it [12:22:08]SAM_PROTO_GetFieldsCounters [12:22:08]wFMCommunicate request_size=4 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 13 00 00 [12:22:08]Write to MH i2c: E2 08 00 38 23 80 13 00 00 00 00 00 00 D7 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 62 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 62 00 38 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 91 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [12:22:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 91 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:08]wFMCommunicate OK [12:22:08]SAM_PROTO_GetFieldsCounters done [12:22:08]requested_item shift.num is exist - process it [12:22:08]requested_item shift.opened is exist - process it [12:22:08]req_shift_opened [12:22:08]FM_GetShiftState [12:22:08]SAM_PROTO_GetShiftState [12:22:08]wFMCommunicate request_size=4 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 13 01 00 [12:22:08]Write to MH i2c: E2 08 00 39 23 80 13 01 00 00 00 00 00 D9 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:08]Read from MH i2c: E2 0E 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 0E 00 39 23 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 58 [12:22:08]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:22:08]wFMCommunicate OK [12:22:08]SAM_PROTO_GetShiftState done [12:22:08]FM_GetShiftState done [12:22:08]req_shift_opened done [12:22:08]requested_item shift.open_date is exist - process it [12:22:08]req_shift_open_date [12:22:08]req_shift_open_date done [12:22:08]produce_requested_data done [12:22:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123025,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:22:08]process_action_free close_receipt [12:22:08]json_value_free [12:22:08]json_value_free done [12:22:08]process_json_proto returns [12:22:08]Send response to host [12:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123025,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:22:08]free response buf [12:22:08]execute_script done [12:22:08]execute_script returns [12:22:08]free content buf [12:22:08]Sock 7.Close socket [12:22:08]Sock 7.Thread stoped [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:10]accept exits with 9 [12:24:10]New connection [12:24:10]New thread 3066723684 created [12:24:10]Thread 3066580324 joined [12:24:10]Waiting for new connection... [12:24:10] Sock 9.Parse request [12:24:10]Sock 9.Check first char [12:24:10]Sock 9.First char is OK [12:24:10]request: POST /json_proto HTTP/1.0 [12:24:10]Method: POST [12:24:10]URL: /json_proto [12:24:10]Method is POST - this is cgi request [12:24:10]url: /json_proto [12:24:10]query_string will be loaded in cgi processing [12:24:10]execute_cgi json_proto POST (null) [12:24:10]execute_cgi path=json_proto method=POST [12:24:10]POST find Content-Length [12:24:10]Host: 172.17.37.4:8080 [12:24:10]Content-Length: 686 [12:24:10]Content-Type: application/json [12:24:10] [12:24:10]POST finish read [12:24:10]Found Content-Length = 686 [12:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:10]execute_script... [12:24:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:10]POST & json_proto [12:24:10]process_json_proto [12:24:10]json parsed OK: [12:24:10]protocol is kg_v1.0 [12:24:10]action value=close_receipt [12:24:10]process_action close_receipt [12:24:10]cmd_close_receipt [12:24:10]MH_GetDate [12:24:10]Write to MH i2c: F0 00 00 3A 23 4C [12:24:10]Write i2c OK [12:24:10]MH_I2C_Read... [12:24:10]Read from MH i2c: F0 [12:24:10]MH_I2C_Read... [12:24:10]Read from MH i2c: F0 09 00 [12:24:10]MH_I2C_Read... [12:24:10]Read from MH i2c: F0 09 00 3A 23 00 6E 6C 44 67 B8 5A 43 67 96 [12:24:10]GetLastDocTimeStamp 1732537328 [12:24:10]current date 1732537454 [12:24:10]FM_GetShiftState [12:24:10]SAM_PROTO_GetShiftState [12:24:10]wFMCommunicate request_size=4 [12:24:10]MH_SAM_APDU [12:24:10]CAPDU: 80 13 01 00 [12:24:10]Write to MH i2c: E2 08 00 3B 23 80 13 01 00 00 00 00 00 DB [12:24:10]Write i2c OK [12:24:10]MH_I2C_Read... [12:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:10]Read from MH i2c: E2 [12:24:10]MH_I2C_Read... [12:24:10]Read from MH i2c: E2 0E 00 [12:24:10]MH_I2C_Read... [12:24:10]Read from MH i2c: E2 0E 00 3B 23 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 5A [12:24:10]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:24:10]wFMCommunicate OK [12:24:10]SAM_PROTO_GetShiftState done [12:24:10]FM_GetShiftState done [12:24:10]opened in 1732493066 [12:24:10]opened+sec_in_day 1732579466 [12:24:10]quantity*price = 100066 [12:24:10]sum+1 = 100067 [12:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 67 25.11.2024 12:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123026 ФПД: 122280796743838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122415&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123026&fm=122280796743838&tin=02508201610067®Number=0000000000092681&sum=100000 [12:24:11]StoreToDocumentArchive [12:24:11]shift 556 fd 123026 [12:24:11]save to /storage/0556/doc_00123026 [12:24:11]save last doc name /storage/0556/doc_00123026 to /storage/kkm_last_doc_name [12:24:11]save OK [12:24:11]Clear old archive folders... [12:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:24:11]tlvbuf is B6EA2E10 [12:24:11]SAM_PROTO_ClearQueue [12:24:11]wFMCommunicate request_size=4 [12:24:11]MH_SAM_APDU [12:24:11]CAPDU: 80 09 00 00 [12:24:11]Write to MH i2c: E2 08 00 48 23 80 09 00 00 00 00 00 00 DD [12:24:11]Write i2c OK [12:24:11]MH_I2C_Read... [12:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:11]Read from MH i2c: E2 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 03 00 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 03 00 48 23 00 90 00 DF [12:24:11]RAPDU: 90 00 [12:24:11]wFMCommunicate OK [12:24:11]SAM_PROTO_ClearQueue done [12:24:11]KKMCreateOFDPacket [12:24:11]OFDProtocolAddRootSTLVToBuf [12:24:11]FM_MakeSignedData [12:24:11]FM_MakeSignedData [12:24:11]SAM_PROTO_SignData [12:24:11]wFMCommunicate request_size=4 [12:24:11]MH_SAM_APDU [12:24:11]CAPDU: 80 0D 01 02 [12:24:11]Write to MH i2c: E2 08 00 49 23 80 0D 01 02 00 00 00 00 E5 [12:24:11]Write i2c OK [12:24:11]MH_I2C_Read... [12:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:11]Read from MH i2c: E2 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 03 00 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 03 00 49 23 00 90 00 E0 [12:24:11]RAPDU: 90 00 [12:24:11]wFMCommunicate OK [12:24:11]wFMCommunicate request_size=255 [12:24:11]MH_SAM_APDU [12:24:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 6F 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E0 01 00 35 04 06 00 [12:24:11]Write to MH i2c: E2 02 01 4A 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 6F 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E0 01 00 35 04 06 00 00 00 36 [12:24:11]Write i2c OK [12:24:11]MH_I2C_Read... [12:24:11]OFD Sender: No OFD packet to send [12:24:11]Read from MH i2c: E2 [12:24:11]MH_I2C_Read... [12:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:11]Read from MH i2c: E2 03 00 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 03 00 4A 23 00 90 00 E1 [12:24:11]RAPDU: 90 00 [12:24:11]wFMCommunicate OK [12:24:11]wFMCommunicate request_size=11 [12:24:11]MH_SAM_APDU [12:24:11]CAPDU: 80 0D 02 02 06 6F 36 B7 73 E8 9E [12:24:11]Write to MH i2c: E2 0E 00 4B 23 80 0D 02 02 06 00 6F 36 B7 73 E8 9E 00 00 49 [12:24:11]Write i2c OK [12:24:11]MH_I2C_Read... [12:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:11]Read from MH i2c: E2 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 03 00 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 03 00 4B 23 00 90 00 E2 [12:24:11]RAPDU: 90 00 [12:24:11]wFMCommunicate OK [12:24:11]wFMCommunicate request_size=4 [12:24:11]MH_SAM_APDU [12:24:11]CAPDU: 80 0D 03 02 [12:24:11]Write to MH i2c: E2 08 00 4C 23 80 0D 03 02 00 00 00 00 EA [12:24:11]Write i2c OK [12:24:11]MH_I2C_Read... [12:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:11]Read from MH i2c: E2 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 0B 00 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 0B 00 4C 23 00 AC 97 F3 7B E9 ED F9 16 90 00 81 [12:24:11]RAPDU: AC 97 F3 7B E9 ED F9 16 90 00 [12:24:11]wFMCommunicate OK [12:24:11]SAM_PROTO_SignData done [12:24:11]FM_MakeSignedData done [12:24:11]CreateOFDProtocolMessage [12:24:11]wFMCommunicate request_size=4 [12:24:11]MH_SAM_APDU [12:24:11]CAPDU: 80 11 00 00 [12:24:11]Write to MH i2c: E2 08 00 4D 23 80 11 00 00 00 00 00 00 EA [12:24:11]Write i2c OK [12:24:11]MH_I2C_Read... [12:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:11]Read from MH i2c: E2 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 17 00 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: E2 17 00 4D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 41 [12:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:24:11]wFMCommunicate OK [12:24:11]CreateOFDProtocolMessage done [12:24:11]OFDSenderStorePacket 123026 [12:24:11]StoreOFDPacket docnum=123026 [12:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BF 17 08 01 16 BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 6F 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E0 01 00 35 04 06 00 6F 36 B7 73 E8 9E AC 97 F3 7B E9 ED F9 16 [12:24:11]CheckFolder [12:24:11]dirname=/storage/ofd_packets [12:24:11]CheckFolder done [12:24:11]ProducePacketName [12:24:11]name=ofd_packets/00123026 [12:24:11]NVStorageSaveData ofd_packets/00123026 [12:24:11]File name is /storage/ofd_packets/00123026 [12:24:11]Write 302 bytes [12:24:11]NVStorageSaveData done [12:24:11]OFDSenderStorePacket done [12:24:11]KKMCreateOFDPacket done [12:24:11]NVStorageSaveData kkm_last_timestamp [12:24:11]File name is /storage/kkm_last_timestamp [12:24:11]Write 4 bytes [12:24:11]NVStorageSaveData done [12:24:11]ExternCall_PrintAddStr [12:24:11]wPrintStart [12:24:11]Write to MH i2c: 01 00 00 4E 23 71 [12:24:11]Write i2c OK [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: 01 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: 01 07 00 [12:24:11]MH_I2C_Read... [12:24:11]Read from MH i2c: 01 07 00 4E 23 00 00 00 00 00 FF 0F 86 [12:24:11]RasterBufferAndPrint [12:24:11]line Счет N : (1)717821 [12:24:11]line ИНН: 02508201610067 [12:24:11]line Контрольно-Кассовый Чек [12:24:11]line ПРОДАЖА [12:24:11]line ТРК (МРК, ГНК) : 6 [12:24:11]line Товар: 2710194210 [12:24:11]line ДТ(л)-К-5 [12:24:11]line 13.360 * 74.90 [12:24:11]line = 1000.66 [12:24:11]line НДС 12% НСП 1% [12:24:11]line > о реализуемом товаре [12:24:11]line ОКРУГЛЕНИЕ: -0.66 [12:24:11]line ИТОГО: 1000.00 [12:24:11]line Внесено: 1000.00 [12:24:11]line СДАЧА: 0.00 [12:24:11]line НСП 1% : 8.85 [12:24:11]line НДС 12% : 106.26 [12:24:11]line Наличными: 1000.00 [12:24:11]line Безнал.: 0.00 [12:24:11]line Место: АЗС № 64 "Партнер Нефть" [12:24:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:24:11]line СНО: Общий режим [12:24:11]line Чек 67 25.11.2024 12:24 [12:24:11]line Смена: 556 ФФД: 1.0 [12:24:11]line ЗНМ: 0300000033 [12:24:11]line РНМ: 0000000000092681 [12:24:11]line Версия ККМ: 001 [12:24:11]line ФМ: 0000000000874881 [12:24:11]line ФД: 123026 [12:24:11]line ФПД: 122280796743838 [12:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122415&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123026&fm=122280796743838&tin=02508201610067®Number=0000000000092681&sum=100000 [12:24:12]OFD Sender: Processing packet 123026 [packets to send 7, broken 6] [12:24:12]ProducePacketName [12:24:12]name=ofd_packets/00123026 [12:24:12]OFD Sender: To server: pG, [12:24:12]CommunicateWithHost lk.salyk.kg:30040 [12:24:12]ConnectInit lk.salyk.kg [12:24:12]written 0, free lines is 4095 [12:24:12]Connected sock=10 [12:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BF 17 08 01 16 BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 6F 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E0 01 00 35 04 06 00 6F 36 B7 73 E8 9E AC 97 F3 7B E9 ED F9 16 [12:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A3 11 47 00 86 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E0 01 00 F4 03 04 00 34 18 44 67 B6 04 01 00 00 A1 A9 05 BA F1 15 BE 6D [12:24:12]CommunicateWithHost err = 0 [12:24:12]CheckOFDResponse [12:24:12]1017 (14) - 77093643461234 [12:24:12]1041 (16) - 0000000000874881 [12:24:12]1040 (4) - 123026 [12:24:12]1012 (4) - 25.11.2024 06:24 [12:24:12]1206 (1) - 0 [12:24:12]OFD Sender: Remove packet 123026 [12:24:12]ProducePacketName [12:24:12]name=ofd_packets/00123026 [12:24:12]NVStorageDeleteData [12:24:12]Write to MH i2c: 01 00 00 79 23 9C [12:24:12]Write i2c OK [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: 01 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: 01 07 00 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: 01 07 00 79 23 00 00 00 00 00 51 0C 00 [12:24:12]RasterBufferAndPrint [12:24:12]line [12:24:12]line [12:24:12]line [12:24:12]line [12:24:12]line [12:24:12]written 0, free lines is 3158 [12:24:12]MH_Cut [12:24:12]Write to MH i2c: D1 01 00 80 23 01 75 [12:24:12]Write i2c OK [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: D1 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: D1 01 00 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: D1 01 00 80 23 00 74 [12:24:12]Write to MH i2c: 01 00 00 81 23 A4 [12:24:12]Write i2c OK [12:24:12]MH_I2C_Read... [12:24:12]OFD Sender: No OFD packet to send [12:24:13]*** Cut start [12:24:13]*** Partial cut [12:24:13]*** CUTSNS_PIN = 1 [12:24:13]*** CUTSNS_PIN = 0 [12:24:14]*** Brake cut motor [12:24:14]Read from MH i2c: 01 [12:24:14]MH_I2C_Read... [12:24:14]*** Stop cut motor [12:24:14]*** Cut end [12:24:14]Read from MH i2c: 01 07 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 07 00 81 23 00 00 00 00 00 FF 0F B9 [12:24:14]process_action close_receipt done [12:24:14]requested_data is exist [12:24:14]produce_requested_data [12:24:14]requested_item fm.sn is exist - process it [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 11 00 00 [12:24:14]Write to MH i2c: E2 08 00 82 23 80 11 00 00 00 00 00 00 1F [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 17 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 17 00 82 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 76 [12:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:24:14]wFMCommunicate OK [12:24:14]requested_item fd.num is exist - process it [12:24:14]SAM_PROTO_GetFieldsCounters [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 13 00 00 [12:24:14]Write to MH i2c: E2 08 00 83 23 80 13 00 00 00 00 00 00 22 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 62 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 62 00 83 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 92 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [12:24:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 92 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:14]wFMCommunicate OK [12:24:14]SAM_PROTO_GetFieldsCounters done [12:24:14]requested_item shift.num is exist - process it [12:24:14]requested_item shift.opened is exist - process it [12:24:14]req_shift_opened [12:24:14]FM_GetShiftState [12:24:14]SAM_PROTO_GetShiftState [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 13 01 00 [12:24:14]Write to MH i2c: E2 08 00 84 23 80 13 01 00 00 00 00 00 24 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 0E 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 0E 00 84 23 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A3 [12:24:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:24:14]wFMCommunicate OK [12:24:14]SAM_PROTO_GetShiftState done [12:24:14]FM_GetShiftState done [12:24:14]req_shift_opened done [12:24:14]requested_item shift.open_date is exist - process it [12:24:14]req_shift_open_date [12:24:14]req_shift_open_date done [12:24:14]produce_requested_data done [12:24:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123026,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:24:14]process_action_free close_receipt [12:24:14]json_value_free [12:24:14]json_value_free done [12:24:14]process_json_proto returns [12:24:14]Send response to host [12:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123026,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:24:14]free response buf [12:24:14]execute_script done [12:24:14]execute_script returns [12:24:14]free content buf [12:24:14]Sock 9.Close socket [12:24:14]Sock 9.Thread stoped [12:24:17]OFD Sender: No OFD packet to send [12:24:22]accept exits with 7 [12:24:22]New connection [12:24:22]New thread 3066580324 created [12:24:22]Thread 3066723684 joined [12:24:22]Waiting for new connection... [12:24:22] Sock 7.Parse request [12:24:22]Sock 7.Check first char [12:24:22]Sock 7.First char is OK [12:24:22]request: POST /json_proto HTTP/1.0 [12:24:22]Method: POST [12:24:22]URL: /json_proto [12:24:22]Method is POST - this is cgi request [12:24:22]url: /json_proto [12:24:22]query_string will be loaded in cgi processing [12:24:22]execute_cgi json_proto POST (null) [12:24:22]execute_cgi path=json_proto method=POST [12:24:22]POST find Content-Length [12:24:22]Host: 172.17.37.4:8080 [12:24:22]Content-Length: 677 [12:24:22]Content-Type: application/json [12:24:22] [12:24:22]POST finish read [12:24:22]Found Content-Length = 677 [12:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:22]execute_script... [12:24: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)717822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:22]POST & json_proto [12:24:22]process_json_proto [12:24:22]json parsed OK: [12:24:22]protocol is kg_v1.0 [12:24:22]action value=close_receipt [12:24:22]process_action close_receipt [12:24:22]cmd_close_receipt [12:24:22]MH_GetDate [12:24:22]Write to MH i2c: F0 00 00 85 23 97 [12:24:22]Write i2c OK [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: F0 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: F0 09 00 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: F0 09 00 85 23 00 7B 6C 44 67 B8 5A 43 67 EE [12:24:22]GetLastDocTimeStamp 1732537455 [12:24:22]current date 1732537467 [12:24:22]FM_GetShiftState [12:24:22]SAM_PROTO_GetShiftState [12:24:22]wFMCommunicate request_size=4 [12:24:22]MH_SAM_APDU [12:24:22]CAPDU: 80 13 01 00 [12:24:22]Write to MH i2c: E2 08 00 86 23 80 13 01 00 00 00 00 00 26 [12:24:22]Write i2c OK [12:24:22]MH_I2C_Read... [12:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:22]Read from MH i2c: E2 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: E2 0E 00 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: E2 0E 00 86 23 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A5 [12:24:22]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:24:22]wFMCommunicate OK [12:24:22]SAM_PROTO_GetShiftState done [12:24:22]FM_GetShiftState done [12:24:22]opened in 1732493066 [12:24:22]opened+sec_in_day 1732579466 [12:24:22]quantity*price = 50010 [12:24:22]sum+1 = 50012 [12:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 68 25.11.2024 12:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123027 ФПД: 6215268187934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122427&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123027&fm=6215268187934&tin=02508201610067®Number=0000000000092681&sum=50000 [12:24:23]StoreToDocumentArchive [12:24:23]shift 556 fd 123027 [12:24:23]save to /storage/0556/doc_00123027 [12:24:23]save last doc name /storage/0556/doc_00123027 to /storage/kkm_last_doc_name [12:24:23]save OK [12:24:23]Clear old archive folders... [12:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:23]tlvbuf is 02057E80 [12:24:23]SAM_PROTO_ClearQueue [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 09 00 00 [12:24:23]Write to MH i2c: E2 08 00 93 23 80 09 00 00 00 00 00 00 28 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 93 23 00 90 00 2A [12:24:23]RAPDU: 90 00 [12:24:23]wFMCommunicate OK [12:24:23]SAM_PROTO_ClearQueue done [12:24:23]KKMCreateOFDPacket [12:24:23]OFDProtocolAddRootSTLVToBuf [12:24:23]FM_MakeSignedData [12:24:23]FM_MakeSignedData [12:24:23]SAM_PROTO_SignData [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 0D 01 02 [12:24:23]Write to MH i2c: E2 08 00 94 23 80 0D 01 02 00 00 00 00 30 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 94 23 00 90 00 2B [12:24:23]RAPDU: 90 00 [12:24:23]wFMCommunicate OK [12:24:23]wFMCommunicate request_size=255 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 7B 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E0 01 00 35 04 06 00 05 [12:24:23]Write to MH i2c: E2 02 01 95 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 7B 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E0 01 00 35 04 06 00 05 00 00 14 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 03 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 03 00 95 23 00 90 00 2C [12:24:24]RAPDU: 90 00 [12:24:24]wFMCommunicate OK [12:24:24]wFMCommunicate request_size=10 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 0D 02 02 05 A7 1A DA 3F 1E [12:24:24]Write to MH i2c: E2 0D 00 96 23 80 0D 02 02 05 00 A7 1A DA 3F 1E 00 00 35 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 03 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 03 00 96 23 00 90 00 2D [12:24:24]RAPDU: 90 00 [12:24:24]wFMCommunicate OK [12:24:24]wFMCommunicate request_size=4 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 0D 03 02 [12:24:24]Write to MH i2c: E2 08 00 97 23 80 0D 03 02 00 00 00 00 35 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 0B 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 0B 00 97 23 00 07 5A 30 80 EA 49 B7 5D 90 00 8E [12:24:24]RAPDU: 07 5A 30 80 EA 49 B7 5D 90 00 [12:24:24]wFMCommunicate OK [12:24:24]SAM_PROTO_SignData done [12:24:24]FM_MakeSignedData done [12:24:24]CreateOFDProtocolMessage [12:24:24]wFMCommunicate request_size=4 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 11 00 00 [12:24:24]Write to MH i2c: E2 08 00 98 23 80 11 00 00 00 00 00 00 35 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 17 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 17 00 98 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8C [12:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:24:24]wFMCommunicate OK [12:24:24]CreateOFDProtocolMessage done [12:24:24]OFDSenderStorePacket 123027 [12:24:24]StoreOFDPacket docnum=123027 [12:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6B 3D 07 01 41 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 7B 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E0 01 00 35 04 06 00 05 A7 1A DA 3F 1E 07 5A 30 80 EA 49 B7 5D [12:24:24]CheckFolder [12:24:24]dirname=/storage/ofd_packets [12:24:24]CheckFolder done [12:24:24]ProducePacketName [12:24:24]name=ofd_packets/00123027 [12:24:24]NVStorageSaveData ofd_packets/00123027 [12:24:24]File name is /storage/ofd_packets/00123027 [12:24:24]Write 301 bytes [12:24:24]NVStorageSaveData done [12:24:24]OFDSenderStorePacket done [12:24:24]KKMCreateOFDPacket done [12:24:24]NVStorageSaveData kkm_last_timestamp [12:24:24]File name is /storage/kkm_last_timestamp [12:24:24]Write 4 bytes [12:24:24]NVStorageSaveData done [12:24:24]ExternCall_PrintAddStr [12:24:24]wPrintStart [12:24:24]Write to MH i2c: 01 00 00 99 23 BC [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 07 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 07 00 99 23 00 00 00 00 00 FF 0F D1 [12:24:24]RasterBufferAndPrint [12:24:24]line Счет N : (1)717822 [12:24:24]line ИНН: 02508201610067 [12:24:24]line Контрольно-Кассовый Чек [12:24:24]line ПРОДАЖА [12:24:24]line ТРК (МРК, ГНК) : 12 [12:24:24]line Товар: 2710124130 [12:24:24]line Аи-92-К-4 [12:24:24]line 7.420 * 67.40 [12:24:24]line = 500.11 [12:24:24]line НДС 12% НСП 1% [12:24:24]line > о реализуемом товаре [12:24:24]line ОКРУГЛЕНИЕ: -0.11 [12:24:24]line ИТОГО: 500.00 [12:24:24]line Внесено: 500.00 [12:24:24]line СДАЧА: 0.00 [12:24:24]line НСП 1% : 4.43 [12:24:24]line НДС 12% : 53.11 [12:24:24]line Наличными: 500.00 [12:24:24]line Безнал.: 0.00 [12:24:24]line Место: АЗС № 64 "Партнер Нефть" [12:24:24]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:24:24]line СНО: Общий режим [12:24:24]line Чек 68 25.11.2024 12:24 [12:24:24]line Смена: 556 ФФД: 1.0 [12:24:24]line ЗНМ: 0300000033 [12:24:24]line РНМ: 0000000000092681 [12:24:24]line Версия ККМ: 001 [12:24:24]line ФМ: 0000000000874881 [12:24:24]line ФД: 123027 [12:24:24]line ФПД: 6215268187934 [12:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122427&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123027&fm=6215268187934&tin=02508201610067®Number=0000000000092681&sum=50000 [12:24:24]OFD Sender: Processing packet 123027 [packets to send 7, broken 6] [12:24:24]ProducePacketName [12:24:24]name=ofd_packets/00123027 [12:24:24]OFD Sender: To server: pG, [12:24:24]CommunicateWithHost lk.salyk.kg:30040 [12:24:24]ConnectInit lk.salyk.kg [12:24:24]written 0, free lines is 4095 [12:24:24]Connected sock=10 [12:24:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6B 3D 07 01 41 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 7B 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E0 01 00 35 04 06 00 05 A7 1A DA 3F 1E 07 5A 30 80 EA 49 B7 5D [12:24:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 1D 35 47 00 83 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E0 01 00 F4 03 04 00 41 18 44 67 B6 04 01 00 00 D2 1B C3 FA D1 D0 22 A5 [12:24:24]CommunicateWithHost err = 0 [12:24:24]CheckOFDResponse [12:24:24]1017 (14) - 77093643461234 [12:24:24]1041 (16) - 0000000000874881 [12:24:24]1040 (4) - 123027 [12:24:24]1012 (4) - 25.11.2024 06:25 [12:24:24]1206 (1) - 0 [12:24:24]OFD Sender: Remove packet 123027 [12:24:24]ProducePacketName [12:24:24]name=ofd_packets/00123027 [12:24:24]NVStorageDeleteData [12:24:25]Write to MH i2c: 01 00 00 C4 23 E7 [12:24:25]Write i2c OK [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: 01 [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: 01 07 00 [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: 01 07 00 C4 23 00 00 00 00 00 55 0C 4F [12:24:25]RasterBufferAndPrint [12:24:25]line [12:24:25]line [12:24:25]line [12:24:25]line [12:24:25]line [12:24:25]written 0, free lines is 3161 [12:24:25]MH_Cut [12:24:25]Write to MH i2c: D1 01 00 CB 23 01 C0 [12:24:25]Write i2c OK [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: D1 [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: D1 01 00 [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: D1 01 00 CB 23 00 BF [12:24:25]Write to MH i2c: 01 00 00 CC 23 EF [12:24:25]Write i2c OK [12:24:25]MH_I2C_Read... [12:24:25]OFD Sender: No OFD packet to send [12:24:26]*** Cut start [12:24:26]*** Partial cut [12:24:26]*** CUTSNS_PIN = 1 [12:24:26]*** CUTSNS_PIN = 0 [12:24:26]*** Brake cut motor [12:24:27]Read from MH i2c: 01 [12:24:27]MH_I2C_Read... [12:24:27]*** Stop cut motor [12:24:27]*** Cut end [12:24:27]Read from MH i2c: 01 07 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: 01 07 00 CC 23 00 00 00 00 00 FF 0F 04 [12:24:27]process_action close_receipt done [12:24:27]requested_data is exist [12:24:27]produce_requested_data [12:24:27]requested_item fm.sn is exist - process it [12:24:27]wFMCommunicate request_size=4 [12:24:27]MH_SAM_APDU [12:24:27]CAPDU: 80 11 00 00 [12:24:27]Write to MH i2c: E2 08 00 CD 23 80 11 00 00 00 00 00 00 6A [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:27]Read from MH i2c: E2 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 17 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 17 00 CD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C1 [12:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:24:27]wFMCommunicate OK [12:24:27]requested_item fd.num is exist - process it [12:24:27]SAM_PROTO_GetFieldsCounters [12:24:27]wFMCommunicate request_size=4 [12:24:27]MH_SAM_APDU [12:24:27]CAPDU: 80 13 00 00 [12:24:27]Write to MH i2c: E2 08 00 CE 23 80 13 00 00 00 00 00 00 6D [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:27]Read from MH i2c: E2 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 62 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 62 00 CE 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 93 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [12:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 93 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:27]wFMCommunicate OK [12:24:27]SAM_PROTO_GetFieldsCounters done [12:24:27]requested_item shift.num is exist - process it [12:24:27]requested_item shift.opened is exist - process it [12:24:27]req_shift_opened [12:24:27]FM_GetShiftState [12:24:27]SAM_PROTO_GetShiftState [12:24:27]wFMCommunicate request_size=4 [12:24:27]MH_SAM_APDU [12:24:27]CAPDU: 80 13 01 00 [12:24:27]Write to MH i2c: E2 08 00 CF 23 80 13 01 00 00 00 00 00 6F [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:27]Read from MH i2c: E2 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 0E 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 0E 00 CF 23 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 EE [12:24:27]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:24:27]wFMCommunicate OK [12:24:27]SAM_PROTO_GetShiftState done [12:24:27]FM_GetShiftState done [12:24:27]req_shift_opened done [12:24:27]requested_item shift.open_date is exist - process it [12:24:27]req_shift_open_date [12:24:27]req_shift_open_date done [12:24:27]produce_requested_data done [12:24:27]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123027,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:24:27]process_action_free close_receipt [12:24:27]json_value_free [12:24:27]json_value_free done [12:24:27]process_json_proto returns [12:24:27]Send response to host [12:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123027,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:24:27]free response buf [12:24:27]execute_script done [12:24:27]execute_script returns [12:24:27]free content buf [12:24:27]Sock 7.Close socket [12:24:27]Sock 7.Thread stoped [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]accept exits with 9 [12:26:05]New connection [12:26:05]New thread 3066723684 created [12:26:05]Thread 3066580324 joined [12:26:05]Waiting for new connection... [12:26:05] Sock 9.Parse request [12:26:05]Sock 9.Check first char [12:26:05]Sock 9.First char is OK [12:26:05]request: POST /json_proto HTTP/1.0 [12:26:05]Method: POST [12:26:05]URL: /json_proto [12:26:05]Method is POST - this is cgi request [12:26:05]url: /json_proto [12:26:05]query_string will be loaded in cgi processing [12:26:05]execute_cgi json_proto POST (null) [12:26:05]execute_cgi path=json_proto method=POST [12:26:05]POST find Content-Length [12:26:05]Host: 172.17.37.4:8080 [12:26:05]Content-Length: 677 [12:26:05]Content-Type: application/json [12:26:05] [12:26:05]POST finish read [12:26:05]Found Content-Length = 677 [12:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:05]execute_script... [12:26: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)717823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:05]POST & json_proto [12:26:05]process_json_proto [12:26:05]json parsed OK: [12:26:05]protocol is kg_v1.0 [12:26:05]action value=close_receipt [12:26:05]process_action close_receipt [12:26:05]cmd_close_receipt [12:26:05]MH_GetDate [12:26:05]Write to MH i2c: F0 00 00 D0 23 E2 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: F0 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: F0 09 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: F0 09 00 D0 23 00 E2 6C 44 67 B8 5A 43 67 A0 [12:26:05]GetLastDocTimeStamp 1732537467 [12:26:05]current date 1732537570 [12:26:05]FM_GetShiftState [12:26:05]SAM_PROTO_GetShiftState [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 13 01 00 [12:26:05]Write to MH i2c: E2 08 00 D1 23 80 13 01 00 00 00 00 00 71 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]OFD Sender: No OFD packet to send [12:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0E 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0E 00 D1 23 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F0 [12:26:05]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:26:05]wFMCommunicate OK [12:26:05]SAM_PROTO_GetShiftState done [12:26:05]FM_GetShiftState done [12:26:05]opened in 1732493066 [12:26:05]opened+sec_in_day 1732579466 [12:26:05]quantity*price = 25005 [12:26:05]sum+1 = 25006 [12:26:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 69 25.11.2024 12:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123028 ФПД: 223785940381159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122610&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123028&fm=223785940381159&tin=02508201610067®Number=0000000000092681&sum=25000 [12:26:06]StoreToDocumentArchive [12:26:06]shift 556 fd 123028 [12:26:06]save to /storage/0556/doc_00123028 [12:26:06]save last doc name /storage/0556/doc_00123028 to /storage/kkm_last_doc_name [12:26:06]save OK [12:26:06]Clear old archive folders... [12:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:06]tlvbuf is 01F46910 [12:26:06]SAM_PROTO_ClearQueue [12:26:06]wFMCommunicate request_size=4 [12:26:06]MH_SAM_APDU [12:26:06]CAPDU: 80 09 00 00 [12:26:06]Write to MH i2c: E2 08 00 DE 23 80 09 00 00 00 00 00 00 73 [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:06]Read from MH i2c: E2 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: E2 03 00 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: E2 03 00 DE 23 00 90 00 75 [12:26:06]RAPDU: 90 00 [12:26:06]wFMCommunicate OK [12:26:06]SAM_PROTO_ClearQueue done [12:26:06]KKMCreateOFDPacket [12:26:06]OFDProtocolAddRootSTLVToBuf [12:26:06]FM_MakeSignedData [12:26:06]FM_MakeSignedData [12:26:06]SAM_PROTO_SignData [12:26:06]wFMCommunicate request_size=4 [12:26:06]MH_SAM_APDU [12:26:06]CAPDU: 80 0D 01 02 [12:26:06]Write to MH i2c: E2 08 00 DF 23 80 0D 01 02 00 00 00 00 7B [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:06]Read from MH i2c: E2 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: E2 03 00 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: E2 03 00 DF 23 00 90 00 76 [12:26:06]RAPDU: 90 00 [12:26:06]wFMCommunicate OK [12:26:06]wFMCommunicate request_size=255 [12:26:06]MH_SAM_APDU [12:26:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E2 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E0 01 00 35 04 06 00 CB [12:26:06]Write to MH i2c: E2 02 01 E0 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E2 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E0 01 00 35 04 06 00 CB 00 00 95 [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 03 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 03 00 E0 23 00 90 00 77 [12:26:07]RAPDU: 90 00 [12:26:07]wFMCommunicate OK [12:26:07]wFMCommunicate request_size=10 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 0D 02 02 05 88 39 7B 6D E7 [12:26:07]Write to MH i2c: E2 0D 00 E1 23 80 0D 02 02 05 00 88 39 7B 6D E7 00 00 18 [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 03 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 03 00 E1 23 00 90 00 78 [12:26:07]RAPDU: 90 00 [12:26:07]wFMCommunicate OK [12:26:07]wFMCommunicate request_size=4 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 0D 03 02 [12:26:07]Write to MH i2c: E2 08 00 E2 23 80 0D 03 02 00 00 00 00 80 [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 0B 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 0B 00 E2 23 00 07 6B A2 4D B1 06 05 4C 90 00 EA [12:26:07]RAPDU: 07 6B A2 4D B1 06 05 4C 90 00 [12:26:07]wFMCommunicate OK [12:26:07]SAM_PROTO_SignData done [12:26:07]FM_MakeSignedData done [12:26:07]CreateOFDProtocolMessage [12:26:07]wFMCommunicate request_size=4 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 11 00 00 [12:26:07]Write to MH i2c: E2 08 00 E3 23 80 11 00 00 00 00 00 00 80 [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 17 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 17 00 E3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D7 [12:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:26:07]wFMCommunicate OK [12:26:07]CreateOFDProtocolMessage done [12:26:07]OFDSenderStorePacket 123028 [12:26:07]StoreOFDPacket docnum=123028 [12:26:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 73 26 07 01 05 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E2 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E0 01 00 35 04 06 00 CB 88 39 7B 6D E7 07 6B A2 4D B1 06 05 4C [12:26:07]CheckFolder [12:26:07]dirname=/storage/ofd_packets [12:26:07]CheckFolder done [12:26:07]ProducePacketName [12:26:07]name=ofd_packets/00123028 [12:26:07]NVStorageSaveData ofd_packets/00123028 [12:26:07]File name is /storage/ofd_packets/00123028 [12:26:07]Write 301 bytes [12:26:07]NVStorageSaveData done [12:26:07]OFDSenderStorePacket done [12:26:07]KKMCreateOFDPacket done [12:26:07]NVStorageSaveData kkm_last_timestamp [12:26:07]File name is /storage/kkm_last_timestamp [12:26:07]Write 4 bytes [12:26:07]NVStorageSaveData done [12:26:07]ExternCall_PrintAddStr [12:26:07]wPrintStart [12:26:07]Write to MH i2c: 01 00 00 E4 23 07 [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: 01 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: 01 07 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: 01 07 00 E4 23 00 00 00 00 00 FF 0F 1C [12:26:07]RasterBufferAndPrint [12:26:07]line Счет N : (1)717823 [12:26:07]line ИНН: 02508201610067 [12:26:07]line Контрольно-Кассовый Чек [12:26:07]line ПРОДАЖА [12:26:07]line ТРК (МРК, ГНК) : 12 [12:26:07]line Товар: 2710124130 [12:26:07]line Аи-92-К-4 [12:26:07]line 3.710 * 67.40 [12:26:07]line = 250.05 [12:26:07]line НДС 12% НСП 1% [12:26:07]line > о реализуемом товаре [12:26:07]line ОКРУГЛЕНИЕ: -0.05 [12:26:07]line ИТОГО: 250.00 [12:26:07]line Внесено: 250.00 [12:26:07]line СДАЧА: 0.00 [12:26:07]line НСП 1% : 2.21 [12:26:07]line НДС 12% : 26.55 [12:26:07]line Наличными: 250.00 [12:26:07]line Безнал.: 0.00 [12:26:07]line Место: АЗС № 64 "Партнер Нефть" [12:26:07]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:26:07]line СНО: Общий режим [12:26:07]line Чек 69 25.11.2024 12:26 [12:26:07]line Смена: 556 ФФД: 1.0 [12:26:07]line ЗНМ: 0300000033 [12:26:07]line РНМ: 0000000000092681 [12:26:07]line Версия ККМ: 001 [12:26:07]line ФМ: 0000000000874881 [12:26:07]line ФД: 123028 [12:26:07]line ФПД: 223785940381159 [12:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122610&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123028&fm=223785940381159&tin=02508201610067®Number=0000000000092681&sum=25000 [12:26:07]OFD Sender: Processing packet 123028 [packets to send 7, broken 6] [12:26:07]ProducePacketName [12:26:07]name=ofd_packets/00123028 [12:26:07]OFD Sender: To server: pG, [12:26:07]CommunicateWithHost lk.salyk.kg:30040 [12:26:07]ConnectInit lk.salyk.kg [12:26:07]written 0, free lines is 4095 [12:26:07]Connected sock=10 [12:26:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 73 26 07 01 05 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E2 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E0 01 00 35 04 06 00 CB 88 39 7B 6D E7 07 6B A2 4D B1 06 05 4C [12:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D8 47 47 00 09 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E0 01 00 F4 03 04 00 A8 18 44 67 B6 04 01 00 00 3D 69 13 65 44 1F D8 3F [12:26:07]CommunicateWithHost err = 0 [12:26:07]CheckOFDResponse [12:26:07]1017 (14) - 77093643461234 [12:26:07]1041 (16) - 0000000000874881 [12:26:07]1040 (4) - 123028 [12:26:07]1012 (4) - 25.11.2024 06:26 [12:26:07]1206 (1) - 0 [12:26:07]OFD Sender: Remove packet 123028 [12:26:07]ProducePacketName [12:26:07]name=ofd_packets/00123028 [12:26:07]NVStorageDeleteData [12:26:08]Write to MH i2c: 01 00 00 0F 24 33 [12:26:08]Write i2c OK [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: 01 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: 01 07 00 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: 01 07 00 0F 24 00 00 00 00 00 54 0C 9A [12:26:08]RasterBufferAndPrint [12:26:08]line [12:26:08]line [12:26:08]line [12:26:08]line [12:26:08]line [12:26:08]written 0, free lines is 3159 [12:26:08]MH_Cut [12:26:08]Write to MH i2c: D1 01 00 16 24 01 0C [12:26:08]Write i2c OK [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: D1 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: D1 01 00 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: D1 01 00 16 24 00 0B [12:26:08]Write to MH i2c: 01 00 00 17 24 3B [12:26:08]Write i2c OK [12:26:08]MH_I2C_Read... [12:26:08]OFD Sender: No OFD packet to send [12:26:09]*** Cut start [12:26:09]*** Partial cut [12:26:09]*** CUTSNS_PIN = 1 [12:26:09]*** CUTSNS_PIN = 0 [12:26:09]*** Brake cut motor [12:26:10]Read from MH i2c: 01 [12:26:10]MH_I2C_Read... [12:26:10]*** Stop cut motor [12:26:10]*** Cut end [12:26:10]Read from MH i2c: 01 07 00 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: 01 07 00 17 24 00 00 00 00 00 FF 0F 50 [12:26:10]process_action close_receipt done [12:26:10]requested_data is exist [12:26:10]produce_requested_data [12:26:10]requested_item fm.sn is exist - process it [12:26:10]wFMCommunicate request_size=4 [12:26:10]MH_SAM_APDU [12:26:10]CAPDU: 80 11 00 00 [12:26:10]Write to MH i2c: E2 08 00 18 24 80 11 00 00 00 00 00 00 B6 [12:26:10]Write i2c OK [12:26:10]MH_I2C_Read... [12:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:10]Read from MH i2c: E2 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: E2 17 00 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: E2 17 00 18 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0D [12:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:26:10]wFMCommunicate OK [12:26:10]requested_item fd.num is exist - process it [12:26:10]SAM_PROTO_GetFieldsCounters [12:26:10]wFMCommunicate request_size=4 [12:26:10]MH_SAM_APDU [12:26:10]CAPDU: 80 13 00 00 [12:26:10]Write to MH i2c: E2 08 00 19 24 80 13 00 00 00 00 00 00 B9 [12:26:10]Write i2c OK [12:26:10]MH_I2C_Read... [12:26:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:10]Read from MH i2c: E2 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: E2 62 00 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: E2 62 00 19 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 94 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [12:26:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 94 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:10]wFMCommunicate OK [12:26:10]SAM_PROTO_GetFieldsCounters done [12:26:10]requested_item shift.num is exist - process it [12:26:10]requested_item shift.opened is exist - process it [12:26:10]req_shift_opened [12:26:10]FM_GetShiftState [12:26:10]SAM_PROTO_GetShiftState [12:26:10]wFMCommunicate request_size=4 [12:26:10]MH_SAM_APDU [12:26:10]CAPDU: 80 13 01 00 [12:26:10]Write to MH i2c: E2 08 00 1A 24 80 13 01 00 00 00 00 00 BB [12:26:10]Write i2c OK [12:26:10]MH_I2C_Read... [12:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:10]Read from MH i2c: E2 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: E2 0E 00 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: E2 0E 00 1A 24 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3A [12:26:10]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:26:10]wFMCommunicate OK [12:26:10]SAM_PROTO_GetShiftState done [12:26:10]FM_GetShiftState done [12:26:10]req_shift_opened done [12:26:10]requested_item shift.open_date is exist - process it [12:26:10]req_shift_open_date [12:26:10]req_shift_open_date done [12:26:10]produce_requested_data done [12:26:10]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123028,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:26:10]process_action_free close_receipt [12:26:10]json_value_free [12:26:10]json_value_free done [12:26:10]process_json_proto returns [12:26:10]Send response to host [12:26:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123028,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:26:10]free response buf [12:26:10]execute_script done [12:26:10]execute_script returns [12:26:10]free content buf [12:26:10]Sock 9.Close socket [12:26:10]Sock 9.Thread stoped [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:25]accept exits with 7 [12:26:25]New connection [12:26:25]New thread 3066580324 created [12:26:25]Thread 3066723684 joined [12:26:25]Waiting for new connection... [12:26:25] Sock 7.Parse request [12:26:25]Sock 7.Check first char [12:26:25]Sock 7.First char is OK [12:26:25]request: POST /json_proto HTTP/1.0 [12:26:25]Method: POST [12:26:25]URL: /json_proto [12:26:25]Method is POST - this is cgi request [12:26:25]url: /json_proto [12:26:25]query_string will be loaded in cgi processing [12:26:25]execute_cgi json_proto POST (null) [12:26:25]execute_cgi path=json_proto method=POST [12:26:25]POST find Content-Length [12:26:25]Host: 172.17.37.4:8080 [12:26:25]Content-Length: 677 [12:26:25]Content-Type: application/json [12:26:25] [12:26:25]POST finish read [12:26:25]Found Content-Length = 677 [12:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:25]execute_script... [12:26: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)717824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:25]POST & json_proto [12:26:25]process_json_proto [12:26:25]json parsed OK: [12:26:25]protocol is kg_v1.0 [12:26:25]action value=close_receipt [12:26:25]process_action close_receipt [12:26:25]cmd_close_receipt [12:26:25]MH_GetDate [12:26:25]Write to MH i2c: F0 00 00 1B 24 2E [12:26:25]Write i2c OK [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: F0 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: F0 09 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: F0 09 00 1B 24 00 F6 6C 44 67 B8 5A 43 67 00 [12:26:25]GetLastDocTimeStamp 1732537570 [12:26:25]current date 1732537590 [12:26:25]FM_GetShiftState [12:26:25]SAM_PROTO_GetShiftState [12:26:25]wFMCommunicate request_size=4 [12:26:25]MH_SAM_APDU [12:26:25]CAPDU: 80 13 01 00 [12:26:25]Write to MH i2c: E2 08 00 1C 24 80 13 01 00 00 00 00 00 BD [12:26:25]Write i2c OK [12:26:25]MH_I2C_Read... [12:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:25]Read from MH i2c: E2 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 0E 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 0E 00 1C 24 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3C [12:26:25]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:26:25]wFMCommunicate OK [12:26:25]SAM_PROTO_GetShiftState done [12:26:25]FM_GetShiftState done [12:26:25]opened in 1732493066 [12:26:25]opened+sec_in_day 1732579466 [12:26:25]quantity*price = 40035 [12:26:25]sum+1 = 40037 [12:26:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 70 25.11.2024 12:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123029 ФПД: 80115578575563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122630&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123029&fm=80115578575563&tin=02508201610067®Number=0000000000092681&sum=40000 [12:26:26]StoreToDocumentArchive [12:26:26]shift 556 fd 123029 [12:26:26]save to /storage/0556/doc_00123029 [12:26:26]save last doc name /storage/0556/doc_00123029 to /storage/kkm_last_doc_name [12:26:26]save OK [12:26:26]Clear old archive folders... [12:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:26]tlvbuf is 02057C80 [12:26:26]SAM_PROTO_ClearQueue [12:26:26]wFMCommunicate request_size=4 [12:26:26]MH_SAM_APDU [12:26:26]CAPDU: 80 09 00 00 [12:26:26]Write to MH i2c: E2 08 00 29 24 80 09 00 00 00 00 00 00 BF [12:26:26]Write i2c OK [12:26:26]MH_I2C_Read... [12:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:26]Read from MH i2c: E2 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 03 00 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 03 00 29 24 00 90 00 C1 [12:26:26]RAPDU: 90 00 [12:26:26]wFMCommunicate OK [12:26:26]SAM_PROTO_ClearQueue done [12:26:26]KKMCreateOFDPacket [12:26:26]OFDProtocolAddRootSTLVToBuf [12:26:26]FM_MakeSignedData [12:26:26]FM_MakeSignedData [12:26:26]SAM_PROTO_SignData [12:26:26]wFMCommunicate request_size=4 [12:26:26]MH_SAM_APDU [12:26:26]CAPDU: 80 0D 01 02 [12:26:26]Write to MH i2c: E2 08 00 2A 24 80 0D 01 02 00 00 00 00 C7 [12:26:26]Write i2c OK [12:26:26]MH_I2C_Read... [12:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:26]Read from MH i2c: E2 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 03 00 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 03 00 2A 24 00 90 00 C2 [12:26:26]RAPDU: 90 00 [12:26:26]wFMCommunicate OK [12:26:26]wFMCommunicate request_size=255 [12:26:26]MH_SAM_APDU [12:26:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 46 00 00 00 F4 03 04 00 F6 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E0 01 00 35 04 06 00 48 [12:26:26]Write to MH i2c: E2 02 01 2B 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 46 00 00 00 F4 03 04 00 F6 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E0 01 00 35 04 06 00 48 00 00 94 [12:26:26]Write i2c OK [12:26:26]MH_I2C_Read... [12:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:26]Read from MH i2c: E2 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 03 00 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 03 00 2B 24 00 90 00 C3 [12:26:26]RAPDU: 90 00 [12:26:26]wFMCommunicate OK [12:26:26]wFMCommunicate request_size=10 [12:26:26]MH_SAM_APDU [12:26:26]CAPDU: 80 0D 02 02 05 DD 5C 9A 1A CB [12:26:26]Write to MH i2c: E2 0D 00 2C 24 80 0D 02 02 05 00 DD 5C 9A 1A CB 00 00 8C [12:26:26]Write i2c OK [12:26:26]MH_I2C_Read... [12:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:26]Read from MH i2c: E2 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 03 00 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 03 00 2C 24 00 90 00 C4 [12:26:26]RAPDU: 90 00 [12:26:26]wFMCommunicate OK [12:26:26]wFMCommunicate request_size=4 [12:26:26]MH_SAM_APDU [12:26:26]CAPDU: 80 0D 03 02 [12:26:26]Write to MH i2c: E2 08 00 2D 24 80 0D 03 02 00 00 00 00 CC [12:26:26]Write i2c OK [12:26:26]MH_I2C_Read... [12:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:26]Read from MH i2c: E2 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 0B 00 [12:26:26]MH_I2C_Read... [12:26:26]Read from MH i2c: E2 0B 00 2D 24 00 BA 37 93 95 B9 26 76 E0 90 00 1B [12:26:26]RAPDU: BA 37 93 95 B9 26 76 E0 90 00 [12:26:26]wFMCommunicate OK [12:26:26]SAM_PROTO_SignData done [12:26:26]FM_MakeSignedData done [12:26:26]CreateOFDProtocolMessage [12:26:26]wFMCommunicate request_size=4 [12:26:26]MH_SAM_APDU [12:26:26]CAPDU: 80 11 00 00 [12:26:26]Write to MH i2c: E2 08 00 2E 24 80 11 00 00 00 00 00 00 CC [12:26:26]Write i2c OK [12:26:26]MH_I2C_Read... [12:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:27]Read from MH i2c: E2 [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: E2 17 00 [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: E2 17 00 2E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 23 [12:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:26:27]wFMCommunicate OK [12:26:27]CreateOFDProtocolMessage done [12:26:27]OFDSenderStorePacket 123029 [12:26:27]StoreOFDPacket docnum=123029 [12:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5E 51 07 01 18 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 46 00 00 00 F4 03 04 00 F6 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E0 01 00 35 04 06 00 48 DD 5C 9A 1A CB BA 37 93 95 B9 26 76 E0 [12:26:27]CheckFolder [12:26:27]dirname=/storage/ofd_packets [12:26:27]CheckFolder done [12:26:27]ProducePacketName [12:26:27]name=ofd_packets/00123029 [12:26:27]NVStorageSaveData ofd_packets/00123029 [12:26:27]File name is /storage/ofd_packets/00123029 [12:26:27]Write 301 bytes [12:26:27]NVStorageSaveData done [12:26:27]OFDSenderStorePacket done [12:26:27]KKMCreateOFDPacket done [12:26:27]NVStorageSaveData kkm_last_timestamp [12:26:27]File name is /storage/kkm_last_timestamp [12:26:27]Write 4 bytes [12:26:27]NVStorageSaveData done [12:26:27]ExternCall_PrintAddStr [12:26:27]wPrintStart [12:26:27]Write to MH i2c: 01 00 00 2F 24 53 [12:26:27]Write i2c OK [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: 01 [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: 01 07 00 [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: 01 07 00 2F 24 00 00 00 00 00 FF 0F 68 [12:26:27]RasterBufferAndPrint [12:26:27]line Счет N : (1)717824 [12:26:27]line ИНН: 02508201610067 [12:26:27]line Контрольно-Кассовый Чек [12:26:27]line ПРОДАЖА [12:26:27]line ТРК (МРК, ГНК) : 22 [12:26:27]line Товар: 2710124130 [12:26:27]line Аи-92-К-4 [12:26:27]line 5.940 * 67.40 [12:26:27]line = 400.36 [12:26:27]line НДС 12% НСП 1% [12:26:27]line > о реализуемом товаре [12:26:27]line ОКРУГЛЕНИЕ: -0.36 [12:26:27]line ИТОГО: 400.00 [12:26:27]line Внесено: 400.00 [12:26:27]line СДАЧА: 0.00 [12:26:27]line НСП 1% : 3.54 [12:26:27]line НДС 12% : 42.52 [12:26:27]line Наличными: 400.00 [12:26:27]line Безнал.: 0.00 [12:26:27]line Место: АЗС № 64 "Партнер Нефть" [12:26:27]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:26:27]line СНО: Общий режим [12:26:27]line Чек 70 25.11.2024 12:26 [12:26:27]line Смена: 556 ФФД: 1.0 [12:26:27]line ЗНМ: 0300000033 [12:26:27]line РНМ: 0000000000092681 [12:26:27]line Версия ККМ: 001 [12:26:27]line ФМ: 0000000000874881 [12:26:27]line ФД: 123029 [12:26:27]line ФПД: 80115578575563 [12:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122630&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123029&fm=80115578575563&tin=02508201610067®Number=0000000000092681&sum=40000 [12:26:27]OFD Sender: Processing packet 123029 [packets to send 7, broken 6] [12:26:27]ProducePacketName [12:26:27]name=ofd_packets/00123029 [12:26:27]OFD Sender: To server: pG, [12:26:27]CommunicateWithHost lk.salyk.kg:30040 [12:26:27]ConnectInit lk.salyk.kg [12:26:27]written 0, free lines is 4095 [12:26:27]Connected sock=10 [12:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5E 51 07 01 18 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 46 00 00 00 F4 03 04 00 F6 6C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E0 01 00 35 04 06 00 48 DD 5C 9A 1A CB BA 37 93 95 B9 26 76 E0 [12:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 15 8A 47 00 1D 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 34 38 38 31 10 04 04 00 95 E0 01 00 F4 03 04 00 BC 18 44 67 B6 04 01 00 00 DD EC 14 66 B7 C5 24 2B [12:26:27]CommunicateWithHost err = 0 [12:26:27]CheckOFDResponse [12:26:27]1017 (14) - 77093643461234 [12:26:27]1041 (16) - 0000000000874881 [12:26:27]1040 (4) - 123029 [12:26:27]1012 (4) - 25.11.2024 06:27 [12:26:27]1206 (1) - 0 [12:26:27]OFD Sender: Remove packet 123029 [12:26:27]ProducePacketName [12:26:27]name=ofd_packets/00123029 [12:26:27]NVStorageDeleteData [12:26:27]Write to MH i2c: 01 00 00 5A 24 7E [12:26:27]Write i2c OK [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: 01 [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: 01 07 00 [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: 01 07 00 5A 24 00 00 00 00 00 58 0C E9 [12:26:27]RasterBufferAndPrint [12:26:27]line [12:26:27]line [12:26:27]line [12:26:27]line [12:26:27]line [12:26:27]written 0, free lines is 3164 [12:26:27]MH_Cut [12:26:27]Write to MH i2c: D1 01 00 61 24 01 57 [12:26:27]Write i2c OK [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: D1 [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: D1 01 00 [12:26:27]MH_I2C_Read... [12:26:27]Read from MH i2c: D1 01 00 61 24 00 56 [12:26:27]Write to MH i2c: 01 00 00 62 24 86 [12:26:27]Write i2c OK [12:26:27]MH_I2C_Read... [12:26:28]OFD Sender: No OFD packet to send [12:26:29]*** Cut start [12:26:29]*** Partial cut [12:26:29]*** CUTSNS_PIN = 1 [12:26:29]*** CUTSNS_PIN = 0 [12:26:29]*** Brake cut motor [12:26:29]Read from MH i2c: 01 [12:26:29]MH_I2C_Read... [12:26:29]*** Stop cut motor [12:26:29]*** Cut end [12:26:29]Read from MH i2c: 01 07 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: 01 07 00 62 24 00 00 00 00 00 FF 0F 9B [12:26:29]process_action close_receipt done [12:26:29]requested_data is exist [12:26:29]produce_requested_data [12:26:29]requested_item fm.sn is exist - process it [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 11 00 00 [12:26:29]Write to MH i2c: E2 08 00 63 24 80 11 00 00 00 00 00 00 01 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 17 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 17 00 63 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 58 [12:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:26:29]wFMCommunicate OK [12:26:29]requested_item fd.num is exist - process it [12:26:29]SAM_PROTO_GetFieldsCounters [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 13 00 00 [12:26:29]Write to MH i2c: E2 08 00 64 24 80 13 00 00 00 00 00 00 04 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 62 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 62 00 64 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 95 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [12:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 95 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:29]wFMCommunicate OK [12:26:29]SAM_PROTO_GetFieldsCounters done [12:26:29]requested_item shift.num is exist - process it [12:26:29]requested_item shift.opened is exist - process it [12:26:29]req_shift_opened [12:26:29]FM_GetShiftState [12:26:29]SAM_PROTO_GetShiftState [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 13 01 00 [12:26:29]Write to MH i2c: E2 08 00 65 24 80 13 01 00 00 00 00 00 06 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:30]Read from MH i2c: E2 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 0E 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 0E 00 65 24 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 85 [12:26:30]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:26:30]wFMCommunicate OK [12:26:30]SAM_PROTO_GetShiftState done [12:26:30]FM_GetShiftState done [12:26:30]req_shift_opened done [12:26:30]requested_item shift.open_date is exist - process it [12:26:30]req_shift_open_date [12:26:30]req_shift_open_date done [12:26:30]produce_requested_data done [12:26:30]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123029,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:26:30]process_action_free close_receipt [12:26:30]json_value_free [12:26:30]json_value_free done [12:26:30]process_json_proto returns [12:26:30]Send response to host [12:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123029,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:26:30]free response buf [12:26:30]execute_script done [12:26:30]execute_script returns [12:26:30]free content buf [12:26:30]Sock 7.Close socket [12:26:30]Sock 7.Thread stoped [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:45]accept exits with 9 [12:28:45]New connection [12:28:45]New thread 3066723684 created [12:28:45]Thread 3066580324 joined [12:28:45]Waiting for new connection... [12:28:45] Sock 9.Parse request [12:28:45]Sock 9.Check first char [12:28:45]Sock 9.First char is OK [12:28:45]request: POST /json_proto HTTP/1.0 [12:28:45]Method: POST [12:28:45]URL: /json_proto [12:28:45]Method is POST - this is cgi request [12:28:45]url: /json_proto [12:28:45]query_string will be loaded in cgi processing [12:28:45]execute_cgi json_proto POST (null) [12:28:45]execute_cgi path=json_proto method=POST [12:28:45]POST find Content-Length [12:28:45]Host: 172.17.37.4:8080 [12:28:45]Content-Length: 682 [12:28:45]Content-Type: application/json [12:28:45] [12:28:45]POST finish read [12:28:45]Found Content-Length = 682 [12:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:45]execute_script... [12:28:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:45]POST & json_proto [12:28:45]process_json_proto [12:28:45]json parsed OK: [12:28:45]protocol is kg_v1.0 [12:28:45]action value=close_receipt [12:28:45]process_action close_receipt [12:28:45]cmd_close_receipt [12:28:45]MH_GetDate [12:28:45]Write to MH i2c: F0 00 00 66 24 79 [12:28:45]Write i2c OK [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: F0 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: F0 09 00 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: F0 09 00 66 24 00 82 6D 44 67 B8 5A 43 67 D8 [12:28:45]GetLastDocTimeStamp 1732537590 [12:28:45]current date 1732537730 [12:28:45]FM_GetShiftState [12:28:45]SAM_PROTO_GetShiftState [12:28:45]wFMCommunicate request_size=4 [12:28:45]MH_SAM_APDU [12:28:45]CAPDU: 80 13 01 00 [12:28:45]Write to MH i2c: E2 08 00 67 24 80 13 01 00 00 00 00 00 08 [12:28:45]Write i2c OK [12:28:45]MH_I2C_Read... [12:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:45]Read from MH i2c: E2 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 0E 00 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 0E 00 67 24 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 87 [12:28:45]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:28:45]wFMCommunicate OK [12:28:45]SAM_PROTO_GetShiftState done [12:28:45]FM_GetShiftState done [12:28:45]opened in 1732493066 [12:28:45]opened+sec_in_day 1732579466 [12:28:45]quantity*price = 100021 [12:28:45]sum+1 = 100023 [12:28:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 71 25.11.2024 12:28 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123030 ФПД: 271675958703483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122850&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123030&fm=271675958703483&tin=02508201610067®Number=0000000000092681&sum=100000 [12:28:46]StoreToDocumentArchive [12:28:46]shift 556 fd 123030 [12:28:46]save to /storage/0556/doc_00123030 [12:28:46]save last doc name /storage/0556/doc_00123030 to /storage/kkm_last_doc_name [12:28:46]save OK [12:28:46]Clear old archive folders... [12:28:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:46]tlvbuf is 01F424B0 [12:28:46]SAM_PROTO_ClearQueue [12:28:46]wFMCommunicate request_size=4 [12:28:46]MH_SAM_APDU [12:28:46]CAPDU: 80 09 00 00 [12:28:46]Write to MH i2c: E2 08 00 74 24 80 09 00 00 00 00 00 00 0A [12:28:46]Write i2c OK [12:28:46]MH_I2C_Read... [12:28:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:46]Read from MH i2c: E2 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 03 00 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 03 00 74 24 00 90 00 0C [12:28:46]RAPDU: 90 00 [12:28:46]wFMCommunicate OK [12:28:46]SAM_PROTO_ClearQueue done [12:28:46]KKMCreateOFDPacket [12:28:46]OFDProtocolAddRootSTLVToBuf [12:28:46]FM_MakeSignedData [12:28:46]FM_MakeSignedData [12:28:46]SAM_PROTO_SignData [12:28:46]wFMCommunicate request_size=4 [12:28:46]MH_SAM_APDU [12:28:46]CAPDU: 80 0D 01 02 [12:28:46]Write to MH i2c: E2 08 00 75 24 80 0D 01 02 00 00 00 00 12 [12:28:46]Write i2c OK [12:28:46]MH_I2C_Read... [12:28:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:46]Read from MH i2c: E2 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 03 00 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 03 00 75 24 00 90 00 0D [12:28:46]RAPDU: 90 00 [12:28:46]wFMCommunicate OK [12:28:46]wFMCommunicate request_size=255 [12:28:46]MH_SAM_APDU [12:28: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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 82 6D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 96 E0 01 00 35 04 06 00 F7 [12:28:46]Write to MH i2c: E2 02 01 76 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 82 6D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 96 E0 01 00 35 04 06 00 F7 00 00 E6 [12:28:46]Write i2c OK [12:28:46]MH_I2C_Read... [12:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:47]Read from MH i2c: E2 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 03 00 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 03 00 76 24 00 90 00 0E [12:28:47]RAPDU: 90 00 [12:28:47]wFMCommunicate OK [12:28:47]wFMCommunicate request_size=10 [12:28:47]MH_SAM_APDU [12:28:47]CAPDU: 80 0D 02 02 05 16 7D 03 35 7B [12:28:47]Write to MH i2c: E2 0D 00 77 24 80 0D 02 02 05 00 16 7D 03 35 7B 00 00 65 [12:28:47]Write i2c OK [12:28:47]MH_I2C_Read... [12:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:47]Read from MH i2c: E2 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 03 00 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 03 00 77 24 00 90 00 0F [12:28:47]RAPDU: 90 00 [12:28:47]wFMCommunicate OK [12:28:47]wFMCommunicate request_size=4 [12:28:47]MH_SAM_APDU [12:28:47]CAPDU: 80 0D 03 02 [12:28:47]Write to MH i2c: E2 08 00 78 24 80 0D 03 02 00 00 00 00 17 [12:28:47]Write i2c OK [12:28:47]MH_I2C_Read... [12:28:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:47]Read from MH i2c: E2 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 0B 00 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 0B 00 78 24 00 C4 75 BC CB B6 7B 3A 3D 90 00 80 [12:28:47]RAPDU: C4 75 BC CB B6 7B 3A 3D 90 00 [12:28:47]wFMCommunicate OK [12:28:47]SAM_PROTO_SignData done [12:28:47]FM_MakeSignedData done [12:28:47]CreateOFDProtocolMessage [12:28:47]wFMCommunicate request_size=4 [12:28:47]MH_SAM_APDU [12:28:47]CAPDU: 80 11 00 00 [12:28:47]Write to MH i2c: E2 08 00 79 24 80 11 00 00 00 00 00 00 17 [12:28:47]Write i2c OK [12:28:47]MH_I2C_Read... [12:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:47]Read from MH i2c: E2 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 17 00 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 17 00 79 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6E [12:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:28:47]wFMCommunicate OK [12:28:47]CreateOFDProtocolMessage done [12:28:47]OFDSenderStorePacket 123030 [12:28:47]StoreOFDPacket docnum=123030 [12:28:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FD 86 07 01 4F 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 82 6D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 96 E0 01 00 35 04 06 00 F7 16 7D 03 35 7B C4 75 BC CB B6 7B 3A 3D [12:28:47]CheckFolder [12:28:47]dirname=/storage/ofd_packets [12:28:47]CheckFolder done [12:28:47]ProducePacketName [12:28:47]name=ofd_packets/00123030 [12:28:47]NVStorageSaveData ofd_packets/00123030 [12:28:47]File name is /storage/ofd_packets/00123030 [12:28:47]Write 301 bytes [12:28:47]NVStorageSaveData done [12:28:47]OFDSenderStorePacket done [12:28:47]KKMCreateOFDPacket done [12:28:47]NVStorageSaveData kkm_last_timestamp [12:28:47]File name is /storage/kkm_last_timestamp [12:28:47]Write 4 bytes [12:28:47]NVStorageSaveData done [12:28:47]ExternCall_PrintAddStr [12:28:47]wPrintStart [12:28:47]Write to MH i2c: 01 00 00 7A 24 9E [12:28:47]Write i2c OK [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: 01 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: 01 07 00 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: 01 07 00 7A 24 00 00 00 00 00 FF 0F B3 [12:28:47]RasterBufferAndPrint [12:28:47]line Счет N : (1)717825 [12:28:47]line ИНН: 02508201610067 [12:28:47]line Контрольно-Кассовый Чек [12:28:47]line ПРОДАЖА [12:28:47]line ТРК (МРК, ГНК) : 12 [12:28:47]line Товар: 2710124130 [12:28:47]line Аи-92-К-4 [12:28:47]line 14.840 * 67.40 [12:28:47]line = 1000.22 [12:28:47]line НДС 12% НСП 1% [12:28:47]line > о реализуемом товаре [12:28:47]line ОКРУГЛЕНИЕ: -0.22 [12:28:47]line ИТОГО: 1000.00 [12:28:47]line Внесено: 1000.00 [12:28:47]line СДАЧА: 0.00 [12:28:47]line НСП 1% : 8.85 [12:28:47]line НДС 12% : 106.22 [12:28:47]line Наличными: 1000.00 [12:28:47]line Безнал.: 0.00 [12:28:47]line Место: АЗС № 64 "Партнер Нефть" [12:28:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:28:47]line СНО: Общий режим [12:28:47]line Чек 71 25.11.2024 12:28 [12:28:47]line Смена: 556 ФФД: 1.0 [12:28:47]line ЗНМ: 0300000033 [12:28:47]line РНМ: 0000000000092681 [12:28:47]line Версия ККМ: 001 [12:28:47]line ФМ: 0000000000874881 [12:28:47]line ФД: 123030 [12:28:47]line ФПД: 271675958703483 [12:28:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T122850&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123030&fm=271675958703483&tin=02508201610067®Number=0000000000092681&sum=100000 [12:28:47]OFD Sender: Processing packet 123030 [packets to send 7, broken 6] [12:28:47]ProducePacketName [12:28:47]name=ofd_packets/00123030 [12:28:47]OFD Sender: To server: pG, [12:28:47]CommunicateWithHost lk.salyk.kg:30040 [12:28:47]ConnectInit lk.salyk.kg [12:28:47]written 0, free lines is 4095 [12:28:47]Connected sock=10 [12:28:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FD 86 07 01 4F 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 82 6D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 96 E0 01 00 35 04 06 00 F7 16 7D 03 35 7B C4 75 BC CB B6 7B 3A 3D [12:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 05 CF 47 00 20 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 34 38 38 31 10 04 04 00 96 E0 01 00 F4 03 04 00 48 19 44 67 B6 04 01 00 00 2C F2 C6 38 2E D5 B5 F6 [12:28:47]CommunicateWithHost err = 0 [12:28:47]CheckOFDResponse [12:28:47]1017 (14) - 77093643461234 [12:28:47]1041 (16) - 0000000000874881 [12:28:47]1040 (4) - 123030 [12:28:47]1012 (4) - 25.11.2024 06:29 [12:28:47]1206 (1) - 0 [12:28:47]OFD Sender: Remove packet 123030 [12:28:47]ProducePacketName [12:28:47]name=ofd_packets/00123030 [12:28:47]NVStorageDeleteData [12:28:48]Write to MH i2c: 01 00 00 A5 24 C9 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: 01 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: 01 07 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: 01 07 00 A5 24 00 00 00 00 00 4D 0C 29 [12:28:48]RasterBufferAndPrint [12:28:48]line [12:28:48]line [12:28:48]line [12:28:48]line [12:28:48]line [12:28:48]written 0, free lines is 3152 [12:28:48]MH_Cut [12:28:48]Write to MH i2c: D1 01 00 AC 24 01 A2 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: D1 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: D1 01 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: D1 01 00 AC 24 00 A1 [12:28:48]Write to MH i2c: 01 00 00 AD 24 D1 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]OFD Sender: No OFD packet to send [12:28:49]*** Cut start [12:28:49]*** Partial cut [12:28:49]*** CUTSNS_PIN = 1 [12:28:49]*** CUTSNS_PIN = 0 [12:28:49]*** Brake cut motor [12:28:50]Read from MH i2c: 01 [12:28:50]MH_I2C_Read... [12:28:50]*** Stop cut motor [12:28:50]*** Cut end [12:28:50]Read from MH i2c: 01 07 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 07 00 AD 24 00 00 00 00 00 FF 0F E6 [12:28:50]process_action close_receipt done [12:28:50]requested_data is exist [12:28:50]produce_requested_data [12:28:50]requested_item fm.sn is exist - process it [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 11 00 00 [12:28:50]Write to MH i2c: E2 08 00 AE 24 80 11 00 00 00 00 00 00 4C [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 17 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 17 00 AE 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A3 [12:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:28:50]wFMCommunicate OK [12:28:50]requested_item fd.num is exist - process it [12:28:50]SAM_PROTO_GetFieldsCounters [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 13 00 00 [12:28:50]Write to MH i2c: E2 08 00 AF 24 80 13 00 00 00 00 00 00 4F [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 62 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 62 00 AF 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 96 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [12:28:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 96 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:50]wFMCommunicate OK [12:28:50]SAM_PROTO_GetFieldsCounters done [12:28:50]requested_item shift.num is exist - process it [12:28:50]requested_item shift.opened is exist - process it [12:28:50]req_shift_opened [12:28:50]FM_GetShiftState [12:28:50]SAM_PROTO_GetShiftState [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 13 01 00 [12:28:50]Write to MH i2c: E2 08 00 B0 24 80 13 01 00 00 00 00 00 51 [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 0E 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 0E 00 B0 24 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D0 [12:28:50]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:28:50]wFMCommunicate OK [12:28:50]SAM_PROTO_GetShiftState done [12:28:50]FM_GetShiftState done [12:28:50]req_shift_opened done [12:28:50]requested_item shift.open_date is exist - process it [12:28:50]req_shift_open_date [12:28:50]req_shift_open_date done [12:28:50]produce_requested_data done [12:28:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123030,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:28:50]process_action_free close_receipt [12:28:50]json_value_free [12:28:50]json_value_free done [12:28:50]process_json_proto returns [12:28:50]Send response to host [12:28:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123030,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:28:50]free response buf [12:28:50]execute_script done [12:28:50]execute_script returns [12:28:50]free content buf [12:28:50]Sock 9.Close socket [12:28:50]Sock 9.Thread stoped [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]accept exits with 7 [12:34:38]New connection [12:34:38]New thread 3066580324 created [12:34:38]Thread 3066723684 joined [12:34:38]Waiting for new connection... [12:34:38] Sock 7.Parse request [12:34:38]Sock 7.Check first char [12:34:38]Sock 7.First char is OK [12:34:38]request: POST /json_proto HTTP/1.0 [12:34:38]Method: POST [12:34:38]URL: /json_proto [12:34:38]Method is POST - this is cgi request [12:34:38]url: /json_proto [12:34:38]query_string will be loaded in cgi processing [12:34:38]execute_cgi json_proto POST (null) [12:34:38]execute_cgi path=json_proto method=POST [12:34:38]POST find Content-Length [12:34:38]Host: 172.17.37.4:8080 [12:34:38]Content-Length: 682 [12:34:38]Content-Type: application/json [12:34:38] [12:34:38]POST finish read [12:34:38]Found Content-Length = 682 [12:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:38]execute_script... [12:34: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)717826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:38]POST & json_proto [12:34:38]process_json_proto [12:34:38]json parsed OK: [12:34:38]protocol is kg_v1.0 [12:34:38]action value=close_receipt [12:34:38]process_action close_receipt [12:34:38]cmd_close_receipt [12:34:38]MH_GetDate [12:34:38]Write to MH i2c: F0 00 00 B1 24 C4 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: F0 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: F0 09 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: F0 09 00 B1 24 00 E3 6E 44 67 B8 5A 43 67 85 [12:34:38]GetLastDocTimeStamp 1732537730 [12:34:38]current date 1732538083 [12:34:38]FM_GetShiftState [12:34:38]SAM_PROTO_GetShiftState [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 13 01 00 [12:34:38]Write to MH i2c: E2 08 00 B2 24 80 13 01 00 00 00 00 00 53 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0E 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0E 00 B2 24 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D2 [12:34:38]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_GetShiftState done [12:34:38]FM_GetShiftState done [12:34:38]opened in 1732493066 [12:34:38]opened+sec_in_day 1732579466 [12:34:38]quantity*price = 100021 [12:34:38]sum+1 = 100023 [12:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 72 25.11.2024 12:34 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123031 ФПД: 276226229802950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T123443&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123031&fm=276226229802950&tin=02508201610067®Number=0000000000092681&sum=100000 [12:34:39]StoreToDocumentArchive [12:34:39]shift 556 fd 123031 [12:34:39]save to /storage/0556/doc_00123031 [12:34:39]save last doc name /storage/0556/doc_00123031 to /storage/kkm_last_doc_name [12:34:39]save OK [12:34:39]Clear old archive folders... [12:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:39]tlvbuf is 01F5E6F0 [12:34:39]SAM_PROTO_ClearQueue [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 09 00 00 [12:34:39]Write to MH i2c: E2 08 00 BF 24 80 09 00 00 00 00 00 00 55 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 BF 24 00 90 00 57 [12:34:39]RAPDU: 90 00 [12:34:39]wFMCommunicate OK [12:34:39]SAM_PROTO_ClearQueue done [12:34:39]KKMCreateOFDPacket [12:34:39]OFDProtocolAddRootSTLVToBuf [12:34:39]FM_MakeSignedData [12:34:39]FM_MakeSignedData [12:34:39]SAM_PROTO_SignData [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 0D 01 02 [12:34:39]Write to MH i2c: E2 08 00 C0 24 80 0D 01 02 00 00 00 00 5D [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 C0 24 00 90 00 58 [12:34:39]RAPDU: 90 00 [12:34:39]wFMCommunicate OK [12:34:39]wFMCommunicate request_size=255 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E3 6E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E0 01 00 35 04 06 00 FB [12:34:39]Write to MH i2c: E2 02 01 C1 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E3 6E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E0 01 00 35 04 06 00 FB 00 00 99 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:40]Read from MH i2c: E2 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 03 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 03 00 C1 24 00 90 00 59 [12:34:40]RAPDU: 90 00 [12:34:40]wFMCommunicate OK [12:34:40]wFMCommunicate request_size=10 [12:34:40]MH_SAM_APDU [12:34:40]CAPDU: 80 0D 02 02 05 39 EE 4E 17 C6 [12:34:40]Write to MH i2c: E2 0D 00 C2 24 80 0D 02 02 05 00 39 EE 4E 17 C6 00 00 BC [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:40]Read from MH i2c: E2 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 03 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 03 00 C2 24 00 90 00 5A [12:34:40]RAPDU: 90 00 [12:34:40]wFMCommunicate OK [12:34:40]wFMCommunicate request_size=4 [12:34:40]MH_SAM_APDU [12:34:40]CAPDU: 80 0D 03 02 [12:34:40]Write to MH i2c: E2 08 00 C3 24 80 0D 03 02 00 00 00 00 62 [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:40]Read from MH i2c: E2 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 0B 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 0B 00 C3 24 00 CF D4 ED 0D 53 5C 98 21 90 00 68 [12:34:40]RAPDU: CF D4 ED 0D 53 5C 98 21 90 00 [12:34:40]wFMCommunicate OK [12:34:40]SAM_PROTO_SignData done [12:34:40]FM_MakeSignedData done [12:34:40]CreateOFDProtocolMessage [12:34:40]wFMCommunicate request_size=4 [12:34:40]MH_SAM_APDU [12:34:40]CAPDU: 80 11 00 00 [12:34:40]Write to MH i2c: E2 08 00 C4 24 80 11 00 00 00 00 00 00 62 [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:40]Read from MH i2c: E2 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 17 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 17 00 C4 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B9 [12:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:34:40]wFMCommunicate OK [12:34:40]CreateOFDProtocolMessage done [12:34:40]OFDSenderStorePacket 123031 [12:34:40]StoreOFDPacket docnum=123031 [12:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 68 2F 07 01 FD EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E3 6E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E0 01 00 35 04 06 00 FB 39 EE 4E 17 C6 CF D4 ED 0D 53 5C 98 21 [12:34:40]CheckFolder [12:34:40]dirname=/storage/ofd_packets [12:34:40]CheckFolder done [12:34:40]ProducePacketName [12:34:40]name=ofd_packets/00123031 [12:34:40]NVStorageSaveData ofd_packets/00123031 [12:34:40]File name is /storage/ofd_packets/00123031 [12:34:40]Write 301 bytes [12:34:40]NVStorageSaveData done [12:34:40]OFDSenderStorePacket done [12:34:40]KKMCreateOFDPacket done [12:34:40]NVStorageSaveData kkm_last_timestamp [12:34:40]File name is /storage/kkm_last_timestamp [12:34:40]Write 4 bytes [12:34:40]NVStorageSaveData done [12:34:40]ExternCall_PrintAddStr [12:34:40]wPrintStart [12:34:40]Write to MH i2c: 01 00 00 C5 24 E9 [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: 01 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: 01 07 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: 01 07 00 C5 24 00 00 00 00 00 FF 0F FE [12:34:40]RasterBufferAndPrint [12:34:40]line Счет N : (1)717826 [12:34:40]line ИНН: 02508201610067 [12:34:40]line Контрольно-Кассовый Чек [12:34:40]line ПРОДАЖА [12:34:40]line ТРК (МРК, ГНК) : 42 [12:34:40]line Товар: 2710124130 [12:34:40]line Аи-92-К-4 [12:34:40]line 14.840 * 67.40 [12:34:40]line = 1000.22 [12:34:40]line НДС 12% НСП 1% [12:34:40]line > о реализуемом товаре [12:34:40]line ОКРУГЛЕНИЕ: -0.22 [12:34:40]line ИТОГО: 1000.00 [12:34:40]line Внесено: 1000.00 [12:34:40]line СДАЧА: 0.00 [12:34:40]line НСП 1% : 8.85 [12:34:40]line НДС 12% : 106.22 [12:34:40]line Наличными: 1000.00 [12:34:40]line Безнал.: 0.00 [12:34:40]line Место: АЗС № 64 "Партнер Нефть" [12:34:40]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:34:40]line СНО: Общий режим [12:34:40]line Чек 72 25.11.2024 12:34 [12:34:40]line Смена: 556 ФФД: 1.0 [12:34:40]line ЗНМ: 0300000033 [12:34:40]line РНМ: 0000000000092681 [12:34:40]line Версия ККМ: 001 [12:34:40]line ФМ: 0000000000874881 [12:34:40]line ФД: 123031 [12:34:40]line ФПД: 276226229802950 [12:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T123443&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123031&fm=276226229802950&tin=02508201610067®Number=0000000000092681&sum=100000 [12:34:40]OFD Sender: Processing packet 123031 [packets to send 7, broken 6] [12:34:40]ProducePacketName [12:34:40]name=ofd_packets/00123031 [12:34:40]OFD Sender: To server: pG, [12:34:40]CommunicateWithHost lk.salyk.kg:30040 [12:34:40]ConnectInit lk.salyk.kg [12:34:40]written 0, free lines is 4095 [12:34:40]Connected sock=10 [12:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 68 2F 07 01 FD EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E3 6E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E0 01 00 35 04 06 00 FB 39 EE 4E 17 C6 CF D4 ED 0D 53 5C 98 21 [12:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 63 BB 47 00 66 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E0 01 00 F4 03 04 00 A9 1A 44 67 B6 04 01 00 00 A6 CD 04 FD FB D3 92 7C [12:34:40]CommunicateWithHost err = 0 [12:34:40]CheckOFDResponse [12:34:40]1017 (14) - 77093643461234 [12:34:40]1041 (16) - 0000000000874881 [12:34:40]1040 (4) - 123031 [12:34:40]1012 (4) - 25.11.2024 06:35 [12:34:40]1206 (1) - 0 [12:34:40]OFD Sender: Remove packet 123031 [12:34:40]ProducePacketName [12:34:40]name=ofd_packets/00123031 [12:34:40]NVStorageDeleteData [12:34:41]Write to MH i2c: 01 00 00 F0 24 14 [12:34:41]Write i2c OK [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: 01 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: 01 07 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: 01 07 00 F0 24 00 00 00 00 00 48 0C 6F [12:34:41]RasterBufferAndPrint [12:34:41]line [12:34:41]line [12:34:41]line [12:34:41]line [12:34:41]line [12:34:41]written 0, free lines is 3149 [12:34:41]MH_Cut [12:34:41]Write to MH i2c: D1 01 00 F7 24 01 ED [12:34:41]Write i2c OK [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: D1 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: D1 01 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: D1 01 00 F7 24 00 EC [12:34:41]Write to MH i2c: 01 00 00 F8 24 1C [12:34:41]Write i2c OK [12:34:41]MH_I2C_Read... [12:34:41]OFD Sender: No OFD packet to send [12:34:42]*** Cut start [12:34:42]*** Partial cut [12:34:42]*** CUTSNS_PIN = 1 [12:34:42]*** CUTSNS_PIN = 0 [12:34:42]*** Brake cut motor [12:34:43]Read from MH i2c: 01 [12:34:43]MH_I2C_Read... [12:34:43]*** Stop cut motor [12:34:43]*** Cut end [12:34:43]Read from MH i2c: 01 07 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 07 00 F8 24 00 00 00 00 00 FF 0F 31 [12:34:43]process_action close_receipt done [12:34:43]requested_data is exist [12:34:43]produce_requested_data [12:34:43]requested_item fm.sn is exist - process it [12:34:43]wFMCommunicate request_size=4 [12:34:43]MH_SAM_APDU [12:34:43]CAPDU: 80 11 00 00 [12:34:43]Write to MH i2c: E2 08 00 F9 24 80 11 00 00 00 00 00 00 97 [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:43]Read from MH i2c: E2 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 17 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 17 00 F9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EE [12:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:34:43]wFMCommunicate OK [12:34:43]requested_item fd.num is exist - process it [12:34:43]SAM_PROTO_GetFieldsCounters [12:34:43]wFMCommunicate request_size=4 [12:34:43]MH_SAM_APDU [12:34:43]CAPDU: 80 13 00 00 [12:34:43]Write to MH i2c: E2 08 00 FA 24 80 13 00 00 00 00 00 00 9A [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:43]Read from MH i2c: E2 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 62 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 62 00 FA 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 97 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [12:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 97 E0 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:43]wFMCommunicate OK [12:34:43]SAM_PROTO_GetFieldsCounters done [12:34:43]requested_item shift.num is exist - process it [12:34:43]requested_item shift.opened is exist - process it [12:34:43]req_shift_opened [12:34:43]FM_GetShiftState [12:34:43]SAM_PROTO_GetShiftState [12:34:43]wFMCommunicate request_size=4 [12:34:43]MH_SAM_APDU [12:34:43]CAPDU: 80 13 01 00 [12:34:43]Write to MH i2c: E2 08 00 FB 24 80 13 01 00 00 00 00 00 9C [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:43]Read from MH i2c: E2 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 0E 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 0E 00 FB 24 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1B [12:34:43]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:34:43]wFMCommunicate OK [12:34:43]SAM_PROTO_GetShiftState done [12:34:43]FM_GetShiftState done [12:34:43]req_shift_opened done [12:34:43]requested_item shift.open_date is exist - process it [12:34:43]req_shift_open_date [12:34:43]req_shift_open_date done [12:34:43]produce_requested_data done [12:34:43]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123031,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:34:43]process_action_free close_receipt [12:34:43]json_value_free [12:34:43]json_value_free done [12:34:43]process_json_proto returns [12:34:43]Send response to host [12:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123031,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:34:43]free response buf [12:34:43]execute_script done [12:34:43]execute_script returns [12:34:43]free content buf [12:34:43]Sock 7.Close socket [12:34:43]Sock 7.Thread stoped [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:02]accept exits with 9 [12:35:02]New connection [12:35:02]New thread 3066723684 created [12:35:02]Thread 3066580324 joined [12:35:02]Waiting for new connection... [12:35:02] Sock 9.Parse request [12:35:02]Sock 9.Check first char [12:35:02]Sock 9.First char is OK [12:35:02]request: POST /json_proto HTTP/1.0 [12:35:02]Method: POST [12:35:02]URL: /json_proto [12:35:02]Method is POST - this is cgi request [12:35:02]url: /json_proto [12:35:02]query_string will be loaded in cgi processing [12:35:02]execute_cgi json_proto POST (null) [12:35:02]execute_cgi path=json_proto method=POST [12:35:02]POST find Content-Length [12:35:02]Host: 172.17.37.4:8080 [12:35:02]Content-Length: 677 [12:35:02]Content-Type: application/json [12:35:02] [12:35:02]POST finish read [12:35:02]Found Content-Length = 677 [12:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:02]execute_script... [12:35:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:02]POST & json_proto [12:35:02]process_json_proto [12:35:02]json parsed OK: [12:35:02]protocol is kg_v1.0 [12:35:02]action value=close_receipt [12:35:02]process_action close_receipt [12:35:02]cmd_close_receipt [12:35:02]MH_GetDate [12:35:02]Write to MH i2c: F0 00 00 FC 24 0F [12:35:02]Write i2c OK [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: F0 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: F0 09 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: F0 09 00 FC 24 00 FB 6E 44 67 B8 5A 43 67 E8 [12:35:02]GetLastDocTimeStamp 1732538083 [12:35:02]current date 1732538107 [12:35:02]FM_GetShiftState [12:35:02]SAM_PROTO_GetShiftState [12:35:02]wFMCommunicate request_size=4 [12:35:02]MH_SAM_APDU [12:35:02]CAPDU: 80 13 01 00 [12:35:02]Write to MH i2c: E2 08 00 FD 24 80 13 01 00 00 00 00 00 9E [12:35:02]Write i2c OK [12:35:02]MH_I2C_Read... [12:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:02]Read from MH i2c: E2 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 0E 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 0E 00 FD 24 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1D [12:35:02]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:35:02]wFMCommunicate OK [12:35:02]SAM_PROTO_GetShiftState done [12:35:02]FM_GetShiftState done [12:35:02]opened in 1732493066 [12:35:02]opened+sec_in_day 1732579466 [12:35:02]quantity*price = 50010 [12:35:02]sum+1 = 50012 [12:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 73 25.11.2024 12:35 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123032 ФПД: 153838239194875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T123507&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123032&fm=153838239194875&tin=02508201610067®Number=0000000000092681&sum=50000 [12:35:03]StoreToDocumentArchive [12:35:03]shift 556 fd 123032 [12:35:03]save to /storage/0556/doc_00123032 [12:35:03]save last doc name /storage/0556/doc_00123032 to /storage/kkm_last_doc_name [12:35:03]save OK [12:35:03]Clear old archive folders... [12:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:03]tlvbuf is 01F25FD0 [12:35:03]SAM_PROTO_ClearQueue [12:35:03]wFMCommunicate request_size=4 [12:35:03]MH_SAM_APDU [12:35:03]CAPDU: 80 09 00 00 [12:35:03]Write to MH i2c: E2 08 00 0A 25 80 09 00 00 00 00 00 00 A1 [12:35:03]Write i2c OK [12:35:03]MH_I2C_Read... [12:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:03]Read from MH i2c: E2 [12:35:03]MH_I2C_Read... [12:35:03]Read from MH i2c: E2 03 00 [12:35:03]MH_I2C_Read... [12:35:03]Read from MH i2c: E2 03 00 0A 25 00 90 00 A3 [12:35:03]RAPDU: 90 00 [12:35:03]wFMCommunicate OK [12:35:03]SAM_PROTO_ClearQueue done [12:35:03]KKMCreateOFDPacket [12:35:03]OFDProtocolAddRootSTLVToBuf [12:35:03]FM_MakeSignedData [12:35:03]FM_MakeSignedData [12:35:03]SAM_PROTO_SignData [12:35:03]wFMCommunicate request_size=4 [12:35:03]MH_SAM_APDU [12:35:03]CAPDU: 80 0D 01 02 [12:35:03]Write to MH i2c: E2 08 00 0B 25 80 0D 01 02 00 00 00 00 A9 [12:35:03]Write i2c OK [12:35:03]MH_I2C_Read... [12:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:03]Read from MH i2c: E2 [12:35:03]MH_I2C_Read... [12:35:03]Read from MH i2c: E2 03 00 [12:35:03]MH_I2C_Read... [12:35:03]Read from MH i2c: E2 03 00 0B 25 00 90 00 A4 [12:35:03]RAPDU: 90 00 [12:35:03]wFMCommunicate OK [12:35:03]wFMCommunicate request_size=255 [12:35:03]MH_SAM_APDU [12:35:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FB 6E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E0 01 00 35 04 06 00 8B [12:35:03]Write to MH i2c: E2 02 01 0C 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FB 6E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E0 01 00 35 04 06 00 8B 00 00 9F [12:35:03]Write i2c OK [12:35:03]MH_I2C_Read... [12:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:04]Read from MH i2c: E2 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: E2 03 00 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: E2 03 00 0C 25 00 90 00 A5 [12:35:04]RAPDU: 90 00 [12:35:04]wFMCommunicate OK [12:35:04]wFMCommunicate request_size=10 [12:35:04]MH_SAM_APDU [12:35:04]CAPDU: 80 0D 02 02 05 EA 41 99 9E FB [12:35:04]Write to MH i2c: E2 0D 00 0D 25 80 0D 02 02 05 00 EA 41 99 9E FB 00 00 13 [12:35:04]Write i2c OK [12:35:04]MH_I2C_Read... [12:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:04]Read from MH i2c: E2 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: E2 03 00 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: E2 03 00 0D 25 00 90 00 A6 [12:35:04]RAPDU: 90 00 [12:35:04]wFMCommunicate OK [12:35:04]wFMCommunicate request_size=4 [12:35:04]MH_SAM_APDU [12:35:04]CAPDU: 80 0D 03 02 [12:35:04]Write to MH i2c: E2 08 00 0E 25 80 0D 03 02 00 00 00 00 AE [12:35:04]Write i2c OK [12:35:04]MH_I2C_Read... [12:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:04]Read from MH i2c: E2 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: E2 0B 00 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: E2 0B 00 0E 25 00 AC 17 1B E9 10 61 87 38 90 00 A6 [12:35:04]RAPDU: AC 17 1B E9 10 61 87 38 90 00 [12:35:04]wFMCommunicate OK [12:35:04]SAM_PROTO_SignData done [12:35:04]FM_MakeSignedData done [12:35:04]CreateOFDProtocolMessage [12:35:04]wFMCommunicate request_size=4 [12:35:04]MH_SAM_APDU [12:35:04]CAPDU: 80 11 00 00 [12:35:04]Write to MH i2c: E2 08 00 0F 25 80 11 00 00 00 00 00 00 AE [12:35:04]Write i2c OK [12:35:04]MH_I2C_Read... [12:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:04]Read from MH i2c: E2 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: E2 17 00 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: E2 17 00 0F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 05 [12:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:35:04]wFMCommunicate OK [12:35:04]CreateOFDProtocolMessage done [12:35:04]OFDSenderStorePacket 123032 [12:35:04]StoreOFDPacket docnum=123032 [12:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1F B9 07 01 17 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FB 6E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E0 01 00 35 04 06 00 8B EA 41 99 9E FB AC 17 1B E9 10 61 87 38 [12:35:04]CheckFolder [12:35:04]dirname=/storage/ofd_packets [12:35:04]CheckFolder done [12:35:04]ProducePacketName [12:35:04]name=ofd_packets/00123032 [12:35:04]NVStorageSaveData ofd_packets/00123032 [12:35:04]File name is /storage/ofd_packets/00123032 [12:35:04]Write 301 bytes [12:35:04]NVStorageSaveData done [12:35:04]OFDSenderStorePacket done [12:35:04]KKMCreateOFDPacket done [12:35:04]NVStorageSaveData kkm_last_timestamp [12:35:04]File name is /storage/kkm_last_timestamp [12:35:04]Write 4 bytes [12:35:04]NVStorageSaveData done [12:35:04]ExternCall_PrintAddStr [12:35:04]wPrintStart [12:35:04]Write to MH i2c: 01 00 00 10 25 35 [12:35:04]Write i2c OK [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: 01 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: 01 07 00 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: 01 07 00 10 25 00 00 00 00 00 FF 0F 4A [12:35:04]RasterBufferAndPrint [12:35:04]line Счет N : (1)717827 [12:35:04]line ИНН: 02508201610067 [12:35:04]line Контрольно-Кассовый Чек [12:35:04]line ПРОДАЖА [12:35:04]line ТРК (МРК, ГНК) : 12 [12:35:04]line Товар: 2710124130 [12:35:04]line Аи-92-К-4 [12:35:04]line 7.420 * 67.40 [12:35:04]line = 500.11 [12:35:04]line НДС 12% НСП 1% [12:35:04]line > о реализуемом товаре [12:35:04]line ОКРУГЛЕНИЕ: -0.11 [12:35:04]line ИТОГО: 500.00 [12:35:04]line Внесено: 500.00 [12:35:04]line СДАЧА: 0.00 [12:35:04]line НСП 1% : 4.43 [12:35:04]line НДС 12% : 53.11 [12:35:04]line Наличными: 500.00 [12:35:04]line Безнал.: 0.00 [12:35:04]line Место: АЗС № 64 "Партнер Нефть" [12:35:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:35:04]line СНО: Общий режим [12:35:04]line Чек 73 25.11.2024 12:35 [12:35:04]line Смена: 556 ФФД: 1.0 [12:35:04]line ЗНМ: 0300000033 [12:35:04]line РНМ: 0000000000092681 [12:35:04]line Версия ККМ: 001 [12:35:04]line ФМ: 0000000000874881 [12:35:04]line ФД: 123032 [12:35:04]line ФПД: 153838239194875 [12:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T123507&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123032&fm=153838239194875&tin=02508201610067®Number=0000000000092681&sum=50000 [12:35:04]OFD Sender: Processing packet 123032 [packets to send 7, broken 6] [12:35:04]ProducePacketName [12:35:04]name=ofd_packets/00123032 [12:35:04]OFD Sender: To server: pG, [12:35:04]CommunicateWithHost lk.salyk.kg:30040 [12:35:04]ConnectInit lk.salyk.kg [12:35:04]written 0, free lines is 4095 [12:35:04]Connected sock=10 [12:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1F B9 07 01 17 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FB 6E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E0 01 00 35 04 06 00 8B EA 41 99 9E FB AC 17 1B E9 10 61 87 38 [12:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7C A4 47 00 29 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 34 38 38 31 10 04 04 00 98 E0 01 00 F4 03 04 00 C1 1A 44 67 B6 04 01 00 00 31 BA 9D C0 E5 3B E9 B2 [12:35:04]CommunicateWithHost err = 0 [12:35:04]CheckOFDResponse [12:35:04]1017 (14) - 77093643461234 [12:35:04]1041 (16) - 0000000000874881 [12:35:04]1040 (4) - 123032 [12:35:04]1012 (4) - 25.11.2024 06:35 [12:35:04]1206 (1) - 0 [12:35:04]OFD Sender: Remove packet 123032 [12:35:04]ProducePacketName [12:35:04]name=ofd_packets/00123032 [12:35:04]NVStorageDeleteData [12:35:04]Write to MH i2c: 01 00 00 3B 25 60 [12:35:04]Write i2c OK [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: 01 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: 01 07 00 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: 01 07 00 3B 25 00 00 00 00 00 4C 0C BF [12:35:04]RasterBufferAndPrint [12:35:04]line [12:35:04]line [12:35:04]line [12:35:04]line [12:35:04]line [12:35:04]written 0, free lines is 3152 [12:35:04]MH_Cut [12:35:04]Write to MH i2c: D1 01 00 42 25 01 39 [12:35:04]Write i2c OK [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: D1 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: D1 01 00 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: D1 01 00 42 25 00 38 [12:35:04]Write to MH i2c: 01 00 00 43 25 68 [12:35:05]Write i2c OK [12:35:05]MH_I2C_Read... [12:35:05]OFD Sender: No OFD packet to send [12:35:06]*** Cut start [12:35:06]*** Partial cut [12:35:06]*** CUTSNS_PIN = 1 [12:35:06]*** CUTSNS_PIN = 0 [12:35:06]*** Brake cut motor [12:35:06]Read from MH i2c: 01 [12:35:06]MH_I2C_Read... [12:35:06]*** Stop cut motor [12:35:06]*** Cut end [12:35:06]Read from MH i2c: 01 07 00 [12:35:06]MH_I2C_Read... [12:35:06]Read from MH i2c: 01 07 00 43 25 00 00 00 00 00 FF 0F 7D [12:35:06]process_action close_receipt done [12:35:06]requested_data is exist [12:35:06]produce_requested_data [12:35:06]requested_item fm.sn is exist - process it [12:35:06]wFMCommunicate request_size=4 [12:35:06]MH_SAM_APDU [12:35:06]CAPDU: 80 11 00 00 [12:35:06]Write to MH i2c: E2 08 00 44 25 80 11 00 00 00 00 00 00 E3 [12:35:06]Write i2c OK [12:35:06]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 17 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 17 00 44 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3A [12:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:35:07]wFMCommunicate OK [12:35:07]requested_item fd.num is exist - process it [12:35:07]SAM_PROTO_GetFieldsCounters [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 13 00 00 [12:35:07]Write to MH i2c: E2 08 00 45 25 80 13 00 00 00 00 00 00 E6 [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 62 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 62 00 45 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 98 E0 01 00 0E 04 04 00 2C 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 8E [12:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 98 E0 01 00 0E 04 04 00 2C 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 [12:35:07]wFMCommunicate OK [12:35:07]SAM_PROTO_GetFieldsCounters done [12:35:07]requested_item shift.num is exist - process it [12:35:07]requested_item shift.opened is exist - process it [12:35:07]req_shift_opened [12:35:07]FM_GetShiftState [12:35:07]SAM_PROTO_GetShiftState [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 13 01 00 [12:35:07]Write to MH i2c: E2 08 00 46 25 80 13 01 00 00 00 00 00 E8 [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0E 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0E 00 46 25 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 67 [12:35:07]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:35:07]wFMCommunicate OK [12:35:07]SAM_PROTO_GetShiftState done [12:35:07]FM_GetShiftState done [12:35:07]req_shift_opened done [12:35:07]requested_item shift.open_date is exist - process it [12:35:07]req_shift_open_date [12:35:07]req_shift_open_date done [12:35:07]produce_requested_data done [12:35:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123032,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:35:07]process_action_free close_receipt [12:35:07]json_value_free [12:35:07]json_value_free done [12:35:07]process_json_proto returns [12:35:07]Send response to host [12:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123032,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:35:07]free response buf [12:35:07]execute_script done [12:35:07]execute_script returns [12:35:07]free content buf [12:35:07]Sock 9.Close socket [12:35:07]Sock 9.Thread stoped [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:26]accept exits with 7 [12:43:26]New connection [12:43:26]New thread 3066580324 created [12:43:26]Thread 3066723684 joined [12:43:26]Waiting for new connection... [12:43:26] Sock 7.Parse request [12:43:26]Sock 7.Check first char [12:43:26]Sock 7.First char is OK [12:43:26]request: POST /json_proto HTTP/1.0 [12:43:26]Method: POST [12:43:26]URL: /json_proto [12:43:26]Method is POST - this is cgi request [12:43:26]url: /json_proto [12:43:26]query_string will be loaded in cgi processing [12:43:26]execute_cgi json_proto POST (null) [12:43:26]execute_cgi path=json_proto method=POST [12:43:26]POST find Content-Length [12:43:26]Host: 172.17.37.4:8080 [12:43:26]Content-Length: 803 [12:43:26]Content-Type: application/json [12:43:26] [12:43:26]POST finish read [12:43:26]Found Content-Length = 803 [12:43:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 29.680, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:26]execute_script... [12:43: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)717828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 29.680, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:26]POST & json_proto [12:43:26]process_json_proto [12:43:26]json parsed OK: [12:43:26]protocol is kg_v1.0 [12:43:26]action value=close_receipt [12:43:26]process_action close_receipt [12:43:26]cmd_close_receipt [12:43:26]MH_GetDate [12:43:26]Write to MH i2c: F0 00 00 47 25 5B [12:43:26]Write i2c OK [12:43:26]MH_I2C_Read... [12:43:26]Read from MH i2c: F0 [12:43:26]MH_I2C_Read... [12:43:26]Read from MH i2c: F0 09 00 [12:43:26]MH_I2C_Read... [12:43:26]Read from MH i2c: F0 09 00 47 25 00 F3 70 44 67 B8 5A 43 67 2E [12:43:26]GetLastDocTimeStamp 1732538107 [12:43:26]current date 1732538611 [12:43:26]FM_GetShiftState [12:43:26]SAM_PROTO_GetShiftState [12:43:26]wFMCommunicate request_size=4 [12:43:26]MH_SAM_APDU [12:43:26]CAPDU: 80 13 01 00 [12:43:26]Write to MH i2c: E2 08 00 48 25 80 13 01 00 00 00 00 00 EA [12:43:26]Write i2c OK [12:43:26]MH_I2C_Read... [12:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:26]Read from MH i2c: E2 [12:43:26]MH_I2C_Read... [12:43:26]Read from MH i2c: E2 0E 00 [12:43:26]MH_I2C_Read... [12:43:26]Read from MH i2c: E2 0E 00 48 25 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 69 [12:43:26]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:43:26]wFMCommunicate OK [12:43:26]SAM_PROTO_GetShiftState done [12:43:26]FM_GetShiftState done [12:43:26]opened in 1732493066 [12:43:26]opened+sec_in_day 1732579466 [12:43:26]quantity*price = 200043 [12:43:26]sum+1 = 200044 [12:43:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 74 25.11.2024 12:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123033 ФПД: 133763365325538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T124331&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123033&fm=133763365325538&tin=02508201610067®Number=0000000000092681&sum=200043 [12:43:28]StoreToDocumentArchive [12:43:28]shift 556 fd 123033 [12:43:28]save to /storage/0556/doc_00123033 [12:43:28]save last doc name /storage/0556/doc_00123033 to /storage/kkm_last_doc_name [12:43:28]save OK [12:43:28]Clear old archive folders... [12:43:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:28]tlvbuf is 02090260 [12:43:28]SAM_PROTO_ClearQueue [12:43:28]wFMCommunicate request_size=4 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 09 00 00 [12:43:28]Write to MH i2c: E2 08 00 55 25 80 09 00 00 00 00 00 00 EC [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 03 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 03 00 55 25 00 90 00 EE [12:43:28]RAPDU: 90 00 [12:43:28]wFMCommunicate OK [12:43:28]SAM_PROTO_ClearQueue done [12:43:28]KKMCreateOFDPacket [12:43:28]OFDProtocolAddRootSTLVToBuf [12:43:28]FM_MakeSignedData [12:43:28]FM_MakeSignedData [12:43:28]SAM_PROTO_SignData [12:43:28]wFMCommunicate request_size=4 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 0D 01 02 [12:43:28]Write to MH i2c: E2 08 00 56 25 80 0D 01 02 00 00 00 00 F4 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 03 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 03 00 56 25 00 90 00 EF [12:43:28]RAPDU: 90 00 [12:43:28]wFMCommunicate OK [12:43:28]wFMCommunicate request_size=255 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 F3 70 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E0 01 00 35 04 06 00 79 [12:43:28]Write to MH i2c: E2 02 01 57 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 F3 70 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E0 01 00 35 04 06 00 79 00 00 FA [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 03 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 03 00 57 25 00 90 00 F0 [12:43:28]RAPDU: 90 00 [12:43:28]wFMCommunicate OK [12:43:28]wFMCommunicate request_size=10 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 0D 02 02 05 A8 35 DF CA E2 [12:43:28]Write to MH i2c: E2 0D 00 58 25 80 0D 02 02 05 00 A8 35 DF CA E2 00 00 69 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 03 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 03 00 58 25 00 90 00 F1 [12:43:28]RAPDU: 90 00 [12:43:28]wFMCommunicate OK [12:43:28]wFMCommunicate request_size=4 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 0D 03 02 [12:43:28]Write to MH i2c: E2 08 00 59 25 80 0D 03 02 00 00 00 00 F9 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0B 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0B 00 59 25 00 34 10 8D 65 F7 FD E4 60 90 00 68 [12:43:28]RAPDU: 34 10 8D 65 F7 FD E4 60 90 00 [12:43:28]wFMCommunicate OK [12:43:28]SAM_PROTO_SignData done [12:43:28]FM_MakeSignedData done [12:43:28]CreateOFDProtocolMessage [12:43:28]wFMCommunicate request_size=4 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 11 00 00 [12:43:28]Write to MH i2c: E2 08 00 5A 25 80 11 00 00 00 00 00 00 F9 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 17 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 17 00 5A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 50 [12:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:43:28]wFMCommunicate OK [12:43:28]CreateOFDProtocolMessage done [12:43:28]OFDSenderStorePacket 123033 [12:43:28]StoreOFDPacket docnum=123033 [12:43:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 75 83 07 01 A5 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 F3 70 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E0 01 00 35 04 06 00 79 A8 35 DF CA E2 34 10 8D 65 F7 FD E4 60 [12:43:28]CheckFolder [12:43:28]dirname=/storage/ofd_packets [12:43:28]CheckFolder done [12:43:28]ProducePacketName [12:43:28]name=ofd_packets/00123033 [12:43:28]NVStorageSaveData ofd_packets/00123033 [12:43:28]File name is /storage/ofd_packets/00123033 [12:43:28]Write 301 bytes [12:43:28]NVStorageSaveData done [12:43:28]OFDSenderStorePacket done [12:43:28]KKMCreateOFDPacket done [12:43:28]NVStorageSaveData kkm_last_timestamp [12:43:28]File name is /storage/kkm_last_timestamp [12:43:28]Write 4 bytes [12:43:28]NVStorageSaveData done [12:43:28]ExternCall_PrintAddStr [12:43:28]wPrintStart [12:43:28]Write to MH i2c: 01 00 00 5B 25 80 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: 01 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: 01 07 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: 01 07 00 5B 25 00 00 00 00 00 FF 0F 95 [12:43:28]RasterBufferAndPrint [12:43:28]line Счет N : (1)717828 [12:43:28]line ИНН: 02508201610067 [12:43:28]line Контрольно-Кассовый Чек [12:43:28]line ПРОДАЖА [12:43:28]line ТРК (МРК, ГНК) : 32 [12:43:28]line Товар: 2710124130 [12:43:28]line Аи-92-К-4 [12:43:28]line 29.680 * 67.40 [12:43:28]line = 2000.43 [12:43:28]line НДС 12% НСП 1% [12:43:28]line > о реализуемом товаре [12:43:28]line ИТОГО: 2000.43 [12:43:28]line НСП 1% : 17.70 [12:43:28]line НДС 12% : 212.43 [12:43:28]line Наличными: 0.00 [12:43:28]line Безнал.: 2000.43 [12:43:28]line Место: АЗС № 64 "Партнер Нефть" [12:43:28]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:43:28]line СНО: Общий режим [12:43:28]line Чек 74 25.11.2024 12:43 [12:43:28]line Смена: 556 ФФД: 1.0 [12:43:28]line ЗНМ: 0300000033 [12:43:28]line РНМ: 0000000000092681 [12:43:28]line Версия ККМ: 001 [12:43:28]line Платежная система: O! деньги [12:43:28]line ФМ: 0000000000874881 [12:43:28]line ФД: 123033 [12:43:28]line ФПД: 133763365325538 [12:43:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T124331&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123033&fm=133763365325538&tin=02508201610067®Number=0000000000092681&sum=200043 [12:43:28]OFD Sender: Processing packet 123033 [packets to send 7, broken 6] [12:43:28]ProducePacketName [12:43:28]name=ofd_packets/00123033 [12:43:28]OFD Sender: To server: pG, [12:43:28]CommunicateWithHost lk.salyk.kg:30040 [12:43:28]ConnectInit lk.salyk.kg [12:43:28]written 0, free lines is 4095 [12:43:29]Connected sock=10 [12:43:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 75 83 07 01 A5 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 F3 70 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E0 01 00 35 04 06 00 79 A8 35 DF CA E2 34 10 8D 65 F7 FD E4 60 [12:43:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 65 33 47 00 5A 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 34 38 38 31 10 04 04 00 99 E0 01 00 F4 03 04 00 B9 1C 44 67 B6 04 01 00 00 CE EF B0 66 25 A4 C2 70 [12:43:29]CommunicateWithHost err = 0 [12:43:29]CheckOFDResponse [12:43:29]1017 (14) - 77093643461234 [12:43:29]1041 (16) - 0000000000874881 [12:43:29]1040 (4) - 123033 [12:43:29]1012 (4) - 25.11.2024 06:44 [12:43:29]1206 (1) - 0 [12:43:29]OFD Sender: Remove packet 123033 [12:43:29]ProducePacketName [12:43:29]name=ofd_packets/00123033 [12:43:29]NVStorageDeleteData [12:43:29]Write to MH i2c: 01 00 00 85 25 AA [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: 01 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: 01 07 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: 01 07 00 85 25 00 00 00 00 00 67 0C 24 [12:43:29]RasterBufferAndPrint [12:43:29]line [12:43:29]line [12:43:29]line [12:43:29]line [12:43:29]line [12:43:29]written 0, free lines is 3179 [12:43:29]MH_Cut [12:43:29]Write to MH i2c: D1 01 00 8C 25 01 83 [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: D1 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: D1 01 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: D1 01 00 8C 25 00 82 [12:43:29]Write to MH i2c: 01 00 00 8D 25 B2 [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]OFD Sender: No OFD packet to send [12:43:30]*** Cut start [12:43:30]*** Partial cut [12:43:30]*** CUTSNS_PIN = 1 [12:43:30]*** CUTSNS_PIN = 0 [12:43:31]*** Brake cut motor [12:43:31]Read from MH i2c: 01 [12:43:31]MH_I2C_Read... [12:43:31]*** Stop cut motor [12:43:31]*** Cut end [12:43:31]Read from MH i2c: 01 07 00 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: 01 07 00 8D 25 00 00 00 00 00 FF 0F C7 [12:43:31]process_action close_receipt done [12:43:31]requested_data is exist [12:43:31]produce_requested_data [12:43:31]requested_item fm.sn is exist - process it [12:43:31]wFMCommunicate request_size=4 [12:43:31]MH_SAM_APDU [12:43:31]CAPDU: 80 11 00 00 [12:43:31]Write to MH i2c: E2 08 00 8E 25 80 11 00 00 00 00 00 00 2D [12:43:31]Write i2c OK [12:43:31]MH_I2C_Read... [12:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:31]Read from MH i2c: E2 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: E2 17 00 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: E2 17 00 8E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 84 [12:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:43:31]wFMCommunicate OK [12:43:31]requested_item fd.num is exist - process it [12:43:31]SAM_PROTO_GetFieldsCounters [12:43:31]wFMCommunicate request_size=4 [12:43:31]MH_SAM_APDU [12:43:31]CAPDU: 80 13 00 00 [12:43:31]Write to MH i2c: E2 08 00 8F 25 80 13 00 00 00 00 00 00 30 [12:43:31]Write i2c OK [12:43:31]MH_I2C_Read... [12:43:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:31]Read from MH i2c: E2 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: E2 62 00 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: E2 62 00 8F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 99 E0 01 00 0E 04 04 00 2C 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 DC [12:43:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 99 E0 01 00 0E 04 04 00 2C 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 [12:43:31]wFMCommunicate OK [12:43:31]SAM_PROTO_GetFieldsCounters done [12:43:31]requested_item shift.num is exist - process it [12:43:31]requested_item shift.opened is exist - process it [12:43:31]req_shift_opened [12:43:31]FM_GetShiftState [12:43:31]SAM_PROTO_GetShiftState [12:43:31]wFMCommunicate request_size=4 [12:43:31]MH_SAM_APDU [12:43:31]CAPDU: 80 13 01 00 [12:43:31]Write to MH i2c: E2 08 00 90 25 80 13 01 00 00 00 00 00 32 [12:43:31]Write i2c OK [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: E2 [12:43:31]MH_I2C_Read... [12:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:31]Read from MH i2c: E2 0E 00 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: E2 0E 00 90 25 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B1 [12:43:31]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:43:31]wFMCommunicate OK [12:43:31]SAM_PROTO_GetShiftState done [12:43:31]FM_GetShiftState done [12:43:31]req_shift_opened done [12:43:31]requested_item shift.open_date is exist - process it [12:43:31]req_shift_open_date [12:43:31]req_shift_open_date done [12:43:31]produce_requested_data done [12:43:31]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123033,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:43:31]process_action_free close_receipt [12:43:31]json_value_free [12:43:31]json_value_free done [12:43:31]process_json_proto returns [12:43:31]Send response to host [12:43:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123033,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:43:31]free response buf [12:43:31]execute_script done [12:43:31]execute_script returns [12:43:31]free content buf [12:43:31]Sock 7.Close socket [12:43:31]Sock 7.Thread stoped [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:20]accept exits with 9 [12:44:20]New connection [12:44:20]New thread 3066723684 created [12:44:20]Thread 3066580324 joined [12:44:20]Waiting for new connection... [12:44:20] Sock 9.Parse request [12:44:20]Sock 9.Check first char [12:44:20]Sock 9.First char is OK [12:44:20]request: POST /json_proto HTTP/1.0 [12:44:20]Method: POST [12:44:20]URL: /json_proto [12:44:20]Method is POST - this is cgi request [12:44:20]url: /json_proto [12:44:20]query_string will be loaded in cgi processing [12:44:20]execute_cgi json_proto POST (null) [12:44:20]execute_cgi path=json_proto method=POST [12:44:20]POST find Content-Length [12:44:20]Host: 172.17.37.4:8080 [12:44:20]Content-Length: 801 [12:44:20]Content-Type: application/json [12:44:20] [12:44:20]POST finish read [12:44:20]Found Content-Length = 801 [12:44:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:20]execute_script... [12:44: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)717829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:20]POST & json_proto [12:44:20]process_json_proto [12:44:20]json parsed OK: [12:44:20]protocol is kg_v1.0 [12:44:20]action value=close_receipt [12:44:20]process_action close_receipt [12:44:20]cmd_close_receipt [12:44:20]MH_GetDate [12:44:20]Write to MH i2c: F0 00 00 91 25 A5 [12:44:20]Write i2c OK [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: F0 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: F0 09 00 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: F0 09 00 91 25 00 29 71 44 67 B8 5A 43 67 AF [12:44:20]GetLastDocTimeStamp 1732538611 [12:44:20]current date 1732538665 [12:44:20]FM_GetShiftState [12:44:20]SAM_PROTO_GetShiftState [12:44:20]wFMCommunicate request_size=4 [12:44:20]MH_SAM_APDU [12:44:20]CAPDU: 80 13 01 00 [12:44:20]Write to MH i2c: E2 08 00 92 25 80 13 01 00 00 00 00 00 34 [12:44:20]Write i2c OK [12:44:20]MH_I2C_Read... [12:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:20]Read from MH i2c: E2 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 0E 00 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 0E 00 92 25 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B3 [12:44:20]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:44:20]wFMCommunicate OK [12:44:20]SAM_PROTO_GetShiftState done [12:44:20]FM_GetShiftState done [12:44:20]opened in 1732493066 [12:44:20]opened+sec_in_day 1732579466 [12:44:20]quantity*price = 67400 [12:44:20]sum+1 = 67401 [12:44:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 674.00 НСП 1% : 5.96 НДС 12% : 71.57 Наличными: 0.00 Безнал.: 674.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 75 25.11.2024 12:44 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123034 ФПД: 198430872570207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T124425&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123034&fm=198430872570207&tin=02508201610067®Number=0000000000092681&sum=67400 [12:44:21]StoreToDocumentArchive [12:44:21]shift 556 fd 123034 [12:44:21]save to /storage/0556/doc_00123034 [12:44:21]save last doc name /storage/0556/doc_00123034 to /storage/kkm_last_doc_name [12:44:21]save OK [12:44:21]Clear old archive folders... [12:44:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:21]tlvbuf is B6E89370 [12:44:21]SAM_PROTO_ClearQueue [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 09 00 00 [12:44:21]Write to MH i2c: E2 08 00 9F 25 80 09 00 00 00 00 00 00 36 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 9F 25 00 90 00 38 [12:44:21]RAPDU: 90 00 [12:44:21]wFMCommunicate OK [12:44:21]SAM_PROTO_ClearQueue done [12:44:21]KKMCreateOFDPacket [12:44:21]OFDProtocolAddRootSTLVToBuf [12:44:21]FM_MakeSignedData [12:44:21]FM_MakeSignedData [12:44:21]SAM_PROTO_SignData [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 0D 01 02 [12:44:21]Write to MH i2c: E2 08 00 A0 25 80 0D 01 02 00 00 00 00 3E [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 A0 25 00 90 00 39 [12:44:21]RAPDU: 90 00 [12:44:21]wFMCommunicate OK [12:44:21]wFMCommunicate request_size=255 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 29 71 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E0 01 00 35 04 06 00 B4 [12:44:21]Write to MH i2c: E2 02 01 A1 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 29 71 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E0 01 00 35 04 06 00 B4 00 00 34 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 A1 25 00 90 00 3A [12:44:21]RAPDU: 90 00 [12:44:21]wFMCommunicate OK [12:44:21]wFMCommunicate request_size=10 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 0D 02 02 05 78 C9 AC 09 5F [12:44:21]Write to MH i2c: E2 0D 00 A2 25 80 0D 02 02 05 00 78 C9 AC 09 5F 00 00 A0 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 A2 25 00 90 00 3B [12:44:21]RAPDU: 90 00 [12:44:21]wFMCommunicate OK [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 0D 03 02 [12:44:21]Write to MH i2c: E2 08 00 A3 25 80 0D 03 02 00 00 00 00 43 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 0B 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 0B 00 A3 25 00 A9 E2 C4 BB 89 DC 80 1D 90 00 50 [12:44:21]RAPDU: A9 E2 C4 BB 89 DC 80 1D 90 00 [12:44:21]wFMCommunicate OK [12:44:21]SAM_PROTO_SignData done [12:44:21]FM_MakeSignedData done [12:44:21]CreateOFDProtocolMessage [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 11 00 00 [12:44:21]Write to MH i2c: E2 08 00 A4 25 80 11 00 00 00 00 00 00 43 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 17 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 17 00 A4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9A [12:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:44:21]wFMCommunicate OK [12:44:21]CreateOFDProtocolMessage done [12:44:21]OFDSenderStorePacket 123034 [12:44:21]StoreOFDPacket docnum=123034 [12:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D2 5F 07 01 24 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 29 71 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E0 01 00 35 04 06 00 B4 78 C9 AC 09 5F A9 E2 C4 BB 89 DC 80 1D [12:44:21]CheckFolder [12:44:21]dirname=/storage/ofd_packets [12:44:21]CheckFolder done [12:44:21]ProducePacketName [12:44:21]name=ofd_packets/00123034 [12:44:21]NVStorageSaveData ofd_packets/00123034 [12:44:21]File name is /storage/ofd_packets/00123034 [12:44:21]Write 301 bytes [12:44:21]NVStorageSaveData done [12:44:21]OFDSenderStorePacket done [12:44:21]KKMCreateOFDPacket done [12:44:21]NVStorageSaveData kkm_last_timestamp [12:44:21]File name is /storage/kkm_last_timestamp [12:44:21]Write 4 bytes [12:44:21]NVStorageSaveData done [12:44:21]OFD Sender: Processing packet 123034 [packets to send 7, broken 6] [12:44:21]ProducePacketName [12:44:21]name=ofd_packets/00123034 [12:44:21]OFD Sender: To server: pG, [12:44:21]CommunicateWithHost lk.salyk.kg:30040 [12:44:21]ConnectInit lk.salyk.kg [12:44:21]ExternCall_PrintAddStr [12:44:21]wPrintStart [12:44:21]Write to MH i2c: 01 00 00 A5 25 CA [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: 01 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: 01 07 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: 01 07 00 A5 25 00 00 00 00 00 FF 0F DF [12:44:21]RasterBufferAndPrint [12:44:21]line Счет N : (1)717829 [12:44:21]line ИНН: 02508201610067 [12:44:21]line Контрольно-Кассовый Чек [12:44:21]line ПРОДАЖА [12:44:21]line ТРК (МРК, ГНК) : 12 [12:44:21]line Товар: 2710124130 [12:44:21]line Аи-92-К-4 [12:44:21]line 10.000 * 67.40 [12:44:21]line = 674.00 [12:44:21]line НДС 12% НСП 1% [12:44:21]line > о реализуемом товаре [12:44:21]line ИТОГО: 674.00 [12:44:21]line НСП 1% : 5.96 [12:44:21]line НДС 12% : 71.57 [12:44:21]line Наличными: 0.00 [12:44:21]line Безнал.: 674.00 [12:44:21]line Место: АЗС № 64 "Партнер Нефть" [12:44:21]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:44:21]line СНО: Общий режим [12:44:21]line Чек 75 25.11.2024 12:44 [12:44:21]line Смена: 556 ФФД: 1.0 [12:44:21]line ЗНМ: 0300000033 [12:44:21]line РНМ: 0000000000092681 [12:44:21]line Версия ККМ: 001 [12:44:21]line Платежная система: O! деньги [12:44:21]line ФМ: 0000000000874881 [12:44:21]line ФД: 123034 [12:44:21]line ФПД: 198430872570207 [12:44:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T124425&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123034&fm=198430872570207&tin=02508201610067®Number=0000000000092681&sum=67400 [12:44:22]Connected sock=11 [12:44:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D2 5F 07 01 24 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 29 71 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E0 01 00 35 04 06 00 B4 78 C9 AC 09 5F A9 E2 C4 BB 89 DC 80 1D [12:44:22]written 0, free lines is 4095 [12:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 E3 67 47 00 C0 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E0 01 00 F4 03 04 00 EE 1C 44 67 B6 04 01 00 00 69 AE 3F 13 83 25 F3 72 [12:44:22]CommunicateWithHost err = 0 [12:44:22]CheckOFDResponse [12:44:22]1017 (14) - 77093643461234 [12:44:22]1041 (16) - 0000000000874881 [12:44:22]1040 (4) - 123034 [12:44:22]1012 (4) - 25.11.2024 06:45 [12:44:22]1206 (1) - 0 [12:44:22]OFD Sender: Remove packet 123034 [12:44:22]ProducePacketName [12:44:22]name=ofd_packets/00123034 [12:44:22]NVStorageDeleteData [12:44:22]Write to MH i2c: 01 00 00 CF 25 F4 [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: 01 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: 01 07 00 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: 01 07 00 CF 25 00 00 00 00 00 5A 0C 61 [12:44:22]RasterBufferAndPrint [12:44:22]line [12:44:22]line [12:44:22]line [12:44:22]line [12:44:22]line [12:44:22]written 0, free lines is 3166 [12:44:22]MH_Cut [12:44:22]Write to MH i2c: D1 01 00 D6 25 01 CD [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: D1 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: D1 01 00 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: D1 01 00 D6 25 00 CC [12:44:22]Write to MH i2c: 01 00 00 D7 25 FC [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:22]OFD Sender: No OFD packet to send [12:44:23]*** Cut start [12:44:23]*** Partial cut [12:44:23]*** CUTSNS_PIN = 1 [12:44:23]*** CUTSNS_PIN = 0 [12:44:24]*** Brake cut motor [12:44:24]Read from MH i2c: 01 [12:44:24]MH_I2C_Read... [12:44:24]*** Stop cut motor [12:44:24]*** Cut end [12:44:24]Read from MH i2c: 01 07 00 [12:44:24]MH_I2C_Read... [12:44:24]Read from MH i2c: 01 07 00 D7 25 00 00 00 00 00 FF 0F 11 [12:44:24]process_action close_receipt done [12:44:24]requested_data is exist [12:44:24]produce_requested_data [12:44:24]requested_item fm.sn is exist - process it [12:44:24]wFMCommunicate request_size=4 [12:44:24]MH_SAM_APDU [12:44:24]CAPDU: 80 11 00 00 [12:44:24]Write to MH i2c: E2 08 00 D8 25 80 11 00 00 00 00 00 00 77 [12:44:24]Write i2c OK [12:44:24]MH_I2C_Read... [12:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:24]Read from MH i2c: E2 [12:44:24]MH_I2C_Read... [12:44:24]Read from MH i2c: E2 17 00 [12:44:24]MH_I2C_Read... [12:44:24]Read from MH i2c: E2 17 00 D8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CE [12:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:44:24]wFMCommunicate OK [12:44:24]requested_item fd.num is exist - process it [12:44:24]SAM_PROTO_GetFieldsCounters [12:44:24]wFMCommunicate request_size=4 [12:44:24]MH_SAM_APDU [12:44:24]CAPDU: 80 13 00 00 [12:44:24]Write to MH i2c: E2 08 00 D9 25 80 13 00 00 00 00 00 00 7A [12:44:24]Write i2c OK [12:44:24]MH_I2C_Read... [12:44:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:24]Read from MH i2c: E2 [12:44:24]MH_I2C_Read... [12:44:24]Read from MH i2c: E2 62 00 [12:44:24]MH_I2C_Read... [12:44:24]Read from MH i2c: E2 62 00 D9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9A E0 01 00 0E 04 04 00 2C 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 2A [12:44:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9A E0 01 00 0E 04 04 00 2C 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 [12:44:24]wFMCommunicate OK [12:44:24]SAM_PROTO_GetFieldsCounters done [12:44:24]requested_item shift.num is exist - process it [12:44:24]requested_item shift.opened is exist - process it [12:44:24]req_shift_opened [12:44:24]FM_GetShiftState [12:44:24]SAM_PROTO_GetShiftState [12:44:24]wFMCommunicate request_size=4 [12:44:24]MH_SAM_APDU [12:44:24]CAPDU: 80 13 01 00 [12:44:24]Write to MH i2c: E2 08 00 DA 25 80 13 01 00 00 00 00 00 7C [12:44:24]Write i2c OK [12:44:24]MH_I2C_Read... [12:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:24]Read from MH i2c: E2 [12:44:24]MH_I2C_Read... [12:44:24]Read from MH i2c: E2 0E 00 [12:44:24]MH_I2C_Read... [12:44:24]Read from MH i2c: E2 0E 00 DA 25 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FB [12:44:24]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:44:24]wFMCommunicate OK [12:44:24]SAM_PROTO_GetShiftState done [12:44:24]FM_GetShiftState done [12:44:24]req_shift_opened done [12:44:24]requested_item shift.open_date is exist - process it [12:44:24]req_shift_open_date [12:44:24]req_shift_open_date done [12:44:24]produce_requested_data done [12:44:24]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123034,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:44:24]process_action_free close_receipt [12:44:24]json_value_free [12:44:24]json_value_free done [12:44:24]process_json_proto returns [12:44:24]Send response to host [12:44:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123034,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:44:24]free response buf [12:44:24]execute_script done [12:44:24]execute_script returns [12:44:24]free content buf [12:44:24]Sock 9.Close socket [12:44:24]Sock 9.Thread stoped [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48: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:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:45]accept exits with 10 [12:50:45]New connection [12:50:45]New thread 3066580324 created [12:50:45]Thread 3066723684 joined [12:50:45]Waiting for new connection... [12:50:45] Sock 10.Parse request [12:50:45]Sock 10.Check first char [12:50:45]Sock 10.First char is OK [12:50:45]request: POST /json_proto HTTP/1.0 [12:50:45]Method: POST [12:50:45]URL: /json_proto [12:50:45]Method is POST - this is cgi request [12:50:45]url: /json_proto [12:50:45]query_string will be loaded in cgi processing [12:50:45]execute_cgi json_proto POST (null) [12:50:45]execute_cgi path=json_proto method=POST [12:50:45]POST find Content-Length [12:50:45]Host: 172.17.37.4:8080 [12:50:45]Content-Length: 677 [12:50:45]Content-Type: application/json [12:50:45] [12:50:45]POST finish read [12:50:45]Found Content-Length = 677 [12:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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" ] } } [12:50:45]execute_script... [12:50: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)717830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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" ] } } [12:50:45]POST & json_proto [12:50:45]process_json_proto [12:50:45]json parsed OK: [12:50:45]protocol is kg_v1.0 [12:50:45]action value=close_receipt [12:50:45]process_action close_receipt [12:50:45]cmd_close_receipt [12:50:45]MH_GetDate [12:50:45]Write to MH i2c: F0 00 00 DB 25 EF [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: F0 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: F0 09 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: F0 09 00 DB 25 00 AA 72 44 67 B8 5A 43 67 7B [12:50:45]GetLastDocTimeStamp 1732538665 [12:50:45]current date 1732539050 [12:50:45]FM_GetShiftState [12:50:45]SAM_PROTO_GetShiftState [12:50:45]wFMCommunicate request_size=4 [12:50:45]MH_SAM_APDU [12:50:45]CAPDU: 80 13 01 00 [12:50:45]Write to MH i2c: E2 08 00 DC 25 80 13 01 00 00 00 00 00 7E [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0E 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0E 00 DC 25 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FD [12:50:46]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:50:46]wFMCommunicate OK [12:50:46]SAM_PROTO_GetShiftState done [12:50:46]FM_GetShiftState done [12:50:46]opened in 1732493066 [12:50:46]opened+sec_in_day 1732579466 [12:50:46]quantity*price = 60053 [12:50:46]sum+1 = 60054 [12:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 76 25.11.2024 12:50 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123035 ФПД: 254571974213054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T125051&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123035&fm=254571974213054&tin=02508201610067®Number=0000000000092681&sum=60000 [12:50:47]StoreToDocumentArchive [12:50:47]shift 556 fd 123035 [12:50:47]save to /storage/0556/doc_00123035 [12:50:47]save last doc name /storage/0556/doc_00123035 to /storage/kkm_last_doc_name [12:50:47]save OK [12:50:47]Clear old archive folders... [12:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:47]tlvbuf is 01F33510 [12:50:47]SAM_PROTO_ClearQueue [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 09 00 00 [12:50:47]Write to MH i2c: E2 08 00 E9 25 80 09 00 00 00 00 00 00 80 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 E9 25 00 90 00 82 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]SAM_PROTO_ClearQueue done [12:50:47]KKMCreateOFDPacket [12:50:47]OFDProtocolAddRootSTLVToBuf [12:50:47]FM_MakeSignedData [12:50:47]FM_MakeSignedData [12:50:47]SAM_PROTO_SignData [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 01 02 [12:50:47]Write to MH i2c: E2 08 00 EA 25 80 0D 01 02 00 00 00 00 88 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 EA 25 00 90 00 83 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]wFMCommunicate request_size=255 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AB 72 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E0 01 00 35 04 06 00 E7 [12:50:47]Write to MH i2c: E2 02 01 EB 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AB 72 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E0 01 00 35 04 06 00 E7 00 00 C2 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 EB 25 00 90 00 84 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]wFMCommunicate request_size=10 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 02 02 05 88 28 17 BD BE [12:50:47]Write to MH i2c: E2 0D 00 EC 25 80 0D 02 02 05 00 88 28 17 BD BE 00 00 D7 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 EC 25 00 90 00 85 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 03 02 [12:50:47]Write to MH i2c: E2 08 00 ED 25 80 0D 03 02 00 00 00 00 8D [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 0B 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 0B 00 ED 25 00 A8 D2 13 7B 21 B6 79 60 90 00 46 [12:50:47]RAPDU: A8 D2 13 7B 21 B6 79 60 90 00 [12:50:47]wFMCommunicate OK [12:50:47]SAM_PROTO_SignData done [12:50:47]FM_MakeSignedData done [12:50:47]CreateOFDProtocolMessage [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 11 00 00 [12:50:47]Write to MH i2c: E2 08 00 EE 25 80 11 00 00 00 00 00 00 8D [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 17 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 17 00 EE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E4 [12:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:50:47]wFMCommunicate OK [12:50:47]CreateOFDProtocolMessage done [12:50:47]OFDSenderStorePacket 123035 [12:50:47]StoreOFDPacket docnum=123035 [12:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 85 92 07 01 68 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AB 72 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E0 01 00 35 04 06 00 E7 88 28 17 BD BE A8 D2 13 7B 21 B6 79 60 [12:50:47]CheckFolder [12:50:47]dirname=/storage/ofd_packets [12:50:47]CheckFolder done [12:50:47]ProducePacketName [12:50:47]name=ofd_packets/00123035 [12:50:47]NVStorageSaveData ofd_packets/00123035 [12:50:47]File name is /storage/ofd_packets/00123035 [12:50:47]Write 301 bytes [12:50:47]NVStorageSaveData done [12:50:47]OFDSenderStorePacket done [12:50:47]KKMCreateOFDPacket done [12:50:47]NVStorageSaveData kkm_last_timestamp [12:50:47]File name is /storage/kkm_last_timestamp [12:50:47]Write 4 bytes [12:50:47]NVStorageSaveData done [12:50:47]ExternCall_PrintAddStr [12:50:47]wPrintStart [12:50:47]Write to MH i2c: 01 00 00 EF 25 14 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 EF 25 00 00 00 00 00 FF 0F 29 [12:50:47]RasterBufferAndPrint [12:50:47]line Счет N : (1)717830 [12:50:47]line ИНН: 02508201610067 [12:50:47]line Контрольно-Кассовый Чек [12:50:47]line ПРОДАЖА [12:50:47]line ТРК (МРК, ГНК) : 42 [12:50:47]line Товар: 2710124130 [12:50:47]line Аи-92-К-4 [12:50:47]line 8.910 * 67.40 [12:50:47]line = 600.53 [12:50:47]line НДС 12% НСП 1% [12:50:47]line > о реализуемом товаре [12:50:47]line ОКРУГЛЕНИЕ: -0.53 [12:50:47]line ИТОГО: 600.00 [12:50:47]line Внесено: 600.00 [12:50:47]line СДАЧА: 0.00 [12:50:47]line НСП 1% : 5.31 [12:50:47]line НДС 12% : 63.77 [12:50:47]line Наличными: 600.00 [12:50:47]line Безнал.: 0.00 [12:50:47]line Место: АЗС № 64 "Партнер Нефть" [12:50:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:50:47]line СНО: Общий режим [12:50:47]line Чек 76 25.11.2024 12:50 [12:50:47]line Смена: 556 ФФД: 1.0 [12:50:47]line ЗНМ: 0300000033 [12:50:47]line РНМ: 0000000000092681 [12:50:47]line Версия ККМ: 001 [12:50:47]line ФМ: 0000000000874881 [12:50:47]line ФД: 123035 [12:50:47]line ФПД: 254571974213054 [12:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T125051&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123035&fm=254571974213054&tin=02508201610067®Number=0000000000092681&sum=60000 [12:50:48]OFD Sender: Processing packet 123035 [packets to send 7, broken 6] [12:50:48]ProducePacketName [12:50:48]name=ofd_packets/00123035 [12:50:48]OFD Sender: To server: pG, [12:50:48]CommunicateWithHost lk.salyk.kg:30040 [12:50:48]ConnectInit lk.salyk.kg [12:50:48]written 0, free lines is 4095 [12:50:48]Connected sock=9 [12:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 85 92 07 01 68 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AB 72 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E0 01 00 35 04 06 00 E7 88 28 17 BD BE A8 D2 13 7B 21 B6 79 60 [12:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 63 87 47 00 11 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E0 01 00 F4 03 04 00 70 1E 44 67 B6 04 01 00 00 D7 1C 8D AC 62 77 B2 54 [12:50:48]CommunicateWithHost err = 0 [12:50:48]CheckOFDResponse [12:50:48]1017 (14) - 77093643461234 [12:50:48]1041 (16) - 0000000000874881 [12:50:48]1040 (4) - 123035 [12:50:48]1012 (4) - 25.11.2024 06:51 [12:50:48]1206 (1) - 0 [12:50:48]OFD Sender: Remove packet 123035 [12:50:48]ProducePacketName [12:50:48]name=ofd_packets/00123035 [12:50:48]NVStorageDeleteData [12:50:48]Write to MH i2c: 01 00 00 1A 26 40 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 1A 26 00 00 00 00 00 48 0C 9B [12:50:48]RasterBufferAndPrint [12:50:48]line [12:50:48]line [12:50:48]line [12:50:48]line [12:50:48]line [12:50:48]written 0, free lines is 3149 [12:50:48]MH_Cut [12:50:48]Write to MH i2c: D1 01 00 21 26 01 19 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: D1 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: D1 01 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: D1 01 00 21 26 00 18 [12:50:48]Write to MH i2c: 01 00 00 22 26 48 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]OFD Sender: No OFD packet to send [12:50:49]*** Cut start [12:50:49]*** Partial cut [12:50:49]*** CUTSNS_PIN = 1 [12:50:49]*** CUTSNS_PIN = 0 [12:50:50]*** Brake cut motor [12:50:50]Read from MH i2c: 01 [12:50:50]MH_I2C_Read... [12:50:50]*** Stop cut motor [12:50:50]*** Cut end [12:50:50]Read from MH i2c: 01 07 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: 01 07 00 22 26 00 00 00 00 00 FF 0F 5D [12:50:50]process_action close_receipt done [12:50:50]requested_data is exist [12:50:50]produce_requested_data [12:50:50]requested_item fm.sn is exist - process it [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 11 00 00 [12:50:50]Write to MH i2c: E2 08 00 23 26 80 11 00 00 00 00 00 00 C3 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 17 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 17 00 23 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1A [12:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:50:50]wFMCommunicate OK [12:50:50]requested_item fd.num is exist - process it [12:50:50]SAM_PROTO_GetFieldsCounters [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 13 00 00 [12:50:50]Write to MH i2c: E2 08 00 24 26 80 13 00 00 00 00 00 00 C6 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 62 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 62 00 24 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9B E0 01 00 0E 04 04 00 2C 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 7A [12:50:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9B E0 01 00 0E 04 04 00 2C 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 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_GetFieldsCounters done [12:50:50]requested_item shift.num is exist - process it [12:50:50]requested_item shift.opened is exist - process it [12:50:50]req_shift_opened [12:50:50]FM_GetShiftState [12:50:50]SAM_PROTO_GetShiftState [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 13 01 00 [12:50:50]Write to MH i2c: E2 08 00 25 26 80 13 01 00 00 00 00 00 C8 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 25 26 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 47 [12:50:50]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_GetShiftState done [12:50:50]FM_GetShiftState done [12:50:50]req_shift_opened done [12:50:50]requested_item shift.open_date is exist - process it [12:50:50]req_shift_open_date [12:50:50]req_shift_open_date done [12:50:50]produce_requested_data done [12:50:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123035,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:50:50]process_action_free close_receipt [12:50:50]json_value_free [12:50:50]json_value_free done [12:50:50]process_json_proto returns [12:50:50]Send response to host [12:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123035,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:50:50]free response buf [12:50:50]execute_script done [12:50:50]execute_script returns [12:50:50]free content buf [12:50:50]Sock 10.Close socket [12:50:50]Sock 10.Thread stoped [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:47]accept exits with 7 [12:59:47]New connection [12:59:47]New thread 3066723684 created [12:59:47]Thread 3066580324 joined [12:59:47]Waiting for new connection... [12:59:47] Sock 7.Parse request [12:59:47]Sock 7.Check first char [12:59:47]Sock 7.First char is OK [12:59:47]request: POST /json_proto HTTP/1.0 [12:59:47]Method: POST [12:59:47]URL: /json_proto [12:59:47]Method is POST - this is cgi request [12:59:47]url: /json_proto [12:59:47]query_string will be loaded in cgi processing [12:59:47]execute_cgi json_proto POST (null) [12:59:47]execute_cgi path=json_proto method=POST [12:59:47]POST find Content-Length [12:59:47]Host: 172.17.37.4:8080 [12:59:47]Content-Length: 677 [12:59:47]Content-Type: application/json [12:59:47] [12:59:47]POST finish read [12:59:47]Found Content-Length = 677 [12:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:47]execute_script... [12:59:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:47]POST & json_proto [12:59:47]process_json_proto [12:59:47]json parsed OK: [12:59:47]protocol is kg_v1.0 [12:59:47]action value=close_receipt [12:59:47]process_action close_receipt [12:59:47]cmd_close_receipt [12:59:47]MH_GetDate [12:59:47]Write to MH i2c: F0 00 00 26 26 3B [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: F0 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: F0 09 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: F0 09 00 26 26 00 C8 74 44 67 B8 5A 43 67 E7 [12:59:47]GetLastDocTimeStamp 1732539051 [12:59:47]current date 1732539592 [12:59:47]FM_GetShiftState [12:59:47]SAM_PROTO_GetShiftState [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 13 01 00 [12:59:47]Write to MH i2c: E2 08 00 27 26 80 13 01 00 00 00 00 00 CA [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 0E 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 0E 00 27 26 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 49 [12:59:47]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:59:47]wFMCommunicate OK [12:59:47]SAM_PROTO_GetShiftState done [12:59:47]FM_GetShiftState done [12:59:47]opened in 1732493066 [12:59:47]opened+sec_in_day 1732579466 [12:59:47]quantity*price = 20017 [12:59:47]sum+1 = 20019 [12:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 77 25.11.2024 12:59 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123036 ФПД: 59716530823681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T125952&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123036&fm=59716530823681&tin=02508201610067®Number=0000000000092681&sum=20000 [12:59:48]StoreToDocumentArchive [12:59:48]shift 556 fd 123036 [12:59:48]save to /storage/0556/doc_00123036 [12:59:48]save last doc name /storage/0556/doc_00123036 to /storage/kkm_last_doc_name [12:59:48]save OK [12:59:48]Clear old archive folders... [12:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:48]tlvbuf is 01F46A40 [12:59:48]SAM_PROTO_ClearQueue [12:59:48]wFMCommunicate request_size=4 [12:59:48]MH_SAM_APDU [12:59:48]CAPDU: 80 09 00 00 [12:59:48]Write to MH i2c: E2 08 00 34 26 80 09 00 00 00 00 00 00 CC [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:48]Read from MH i2c: E2 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 03 00 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 03 00 34 26 00 90 00 CE [12:59:48]RAPDU: 90 00 [12:59:48]wFMCommunicate OK [12:59:48]SAM_PROTO_ClearQueue done [12:59:48]KKMCreateOFDPacket [12:59:48]OFDProtocolAddRootSTLVToBuf [12:59:48]FM_MakeSignedData [12:59:48]FM_MakeSignedData [12:59:48]SAM_PROTO_SignData [12:59:48]wFMCommunicate request_size=4 [12:59:48]MH_SAM_APDU [12:59:48]CAPDU: 80 0D 01 02 [12:59:48]Write to MH i2c: E2 08 00 35 26 80 0D 01 02 00 00 00 00 D4 [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:48]Read from MH i2c: E2 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 03 00 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 03 00 35 26 00 90 00 CF [12:59:48]RAPDU: 90 00 [12:59:48]wFMCommunicate OK [12:59:48]wFMCommunicate request_size=255 [12:59:48]MH_SAM_APDU [12:59:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 4D 00 00 00 F4 03 04 00 C8 74 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E0 01 00 35 04 06 00 36 [12:59:48]Write to MH i2c: E2 02 01 36 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 4D 00 00 00 F4 03 04 00 C8 74 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E0 01 00 35 04 06 00 36 00 00 6D [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 36 26 00 90 00 D0 [12:59:49]RAPDU: 90 00 [12:59:49]wFMCommunicate OK [12:59:49]wFMCommunicate request_size=10 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 0D 02 02 05 4F D6 9B 62 01 [12:59:49]Write to MH i2c: E2 0D 00 37 26 80 0D 02 02 05 00 4F D6 9B 62 01 00 00 04 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 03 00 37 26 00 90 00 D1 [12:59:49]RAPDU: 90 00 [12:59:49]wFMCommunicate OK [12:59:49]wFMCommunicate request_size=4 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 0D 03 02 [12:59:49]Write to MH i2c: E2 08 00 38 26 80 0D 03 02 00 00 00 00 D9 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 0B 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 0B 00 38 26 00 21 DB C8 FC B5 FA 34 F5 90 00 72 [12:59:49]RAPDU: 21 DB C8 FC B5 FA 34 F5 90 00 [12:59:49]wFMCommunicate OK [12:59:49]SAM_PROTO_SignData done [12:59:49]FM_MakeSignedData done [12:59:49]CreateOFDProtocolMessage [12:59:49]wFMCommunicate request_size=4 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 11 00 00 [12:59:49]Write to MH i2c: E2 08 00 39 26 80 11 00 00 00 00 00 00 D9 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 17 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 17 00 39 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 30 [12:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:59:49]wFMCommunicate OK [12:59:49]CreateOFDProtocolMessage done [12:59:49]OFDSenderStorePacket 123036 [12:59:49]StoreOFDPacket docnum=123036 [12:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5F A5 07 01 47 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 4D 00 00 00 F4 03 04 00 C8 74 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E0 01 00 35 04 06 00 36 4F D6 9B 62 01 21 DB C8 FC B5 FA 34 F5 [12:59:49]CheckFolder [12:59:49]dirname=/storage/ofd_packets [12:59:49]CheckFolder done [12:59:49]ProducePacketName [12:59:49]name=ofd_packets/00123036 [12:59:49]NVStorageSaveData ofd_packets/00123036 [12:59:49]File name is /storage/ofd_packets/00123036 [12:59:49]Write 301 bytes [12:59:49]NVStorageSaveData done [12:59:49]OFDSenderStorePacket done [12:59:49]KKMCreateOFDPacket done [12:59:49]NVStorageSaveData kkm_last_timestamp [12:59:49]File name is /storage/kkm_last_timestamp [12:59:49]Write 4 bytes [12:59:49]NVStorageSaveData done [12:59:49]ExternCall_PrintAddStr [12:59:49]wPrintStart [12:59:49]Write to MH i2c: 01 00 00 3A 26 60 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 3A 26 00 00 00 00 00 FF 0F 75 [12:59:49]RasterBufferAndPrint [12:59:49]line Счет N : (1)717831 [12:59:49]line ИНН: 02508201610067 [12:59:49]line Контрольно-Кассовый Чек [12:59:49]line ПРОДАЖА [12:59:49]line ТРК (МРК, ГНК) : 22 [12:59:49]line Товар: 2710124130 [12:59:49]line Аи-92-К-4 [12:59:49]line 2.970 * 67.40 [12:59:49]line = 200.18 [12:59:49]line НДС 12% НСП 1% [12:59:49]line > о реализуемом товаре [12:59:49]line ОКРУГЛЕНИЕ: -0.18 [12:59:49]line ИТОГО: 200.00 [12:59:49]line Внесено: 200.00 [12:59:49]line СДАЧА: 0.00 [12:59:49]line НСП 1% : 1.77 [12:59:49]line НДС 12% : 21.26 [12:59:49]line Наличными: 200.00 [12:59:49]line Безнал.: 0.00 [12:59:49]line Место: АЗС № 64 "Партнер Нефть" [12:59:49]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:59:49]line СНО: Общий режим [12:59:49]line Чек 77 25.11.2024 12:59 [12:59:49]line Смена: 556 ФФД: 1.0 [12:59:49]line ЗНМ: 0300000033 [12:59:49]line РНМ: 0000000000092681 [12:59:49]line Версия ККМ: 001 [12:59:49]line ФМ: 0000000000874881 [12:59:49]line ФД: 123036 [12:59:49]line ФПД: 59716530823681 [12:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T125952&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123036&fm=59716530823681&tin=02508201610067®Number=0000000000092681&sum=20000 [12:59:49]OFD Sender: Processing packet 123036 [packets to send 7, broken 6] [12:59:49]ProducePacketName [12:59:49]name=ofd_packets/00123036 [12:59:49]OFD Sender: To server: pG, [12:59:49]CommunicateWithHost lk.salyk.kg:30040 [12:59:49]ConnectInit lk.salyk.kg [12:59:49]written 0, free lines is 4095 [12:59:49]Connected sock=10 [12:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5F A5 07 01 47 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 4D 00 00 00 F4 03 04 00 C8 74 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E0 01 00 35 04 06 00 36 4F D6 9B 62 01 21 DB C8 FC B5 FA 34 F5 [12:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6A 42 47 00 E3 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E0 01 00 F4 03 04 00 8E 20 44 67 B6 04 01 00 00 09 84 2B A5 BF E0 20 DB [12:59:49]CommunicateWithHost err = 0 [12:59:49]CheckOFDResponse [12:59:49]1017 (14) - 77093643461234 [12:59:49]1041 (16) - 0000000000874881 [12:59:49]1040 (4) - 123036 [12:59:49]1012 (4) - 25.11.2024 07:00 [12:59:49]1206 (1) - 0 [12:59:49]OFD Sender: Remove packet 123036 [12:59:49]ProducePacketName [12:59:49]name=ofd_packets/00123036 [12:59:49]NVStorageDeleteData [12:59:49]Write to MH i2c: 01 00 00 65 26 8B [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 65 26 00 00 00 00 00 46 0C E4 [12:59:49]RasterBufferAndPrint [12:59:49]line [12:59:49]line [12:59:49]line [12:59:49]line [12:59:49]line [12:59:50]written 0, free lines is 3147 [12:59:50]MH_Cut [12:59:50]Write to MH i2c: D1 01 00 6C 26 01 64 [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: D1 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: D1 01 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: D1 01 00 6C 26 00 63 [12:59:50]Write to MH i2c: 01 00 00 6D 26 93 [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]OFD Sender: No OFD packet to send [12:59:51]*** Cut start [12:59:51]*** Partial cut [12:59:51]*** CUTSNS_PIN = 1 [12:59:51]*** CUTSNS_PIN = 0 [12:59:51]*** Brake cut motor [12:59:51]Read from MH i2c: 01 [12:59:52]MH_I2C_Read... [12:59:52]*** Stop cut motor [12:59:52]*** Cut end [12:59:52]Read from MH i2c: 01 07 00 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: 01 07 00 6D 26 00 00 00 00 00 FF 0F A8 [12:59:52]process_action close_receipt done [12:59:52]requested_data is exist [12:59:52]produce_requested_data [12:59:52]requested_item fm.sn is exist - process it [12:59:52]wFMCommunicate request_size=4 [12:59:52]MH_SAM_APDU [12:59:52]CAPDU: 80 11 00 00 [12:59:52]Write to MH i2c: E2 08 00 6E 26 80 11 00 00 00 00 00 00 0E [12:59:52]Write i2c OK [12:59:52]MH_I2C_Read... [12:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:52]Read from MH i2c: E2 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: E2 17 00 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: E2 17 00 6E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 65 [12:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:59:52]wFMCommunicate OK [12:59:52]requested_item fd.num is exist - process it [12:59:52]SAM_PROTO_GetFieldsCounters [12:59:52]wFMCommunicate request_size=4 [12:59:52]MH_SAM_APDU [12:59:52]CAPDU: 80 13 00 00 [12:59:52]Write to MH i2c: E2 08 00 6F 26 80 13 00 00 00 00 00 00 11 [12:59:52]Write i2c OK [12:59:52]MH_I2C_Read... [12:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:52]Read from MH i2c: E2 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: E2 62 00 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: E2 62 00 6F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9C E0 01 00 0E 04 04 00 2C 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 C9 [12:59:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9C E0 01 00 0E 04 04 00 2C 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 [12:59:52]wFMCommunicate OK [12:59:52]SAM_PROTO_GetFieldsCounters done [12:59:52]requested_item shift.num is exist - process it [12:59:52]requested_item shift.opened is exist - process it [12:59:52]req_shift_opened [12:59:52]FM_GetShiftState [12:59:52]SAM_PROTO_GetShiftState [12:59:52]wFMCommunicate request_size=4 [12:59:52]MH_SAM_APDU [12:59:52]CAPDU: 80 13 01 00 [12:59:52]Write to MH i2c: E2 08 00 70 26 80 13 01 00 00 00 00 00 13 [12:59:52]Write i2c OK [12:59:52]MH_I2C_Read... [12:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:52]Read from MH i2c: E2 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: E2 0E 00 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: E2 0E 00 70 26 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 92 [12:59:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [12:59:52]wFMCommunicate OK [12:59:52]SAM_PROTO_GetShiftState done [12:59:52]FM_GetShiftState done [12:59:52]req_shift_opened done [12:59:52]requested_item shift.open_date is exist - process it [12:59:52]req_shift_open_date [12:59:52]req_shift_open_date done [12:59:52]produce_requested_data done [12:59:52]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123036,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [12:59:52]process_action_free close_receipt [12:59:52]json_value_free [12:59:52]json_value_free done [12:59:52]process_json_proto returns [12:59:52]Send response to host [12:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123036,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [12:59:52]free response buf [12:59:52]execute_script done [12:59:52]execute_script returns [12:59:52]free content buf [12:59:52]Sock 7.Close socket [12:59:52]Sock 7.Thread stoped [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]accept exits with 9 [13:02:40]New connection [13:02:40]New thread 3066580324 created [13:02:40]Thread 3066723684 joined [13:02:40]Waiting for new connection... [13:02:40] Sock 9.Parse request [13:02:40]Sock 9.Check first char [13:02:40]Sock 9.First char is OK [13:02:40]request: POST /json_proto HTTP/1.0 [13:02:40]Method: POST [13:02:40]URL: /json_proto [13:02:40]Method is POST - this is cgi request [13:02:40]url: /json_proto [13:02:40]query_string will be loaded in cgi processing [13:02:40]execute_cgi json_proto POST (null) [13:02:40]execute_cgi path=json_proto method=POST [13:02:40]POST find Content-Length [13:02:40]Host: 172.17.37.4:8080 [13:02:40]Content-Length: 686 [13:02:40]Content-Type: application/json [13:02:40] [13:02:40]POST finish read [13:02:40]Found Content-Length = 686 [13:02:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:40]execute_script... [13:02:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:40]POST & json_proto [13:02:40]process_json_proto [13:02:40]json parsed OK: [13:02:40]protocol is kg_v1.0 [13:02:40]action value=close_receipt [13:02:40]process_action close_receipt [13:02:40]cmd_close_receipt [13:02:40]MH_GetDate [13:02:40]Write to MH i2c: F0 00 00 71 26 86 [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: F0 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: F0 09 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: F0 09 00 71 26 00 75 75 44 67 B8 5A 43 67 E0 [13:02:40]GetLastDocTimeStamp 1732539592 [13:02:40]current date 1732539765 [13:02:40]FM_GetShiftState [13:02:40]SAM_PROTO_GetShiftState [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 13 01 00 [13:02:40]Write to MH i2c: E2 08 00 72 26 80 13 01 00 00 00 00 00 15 [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:40]Read from MH i2c: E2 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 0E 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 0E 00 72 26 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 94 [13:02:40]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:02:40]wFMCommunicate OK [13:02:40]SAM_PROTO_GetShiftState done [13:02:40]FM_GetShiftState done [13:02:40]opened in 1732493066 [13:02:40]opened+sec_in_day 1732579466 [13:02:40]quantity*price = 100066 [13:02:40]sum+1 = 100067 [13:02:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 78 25.11.2024 13:02 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123037 ФПД: 587442829406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T130245&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123037&fm=587442829406&tin=02508201610067®Number=0000000000092681&sum=100000 [13:02:41]StoreToDocumentArchive [13:02:41]shift 556 fd 123037 [13:02:41]save to /storage/0556/doc_00123037 [13:02:41]save last doc name /storage/0556/doc_00123037 to /storage/kkm_last_doc_name [13:02:41]save OK [13:02:41]Clear old archive folders... [13:02:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:02:41]tlvbuf is 01F42520 [13:02:41]SAM_PROTO_ClearQueue [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 09 00 00 [13:02:41]Write to MH i2c: E2 08 00 7F 26 80 09 00 00 00 00 00 00 17 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 7F 26 00 90 00 19 [13:02:41]RAPDU: 90 00 [13:02:41]wFMCommunicate OK [13:02:41]SAM_PROTO_ClearQueue done [13:02:41]KKMCreateOFDPacket [13:02:41]OFDProtocolAddRootSTLVToBuf [13:02:41]FM_MakeSignedData [13:02:41]FM_MakeSignedData [13:02:41]SAM_PROTO_SignData [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 0D 01 02 [13:02:41]Write to MH i2c: E2 08 00 80 26 80 0D 01 02 00 00 00 00 1F [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 80 26 00 90 00 1A [13:02:41]RAPDU: 90 00 [13:02:41]wFMCommunicate OK [13:02:41]wFMCommunicate request_size=255 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 75 75 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E0 01 00 35 04 06 00 [13:02:41]Write to MH i2c: E2 02 01 81 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 75 75 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E0 01 00 35 04 06 00 00 00 95 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 81 26 00 90 00 1B [13:02:41]RAPDU: 90 00 [13:02:41]wFMCommunicate OK [13:02:41]wFMCommunicate request_size=11 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 0D 02 02 06 00 88 C6 52 38 5E [13:02:41]Write to MH i2c: E2 0E 00 82 26 80 0D 02 02 06 00 00 88 C6 52 38 5E 00 00 64 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 82 26 00 90 00 1C [13:02:41]RAPDU: 90 00 [13:02:41]wFMCommunicate OK [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 0D 03 02 [13:02:41]Write to MH i2c: E2 08 00 83 26 80 0D 03 02 00 00 00 00 24 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0B 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0B 00 83 26 00 67 67 36 55 FE A3 FB 35 90 00 4F [13:02:41]RAPDU: 67 67 36 55 FE A3 FB 35 90 00 [13:02:41]wFMCommunicate OK [13:02:41]SAM_PROTO_SignData done [13:02:41]FM_MakeSignedData done [13:02:41]CreateOFDProtocolMessage [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 11 00 00 [13:02:41]Write to MH i2c: E2 08 00 84 26 80 11 00 00 00 00 00 00 24 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 17 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 17 00 84 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7B [13:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:02:41]wFMCommunicate OK [13:02:41]CreateOFDProtocolMessage done [13:02:41]OFDSenderStorePacket 123037 [13:02:41]StoreOFDPacket docnum=123037 [13:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 09 5E 08 01 A4 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 75 75 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E0 01 00 35 04 06 00 00 88 C6 52 38 5E 67 67 36 55 FE A3 FB 35 [13:02:41]CheckFolder [13:02:41]dirname=/storage/ofd_packets [13:02:41]CheckFolder done [13:02:41]ProducePacketName [13:02:41]name=ofd_packets/00123037 [13:02:41]NVStorageSaveData ofd_packets/00123037 [13:02:41]File name is /storage/ofd_packets/00123037 [13:02:41]Write 302 bytes [13:02:41]NVStorageSaveData done [13:02:41]OFDSenderStorePacket done [13:02:41]KKMCreateOFDPacket done [13:02:41]NVStorageSaveData kkm_last_timestamp [13:02:41]File name is /storage/kkm_last_timestamp [13:02:41]Write 4 bytes [13:02:41]NVStorageSaveData done [13:02:41]ExternCall_PrintAddStr [13:02:41]wPrintStart [13:02:41]Write to MH i2c: 01 00 00 85 26 AB [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: 01 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: 01 07 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: 01 07 00 85 26 00 00 00 00 00 FF 0F C0 [13:02:41]RasterBufferAndPrint [13:02:41]line Счет N : (1)717832 [13:02:41]line ИНН: 02508201610067 [13:02:41]line Контрольно-Кассовый Чек [13:02:41]line ПРОДАЖА [13:02:41]line ТРК (МРК, ГНК) : 6 [13:02:41]line Товар: 2710194210 [13:02:41]line ДТ(л)-К-5 [13:02:41]line 13.360 * 74.90 [13:02:41]line = 1000.66 [13:02:41]line НДС 12% НСП 1% [13:02:41]line > о реализуемом товаре [13:02:41]line ОКРУГЛЕНИЕ: -0.66 [13:02:41]line ИТОГО: 1000.00 [13:02:41]line Внесено: 1000.00 [13:02:41]line СДАЧА: 0.00 [13:02:41]line НСП 1% : 8.85 [13:02:41]line НДС 12% : 106.26 [13:02:41]line Наличными: 1000.00 [13:02:41]line Безнал.: 0.00 [13:02:41]line Место: АЗС № 64 "Партнер Нефть" [13:02:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:02:41]line СНО: Общий режим [13:02:41]line Чек 78 25.11.2024 13:02 [13:02:41]line Смена: 556 ФФД: 1.0 [13:02:41]line ЗНМ: 0300000033 [13:02:41]line РНМ: 0000000000092681 [13:02:41]line Версия ККМ: 001 [13:02:41]line ФМ: 0000000000874881 [13:02:41]line ФД: 123037 [13:02:41]line ФПД: 587442829406 [13:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T130245&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123037&fm=587442829406&tin=02508201610067®Number=0000000000092681&sum=100000 [13:02:42]OFD Sender: Processing packet 123037 [packets to send 7, broken 6] [13:02:42]ProducePacketName [13:02:42]name=ofd_packets/00123037 [13:02:42]OFD Sender: To server: pG, [13:02:42]CommunicateWithHost lk.salyk.kg:30040 [13:02:42]ConnectInit lk.salyk.kg [13:02:42]written 0, free lines is 4095 [13:02:42]Connected sock=10 [13:02:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 09 5E 08 01 A4 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 75 75 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E0 01 00 35 04 06 00 00 88 C6 52 38 5E 67 67 36 55 FE A3 FB 35 [13:02:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 21 06 47 00 F7 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E0 01 00 F4 03 04 00 3A 21 44 67 B6 04 01 00 00 09 50 6D 54 DA 0A 4D 97 [13:02:42]CommunicateWithHost err = 0 [13:02:42]CheckOFDResponse [13:02:42]1017 (14) - 77093643461234 [13:02:42]1041 (16) - 0000000000874881 [13:02:42]1040 (4) - 123037 [13:02:42]1012 (4) - 25.11.2024 07:03 [13:02:42]1206 (1) - 0 [13:02:42]OFD Sender: Remove packet 123037 [13:02:42]ProducePacketName [13:02:42]name=ofd_packets/00123037 [13:02:42]NVStorageDeleteData [13:02:42]Write to MH i2c: 01 00 00 B0 26 D6 [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: 01 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: 01 07 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: 01 07 00 B0 26 00 00 00 00 00 49 0C 32 [13:02:42]RasterBufferAndPrint [13:02:42]line [13:02:42]line [13:02:42]line [13:02:42]line [13:02:42]line [13:02:42]written 0, free lines is 3150 [13:02:42]MH_Cut [13:02:42]Write to MH i2c: D1 01 00 B7 26 01 AF [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: D1 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: D1 01 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: D1 01 00 B7 26 00 AE [13:02:42]Write to MH i2c: 01 00 00 B8 26 DE [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]OFD Sender: No OFD packet to send [13:02:43]*** Cut start [13:02:43]*** Partial cut [13:02:43]*** CUTSNS_PIN = 1 [13:02:44]*** CUTSNS_PIN = 0 [13:02:44]*** Brake cut motor [13:02:44]Read from MH i2c: 01 [13:02:44]MH_I2C_Read... [13:02:44]*** Stop cut motor [13:02:44]*** Cut end [13:02:44]Read from MH i2c: 01 07 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 B8 26 00 00 00 00 00 FF 0F F3 [13:02:44]process_action close_receipt done [13:02:44]requested_data is exist [13:02:44]produce_requested_data [13:02:44]requested_item fm.sn is exist - process it [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 11 00 00 [13:02:44]Write to MH i2c: E2 08 00 B9 26 80 11 00 00 00 00 00 00 59 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 17 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 17 00 B9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B0 [13:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:02:44]wFMCommunicate OK [13:02:44]requested_item fd.num is exist - process it [13:02:44]SAM_PROTO_GetFieldsCounters [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 13 00 00 [13:02:44]Write to MH i2c: E2 08 00 BA 26 80 13 00 00 00 00 00 00 5C [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 62 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 62 00 BA 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9D E0 01 00 0E 04 04 00 2C 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 18 [13:02:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9D E0 01 00 0E 04 04 00 2C 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 [13:02:44]wFMCommunicate OK [13:02:44]SAM_PROTO_GetFieldsCounters done [13:02:44]requested_item shift.num is exist - process it [13:02:44]requested_item shift.opened is exist - process it [13:02:44]req_shift_opened [13:02:44]FM_GetShiftState [13:02:44]SAM_PROTO_GetShiftState [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 13 01 00 [13:02:44]Write to MH i2c: E2 08 00 BB 26 80 13 01 00 00 00 00 00 5E [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 0E 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 0E 00 BB 26 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 DD [13:02:44]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:02:44]wFMCommunicate OK [13:02:44]SAM_PROTO_GetShiftState done [13:02:44]FM_GetShiftState done [13:02:44]req_shift_opened done [13:02:44]requested_item shift.open_date is exist - process it [13:02:44]req_shift_open_date [13:02:44]req_shift_open_date done [13:02:44]produce_requested_data done [13:02:44]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123037,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:02:44]process_action_free close_receipt [13:02:44]json_value_free [13:02:44]json_value_free done [13:02:44]process_json_proto returns [13:02:44]Send response to host [13:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123037,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:02:44]free response buf [13:02:44]execute_script done [13:02:44]execute_script returns [13:02:44]free content buf [13:02:44]Sock 9.Close socket [13:02:44]Sock 9.Thread stoped [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]accept exits with 7 [13:16:28]New connection [13:16:28]New thread 3066723684 created [13:16:28]Thread 3066580324 joined [13:16:28]Waiting for new connection... [13:16:28] Sock 7.Parse request [13:16:28]Sock 7.Check first char [13:16:28]Sock 7.First char is OK [13:16:28]request: POST /json_proto HTTP/1.0 [13:16:28]Method: POST [13:16:28]URL: /json_proto [13:16:28]Method is POST - this is cgi request [13:16:28]url: /json_proto [13:16:28]query_string will be loaded in cgi processing [13:16:28]execute_cgi json_proto POST (null) [13:16:28]execute_cgi path=json_proto method=POST [13:16:28]POST find Content-Length [13:16:28]Host: 172.17.37.4:8080 [13:16:28]Content-Length: 686 [13:16:28]Content-Type: application/json [13:16:28] [13:16:28]POST finish read [13:16:28]Found Content-Length = 686 [13:16:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 21.370, "sum" : 1600.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:28]execute_script... [13:16: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)717833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 21.370, "sum" : 1600.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:28]POST & json_proto [13:16:28]process_json_proto [13:16:28]json parsed OK: [13:16:28]protocol is kg_v1.0 [13:16:28]action value=close_receipt [13:16:28]process_action close_receipt [13:16:28]cmd_close_receipt [13:16:28]MH_GetDate [13:16:28]Write to MH i2c: F0 00 00 BC 26 D1 [13:16:28]Write i2c OK [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: F0 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: F0 09 00 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: F0 09 00 BC 26 00 B1 78 44 67 B8 5A 43 67 6A [13:16:28]GetLastDocTimeStamp 1732539765 [13:16:28]current date 1732540593 [13:16:28]FM_GetShiftState [13:16:28]SAM_PROTO_GetShiftState [13:16:28]wFMCommunicate request_size=4 [13:16:28]MH_SAM_APDU [13:16:28]CAPDU: 80 13 01 00 [13:16:28]Write to MH i2c: E2 08 00 BD 26 80 13 01 00 00 00 00 00 60 [13:16:28]Write i2c OK [13:16:28]MH_I2C_Read... [13:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:28]Read from MH i2c: E2 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 0E 00 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 0E 00 BD 26 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 DF [13:16:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:16:28]wFMCommunicate OK [13:16:28]SAM_PROTO_GetShiftState done [13:16:28]FM_GetShiftState done [13:16:28]opened in 1732493066 [13:16:28]opened+sec_in_day 1732579466 [13:16:28]quantity*price = 160061 [13:16:28]sum+1 = 160062 [13:16:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.98 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 79 25.11.2024 13:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123038 ФПД: 123133401113162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T131633&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123038&fm=123133401113162&tin=02508201610067®Number=0000000000092681&sum=160000 [13:16:29]StoreToDocumentArchive [13:16:29]shift 556 fd 123038 [13:16:29]save to /storage/0556/doc_00123038 [13:16:29]save last doc name /storage/0556/doc_00123038 to /storage/kkm_last_doc_name [13:16:29]save OK [13:16:29]Clear old archive folders... [13:16:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:16:29]tlvbuf is 01F33550 [13:16:29]SAM_PROTO_ClearQueue [13:16:29]wFMCommunicate request_size=4 [13:16:29]MH_SAM_APDU [13:16:29]CAPDU: 80 09 00 00 [13:16:29]Write to MH i2c: E2 08 00 CA 26 80 09 00 00 00 00 00 00 62 [13:16:29]Write i2c OK [13:16:29]MH_I2C_Read... [13:16:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:29]Read from MH i2c: E2 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 03 00 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 03 00 CA 26 00 90 00 64 [13:16:29]RAPDU: 90 00 [13:16:29]wFMCommunicate OK [13:16:29]SAM_PROTO_ClearQueue done [13:16:29]KKMCreateOFDPacket [13:16:29]OFDProtocolAddRootSTLVToBuf [13:16:29]FM_MakeSignedData [13:16:29]FM_MakeSignedData [13:16:29]SAM_PROTO_SignData [13:16:29]wFMCommunicate request_size=4 [13:16:29]MH_SAM_APDU [13:16:29]CAPDU: 80 0D 01 02 [13:16:29]Write to MH i2c: E2 08 00 CB 26 80 0D 01 02 00 00 00 00 6A [13:16:29]Write i2c OK [13:16:29]MH_I2C_Read... [13:16:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:29]Read from MH i2c: E2 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 03 00 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 03 00 CB 26 00 90 00 65 [13:16:29]RAPDU: 90 00 [13:16:29]wFMCommunicate OK [13:16:29]wFMCommunicate request_size=255 [13:16:29]MH_SAM_APDU [13:16:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 53 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 3D 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B1 78 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E0 01 00 35 04 06 00 [13:16:29]Write to MH i2c: E2 02 01 CC 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 53 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 3D 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B1 78 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E0 01 00 35 04 06 00 00 00 7B [13:16:29]Write i2c OK [13:16:29]MH_I2C_Read... [13:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:29]Read from MH i2c: E2 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 03 00 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 03 00 CC 26 00 90 00 66 [13:16:29]RAPDU: 90 00 [13:16:29]wFMCommunicate OK [13:16:29]wFMCommunicate request_size=11 [13:16:29]MH_SAM_APDU [13:16:29]CAPDU: 80 0D 02 02 06 6F FD 3A A2 22 4A [13:16:29]Write to MH i2c: E2 0E 00 CD 26 80 0D 02 02 06 00 6F FD 3A A2 22 4A 00 00 2D [13:16:29]Write i2c OK [13:16:29]MH_I2C_Read... [13:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:29]Read from MH i2c: E2 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 03 00 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 03 00 CD 26 00 90 00 67 [13:16:29]RAPDU: 90 00 [13:16:29]wFMCommunicate OK [13:16:29]wFMCommunicate request_size=4 [13:16:29]MH_SAM_APDU [13:16:29]CAPDU: 80 0D 03 02 [13:16:29]Write to MH i2c: E2 08 00 CE 26 80 0D 03 02 00 00 00 00 6F [13:16:29]Write i2c OK [13:16:29]MH_I2C_Read... [13:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:29]Read from MH i2c: E2 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 0B 00 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 0B 00 CE 26 00 EC 17 F5 E6 23 A3 38 CF 90 00 1B [13:16:29]RAPDU: EC 17 F5 E6 23 A3 38 CF 90 00 [13:16:29]wFMCommunicate OK [13:16:29]SAM_PROTO_SignData done [13:16:29]FM_MakeSignedData done [13:16:29]CreateOFDProtocolMessage [13:16:29]wFMCommunicate request_size=4 [13:16:29]MH_SAM_APDU [13:16:29]CAPDU: 80 11 00 00 [13:16:29]Write to MH i2c: E2 08 00 CF 26 80 11 00 00 00 00 00 00 6F [13:16:29]Write i2c OK [13:16:29]MH_I2C_Read... [13:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:29]Read from MH i2c: E2 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 17 00 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: E2 17 00 CF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C6 [13:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:16:29]wFMCommunicate OK [13:16:29]CreateOFDProtocolMessage done [13:16:29]OFDSenderStorePacket 123038 [13:16:29]StoreOFDPacket docnum=123038 [13:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 75 9F 08 01 2E 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 53 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 3D 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B1 78 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E0 01 00 35 04 06 00 6F FD 3A A2 22 4A EC 17 F5 E6 23 A3 38 CF [13:16:29]CheckFolder [13:16:29]dirname=/storage/ofd_packets [13:16:29]CheckFolder done [13:16:29]ProducePacketName [13:16:29]name=ofd_packets/00123038 [13:16:29]NVStorageSaveData ofd_packets/00123038 [13:16:29]File name is /storage/ofd_packets/00123038 [13:16:29]Write 302 bytes [13:16:29]NVStorageSaveData done [13:16:29]OFDSenderStorePacket done [13:16:29]KKMCreateOFDPacket done [13:16:29]NVStorageSaveData kkm_last_timestamp [13:16:29]File name is /storage/kkm_last_timestamp [13:16:29]Write 4 bytes [13:16:29]NVStorageSaveData done [13:16:29]ExternCall_PrintAddStr [13:16:29]wPrintStart [13:16:29]Write to MH i2c: 01 00 00 D0 26 F6 [13:16:29]Write i2c OK [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: 01 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: 01 07 00 [13:16:29]MH_I2C_Read... [13:16:29]Read from MH i2c: 01 07 00 D0 26 00 00 00 00 00 FF 0F 0B [13:16:29]RasterBufferAndPrint [13:16:29]line Счет N : (1)717833 [13:16:29]line ИНН: 02508201610067 [13:16:29]line Контрольно-Кассовый Чек [13:16:29]line ПРОДАЖА [13:16:29]line ТРК (МРК, ГНК) : 6 [13:16:29]line Товар: 2710194210 [13:16:29]line ДТ(л)-К-5 [13:16:29]line 21.370 * 74.90 [13:16:29]line = 1600.61 [13:16:29]line НДС 12% НСП 1% [13:16:29]line > о реализуемом товаре [13:16:29]line ОКРУГЛЕНИЕ: -0.61 [13:16:29]line ИТОГО: 1600.00 [13:16:29]line Внесено: 1600.00 [13:16:29]line СДАЧА: 0.00 [13:16:29]line НСП 1% : 14.16 [13:16:29]line НДС 12% : 169.98 [13:16:29]line Наличными: 1600.00 [13:16:29]line Безнал.: 0.00 [13:16:29]line Место: АЗС № 64 "Партнер Нефть" [13:16:29]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:16:29]line СНО: Общий режим [13:16:29]line Чек 79 25.11.2024 13:16 [13:16:29]line Смена: 556 ФФД: 1.0 [13:16:29]line ЗНМ: 0300000033 [13:16:29]line РНМ: 0000000000092681 [13:16:29]line Версия ККМ: 001 [13:16:29]line ФМ: 0000000000874881 [13:16:29]line ФД: 123038 [13:16:29]line ФПД: 123133401113162 [13:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T131633&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123038&fm=123133401113162&tin=02508201610067®Number=0000000000092681&sum=160000 [13:16:30]OFD Sender: Processing packet 123038 [packets to send 7, broken 6] [13:16:30]ProducePacketName [13:16:30]name=ofd_packets/00123038 [13:16:30]OFD Sender: To server: pG, [13:16:30]CommunicateWithHost lk.salyk.kg:30040 [13:16:30]ConnectInit lk.salyk.kg [13:16:30]written 0, free lines is 4095 [13:16:30]Connected sock=10 [13:16:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 75 9F 08 01 2E 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 53 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 3D 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B1 78 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E0 01 00 35 04 06 00 6F FD 3A A2 22 4A EC 17 F5 E6 23 A3 38 CF [13:16:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 86 70 47 00 6B D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E0 01 00 F4 03 04 00 76 24 44 67 B6 04 01 00 00 DC 01 5A 83 55 40 D0 C3 [13:16:30]CommunicateWithHost err = 0 [13:16:30]CheckOFDResponse [13:16:30]1017 (14) - 77093643461234 [13:16:30]1041 (16) - 0000000000874881 [13:16:30]1040 (4) - 123038 [13:16:30]1012 (4) - 25.11.2024 07:17 [13:16:30]1206 (1) - 0 [13:16:30]OFD Sender: Remove packet 123038 [13:16:30]ProducePacketName [13:16:30]name=ofd_packets/00123038 [13:16:30]NVStorageDeleteData [13:16:30]Write to MH i2c: 01 00 00 FB 26 21 [13:16:30]Write i2c OK [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: 01 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: 01 07 00 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: 01 07 00 FB 26 00 00 00 00 00 47 0C 7B [13:16:30]RasterBufferAndPrint [13:16:30]line [13:16:30]line [13:16:30]line [13:16:30]line [13:16:30]line [13:16:30]written 0, free lines is 3147 [13:16:30]MH_Cut [13:16:30]Write to MH i2c: D1 01 00 02 27 01 FB [13:16:30]Write i2c OK [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: D1 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: D1 01 00 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: D1 01 00 02 27 00 FA [13:16:30]Write to MH i2c: 01 00 00 03 27 2A [13:16:30]Write i2c OK [13:16:30]MH_I2C_Read... [13:16:30]OFD Sender: No OFD packet to send [13:16:31]*** Cut start [13:16:31]*** Partial cut [13:16:31]*** CUTSNS_PIN = 1 [13:16:31]*** CUTSNS_PIN = 0 [13:16:32]*** Brake cut motor [13:16:32]Read from MH i2c: 01 [13:16:32]MH_I2C_Read... [13:16:32]*** Stop cut motor [13:16:32]*** Cut end [13:16:32]Read from MH i2c: 01 07 00 [13:16:32]MH_I2C_Read... [13:16:32]Read from MH i2c: 01 07 00 03 27 00 00 00 00 00 FF 0F 3F [13:16:32]process_action close_receipt done [13:16:32]requested_data is exist [13:16:32]produce_requested_data [13:16:32]requested_item fm.sn is exist - process it [13:16:32]wFMCommunicate request_size=4 [13:16:32]MH_SAM_APDU [13:16:32]CAPDU: 80 11 00 00 [13:16:32]Write to MH i2c: E2 08 00 04 27 80 11 00 00 00 00 00 00 A5 [13:16:32]Write i2c OK [13:16:32]MH_I2C_Read... [13:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:32]Read from MH i2c: E2 [13:16:32]MH_I2C_Read... [13:16:32]Read from MH i2c: E2 17 00 [13:16:32]MH_I2C_Read... [13:16:32]Read from MH i2c: E2 17 00 04 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FC [13:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:16:32]wFMCommunicate OK [13:16:32]requested_item fd.num is exist - process it [13:16:32]SAM_PROTO_GetFieldsCounters [13:16:32]wFMCommunicate request_size=4 [13:16:32]MH_SAM_APDU [13:16:32]CAPDU: 80 13 00 00 [13:16:32]Write to MH i2c: E2 08 00 05 27 80 13 00 00 00 00 00 00 A8 [13:16:32]Write i2c OK [13:16:32]MH_I2C_Read... [13:16:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:32]Read from MH i2c: E2 [13:16:32]MH_I2C_Read... [13:16:32]Read from MH i2c: E2 62 00 [13:16:32]MH_I2C_Read... [13:16:32]Read from MH i2c: E2 62 00 05 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9E E0 01 00 0E 04 04 00 2C 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 68 [13:16:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9E E0 01 00 0E 04 04 00 2C 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 [13:16:32]wFMCommunicate OK [13:16:32]SAM_PROTO_GetFieldsCounters done [13:16:32]requested_item shift.num is exist - process it [13:16:32]requested_item shift.opened is exist - process it [13:16:32]req_shift_opened [13:16:32]FM_GetShiftState [13:16:32]SAM_PROTO_GetShiftState [13:16:32]wFMCommunicate request_size=4 [13:16:32]MH_SAM_APDU [13:16:32]CAPDU: 80 13 01 00 [13:16:32]Write to MH i2c: E2 08 00 06 27 80 13 01 00 00 00 00 00 AA [13:16:32]Write i2c OK [13:16:32]MH_I2C_Read... [13:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:32]Read from MH i2c: E2 [13:16:32]MH_I2C_Read... [13:16:32]Read from MH i2c: E2 0E 00 [13:16:32]MH_I2C_Read... [13:16:32]Read from MH i2c: E2 0E 00 06 27 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 29 [13:16:32]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:16:32]wFMCommunicate OK [13:16:32]SAM_PROTO_GetShiftState done [13:16:32]FM_GetShiftState done [13:16:32]req_shift_opened done [13:16:32]requested_item shift.open_date is exist - process it [13:16:32]req_shift_open_date [13:16:32]req_shift_open_date done [13:16:32]produce_requested_data done [13:16:32]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123038,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:16:32]process_action_free close_receipt [13:16:32]json_value_free [13:16:32]json_value_free done [13:16:32]process_json_proto returns [13:16:32]Send response to host [13:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123038,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:16:32]free response buf [13:16:32]execute_script done [13:16:32]execute_script returns [13:16:32]free content buf [13:16:32]Sock 7.Close socket [13:16:32]Sock 7.Thread stoped [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:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:01]accept exits with 9 [13:20:01]New connection [13:20:01]New thread 3066580324 created [13:20:01]Thread 3066723684 joined [13:20:01]Waiting for new connection... [13:20:01] Sock 9.Parse request [13:20:01]Sock 9.Check first char [13:20:01]Sock 9.First char is OK [13:20:01]request: POST /json_proto HTTP/1.0 [13:20:01]Method: POST [13:20:01]URL: /json_proto [13:20:01]Method is POST - this is cgi request [13:20:01]url: /json_proto [13:20:01]query_string will be loaded in cgi processing [13:20:01]execute_cgi json_proto POST (null) [13:20:01]execute_cgi path=json_proto method=POST [13:20:01]POST find Content-Length [13:20:01]Host: 172.17.37.4:8080 [13:20:01]Content-Length: 678 [13:20:01]Content-Type: application/json [13:20:01] [13:20:01]POST finish read [13:20:01]Found Content-Length = 678 [13:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "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:20:01]execute_script... [13:20: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)717834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "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:20:01]POST & json_proto [13:20:01]process_json_proto [13:20:01]json parsed OK: [13:20:01]protocol is kg_v1.0 [13:20:01]action value=close_receipt [13:20:01]process_action close_receipt [13:20:01]cmd_close_receipt [13:20:01]MH_GetDate [13:20:01]Write to MH i2c: F0 00 00 07 27 1D [13:20:01]Write i2c OK [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: F0 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: F0 09 00 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: F0 09 00 07 27 00 86 79 44 67 B8 5A 43 67 8C [13:20:01]GetLastDocTimeStamp 1732540593 [13:20:01]current date 1732540806 [13:20:01]FM_GetShiftState [13:20:01]SAM_PROTO_GetShiftState [13:20:01]wFMCommunicate request_size=4 [13:20:01]MH_SAM_APDU [13:20:01]CAPDU: 80 13 01 00 [13:20:01]Write to MH i2c: E2 08 00 08 27 80 13 01 00 00 00 00 00 AC [13:20:01]Write i2c OK [13:20:01]MH_I2C_Read... [13:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:01]Read from MH i2c: E2 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: E2 0E 00 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: E2 0E 00 08 27 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2B [13:20:01]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:20:01]wFMCommunicate OK [13:20:01]SAM_PROTO_GetShiftState done [13:20:01]FM_GetShiftState done [13:20:01]opened in 1732493066 [13:20:01]opened+sec_in_day 1732579466 [13:20:01]quantity*price = 70028 [13:20:01]sum+1 = 70030 [13:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 80 25.11.2024 13:20 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123039 ФПД: 238900990757057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T132007&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123039&fm=238900990757057&tin=02508201610067®Number=0000000000092681&sum=70000 [13:20:03]StoreToDocumentArchive [13:20:03]shift 556 fd 123039 [13:20:03]save to /storage/0556/doc_00123039 [13:20:03]save last doc name /storage/0556/doc_00123039 to /storage/kkm_last_doc_name [13:20:03]save OK [13:20:03]Clear old archive folders... [13:20:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:03]tlvbuf is B6F20420 [13:20:03]SAM_PROTO_ClearQueue [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 09 00 00 [13:20:03]Write to MH i2c: E2 08 00 15 27 80 09 00 00 00 00 00 00 AE [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 15 27 00 90 00 B0 [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]SAM_PROTO_ClearQueue done [13:20:03]KKMCreateOFDPacket [13:20:03]OFDProtocolAddRootSTLVToBuf [13:20:03]FM_MakeSignedData [13:20:03]FM_MakeSignedData [13:20:03]SAM_PROTO_SignData [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 01 02 [13:20:03]Write to MH i2c: E2 08 00 16 27 80 0D 01 02 00 00 00 00 B6 [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 16 27 00 90 00 B1 [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]wFMCommunicate request_size=255 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 50 00 00 00 F4 03 04 00 87 79 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E0 01 00 35 04 06 00 D9 [13:20:03]Write to MH i2c: E2 02 01 17 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 50 00 00 00 F4 03 04 00 87 79 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E0 01 00 35 04 06 00 D9 00 00 AD [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 17 27 00 90 00 B2 [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]wFMCommunicate request_size=10 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 02 02 05 47 78 B0 C8 C1 [13:20:03]Write to MH i2c: E2 0D 00 18 27 80 0D 02 02 05 00 47 78 B0 C8 C1 00 00 BB [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 18 27 00 90 00 B3 [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 03 02 [13:20:03]Write to MH i2c: E2 08 00 19 27 80 0D 03 02 00 00 00 00 BB [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 0B 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 0B 00 19 27 00 34 04 42 2F 94 84 7F DD 90 00 D9 [13:20:03]RAPDU: 34 04 42 2F 94 84 7F DD 90 00 [13:20:03]wFMCommunicate OK [13:20:03]SAM_PROTO_SignData done [13:20:03]FM_MakeSignedData done [13:20:03]CreateOFDProtocolMessage [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 11 00 00 [13:20:03]Write to MH i2c: E2 08 00 1A 27 80 11 00 00 00 00 00 00 BB [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 17 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 17 00 1A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 12 [13:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:20:03]wFMCommunicate OK [13:20:03]CreateOFDProtocolMessage done [13:20:03]OFDSenderStorePacket 123039 [13:20:03]StoreOFDPacket docnum=123039 [13:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 05 53 07 01 52 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 50 00 00 00 F4 03 04 00 87 79 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E0 01 00 35 04 06 00 D9 47 78 B0 C8 C1 34 04 42 2F 94 84 7F DD [13:20:03]CheckFolder [13:20:03]dirname=/storage/ofd_packets [13:20:03]CheckFolder done [13:20:03]ProducePacketName [13:20:03]name=ofd_packets/00123039 [13:20:03]NVStorageSaveData ofd_packets/00123039 [13:20:03]File name is /storage/ofd_packets/00123039 [13:20:03]Write 301 bytes [13:20:03]NVStorageSaveData done [13:20:03]OFDSenderStorePacket done [13:20:03]KKMCreateOFDPacket done [13:20:03]NVStorageSaveData kkm_last_timestamp [13:20:03]File name is /storage/kkm_last_timestamp [13:20:03]Write 4 bytes [13:20:03]NVStorageSaveData done [13:20:03]ExternCall_PrintAddStr [13:20:03]wPrintStart [13:20:03]Write to MH i2c: 01 00 00 1B 27 42 [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: 01 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: 01 07 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: 01 07 00 1B 27 00 00 00 00 00 FF 0F 57 [13:20:03]RasterBufferAndPrint [13:20:03]line Счет N : (1)717834 [13:20:03]line ИНН: 02508201610067 [13:20:03]line Контрольно-Кассовый Чек [13:20:03]line ПРОДАЖА [13:20:03]line ТРК (МРК, ГНК) : 12 [13:20:03]line Товар: 2710124130 [13:20:03]line Аи-92-К-4 [13:20:03]line 10.390 * 67.40 [13:20:03]line = 700.29 [13:20:03]line НДС 12% НСП 1% [13:20:03]line > о реализуемом товаре [13:20:03]line ОКРУГЛЕНИЕ: -0.29 [13:20:03]line ИТОГО: 700.00 [13:20:03]line Внесено: 700.00 [13:20:03]line СДАЧА: 0.00 [13:20:03]line НСП 1% : 6.20 [13:20:03]line НДС 12% : 74.37 [13:20:03]line Наличными: 700.00 [13:20:03]line Безнал.: 0.00 [13:20:03]line Место: АЗС № 64 "Партнер Нефть" [13:20:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:20:03]line СНО: Общий режим [13:20:03]line Чек 80 25.11.2024 13:20 [13:20:03]line Смена: 556 ФФД: 1.0 [13:20:03]line ЗНМ: 0300000033 [13:20:03]line РНМ: 0000000000092681 [13:20:03]line Версия ККМ: 001 [13:20:03]line ФМ: 0000000000874881 [13:20:03]line ФД: 123039 [13:20:03]line ФПД: 238900990757057 [13:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T132007&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123039&fm=238900990757057&tin=02508201610067®Number=0000000000092681&sum=70000 [13:20:03]OFD Sender: Processing packet 123039 [packets to send 7, broken 6] [13:20:03]ProducePacketName [13:20:03]name=ofd_packets/00123039 [13:20:03]OFD Sender: To server: pG, [13:20:03]CommunicateWithHost lk.salyk.kg:30040 [13:20:03]ConnectInit lk.salyk.kg [13:20:03]written 0, free lines is 4095 [13:20:03]Connected sock=10 [13:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 05 53 07 01 52 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 50 00 00 00 F4 03 04 00 87 79 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E0 01 00 35 04 06 00 D9 47 78 B0 C8 C1 34 04 42 2F 94 84 7F DD [13:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4D 42 47 00 27 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E0 01 00 F4 03 04 00 4C 25 44 67 B6 04 01 00 00 DE A0 6C B7 18 63 94 49 [13:20:04]CommunicateWithHost err = 0 [13:20:04]CheckOFDResponse [13:20:04]1017 (14) - 77093643461234 [13:20:04]1041 (16) - 0000000000874881 [13:20:04]1040 (4) - 123039 [13:20:04]1012 (4) - 25.11.2024 07:20 [13:20:04]1206 (1) - 0 [13:20:04]OFD Sender: Remove packet 123039 [13:20:04]ProducePacketName [13:20:04]name=ofd_packets/00123039 [13:20:04]NVStorageDeleteData [13:20:04]Write to MH i2c: 01 00 00 46 27 6D [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 07 00 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 07 00 46 27 00 00 00 00 00 46 0C C6 [13:20:04]RasterBufferAndPrint [13:20:04]line [13:20:04]line [13:20:04]line [13:20:04]line [13:20:04]line [13:20:04]written 0, free lines is 3146 [13:20:04]MH_Cut [13:20:04]Write to MH i2c: D1 01 00 4D 27 01 46 [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: D1 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: D1 01 00 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: D1 01 00 4D 27 00 45 [13:20:04]Write to MH i2c: 01 00 00 4E 27 75 [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]OFD Sender: No OFD packet to send [13:20:05]*** Cut start [13:20:05]*** Partial cut [13:20:05]*** CUTSNS_PIN = 1 [13:20:05]*** CUTSNS_PIN = 0 [13:20:05]*** Brake cut motor [13:20:06]Read from MH i2c: 01 [13:20:06]MH_I2C_Read... [13:20:06]*** Stop cut motor [13:20:06]*** Cut end [13:20:06]Read from MH i2c: 01 07 00 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: 01 07 00 4E 27 00 00 00 00 00 FF 0F 8A [13:20:06]process_action close_receipt done [13:20:06]requested_data is exist [13:20:06]produce_requested_data [13:20:06]requested_item fm.sn is exist - process it [13:20:06]wFMCommunicate request_size=4 [13:20:06]MH_SAM_APDU [13:20:06]CAPDU: 80 11 00 00 [13:20:06]Write to MH i2c: E2 08 00 4F 27 80 11 00 00 00 00 00 00 F0 [13:20:06]Write i2c OK [13:20:06]MH_I2C_Read... [13:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:06]Read from MH i2c: E2 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 17 00 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 17 00 4F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 47 [13:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:20:06]wFMCommunicate OK [13:20:06]requested_item fd.num is exist - process it [13:20:06]SAM_PROTO_GetFieldsCounters [13:20:06]wFMCommunicate request_size=4 [13:20:06]MH_SAM_APDU [13:20:06]CAPDU: 80 13 00 00 [13:20:06]Write to MH i2c: E2 08 00 50 27 80 13 00 00 00 00 00 00 F3 [13:20:06]Write i2c OK [13:20:06]MH_I2C_Read... [13:20:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:06]Read from MH i2c: E2 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 62 00 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 62 00 50 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9F E0 01 00 0E 04 04 00 2C 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 B7 [13:20:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9F E0 01 00 0E 04 04 00 2C 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 [13:20:06]wFMCommunicate OK [13:20:06]SAM_PROTO_GetFieldsCounters done [13:20:06]requested_item shift.num is exist - process it [13:20:06]requested_item shift.opened is exist - process it [13:20:06]req_shift_opened [13:20:06]FM_GetShiftState [13:20:06]SAM_PROTO_GetShiftState [13:20:06]wFMCommunicate request_size=4 [13:20:06]MH_SAM_APDU [13:20:06]CAPDU: 80 13 01 00 [13:20:06]Write to MH i2c: E2 08 00 51 27 80 13 01 00 00 00 00 00 F5 [13:20:06]Write i2c OK [13:20:06]MH_I2C_Read... [13:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:06]Read from MH i2c: E2 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 0E 00 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 0E 00 51 27 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 74 [13:20:06]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:20:06]wFMCommunicate OK [13:20:06]SAM_PROTO_GetShiftState done [13:20:06]FM_GetShiftState done [13:20:06]req_shift_opened done [13:20:06]requested_item shift.open_date is exist - process it [13:20:06]req_shift_open_date [13:20:06]req_shift_open_date done [13:20:06]produce_requested_data done [13:20:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123039,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:20:06]process_action_free close_receipt [13:20:06]json_value_free [13:20:06]json_value_free done [13:20:06]process_json_proto returns [13:20:06]Send response to host [13:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123039,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:20:06]free response buf [13:20:06]execute_script done [13:20:06]execute_script returns [13:20:06]free content buf [13:20:06]Sock 9.Close socket [13:20:06]Sock 9.Thread stoped [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:34]accept exits with 7 [13:28:34]New connection [13:28:34]New thread 3066723684 created [13:28:34]Thread 3066580324 joined [13:28:34]Waiting for new connection... [13:28:34] Sock 7.Parse request [13:28:34]Sock 7.Check first char [13:28:34]Sock 7.First char is OK [13:28:34]request: POST /json_proto HTTP/1.0 [13:28:34]Method: POST [13:28:34]URL: /json_proto [13:28:34]Method is POST - this is cgi request [13:28:34]url: /json_proto [13:28:34]query_string will be loaded in cgi processing [13:28:34]execute_cgi json_proto POST (null) [13:28:34]execute_cgi path=json_proto method=POST [13:28:34]POST find Content-Length [13:28:34]Host: 172.17.37.4:8080 [13:28:34]Content-Length: 677 [13:28:34]Content-Type: application/json [13:28:34] [13:28:34]POST finish read [13:28:34]Found Content-Length = 677 [13:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:34]execute_script... [13:28:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:34]POST & json_proto [13:28:34]process_json_proto [13:28:34]json parsed OK: [13:28:34]protocol is kg_v1.0 [13:28:34]action value=close_receipt [13:28:34]process_action close_receipt [13:28:34]cmd_close_receipt [13:28:34]MH_GetDate [13:28:34]Write to MH i2c: F0 00 00 52 27 68 [13:28:34]Write i2c OK [13:28:34]MH_I2C_Read... [13:28:34]Read from MH i2c: F0 [13:28:34]MH_I2C_Read... [13:28:34]Read from MH i2c: F0 09 00 [13:28:34]MH_I2C_Read... [13:28:34]Read from MH i2c: F0 09 00 52 27 00 87 7B 44 67 B8 5A 43 67 DA [13:28:34]GetLastDocTimeStamp 1732540807 [13:28:34]current date 1732541319 [13:28:34]FM_GetShiftState [13:28:34]SAM_PROTO_GetShiftState [13:28:34]wFMCommunicate request_size=4 [13:28:34]MH_SAM_APDU [13:28:34]CAPDU: 80 13 01 00 [13:28:34]Write to MH i2c: E2 08 00 53 27 80 13 01 00 00 00 00 00 F7 [13:28:34]Write i2c OK [13:28:34]MH_I2C_Read... [13:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:34]Read from MH i2c: E2 [13:28:34]MH_I2C_Read... [13:28:34]Read from MH i2c: E2 0E 00 [13:28:34]MH_I2C_Read... [13:28:34]Read from MH i2c: E2 0E 00 53 27 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 76 [13:28:34]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:28:34]wFMCommunicate OK [13:28:34]SAM_PROTO_GetShiftState done [13:28:34]FM_GetShiftState done [13:28:34]opened in 1732493066 [13:28:34]opened+sec_in_day 1732579466 [13:28:34]quantity*price = 50010 [13:28:34]sum+1 = 50012 [13:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 81 25.11.2024 13:28 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123040 ФПД: 138951753098985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T132839&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123040&fm=138951753098985&tin=02508201610067®Number=0000000000092681&sum=50000 [13:28:35]StoreToDocumentArchive [13:28:35]shift 556 fd 123040 [13:28:35]save to /storage/0556/doc_00123040 [13:28:35]save last doc name /storage/0556/doc_00123040 to /storage/kkm_last_doc_name [13:28:35]save OK [13:28:35]Clear old archive folders... [13:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:35]tlvbuf is 02090180 [13:28:35]SAM_PROTO_ClearQueue [13:28:35]wFMCommunicate request_size=4 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 09 00 00 [13:28:35]Write to MH i2c: E2 08 00 60 27 80 09 00 00 00 00 00 00 F9 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 60 27 00 90 00 FB [13:28:35]RAPDU: 90 00 [13:28:35]wFMCommunicate OK [13:28:35]SAM_PROTO_ClearQueue done [13:28:35]KKMCreateOFDPacket [13:28:35]OFDProtocolAddRootSTLVToBuf [13:28:35]FM_MakeSignedData [13:28:35]FM_MakeSignedData [13:28:35]SAM_PROTO_SignData [13:28:35]wFMCommunicate request_size=4 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 0D 01 02 [13:28:35]Write to MH i2c: E2 08 00 61 27 80 0D 01 02 00 00 00 00 01 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 61 27 00 90 00 FC [13:28:35]RAPDU: 90 00 [13:28:35]wFMCommunicate OK [13:28:35]wFMCommunicate request_size=255 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 87 7B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E0 01 00 35 04 06 00 7E [13:28:35]Write to MH i2c: E2 02 01 62 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 87 7B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E0 01 00 35 04 06 00 7E 00 00 93 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 62 27 00 90 00 FD [13:28:35]RAPDU: 90 00 [13:28:35]wFMCommunicate OK [13:28:35]wFMCommunicate request_size=10 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 0D 02 02 05 60 39 E2 66 E9 [13:28:35]Write to MH i2c: E2 0D 00 63 27 80 0D 02 02 05 00 60 39 E2 66 E9 00 00 D8 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 63 27 00 90 00 FE [13:28:35]RAPDU: 90 00 [13:28:35]wFMCommunicate OK [13:28:35]wFMCommunicate request_size=4 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 0D 03 02 [13:28:35]Write to MH i2c: E2 08 00 64 27 80 0D 03 02 00 00 00 00 06 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 0B 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 0B 00 64 27 00 AE 8A 75 05 C9 03 0E 75 90 00 08 [13:28:35]RAPDU: AE 8A 75 05 C9 03 0E 75 90 00 [13:28:35]wFMCommunicate OK [13:28:35]SAM_PROTO_SignData done [13:28:35]FM_MakeSignedData done [13:28:35]CreateOFDProtocolMessage [13:28:35]wFMCommunicate request_size=4 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 11 00 00 [13:28:35]Write to MH i2c: E2 08 00 65 27 80 11 00 00 00 00 00 00 06 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 17 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 17 00 65 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5D [13:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:28:35]wFMCommunicate OK [13:28:35]CreateOFDProtocolMessage done [13:28:35]OFDSenderStorePacket 123040 [13:28:35]StoreOFDPacket docnum=123040 [13:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5F 55 07 01 87 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 87 7B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E0 01 00 35 04 06 00 7E 60 39 E2 66 E9 AE 8A 75 05 C9 03 0E 75 [13:28:35]CheckFolder [13:28:35]dirname=/storage/ofd_packets [13:28:35]CheckFolder done [13:28:35]ProducePacketName [13:28:35]name=ofd_packets/00123040 [13:28:35]NVStorageSaveData ofd_packets/00123040 [13:28:35]File name is /storage/ofd_packets/00123040 [13:28:35]Write 301 bytes [13:28:35]NVStorageSaveData done [13:28:35]OFDSenderStorePacket done [13:28:35]KKMCreateOFDPacket done [13:28:35]NVStorageSaveData kkm_last_timestamp [13:28:35]File name is /storage/kkm_last_timestamp [13:28:35]Write 4 bytes [13:28:35]NVStorageSaveData done [13:28:35]ExternCall_PrintAddStr [13:28:35]wPrintStart [13:28:35]Write to MH i2c: 01 00 00 66 27 8D [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: 01 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: 01 07 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: 01 07 00 66 27 00 00 00 00 00 FF 0F A2 [13:28:35]RasterBufferAndPrint [13:28:35]line Счет N : (1)717835 [13:28:35]line ИНН: 02508201610067 [13:28:35]line Контрольно-Кассовый Чек [13:28:35]line ПРОДАЖА [13:28:35]line ТРК (МРК, ГНК) : 22 [13:28:35]line Товар: 2710124130 [13:28:35]line Аи-92-К-4 [13:28:35]line 7.420 * 67.40 [13:28:35]line = 500.11 [13:28:35]line НДС 12% НСП 1% [13:28:35]line > о реализуемом товаре [13:28:35]line ОКРУГЛЕНИЕ: -0.11 [13:28:35]line ИТОГО: 500.00 [13:28:35]line Внесено: 500.00 [13:28:35]line СДАЧА: 0.00 [13:28:35]line НСП 1% : 4.43 [13:28:35]line НДС 12% : 53.11 [13:28:35]line Наличными: 500.00 [13:28:35]line Безнал.: 0.00 [13:28:35]line Место: АЗС № 64 "Партнер Нефть" [13:28:35]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:28:35]line СНО: Общий режим [13:28:35]line Чек 81 25.11.2024 13:28 [13:28:35]line Смена: 556 ФФД: 1.0 [13:28:35]line ЗНМ: 0300000033 [13:28:35]line РНМ: 0000000000092681 [13:28:35]line Версия ККМ: 001 [13:28:35]line ФМ: 0000000000874881 [13:28:35]line ФД: 123040 [13:28:35]line ФПД: 138951753098985 [13:28:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T132839&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123040&fm=138951753098985&tin=02508201610067®Number=0000000000092681&sum=50000 [13:28:36]OFD Sender: Processing packet 123040 [packets to send 7, broken 6] [13:28:36]ProducePacketName [13:28:36]name=ofd_packets/00123040 [13:28:36]OFD Sender: To server: pG, [13:28:36]CommunicateWithHost lk.salyk.kg:30040 [13:28:36]ConnectInit lk.salyk.kg [13:28:36]written 0, free lines is 4095 [13:28:36]Connected sock=10 [13:28:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5F 55 07 01 87 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 87 7B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E0 01 00 35 04 06 00 7E 60 39 E2 66 E9 AE 8A 75 05 C9 03 0E 75 [13:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 76 25 47 00 83 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E0 01 00 F4 03 04 00 4D 27 44 67 B6 04 01 00 00 AB 97 04 CC E1 54 3F DF [13:28:36]CommunicateWithHost err = 0 [13:28:36]CheckOFDResponse [13:28:36]1017 (14) - 77093643461234 [13:28:36]1041 (16) - 0000000000874881 [13:28:36]1040 (4) - 123040 [13:28:36]1012 (4) - 25.11.2024 07:29 [13:28:36]1206 (1) - 0 [13:28:36]OFD Sender: Remove packet 123040 [13:28:36]ProducePacketName [13:28:36]name=ofd_packets/00123040 [13:28:36]NVStorageDeleteData [13:28:36]Write to MH i2c: 01 00 00 91 27 B8 [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: 01 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: 01 07 00 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: 01 07 00 91 27 00 00 00 00 00 48 0C 13 [13:28:36]RasterBufferAndPrint [13:28:36]line [13:28:36]line [13:28:36]line [13:28:36]line [13:28:36]line [13:28:36]written 0, free lines is 3149 [13:28:36]MH_Cut [13:28:36]Write to MH i2c: D1 01 00 98 27 01 91 [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: D1 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: D1 01 00 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: D1 01 00 98 27 00 90 [13:28:36]Write to MH i2c: 01 00 00 99 27 C0 [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:37]OFD Sender: No OFD packet to send [13:28:38]*** Cut start [13:28:38]*** Partial cut [13:28:38]*** CUTSNS_PIN = 1 [13:28:38]*** CUTSNS_PIN = 0 [13:28:38]*** Brake cut motor [13:28:38]Read from MH i2c: 01 [13:28:38]MH_I2C_Read... [13:28:38]*** Stop cut motor [13:28:38]*** Cut end [13:28:38]Read from MH i2c: 01 07 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: 01 07 00 99 27 00 00 00 00 00 FF 0F D5 [13:28:38]process_action close_receipt done [13:28:38]requested_data is exist [13:28:38]produce_requested_data [13:28:38]requested_item fm.sn is exist - process it [13:28:38]wFMCommunicate request_size=4 [13:28:38]MH_SAM_APDU [13:28:38]CAPDU: 80 11 00 00 [13:28:38]Write to MH i2c: E2 08 00 9A 27 80 11 00 00 00 00 00 00 3B [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:38]Read from MH i2c: E2 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 17 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 17 00 9A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 92 [13:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:28:38]wFMCommunicate OK [13:28:38]requested_item fd.num is exist - process it [13:28:38]SAM_PROTO_GetFieldsCounters [13:28:38]wFMCommunicate request_size=4 [13:28:38]MH_SAM_APDU [13:28:38]CAPDU: 80 13 00 00 [13:28:38]Write to MH i2c: E2 08 00 9B 27 80 13 00 00 00 00 00 00 3E [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:38]Read from MH i2c: E2 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 62 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 62 00 9B 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A0 E0 01 00 0E 04 04 00 2C 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 06 [13:28:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A0 E0 01 00 0E 04 04 00 2C 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 [13:28:38]wFMCommunicate OK [13:28:38]SAM_PROTO_GetFieldsCounters done [13:28:38]requested_item shift.num is exist - process it [13:28:38]requested_item shift.opened is exist - process it [13:28:38]req_shift_opened [13:28:38]FM_GetShiftState [13:28:38]SAM_PROTO_GetShiftState [13:28:38]wFMCommunicate request_size=4 [13:28:38]MH_SAM_APDU [13:28:38]CAPDU: 80 13 01 00 [13:28:38]Write to MH i2c: E2 08 00 9C 27 80 13 01 00 00 00 00 00 40 [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:38]Read from MH i2c: E2 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 0E 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 0E 00 9C 27 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 BF [13:28:38]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:28:38]wFMCommunicate OK [13:28:38]SAM_PROTO_GetShiftState done [13:28:38]FM_GetShiftState done [13:28:38]req_shift_opened done [13:28:38]requested_item shift.open_date is exist - process it [13:28:38]req_shift_open_date [13:28:38]req_shift_open_date done [13:28:38]produce_requested_data done [13:28:38]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123040,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:28:38]process_action_free close_receipt [13:28:38]json_value_free [13:28:38]json_value_free done [13:28:38]process_json_proto returns [13:28:38]Send response to host [13:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123040,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:28:38]free response buf [13:28:38]execute_script done [13:28:38]execute_script returns [13:28:38]free content buf [13:28:38]Sock 7.Close socket [13:28:38]Sock 7.Thread stoped [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:40]accept exits with 9 [13:29:40]New connection [13:29:40]New thread 3066580324 created [13:29:40]Thread 3066723684 joined [13:29:40]Waiting for new connection... [13:29:40] Sock 9.Parse request [13:29:40]Sock 9.Check first char [13:29:40]Sock 9.First char is OK [13:29:40]request: POST /json_proto HTTP/1.0 [13:29:40]Method: POST [13:29:40]URL: /json_proto [13:29:40]Method is POST - this is cgi request [13:29:40]url: /json_proto [13:29:40]query_string will be loaded in cgi processing [13:29:40]execute_cgi json_proto POST (null) [13:29:40]execute_cgi path=json_proto method=POST [13:29:40]POST find Content-Length [13:29:40]Host: 172.17.37.4:8080 [13:29:40]Content-Length: 677 [13:29:40]Content-Type: application/json [13:29:40] [13:29:40]POST finish read [13:29:40]Found Content-Length = 677 [13:29:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:29:40]execute_script... [13:29: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)717836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:29:40]POST & json_proto [13:29:40]process_json_proto [13:29:40]json parsed OK: [13:29:40]protocol is kg_v1.0 [13:29:40]action value=close_receipt [13:29:40]process_action close_receipt [13:29:40]cmd_close_receipt [13:29:40]MH_GetDate [13:29:40]Write to MH i2c: F0 00 00 9D 27 B3 [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: F0 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: F0 09 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: F0 09 00 9D 27 00 C9 7B 44 67 B8 5A 43 67 67 [13:29:40]GetLastDocTimeStamp 1732541319 [13:29:40]current date 1732541385 [13:29:40]FM_GetShiftState [13:29:40]SAM_PROTO_GetShiftState [13:29:40]wFMCommunicate request_size=4 [13:29:40]MH_SAM_APDU [13:29:40]CAPDU: 80 13 01 00 [13:29:40]Write to MH i2c: E2 08 00 9E 27 80 13 01 00 00 00 00 00 42 [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:40]Read from MH i2c: E2 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 0E 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 0E 00 9E 27 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C1 [13:29:40]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:29:40]wFMCommunicate OK [13:29:40]SAM_PROTO_GetShiftState done [13:29:40]FM_GetShiftState done [13:29:40]opened in 1732493066 [13:29:40]opened+sec_in_day 1732579466 [13:29:40]quantity*price = 20017 [13:29:40]sum+1 = 20019 [13:29:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 82 25.11.2024 13:29 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123041 ФПД: 244589650504969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T132945&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123041&fm=244589650504969&tin=02508201610067®Number=0000000000092681&sum=20000 [13:29:41]StoreToDocumentArchive [13:29:41]shift 556 fd 123041 [13:29:41]save to /storage/0556/doc_00123041 [13:29:41]save last doc name /storage/0556/doc_00123041 to /storage/kkm_last_doc_name [13:29:41]save OK [13:29:41]Clear old archive folders... [13:29:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:41]tlvbuf is B6EA2640 [13:29:41]SAM_PROTO_ClearQueue [13:29:41]wFMCommunicate request_size=4 [13:29:41]MH_SAM_APDU [13:29:41]CAPDU: 80 09 00 00 [13:29:41]Write to MH i2c: E2 08 00 AB 27 80 09 00 00 00 00 00 00 44 [13:29:41]Write i2c OK [13:29:41]MH_I2C_Read... [13:29:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:41]Read from MH i2c: E2 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 03 00 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 03 00 AB 27 00 90 00 46 [13:29:41]RAPDU: 90 00 [13:29:41]wFMCommunicate OK [13:29:41]SAM_PROTO_ClearQueue done [13:29:41]KKMCreateOFDPacket [13:29:41]OFDProtocolAddRootSTLVToBuf [13:29:41]FM_MakeSignedData [13:29:41]FM_MakeSignedData [13:29:41]SAM_PROTO_SignData [13:29:41]wFMCommunicate request_size=4 [13:29:41]MH_SAM_APDU [13:29:41]CAPDU: 80 0D 01 02 [13:29:41]Write to MH i2c: E2 08 00 AC 27 80 0D 01 02 00 00 00 00 4C [13:29:41]Write i2c OK [13:29:41]MH_I2C_Read... [13:29:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:41]Read from MH i2c: E2 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 03 00 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 03 00 AC 27 00 90 00 47 [13:29:41]RAPDU: 90 00 [13:29:41]wFMCommunicate OK [13:29:41]wFMCommunicate request_size=255 [13:29:41]MH_SAM_APDU [13:29:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C9 7B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E0 01 00 35 04 06 00 DE [13:29:41]Write to MH i2c: E2 02 01 AD 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C9 7B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E0 01 00 35 04 06 00 DE 00 00 9F [13:29:41]Write i2c OK [13:29:41]MH_I2C_Read... [13:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:42]Read from MH i2c: E2 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 03 00 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 03 00 AD 27 00 90 00 48 [13:29:42]RAPDU: 90 00 [13:29:42]wFMCommunicate OK [13:29:42]wFMCommunicate request_size=10 [13:29:42]MH_SAM_APDU [13:29:42]CAPDU: 80 0D 02 02 05 73 F7 3B ED 09 [13:29:42]Write to MH i2c: E2 0D 00 AE 27 80 0D 02 02 05 00 73 F7 3B ED 09 00 00 F4 [13:29:42]Write i2c OK [13:29:42]MH_I2C_Read... [13:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:42]Read from MH i2c: E2 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 03 00 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 03 00 AE 27 00 90 00 49 [13:29:42]RAPDU: 90 00 [13:29:42]wFMCommunicate OK [13:29:42]wFMCommunicate request_size=4 [13:29:42]MH_SAM_APDU [13:29:42]CAPDU: 80 0D 03 02 [13:29:42]Write to MH i2c: E2 08 00 AF 27 80 0D 03 02 00 00 00 00 51 [13:29:42]Write i2c OK [13:29:42]MH_I2C_Read... [13:29:42]OFD Sender: No OFD packet to send [13:29:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:42]Read from MH i2c: E2 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 0B 00 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 0B 00 AF 27 00 27 B5 01 CA F3 7E FC 0F 90 00 75 [13:29:42]RAPDU: 27 B5 01 CA F3 7E FC 0F 90 00 [13:29:42]wFMCommunicate OK [13:29:42]SAM_PROTO_SignData done [13:29:42]FM_MakeSignedData done [13:29:42]CreateOFDProtocolMessage [13:29:42]wFMCommunicate request_size=4 [13:29:42]MH_SAM_APDU [13:29:42]CAPDU: 80 11 00 00 [13:29:42]Write to MH i2c: E2 08 00 B0 27 80 11 00 00 00 00 00 00 51 [13:29:42]Write i2c OK [13:29:42]MH_I2C_Read... [13:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:42]Read from MH i2c: E2 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 17 00 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 17 00 B0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A8 [13:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:29:42]wFMCommunicate OK [13:29:42]CreateOFDProtocolMessage done [13:29:42]OFDSenderStorePacket 123041 [13:29:42]StoreOFDPacket docnum=123041 [13:29:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A0 09 07 01 F8 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C9 7B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E0 01 00 35 04 06 00 DE 73 F7 3B ED 09 27 B5 01 CA F3 7E FC 0F [13:29:42]CheckFolder [13:29:42]dirname=/storage/ofd_packets [13:29:42]CheckFolder done [13:29:42]ProducePacketName [13:29:42]name=ofd_packets/00123041 [13:29:42]NVStorageSaveData ofd_packets/00123041 [13:29:42]File name is /storage/ofd_packets/00123041 [13:29:42]Write 301 bytes [13:29:42]NVStorageSaveData done [13:29:42]OFDSenderStorePacket done [13:29:42]KKMCreateOFDPacket done [13:29:42]NVStorageSaveData kkm_last_timestamp [13:29:42]File name is /storage/kkm_last_timestamp [13:29:42]Write 4 bytes [13:29:42]NVStorageSaveData done [13:29:42]ExternCall_PrintAddStr [13:29:42]wPrintStart [13:29:42]Write to MH i2c: 01 00 00 B1 27 D8 [13:29:42]Write i2c OK [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: 01 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: 01 07 00 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: 01 07 00 B1 27 00 00 00 00 00 FF 0F ED [13:29:42]RasterBufferAndPrint [13:29:42]line Счет N : (1)717836 [13:29:42]line ИНН: 02508201610067 [13:29:42]line Контрольно-Кассовый Чек [13:29:42]line ПРОДАЖА [13:29:42]line ТРК (МРК, ГНК) : 12 [13:29:42]line Товар: 2710124130 [13:29:42]line Аи-92-К-4 [13:29:42]line 2.970 * 67.40 [13:29:42]line = 200.18 [13:29:42]line НДС 12% НСП 1% [13:29:42]line > о реализуемом товаре [13:29:42]line ОКРУГЛЕНИЕ: -0.18 [13:29:42]line ИТОГО: 200.00 [13:29:42]line Внесено: 200.00 [13:29:42]line СДАЧА: 0.00 [13:29:42]line НСП 1% : 1.77 [13:29:42]line НДС 12% : 21.26 [13:29:42]line Наличными: 200.00 [13:29:42]line Безнал.: 0.00 [13:29:42]line Место: АЗС № 64 "Партнер Нефть" [13:29:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:29:42]line СНО: Общий режим [13:29:42]line Чек 82 25.11.2024 13:29 [13:29:42]line Смена: 556 ФФД: 1.0 [13:29:42]line ЗНМ: 0300000033 [13:29:42]line РНМ: 0000000000092681 [13:29:42]line Версия ККМ: 001 [13:29:42]line ФМ: 0000000000874881 [13:29:42]line ФД: 123041 [13:29:42]line ФПД: 244589650504969 [13:29:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T132945&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123041&fm=244589650504969&tin=02508201610067®Number=0000000000092681&sum=20000 [13:29:42]OFD Sender: Processing packet 123041 [packets to send 7, broken 6] [13:29:42]ProducePacketName [13:29:42]name=ofd_packets/00123041 [13:29:42]OFD Sender: To server: pG, [13:29:42]CommunicateWithHost lk.salyk.kg:30040 [13:29:42]ConnectInit lk.salyk.kg [13:29:42]written 0, free lines is 4095 [13:29:42]Connected sock=10 [13:29:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A0 09 07 01 F8 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C9 7B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E0 01 00 35 04 06 00 DE 73 F7 3B ED 09 27 B5 01 CA F3 7E FC 0F [13:29:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AA 0A 47 00 5C 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E0 01 00 F4 03 04 00 8F 27 44 67 B6 04 01 00 00 40 1B E8 78 59 3A BF F9 [13:29:42]CommunicateWithHost err = 0 [13:29:42]CheckOFDResponse [13:29:42]1017 (14) - 77093643461234 [13:29:42]1041 (16) - 0000000000874881 [13:29:42]1040 (4) - 123041 [13:29:42]1012 (4) - 25.11.2024 07:30 [13:29:42]1206 (1) - 0 [13:29:42]OFD Sender: Remove packet 123041 [13:29:42]ProducePacketName [13:29:42]name=ofd_packets/00123041 [13:29:42]NVStorageDeleteData [13:29:43]Write to MH i2c: 01 00 00 DC 27 03 [13:29:43]Write i2c OK [13:29:43]MH_I2C_Read... [13:29:43]Read from MH i2c: 01 [13:29:43]MH_I2C_Read... [13:29:43]Read from MH i2c: 01 07 00 [13:29:43]MH_I2C_Read... [13:29:43]Read from MH i2c: 01 07 00 DC 27 00 00 00 00 00 50 0C 66 [13:29:43]RasterBufferAndPrint [13:29:43]line [13:29:43]line [13:29:43]line [13:29:43]line [13:29:43]line [13:29:43]written 0, free lines is 3156 [13:29:43]MH_Cut [13:29:43]Write to MH i2c: D1 01 00 E3 27 01 DC [13:29:43]Write i2c OK [13:29:43]MH_I2C_Read... [13:29:43]Read from MH i2c: D1 [13:29:43]MH_I2C_Read... [13:29:43]Read from MH i2c: D1 01 00 [13:29:43]MH_I2C_Read... [13:29:43]Read from MH i2c: D1 01 00 E3 27 00 DB [13:29:43]Write to MH i2c: 01 00 00 E4 27 0B [13:29:43]Write i2c OK [13:29:43]MH_I2C_Read... [13:29:43]OFD Sender: No OFD packet to send [13:29:44]*** Cut start [13:29:44]*** Partial cut [13:29:44]*** CUTSNS_PIN = 1 [13:29:44]*** CUTSNS_PIN = 0 [13:29:44]*** Brake cut motor [13:29:44]Read from MH i2c: 01 [13:29:44]MH_I2C_Read... [13:29:44]*** Stop cut motor [13:29:44]*** Cut end [13:29:44]Read from MH i2c: 01 07 00 [13:29:44]MH_I2C_Read... [13:29:44]Read from MH i2c: 01 07 00 E4 27 00 00 00 00 00 FF 0F 20 [13:29:44]process_action close_receipt done [13:29:44]requested_data is exist [13:29:44]produce_requested_data [13:29:44]requested_item fm.sn is exist - process it [13:29:44]wFMCommunicate request_size=4 [13:29:44]MH_SAM_APDU [13:29:44]CAPDU: 80 11 00 00 [13:29:44]Write to MH i2c: E2 08 00 E5 27 80 11 00 00 00 00 00 00 86 [13:29:44]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 17 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 17 00 E5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DD [13:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:29:45]wFMCommunicate OK [13:29:45]requested_item fd.num is exist - process it [13:29:45]SAM_PROTO_GetFieldsCounters [13:29:45]wFMCommunicate request_size=4 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 13 00 00 [13:29:45]Write to MH i2c: E2 08 00 E6 27 80 13 00 00 00 00 00 00 89 [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 62 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 62 00 E6 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A1 E0 01 00 0E 04 04 00 2C 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 55 [13:29:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A1 E0 01 00 0E 04 04 00 2C 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 [13:29:45]wFMCommunicate OK [13:29:45]SAM_PROTO_GetFieldsCounters done [13:29:45]requested_item shift.num is exist - process it [13:29:45]requested_item shift.opened is exist - process it [13:29:45]req_shift_opened [13:29:45]FM_GetShiftState [13:29:45]SAM_PROTO_GetShiftState [13:29:45]wFMCommunicate request_size=4 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 13 01 00 [13:29:45]Write to MH i2c: E2 08 00 E7 27 80 13 01 00 00 00 00 00 8B [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 0E 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 0E 00 E7 27 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0A [13:29:45]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:29:45]wFMCommunicate OK [13:29:45]SAM_PROTO_GetShiftState done [13:29:45]FM_GetShiftState done [13:29:45]req_shift_opened done [13:29:45]requested_item shift.open_date is exist - process it [13:29:45]req_shift_open_date [13:29:45]req_shift_open_date done [13:29:45]produce_requested_data done [13:29:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123041,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:29:45]process_action_free close_receipt [13:29:45]json_value_free [13:29:45]json_value_free done [13:29:45]process_json_proto returns [13:29:45]Send response to host [13:29:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123041,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:29:45]free response buf [13:29:45]execute_script done [13:29:45]execute_script returns [13:29:45]free content buf [13:29:45]Sock 9.Close socket [13:29:45]Sock 9.Thread stoped [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:01]accept exits with 7 [13:32:01]New connection [13:32:01]New thread 3066723684 created [13:32:01]Thread 3066580324 joined [13:32:01]Waiting for new connection... [13:32:01] Sock 7.Parse request [13:32:01]Sock 7.Check first char [13:32:01]Sock 7.First char is OK [13:32:01]request: POST /json_proto HTTP/1.0 [13:32:01]Method: POST [13:32:01]URL: /json_proto [13:32:01]Method is POST - this is cgi request [13:32:01]url: /json_proto [13:32:01]query_string will be loaded in cgi processing [13:32:01]execute_cgi json_proto POST (null) [13:32:01]execute_cgi path=json_proto method=POST [13:32:01]POST find Content-Length [13:32:01]Host: 172.17.37.4:8080 [13:32:01]Content-Length: 677 [13:32:01]Content-Type: application/json [13:32:01] [13:32:01]POST finish read [13:32:01]Found Content-Length = 677 [13:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 6.530, "sum" : 440.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:01]execute_script... [13:32:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 6.530, "sum" : 440.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:01]POST & json_proto [13:32:01]process_json_proto [13:32:01]json parsed OK: [13:32:01]protocol is kg_v1.0 [13:32:01]action value=close_receipt [13:32:01]process_action close_receipt [13:32:01]cmd_close_receipt [13:32:01]MH_GetDate [13:32:01]Write to MH i2c: F0 00 00 E8 27 FE [13:32:01]Write i2c OK [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: F0 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: F0 09 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: F0 09 00 E8 27 00 57 7C 44 67 B8 5A 43 67 41 [13:32:01]GetLastDocTimeStamp 1732541385 [13:32:01]current date 1732541527 [13:32:01]FM_GetShiftState [13:32:01]SAM_PROTO_GetShiftState [13:32:01]wFMCommunicate request_size=4 [13:32:01]MH_SAM_APDU [13:32:01]CAPDU: 80 13 01 00 [13:32:01]Write to MH i2c: E2 08 00 E9 27 80 13 01 00 00 00 00 00 8D [13:32:01]Write i2c OK [13:32:01]MH_I2C_Read... [13:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:01]Read from MH i2c: E2 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 0E 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 0E 00 E9 27 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0C [13:32:01]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:32:01]wFMCommunicate OK [13:32:01]SAM_PROTO_GetShiftState done [13:32:01]FM_GetShiftState done [13:32:01]opened in 1732493066 [13:32:01]opened+sec_in_day 1732579466 [13:32:01]quantity*price = 44012 [13:32:01]sum+1 = 44013 [13:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.89 НДС 12% : 46.74 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 83 25.11.2024 13:32 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123042 ФПД: 102327420546082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T133207&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123042&fm=102327420546082&tin=02508201610067®Number=0000000000092681&sum=44000 [13:32:03]StoreToDocumentArchive [13:32:03]shift 556 fd 123042 [13:32:03]save to /storage/0556/doc_00123042 [13:32:03]save last doc name /storage/0556/doc_00123042 to /storage/kkm_last_doc_name [13:32:03]save OK [13:32:03]Clear old archive folders... [13:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:03]tlvbuf is 01F3E760 [13:32:03]SAM_PROTO_ClearQueue [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 09 00 00 [13:32:03]Write to MH i2c: E2 08 00 F6 27 80 09 00 00 00 00 00 00 8F [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 F6 27 00 90 00 91 [13:32:03]RAPDU: 90 00 [13:32:03]wFMCommunicate OK [13:32:03]SAM_PROTO_ClearQueue done [13:32:03]KKMCreateOFDPacket [13:32:03]OFDProtocolAddRootSTLVToBuf [13:32:03]FM_MakeSignedData [13:32:03]FM_MakeSignedData [13:32:03]SAM_PROTO_SignData [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 0D 01 02 [13:32:03]Write to MH i2c: E2 08 00 F7 27 80 0D 01 02 00 00 00 00 97 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 F7 27 00 90 00 92 [13:32:03]RAPDU: 90 00 [13:32:03]wFMCommunicate OK [13:32:03]wFMCommunicate request_size=255 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 82 19 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 EC AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 12 00 00 00 00 07 04 06 00 E0 AB 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 57 7C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E0 01 00 35 04 06 00 5D [13:32:03]Write to MH i2c: E2 02 01 F8 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 82 19 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 EC AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 12 00 00 00 00 07 04 06 00 E0 AB 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 57 7C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E0 01 00 35 04 06 00 5D 00 00 14 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 F8 27 00 90 00 93 [13:32:03]RAPDU: 90 00 [13:32:03]wFMCommunicate OK [13:32:03]wFMCommunicate request_size=10 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 0D 02 02 05 10 F5 8D 6C 22 [13:32:03]Write to MH i2c: E2 0D 00 F9 27 80 0D 02 02 05 00 10 F5 8D 6C 22 00 00 C4 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 F9 27 00 90 00 94 [13:32:03]RAPDU: 90 00 [13:32:03]wFMCommunicate OK [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 0D 03 02 [13:32:03]Write to MH i2c: E2 08 00 FA 27 80 0D 03 02 00 00 00 00 9C [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 0B 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 0B 00 FA 27 00 8D 99 69 D4 FF A2 EB B9 90 00 45 [13:32:03]RAPDU: 8D 99 69 D4 FF A2 EB B9 90 00 [13:32:03]wFMCommunicate OK [13:32:03]SAM_PROTO_SignData done [13:32:03]FM_MakeSignedData done [13:32:03]CreateOFDProtocolMessage [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 11 00 00 [13:32:03]Write to MH i2c: E2 08 00 FB 27 80 11 00 00 00 00 00 00 9C [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]OFD Sender: No OFD packet to send [13:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 17 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 17 00 FB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F3 [13:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:32:03]wFMCommunicate OK [13:32:03]CreateOFDProtocolMessage done [13:32:03]OFDSenderStorePacket 123042 [13:32:03]StoreOFDPacket docnum=123042 [13:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FE 6E 07 01 5B 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 82 19 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 EC AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 12 00 00 00 00 07 04 06 00 E0 AB 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 57 7C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E0 01 00 35 04 06 00 5D 10 F5 8D 6C 22 8D 99 69 D4 FF A2 EB B9 [13:32:03]CheckFolder [13:32:03]dirname=/storage/ofd_packets [13:32:03]CheckFolder done [13:32:03]ProducePacketName [13:32:03]name=ofd_packets/00123042 [13:32:03]NVStorageSaveData ofd_packets/00123042 [13:32:03]File name is /storage/ofd_packets/00123042 [13:32:03]Write 301 bytes [13:32:03]NVStorageSaveData done [13:32:03]OFDSenderStorePacket done [13:32:03]KKMCreateOFDPacket done [13:32:03]NVStorageSaveData kkm_last_timestamp [13:32:03]File name is /storage/kkm_last_timestamp [13:32:03]Write 4 bytes [13:32:03]NVStorageSaveData done [13:32:03]ExternCall_PrintAddStr [13:32:03]wPrintStart [13:32:03]Write to MH i2c: 01 00 00 FC 27 23 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: 01 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: 01 07 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: 01 07 00 FC 27 00 00 00 00 00 FF 0F 38 [13:32:03]RasterBufferAndPrint [13:32:03]line Счет N : (1)717837 [13:32:03]line ИНН: 02508201610067 [13:32:03]line Контрольно-Кассовый Чек [13:32:03]line ПРОДАЖА [13:32:03]line ТРК (МРК, ГНК) : 32 [13:32:03]line Товар: 2710124130 [13:32:03]line Аи-92-К-4 [13:32:03]line 6.530 * 67.40 [13:32:03]line = 440.12 [13:32:03]line НДС 12% НСП 1% [13:32:03]line > о реализуемом товаре [13:32:03]line ОКРУГЛЕНИЕ: -0.12 [13:32:03]line ИТОГО: 440.00 [13:32:03]line Внесено: 440.00 [13:32:03]line СДАЧА: 0.00 [13:32:03]line НСП 1% : 3.89 [13:32:03]line НДС 12% : 46.74 [13:32:03]line Наличными: 440.00 [13:32:03]line Безнал.: 0.00 [13:32:03]line Место: АЗС № 64 "Партнер Нефть" [13:32:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:32:03]line СНО: Общий режим [13:32:03]line Чек 83 25.11.2024 13:32 [13:32:03]line Смена: 556 ФФД: 1.0 [13:32:03]line ЗНМ: 0300000033 [13:32:03]line РНМ: 0000000000092681 [13:32:03]line Версия ККМ: 001 [13:32:03]line ФМ: 0000000000874881 [13:32:03]line ФД: 123042 [13:32:03]line ФПД: 102327420546082 [13:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T133207&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123042&fm=102327420546082&tin=02508201610067®Number=0000000000092681&sum=44000 [13:32:03]OFD Sender: Processing packet 123042 [packets to send 7, broken 6] [13:32:03]ProducePacketName [13:32:03]name=ofd_packets/00123042 [13:32:03]OFD Sender: To server: pG, [13:32:03]CommunicateWithHost lk.salyk.kg:30040 [13:32:03]ConnectInit lk.salyk.kg [13:32:03]written 0, free lines is 4095 [13:32:03]Connected sock=10 [13:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FE 6E 07 01 5B 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 82 19 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 EC AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 12 00 00 00 00 07 04 06 00 E0 AB 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 57 7C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E0 01 00 35 04 06 00 5D 10 F5 8D 6C 22 8D 99 69 D4 FF A2 EB B9 [13:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F4 7A 47 00 36 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E0 01 00 F4 03 04 00 1C 28 44 67 B6 04 01 00 00 D1 DB 55 7A A3 84 DE 09 [13:32:04]CommunicateWithHost err = 0 [13:32:04]CheckOFDResponse [13:32:04]1017 (14) - 77093643461234 [13:32:04]1041 (16) - 0000000000874881 [13:32:04]1040 (4) - 123042 [13:32:04]1012 (4) - 25.11.2024 07:32 [13:32:04]1206 (1) - 0 [13:32:04]OFD Sender: Remove packet 123042 [13:32:04]ProducePacketName [13:32:04]name=ofd_packets/00123042 [13:32:04]NVStorageDeleteData [13:32:04]Write to MH i2c: 01 00 00 27 28 4F [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 07 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 07 00 27 28 00 00 00 00 00 4C 0C AE [13:32:04]RasterBufferAndPrint [13:32:04]line [13:32:04]line [13:32:04]line [13:32:04]line [13:32:04]line [13:32:04]written 0, free lines is 3152 [13:32:04]MH_Cut [13:32:04]Write to MH i2c: D1 01 00 2E 28 01 28 [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: D1 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: D1 01 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: D1 01 00 2E 28 00 27 [13:32:04]Write to MH i2c: 01 00 00 2F 28 57 [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]OFD Sender: No OFD packet to send [13:32:05]*** Cut start [13:32:05]*** Partial cut [13:32:05]*** CUTSNS_PIN = 1 [13:32:05]*** CUTSNS_PIN = 0 [13:32:05]*** Brake cut motor [13:32:06]Read from MH i2c: 01 [13:32:06]MH_I2C_Read... [13:32:06]*** Stop cut motor [13:32:06]*** Cut end [13:32:06]Read from MH i2c: 01 07 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: 01 07 00 2F 28 00 00 00 00 00 FF 0F 6C [13:32:06]process_action close_receipt done [13:32:06]requested_data is exist [13:32:06]produce_requested_data [13:32:06]requested_item fm.sn is exist - process it [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 11 00 00 [13:32:06]Write to MH i2c: E2 08 00 30 28 80 11 00 00 00 00 00 00 D2 [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 17 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 17 00 30 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 29 [13:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:32:06]wFMCommunicate OK [13:32:06]requested_item fd.num is exist - process it [13:32:06]SAM_PROTO_GetFieldsCounters [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 13 00 00 [13:32:06]Write to MH i2c: E2 08 00 31 28 80 13 00 00 00 00 00 00 D5 [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 62 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 62 00 31 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A2 E0 01 00 0E 04 04 00 2C 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 A5 [13:32:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A2 E0 01 00 0E 04 04 00 2C 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 [13:32:06]wFMCommunicate OK [13:32:06]SAM_PROTO_GetFieldsCounters done [13:32:06]requested_item shift.num is exist - process it [13:32:06]requested_item shift.opened is exist - process it [13:32:06]req_shift_opened [13:32:06]FM_GetShiftState [13:32:06]SAM_PROTO_GetShiftState [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 13 01 00 [13:32:06]Write to MH i2c: E2 08 00 32 28 80 13 01 00 00 00 00 00 D7 [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 0E 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 0E 00 32 28 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 56 [13:32:06]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:32:06]wFMCommunicate OK [13:32:06]SAM_PROTO_GetShiftState done [13:32:06]FM_GetShiftState done [13:32:06]req_shift_opened done [13:32:06]requested_item shift.open_date is exist - process it [13:32:06]req_shift_open_date [13:32:06]req_shift_open_date done [13:32:06]produce_requested_data done [13:32:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123042,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:32:06]process_action_free close_receipt [13:32:06]json_value_free [13:32:06]json_value_free done [13:32:06]process_json_proto returns [13:32:06]Send response to host [13:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123042,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:32:06]free response buf [13:32:06]execute_script done [13:32:06]execute_script returns [13:32:06]free content buf [13:32:06]Sock 7.Close socket [13:32:06]Sock 7.Thread stoped [13:32:08]accept exits with 9 [13:32:08]New connection [13:32:08]New thread 3066580324 created [13:32:08]Thread 3066723684 joined [13:32:08]Waiting for new connection... [13:32:08] Sock 9.Parse request [13:32:08]Sock 9.Check first char [13:32:08]Sock 9.First char is OK [13:32:08]request: POST /json_proto HTTP/1.0 [13:32:08]Method: POST [13:32:08]URL: /json_proto [13:32:08]Method is POST - this is cgi request [13:32:08]url: /json_proto [13:32:08]query_string will be loaded in cgi processing [13:32:08]execute_cgi json_proto POST (null) [13:32:08]execute_cgi path=json_proto method=POST [13:32:08]POST find Content-Length [13:32:08]Host: 172.17.37.4:8080 [13:32:08]Content-Length: 677 [13:32:08]Content-Type: application/json [13:32:08] [13:32:08]POST finish read [13:32:08]Found Content-Length = 677 [13:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:32:08]execute_script... [13:32: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)717838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:32:08]POST & json_proto [13:32:08]process_json_proto [13:32:08]json parsed OK: [13:32:08]protocol is kg_v1.0 [13:32:08]action value=close_receipt [13:32:08]process_action close_receipt [13:32:08]cmd_close_receipt [13:32:08]MH_GetDate [13:32:08]Write to MH i2c: F0 00 00 33 28 4A [13:32:08]Write i2c OK [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: F0 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: F0 09 00 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: F0 09 00 33 28 00 5D 7C 44 67 B8 5A 43 67 93 [13:32:08]GetLastDocTimeStamp 1732541527 [13:32:08]current date 1732541533 [13:32:08]FM_GetShiftState [13:32:08]SAM_PROTO_GetShiftState [13:32:08]wFMCommunicate request_size=4 [13:32:08]MH_SAM_APDU [13:32:08]CAPDU: 80 13 01 00 [13:32:08]Write to MH i2c: E2 08 00 34 28 80 13 01 00 00 00 00 00 D9 [13:32:08]Write i2c OK [13:32:08]MH_I2C_Read... [13:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:08]Read from MH i2c: E2 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: E2 0E 00 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: E2 0E 00 34 28 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 58 [13:32:08]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:32:08]wFMCommunicate OK [13:32:08]SAM_PROTO_GetShiftState done [13:32:08]FM_GetShiftState done [13:32:08]opened in 1732493066 [13:32:08]opened+sec_in_day 1732579466 [13:32:08]quantity*price = 20017 [13:32:08]sum+1 = 20019 [13:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 84 25.11.2024 13:32 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123043 ФПД: 189617661156869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T133213&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123043&fm=189617661156869&tin=02508201610067®Number=0000000000092681&sum=20000 [13:32:09]StoreToDocumentArchive [13:32:09]shift 556 fd 123043 [13:32:09]save to /storage/0556/doc_00123043 [13:32:09]save last doc name /storage/0556/doc_00123043 to /storage/kkm_last_doc_name [13:32:09]save OK [13:32:09]Clear old archive folders... [13:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:09]tlvbuf is 01F69C00 [13:32:09]SAM_PROTO_ClearQueue [13:32:09]wFMCommunicate request_size=4 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 09 00 00 [13:32:09]Write to MH i2c: E2 08 00 41 28 80 09 00 00 00 00 00 00 DB [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 41 28 00 90 00 DD [13:32:09]RAPDU: 90 00 [13:32:09]wFMCommunicate OK [13:32:09]SAM_PROTO_ClearQueue done [13:32:09]KKMCreateOFDPacket [13:32:09]OFDProtocolAddRootSTLVToBuf [13:32:09]FM_MakeSignedData [13:32:09]FM_MakeSignedData [13:32:09]SAM_PROTO_SignData [13:32:09]wFMCommunicate request_size=4 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 0D 01 02 [13:32:09]Write to MH i2c: E2 08 00 42 28 80 0D 01 02 00 00 00 00 E3 [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 42 28 00 90 00 DE [13:32:09]RAPDU: 90 00 [13:32:09]wFMCommunicate OK [13:32:09]wFMCommunicate request_size=255 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 5D 7C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E0 01 00 35 04 06 00 AC [13:32:09]Write to MH i2c: E2 02 01 43 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 5D 7C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E0 01 00 35 04 06 00 AC 00 00 9D [13:32:09]OFD Sender: No OFD packet to send [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 43 28 00 90 00 DF [13:32:09]RAPDU: 90 00 [13:32:09]wFMCommunicate OK [13:32:09]wFMCommunicate request_size=10 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 0D 02 02 05 74 CD 56 1E 05 [13:32:09]Write to MH i2c: E2 0D 00 44 28 80 0D 02 02 05 00 74 CD 56 1E 05 00 00 AA [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:10]Read from MH i2c: E2 03 00 44 28 00 90 00 E0 [13:32:10]RAPDU: 90 00 [13:32:10]wFMCommunicate OK [13:32:10]wFMCommunicate request_size=4 [13:32:10]MH_SAM_APDU [13:32:10]CAPDU: 80 0D 03 02 [13:32:10]Write to MH i2c: E2 08 00 45 28 80 0D 03 02 00 00 00 00 E8 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:10]Read from MH i2c: E2 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: E2 0B 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: E2 0B 00 45 28 00 8A 85 89 92 FE 02 FD 07 90 00 17 [13:32:10]RAPDU: 8A 85 89 92 FE 02 FD 07 90 00 [13:32:10]wFMCommunicate OK [13:32:10]SAM_PROTO_SignData done [13:32:10]FM_MakeSignedData done [13:32:10]CreateOFDProtocolMessage [13:32:10]wFMCommunicate request_size=4 [13:32:10]MH_SAM_APDU [13:32:10]CAPDU: 80 11 00 00 [13:32:10]Write to MH i2c: E2 08 00 46 28 80 11 00 00 00 00 00 00 E8 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:10]Read from MH i2c: E2 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: E2 17 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: E2 17 00 46 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3F [13:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:32:10]wFMCommunicate OK [13:32:10]CreateOFDProtocolMessage done [13:32:10]OFDSenderStorePacket 123043 [13:32:10]StoreOFDPacket docnum=123043 [13:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B0 76 07 01 16 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 5D 7C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E0 01 00 35 04 06 00 AC 74 CD 56 1E 05 8A 85 89 92 FE 02 FD 07 [13:32:10]CheckFolder [13:32:10]dirname=/storage/ofd_packets [13:32:10]CheckFolder done [13:32:10]ProducePacketName [13:32:10]name=ofd_packets/00123043 [13:32:10]NVStorageSaveData ofd_packets/00123043 [13:32:10]File name is /storage/ofd_packets/00123043 [13:32:10]Write 301 bytes [13:32:10]NVStorageSaveData done [13:32:10]OFDSenderStorePacket done [13:32:10]KKMCreateOFDPacket done [13:32:10]NVStorageSaveData kkm_last_timestamp [13:32:10]File name is /storage/kkm_last_timestamp [13:32:10]Write 4 bytes [13:32:10]NVStorageSaveData done [13:32:10]ExternCall_PrintAddStr [13:32:10]wPrintStart [13:32:10]Write to MH i2c: 01 00 00 47 28 6F [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]OFD Sender: Processing packet 123043 [packets to send 7, broken 6] [13:32:10]Read from MH i2c: ProducePacketName [13:32:10]01 name=ofd_packets/00123043 [13:32:10] [13:32:10]OFD Sender: To server: pG, [13:32:10]MH_I2C_Read... [13:32:10]CommunicateWithHost lk.salyk.kg:30040 [13:32:10]ConnectInit lk.salyk.kg [13:32:10]Read from MH i2c: 01 07 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 07 00 47 28 00 00 00 00 00 FF 0F 84 [13:32:10]RasterBufferAndPrint [13:32:10]line Счет N : (1)717838 [13:32:10]line ИНН: 02508201610067 [13:32:10]line Контрольно-Кассовый Чек [13:32:10]line ПРОДАЖА [13:32:10]line ТРК (МРК, ГНК) : 22 [13:32:10]line Товар: 2710124130 [13:32:10]line Аи-92-К-4 [13:32:10]line 2.970 * 67.40 [13:32:10]line = 200.18 [13:32:10]line НДС 12% НСП 1% [13:32:10]line > о реализуемом товаре [13:32:10]line ОКРУГЛЕНИЕ: -0.18 [13:32:10]line ИТОГО: 200.00 [13:32:10]line Внесено: 200.00 [13:32:10]line СДАЧА: 0.00 [13:32:10]line НСП 1% : 1.77 [13:32:10]line НДС 12% : 21.26 [13:32:10]line Наличными: 200.00 [13:32:10]line Безнал.: 0.00 [13:32:10]line Место: АЗС № 64 "Партнер Нефть" [13:32:10]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:32:10]line СНО: Общий режим [13:32:10]line Чек 84 25.11.2024 13:32 [13:32:10]line Смена: 556 ФФД: 1.0 [13:32:10]line ЗНМ: 0300000033 [13:32:10]line РНМ: 0000000000092681 [13:32:10]line Версия ККМ: 001 [13:32:10]line ФМ: 0000000000874881 [13:32:10]line ФД: 123043 [13:32:10]line ФПД: 189617661156869 [13:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T133213&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123043&fm=189617661156869&tin=02508201610067®Number=0000000000092681&sum=20000 [13:32:10]written 0, free lines is 4095 [13:32:10]Connected sock=11 [13:32:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B0 76 07 01 16 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 5D 7C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E0 01 00 35 04 06 00 AC 74 CD 56 1E 05 8A 85 89 92 FE 02 FD 07 [13:32:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 2F BF 47 00 C9 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E0 01 00 F4 03 04 00 23 28 44 67 B6 04 01 00 00 87 DA DB 23 74 B2 A6 E9 [13:32:10]CommunicateWithHost err = 0 [13:32:10]CheckOFDResponse [13:32:10]1017 (14) - 77093643461234 [13:32:10]1041 (16) - 0000000000874881 [13:32:10]1040 (4) - 123043 [13:32:10]1012 (4) - 25.11.2024 07:32 [13:32:10]1206 (1) - 0 [13:32:10]OFD Sender: Remove packet 123043 [13:32:10]ProducePacketName [13:32:10]name=ofd_packets/00123043 [13:32:10]NVStorageDeleteData [13:32:10]Write to MH i2c: 01 00 00 72 28 9A [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 07 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 07 00 72 28 00 00 00 00 00 55 0C 02 [13:32:10]RasterBufferAndPrint [13:32:10]line [13:32:10]line [13:32:10]line [13:32:10]line [13:32:10]line [13:32:10]written 0, free lines is 3163 [13:32:10]MH_Cut [13:32:10]Write to MH i2c: D1 01 00 79 28 01 73 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: D1 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: D1 01 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: D1 01 00 79 28 00 72 [13:32:10]Write to MH i2c: 01 00 00 7A 28 A2 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:11]OFD Sender: No OFD packet to send [13:32:12]*** Cut start [13:32:12]*** Partial cut [13:32:12]*** CUTSNS_PIN = 1 [13:32:12]*** CUTSNS_PIN = 0 [13:32:12]*** Brake cut motor [13:32:12]Read from MH i2c: 01 [13:32:12]MH_I2C_Read... [13:32:12]*** Stop cut motor [13:32:12]*** Cut end [13:32:12]Read from MH i2c: 01 07 00 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 07 00 7A 28 00 00 00 00 00 FF 0F B7 [13:32:12]process_action close_receipt done [13:32:12]requested_data is exist [13:32:12]produce_requested_data [13:32:12]requested_item fm.sn is exist - process it [13:32:12]wFMCommunicate request_size=4 [13:32:12]MH_SAM_APDU [13:32:12]CAPDU: 80 11 00 00 [13:32:12]Write to MH i2c: E2 08 00 7B 28 80 11 00 00 00 00 00 00 1D [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:12]Read from MH i2c: E2 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: E2 17 00 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: E2 17 00 7B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 74 [13:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:32:12]wFMCommunicate OK [13:32:12]requested_item fd.num is exist - process it [13:32:12]SAM_PROTO_GetFieldsCounters [13:32:12]wFMCommunicate request_size=4 [13:32:12]MH_SAM_APDU [13:32:12]CAPDU: 80 13 00 00 [13:32:12]Write to MH i2c: E2 08 00 7C 28 80 13 00 00 00 00 00 00 20 [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:13]Read from MH i2c: E2 [13:32:13]MH_I2C_Read... [13:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:13]Read from MH i2c: E2 62 00 [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: E2 62 00 7C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A3 E0 01 00 0E 04 04 00 2C 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 F4 [13:32:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A3 E0 01 00 0E 04 04 00 2C 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 [13:32:13]wFMCommunicate OK [13:32:13]SAM_PROTO_GetFieldsCounters done [13:32:13]requested_item shift.num is exist - process it [13:32:13]requested_item shift.opened is exist - process it [13:32:13]req_shift_opened [13:32:13]FM_GetShiftState [13:32:13]SAM_PROTO_GetShiftState [13:32:13]wFMCommunicate request_size=4 [13:32:13]MH_SAM_APDU [13:32:13]CAPDU: 80 13 01 00 [13:32:13]Write to MH i2c: E2 08 00 7D 28 80 13 01 00 00 00 00 00 22 [13:32:13]Write i2c OK [13:32:13]MH_I2C_Read... [13:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:13]Read from MH i2c: E2 [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: E2 0E 00 [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: E2 0E 00 7D 28 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A1 [13:32:13]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:32:13]wFMCommunicate OK [13:32:13]SAM_PROTO_GetShiftState done [13:32:13]FM_GetShiftState done [13:32:13]req_shift_opened done [13:32:13]requested_item shift.open_date is exist - process it [13:32:13]req_shift_open_date [13:32:13]req_shift_open_date done [13:32:13]produce_requested_data done [13:32:13]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123043,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:32:13]process_action_free close_receipt [13:32:13]json_value_free [13:32:13]json_value_free done [13:32:13]process_json_proto returns [13:32:13]Send response to host [13:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123043,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:32:13]free response buf [13:32:13]execute_script done [13:32:13]execute_script returns [13:32:13]free content buf [13:32:13]Sock 9.Close socket [13:32:13]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:09]accept exits with 10 [13:36:09]New connection [13:36:09]New thread 3066723684 created [13:36:09]Thread 3066580324 joined [13:36:09]Waiting for new connection... [13:36:09] Sock 10.Parse request [13:36:09]Sock 10.Check first char [13:36:09]Sock 10.First char is OK [13:36:09]request: POST /json_proto HTTP/1.0 [13:36:09]Method: POST [13:36:09]URL: /json_proto [13:36:09]Method is POST - this is cgi request [13:36:09]url: /json_proto [13:36:09]query_string will be loaded in cgi processing [13:36:09]execute_cgi json_proto POST (null) [13:36:09]execute_cgi path=json_proto method=POST [13:36:09]POST find Content-Length [13:36:09]Host: 172.17.37.4:8080 [13:36:09]Content-Length: 682 [13:36:09]Content-Type: application/json [13:36:09] [13:36:09]POST finish read [13:36:09]Found Content-Length = 682 [13:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:09]execute_script... [13:36: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)717839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:09]POST & json_proto [13:36:09]process_json_proto [13:36:09]json parsed OK: [13:36:09]protocol is kg_v1.0 [13:36:09]action value=close_receipt [13:36:09]process_action close_receipt [13:36:09]cmd_close_receipt [13:36:09]MH_GetDate [13:36:09]Write to MH i2c: F0 00 00 7E 28 95 [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: F0 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: F0 09 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: F0 09 00 7E 28 00 4F 7D 44 67 B8 5A 43 67 D1 [13:36:09]GetLastDocTimeStamp 1732541533 [13:36:09]current date 1732541775 [13:36:09]FM_GetShiftState [13:36:09]SAM_PROTO_GetShiftState [13:36:09]wFMCommunicate request_size=4 [13:36:09]MH_SAM_APDU [13:36:09]CAPDU: 80 13 01 00 [13:36:09]Write to MH i2c: E2 08 00 7F 28 80 13 01 00 00 00 00 00 24 [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 0E 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 0E 00 7F 28 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A3 [13:36:09]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:36:09]wFMCommunicate OK [13:36:09]SAM_PROTO_GetShiftState done [13:36:09]FM_GetShiftState done [13:36:09]opened in 1732493066 [13:36:09]opened+sec_in_day 1732579466 [13:36:09]quantity*price = 150032 [13:36:09]sum+1 = 150033 [13:36:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 85 25.11.2024 13:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123044 ФПД: 65001052873042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T133615&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123044&fm=65001052873042&tin=02508201610067®Number=0000000000092681&sum=150000 [13:36:11]StoreToDocumentArchive [13:36:11]shift 556 fd 123044 [13:36:11]save to /storage/0556/doc_00123044 [13:36:11]save last doc name /storage/0556/doc_00123044 to /storage/kkm_last_doc_name [13:36:11]save OK [13:36:11]Clear old archive folders... [13:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:11]tlvbuf is 020D3340 [13:36:11]SAM_PROTO_ClearQueue [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 09 00 00 [13:36:11]Write to MH i2c: E2 08 00 8C 28 80 09 00 00 00 00 00 00 26 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 8C 28 00 90 00 28 [13:36:11]RAPDU: 90 00 [13:36:11]wFMCommunicate OK [13:36:11]SAM_PROTO_ClearQueue done [13:36:11]KKMCreateOFDPacket [13:36:11]OFDProtocolAddRootSTLVToBuf [13:36:11]FM_MakeSignedData [13:36:11]FM_MakeSignedData [13:36:11]SAM_PROTO_SignData [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 0D 01 02 [13:36:11]Write to MH i2c: E2 08 00 8D 28 80 0D 01 02 00 00 00 00 2E [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 8D 28 00 90 00 29 [13:36:11]RAPDU: 90 00 [13:36:11]wFMCommunicate OK [13:36:11]wFMCommunicate request_size=255 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 4F 7D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E0 01 00 35 04 06 00 3B [13:36:11]Write to MH i2c: E2 02 01 8E 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 4F 7D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E0 01 00 35 04 06 00 3B 00 00 30 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 8E 28 00 90 00 2A [13:36:11]RAPDU: 90 00 [13:36:11]wFMCommunicate OK [13:36:11]wFMCommunicate request_size=10 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 0D 02 02 05 1E 3C AA A1 52 [13:36:11]Write to MH i2c: E2 0D 00 8F 28 80 0D 02 02 05 00 1E 3C AA A1 52 00 00 32 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]OFD Sender: No OFD packet to send [13:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 8F 28 00 90 00 2B [13:36:11]RAPDU: 90 00 [13:36:11]wFMCommunicate OK [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 0D 03 02 [13:36:11]Write to MH i2c: E2 08 00 90 28 80 0D 03 02 00 00 00 00 33 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 0B 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 0B 00 90 28 00 B0 53 2B 20 E1 85 DE 5E 90 00 24 [13:36:11]RAPDU: B0 53 2B 20 E1 85 DE 5E 90 00 [13:36:11]wFMCommunicate OK [13:36:11]SAM_PROTO_SignData done [13:36:11]FM_MakeSignedData done [13:36:11]CreateOFDProtocolMessage [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 11 00 00 [13:36:11]Write to MH i2c: E2 08 00 91 28 80 11 00 00 00 00 00 00 33 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 17 00 [13:36:11]MH_I2C_Read... [13:36:11]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 34 38 38 31 90 00 8A [13:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:36:11]wFMCommunicate OK [13:36:11]CreateOFDProtocolMessage done [13:36:11]OFDSenderStorePacket 123044 [13:36:11]StoreOFDPacket docnum=123044 [13:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8F 6B 07 01 D8 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 4F 7D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E0 01 00 35 04 06 00 3B 1E 3C AA A1 52 B0 53 2B 20 E1 85 DE 5E [13:36:11]CheckFolder [13:36:11]dirname=/storage/ofd_packets [13:36:11]CheckFolder done [13:36:11]ProducePacketName [13:36:11]name=ofd_packets/00123044 [13:36:11]NVStorageSaveData ofd_packets/00123044 [13:36:11]File name is /storage/ofd_packets/00123044 [13:36:11]Write 301 bytes [13:36:11]NVStorageSaveData done [13:36:11]OFDSenderStorePacket done [13:36:11]KKMCreateOFDPacket done [13:36:11]NVStorageSaveData kkm_last_timestamp [13:36:11]File name is /storage/kkm_last_timestamp [13:36:11]Write 4 bytes [13:36:11]NVStorageSaveData done [13:36:11]ExternCall_PrintAddStr [13:36:11]wPrintStart [13:36:11]Write to MH i2c: 01 00 00 92 28 BA [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: 01 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: 01 07 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: 01 07 00 92 28 00 00 00 00 00 FF 0F CF [13:36:11]RasterBufferAndPrint [13:36:11]line Счет N : (1)717839 [13:36:11]line ИНН: 02508201610067 [13:36:11]line Контрольно-Кассовый Чек [13:36:11]line ПРОДАЖА [13:36:11]line ТРК (МРК, ГНК) : 12 [13:36:11]line Товар: 2710124130 [13:36:11]line Аи-92-К-4 [13:36:11]line 22.260 * 67.40 [13:36:11]line = 1500.32 [13:36:11]line НДС 12% НСП 1% [13:36:11]line > о реализуемом товаре [13:36:11]line ОКРУГЛЕНИЕ: -0.32 [13:36:11]line ИТОГО: 1500.00 [13:36:11]line Внесено: 1500.00 [13:36:11]line СДАЧА: 0.00 [13:36:11]line НСП 1% : 13.28 [13:36:11]line НДС 12% : 159.33 [13:36:11]line Наличными: 1500.00 [13:36:11]line Безнал.: 0.00 [13:36:11]line Место: АЗС № 64 "Партнер Нефть" [13:36:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:36:11]line СНО: Общий режим [13:36:11]line Чек 85 25.11.2024 13:36 [13:36:11]line Смена: 556 ФФД: 1.0 [13:36:11]line ЗНМ: 0300000033 [13:36:11]line РНМ: 0000000000092681 [13:36:11]line Версия ККМ: 001 [13:36:11]line ФМ: 0000000000874881 [13:36:11]line ФД: 123044 [13:36:11]line ФПД: 65001052873042 [13:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T133615&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123044&fm=65001052873042&tin=02508201610067®Number=0000000000092681&sum=150000 [13:36:11]OFD Sender: Processing packet 123044 [packets to send 7, broken 6] [13:36:11]ProducePacketName [13:36:11]name=ofd_packets/00123044 [13:36:11]OFD Sender: To server: pG, [13:36:11]CommunicateWithHost lk.salyk.kg:30040 [13:36:11]ConnectInit lk.salyk.kg [13:36:11]written 0, free lines is 4095 [13:36:11]Connected sock=9 [13:36:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8F 6B 07 01 D8 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 4F 7D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E0 01 00 35 04 06 00 3B 1E 3C AA A1 52 B0 53 2B 20 E1 85 DE 5E [13:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 62 86 47 00 44 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E0 01 00 F4 03 04 00 14 29 44 67 B6 04 01 00 00 82 37 90 9B A8 10 4A 82 [13:36:12]CommunicateWithHost err = 0 [13:36:12]CheckOFDResponse [13:36:12]1017 (14) - 77093643461234 [13:36:12]1041 (16) - 0000000000874881 [13:36:12]1040 (4) - 123044 [13:36:12]1012 (4) - 25.11.2024 07:36 [13:36:12]1206 (1) - 0 [13:36:12]OFD Sender: Remove packet 123044 [13:36:12]ProducePacketName [13:36:12]name=ofd_packets/00123044 [13:36:12]NVStorageDeleteData [13:36:12]Write to MH i2c: 01 00 00 BD 28 E5 [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 07 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 07 00 BD 28 00 00 00 00 00 4F 0C 47 [13:36:12]RasterBufferAndPrint [13:36:12]line [13:36:12]line [13:36:12]line [13:36:12]line [13:36:12]line [13:36:12]written 0, free lines is 3156 [13:36:12]MH_Cut [13:36:12]Write to MH i2c: D1 01 00 C4 28 01 BE [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: D1 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: D1 01 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: D1 01 00 C4 28 00 BD [13:36:12]Write to MH i2c: 01 00 00 C5 28 ED [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]OFD Sender: No OFD packet to send [13:36:13]*** Cut start [13:36:13]*** Partial cut [13:36:13]*** CUTSNS_PIN = 1 [13:36:13]*** CUTSNS_PIN = 0 [13:36:13]*** Brake cut motor [13:36:14]Read from MH i2c: 01 [13:36:14]MH_I2C_Read... [13:36:14]*** Stop cut motor [13:36:14]*** Cut end [13:36:14]Read from MH i2c: 01 07 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 C5 28 00 00 00 00 00 FF 0F 02 [13:36:14]process_action close_receipt done [13:36:14]requested_data is exist [13:36:14]produce_requested_data [13:36:14]requested_item fm.sn is exist - process it [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 11 00 00 [13:36:14]Write to MH i2c: E2 08 00 C6 28 80 11 00 00 00 00 00 00 68 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 17 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 17 00 C6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BF [13:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:36:14]wFMCommunicate OK [13:36:14]requested_item fd.num is exist - process it [13:36:14]SAM_PROTO_GetFieldsCounters [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 13 00 00 [13:36:14]Write to MH i2c: E2 08 00 C7 28 80 13 00 00 00 00 00 00 6B [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 62 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 62 00 C7 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A4 E0 01 00 0E 04 04 00 2C 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 43 [13:36:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A4 E0 01 00 0E 04 04 00 2C 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 [13:36:14]wFMCommunicate OK [13:36:14]SAM_PROTO_GetFieldsCounters done [13:36:14]requested_item shift.num is exist - process it [13:36:14]requested_item shift.opened is exist - process it [13:36:14]req_shift_opened [13:36:14]FM_GetShiftState [13:36:14]SAM_PROTO_GetShiftState [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 13 01 00 [13:36:14]Write to MH i2c: E2 08 00 C8 28 80 13 01 00 00 00 00 00 6D [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:14]Read from MH i2c: E2 0E 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 0E 00 C8 28 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 EC [13:36:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:36:14]wFMCommunicate OK [13:36:14]SAM_PROTO_GetShiftState done [13:36:14]FM_GetShiftState done [13:36:14]req_shift_opened done [13:36:14]requested_item shift.open_date is exist - process it [13:36:14]req_shift_open_date [13:36:14]req_shift_open_date done [13:36:14]produce_requested_data done [13:36:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123044,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:36:14]process_action_free close_receipt [13:36:14]json_value_free [13:36:14]json_value_free done [13:36:14]process_json_proto returns [13:36:14]Send response to host [13:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123044,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:36:14]free response buf [13:36:14]execute_script done [13:36:14]execute_script returns [13:36:14]free content buf [13:36:14]Sock 10.Close socket [13:36:14]Sock 10.Thread stoped [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:31]accept exits with 7 [13:44:31]New connection [13:44:31]New thread 3066580324 created [13:44:31]Thread 3066723684 joined [13:44:31]Waiting for new connection... [13:44:31] Sock 7.Parse request [13:44:31]Sock 7.Check first char [13:44:31]Sock 7.First char is OK [13:44:31]request: POST /json_proto HTTP/1.0 [13:44:31]Method: POST [13:44:31]URL: /json_proto [13:44:31]Method is POST - this is cgi request [13:44:31]url: /json_proto [13:44:31]query_string will be loaded in cgi processing [13:44:31]execute_cgi json_proto POST (null) [13:44:31]execute_cgi path=json_proto method=POST [13:44:31]POST find Content-Length [13:44:31]Host: 172.17.37.4:8080 [13:44:31]Content-Length: 640 [13:44:31]Content-Type: application/json [13:44:31] [13:44:31]POST finish read [13:44:31]Found Content-Length = 640 [13:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:31]execute_script... [13:44: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)717840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:31]POST & json_proto [13:44:31]process_json_proto [13:44:31]json parsed OK: [13:44:31]protocol is kg_v1.0 [13:44:31]action value=close_receipt [13:44:31]process_action close_receipt [13:44:31]cmd_close_receipt [13:44:31]MH_GetDate [13:44:31]Write to MH i2c: F0 00 00 C9 28 E0 [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: F0 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: F0 09 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: F0 09 00 C9 28 00 44 7F 44 67 B8 5A 43 67 13 [13:44:31]GetLastDocTimeStamp 1732541775 [13:44:31]current date 1732542276 [13:44:31]FM_GetShiftState [13:44:31]SAM_PROTO_GetShiftState [13:44:31]wFMCommunicate request_size=4 [13:44:31]MH_SAM_APDU [13:44:31]CAPDU: 80 13 01 00 [13:44:31]Write to MH i2c: E2 08 00 CA 28 80 13 01 00 00 00 00 00 6F [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:31]Read from MH i2c: E2 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 0E 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 0E 00 CA 28 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 EE [13:44:31]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:44:31]wFMCommunicate OK [13:44:31]SAM_PROTO_GetShiftState done [13:44:31]FM_GetShiftState done [13:44:31]opened in 1732493066 [13:44:31]opened+sec_in_day 1732579466 [13:44:31]quantity*price = 67400 [13:44:31]sum+1 = 67401 [13:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 674.00 НСП 1% : 5.96 НДС 12% : 71.57 Наличными: 674.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 86 25.11.2024 13:44 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123045 ФПД: 118606531047471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T134436&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123045&fm=118606531047471&tin=02508201610067®Number=0000000000092681&sum=67400 [13:44:32]StoreToDocumentArchive [13:44:32]shift 556 fd 123045 [13:44:32]save to /storage/0556/doc_00123045 [13:44:32]save last doc name /storage/0556/doc_00123045 to /storage/kkm_last_doc_name [13:44:32]save OK [13:44:32]Clear old archive folders... [13:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:32]tlvbuf is 02057B30 [13:44:32]SAM_PROTO_ClearQueue [13:44:32]wFMCommunicate request_size=4 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 09 00 00 [13:44:32]Write to MH i2c: E2 08 00 D7 28 80 09 00 00 00 00 00 00 71 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 D7 28 00 90 00 73 [13:44:32]RAPDU: 90 00 [13:44:32]wFMCommunicate OK [13:44:32]SAM_PROTO_ClearQueue done [13:44:32]KKMCreateOFDPacket [13:44:32]OFDProtocolAddRootSTLVToBuf [13:44:32]FM_MakeSignedData [13:44:32]FM_MakeSignedData [13:44:32]SAM_PROTO_SignData [13:44:32]wFMCommunicate request_size=4 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 0D 01 02 [13:44:32]Write to MH i2c: E2 08 00 D8 28 80 0D 01 02 00 00 00 00 79 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 D8 28 00 90 00 74 [13:44:32]RAPDU: 90 00 [13:44:32]wFMCommunicate OK [13:44:32]wFMCommunicate request_size=255 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 48 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 44 7F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E0 01 00 35 04 06 00 6B [13:44:32]Write to MH i2c: E2 02 01 D9 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 48 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 44 7F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E0 01 00 35 04 06 00 6B 00 00 65 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 D9 28 00 90 00 75 [13:44:32]RAPDU: 90 00 [13:44:32]wFMCommunicate OK [13:44:32]wFMCommunicate request_size=10 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 0D 02 02 05 DF 3C 26 B0 2F [13:44:32]Write to MH i2c: E2 0D 00 DA 28 80 0D 02 02 05 00 DF 3C 26 B0 2F 00 00 A6 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 DA 28 00 90 00 76 [13:44:32]RAPDU: 90 00 [13:44:32]wFMCommunicate OK [13:44:32]wFMCommunicate request_size=4 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 0D 03 02 [13:44:32]Write to MH i2c: E2 08 00 DB 28 80 0D 03 02 00 00 00 00 7E [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 0B 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 0B 00 DB 28 00 37 C0 1E 33 67 40 9C 48 90 00 52 [13:44:32]RAPDU: 37 C0 1E 33 67 40 9C 48 90 00 [13:44:32]wFMCommunicate OK [13:44:32]SAM_PROTO_SignData done [13:44:32]FM_MakeSignedData done [13:44:32]CreateOFDProtocolMessage [13:44:32]wFMCommunicate request_size=4 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 11 00 00 [13:44:32]Write to MH i2c: E2 08 00 DC 28 80 11 00 00 00 00 00 00 7E [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 17 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 17 00 DC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D5 [13:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:44:32]wFMCommunicate OK [13:44:32]CreateOFDProtocolMessage done [13:44:32]OFDSenderStorePacket 123045 [13:44:32]StoreOFDPacket docnum=123045 [13:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F1 6D 07 01 C7 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 48 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 44 7F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E0 01 00 35 04 06 00 6B DF 3C 26 B0 2F 37 C0 1E 33 67 40 9C 48 [13:44:32]CheckFolder [13:44:32]dirname=/storage/ofd_packets [13:44:32]CheckFolder done [13:44:32]ProducePacketName [13:44:32]name=ofd_packets/00123045 [13:44:32]NVStorageSaveData ofd_packets/00123045 [13:44:32]File name is /storage/ofd_packets/00123045 [13:44:32]Write 301 bytes [13:44:32]NVStorageSaveData done [13:44:32]OFDSenderStorePacket done [13:44:32]KKMCreateOFDPacket done [13:44:32]NVStorageSaveData kkm_last_timestamp [13:44:32]File name is /storage/kkm_last_timestamp [13:44:32]Write 4 bytes [13:44:32]NVStorageSaveData done [13:44:32]ExternCall_PrintAddStr [13:44:32]wPrintStart [13:44:32]Write to MH i2c: 01 00 00 DD 28 05 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 07 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 07 00 DD 28 00 00 00 00 00 FF 0F 1A [13:44:32]RasterBufferAndPrint [13:44:32]line Счет N : (1)717840 [13:44:32]line ИНН: 02508201610067 [13:44:32]line Контрольно-Кассовый Чек [13:44:32]line ПРОДАЖА [13:44:32]line ТРК (МРК, ГНК) : 22 [13:44:32]line Товар: 2710124130 [13:44:32]line Аи-92-К-4 [13:44:32]line 10.000 * 67.40 [13:44:32]line = 674.00 [13:44:32]line НДС 12% НСП 1% [13:44:32]line > о реализуемом товаре [13:44:32]line ИТОГО: 674.00 [13:44:32]line НСП 1% : 5.96 [13:44:32]line НДС 12% : 71.57 [13:44:32]line Наличными: 674.00 [13:44:32]line Безнал.: 0.00 [13:44:32]line Место: АЗС № 64 "Партнер Нефть" [13:44:32]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:44:32]line СНО: Общий режим [13:44:32]line Чек 86 25.11.2024 13:44 [13:44:32]line Смена: 556 ФФД: 1.0 [13:44:32]line ЗНМ: 0300000033 [13:44:32]line РНМ: 0000000000092681 [13:44:32]line Версия ККМ: 001 [13:44:32]line ФМ: 0000000000874881 [13:44:32]line ФД: 123045 [13:44:32]line ФПД: 118606531047471 [13:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T134436&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123045&fm=118606531047471&tin=02508201610067®Number=0000000000092681&sum=67400 [13:44:33]OFD Sender: Processing packet 123045 [packets to send 7, broken 6] [13:44:33]ProducePacketName [13:44:33]name=ofd_packets/00123045 [13:44:33]OFD Sender: To server: pG, [13:44:33]CommunicateWithHost lk.salyk.kg:30040 [13:44:33]ConnectInit lk.salyk.kg [13:44:33]written 0, free lines is 4095 [13:44:33]Connected sock=10 [13:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F1 6D 07 01 C7 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 48 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 44 7F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E0 01 00 35 04 06 00 6B DF 3C 26 B0 2F 37 C0 1E 33 67 40 9C 48 [13:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6B 8A 47 00 64 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E0 01 00 F4 03 04 00 0A 2B 44 67 B6 04 01 00 00 AC 05 E2 03 2B 4D 56 03 [13:44:33]CommunicateWithHost err = 0 [13:44:33]CheckOFDResponse [13:44:33]1017 (14) - 77093643461234 [13:44:33]1041 (16) - 0000000000874881 [13:44:33]1040 (4) - 123045 [13:44:33]1012 (4) - 25.11.2024 07:45 [13:44:33]1206 (1) - 0 [13:44:33]OFD Sender: Remove packet 123045 [13:44:33]ProducePacketName [13:44:33]name=ofd_packets/00123045 [13:44:33]NVStorageDeleteData [13:44:33]Write to MH i2c: 01 00 00 05 29 2E [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 07 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 07 00 05 29 00 00 00 00 00 8A 0C CB [13:44:33]RasterBufferAndPrint [13:44:33]line [13:44:33]line [13:44:33]line [13:44:33]line [13:44:33]line [13:44:33]written 0, free lines is 3214 [13:44:33]MH_Cut [13:44:33]Write to MH i2c: D1 01 00 0C 29 01 07 [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: D1 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: D1 01 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: D1 01 00 0C 29 00 06 [13:44:33]Write to MH i2c: 01 00 00 0D 29 36 [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]OFD Sender: No OFD packet to send [13:44:34]*** Cut start [13:44:34]*** Partial cut [13:44:34]*** CUTSNS_PIN = 1 [13:44:34]*** CUTSNS_PIN = 0 [13:44:35]*** Brake cut motor [13:44:35]Read from MH i2c: 01 [13:44:35]MH_I2C_Read... [13:44:35]*** Stop cut motor [13:44:35]*** Cut end [13:44:35]Read from MH i2c: 01 07 00 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: 01 07 00 0D 29 00 00 00 00 00 FF 0F 4B [13:44:35]process_action close_receipt done [13:44:35]requested_data is exist [13:44:35]produce_requested_data [13:44:35]requested_item fm.sn is exist - process it [13:44:35]wFMCommunicate request_size=4 [13:44:35]MH_SAM_APDU [13:44:35]CAPDU: 80 11 00 00 [13:44:35]Write to MH i2c: E2 08 00 0E 29 80 11 00 00 00 00 00 00 B1 [13:44:35]Write i2c OK [13:44:35]MH_I2C_Read... [13:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:35]Read from MH i2c: E2 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 17 00 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 17 00 0E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 08 [13:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:44:35]wFMCommunicate OK [13:44:35]requested_item fd.num is exist - process it [13:44:35]SAM_PROTO_GetFieldsCounters [13:44:35]wFMCommunicate request_size=4 [13:44:35]MH_SAM_APDU [13:44:35]CAPDU: 80 13 00 00 [13:44:35]Write to MH i2c: E2 08 00 0F 29 80 13 00 00 00 00 00 00 B4 [13:44:35]Write i2c OK [13:44:35]MH_I2C_Read... [13:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:35]Read from MH i2c: E2 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 62 00 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 62 00 0F 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A5 E0 01 00 0E 04 04 00 2C 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 90 [13:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A5 E0 01 00 0E 04 04 00 2C 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 [13:44:35]wFMCommunicate OK [13:44:35]SAM_PROTO_GetFieldsCounters done [13:44:35]requested_item shift.num is exist - process it [13:44:35]requested_item shift.opened is exist - process it [13:44:35]req_shift_opened [13:44:35]FM_GetShiftState [13:44:35]SAM_PROTO_GetShiftState [13:44:35]wFMCommunicate request_size=4 [13:44:35]MH_SAM_APDU [13:44:35]CAPDU: 80 13 01 00 [13:44:35]Write to MH i2c: E2 08 00 10 29 80 13 01 00 00 00 00 00 B6 [13:44:35]Write i2c OK [13:44:35]MH_I2C_Read... [13:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:35]Read from MH i2c: E2 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 0E 00 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 0E 00 10 29 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 35 [13:44:35]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:44:35]wFMCommunicate OK [13:44:35]SAM_PROTO_GetShiftState done [13:44:35]FM_GetShiftState done [13:44:35]req_shift_opened done [13:44:35]requested_item shift.open_date is exist - process it [13:44:35]req_shift_open_date [13:44:35]req_shift_open_date done [13:44:35]produce_requested_data done [13:44:35]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123045,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:44:35]process_action_free close_receipt [13:44:35]json_value_free [13:44:35]json_value_free done [13:44:35]process_json_proto returns [13:44:35]Send response to host [13:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123045,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:44:35]free response buf [13:44:35]execute_script done [13:44:35]execute_script returns [13:44:35]free content buf [13:44:35]Sock 7.Close socket [13:44:35]Sock 7.Thread stoped [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:28]accept exits with 9 [13:56:28]New connection [13:56:28]New thread 3066723684 created [13:56:28]Thread 3066580324 joined [13:56:28]Waiting for new connection... [13:56:28] Sock 9.Parse request [13:56:28]Sock 9.Check first char [13:56:28]Sock 9.First char is OK [13:56:28]request: POST /json_proto HTTP/1.0 [13:56:28]Method: POST [13:56:28]URL: /json_proto [13:56:28]Method is POST - this is cgi request [13:56:28]url: /json_proto [13:56:28]query_string will be loaded in cgi processing [13:56:28]execute_cgi json_proto POST (null) [13:56:28]execute_cgi path=json_proto method=POST [13:56:28]POST find Content-Length [13:56:28]Host: 172.17.37.4:8080 [13:56:28]Content-Length: 678 [13:56:28]Content-Type: application/json [13:56:28] [13:56:28]POST finish read [13:56:28]Found Content-Length = 678 [13:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 12.710, "sum" : 856.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:28]execute_script... [13:56:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 12.710, "sum" : 856.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:28]POST & json_proto [13:56:28]process_json_proto [13:56:28]json parsed OK: [13:56:28]protocol is kg_v1.0 [13:56:28]action value=close_receipt [13:56:28]process_action close_receipt [13:56:28]cmd_close_receipt [13:56:28]MH_GetDate [13:56:28]Write to MH i2c: F0 00 00 11 29 29 [13:56:28]Write i2c OK [13:56:28]MH_I2C_Read... [13:56:28]Read from MH i2c: F0 [13:56:28]MH_I2C_Read... [13:56:28]Read from MH i2c: F0 09 00 [13:56:28]MH_I2C_Read... [13:56:28]Read from MH i2c: F0 09 00 11 29 00 12 82 44 67 B8 5A 43 67 2D [13:56:28]GetLastDocTimeStamp 1732542276 [13:56:28]current date 1732542994 [13:56:28]FM_GetShiftState [13:56:28]SAM_PROTO_GetShiftState [13:56:28]wFMCommunicate request_size=4 [13:56:28]MH_SAM_APDU [13:56:28]CAPDU: 80 13 01 00 [13:56:28]Write to MH i2c: E2 08 00 12 29 80 13 01 00 00 00 00 00 B8 [13:56:28]Write i2c OK [13:56:28]MH_I2C_Read... [13:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:28]Read from MH i2c: E2 [13:56:28]MH_I2C_Read... [13:56:28]Read from MH i2c: E2 0E 00 [13:56:28]MH_I2C_Read... [13:56:28]Read from MH i2c: E2 0E 00 12 29 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 37 [13:56:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:56:28]wFMCommunicate OK [13:56:28]SAM_PROTO_GetShiftState done [13:56:28]FM_GetShiftState done [13:56:28]opened in 1732493066 [13:56:28]opened+sec_in_day 1732579466 [13:56:28]quantity*price = 85665 [13:56:28]sum+1 = 85666 [13:56:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 856.00 Внесено: 856.00 СДАЧА: 0.00 НСП 1% : 7.58 НДС 12% : 90.97 Наличными: 856.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 87 25.11.2024 13:56 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123046 ФПД: 107281197463107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T135634&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123046&fm=107281197463107&tin=02508201610067®Number=0000000000092681&sum=85600 [13:56:29]StoreToDocumentArchive [13:56:29]shift 556 fd 123046 [13:56:29]save to /storage/0556/doc_00123046 [13:56:29]save last doc name /storage/0556/doc_00123046 to /storage/kkm_last_doc_name [13:56:29]save OK [13:56:29]Clear old archive folders... [13:56:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:29]tlvbuf is 02090630 [13:56:29]SAM_PROTO_ClearQueue [13:56:29]wFMCommunicate request_size=4 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 09 00 00 [13:56:29]Write to MH i2c: E2 08 00 1F 29 80 09 00 00 00 00 00 00 BA [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:30]Read from MH i2c: E2 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 03 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 03 00 1F 29 00 90 00 BC [13:56:30]RAPDU: 90 00 [13:56:30]wFMCommunicate OK [13:56:30]SAM_PROTO_ClearQueue done [13:56:30]KKMCreateOFDPacket [13:56:30]OFDProtocolAddRootSTLVToBuf [13:56:30]FM_MakeSignedData [13:56:30]FM_MakeSignedData [13:56:30]SAM_PROTO_SignData [13:56:30]wFMCommunicate request_size=4 [13:56:30]MH_SAM_APDU [13:56:30]CAPDU: 80 0D 01 02 [13:56:30]Write to MH i2c: E2 08 00 20 29 80 0D 01 02 00 00 00 00 C2 [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:30]Read from MH i2c: E2 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 03 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 03 00 20 29 00 90 00 BD [13:56:30]RAPDU: 90 00 [13:56:30]wFMCommunicate OK [13:56:30]wFMCommunicate request_size=255 [13:56:30]MH_SAM_APDU [13:56:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A1 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 23 00 00 00 00 07 04 06 00 60 4E 01 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 12 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E0 01 00 35 04 06 00 61 [13:56:30]Write to MH i2c: E2 02 01 21 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A1 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 23 00 00 00 00 07 04 06 00 60 4E 01 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 12 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E0 01 00 35 04 06 00 61 00 00 B3 [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:30]Read from MH i2c: E2 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 03 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 03 00 21 29 00 90 00 BE [13:56:30]RAPDU: 90 00 [13:56:30]wFMCommunicate OK [13:56:30]wFMCommunicate request_size=10 [13:56:30]MH_SAM_APDU [13:56:30]CAPDU: 80 0D 02 02 05 92 59 AA 76 43 [13:56:30]Write to MH i2c: E2 0D 00 22 29 80 0D 02 02 05 00 92 59 AA 76 43 00 00 1D [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:30]Read from MH i2c: E2 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 03 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 03 00 22 29 00 90 00 BF [13:56:30]RAPDU: 90 00 [13:56:30]wFMCommunicate OK [13:56:30]wFMCommunicate request_size=4 [13:56:30]MH_SAM_APDU [13:56:30]CAPDU: 80 0D 03 02 [13:56:30]Write to MH i2c: E2 08 00 23 29 80 0D 03 02 00 00 00 00 C7 [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:30]Read from MH i2c: E2 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 0B 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 0B 00 23 29 00 8D 08 F4 04 96 14 79 F2 90 00 6A [13:56:30]RAPDU: 8D 08 F4 04 96 14 79 F2 90 00 [13:56:30]wFMCommunicate OK [13:56:30]SAM_PROTO_SignData done [13:56:30]FM_MakeSignedData done [13:56:30]CreateOFDProtocolMessage [13:56:30]wFMCommunicate request_size=4 [13:56:30]MH_SAM_APDU [13:56:30]CAPDU: 80 11 00 00 [13:56:30]Write to MH i2c: E2 08 00 24 29 80 11 00 00 00 00 00 00 C7 [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:30]Read from MH i2c: E2 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 17 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 17 00 24 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1E [13:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:56:30]wFMCommunicate OK [13:56:30]CreateOFDProtocolMessage done [13:56:30]OFDSenderStorePacket 123046 [13:56:30]StoreOFDPacket docnum=123046 [13:56:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3E 94 07 01 26 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A1 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 23 00 00 00 00 07 04 06 00 60 4E 01 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 12 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E0 01 00 35 04 06 00 61 92 59 AA 76 43 8D 08 F4 04 96 14 79 F2 [13:56:30]CheckFolder [13:56:30]dirname=/storage/ofd_packets [13:56:30]CheckFolder done [13:56:30]ProducePacketName [13:56:30]name=ofd_packets/00123046 [13:56:30]NVStorageSaveData ofd_packets/00123046 [13:56:30]File name is /storage/ofd_packets/00123046 [13:56:30]Write 301 bytes [13:56:30]NVStorageSaveData done [13:56:30]OFDSenderStorePacket done [13:56:30]KKMCreateOFDPacket done [13:56:30]NVStorageSaveData kkm_last_timestamp [13:56:30]File name is /storage/kkm_last_timestamp [13:56:30]Write 4 bytes [13:56:30]NVStorageSaveData done [13:56:30]ExternCall_PrintAddStr [13:56:30]wPrintStart [13:56:30]Write to MH i2c: 01 00 00 25 29 4E [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: 01 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: 01 07 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: 01 07 00 25 29 00 00 00 00 00 FF 0F 63 [13:56:30]RasterBufferAndPrint [13:56:30]line Счет N : (1)717841 [13:56:30]line ИНН: 02508201610067 [13:56:30]line Контрольно-Кассовый Чек [13:56:30]line ПРОДАЖА [13:56:30]line ТРК (МРК, ГНК) : 22 [13:56:30]line Товар: 2710124130 [13:56:30]line Аи-92-К-4 [13:56:30]line 12.710 * 67.40 [13:56:30]line = 856.65 [13:56:30]line НДС 12% НСП 1% [13:56:30]line > о реализуемом товаре [13:56:30]line ОКРУГЛЕНИЕ: -0.65 [13:56:30]line ИТОГО: 856.00 [13:56:30]line Внесено: 856.00 [13:56:30]line СДАЧА: 0.00 [13:56:30]line НСП 1% : 7.58 [13:56:30]line НДС 12% : 90.97 [13:56:30]line Наличными: 856.00 [13:56:30]line Безнал.: 0.00 [13:56:30]line Место: АЗС № 64 "Партнер Нефть" [13:56:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:56:30]line СНО: Общий режим [13:56:30]line Чек 87 25.11.2024 13:56 [13:56:30]line Смена: 556 ФФД: 1.0 [13:56:30]line ЗНМ: 0300000033 [13:56:30]line РНМ: 0000000000092681 [13:56:30]line Версия ККМ: 001 [13:56:30]line ФМ: 0000000000874881 [13:56:30]line ФД: 123046 [13:56:30]line ФПД: 107281197463107 [13:56:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T135634&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123046&fm=107281197463107&tin=02508201610067®Number=0000000000092681&sum=85600 [13:56:30]OFD Sender: Processing packet 123046 [packets to send 7, broken 6] [13:56:30]ProducePacketName [13:56:30]name=ofd_packets/00123046 [13:56:30]OFD Sender: To server: pG, [13:56:30]CommunicateWithHost lk.salyk.kg:30040 [13:56:30]ConnectInit lk.salyk.kg [13:56:30]written 0, free lines is 4095 [13:56:30]Connected sock=11 [13:56:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3E 94 07 01 26 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A1 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 23 00 00 00 00 07 04 06 00 60 4E 01 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 12 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E0 01 00 35 04 06 00 61 92 59 AA 76 43 8D 08 F4 04 96 14 79 F2 [13:56:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AF 27 47 00 93 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E0 01 00 F4 03 04 00 D7 2D 44 67 B6 04 01 00 00 7D F2 F6 1E 09 2A 66 47 [13:56:31]CommunicateWithHost err = 0 [13:56:31]CheckOFDResponse [13:56:31]1017 (14) - 77093643461234 [13:56:31]1041 (16) - 0000000000874881 [13:56:31]1040 (4) - 123046 [13:56:31]1012 (4) - 25.11.2024 07:57 [13:56:31]1206 (1) - 0 [13:56:31]OFD Sender: Remove packet 123046 [13:56:31]ProducePacketName [13:56:31]name=ofd_packets/00123046 [13:56:31]NVStorageDeleteData [13:56:31]Write to MH i2c: 01 00 00 50 29 79 [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: 01 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: 01 07 00 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: 01 07 00 50 29 00 00 00 00 00 40 0C CC [13:56:31]RasterBufferAndPrint [13:56:31]line [13:56:31]line [13:56:31]line [13:56:31]line [13:56:31]line [13:56:31]written 0, free lines is 3140 [13:56:31]MH_Cut [13:56:31]Write to MH i2c: D1 01 00 57 29 01 52 [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: D1 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: D1 01 00 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: D1 01 00 57 29 00 51 [13:56:31]Write to MH i2c: 01 00 00 58 29 81 [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:31]OFD Sender: No OFD packet to send [13:56:32]*** Cut start [13:56:32]*** Partial cut [13:56:32]*** CUTSNS_PIN = 1 [13:56:32]*** CUTSNS_PIN = 0 [13:56:32]*** Brake cut motor [13:56:33]Read from MH i2c: 01 [13:56:33]MH_I2C_Read... [13:56:33]*** Stop cut motor [13:56:33]*** Cut end [13:56:33]Read from MH i2c: 01 07 00 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: 01 07 00 58 29 00 00 00 00 00 FF 0F 96 [13:56:33]process_action close_receipt done [13:56:33]requested_data is exist [13:56:33]produce_requested_data [13:56:33]requested_item fm.sn is exist - process it [13:56:33]wFMCommunicate request_size=4 [13:56:33]MH_SAM_APDU [13:56:33]CAPDU: 80 11 00 00 [13:56:33]Write to MH i2c: E2 08 00 59 29 80 11 00 00 00 00 00 00 FC [13:56:33]Write i2c OK [13:56:33]MH_I2C_Read... [13:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:33]Read from MH i2c: E2 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: E2 17 00 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: E2 17 00 59 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 53 [13:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:56:33]wFMCommunicate OK [13:56:33]requested_item fd.num is exist - process it [13:56:33]SAM_PROTO_GetFieldsCounters [13:56:33]wFMCommunicate request_size=4 [13:56:33]MH_SAM_APDU [13:56:33]CAPDU: 80 13 00 00 [13:56:33]Write to MH i2c: E2 08 00 5A 29 80 13 00 00 00 00 00 00 FF [13:56:33]Write i2c OK [13:56:33]MH_I2C_Read... [13:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:33]Read from MH i2c: E2 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: E2 62 00 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: E2 62 00 5A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A6 E0 01 00 0E 04 04 00 2C 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 DF [13:56:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A6 E0 01 00 0E 04 04 00 2C 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 [13:56:33]wFMCommunicate OK [13:56:33]SAM_PROTO_GetFieldsCounters done [13:56:33]requested_item shift.num is exist - process it [13:56:33]requested_item shift.opened is exist - process it [13:56:33]req_shift_opened [13:56:33]FM_GetShiftState [13:56:33]SAM_PROTO_GetShiftState [13:56:33]wFMCommunicate request_size=4 [13:56:33]MH_SAM_APDU [13:56:33]CAPDU: 80 13 01 00 [13:56:33]Write to MH i2c: E2 08 00 5B 29 80 13 01 00 00 00 00 00 01 [13:56:33]Write i2c OK [13:56:33]MH_I2C_Read... [13:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:33]Read from MH i2c: E2 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: E2 0E 00 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: E2 0E 00 5B 29 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 80 [13:56:33]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:56:33]wFMCommunicate OK [13:56:33]SAM_PROTO_GetShiftState done [13:56:33]FM_GetShiftState done [13:56:33]req_shift_opened done [13:56:33]requested_item shift.open_date is exist - process it [13:56:33]req_shift_open_date [13:56:33]req_shift_open_date done [13:56:33]produce_requested_data done [13:56:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123046,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:56:33]process_action_free close_receipt [13:56:33]json_value_free [13:56:33]json_value_free done [13:56:33]process_json_proto returns [13:56:33]Send response to host [13:56:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123046,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:56:33]free response buf [13:56:33]execute_script done [13:56:33]execute_script returns [13:56:33]free content buf [13:56:33]Sock 9.Close socket [13:56:33]Sock 9.Thread stoped [13:56:36]OFD Sender: No OFD packet to send [13:56:37]accept exits with 7 [13:56:37]New connection [13:56:37]New thread 3066580324 created [13:56:37]Thread 3066723684 joined [13:56:37]Waiting for new connection... [13:56:37] Sock 7.Parse request [13:56:37]Sock 7.Check first char [13:56:37]Sock 7.First char is OK [13:56:37]request: POST /json_proto HTTP/1.0 [13:56:37]Method: POST [13:56:37]URL: /json_proto [13:56:37]Method is POST - this is cgi request [13:56:37]url: /json_proto [13:56:37]query_string will be loaded in cgi processing [13:56:37]execute_cgi json_proto POST (null) [13:56:37]execute_cgi path=json_proto method=POST [13:56:37]POST find Content-Length [13:56:37]Host: 172.17.37.4:8080 [13:56:37]Content-Length: 677 [13:56:37]Content-Type: application/json [13:56:37] [13:56:37]POST finish read [13:56:37]Found Content-Length = 677 [13:56:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:37]execute_script... [13:56: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)717842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:37]POST & json_proto [13:56:37]process_json_proto [13:56:37]json parsed OK: [13:56:37]protocol is kg_v1.0 [13:56:37]action value=close_receipt [13:56:37]process_action close_receipt [13:56:37]cmd_close_receipt [13:56:37]MH_GetDate [13:56:37]Write to MH i2c: F0 00 00 5C 29 74 [13:56:37]Write i2c OK [13:56:37]MH_I2C_Read... [13:56:37]Read from MH i2c: F0 [13:56:37]MH_I2C_Read... [13:56:37]Read from MH i2c: F0 09 00 [13:56:37]MH_I2C_Read... [13:56:37]Read from MH i2c: F0 09 00 5C 29 00 1A 82 44 67 B8 5A 43 67 80 [13:56:37]GetLastDocTimeStamp 1732542994 [13:56:37]current date 1732543002 [13:56:37]FM_GetShiftState [13:56:37]SAM_PROTO_GetShiftState [13:56:37]wFMCommunicate request_size=4 [13:56:37]MH_SAM_APDU [13:56:37]CAPDU: 80 13 01 00 [13:56:37]Write to MH i2c: E2 08 00 5D 29 80 13 01 00 00 00 00 00 03 [13:56:37]Write i2c OK [13:56:37]MH_I2C_Read... [13:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:37]Read from MH i2c: E2 [13:56:37]MH_I2C_Read... [13:56:37]Read from MH i2c: E2 0E 00 [13:56:37]MH_I2C_Read... [13:56:37]Read from MH i2c: E2 0E 00 5D 29 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 82 [13:56:37]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:56:37]wFMCommunicate OK [13:56:37]SAM_PROTO_GetShiftState done [13:56:37]FM_GetShiftState done [13:56:37]opened in 1732493066 [13:56:37]opened+sec_in_day 1732579466 [13:56:37]quantity*price = 50010 [13:56:37]sum+1 = 50012 [13:56:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 88 25.11.2024 13:56 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123047 ФПД: 165415333994713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T135642&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123047&fm=165415333994713&tin=02508201610067®Number=0000000000092681&sum=50000 [13:56:38]StoreToDocumentArchive [13:56:38]shift 556 fd 123047 [13:56:38]save to /storage/0556/doc_00123047 [13:56:38]save last doc name /storage/0556/doc_00123047 to /storage/kkm_last_doc_name [13:56:38]save OK [13:56:38]Clear old archive folders... [13:56:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:38]tlvbuf is 01F218F0 [13:56:38]SAM_PROTO_ClearQueue [13:56:38]wFMCommunicate request_size=4 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 09 00 00 [13:56:38]Write to MH i2c: E2 08 00 6A 29 80 09 00 00 00 00 00 00 05 [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 6A 29 00 90 00 07 [13:56:38]RAPDU: 90 00 [13:56:38]wFMCommunicate OK [13:56:38]SAM_PROTO_ClearQueue done [13:56:38]KKMCreateOFDPacket [13:56:38]OFDProtocolAddRootSTLVToBuf [13:56:38]FM_MakeSignedData [13:56:38]FM_MakeSignedData [13:56:38]SAM_PROTO_SignData [13:56:38]wFMCommunicate request_size=4 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 0D 01 02 [13:56:38]Write to MH i2c: E2 08 00 6B 29 80 0D 01 02 00 00 00 00 0D [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 6B 29 00 90 00 08 [13:56:38]RAPDU: 90 00 [13:56:38]wFMCommunicate OK [13:56:38]wFMCommunicate request_size=255 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1A 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E0 01 00 35 04 06 00 96 [13:56:38]Write to MH i2c: E2 02 01 6C 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1A 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E0 01 00 35 04 06 00 96 00 00 5F [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 6C 29 00 90 00 09 [13:56:38]RAPDU: 90 00 [13:56:38]wFMCommunicate OK [13:56:38]wFMCommunicate request_size=10 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 0D 02 02 05 71 C2 39 20 D9 [13:56:38]Write to MH i2c: E2 0D 00 6D 29 80 0D 02 02 05 00 71 C2 39 20 D9 00 00 7F [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 6D 29 00 90 00 0A [13:56:38]RAPDU: 90 00 [13:56:38]wFMCommunicate OK [13:56:38]wFMCommunicate request_size=4 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 0D 03 02 [13:56:38]Write to MH i2c: E2 08 00 6E 29 80 0D 03 02 00 00 00 00 12 [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 0B 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 0B 00 6E 29 00 91 5B 1C C8 51 A6 18 B7 90 00 A9 [13:56:38]RAPDU: 91 5B 1C C8 51 A6 18 B7 90 00 [13:56:38]wFMCommunicate OK [13:56:38]SAM_PROTO_SignData done [13:56:38]FM_MakeSignedData done [13:56:38]CreateOFDProtocolMessage [13:56:38]wFMCommunicate request_size=4 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 11 00 00 [13:56:38]Write to MH i2c: E2 08 00 6F 29 80 11 00 00 00 00 00 00 12 [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 17 00 [13:56:38]MH_I2C_Read... [13:56:38]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 34 38 38 31 90 00 69 [13:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:56:38]wFMCommunicate OK [13:56:38]CreateOFDProtocolMessage done [13:56:38]OFDSenderStorePacket 123047 [13:56:38]StoreOFDPacket docnum=123047 [13:56:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B2 D1 07 01 91 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1A 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E0 01 00 35 04 06 00 96 71 C2 39 20 D9 91 5B 1C C8 51 A6 18 B7 [13:56:38]CheckFolder [13:56:38]dirname=/storage/ofd_packets [13:56:38]CheckFolder done [13:56:38]ProducePacketName [13:56:38]name=ofd_packets/00123047 [13:56:38]NVStorageSaveData ofd_packets/00123047 [13:56:38]File name is /storage/ofd_packets/00123047 [13:56:38]Write 301 bytes [13:56:38]NVStorageSaveData done [13:56:38]OFDSenderStorePacket done [13:56:38]KKMCreateOFDPacket done [13:56:38]NVStorageSaveData kkm_last_timestamp [13:56:38]File name is /storage/kkm_last_timestamp [13:56:38]Write 4 bytes [13:56:38]NVStorageSaveData done [13:56:38]ExternCall_PrintAddStr [13:56:38]wPrintStart [13:56:38]Write to MH i2c: 01 00 00 70 29 99 [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: 01 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: 01 07 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: 01 07 00 70 29 00 00 00 00 00 FF 0F AE [13:56:38]RasterBufferAndPrint [13:56:38]line Счет N : (1)717842 [13:56:38]line ИНН: 02508201610067 [13:56:38]line Контрольно-Кассовый Чек [13:56:38]line ПРОДАЖА [13:56:38]line ТРК (МРК, ГНК) : 32 [13:56:38]line Товар: 2710124130 [13:56:38]line Аи-92-К-4 [13:56:38]line 7.420 * 67.40 [13:56:38]line = 500.11 [13:56:38]line НДС 12% НСП 1% [13:56:38]line > о реализуемом товаре [13:56:38]line ОКРУГЛЕНИЕ: -0.11 [13:56:38]line ИТОГО: 500.00 [13:56:38]line Внесено: 500.00 [13:56:38]line СДАЧА: 0.00 [13:56:38]line НСП 1% : 4.43 [13:56:38]line НДС 12% : 53.11 [13:56:38]line Наличными: 500.00 [13:56:38]line Безнал.: 0.00 [13:56:38]line Место: АЗС № 64 "Партнер Нефть" [13:56:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:56:38]line СНО: Общий режим [13:56:38]line Чек 88 25.11.2024 13:56 [13:56:38]line Смена: 556 ФФД: 1.0 [13:56:38]line ЗНМ: 0300000033 [13:56:38]line РНМ: 0000000000092681 [13:56:38]line Версия ККМ: 001 [13:56:38]line ФМ: 0000000000874881 [13:56:38]line ФД: 123047 [13:56:38]line ФПД: 165415333994713 [13:56:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T135642&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123047&fm=165415333994713&tin=02508201610067®Number=0000000000092681&sum=50000 [13:56:38]written 0, free lines is 4095 [13:56:38]OFD Sender: Processing packet 123047 [packets to send 7, broken 6] [13:56:38]ProducePacketName [13:56:38]name=ofd_packets/00123047 [13:56:38]OFD Sender: To server: pG, [13:56:38]CommunicateWithHost lk.salyk.kg:30040 [13:56:38]ConnectInit lk.salyk.kg [13:56:39]Connected sock=10 [13:56:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B2 D1 07 01 91 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1A 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E0 01 00 35 04 06 00 96 71 C2 39 20 D9 91 5B 1C C8 51 A6 18 B7 [13:56:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 27 8D 47 00 5A FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E0 01 00 F4 03 04 00 DF 2D 44 67 B6 04 01 00 00 53 6C 8B 24 9C E3 19 5C [13:56:39]CommunicateWithHost err = 0 [13:56:39]CheckOFDResponse [13:56:39]1017 (14) - 77093643461234 [13:56:39]1041 (16) - 0000000000874881 [13:56:39]1040 (4) - 123047 [13:56:39]1012 (4) - 25.11.2024 07:57 [13:56:39]1206 (1) - 0 [13:56:39]OFD Sender: Remove packet 123047 [13:56:39]ProducePacketName [13:56:39]name=ofd_packets/00123047 [13:56:39]NVStorageDeleteData [13:56:39]Write to MH i2c: 01 00 00 9B 29 C4 [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: 01 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: 01 07 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: 01 07 00 9B 29 00 00 00 00 00 52 0C 29 [13:56:39]RasterBufferAndPrint [13:56:39]line [13:56:39]line [13:56:39]line [13:56:39]line [13:56:39]line [13:56:39]written 0, free lines is 3161 [13:56:39]MH_Cut [13:56:39]Write to MH i2c: D1 01 00 A2 29 01 9D [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: D1 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: D1 01 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: D1 01 00 A2 29 00 9C [13:56:39]Write to MH i2c: 01 00 00 A3 29 CC [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]OFD Sender: No OFD packet to send [13:56:40]*** Cut start [13:56:40]*** Partial cut [13:56:40]*** CUTSNS_PIN = 1 [13:56:40]*** CUTSNS_PIN = 0 [13:56:41]*** Brake cut motor [13:56:41]Read from MH i2c: 01 [13:56:41]MH_I2C_Read... [13:56:41]*** Stop cut motor [13:56:41]*** Cut end [13:56:41]Read from MH i2c: 01 07 00 [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: 01 07 00 A3 29 00 00 00 00 00 FF 0F E1 [13:56:41]process_action close_receipt done [13:56:41]requested_data is exist [13:56:41]produce_requested_data [13:56:41]requested_item fm.sn is exist - process it [13:56:41]wFMCommunicate request_size=4 [13:56:41]MH_SAM_APDU [13:56:41]CAPDU: 80 11 00 00 [13:56:41]Write to MH i2c: E2 08 00 A4 29 80 11 00 00 00 00 00 00 47 [13:56:41]Write i2c OK [13:56:41]MH_I2C_Read... [13:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:41]Read from MH i2c: E2 [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: E2 17 00 [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: E2 17 00 A4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9E [13:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:56:41]wFMCommunicate OK [13:56:41]requested_item fd.num is exist - process it [13:56:41]SAM_PROTO_GetFieldsCounters [13:56:41]wFMCommunicate request_size=4 [13:56:41]MH_SAM_APDU [13:56:41]CAPDU: 80 13 00 00 [13:56:41]Write to MH i2c: E2 08 00 A5 29 80 13 00 00 00 00 00 00 4A [13:56:41]Write i2c OK [13:56:41]MH_I2C_Read... [13:56:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:41]Read from MH i2c: E2 [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: E2 62 00 [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: E2 62 00 A5 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A7 E0 01 00 0E 04 04 00 2C 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 2E [13:56:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A7 E0 01 00 0E 04 04 00 2C 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 [13:56:41]wFMCommunicate OK [13:56:41]SAM_PROTO_GetFieldsCounters done [13:56:41]requested_item shift.num is exist - process it [13:56:41]requested_item shift.opened is exist - process it [13:56:41]req_shift_opened [13:56:41]FM_GetShiftState [13:56:41]SAM_PROTO_GetShiftState [13:56:41]wFMCommunicate request_size=4 [13:56:41]MH_SAM_APDU [13:56:41]CAPDU: 80 13 01 00 [13:56:41]Write to MH i2c: E2 08 00 A6 29 80 13 01 00 00 00 00 00 4C [13:56:41]Write i2c OK [13:56:41]MH_I2C_Read... [13:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:41]Read from MH i2c: E2 [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: E2 0E 00 [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: E2 0E 00 A6 29 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 CB [13:56:41]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:56:41]wFMCommunicate OK [13:56:41]SAM_PROTO_GetShiftState done [13:56:41]FM_GetShiftState done [13:56:41]req_shift_opened done [13:56:41]requested_item shift.open_date is exist - process it [13:56:41]req_shift_open_date [13:56:41]req_shift_open_date done [13:56:41]produce_requested_data done [13:56:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123047,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:56:41]process_action_free close_receipt [13:56:41]json_value_free [13:56:41]json_value_free done [13:56:41]process_json_proto returns [13:56:41]Send response to host [13:56:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123047,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:56:41]free response buf [13:56:41]execute_script done [13:56:41]execute_script returns [13:56:41]free content buf [13:56:41]Sock 7.Close socket [13:56:41]Sock 7.Thread stoped [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]accept exits with 9 [13:57:09]New connection [13:57:09]New thread 3066723684 created [13:57:09]Thread 3066580324 joined [13:57:09]Waiting for new connection... [13:57:09] Sock 9.Parse request [13:57:09]Sock 9.Check first char [13:57:09]Sock 9.First char is OK [13:57:09]request: POST /json_proto HTTP/1.0 [13:57:09]Method: POST [13:57:09]URL: /json_proto [13:57:09]Method is POST - this is cgi request [13:57:09]url: /json_proto [13:57:09]query_string will be loaded in cgi processing [13:57:09]execute_cgi json_proto POST (null) [13:57:09]execute_cgi path=json_proto method=POST [13:57:09]POST find Content-Length [13:57:09]Host: 172.17.37.4:8080 [13:57:09]Content-Length: 686 [13:57:09]Content-Type: application/json [13:57:09] [13:57:09]POST finish read [13:57:09]Found Content-Length = 686 [13:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:09]execute_script... [13:57:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:09]POST & json_proto [13:57:09]process_json_proto [13:57:09]json parsed OK: [13:57:09]protocol is kg_v1.0 [13:57:09]action value=close_receipt [13:57:09]process_action close_receipt [13:57:09]cmd_close_receipt [13:57:09]MH_GetDate [13:57:09]Write to MH i2c: F0 00 00 A7 29 BF [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: F0 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: F0 09 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: F0 09 00 A7 29 00 3B 82 44 67 B8 5A 43 67 EC [13:57:09]GetLastDocTimeStamp 1732543002 [13:57:09]current date 1732543035 [13:57:09]FM_GetShiftState [13:57:09]SAM_PROTO_GetShiftState [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 13 01 00 [13:57:09]Write to MH i2c: E2 08 00 A8 29 80 13 01 00 00 00 00 00 4E [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]OFD Sender: No OFD packet to send [13:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0E 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0E 00 A8 29 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 CD [13:57:09]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:57:09]wFMCommunicate OK [13:57:09]SAM_PROTO_GetShiftState done [13:57:09]FM_GetShiftState done [13:57:09]opened in 1732493066 [13:57:09]opened+sec_in_day 1732579466 [13:57:09]quantity*price = 100066 [13:57:09]sum+1 = 100067 [13:57:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 89 25.11.2024 13:57 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123048 ФПД: 47227484548241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T135715&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123048&fm=47227484548241&tin=02508201610067®Number=0000000000092681&sum=100000 [13:57:10]StoreToDocumentArchive [13:57:10]shift 556 fd 123048 [13:57:10]save to /storage/0556/doc_00123048 [13:57:10]save last doc name /storage/0556/doc_00123048 to /storage/kkm_last_doc_name [13:57:10]save OK [13:57:10]Clear old archive folders... [13:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:57:10]tlvbuf is 02078860 [13:57:10]SAM_PROTO_ClearQueue [13:57:10]wFMCommunicate request_size=4 [13:57:10]MH_SAM_APDU [13:57:10]CAPDU: 80 09 00 00 [13:57:10]Write to MH i2c: E2 08 00 B5 29 80 09 00 00 00 00 00 00 50 [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:10]Read from MH i2c: E2 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 03 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 03 00 B5 29 00 90 00 52 [13:57:10]RAPDU: 90 00 [13:57:10]wFMCommunicate OK [13:57:10]SAM_PROTO_ClearQueue done [13:57:10]KKMCreateOFDPacket [13:57:10]OFDProtocolAddRootSTLVToBuf [13:57:10]FM_MakeSignedData [13:57:10]FM_MakeSignedData [13:57:10]SAM_PROTO_SignData [13:57:10]wFMCommunicate request_size=4 [13:57:10]MH_SAM_APDU [13:57:10]CAPDU: 80 0D 01 02 [13:57:10]Write to MH i2c: E2 08 00 B6 29 80 0D 01 02 00 00 00 00 58 [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 03 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 03 00 B6 29 00 90 00 53 [13:57:11]RAPDU: 90 00 [13:57:11]wFMCommunicate OK [13:57:11]wFMCommunicate request_size=255 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3B 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E0 01 00 35 04 06 00 [13:57:11]Write to MH i2c: E2 02 01 B7 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3B 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E0 01 00 35 04 06 00 00 00 B7 [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 03 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 03 00 B7 29 00 90 00 54 [13:57:11]RAPDU: 90 00 [13:57:11]wFMCommunicate OK [13:57:11]wFMCommunicate request_size=11 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 0D 02 02 06 2A F4 01 70 AC 91 [13:57:11]Write to MH i2c: E2 0E 00 B8 29 80 0D 02 02 06 00 2A F4 01 70 AC 91 00 00 33 [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 03 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 03 00 B8 29 00 90 00 55 [13:57:11]RAPDU: 90 00 [13:57:11]wFMCommunicate OK [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 0D 03 02 [13:57:11]Write to MH i2c: E2 08 00 B9 29 80 0D 03 02 00 00 00 00 5D [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 0B 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 0B 00 B9 29 00 CF 60 18 D3 99 44 17 5E 90 00 CA [13:57:11]RAPDU: CF 60 18 D3 99 44 17 5E 90 00 [13:57:11]wFMCommunicate OK [13:57:11]SAM_PROTO_SignData done [13:57:11]FM_MakeSignedData done [13:57:11]CreateOFDProtocolMessage [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 11 00 00 [13:57:11]Write to MH i2c: E2 08 00 BA 29 80 11 00 00 00 00 00 00 5D [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 17 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 17 00 BA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B4 [13:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:57:11]wFMCommunicate OK [13:57:11]CreateOFDProtocolMessage done [13:57:11]OFDSenderStorePacket 123048 [13:57:11]StoreOFDPacket docnum=123048 [13:57:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C0 45 08 01 F7 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3B 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E0 01 00 35 04 06 00 2A F4 01 70 AC 91 CF 60 18 D3 99 44 17 5E [13:57:11]CheckFolder [13:57:11]dirname=/storage/ofd_packets [13:57:11]CheckFolder done [13:57:11]ProducePacketName [13:57:11]name=ofd_packets/00123048 [13:57:11]NVStorageSaveData ofd_packets/00123048 [13:57:11]File name is /storage/ofd_packets/00123048 [13:57:11]Write 302 bytes [13:57:11]NVStorageSaveData done [13:57:11]OFDSenderStorePacket done [13:57:11]KKMCreateOFDPacket done [13:57:11]NVStorageSaveData kkm_last_timestamp [13:57:11]File name is /storage/kkm_last_timestamp [13:57:11]Write 4 bytes [13:57:11]NVStorageSaveData done [13:57:11]ExternCall_PrintAddStr [13:57:11]wPrintStart [13:57:11]Write to MH i2c: 01 00 00 BB 29 E4 [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 07 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 07 00 BB 29 00 00 00 00 00 FF 0F F9 [13:57:11]RasterBufferAndPrint [13:57:11]line Счет N : (1)717843 [13:57:11]line ИНН: 02508201610067 [13:57:11]line Контрольно-Кассовый Чек [13:57:11]line ПРОДАЖА [13:57:11]line ТРК (МРК, ГНК) : 5 [13:57:11]line Товар: 2710194210 [13:57:11]line ДТ(л)-К-5 [13:57:11]line 13.360 * 74.90 [13:57:11]line = 1000.66 [13:57:11]line НДС 12% НСП 1% [13:57:11]line > о реализуемом товаре [13:57:11]line ОКРУГЛЕНИЕ: -0.66 [13:57:11]line ИТОГО: 1000.00 [13:57:11]line Внесено: 1000.00 [13:57:11]line СДАЧА: 0.00 [13:57:11]line НСП 1% : 8.85 [13:57:11]line НДС 12% : 106.26 [13:57:11]line Наличными: 1000.00 [13:57:11]line Безнал.: 0.00 [13:57:11]line Место: АЗС № 64 "Партнер Нефть" [13:57:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:57:11]line СНО: Общий режим [13:57:11]line Чек 89 25.11.2024 13:57 [13:57:11]line Смена: 556 ФФД: 1.0 [13:57:11]line ЗНМ: 0300000033 [13:57:11]line РНМ: 0000000000092681 [13:57:11]line Версия ККМ: 001 [13:57:11]line ФМ: 0000000000874881 [13:57:11]line ФД: 123048 [13:57:11]line ФПД: 47227484548241 [13:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T135715&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123048&fm=47227484548241&tin=02508201610067®Number=0000000000092681&sum=100000 [13:57:11]OFD Sender: Processing packet 123048 [packets to send 7, broken 6] [13:57:11]ProducePacketName [13:57:11]name=ofd_packets/00123048 [13:57:11]OFD Sender: To server: pG, [13:57:11]CommunicateWithHost lk.salyk.kg:30040 [13:57:11]ConnectInit lk.salyk.kg [13:57:11]written 0, free lines is 4095 [13:57:11]Connected sock=10 [13:57:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C0 45 08 01 F7 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3B 82 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E0 01 00 35 04 06 00 2A F4 01 70 AC 91 CF 60 18 D3 99 44 17 5E [13:57:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6A E8 47 00 5B E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E0 01 00 F4 03 04 00 00 2E 44 67 B6 04 01 00 00 2E B8 C9 63 3E 09 0F 97 [13:57:12]CommunicateWithHost err = 0 [13:57:12]CheckOFDResponse [13:57:12]1017 (14) - 77093643461234 [13:57:12]1041 (16) - 0000000000874881 [13:57:12]1040 (4) - 123048 [13:57:12]1012 (4) - 25.11.2024 07:57 [13:57:12]1206 (1) - 0 [13:57:12]OFD Sender: Remove packet 123048 [13:57:12]ProducePacketName [13:57:12]name=ofd_packets/00123048 [13:57:12]NVStorageDeleteData [13:57:12]Write to MH i2c: 01 00 00 E6 29 0F [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: 01 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: 01 07 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: 01 07 00 E6 29 00 00 00 00 00 4E 0C 70 [13:57:12]RasterBufferAndPrint [13:57:12]line [13:57:12]line [13:57:12]line [13:57:12]line [13:57:12]line [13:57:12]written 0, free lines is 3154 [13:57:12]MH_Cut [13:57:12]Write to MH i2c: D1 01 00 ED 29 01 E8 [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: D1 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: D1 01 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: D1 01 00 ED 29 00 E7 [13:57:12]Write to MH i2c: 01 00 00 EE 29 17 [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]OFD Sender: No OFD packet to send [13:57:13]*** Cut start [13:57:13]*** Partial cut [13:57:13]*** CUTSNS_PIN = 1 [13:57:13]*** CUTSNS_PIN = 0 [13:57:13]*** Brake cut motor [13:57:14]Read from MH i2c: 01 [13:57:14]MH_I2C_Read... [13:57:14]*** Stop cut motor [13:57:14]*** Cut end [13:57:14]Read from MH i2c: 01 07 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: 01 07 00 EE 29 00 00 00 00 00 FF 0F 2C [13:57:14]process_action close_receipt done [13:57:14]requested_data is exist [13:57:14]produce_requested_data [13:57:14]requested_item fm.sn is exist - process it [13:57:14]wFMCommunicate request_size=4 [13:57:14]MH_SAM_APDU [13:57:14]CAPDU: 80 11 00 00 [13:57:14]Write to MH i2c: E2 08 00 EF 29 80 11 00 00 00 00 00 00 92 [13:57:14]Write i2c OK [13:57:14]MH_I2C_Read... [13:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:14]Read from MH i2c: E2 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 17 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 17 00 EF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E9 [13:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:57:14]wFMCommunicate OK [13:57:14]requested_item fd.num is exist - process it [13:57:14]SAM_PROTO_GetFieldsCounters [13:57:14]wFMCommunicate request_size=4 [13:57:14]MH_SAM_APDU [13:57:14]CAPDU: 80 13 00 00 [13:57:14]Write to MH i2c: E2 08 00 F0 29 80 13 00 00 00 00 00 00 95 [13:57:14]Write i2c OK [13:57:14]MH_I2C_Read... [13:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:14]Read from MH i2c: E2 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 62 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 62 00 F0 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A8 E0 01 00 0E 04 04 00 2C 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 7D [13:57:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A8 E0 01 00 0E 04 04 00 2C 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 [13:57:14]wFMCommunicate OK [13:57:14]SAM_PROTO_GetFieldsCounters done [13:57:14]requested_item shift.num is exist - process it [13:57:14]requested_item shift.opened is exist - process it [13:57:14]req_shift_opened [13:57:14]FM_GetShiftState [13:57:14]SAM_PROTO_GetShiftState [13:57:14]wFMCommunicate request_size=4 [13:57:14]MH_SAM_APDU [13:57:14]CAPDU: 80 13 01 00 [13:57:14]Write to MH i2c: E2 08 00 F1 29 80 13 01 00 00 00 00 00 97 [13:57:14]Write i2c OK [13:57:14]MH_I2C_Read... [13:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:14]Read from MH i2c: E2 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 0E 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 0E 00 F1 29 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 16 [13:57:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [13:57:14]wFMCommunicate OK [13:57:14]SAM_PROTO_GetShiftState done [13:57:14]FM_GetShiftState done [13:57:14]req_shift_opened done [13:57:14]requested_item shift.open_date is exist - process it [13:57:14]req_shift_open_date [13:57:14]req_shift_open_date done [13:57:14]produce_requested_data done [13:57:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123048,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [13:57:14]process_action_free close_receipt [13:57:14]json_value_free [13:57:14]json_value_free done [13:57:14]process_json_proto returns [13:57:14]Send response to host [13:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123048,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [13:57:14]free response buf [13:57:14]execute_script done [13:57:14]execute_script returns [13:57:14]free content buf [13:57:14]Sock 9.Close socket [13:57:14]Sock 9.Thread stoped [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:27]accept exits with 7 [14:14:27]New connection [14:14:27]New thread 3066580324 created [14:14:27]Thread 3066723684 joined [14:14:27]Waiting for new connection... [14:14:27] Sock 7.Parse request [14:14:27]Sock 7.Check first char [14:14:27]Sock 7.First char is OK [14:14:27]request: POST /json_proto HTTP/1.0 [14:14:27]Method: POST [14:14:27]URL: /json_proto [14:14:27]Method is POST - this is cgi request [14:14:27]url: /json_proto [14:14:27]query_string will be loaded in cgi processing [14:14:27]execute_cgi json_proto POST (null) [14:14:27]execute_cgi path=json_proto method=POST [14:14:27]POST find Content-Length [14:14:27]Host: 172.17.37.4:8080 [14:14:27]Content-Length: 682 [14:14:27]Content-Type: application/json [14:14:27] [14:14:27]POST finish read [14:14:27]Found Content-Length = 682 [14:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:27]execute_script... [14:14:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:27]POST & json_proto [14:14:27]process_json_proto [14:14:27]json parsed OK: [14:14:27]protocol is kg_v1.0 [14:14:27]action value=close_receipt [14:14:27]process_action close_receipt [14:14:27]cmd_close_receipt [14:14:27]MH_GetDate [14:14:27]Write to MH i2c: F0 00 00 F2 29 0A [14:14:27]Write i2c OK [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: F0 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: F0 09 00 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: F0 09 00 F2 29 00 48 86 44 67 B8 5A 43 67 48 [14:14:27]GetLastDocTimeStamp 1732543035 [14:14:27]current date 1732544072 [14:14:27]FM_GetShiftState [14:14:27]SAM_PROTO_GetShiftState [14:14:27]wFMCommunicate request_size=4 [14:14:27]MH_SAM_APDU [14:14:27]CAPDU: 80 13 01 00 [14:14:27]Write to MH i2c: E2 08 00 F3 29 80 13 01 00 00 00 00 00 99 [14:14:27]Write i2c OK [14:14:27]MH_I2C_Read... [14:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:27]Read from MH i2c: E2 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: E2 0E 00 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: E2 0E 00 F3 29 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 18 [14:14:27]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:14:27]wFMCommunicate OK [14:14:27]SAM_PROTO_GetShiftState done [14:14:27]FM_GetShiftState done [14:14:27]opened in 1732493066 [14:14:27]opened+sec_in_day 1732579466 [14:14:27]quantity*price = 100021 [14:14:27]sum+1 = 100023 [14:14:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 90 25.11.2024 14:14 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123049 ФПД: 154068067297158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T141432&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123049&fm=154068067297158&tin=02508201610067®Number=0000000000092681&sum=100000 [14:14:28]StoreToDocumentArchive [14:14:28]shift 556 fd 123049 [14:14:28]save to /storage/0556/doc_00123049 [14:14:28]save last doc name /storage/0556/doc_00123049 to /storage/kkm_last_doc_name [14:14:28]save OK [14:14:28]Clear old archive folders... [14:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:28]tlvbuf is 020900D0 [14:14:28]SAM_PROTO_ClearQueue [14:14:28]wFMCommunicate request_size=4 [14:14:28]MH_SAM_APDU [14:14:28]CAPDU: 80 09 00 00 [14:14:28]Write to MH i2c: E2 08 00 00 2A 80 09 00 00 00 00 00 00 9C [14:14:28]Write i2c OK [14:14:28]MH_I2C_Read... [14:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:28]Read from MH i2c: E2 [14:14:28]MH_I2C_Read... [14:14:28]Read from MH i2c: E2 03 00 [14:14:28]MH_I2C_Read... [14:14:28]Read from MH i2c: E2 03 00 00 2A 00 90 00 9E [14:14:28]RAPDU: 90 00 [14:14:28]wFMCommunicate OK [14:14:28]SAM_PROTO_ClearQueue done [14:14:28]KKMCreateOFDPacket [14:14:28]OFDProtocolAddRootSTLVToBuf [14:14:28]FM_MakeSignedData [14:14:28]FM_MakeSignedData [14:14:28]SAM_PROTO_SignData [14:14:28]wFMCommunicate request_size=4 [14:14:28]MH_SAM_APDU [14:14:28]CAPDU: 80 0D 01 02 [14:14:28]Write to MH i2c: E2 08 00 01 2A 80 0D 01 02 00 00 00 00 A4 [14:14:28]Write i2c OK [14:14:28]MH_I2C_Read... [14:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:28]Read from MH i2c: E2 [14:14:28]MH_I2C_Read... [14:14:28]Read from MH i2c: E2 03 00 [14:14:28]MH_I2C_Read... [14:14:28]Read from MH i2c: E2 03 00 01 2A 00 90 00 9F [14:14:28]RAPDU: 90 00 [14:14:28]wFMCommunicate OK [14:14:28]wFMCommunicate request_size=255 [14:14:28]MH_SAM_APDU [14:14:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 48 86 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E0 01 00 35 04 06 00 8C [14:14:28]Write to MH i2c: E2 02 01 02 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 48 86 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E0 01 00 35 04 06 00 8C 00 00 12 [14:14:28]Write i2c OK [14:14:28]MH_I2C_Read... [14:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:29]Read from MH i2c: E2 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 03 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 03 00 02 2A 00 90 00 A0 [14:14:29]RAPDU: 90 00 [14:14:29]wFMCommunicate OK [14:14:29]wFMCommunicate request_size=10 [14:14:29]MH_SAM_APDU [14:14:29]CAPDU: 80 0D 02 02 05 1F C4 6C 27 86 [14:14:29]Write to MH i2c: E2 0D 00 03 2A 80 0D 02 02 05 00 1F C4 6C 27 86 00 00 AD [14:14:29]Write i2c OK [14:14:29]MH_I2C_Read... [14:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:29]Read from MH i2c: E2 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 03 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 03 00 03 2A 00 90 00 A1 [14:14:29]RAPDU: 90 00 [14:14:29]wFMCommunicate OK [14:14:29]wFMCommunicate request_size=4 [14:14:29]MH_SAM_APDU [14:14:29]CAPDU: 80 0D 03 02 [14:14:29]Write to MH i2c: E2 08 00 04 2A 80 0D 03 02 00 00 00 00 A9 [14:14:29]Write i2c OK [14:14:29]MH_I2C_Read... [14:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:29]Read from MH i2c: E2 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 0B 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 0B 00 04 2A 00 10 FB 55 C5 C8 33 0E BA 90 00 92 [14:14:29]RAPDU: 10 FB 55 C5 C8 33 0E BA 90 00 [14:14:29]wFMCommunicate OK [14:14:29]SAM_PROTO_SignData done [14:14:29]FM_MakeSignedData done [14:14:29]CreateOFDProtocolMessage [14:14:29]wFMCommunicate request_size=4 [14:14:29]MH_SAM_APDU [14:14:29]CAPDU: 80 11 00 00 [14:14:29]Write to MH i2c: E2 08 00 05 2A 80 11 00 00 00 00 00 00 A9 [14:14:29]Write i2c OK [14:14:29]MH_I2C_Read... [14:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:29]Read from MH i2c: E2 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 17 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 17 00 05 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 00 [14:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:14:29]wFMCommunicate OK [14:14:29]CreateOFDProtocolMessage done [14:14:29]OFDSenderStorePacket 123049 [14:14:29]StoreOFDPacket docnum=123049 [14:14:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 06 18 07 01 22 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 48 86 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E0 01 00 35 04 06 00 8C 1F C4 6C 27 86 10 FB 55 C5 C8 33 0E BA [14:14:29]CheckFolder [14:14:29]dirname=/storage/ofd_packets [14:14:29]CheckFolder done [14:14:29]ProducePacketName [14:14:29]name=ofd_packets/00123049 [14:14:29]NVStorageSaveData ofd_packets/00123049 [14:14:29]File name is /storage/ofd_packets/00123049 [14:14:29]Write 301 bytes [14:14:29]NVStorageSaveData done [14:14:29]OFDSenderStorePacket done [14:14:29]KKMCreateOFDPacket done [14:14:29]NVStorageSaveData kkm_last_timestamp [14:14:29]File name is /storage/kkm_last_timestamp [14:14:29]Write 4 bytes [14:14:29]NVStorageSaveData done [14:14:29]ExternCall_PrintAddStr [14:14:29]wPrintStart [14:14:29]Write to MH i2c: 01 00 00 06 2A 30 [14:14:29]Write i2c OK [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: 01 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: 01 07 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: 01 07 00 06 2A 00 00 00 00 00 FF 0F 45 [14:14:29]RasterBufferAndPrint [14:14:29]line Счет N : (1)717844 [14:14:29]line ИНН: 02508201610067 [14:14:29]line Контрольно-Кассовый Чек [14:14:29]line ПРОДАЖА [14:14:29]line ТРК (МРК, ГНК) : 22 [14:14:29]line Товар: 2710124130 [14:14:29]line Аи-92-К-4 [14:14:29]line 14.840 * 67.40 [14:14:29]line = 1000.22 [14:14:29]line НДС 12% НСП 1% [14:14:29]line > о реализуемом товаре [14:14:29]line ОКРУГЛЕНИЕ: -0.22 [14:14:29]line ИТОГО: 1000.00 [14:14:29]line Внесено: 1000.00 [14:14:29]line СДАЧА: 0.00 [14:14:29]line НСП 1% : 8.85 [14:14:29]line НДС 12% : 106.22 [14:14:29]line Наличными: 1000.00 [14:14:29]line Безнал.: 0.00 [14:14:29]line Место: АЗС № 64 "Партнер Нефть" [14:14:29]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:14:29]line СНО: Общий режим [14:14:29]line Чек 90 25.11.2024 14:14 [14:14:29]line Смена: 556 ФФД: 1.0 [14:14:29]line ЗНМ: 0300000033 [14:14:29]line РНМ: 0000000000092681 [14:14:29]line Версия ККМ: 001 [14:14:29]line ФМ: 0000000000874881 [14:14:29]line ФД: 123049 [14:14:29]line ФПД: 154068067297158 [14:14:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T141432&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123049&fm=154068067297158&tin=02508201610067®Number=0000000000092681&sum=100000 [14:14:29]OFD Sender: Processing packet 123049 [packets to send 7, broken 6] [14:14:29]ProducePacketName [14:14:29]name=ofd_packets/00123049 [14:14:29]OFD Sender: To server: pG, [14:14:29]CommunicateWithHost lk.salyk.kg:30040 [14:14:29]ConnectInit lk.salyk.kg [14:14:29]written 0, free lines is 4095 [14:14:29]Connected sock=10 [14:14:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 06 18 07 01 22 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 48 86 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E0 01 00 35 04 06 00 8C 1F C4 6C 27 86 10 FB 55 C5 C8 33 0E BA [14:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 68 92 47 00 D5 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E0 01 00 F4 03 04 00 0E 32 44 67 B6 04 01 00 00 53 7C 5A CF A9 55 4D AC [14:14:29]CommunicateWithHost err = 0 [14:14:29]CheckOFDResponse [14:14:29]1017 (14) - 77093643461234 [14:14:29]1041 (16) - 0000000000874881 [14:14:29]1040 (4) - 123049 [14:14:29]1012 (4) - 25.11.2024 08:15 [14:14:29]1206 (1) - 0 [14:14:29]OFD Sender: Remove packet 123049 [14:14:29]ProducePacketName [14:14:29]name=ofd_packets/00123049 [14:14:29]NVStorageDeleteData [14:14:29]Write to MH i2c: 01 00 00 31 2A 5B [14:14:29]Write i2c OK [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: 01 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: 01 07 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: 01 07 00 31 2A 00 00 00 00 00 46 0C B4 [14:14:29]RasterBufferAndPrint [14:14:29]line [14:14:29]line [14:14:29]line [14:14:29]line [14:14:29]line [14:14:29]written 0, free lines is 3146 [14:14:30]MH_Cut [14:14:30]Write to MH i2c: D1 01 00 38 2A 01 34 [14:14:30]Write i2c OK [14:14:30]MH_I2C_Read... [14:14:30]Read from MH i2c: D1 [14:14:30]MH_I2C_Read... [14:14:30]Read from MH i2c: D1 01 00 [14:14:30]MH_I2C_Read... [14:14:30]Read from MH i2c: D1 01 00 38 2A 00 33 [14:14:30]Write to MH i2c: 01 00 00 39 2A 63 [14:14:30]Write i2c OK [14:14:30]MH_I2C_Read... [14:14:30]OFD Sender: No OFD packet to send [14:14:31]*** Cut start [14:14:31]*** Partial cut [14:14:31]*** CUTSNS_PIN = 1 [14:14:31]*** CUTSNS_PIN = 0 [14:14:31]*** Brake cut motor [14:14:31]Read from MH i2c: 01 [14:14:31]MH_I2C_Read... [14:14:31]*** Stop cut motor [14:14:32]*** Cut end [14:14:32]Read from MH i2c: 01 07 00 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: 01 07 00 39 2A 00 00 00 00 00 FF 0F 78 [14:14:32]process_action close_receipt done [14:14:32]requested_data is exist [14:14:32]produce_requested_data [14:14:32]requested_item fm.sn is exist - process it [14:14:32]wFMCommunicate request_size=4 [14:14:32]MH_SAM_APDU [14:14:32]CAPDU: 80 11 00 00 [14:14:32]Write to MH i2c: E2 08 00 3A 2A 80 11 00 00 00 00 00 00 DE [14:14:32]Write i2c OK [14:14:32]MH_I2C_Read... [14:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:32]Read from MH i2c: E2 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 17 00 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 17 00 3A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 35 [14:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:14:32]wFMCommunicate OK [14:14:32]requested_item fd.num is exist - process it [14:14:32]SAM_PROTO_GetFieldsCounters [14:14:32]wFMCommunicate request_size=4 [14:14:32]MH_SAM_APDU [14:14:32]CAPDU: 80 13 00 00 [14:14:32]Write to MH i2c: E2 08 00 3B 2A 80 13 00 00 00 00 00 00 E1 [14:14:32]Write i2c OK [14:14:32]MH_I2C_Read... [14:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:32]Read from MH i2c: E2 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 62 00 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 62 00 3B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A9 E0 01 00 0E 04 04 00 2C 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 CD [14:14:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A9 E0 01 00 0E 04 04 00 2C 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 [14:14:32]wFMCommunicate OK [14:14:32]SAM_PROTO_GetFieldsCounters done [14:14:32]requested_item shift.num is exist - process it [14:14:32]requested_item shift.opened is exist - process it [14:14:32]req_shift_opened [14:14:32]FM_GetShiftState [14:14:32]SAM_PROTO_GetShiftState [14:14:32]wFMCommunicate request_size=4 [14:14:32]MH_SAM_APDU [14:14:32]CAPDU: 80 13 01 00 [14:14:32]Write to MH i2c: E2 08 00 3C 2A 80 13 01 00 00 00 00 00 E3 [14:14:32]Write i2c OK [14:14:32]MH_I2C_Read... [14:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:32]Read from MH i2c: E2 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 0E 00 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 0E 00 3C 2A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 62 [14:14:32]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:14:32]wFMCommunicate OK [14:14:32]SAM_PROTO_GetShiftState done [14:14:32]FM_GetShiftState done [14:14:32]req_shift_opened done [14:14:32]requested_item shift.open_date is exist - process it [14:14:32]req_shift_open_date [14:14:32]req_shift_open_date done [14:14:32]produce_requested_data done [14:14:32]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123049,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:14:32]process_action_free close_receipt [14:14:32]json_value_free [14:14:32]json_value_free done [14:14:32]process_json_proto returns [14:14:32]Send response to host [14:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123049,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:14:32]free response buf [14:14:32]execute_script done [14:14:32]execute_script returns [14:14:32]free content buf [14:14:32]Sock 7.Close socket [14:14:32]Sock 7.Thread stoped [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:16:59]accept exits with 9 [14:16:59]New connection [14:16:59]New thread 3066723684 created [14:16:59]Thread 3066580324 joined [14:16:59]Waiting for new connection... [14:16:59] Sock 9.Parse request [14:16:59]Sock 9.Check first char [14:16:59]Sock 9.First char is OK [14:16:59]request: POST /json_proto HTTP/1.0 [14:16:59]Method: POST [14:16:59]URL: /json_proto [14:16:59]Method is POST - this is cgi request [14:16:59]url: /json_proto [14:16:59]query_string will be loaded in cgi processing [14:16:59]execute_cgi json_proto POST (null) [14:16:59]execute_cgi path=json_proto method=POST [14:16:59]POST find Content-Length [14:16:59]Host: 172.17.37.4:8080 [14:16:59]Content-Length: 686 [14:16:59]Content-Type: application/json [14:16:59] [14:16:59]POST finish read [14:16:59]Found Content-Length = 686 [14:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:59]execute_script... [14:16: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)717845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:59]POST & json_proto [14:16:59]process_json_proto [14:16:59]json parsed OK: [14:16:59]protocol is kg_v1.0 [14:16:59]action value=close_receipt [14:16:59]process_action close_receipt [14:16:59]cmd_close_receipt [14:16:59]MH_GetDate [14:16:59]Write to MH i2c: F0 00 00 3D 2A 56 [14:16:59]Write i2c OK [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: F0 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: F0 09 00 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: F0 09 00 3D 2A 00 E0 86 44 67 B8 5A 43 67 2C [14:16:59]GetLastDocTimeStamp 1732544072 [14:16:59]current date 1732544224 [14:16:59]FM_GetShiftState [14:16:59]SAM_PROTO_GetShiftState [14:16:59]wFMCommunicate request_size=4 [14:16:59]MH_SAM_APDU [14:16:59]CAPDU: 80 13 01 00 [14:16:59]Write to MH i2c: E2 08 00 3E 2A 80 13 01 00 00 00 00 00 E5 [14:16:59]Write i2c OK [14:16:59]MH_I2C_Read... [14:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:59]Read from MH i2c: E2 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: E2 0E 00 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: E2 0E 00 3E 2A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 64 [14:16:59]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:16:59]wFMCommunicate OK [14:16:59]SAM_PROTO_GetShiftState done [14:16:59]FM_GetShiftState done [14:16:59]opened in 1732493066 [14:16:59]opened+sec_in_day 1732579466 [14:16:59]quantity*price = 100066 [14:16:59]sum+1 = 100067 [14:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 91 25.11.2024 14:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123050 ФПД: 98171206210190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T141704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123050&fm=98171206210190&tin=02508201610067®Number=0000000000092681&sum=100000 [14:17:00]StoreToDocumentArchive [14:17:00]shift 556 fd 123050 [14:17:00]save to /storage/0556/doc_00123050 [14:17:00]save last doc name /storage/0556/doc_00123050 to /storage/kkm_last_doc_name [14:17:00]save OK [14:17:00]Clear old archive folders... [14:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:17:00]tlvbuf is 020A9A20 [14:17:00]SAM_PROTO_ClearQueue [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 09 00 00 [14:17:00]Write to MH i2c: E2 08 00 4B 2A 80 09 00 00 00 00 00 00 E7 [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 4B 2A 00 90 00 E9 [14:17:00]RAPDU: 90 00 [14:17:00]wFMCommunicate OK [14:17:00]SAM_PROTO_ClearQueue done [14:17:00]KKMCreateOFDPacket [14:17:00]OFDProtocolAddRootSTLVToBuf [14:17:00]FM_MakeSignedData [14:17:00]FM_MakeSignedData [14:17:00]SAM_PROTO_SignData [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 0D 01 02 [14:17:00]Write to MH i2c: E2 08 00 4C 2A 80 0D 01 02 00 00 00 00 EF [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 03 00 4C 2A 00 90 00 EA [14:17:00]RAPDU: 90 00 [14:17:00]wFMCommunicate OK [14:17:00]wFMCommunicate request_size=255 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E0 86 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E0 01 00 35 04 06 00 [14:17:00]Write to MH i2c: E2 02 01 4D 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E0 86 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E0 01 00 35 04 06 00 00 00 FB [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:01]Read from MH i2c: E2 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 03 00 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 03 00 4D 2A 00 90 00 EB [14:17:01]RAPDU: 90 00 [14:17:01]wFMCommunicate OK [14:17:01]wFMCommunicate request_size=11 [14:17:01]MH_SAM_APDU [14:17:01]CAPDU: 80 0D 02 02 06 59 49 43 DF 92 8E [14:17:01]Write to MH i2c: E2 0E 00 4E 2A 80 0D 02 02 06 00 59 49 43 DF 92 8E 00 00 E2 [14:17:01]Write i2c OK [14:17:01]MH_I2C_Read... [14:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:01]Read from MH i2c: E2 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 03 00 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 03 00 4E 2A 00 90 00 EC [14:17:01]RAPDU: 90 00 [14:17:01]wFMCommunicate OK [14:17:01]wFMCommunicate request_size=4 [14:17:01]MH_SAM_APDU [14:17:01]CAPDU: 80 0D 03 02 [14:17:01]Write to MH i2c: E2 08 00 4F 2A 80 0D 03 02 00 00 00 00 F4 [14:17:01]Write i2c OK [14:17:01]MH_I2C_Read... [14:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:01]Read from MH i2c: E2 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 0B 00 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 0B 00 4F 2A 00 8E 3F 03 18 C2 E2 62 F9 90 00 DC [14:17:01]RAPDU: 8E 3F 03 18 C2 E2 62 F9 90 00 [14:17:01]wFMCommunicate OK [14:17:01]SAM_PROTO_SignData done [14:17:01]FM_MakeSignedData done [14:17:01]CreateOFDProtocolMessage [14:17:01]wFMCommunicate request_size=4 [14:17:01]MH_SAM_APDU [14:17:01]CAPDU: 80 11 00 00 [14:17:01]Write to MH i2c: E2 08 00 50 2A 80 11 00 00 00 00 00 00 F4 [14:17:01]Write i2c OK [14:17:01]MH_I2C_Read... [14:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:01]Read from MH i2c: E2 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 17 00 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 17 00 50 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4B [14:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:17:01]wFMCommunicate OK [14:17:01]CreateOFDProtocolMessage done [14:17:01]OFDSenderStorePacket 123050 [14:17:01]StoreOFDPacket docnum=123050 [14:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 EA 2E 08 01 9C 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E0 86 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E0 01 00 35 04 06 00 59 49 43 DF 92 8E 8E 3F 03 18 C2 E2 62 F9 [14:17:01]CheckFolder [14:17:01]dirname=/storage/ofd_packets [14:17:01]CheckFolder done [14:17:01]ProducePacketName [14:17:01]name=ofd_packets/00123050 [14:17:01]NVStorageSaveData ofd_packets/00123050 [14:17:01]File name is /storage/ofd_packets/00123050 [14:17:01]Write 302 bytes [14:17:01]NVStorageSaveData done [14:17:01]OFDSenderStorePacket done [14:17:01]KKMCreateOFDPacket done [14:17:01]NVStorageSaveData kkm_last_timestamp [14:17:01]File name is /storage/kkm_last_timestamp [14:17:01]Write 4 bytes [14:17:01]NVStorageSaveData done [14:17:01]ExternCall_PrintAddStr [14:17:01]wPrintStart [14:17:01]Write to MH i2c: 01 00 00 51 2A 7B [14:17:01]Write i2c OK [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: 01 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: 01 07 00 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: 01 07 00 51 2A 00 00 00 00 00 FF 0F 90 [14:17:01]RasterBufferAndPrint [14:17:01]line Счет N : (1)717845 [14:17:01]line ИНН: 02508201610067 [14:17:01]line Контрольно-Кассовый Чек [14:17:01]line ПРОДАЖА [14:17:01]line ТРК (МРК, ГНК) : 5 [14:17:01]line Товар: 2710194210 [14:17:01]line ДТ(л)-К-5 [14:17:01]line 13.360 * 74.90 [14:17:01]line = 1000.66 [14:17:01]line НДС 12% НСП 1% [14:17:01]line > о реализуемом товаре [14:17:01]line ОКРУГЛЕНИЕ: -0.66 [14:17:01]line ИТОГО: 1000.00 [14:17:01]line Внесено: 1000.00 [14:17:01]line СДАЧА: 0.00 [14:17:01]line НСП 1% : 8.85 [14:17:01]line НДС 12% : 106.26 [14:17:01]line Наличными: 1000.00 [14:17:01]line Безнал.: 0.00 [14:17:01]line Место: АЗС № 64 "Партнер Нефть" [14:17:01]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:17:01]line СНО: Общий режим [14:17:01]line Чек 91 25.11.2024 14:17 [14:17:01]line Смена: 556 ФФД: 1.0 [14:17:01]line ЗНМ: 0300000033 [14:17:01]line РНМ: 0000000000092681 [14:17:01]line Версия ККМ: 001 [14:17:01]line ФМ: 0000000000874881 [14:17:01]line ФД: 123050 [14:17:01]line ФПД: 98171206210190 [14:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T141704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123050&fm=98171206210190&tin=02508201610067®Number=0000000000092681&sum=100000 [14:17:01]OFD Sender: Processing packet 123050 [packets to send 7, broken 6] [14:17:01]ProducePacketName [14:17:01]name=ofd_packets/00123050 [14:17:01]OFD Sender: To server: pG, [14:17:01]CommunicateWithHost lk.salyk.kg:30040 [14:17:01]ConnectInit lk.salyk.kg [14:17:01]written 0, free lines is 4095 [14:17:01]Connected sock=11 [14:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 EA 2E 08 01 9C 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E0 86 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E0 01 00 35 04 06 00 59 49 43 DF 92 8E 8E 3F 03 18 C2 E2 62 F9 [14:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 9A F9 47 00 4F FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E0 01 00 F4 03 04 00 A6 32 44 67 B6 04 01 00 00 F1 BC 85 D8 B6 D1 D5 C4 [14:17:01]CommunicateWithHost err = 0 [14:17:01]CheckOFDResponse [14:17:01]1017 (14) - 77093643461234 [14:17:01]1041 (16) - 0000000000874881 [14:17:01]1040 (4) - 123050 [14:17:01]1012 (4) - 25.11.2024 08:17 [14:17:01]1206 (1) - 0 [14:17:01]OFD Sender: Remove packet 123050 [14:17:01]ProducePacketName [14:17:01]name=ofd_packets/00123050 [14:17:01]NVStorageDeleteData [14:17:02]Write to MH i2c: 01 00 00 7C 2A A6 [14:17:02]Write i2c OK [14:17:02]MH_I2C_Read... [14:17:02]Read from MH i2c: 01 [14:17:02]MH_I2C_Read... [14:17:02]Read from MH i2c: 01 07 00 [14:17:02]MH_I2C_Read... [14:17:02]Read from MH i2c: 01 07 00 7C 2A 00 00 00 00 00 4A 0C 03 [14:17:02]RasterBufferAndPrint [14:17:02]line [14:17:02]line [14:17:02]line [14:17:02]line [14:17:02]line [14:17:02]written 0, free lines is 3149 [14:17:02]MH_Cut [14:17:02]Write to MH i2c: D1 01 00 83 2A 01 7F [14:17:02]Write i2c OK [14:17:02]MH_I2C_Read... [14:17:02]Read from MH i2c: D1 [14:17:02]MH_I2C_Read... [14:17:02]Read from MH i2c: D1 01 00 [14:17:02]MH_I2C_Read... [14:17:02]Read from MH i2c: D1 01 00 83 2A 00 7E [14:17:02]Write to MH i2c: 01 00 00 84 2A AE [14:17:02]Write i2c OK [14:17:02]MH_I2C_Read... [14:17:02]OFD Sender: No OFD packet to send [14:17:03]*** Cut start [14:17:03]*** Partial cut [14:17:03]*** CUTSNS_PIN = 1 [14:17:03]*** CUTSNS_PIN = 0 [14:17:03]*** Brake cut motor [14:17:04]Read from MH i2c: 01 [14:17:04]MH_I2C_Read... [14:17:04]*** Stop cut motor [14:17:04]*** Cut end [14:17:04]Read from MH i2c: 01 07 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: 01 07 00 84 2A 00 00 00 00 00 FF 0F C3 [14:17:04]process_action close_receipt done [14:17:04]requested_data is exist [14:17:04]produce_requested_data [14:17:04]requested_item fm.sn is exist - process it [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 11 00 00 [14:17:04]Write to MH i2c: E2 08 00 85 2A 80 11 00 00 00 00 00 00 29 [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 17 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 17 00 85 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 80 [14:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:17:04]wFMCommunicate OK [14:17:04]requested_item fd.num is exist - process it [14:17:04]SAM_PROTO_GetFieldsCounters [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 13 00 00 [14:17:04]Write to MH i2c: E2 08 00 86 2A 80 13 00 00 00 00 00 00 2C [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 62 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 62 00 86 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AA E0 01 00 0E 04 04 00 2C 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 1C [14:17:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AA E0 01 00 0E 04 04 00 2C 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 [14:17:04]wFMCommunicate OK [14:17:04]SAM_PROTO_GetFieldsCounters done [14:17:04]requested_item shift.num is exist - process it [14:17:04]requested_item shift.opened is exist - process it [14:17:04]req_shift_opened [14:17:04]FM_GetShiftState [14:17:04]SAM_PROTO_GetShiftState [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 13 01 00 [14:17:04]Write to MH i2c: E2 08 00 87 2A 80 13 01 00 00 00 00 00 2E [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 0E 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 0E 00 87 2A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 AD [14:17:04]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:17:04]wFMCommunicate OK [14:17:04]SAM_PROTO_GetShiftState done [14:17:04]FM_GetShiftState done [14:17:04]req_shift_opened done [14:17:04]requested_item shift.open_date is exist - process it [14:17:04]req_shift_open_date [14:17:04]req_shift_open_date done [14:17:04]produce_requested_data done [14:17:04]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123050,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:17:04]process_action_free close_receipt [14:17:04]json_value_free [14:17:04]json_value_free done [14:17:04]process_json_proto returns [14:17:04]Send response to host [14:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123050,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:17:04]free response buf [14:17:04]execute_script done [14:17:04]execute_script returns [14:17:04]free content buf [14:17:04]Sock 9.Close socket [14:17:04]Sock 9.Thread stoped [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:17]accept exits with 7 [14:18:17]New connection [14:18:17]New thread 3066580324 created [14:18:17]Thread 3066723684 joined [14:18:17]Waiting for new connection... [14:18:17] Sock 7.Parse request [14:18:17]Sock 7.Check first char [14:18:17]Sock 7.First char is OK [14:18:17]request: POST /json_proto HTTP/1.0 [14:18:17]Method: POST [14:18:17]URL: /json_proto [14:18:17]Method is POST - this is cgi request [14:18:17]url: /json_proto [14:18:17]query_string will be loaded in cgi processing [14:18:17]execute_cgi json_proto POST (null) [14:18:17]execute_cgi path=json_proto method=POST [14:18:17]POST find Content-Length [14:18:17]Host: 172.17.37.4:8080 [14:18:17]Content-Length: 677 [14:18:17]Content-Type: application/json [14:18:17] [14:18:17]POST finish read [14:18:17]Found Content-Length = 677 [14:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:17]execute_script... [14:18: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)717846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:17]POST & json_proto [14:18:17]process_json_proto [14:18:17]json parsed OK: [14:18:17]protocol is kg_v1.0 [14:18:17]action value=close_receipt [14:18:17]process_action close_receipt [14:18:17]cmd_close_receipt [14:18:17]MH_GetDate [14:18:17]Write to MH i2c: F0 00 00 88 2A A1 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: F0 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: F0 09 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: F0 09 00 88 2A 00 2F 87 44 67 B8 5A 43 67 C7 [14:18:17]GetLastDocTimeStamp 1732544224 [14:18:17]current date 1732544303 [14:18:17]FM_GetShiftState [14:18:17]SAM_PROTO_GetShiftState [14:18:17]wFMCommunicate request_size=4 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 13 01 00 [14:18:17]Write to MH i2c: E2 08 00 89 2A 80 13 01 00 00 00 00 00 30 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 0E 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 0E 00 89 2A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 AF [14:18:17]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:18:17]wFMCommunicate OK [14:18:17]SAM_PROTO_GetShiftState done [14:18:17]FM_GetShiftState done [14:18:17]opened in 1732493066 [14:18:17]opened+sec_in_day 1732579466 [14:18:17]quantity*price = 50010 [14:18:17]sum+1 = 50012 [14:18:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 92 25.11.2024 14:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123051 ФПД: 267468813086254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T141823&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123051&fm=267468813086254&tin=02508201610067®Number=0000000000092681&sum=50000 [14:18:19]StoreToDocumentArchive [14:18:19]shift 556 fd 123051 [14:18:19]save to /storage/0556/doc_00123051 [14:18:19]save last doc name /storage/0556/doc_00123051 to /storage/kkm_last_doc_name [14:18:19]save OK [14:18:19]Clear old archive folders... [14:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:19]tlvbuf is 02071A70 [14:18:19]SAM_PROTO_ClearQueue [14:18:19]wFMCommunicate request_size=4 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 09 00 00 [14:18:19]Write to MH i2c: E2 08 00 96 2A 80 09 00 00 00 00 00 00 32 [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:19]Read from MH i2c: E2 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 03 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 03 00 96 2A 00 90 00 34 [14:18:19]RAPDU: 90 00 [14:18:19]wFMCommunicate OK [14:18:19]SAM_PROTO_ClearQueue done [14:18:19]KKMCreateOFDPacket [14:18:19]OFDProtocolAddRootSTLVToBuf [14:18:19]FM_MakeSignedData [14:18:19]FM_MakeSignedData [14:18:19]SAM_PROTO_SignData [14:18:19]wFMCommunicate request_size=4 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 0D 01 02 [14:18:19]Write to MH i2c: E2 08 00 97 2A 80 0D 01 02 00 00 00 00 3A [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:19]Read from MH i2c: E2 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 03 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 03 00 97 2A 00 90 00 35 [14:18:19]RAPDU: 90 00 [14:18:19]wFMCommunicate OK [14:18:19]wFMCommunicate request_size=255 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2F 87 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E0 01 00 35 04 06 00 F3 [14:18:19]Write to MH i2c: E2 02 01 98 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2F 87 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E0 01 00 35 04 06 00 F3 00 00 0B [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:19]Read from MH i2c: E2 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 03 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 03 00 98 2A 00 90 00 36 [14:18:19]RAPDU: 90 00 [14:18:19]wFMCommunicate OK [14:18:19]wFMCommunicate request_size=10 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 0D 02 02 05 42 EF 97 AE 2E [14:18:19]Write to MH i2c: E2 0D 00 99 2A 80 0D 02 02 05 00 42 EF 97 AE 2E 00 00 EB [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:19]Read from MH i2c: E2 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 03 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 03 00 99 2A 00 90 00 37 [14:18:19]RAPDU: 90 00 [14:18:19]wFMCommunicate OK [14:18:19]wFMCommunicate request_size=4 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 0D 03 02 [14:18:19]Write to MH i2c: E2 08 00 9A 2A 80 0D 03 02 00 00 00 00 3F [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:19]Read from MH i2c: E2 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 0B 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 0B 00 9A 2A 00 A7 BF 93 6B 1C C4 E0 F8 90 00 5C [14:18:19]RAPDU: A7 BF 93 6B 1C C4 E0 F8 90 00 [14:18:19]wFMCommunicate OK [14:18:19]SAM_PROTO_SignData done [14:18:19]FM_MakeSignedData done [14:18:19]CreateOFDProtocolMessage [14:18:19]wFMCommunicate request_size=4 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 11 00 00 [14:18:19]Write to MH i2c: E2 08 00 9B 2A 80 11 00 00 00 00 00 00 3F [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:19]Read from MH i2c: E2 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 17 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 17 00 9B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 96 [14:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:18:19]wFMCommunicate OK [14:18:19]CreateOFDProtocolMessage done [14:18:19]OFDSenderStorePacket 123051 [14:18:19]StoreOFDPacket docnum=123051 [14:18:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 61 BA 07 01 2A 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2F 87 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E0 01 00 35 04 06 00 F3 42 EF 97 AE 2E A7 BF 93 6B 1C C4 E0 F8 [14:18:19]CheckFolder [14:18:19]dirname=/storage/ofd_packets [14:18:19]CheckFolder done [14:18:19]ProducePacketName [14:18:19]name=ofd_packets/00123051 [14:18:19]NVStorageSaveData ofd_packets/00123051 [14:18:19]File name is /storage/ofd_packets/00123051 [14:18:19]Write 301 bytes [14:18:19]NVStorageSaveData done [14:18:19]OFDSenderStorePacket done [14:18:19]KKMCreateOFDPacket done [14:18:19]NVStorageSaveData kkm_last_timestamp [14:18:19]File name is /storage/kkm_last_timestamp [14:18:19]Write 4 bytes [14:18:19]NVStorageSaveData done [14:18:19]ExternCall_PrintAddStr [14:18:19]wPrintStart [14:18:19]Write to MH i2c: 01 00 00 9C 2A C6 [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: 01 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: 01 07 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: 01 07 00 9C 2A 00 00 00 00 00 FF 0F DB [14:18:19]RasterBufferAndPrint [14:18:19]line Счет N : (1)717846 [14:18:19]line ИНН: 02508201610067 [14:18:19]line Контрольно-Кассовый Чек [14:18:19]line ПРОДАЖА [14:18:19]line ТРК (МРК, ГНК) : 12 [14:18:19]line Товар: 2710124130 [14:18:19]line Аи-92-К-4 [14:18:19]line 7.420 * 67.40 [14:18:19]line = 500.11 [14:18:19]line НДС 12% НСП 1% [14:18:19]line > о реализуемом товаре [14:18:19]line ОКРУГЛЕНИЕ: -0.11 [14:18:19]line ИТОГО: 500.00 [14:18:19]line Внесено: 500.00 [14:18:19]line СДАЧА: 0.00 [14:18:19]line НСП 1% : 4.43 [14:18:19]line НДС 12% : 53.11 [14:18:19]line Наличными: 500.00 [14:18:19]line Безнал.: 0.00 [14:18:19]line Место: АЗС № 64 "Партнер Нефть" [14:18:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:18:19]line СНО: Общий режим [14:18:19]line Чек 92 25.11.2024 14:18 [14:18:19]line Смена: 556 ФФД: 1.0 [14:18:19]line ЗНМ: 0300000033 [14:18:19]line РНМ: 0000000000092681 [14:18:19]line Версия ККМ: 001 [14:18:19]line ФМ: 0000000000874881 [14:18:19]line ФД: 123051 [14:18:19]line ФПД: 267468813086254 [14:18:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T141823&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123051&fm=267468813086254&tin=02508201610067®Number=0000000000092681&sum=50000 [14:18:19]OFD Sender: Processing packet 123051 [packets to send 7, broken 6] [14:18:19]ProducePacketName [14:18:19]name=ofd_packets/00123051 [14:18:19]OFD Sender: To server: pG, [14:18:19]CommunicateWithHost lk.salyk.kg:30040 [14:18:19]ConnectInit lk.salyk.kg [14:18:19]written 0, free lines is 4095 [14:18:19]Connected sock=10 [14:18:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 61 BA 07 01 2A 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2F 87 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E0 01 00 35 04 06 00 F3 42 EF 97 AE 2E A7 BF 93 6B 1C C4 E0 F8 [14:18:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 18 81 47 00 09 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E0 01 00 F4 03 04 00 F4 32 44 67 B6 04 01 00 00 17 F8 B5 C5 01 71 DC 9E [14:18:20]CommunicateWithHost err = 0 [14:18:20]CheckOFDResponse [14:18:20]1017 (14) - 77093643461234 [14:18:20]1041 (16) - 0000000000874881 [14:18:20]1040 (4) - 123051 [14:18:20]1012 (4) - 25.11.2024 08:19 [14:18:20]1206 (1) - 0 [14:18:20]OFD Sender: Remove packet 123051 [14:18:20]ProducePacketName [14:18:20]name=ofd_packets/00123051 [14:18:20]NVStorageDeleteData [14:18:20]Write to MH i2c: 01 00 00 C7 2A F1 [14:18:20]Write i2c OK [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: 01 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: 01 07 00 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: 01 07 00 C7 2A 00 00 00 00 00 50 0C 54 [14:18:20]RasterBufferAndPrint [14:18:20]line [14:18:20]line [14:18:20]line [14:18:20]line [14:18:20]line [14:18:20]written 0, free lines is 3156 [14:18:20]MH_Cut [14:18:20]Write to MH i2c: D1 01 00 CE 2A 01 CA [14:18:20]Write i2c OK [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: D1 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: D1 01 00 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: D1 01 00 CE 2A 00 C9 [14:18:20]Write to MH i2c: 01 00 00 CF 2A F9 [14:18:20]Write i2c OK [14:18:20]MH_I2C_Read... [14:18:20]OFD Sender: No OFD packet to send [14:18:21]*** Cut start [14:18:21]*** Partial cut [14:18:21]*** CUTSNS_PIN = 1 [14:18:21]*** CUTSNS_PIN = 0 [14:18:21]*** Brake cut motor [14:18:22]Read from MH i2c: 01 [14:18:22]MH_I2C_Read... [14:18:22]*** Stop cut motor [14:18:22]*** Cut end [14:18:22]Read from MH i2c: 01 07 00 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: 01 07 00 CF 2A 00 00 00 00 00 FF 0F 0E [14:18:22]process_action close_receipt done [14:18:22]requested_data is exist [14:18:22]produce_requested_data [14:18:22]requested_item fm.sn is exist - process it [14:18:22]wFMCommunicate request_size=4 [14:18:22]MH_SAM_APDU [14:18:22]CAPDU: 80 11 00 00 [14:18:22]Write to MH i2c: E2 08 00 D0 2A 80 11 00 00 00 00 00 00 74 [14:18:22]Write i2c OK [14:18:22]MH_I2C_Read... [14:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:22]Read from MH i2c: E2 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: E2 17 00 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: E2 17 00 D0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CB [14:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:18:22]wFMCommunicate OK [14:18:22]requested_item fd.num is exist - process it [14:18:22]SAM_PROTO_GetFieldsCounters [14:18:22]wFMCommunicate request_size=4 [14:18:22]MH_SAM_APDU [14:18:22]CAPDU: 80 13 00 00 [14:18:22]Write to MH i2c: E2 08 00 D1 2A 80 13 00 00 00 00 00 00 77 [14:18:22]Write i2c OK [14:18:22]MH_I2C_Read... [14:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:22]Read from MH i2c: E2 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: E2 62 00 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: E2 62 00 D1 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AB E0 01 00 0E 04 04 00 2C 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 6B [14:18:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AB E0 01 00 0E 04 04 00 2C 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 [14:18:22]wFMCommunicate OK [14:18:22]SAM_PROTO_GetFieldsCounters done [14:18:22]requested_item shift.num is exist - process it [14:18:22]requested_item shift.opened is exist - process it [14:18:22]req_shift_opened [14:18:22]FM_GetShiftState [14:18:22]SAM_PROTO_GetShiftState [14:18:22]wFMCommunicate request_size=4 [14:18:22]MH_SAM_APDU [14:18:22]CAPDU: 80 13 01 00 [14:18:22]Write to MH i2c: E2 08 00 D2 2A 80 13 01 00 00 00 00 00 79 [14:18:22]Write i2c OK [14:18:22]MH_I2C_Read... [14:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:22]Read from MH i2c: E2 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: E2 0E 00 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: E2 0E 00 D2 2A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F8 [14:18:22]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:18:22]wFMCommunicate OK [14:18:22]SAM_PROTO_GetShiftState done [14:18:22]FM_GetShiftState done [14:18:22]req_shift_opened done [14:18:22]requested_item shift.open_date is exist - process it [14:18:22]req_shift_open_date [14:18:22]req_shift_open_date done [14:18:22]produce_requested_data done [14:18:22]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123051,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:18:22]process_action_free close_receipt [14:18:22]json_value_free [14:18:22]json_value_free done [14:18:22]process_json_proto returns [14:18:22]Send response to host [14:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123051,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:18:22]free response buf [14:18:22]execute_script done [14:18:22]execute_script returns [14:18:22]free content buf [14:18:22]Sock 7.Close socket [14:18:22]Sock 7.Thread stoped [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:54]accept exits with 9 [14:22:54]New connection [14:22:54]New thread 3066723684 created [14:22:54]Thread 3066580324 joined [14:22:54]Waiting for new connection... [14:22:54] Sock 9.Parse request [14:22:54]Sock 9.Check first char [14:22:54]Sock 9.First char is OK [14:22:54]request: POST /json_proto HTTP/1.0 [14:22:54]Method: POST [14:22:54]URL: /json_proto [14:22:54]Method is POST - this is cgi request [14:22:54]url: /json_proto [14:22:54]query_string will be loaded in cgi processing [14:22:54]execute_cgi json_proto POST (null) [14:22:54]execute_cgi path=json_proto method=POST [14:22:54]POST find Content-Length [14:22:54]Host: 172.17.37.4:8080 [14:22:54]Content-Length: 796 [14:22:54]Content-Type: application/json [14:22:54] [14:22:54]POST finish read [14:22:54]Found Content-Length = 796 [14:22:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 69.940, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32287", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:54]execute_script... [14:22:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 69.940, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32287", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:54]POST & json_proto [14:22:54]process_json_proto [14:22:54]json parsed OK: [14:22:54]protocol is kg_v1.0 [14:22:54]action value=close_receipt [14:22:54]process_action close_receipt [14:22:54]cmd_close_receipt [14:22:54]MH_GetDate [14:22:54]Write to MH i2c: F0 00 00 D3 2A EC [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 09 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 09 00 D3 2A 00 44 88 44 67 B8 5A 43 67 28 [14:22:54]GetLastDocTimeStamp 1732544303 [14:22:54]current date 1732544580 [14:22:54]FM_GetShiftState [14:22:54]SAM_PROTO_GetShiftState [14:22:54]wFMCommunicate request_size=4 [14:22:54]MH_SAM_APDU [14:22:54]CAPDU: 80 13 01 00 [14:22:54]Write to MH i2c: E2 08 00 D4 2A 80 13 01 00 00 00 00 00 7B [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:54]Read from MH i2c: E2 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 0E 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 0E 00 D4 2A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FA [14:22:54]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:22:54]wFMCommunicate OK [14:22:54]SAM_PROTO_GetShiftState done [14:22:54]FM_GetShiftState done [14:22:54]opened in 1732493066 [14:22:54]opened+sec_in_day 1732579466 [14:22:54]quantity*price = 0 [14:22:54]sum+1 = 1 [14:22:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 93 25.11.2024 14:23 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 32287 ФМ: 0000000000874881 ФД: 123052 ФПД: 34043235674293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T142300&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123052&fm=34043235674293&tin=02508201610067®Number=0000000000092681&sum=0 [14:22:55]StoreToDocumentArchive [14:22:55]shift 556 fd 123052 [14:22:55]save to /storage/0556/doc_00123052 [14:22:55]save last doc name /storage/0556/doc_00123052 to /storage/kkm_last_doc_name [14:22:55]save OK [14:22:55]Clear old archive folders... [14:22:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:22:55]tlvbuf is B6F20770 [14:22:55]SAM_PROTO_ClearQueue [14:22:55]wFMCommunicate request_size=4 [14:22:55]MH_SAM_APDU [14:22:55]CAPDU: 80 09 00 00 [14:22:55]Write to MH i2c: E2 08 00 E1 2A 80 09 00 00 00 00 00 00 7D [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 E1 2A 00 90 00 7F [14:22:56]RAPDU: 90 00 [14:22:56]wFMCommunicate OK [14:22:56]SAM_PROTO_ClearQueue done [14:22:56]KKMCreateOFDPacket [14:22:56]OFDProtocolAddRootSTLVToBuf [14:22:56]FM_MakeSignedData [14:22:56]FM_MakeSignedData [14:22:56]SAM_PROTO_SignData [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 0D 01 02 [14:22:56]Write to MH i2c: E2 08 00 E2 2A 80 0D 01 02 00 00 00 00 85 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 E2 2A 00 90 00 80 [14:22:56]RAPDU: 90 00 [14:22:56]wFMCommunicate OK [14:22:56]wFMCommunicate request_size=255 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 34 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 44 88 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E0 01 00 35 04 06 00 [14:22:56]Write to MH i2c: E2 02 01 E3 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 34 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 44 88 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E0 01 00 35 04 06 00 00 00 A4 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 E3 2A 00 90 00 81 [14:22:56]RAPDU: 90 00 [14:22:56]wFMCommunicate OK [14:22:56]wFMCommunicate request_size=11 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 0D 02 02 06 1E F6 4E F8 28 B5 [14:22:56]Write to MH i2c: E2 0E 00 E4 2A 80 0D 02 02 06 00 1E F6 4E F8 28 B5 00 00 CB [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 E4 2A 00 90 00 82 [14:22:56]RAPDU: 90 00 [14:22:56]wFMCommunicate OK [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 0D 03 02 [14:22:56]Write to MH i2c: E2 08 00 E5 2A 80 0D 03 02 00 00 00 00 8A [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 0B 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 0B 00 E5 2A 00 95 A4 A4 69 9B 9F CC 5C 90 00 33 [14:22:56]RAPDU: 95 A4 A4 69 9B 9F CC 5C 90 00 [14:22:56]wFMCommunicate OK [14:22:56]SAM_PROTO_SignData done [14:22:56]FM_MakeSignedData done [14:22:56]CreateOFDProtocolMessage [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 11 00 00 [14:22:56]Write to MH i2c: E2 08 00 E6 2A 80 11 00 00 00 00 00 00 8A [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 17 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 17 00 E6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E1 [14:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:22:56]wFMCommunicate OK [14:22:56]CreateOFDProtocolMessage done [14:22:56]OFDSenderStorePacket 123052 [14:22:56]StoreOFDPacket docnum=123052 [14:22:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 EA CF 08 01 42 B9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 34 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 44 88 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E0 01 00 35 04 06 00 1E F6 4E F8 28 B5 95 A4 A4 69 9B 9F CC 5C [14:22:56]CheckFolder [14:22:56]dirname=/storage/ofd_packets [14:22:56]CheckFolder done [14:22:56]ProducePacketName [14:22:56]name=ofd_packets/00123052 [14:22:56]NVStorageSaveData ofd_packets/00123052 [14:22:56]File name is /storage/ofd_packets/00123052 [14:22:56]Write 302 bytes [14:22:56]NVStorageSaveData done [14:22:56]OFDSenderStorePacket done [14:22:56]KKMCreateOFDPacket done [14:22:56]NVStorageSaveData kkm_last_timestamp [14:22:56]File name is /storage/kkm_last_timestamp [14:22:56]Write 4 bytes [14:22:56]NVStorageSaveData done [14:22:56]ExternCall_PrintAddStr [14:22:56]wPrintStart [14:22:56]Write to MH i2c: 01 00 00 E7 2A 11 [14:22:56]OFD Sender: Processing packet 123052 [packets to send 7, broken 6] [14:22:56]ProducePacketName [14:22:56]name=ofd_packets/00123052 [14:22:56]OFD Sender: To server: pG, [14:22:56]CommunicateWithHost lk.salyk.kg:30040 [14:22:56]ConnectInit lk.salyk.kg [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 E7 2A 00 00 00 00 00 FF 0F 26 [14:22:56]RasterBufferAndPrint [14:22:56]line Счет N : (1)717847 [14:22:56]line ИНН: 02508201610067 [14:22:56]line Контрольно-Кассовый Чек [14:22:56]line ПРОДАЖА [14:22:56]line ТРК (МРК, ГНК) : 6 [14:22:56]line Товар: 2710194210 [14:22:56]line ДТ(л)-К-5 [14:22:56]line 69.940 * 0.00 [14:22:56]line = 0.00 [14:22:56]line НДС 12% НСП 1% [14:22:56]line > о реализуемом товаре [14:22:56]line ИТОГО: 0.00 [14:22:56]line НСП 1% : 0.00 [14:22:56]line НДС 12% : 0.00 [14:22:56]line Наличными: 0.00 [14:22:56]line Безнал.: 0.00 [14:22:56]line Место: АЗС № 64 "Партнер Нефть" [14:22:56]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:22:56]line СНО: Общий режим [14:22:56]line Чек 93 25.11.2024 14:23 [14:22:56]line Смена: 556 ФФД: 1.0 [14:22:56]line ЗНМ: 0300000033 [14:22:56]line РНМ: 0000000000092681 [14:22:56]line Версия ККМ: 001 [14:22:56]line Талоны: Топливная Карта [14:22:56]line 32287 [14:22:56]line ФМ: 0000000000874881 [14:22:56]line ФД: 123052 [14:22:56]line ФПД: 34043235674293 [14:22:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T142300&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123052&fm=34043235674293&tin=02508201610067®Number=0000000000092681&sum=0 [14:22:56]written 0, free lines is 4095 [14:22:56]Connected sock=10 [14:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 EA CF 08 01 42 B9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 34 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 44 88 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E0 01 00 35 04 06 00 1E F6 4E F8 28 B5 95 A4 A4 69 9B 9F CC 5C [14:22:56]Write to MH i2c: 01 00 00 11 2B 3C [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 11 2B 00 00 00 00 00 6B 0C BA [14:22:56]RasterBufferAndPrint [14:22:56]line [14:22:56]line [14:22:56]line [14:22:56]line [14:22:56]line [14:22:56]written 0, free lines is 3184 [14:22:56]MH_Cut [14:22:56]Write to MH i2c: D1 01 00 18 2B 01 15 [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: D1 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: D1 01 00 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: D1 01 00 18 2B 00 14 [14:22:57]Write to MH i2c: 01 00 00 19 2B 44 [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 14 41 47 00 0B 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E0 01 00 F4 03 04 00 09 34 44 67 B6 04 01 00 00 2C B0 3C BB 32 17 C6 C2 [14:22:57]CommunicateWithHost err = 0 [14:22:57]CheckOFDResponse [14:22:57]1017 (14) - 77093643461234 [14:22:57]1041 (16) - 0000000000874881 [14:22:57]1040 (4) - 123052 [14:22:57]1012 (4) - 25.11.2024 08:23 [14:22:57]1206 (1) - 0 [14:22:57]OFD Sender: Remove packet 123052 [14:22:57]ProducePacketName [14:22:57]name=ofd_packets/00123052 [14:22:57]NVStorageDeleteData [14:22:57]OFD Sender: No OFD packet to send [14:22:58]*** Cut start [14:22:58]*** Partial cut [14:22:58]*** CUTSNS_PIN = 1 [14:22:58]*** CUTSNS_PIN = 0 [14:22:58]*** Brake cut motor [14:22:58]Read from MH i2c: 01 [14:22:58]MH_I2C_Read... [14:22:58]*** Stop cut motor [14:22:58]*** Cut end [14:22:58]Read from MH i2c: 01 07 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: 01 07 00 19 2B 00 00 00 00 00 FF 0F 59 [14:22:58]process_action close_receipt done [14:22:58]requested_data is exist [14:22:58]produce_requested_data [14:22:58]requested_item fm.sn is exist - process it [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 11 00 00 [14:22:58]Write to MH i2c: E2 08 00 1A 2B 80 11 00 00 00 00 00 00 BF [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 17 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 17 00 1A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 16 [14:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:22:59]wFMCommunicate OK [14:22:59]requested_item fd.num is exist - process it [14:22:59]SAM_PROTO_GetFieldsCounters [14:22:59]wFMCommunicate request_size=4 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 13 00 00 [14:22:59]Write to MH i2c: E2 08 00 1B 2B 80 13 00 00 00 00 00 00 C2 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 62 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 62 00 1B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AC E0 01 00 0E 04 04 00 2C 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 BA [14:22:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AC E0 01 00 0E 04 04 00 2C 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 [14:22:59]wFMCommunicate OK [14:22:59]SAM_PROTO_GetFieldsCounters done [14:22:59]requested_item shift.num is exist - process it [14:22:59]requested_item shift.opened is exist - process it [14:22:59]req_shift_opened [14:22:59]FM_GetShiftState [14:22:59]SAM_PROTO_GetShiftState [14:22:59]wFMCommunicate request_size=4 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 13 01 00 [14:22:59]Write to MH i2c: E2 08 00 1C 2B 80 13 01 00 00 00 00 00 C4 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 0E 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 0E 00 1C 2B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 43 [14:22:59]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:22:59]wFMCommunicate OK [14:22:59]SAM_PROTO_GetShiftState done [14:22:59]FM_GetShiftState done [14:22:59]req_shift_opened done [14:22:59]requested_item shift.open_date is exist - process it [14:22:59]req_shift_open_date [14:22:59]req_shift_open_date done [14:22:59]produce_requested_data done [14:22:59]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123052,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:22:59]process_action_free close_receipt [14:22:59]json_value_free [14:22:59]json_value_free done [14:22:59]process_json_proto returns [14:22:59]Send response to host [14:22:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123052,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:22:59]free response buf [14:22:59]execute_script done [14:22:59]execute_script returns [14:22:59]free content buf [14:22:59]Sock 9.Close socket [14:22:59]Sock 9.Thread stoped [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:56]accept exits with 7 [14:24:56]New connection [14:24:56]New thread 3066580324 created [14:24:56]Thread 3066723684 joined [14:24:56]Waiting for new connection... [14:24:56] Sock 7.Parse request [14:24:56]Sock 7.Check first char [14:24:56]Sock 7.First char is OK [14:24:56]request: POST /json_proto HTTP/1.0 [14:24:56]Method: POST [14:24:56]URL: /json_proto [14:24:56]Method is POST - this is cgi request [14:24:56]url: /json_proto [14:24:56]query_string will be loaded in cgi processing [14:24:56]execute_cgi json_proto POST (null) [14:24:56]execute_cgi path=json_proto method=POST [14:24:56]POST find Content-Length [14:24:56]Host: 172.17.37.4:8080 [14:24:56]Content-Length: 793 [14:24:56]Content-Type: application/json [14:24:56] [14:24:56]POST finish read [14:24:56]Found Content-Length = 793 [14:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:56]execute_script... [14:24: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)717848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:56]POST & json_proto [14:24:56]process_json_proto [14:24:56]json parsed OK: [14:24:56]protocol is kg_v1.0 [14:24:56]action value=close_receipt [14:24:56]process_action close_receipt [14:24:56]cmd_close_receipt [14:24:56]MH_GetDate [14:24:56]Write to MH i2c: F0 00 00 1D 2B 37 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: F0 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: F0 09 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: F0 09 00 1D 2B 00 BD 88 44 67 B8 5A 43 67 EC [14:24:56]GetLastDocTimeStamp 1732544580 [14:24:56]current date 1732544701 [14:24:56]FM_GetShiftState [14:24:56]SAM_PROTO_GetShiftState [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 13 01 00 [14:24:56]Write to MH i2c: E2 08 00 1E 2B 80 13 01 00 00 00 00 00 C6 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 0E 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 0E 00 1E 2B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 45 [14:24:56]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:24:56]wFMCommunicate OK [14:24:56]SAM_PROTO_GetShiftState done [14:24:56]FM_GetShiftState done [14:24:56]opened in 1732493066 [14:24:56]opened+sec_in_day 1732579466 [14:24:56]quantity*price = 0 [14:24:56]sum+1 = 1 [14:24:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 94 25.11.2024 14:25 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 32286 ФМ: 0000000000874881 ФД: 123053 ФПД: 198108522155455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T142501&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123053&fm=198108522155455&tin=02508201610067®Number=0000000000092681&sum=0 [14:24:57]StoreToDocumentArchive [14:24:57]shift 556 fd 123053 [14:24:57]save to /storage/0556/doc_00123053 [14:24:57]save last doc name /storage/0556/doc_00123053 to /storage/kkm_last_doc_name [14:24:57]save OK [14:24:57]Clear old archive folders... [14:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:57]tlvbuf is 01F33710 [14:24:57]SAM_PROTO_ClearQueue [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 09 00 00 [14:24:57]Write to MH i2c: E2 08 00 2B 2B 80 09 00 00 00 00 00 00 C8 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 2B 2B 00 90 00 CA [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_ClearQueue done [14:24:57]KKMCreateOFDPacket [14:24:57]OFDProtocolAddRootSTLVToBuf [14:24:57]FM_MakeSignedData [14:24:57]FM_MakeSignedData [14:24:57]SAM_PROTO_SignData [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 01 02 [14:24:57]Write to MH i2c: E2 08 00 2C 2B 80 0D 01 02 00 00 00 00 D0 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 2C 2B 00 90 00 CB [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=255 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 BD 88 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E0 01 00 35 04 06 00 B4 [14:24:57]Write to MH i2c: E2 02 01 2D 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 BD 88 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E0 01 00 35 04 06 00 B4 00 00 C3 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]OFD Sender: No OFD packet to send [14:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 2D 2B 00 90 00 CC [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=10 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 02 02 05 2D BC 17 0D BF [14:24:57]Write to MH i2c: E2 0D 00 2E 2B 80 0D 02 02 05 00 2D BC 17 0D BF 00 00 A9 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 2E 2B 00 90 00 CD [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 03 02 [14:24:57]Write to MH i2c: E2 08 00 2F 2B 80 0D 03 02 00 00 00 00 D5 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0B 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0B 00 2F 2B 00 06 B0 17 93 F2 9F 36 AE 90 00 AB [14:24:57]RAPDU: 06 B0 17 93 F2 9F 36 AE 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_SignData done [14:24:57]FM_MakeSignedData done [14:24:57]CreateOFDProtocolMessage [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 11 00 00 [14:24:57]Write to MH i2c: E2 08 00 30 2B 80 11 00 00 00 00 00 00 D5 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 17 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 17 00 30 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2C [14:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:24:57]wFMCommunicate OK [14:24:57]CreateOFDProtocolMessage done [14:24:57]OFDSenderStorePacket 123053 [14:24:57]StoreOFDPacket docnum=123053 [14:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F6 42 07 01 64 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 34 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 BD 88 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E0 01 00 35 04 06 00 B4 2D BC 17 0D BF 06 B0 17 93 F2 9F 36 AE [14:24:57]CheckFolder [14:24:57]dirname=/storage/ofd_packets [14:24:57]CheckFolder done [14:24:57]ProducePacketName [14:24:57]name=ofd_packets/00123053 [14:24:57]NVStorageSaveData ofd_packets/00123053 [14:24:57]File name is /storage/ofd_packets/00123053 [14:24:57]Write 301 bytes [14:24:57]NVStorageSaveData done [14:24:57]OFDSenderStorePacket done [14:24:57]KKMCreateOFDPacket done [14:24:57]NVStorageSaveData kkm_last_timestamp [14:24:57]File name is /storage/kkm_last_timestamp [14:24:57]Write 4 bytes [14:24:57]NVStorageSaveData done [14:24:57]ExternCall_PrintAddStr [14:24:57]wPrintStart [14:24:57]Write to MH i2c: 01 00 00 31 2B 5C [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 07 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 07 00 31 2B 00 00 00 00 00 FF 0F 71 [14:24:57]RasterBufferAndPrint [14:24:57]line Счет N : (1)717848 [14:24:57]line ИНН: 02508201610067 [14:24:57]line Контрольно-Кассовый Чек [14:24:57]line ПРОДАЖА [14:24:57]line ТРК (МРК, ГНК) : 42 [14:24:57]line Товар: 2710124130 [14:24:57]line Аи-92-К-4 [14:24:57]line 100.000 * 0.00 [14:24:57]line = 0.00 [14:24:57]line НДС 12% НСП 1% [14:24:57]line > о реализуемом товаре [14:24:57]line ИТОГО: 0.00 [14:24:57]line НСП 1% : 0.00 [14:24:57]line НДС 12% : 0.00 [14:24:57]line Наличными: 0.00 [14:24:57]line Безнал.: 0.00 [14:24:57]line Место: АЗС № 64 "Партнер Нефть" [14:24:57]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:24:57]line СНО: Общий режим [14:24:57]line Чек 94 25.11.2024 14:25 [14:24:57]line Смена: 556 ФФД: 1.0 [14:24:57]line ЗНМ: 0300000033 [14:24:57]line РНМ: 0000000000092681 [14:24:57]line Версия ККМ: 001 [14:24:57]line Талоны: Топливная Карта [14:24:57]line 32286 [14:24:57]line ФМ: 0000000000874881 [14:24:57]line ФД: 123053 [14:24:57]line ФПД: 198108522155455 [14:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T142501&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123053&fm=198108522155455&tin=02508201610067®Number=0000000000092681&sum=0 [14:24:58]OFD Sender: Processing packet 123053 [packets to send 7, broken 6] [14:24:58]ProducePacketName [14:24:58]name=ofd_packets/00123053 [14:24:58]OFD Sender: To server: pG, [14:24:58]CommunicateWithHost lk.salyk.kg:30040 [14:24:58]ConnectInit lk.salyk.kg [14:24:58]written 0, free lines is 4095 [14:24:58]Connected sock=10 [14:24:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F6 42 07 01 64 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 34 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 BD 88 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E0 01 00 35 04 06 00 B4 2D BC 17 0D BF 06 B0 17 93 F2 9F 36 AE [14:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A4 3D 47 00 DD 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E0 01 00 F4 03 04 00 83 34 44 67 B6 04 01 00 00 F0 6C 73 68 3F 63 E4 C2 [14:24:58]CommunicateWithHost err = 0 [14:24:58]CheckOFDResponse [14:24:58]1017 (14) - 77093643461234 [14:24:58]1041 (16) - 0000000000874881 [14:24:58]1040 (4) - 123053 [14:24:58]1012 (4) - 25.11.2024 08:25 [14:24:58]1206 (1) - 0 [14:24:58]OFD Sender: Remove packet 123053 [14:24:58]ProducePacketName [14:24:58]name=ofd_packets/00123053 [14:24:58]NVStorageDeleteData [14:24:58]Write to MH i2c: 01 00 00 5B 2B 86 [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 5B 2B 00 00 00 00 00 5F 0C F8 [14:24:58]RasterBufferAndPrint [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]written 0, free lines is 3171 [14:24:58]MH_Cut [14:24:58]Write to MH i2c: D1 01 00 62 2B 01 5F [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 01 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 01 00 62 2B 00 5E [14:24:58]Write to MH i2c: 01 00 00 63 2B 8E [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:59]OFD Sender: No OFD packet to send [14:24:59]*** Cut start [14:24:59]*** Partial cut [14:24:59]*** CUTSNS_PIN = 1 [14:25:00]*** CUTSNS_PIN = 0 [14:25:00]*** Brake cut motor [14:25:00]Read from MH i2c: 01 [14:25:00]MH_I2C_Read... [14:25:00]*** Stop cut motor [14:25:00]*** Cut end [14:25:00]Read from MH i2c: 01 07 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: 01 07 00 63 2B 00 00 00 00 00 FF 0F A3 [14:25:00]process_action close_receipt done [14:25:00]requested_data is exist [14:25:00]produce_requested_data [14:25:00]requested_item fm.sn is exist - process it [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 11 00 00 [14:25:00]Write to MH i2c: E2 08 00 64 2B 80 11 00 00 00 00 00 00 09 [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 17 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 17 00 64 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 60 [14:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:25:00]wFMCommunicate OK [14:25:00]requested_item fd.num is exist - process it [14:25:00]SAM_PROTO_GetFieldsCounters [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 13 00 00 [14:25:00]Write to MH i2c: E2 08 00 65 2B 80 13 00 00 00 00 00 00 0C [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 62 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 62 00 65 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AD E0 01 00 0E 04 04 00 2C 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 08 [14:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AD E0 01 00 0E 04 04 00 2C 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 [14:25:00]wFMCommunicate OK [14:25:00]SAM_PROTO_GetFieldsCounters done [14:25:00]requested_item shift.num is exist - process it [14:25:00]requested_item shift.opened is exist - process it [14:25:00]req_shift_opened [14:25:00]FM_GetShiftState [14:25:00]SAM_PROTO_GetShiftState [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 13 01 00 [14:25:00]Write to MH i2c: E2 08 00 66 2B 80 13 01 00 00 00 00 00 0E [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 0E 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 0E 00 66 2B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 8D [14:25:00]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:25:00]wFMCommunicate OK [14:25:00]SAM_PROTO_GetShiftState done [14:25:00]FM_GetShiftState done [14:25:00]req_shift_opened done [14:25:00]requested_item shift.open_date is exist - process it [14:25:00]req_shift_open_date [14:25:00]req_shift_open_date done [14:25:00]produce_requested_data done [14:25:00]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123053,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:25:00]process_action_free close_receipt [14:25:00]json_value_free [14:25:00]json_value_free done [14:25:00]process_json_proto returns [14:25:00]Send response to host [14:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123053,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:25:00]free response buf [14:25:00]execute_script done [14:25:00]execute_script returns [14:25:00]free content buf [14:25:00]Sock 7.Close socket [14:25:00]Sock 7.Thread stoped [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:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:16]accept exits with 9 [14:29:16]New connection [14:29:16]New thread 3066723684 created [14:29:16]Thread 3066580324 joined [14:29:16]Waiting for new connection... [14:29:16] Sock 9.Parse request [14:29:16]Sock 9.Check first char [14:29:16]Sock 9.First char is OK [14:29:16]request: POST /json_proto HTTP/1.0 [14:29:16]Method: POST [14:29:16]URL: /json_proto [14:29:16]Method is POST - this is cgi request [14:29:16]url: /json_proto [14:29:16]query_string will be loaded in cgi processing [14:29:16]execute_cgi json_proto POST (null) [14:29:16]execute_cgi path=json_proto method=POST [14:29:16]POST find Content-Length [14:29:16]Host: 172.17.37.4:8080 [14:29:16]Content-Length: 677 [14:29:16]Content-Type: application/json [14:29:16] [14:29:16]POST finish read [14:29:16]Found Content-Length = 677 [14:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:16]execute_script... [14:29:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:16]POST & json_proto [14:29:16]process_json_proto [14:29:16]json parsed OK: [14:29:16]protocol is kg_v1.0 [14:29:16]action value=close_receipt [14:29:16]process_action close_receipt [14:29:16]cmd_close_receipt [14:29:16]MH_GetDate [14:29:16]Write to MH i2c: F0 00 00 67 2B 81 [14:29:16]Write i2c OK [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: F0 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: F0 09 00 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: F0 09 00 67 2B 00 C1 89 44 67 B8 5A 43 67 3B [14:29:16]GetLastDocTimeStamp 1732544701 [14:29:16]current date 1732544961 [14:29:16]FM_GetShiftState [14:29:16]SAM_PROTO_GetShiftState [14:29:16]wFMCommunicate request_size=4 [14:29:16]MH_SAM_APDU [14:29:16]CAPDU: 80 13 01 00 [14:29:16]Write to MH i2c: E2 08 00 68 2B 80 13 01 00 00 00 00 00 10 [14:29:16]Write i2c OK [14:29:16]MH_I2C_Read... [14:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:16]Read from MH i2c: E2 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: E2 0E 00 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: E2 0E 00 68 2B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 8F [14:29:16]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:29:16]wFMCommunicate OK [14:29:16]SAM_PROTO_GetShiftState done [14:29:16]FM_GetShiftState done [14:29:16]opened in 1732493066 [14:29:16]opened+sec_in_day 1732579466 [14:29:16]quantity*price = 40035 [14:29:16]sum+1 = 40037 [14:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 95 25.11.2024 14:29 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123054 ФПД: 258815253831860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T142921&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123054&fm=258815253831860&tin=02508201610067®Number=0000000000092681&sum=40000 [14:29:17]StoreToDocumentArchive [14:29:17]shift 556 fd 123054 [14:29:17]save to /storage/0556/doc_00123054 [14:29:17]save last doc name /storage/0556/doc_00123054 to /storage/kkm_last_doc_name [14:29:17]save OK [14:29:17]Clear old archive folders... [14:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:17]tlvbuf is B6EA24B0 [14:29:17]SAM_PROTO_ClearQueue [14:29:17]wFMCommunicate request_size=4 [14:29:17]MH_SAM_APDU [14:29:17]CAPDU: 80 09 00 00 [14:29:17]Write to MH i2c: E2 08 00 75 2B 80 09 00 00 00 00 00 00 12 [14:29:17]Write i2c OK [14:29:17]MH_I2C_Read... [14:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:17]Read from MH i2c: E2 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: E2 03 00 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: E2 03 00 75 2B 00 90 00 14 [14:29:17]RAPDU: 90 00 [14:29:17]wFMCommunicate OK [14:29:17]SAM_PROTO_ClearQueue done [14:29:17]KKMCreateOFDPacket [14:29:17]OFDProtocolAddRootSTLVToBuf [14:29:17]FM_MakeSignedData [14:29:17]FM_MakeSignedData [14:29:17]SAM_PROTO_SignData [14:29:17]wFMCommunicate request_size=4 [14:29:17]MH_SAM_APDU [14:29:17]CAPDU: 80 0D 01 02 [14:29:17]Write to MH i2c: E2 08 00 76 2B 80 0D 01 02 00 00 00 00 1A [14:29:17]Write i2c OK [14:29:17]MH_I2C_Read... [14:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:17]Read from MH i2c: E2 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: E2 03 00 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: E2 03 00 76 2B 00 90 00 15 [14:29:17]RAPDU: 90 00 [14:29:17]wFMCommunicate OK [14:29:17]wFMCommunicate request_size=255 [14:29:17]MH_SAM_APDU [14:29:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 5F 00 00 00 F4 03 04 00 C1 89 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AE E0 01 00 35 04 06 00 EB [14:29:17]Write to MH i2c: E2 02 01 77 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 5F 00 00 00 F4 03 04 00 C1 89 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AE E0 01 00 35 04 06 00 EB 00 00 A4 [14:29:17]Write i2c OK [14:29:17]MH_I2C_Read... [14:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:17]Read from MH i2c: E2 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: E2 03 00 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: E2 03 00 77 2B 00 90 00 16 [14:29:17]RAPDU: 90 00 [14:29:17]wFMCommunicate OK [14:29:17]wFMCommunicate request_size=10 [14:29:17]MH_SAM_APDU [14:29:17]CAPDU: 80 0D 02 02 05 64 1F 44 60 B4 [14:29:17]Write to MH i2c: E2 0D 00 78 2B 80 0D 02 02 05 00 64 1F 44 60 B4 00 00 02 [14:29:17]Write i2c OK [14:29:17]MH_I2C_Read... [14:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:17]Read from MH i2c: E2 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: E2 03 00 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: E2 03 00 78 2B 00 90 00 17 [14:29:17]RAPDU: 90 00 [14:29:17]wFMCommunicate OK [14:29:17]wFMCommunicate request_size=4 [14:29:17]MH_SAM_APDU [14:29:17]CAPDU: 80 0D 03 02 [14:29:17]Write to MH i2c: E2 08 00 79 2B 80 0D 03 02 00 00 00 00 1F [14:29:17]Write i2c OK [14:29:17]MH_I2C_Read... [14:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:18]Read from MH i2c: E2 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: E2 0B 00 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: E2 0B 00 79 2B 00 F8 17 10 5D 28 DD 61 C1 90 00 C3 [14:29:18]RAPDU: F8 17 10 5D 28 DD 61 C1 90 00 [14:29:18]wFMCommunicate OK [14:29:18]SAM_PROTO_SignData done [14:29:18]FM_MakeSignedData done [14:29:18]CreateOFDProtocolMessage [14:29:18]wFMCommunicate request_size=4 [14:29:18]MH_SAM_APDU [14:29:18]CAPDU: 80 11 00 00 [14:29:18]Write to MH i2c: E2 08 00 7A 2B 80 11 00 00 00 00 00 00 1F [14:29:18]Write i2c OK [14:29:18]MH_I2C_Read... [14:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:18]Read from MH i2c: E2 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: E2 17 00 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: E2 17 00 7A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 76 [14:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:29:18]wFMCommunicate OK [14:29:18]CreateOFDProtocolMessage done [14:29:18]OFDSenderStorePacket 123054 [14:29:18]StoreOFDPacket docnum=123054 [14:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1B 4E 07 01 55 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 5F 00 00 00 F4 03 04 00 C1 89 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AE E0 01 00 35 04 06 00 EB 64 1F 44 60 B4 F8 17 10 5D 28 DD 61 C1 [14:29:18]CheckFolder [14:29:18]dirname=/storage/ofd_packets [14:29:18]CheckFolder done [14:29:18]ProducePacketName [14:29:18]name=ofd_packets/00123054 [14:29:18]NVStorageSaveData ofd_packets/00123054 [14:29:18]File name is /storage/ofd_packets/00123054 [14:29:18]Write 301 bytes [14:29:18]NVStorageSaveData done [14:29:18]OFDSenderStorePacket done [14:29:18]KKMCreateOFDPacket done [14:29:18]NVStorageSaveData kkm_last_timestamp [14:29:18]File name is /storage/kkm_last_timestamp [14:29:18]Write 4 bytes [14:29:18]NVStorageSaveData done [14:29:18]ExternCall_PrintAddStr [14:29:18]wPrintStart [14:29:18]Write to MH i2c: 01 00 00 7B 2B A6 [14:29:18]OFD Sender: Processing packet 123054 [packets to send 7, broken 6] [14:29:18]ProducePacketName [14:29:18]name=ofd_packets/00123054 [14:29:18]OFD Sender: To server: pG, [14:29:18]CommunicateWithHost lk.salyk.kg:30040 [14:29:18]ConnectInit lk.salyk.kg [14:29:18]Write i2c OK [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: 01 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: 01 07 00 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: 01 07 00 7B 2B 00 00 00 00 00 FF 0F BB [14:29:18]RasterBufferAndPrint [14:29:18]line Счет N : (1)717849 [14:29:18]line ИНН: 02508201610067 [14:29:18]line Контрольно-Кассовый Чек [14:29:18]line ПРОДАЖА [14:29:18]line ТРК (МРК, ГНК) : 22 [14:29:18]line Товар: 2710124130 [14:29:18]line Аи-92-К-4 [14:29:18]line 5.940 * 67.40 [14:29:18]line = 400.36 [14:29:18]line НДС 12% НСП 1% [14:29:18]line > о реализуемом товаре [14:29:18]line ОКРУГЛЕНИЕ: -0.36 [14:29:18]line ИТОГО: 400.00 [14:29:18]line Внесено: 400.00 [14:29:18]line СДАЧА: 0.00 [14:29:18]line НСП 1% : 3.54 [14:29:18]line НДС 12% : 42.52 [14:29:18]line Наличными: 400.00 [14:29:18]line Безнал.: 0.00 [14:29:18]line Место: АЗС № 64 "Партнер Нефть" [14:29:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:29:18]line СНО: Общий режим [14:29:18]line Чек 95 25.11.2024 14:29 [14:29:18]line Смена: 556 ФФД: 1.0 [14:29:18]line ЗНМ: 0300000033 [14:29:18]line РНМ: 0000000000092681 [14:29:18]line Версия ККМ: 001 [14:29:18]line ФМ: 0000000000874881 [14:29:18]line ФД: 123054 [14:29:18]line ФПД: 258815253831860 [14:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T142921&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123054&fm=258815253831860&tin=02508201610067®Number=0000000000092681&sum=40000 [14:29:18]Connected sock=11 [14:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1B 4E 07 01 55 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 written 0, free lines is 4095 [14:29:18]37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 5F 00 00 00 F4 03 04 00 C1 89 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AE E0 01 00 35 04 06 00 EB 64 1F 44 60 B4 F8 17 10 5D 28 DD 61 C1 [14:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 93 ED 47 00 7A 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 34 38 38 31 10 04 04 00 AE E0 01 00 F4 03 04 00 87 35 44 67 B6 04 01 00 00 B0 6F A9 D4 EC E2 04 C3 [14:29:18]CommunicateWithHost err = 0 [14:29:18]CheckOFDResponse [14:29:18]1017 (14) - 77093643461234 [14:29:18]1041 (16) - 0000000000874881 [14:29:18]1040 (4) - 123054 [14:29:18]1012 (4) - 25.11.2024 08:29 [14:29:18]1206 (1) - 0 [14:29:18]OFD Sender: Remove packet 123054 [14:29:18]ProducePacketName [14:29:18]name=ofd_packets/00123054 [14:29:18]NVStorageDeleteData [14:29:18]Write to MH i2c: 01 00 00 A6 2B D1 [14:29:18]Write i2c OK [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: 01 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: 01 07 00 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: 01 07 00 A6 2B 00 00 00 00 00 4E 0C 32 [14:29:18]RasterBufferAndPrint [14:29:18]line [14:29:18]line [14:29:18]line [14:29:18]line [14:29:18]line [14:29:18]written 0, free lines is 3152 [14:29:18]MH_Cut [14:29:18]Write to MH i2c: D1 01 00 AD 2B 01 AA [14:29:18]Write i2c OK [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: D1 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: D1 01 00 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: D1 01 00 AD 2B 00 A9 [14:29:18]Write to MH i2c: 01 00 00 AE 2B D9 [14:29:18]Write i2c OK [14:29:18]MH_I2C_Read... [14:29:19]OFD Sender: No OFD packet to send [14:29:20]*** Cut start [14:29:20]*** Partial cut [14:29:20]*** CUTSNS_PIN = 1 [14:29:20]*** CUTSNS_PIN = 0 [14:29:20]*** Brake cut motor [14:29:20]Read from MH i2c: 01 [14:29:20]MH_I2C_Read... [14:29:20]*** Stop cut motor [14:29:20]*** Cut end [14:29:20]Read from MH i2c: 01 07 00 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: 01 07 00 AE 2B 00 00 00 00 00 FF 0F EE [14:29:20]process_action close_receipt done [14:29:20]requested_data is exist [14:29:20]produce_requested_data [14:29:20]requested_item fm.sn is exist - process it [14:29:20]wFMCommunicate request_size=4 [14:29:20]MH_SAM_APDU [14:29:20]CAPDU: 80 11 00 00 [14:29:20]Write to MH i2c: E2 08 00 AF 2B 80 11 00 00 00 00 00 00 54 [14:29:20]Write i2c OK [14:29:20]MH_I2C_Read... [14:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:20]Read from MH i2c: E2 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 17 00 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 17 00 AF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AB [14:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:29:20]wFMCommunicate OK [14:29:20]requested_item fd.num is exist - process it [14:29:20]SAM_PROTO_GetFieldsCounters [14:29:20]wFMCommunicate request_size=4 [14:29:20]MH_SAM_APDU [14:29:20]CAPDU: 80 13 00 00 [14:29:20]Write to MH i2c: E2 08 00 B0 2B 80 13 00 00 00 00 00 00 57 [14:29:20]Write i2c OK [14:29:20]MH_I2C_Read... [14:29:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:21]Read from MH i2c: E2 [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: E2 62 00 [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: E2 62 00 B0 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AE E0 01 00 0E 04 04 00 2C 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 57 [14: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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AE E0 01 00 0E 04 04 00 2C 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 [14:29:21]wFMCommunicate OK [14:29:21]SAM_PROTO_GetFieldsCounters done [14:29:21]requested_item shift.num is exist - process it [14:29:21]requested_item shift.opened is exist - process it [14:29:21]req_shift_opened [14:29:21]FM_GetShiftState [14:29:21]SAM_PROTO_GetShiftState [14:29:21]wFMCommunicate request_size=4 [14:29:21]MH_SAM_APDU [14:29:21]CAPDU: 80 13 01 00 [14:29:21]Write to MH i2c: E2 08 00 B1 2B 80 13 01 00 00 00 00 00 59 [14:29:21]Write i2c OK [14:29:21]MH_I2C_Read... [14:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:21]Read from MH i2c: E2 [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: E2 0E 00 [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: E2 0E 00 B1 2B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D8 [14:29:21]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:29:21]wFMCommunicate OK [14:29:21]SAM_PROTO_GetShiftState done [14:29:21]FM_GetShiftState done [14:29:21]req_shift_opened done [14:29:21]requested_item shift.open_date is exist - process it [14:29:21]req_shift_open_date [14:29:21]req_shift_open_date done [14:29:21]produce_requested_data done [14:29:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123054,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:29:21]process_action_free close_receipt [14:29:21]json_value_free [14:29:21]json_value_free done [14:29:21]process_json_proto returns [14:29:21]Send response to host [14:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123054,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:29:21]free response buf [14:29:21]execute_script done [14:29:21]execute_script returns [14:29:21]free content buf [14:29:21]Sock 9.Close socket [14:29:21]Sock 9.Thread stoped [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31: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:33]accept exits with 7 [14:32:33]New connection [14:32:33]New thread 3066580324 created [14:32:33]Thread 3066723684 joined [14:32:33]Waiting for new connection... [14:32:33] Sock 7.Parse request [14:32:33]Sock 7.Check first char [14:32:33]Sock 7.First char is OK [14:32:33]request: POST /json_proto HTTP/1.0 [14:32:33]Method: POST [14:32:33]URL: /json_proto [14:32:33]Method is POST - this is cgi request [14:32:33]url: /json_proto [14:32:33]query_string will be loaded in cgi processing [14:32:33]execute_cgi json_proto POST (null) [14:32:33]execute_cgi path=json_proto method=POST [14:32:33]POST find Content-Length [14:32:33]Host: 172.17.37.4:8080 [14:32:33]Content-Length: 686 [14:32:33]Content-Type: application/json [14:32:33] [14:32:33]POST finish read [14:32:33]Found Content-Length = 686 [14:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:33]execute_script... [14:32:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:33]POST & json_proto [14:32:33]process_json_proto [14:32:33]json parsed OK: [14:32:33]protocol is kg_v1.0 [14:32:33]action value=close_receipt [14:32:33]process_action close_receipt [14:32:33]cmd_close_receipt [14:32:33]MH_GetDate [14:32:33]Write to MH i2c: F0 00 00 B2 2B CC [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: F0 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: F0 09 00 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: F0 09 00 B2 2B 00 87 8A 44 67 B8 5A 43 67 4D [14:32:33]GetLastDocTimeStamp 1732544961 [14:32:33]current date 1732545159 [14:32:33]FM_GetShiftState [14:32:33]SAM_PROTO_GetShiftState [14:32:33]wFMCommunicate request_size=4 [14:32:33]MH_SAM_APDU [14:32:33]CAPDU: 80 13 01 00 [14:32:33]Write to MH i2c: E2 08 00 B3 2B 80 13 01 00 00 00 00 00 5B [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:34]Read from MH i2c: E2 [14:32:34]MH_I2C_Read... [14:32:34]Read from MH i2c: E2 0E 00 [14:32:34]MH_I2C_Read... [14:32:34]Read from MH i2c: E2 0E 00 B3 2B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 DA [14:32:34]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:32:34]wFMCommunicate OK [14:32:34]SAM_PROTO_GetShiftState done [14:32:34]FM_GetShiftState done [14:32:34]opened in 1732493066 [14:32:34]opened+sec_in_day 1732579466 [14:32:34]quantity*price = 100066 [14:32:34]sum+1 = 100067 [14:32:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 96 25.11.2024 14:32 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123055 ФПД: 186191478176654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T143239&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123055&fm=186191478176654&tin=02508201610067®Number=0000000000092681&sum=100000 [14:32:35]StoreToDocumentArchive [14:32:35]shift 556 fd 123055 [14:32:35]save to /storage/0556/doc_00123055 [14:32:35]save last doc name /storage/0556/doc_00123055 to /storage/kkm_last_doc_name [14:32:35]save OK [14:32:35]Clear old archive folders... [14:32:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:32:35]tlvbuf is 02068850 [14:32:35]SAM_PROTO_ClearQueue [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 09 00 00 [14:32:35]Write to MH i2c: E2 08 00 C0 2B 80 09 00 00 00 00 00 00 5D [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 C0 2B 00 90 00 5F [14:32:35]RAPDU: 90 00 [14:32:35]wFMCommunicate OK [14:32:35]SAM_PROTO_ClearQueue done [14:32:35]KKMCreateOFDPacket [14:32:35]OFDProtocolAddRootSTLVToBuf [14:32:35]FM_MakeSignedData [14:32:35]FM_MakeSignedData [14:32:35]SAM_PROTO_SignData [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 0D 01 02 [14:32:35]Write to MH i2c: E2 08 00 C1 2B 80 0D 01 02 00 00 00 00 65 [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 C1 2B 00 90 00 60 [14:32:35]RAPDU: 90 00 [14:32:35]wFMCommunicate OK [14:32:35]wFMCommunicate request_size=255 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 87 8A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E0 01 00 35 04 06 00 [14:32:35]Write to MH i2c: E2 02 01 C2 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 87 8A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E0 01 00 35 04 06 00 00 00 26 [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 C2 2B 00 90 00 61 [14:32:35]RAPDU: 90 00 [14:32:35]wFMCommunicate OK [14:32:35]wFMCommunicate request_size=11 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 0D 02 02 06 A9 57 14 EA BB 8E [14:32:35]Write to MH i2c: E2 0E 00 C3 2B 80 0D 02 02 06 00 A9 57 14 EA BB 8E 00 00 BB [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 C3 2B 00 90 00 62 [14:32:35]RAPDU: 90 00 [14:32:35]wFMCommunicate OK [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 0D 03 02 [14:32:35]Write to MH i2c: E2 08 00 C4 2B 80 0D 03 02 00 00 00 00 6A [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 0B 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 0B 00 C4 2B 00 BE A0 9E 80 1C BE 7D 5B 90 00 99 [14:32:35]RAPDU: BE A0 9E 80 1C BE 7D 5B 90 00 [14:32:35]wFMCommunicate OK [14:32:35]SAM_PROTO_SignData done [14:32:35]FM_MakeSignedData done [14:32:35]CreateOFDProtocolMessage [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 11 00 00 [14:32:35]Write to MH i2c: E2 08 00 C5 2B 80 11 00 00 00 00 00 00 6A [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 17 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 17 00 C5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C1 [14:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:32:35]wFMCommunicate OK [14:32:35]CreateOFDProtocolMessage done [14:32:35]OFDSenderStorePacket 123055 [14:32:35]StoreOFDPacket docnum=123055 [14:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 72 37 08 01 5E 7D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 87 8A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E0 01 00 35 04 06 00 A9 57 14 EA BB 8E BE A0 9E 80 1C BE 7D 5B [14:32:35]CheckFolder [14:32:35]dirname=/storage/ofd_packets [14:32:35]CheckFolder done [14:32:35]ProducePacketName [14:32:35]name=ofd_packets/00123055 [14:32:35]NVStorageSaveData ofd_packets/00123055 [14:32:35]File name is /storage/ofd_packets/00123055 [14:32:35]Write 302 bytes [14:32:35]NVStorageSaveData done [14:32:35]OFDSenderStorePacket done [14:32:35]KKMCreateOFDPacket done [14:32:35]NVStorageSaveData kkm_last_timestamp [14:32:35]File name is /storage/kkm_last_timestamp [14:32:35]Write 4 bytes [14:32:35]NVStorageSaveData done [14:32:35]ExternCall_PrintAddStr [14:32:35]wPrintStart [14:32:35]Write to MH i2c: 01 00 00 C6 2B F1 [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: 01 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: 01 07 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: 01 07 00 C6 2B 00 00 00 00 00 FF 0F 06 [14:32:35]RasterBufferAndPrint [14:32:35]line Счет N : (1)717850 [14:32:35]line ИНН: 02508201610067 [14:32:35]line Контрольно-Кассовый Чек [14:32:35]line ПРОДАЖА [14:32:35]line ТРК (МРК, ГНК) : 5 [14:32:35]line Товар: 2710194210 [14:32:35]line ДТ(л)-К-5 [14:32:35]line 13.360 * 74.90 [14:32:35]line = 1000.66 [14:32:35]line НДС 12% НСП 1% [14:32:35]line > о реализуемом товаре [14:32:35]line ОКРУГЛЕНИЕ: -0.66 [14:32:35]line ИТОГО: 1000.00 [14:32:35]line Внесено: 1000.00 [14:32:35]line СДАЧА: 0.00 [14:32:35]line НСП 1% : 8.85 [14:32:35]line НДС 12% : 106.26 [14:32:35]line Наличными: 1000.00 [14:32:35]line Безнал.: 0.00 [14:32:35]line Место: АЗС № 64 "Партнер Нефть" [14:32:35]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:32:35]line СНО: Общий режим [14:32:35]line Чек 96 25.11.2024 14:32 [14:32:35]line Смена: 556 ФФД: 1.0 [14:32:35]line ЗНМ: 0300000033 [14:32:35]line РНМ: 0000000000092681 [14:32:35]line Версия ККМ: 001 [14:32:35]line ФМ: 0000000000874881 [14:32:35]line ФД: 123055 [14:32:35]line ФПД: 186191478176654 [14:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T143239&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123055&fm=186191478176654&tin=02508201610067®Number=0000000000092681&sum=100000 [14:32:36]OFD Sender: Processing packet 123055 [packets to send 7, broken 6] [14:32:36]ProducePacketName [14:32:36]name=ofd_packets/00123055 [14:32:36]OFD Sender: To server: pG, [14:32:36]CommunicateWithHost lk.salyk.kg:30040 [14:32:36]ConnectInit lk.salyk.kg [14:32:36]written 0, free lines is 4095 [14:32:36]Connected sock=10 [14:32:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 72 37 08 01 5E 7D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 87 8A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E0 01 00 35 04 06 00 A9 57 14 EA BB 8E BE A0 9E 80 1C BE 7D 5B [14:32:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 E4 48 47 00 4C F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E0 01 00 F4 03 04 00 4D 36 44 67 B6 04 01 00 00 0E 4C 32 18 47 86 7C 43 [14:32:36]CommunicateWithHost err = 0 [14:32:36]CheckOFDResponse [14:32:36]1017 (14) - 77093643461234 [14:32:36]1041 (16) - 0000000000874881 [14:32:36]1040 (4) - 123055 [14:32:36]1012 (4) - 25.11.2024 08:33 [14:32:36]1206 (1) - 0 [14:32:36]OFD Sender: Remove packet 123055 [14:32:36]ProducePacketName [14:32:36]name=ofd_packets/00123055 [14:32:36]NVStorageDeleteData [14:32:36]Write to MH i2c: 01 00 00 F1 2B 1C [14:32:36]Write i2c OK [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: 01 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: 01 07 00 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: 01 07 00 F1 2B 00 00 00 00 00 48 0C 77 [14:32:36]RasterBufferAndPrint [14:32:36]line [14:32:36]line [14:32:36]line [14:32:36]line [14:32:36]line [14:32:36]written 0, free lines is 3149 [14:32:36]MH_Cut [14:32:36]Write to MH i2c: D1 01 00 F8 2B 01 F5 [14:32:36]Write i2c OK [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: D1 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: D1 01 00 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: D1 01 00 F8 2B 00 F4 [14:32:36]Write to MH i2c: 01 00 00 F9 2B 24 [14:32:36]Write i2c OK [14:32:36]MH_I2C_Read... [14:32:36]OFD Sender: No OFD packet to send [14:32:37]*** Cut start [14:32:37]*** Partial cut [14:32:37]*** CUTSNS_PIN = 1 [14:32:37]*** CUTSNS_PIN = 0 [14:32:38]*** Brake cut motor [14:32:38]Read from MH i2c: 01 [14:32:38]MH_I2C_Read... [14:32:38]*** Stop cut motor [14:32:38]*** Cut end [14:32:38]Read from MH i2c: 01 07 00 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: 01 07 00 F9 2B 00 00 00 00 00 FF 0F 39 [14:32:38]process_action close_receipt done [14:32:38]requested_data is exist [14:32:38]produce_requested_data [14:32:38]requested_item fm.sn is exist - process it [14:32:38]wFMCommunicate request_size=4 [14:32:38]MH_SAM_APDU [14:32:38]CAPDU: 80 11 00 00 [14:32:38]Write to MH i2c: E2 08 00 FA 2B 80 11 00 00 00 00 00 00 9F [14:32:38]Write i2c OK [14:32:38]MH_I2C_Read... [14:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:38]Read from MH i2c: E2 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 17 00 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 17 00 FA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F6 [14:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:32:38]wFMCommunicate OK [14:32:38]requested_item fd.num is exist - process it [14:32:38]SAM_PROTO_GetFieldsCounters [14:32:38]wFMCommunicate request_size=4 [14:32:38]MH_SAM_APDU [14:32:38]CAPDU: 80 13 00 00 [14:32:38]Write to MH i2c: E2 08 00 FB 2B 80 13 00 00 00 00 00 00 A2 [14:32:38]Write i2c OK [14:32:38]MH_I2C_Read... [14:32:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:38]Read from MH i2c: E2 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 62 00 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 62 00 FB 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AF E0 01 00 0E 04 04 00 2C 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 A6 [14:32:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AF E0 01 00 0E 04 04 00 2C 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 [14:32:38]wFMCommunicate OK [14:32:38]SAM_PROTO_GetFieldsCounters done [14:32:38]requested_item shift.num is exist - process it [14:32:38]requested_item shift.opened is exist - process it [14:32:38]req_shift_opened [14:32:38]FM_GetShiftState [14:32:38]SAM_PROTO_GetShiftState [14:32:38]wFMCommunicate request_size=4 [14:32:38]MH_SAM_APDU [14:32:38]CAPDU: 80 13 01 00 [14:32:38]Write to MH i2c: E2 08 00 FC 2B 80 13 01 00 00 00 00 00 A4 [14:32:38]Write i2c OK [14:32:38]MH_I2C_Read... [14:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:38]Read from MH i2c: E2 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 0E 00 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 0E 00 FC 2B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 23 [14:32:38]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:32:38]wFMCommunicate OK [14:32:38]SAM_PROTO_GetShiftState done [14:32:38]FM_GetShiftState done [14:32:38]req_shift_opened done [14:32:38]requested_item shift.open_date is exist - process it [14:32:38]req_shift_open_date [14:32:38]req_shift_open_date done [14:32:38]produce_requested_data done [14:32:38]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123055,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:32:38]process_action_free close_receipt [14:32:38]json_value_free [14:32:38]json_value_free done [14:32:38]process_json_proto returns [14:32:38]Send response to host [14:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123055,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:32:38]free response buf [14:32:38]execute_script done [14:32:38]execute_script returns [14:32:38]free content buf [14:32:38]Sock 7.Close socket [14:32:38]Sock 7.Thread stoped [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:32:58]accept exits with 9 [14:32:58]New connection [14:32:58]New thread 3066723684 created [14:32:58]Thread 3066580324 joined [14:32:58]Waiting for new connection... [14:32:58] Sock 9.Parse request [14:32:58]Sock 9.Check first char [14:32:58]Sock 9.First char is OK [14:32:58]request: POST /json_proto HTTP/1.0 [14:32:58]Method: POST [14:32:58]URL: /json_proto [14:32:58]Method is POST - this is cgi request [14:32:58]url: /json_proto [14:32:58]query_string will be loaded in cgi processing [14:32:58]execute_cgi json_proto POST (null) [14:32:58]execute_cgi path=json_proto method=POST [14:32:58]POST find Content-Length [14:32:58]Host: 172.17.37.4:8080 [14:32:58]Content-Length: 804 [14:32:58]Content-Type: application/json [14:32:58] [14:32:58]POST finish read [14:32:58]Found Content-Length = 804 [14:32:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 4.010, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:58]execute_script... [14:32:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 4.010, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:58]POST & json_proto [14:32:58]process_json_proto [14:32:58]json parsed OK: [14:32:58]protocol is kg_v1.0 [14:32:58]action value=close_receipt [14:32:58]process_action close_receipt [14:32:58]cmd_close_receipt [14:32:58]MH_GetDate [14:32:58]Write to MH i2c: F0 00 00 FD 2B 17 [14:32:58]Write i2c OK [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: F0 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: F0 09 00 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: F0 09 00 FD 2B 00 9F 8A 44 67 B8 5A 43 67 B0 [14:32:58]GetLastDocTimeStamp 1732545159 [14:32:58]current date 1732545183 [14:32:58]FM_GetShiftState [14:32:58]SAM_PROTO_GetShiftState [14:32:58]wFMCommunicate request_size=4 [14:32:58]MH_SAM_APDU [14:32:58]CAPDU: 80 13 01 00 [14:32:58]Write to MH i2c: E2 08 00 FE 2B 80 13 01 00 00 00 00 00 A6 [14:32:58]Write i2c OK [14:32:58]MH_I2C_Read... [14:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:58]Read from MH i2c: E2 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: E2 0E 00 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: E2 0E 00 FE 2B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 25 [14:32:58]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:32:58]wFMCommunicate OK [14:32:58]SAM_PROTO_GetShiftState done [14:32:58]FM_GetShiftState done [14:32:58]opened in 1732493066 [14:32:58]opened+sec_in_day 1732579466 [14:32:58]quantity*price = 30034 [14:32:58]sum+1 = 30036 [14:32:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.35 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.35 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 97 25.11.2024 14:33 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123056 ФПД: 139550026588953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T143304&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123056&fm=139550026588953&tin=02508201610067®Number=0000000000092681&sum=30035 [14:32:59]StoreToDocumentArchive [14:32:59]shift 556 fd 123056 [14:32:59]save to /storage/0556/doc_00123056 [14:32:59]save last doc name /storage/0556/doc_00123056 to /storage/kkm_last_doc_name [14:32:59]save OK [14:32:59]Clear old archive folders... [14:32:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:32:59]tlvbuf is 01F4E170 [14:32:59]SAM_PROTO_ClearQueue [14:32:59]wFMCommunicate request_size=4 [14:32:59]MH_SAM_APDU [14:32:59]CAPDU: 80 09 00 00 [14:32:59]Write to MH i2c: E2 08 00 0B 2C 80 09 00 00 00 00 00 00 A9 [14:32:59]Write i2c OK [14:32:59]MH_I2C_Read... [14:32:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:59]Read from MH i2c: E2 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 03 00 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 03 00 0B 2C 00 90 00 AB [14:32:59]RAPDU: 90 00 [14:32:59]wFMCommunicate OK [14:32:59]SAM_PROTO_ClearQueue done [14:32:59]KKMCreateOFDPacket [14:32:59]OFDProtocolAddRootSTLVToBuf [14:32:59]FM_MakeSignedData [14:32:59]FM_MakeSignedData [14:32:59]SAM_PROTO_SignData [14:32:59]wFMCommunicate request_size=4 [14:32:59]MH_SAM_APDU [14:32:59]CAPDU: 80 0D 01 02 [14:32:59]Write to MH i2c: E2 08 00 0C 2C 80 0D 01 02 00 00 00 00 B1 [14:32:59]Write i2c OK [14:32:59]MH_I2C_Read... [14:32:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:59]Read from MH i2c: E2 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 03 00 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 03 00 0C 2C 00 90 00 AC [14:32:59]RAPDU: 90 00 [14:32:59]wFMCommunicate OK [14:32:59]wFMCommunicate request_size=255 [14:32:59]MH_SAM_APDU [14:32:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A0 8A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E0 01 00 35 04 06 00 [14:32:59]Write to MH i2c: E2 02 01 0D 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A0 8A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E0 01 00 35 04 06 00 00 00 ED [14:32:59]Write i2c OK [14:32:59]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 [14:33:00]MH_I2C_Read... [14:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:00]Read from MH i2c: E2 03 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 03 00 0D 2C 00 90 00 AD [14:33:00]RAPDU: 90 00 [14:33:00]wFMCommunicate OK [14:33:00]wFMCommunicate request_size=11 [14:33:00]MH_SAM_APDU [14:33:00]CAPDU: 80 0D 02 02 06 7E EB 85 C3 63 19 [14:33:00]Write to MH i2c: E2 0E 00 0E 2C 80 0D 02 02 06 00 7E EB 85 C3 63 19 00 00 ED [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:00]Read from MH i2c: E2 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 03 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 03 00 0E 2C 00 90 00 AE [14:33:00]RAPDU: 90 00 [14:33:00]wFMCommunicate OK [14:33:00]wFMCommunicate request_size=4 [14:33:00]MH_SAM_APDU [14:33:00]CAPDU: 80 0D 03 02 [14:33:00]Write to MH i2c: E2 08 00 0F 2C 80 0D 03 02 00 00 00 00 B6 [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:00]Read from MH i2c: E2 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 0B 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 0B 00 0F 2C 00 91 6A 3C 3C 04 AD 38 61 90 00 74 [14:33:00]RAPDU: 91 6A 3C 3C 04 AD 38 61 90 00 [14:33:00]wFMCommunicate OK [14:33:00]SAM_PROTO_SignData done [14:33:00]FM_MakeSignedData done [14:33:00]CreateOFDProtocolMessage [14:33:00]wFMCommunicate request_size=4 [14:33:00]MH_SAM_APDU [14:33:00]CAPDU: 80 11 00 00 [14:33:00]Write to MH i2c: E2 08 00 10 2C 80 11 00 00 00 00 00 00 B6 [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:00]Read from MH i2c: E2 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 17 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 17 00 10 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0D [14:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:33:00]wFMCommunicate OK [14:33:00]CreateOFDProtocolMessage done [14:33:00]OFDSenderStorePacket 123056 [14:33:00]StoreOFDPacket docnum=123056 [14:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 26 7D 08 01 2A 04 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A0 8A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E0 01 00 35 04 06 00 7E EB 85 C3 63 19 91 6A 3C 3C 04 AD 38 61 [14:33:00]CheckFolder [14:33:00]dirname=/storage/ofd_packets [14:33:00]CheckFolder done [14:33:00]ProducePacketName [14:33:00]name=ofd_packets/00123056 [14:33:00]NVStorageSaveData ofd_packets/00123056 [14:33:00]File name is /storage/ofd_packets/00123056 [14:33:00]Write 302 bytes [14:33:00]NVStorageSaveData done [14:33:00]OFDSenderStorePacket done [14:33:00]KKMCreateOFDPacket done [14:33:00]NVStorageSaveData kkm_last_timestamp [14:33:00]File name is /storage/kkm_last_timestamp [14:33:00]Write 4 bytes [14:33:00]NVStorageSaveData done [14:33:00]ExternCall_PrintAddStr [14:33:00]wPrintStart [14:33:00]Write to MH i2c: 01 00 00 11 2C 3D [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: 01 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: 01 07 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: 01 07 00 11 2C 00 00 00 00 00 FF 0F 52 [14:33:00]RasterBufferAndPrint [14:33:00]line Счет N : (1)717851 [14:33:00]line ИНН: 02508201610067 [14:33:00]line Контрольно-Кассовый Чек [14:33:00]line ПРОДАЖА [14:33:00]line ТРК (МРК, ГНК) : 6 [14:33:00]line Товар: 2710194210 [14:33:00]line ДТ(л)-К-5 [14:33:00]line 4.010 * 74.90 [14:33:00]line = 300.35 [14:33:00]line НДС 12% НСП 1% [14:33:00]line > о реализуемом товаре [14:33:00]line ИТОГО: 300.35 [14:33:00]line НСП 1% : 2.66 [14:33:00]line НДС 12% : 31.90 [14:33:00]line Наличными: 0.00 [14:33:00]line Безнал.: 300.35 [14:33:00]line Место: АЗС № 64 "Партнер Нефть" [14:33:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:33:00]line СНО: Общий режим [14:33:00]line Чек 97 25.11.2024 14:33 [14:33:00]line Смена: 556 ФФД: 1.0 [14:33:00]line ЗНМ: 0300000033 [14:33:00]line РНМ: 0000000000092681 [14:33:00]line Версия ККМ: 001 [14:33:00]line Платежная система: O! деньги [14:33:00]line ФМ: 0000000000874881 [14:33:00]line ФД: 123056 [14:33:00]line ФПД: 139550026588953 [14:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T143304&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123056&fm=139550026588953&tin=02508201610067®Number=0000000000092681&sum=30035 [14:33:00]written 0, free lines is 4095 [14:33:00]OFD Sender: Processing packet 123056 [packets to send 7, broken 6] [14:33:00]ProducePacketName [14:33:00]name=ofd_packets/00123056 [14:33:00]OFD Sender: To server: pG, [14:33:00]CommunicateWithHost lk.salyk.kg:30040 [14:33:00]ConnectInit lk.salyk.kg [14:33:00]Connected sock=10 [14:33:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 26 7D 08 01 2A 04 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A0 8A 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E0 01 00 35 04 06 00 7E EB 85 C3 63 19 91 6A 3C 3C 04 AD 38 61 [14:33:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D5 67 47 00 F5 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E0 01 00 F4 03 04 00 65 36 44 67 B6 04 01 00 00 A6 5E 75 84 0F 61 42 3B [14:33:00]CommunicateWithHost err = 0 [14:33:00]CheckOFDResponse [14:33:00]1017 (14) - 77093643461234 [14:33:00]1041 (16) - 0000000000874881 [14:33:00]1040 (4) - 123056 [14:33:00]1012 (4) - 25.11.2024 08:33 [14:33:00]1206 (1) - 0 [14:33:00]OFD Sender: Remove packet 123056 [14:33:00]ProducePacketName [14:33:00]name=ofd_packets/00123056 [14:33:00]NVStorageDeleteData [14:33:01]Write to MH i2c: 01 00 00 3B 2C 67 [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: 01 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: 01 07 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: 01 07 00 3B 2C 00 00 00 00 00 6F 0C E9 [14:33:01]RasterBufferAndPrint [14:33:01]line [14:33:01]line [14:33:01]line [14:33:01]line [14:33:01]line [14:33:01]written 0, free lines is 3187 [14:33:01]MH_Cut [14:33:01]Write to MH i2c: D1 01 00 42 2C 01 40 [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: D1 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: D1 01 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: D1 01 00 42 2C 00 3F [14:33:01]Write to MH i2c: 01 00 00 43 2C 6F [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]OFD Sender: No OFD packet to send [14:33:02]*** Cut start [14:33:02]*** Partial cut [14:33:02]*** CUTSNS_PIN = 1 [14:33:02]*** CUTSNS_PIN = 0 [14:33:02]*** Brake cut motor [14:33:03]Read from MH i2c: 01 [14:33:03]MH_I2C_Read... [14:33:03]*** Stop cut motor [14:33:03]*** Cut end [14:33:03]Read from MH i2c: 01 07 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: 01 07 00 43 2C 00 00 00 00 00 FF 0F 84 [14:33:03]process_action close_receipt done [14:33:03]requested_data is exist [14:33:03]produce_requested_data [14:33:03]requested_item fm.sn is exist - process it [14:33:03]wFMCommunicate request_size=4 [14:33:03]MH_SAM_APDU [14:33:03]CAPDU: 80 11 00 00 [14:33:03]Write to MH i2c: E2 08 00 44 2C 80 11 00 00 00 00 00 00 EA [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:03]Read from MH i2c: E2 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 17 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 17 00 44 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 41 [14:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:33:03]wFMCommunicate OK [14:33:03]requested_item fd.num is exist - process it [14:33:03]SAM_PROTO_GetFieldsCounters [14:33:03]wFMCommunicate request_size=4 [14:33:03]MH_SAM_APDU [14:33:03]CAPDU: 80 13 00 00 [14:33:03]Write to MH i2c: E2 08 00 45 2C 80 13 00 00 00 00 00 00 ED [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:03]Read from MH i2c: E2 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 62 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 62 00 45 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B0 E0 01 00 0E 04 04 00 2C 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 F5 [14:33:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B0 E0 01 00 0E 04 04 00 2C 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 [14:33:03]wFMCommunicate OK [14:33:03]SAM_PROTO_GetFieldsCounters done [14:33:03]requested_item shift.num is exist - process it [14:33:03]requested_item shift.opened is exist - process it [14:33:03]req_shift_opened [14:33:03]FM_GetShiftState [14:33:03]SAM_PROTO_GetShiftState [14:33:03]wFMCommunicate request_size=4 [14:33:03]MH_SAM_APDU [14:33:03]CAPDU: 80 13 01 00 [14:33:03]Write to MH i2c: E2 08 00 46 2C 80 13 01 00 00 00 00 00 EF [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 [14:33:03]MH_I2C_Read... [14:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:03]Read from MH i2c: E2 0E 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 0E 00 46 2C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 6E [14:33:03]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:33:03]wFMCommunicate OK [14:33:03]SAM_PROTO_GetShiftState done [14:33:03]FM_GetShiftState done [14:33:03]req_shift_opened done [14:33:03]requested_item shift.open_date is exist - process it [14:33:03]req_shift_open_date [14:33:03]req_shift_open_date done [14:33:03]produce_requested_data done [14:33:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123056,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:33:03]process_action_free close_receipt [14:33:03]json_value_free [14:33:03]json_value_free done [14:33:03]process_json_proto returns [14:33:03]Send response to host [14:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123056,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:33:03]free response buf [14:33:03]execute_script done [14:33:03]execute_script returns [14:33:03]free content buf [14:33:03]Sock 9.Close socket [14:33:03]Sock 9.Thread stoped [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:10]accept exits with 7 [14:38:10]New connection [14:38:10]New thread 3066580324 created [14:38:10]Thread 3066723684 joined [14:38:10]Waiting for new connection... [14:38:10] Sock 7.Parse request [14:38:10]Sock 7.Check first char [14:38:10]Sock 7.First char is OK [14:38:10]request: POST /json_proto HTTP/1.0 [14:38:10]Method: POST [14:38:10]URL: /json_proto [14:38:10]Method is POST - this is cgi request [14:38:10]url: /json_proto [14:38:10]query_string will be loaded in cgi processing [14:38:10]execute_cgi json_proto POST (null) [14:38:10]execute_cgi path=json_proto method=POST [14:38:10]POST find Content-Length [14:38:10]Host: 172.17.37.4:8080 [14:38:10]Content-Length: 682 [14:38:10]Content-Type: application/json [14:38:10] [14:38:10]POST finish read [14:38:10]Found Content-Length = 682 [14:38:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.970, "sum" : 1053.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1053.00, "total" : 1053.00, "payments": [ { "type": 0, "sum" : 1053.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:10]execute_script... [14:38: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)717852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.970, "sum" : 1053.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1053.00, "total" : 1053.00, "payments": [ { "type": 0, "sum" : 1053.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:10]POST & json_proto [14:38:10]process_json_proto [14:38:10]json parsed OK: [14:38:10]protocol is kg_v1.0 [14:38:10]action value=close_receipt [14:38:10]process_action close_receipt [14:38:10]cmd_close_receipt [14:38:10]MH_GetDate [14:38:10]Write to MH i2c: F0 00 00 47 2C 62 [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: F0 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: F0 09 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: F0 09 00 47 2C 00 D7 8B 44 67 B8 5A 43 67 34 [14:38:10]GetLastDocTimeStamp 1732545184 [14:38:10]current date 1732545495 [14:38:10]FM_GetShiftState [14:38:10]SAM_PROTO_GetShiftState [14:38:10]wFMCommunicate request_size=4 [14:38:10]MH_SAM_APDU [14:38:10]CAPDU: 80 13 01 00 [14:38:10]Write to MH i2c: E2 08 00 48 2C 80 13 01 00 00 00 00 00 F1 [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:10]Read from MH i2c: E2 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 0E 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 0E 00 48 2C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 70 [14:38:10]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:38:10]wFMCommunicate OK [14:38:10]SAM_PROTO_GetShiftState done [14:38:10]FM_GetShiftState done [14:38:10]opened in 1732493066 [14:38:10]opened+sec_in_day 1732579466 [14:38:10]quantity*price = 105333 [14:38:10]sum+1 = 105335 [14:38:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 1053.00 Внесено: 1053.00 СДАЧА: 0.00 НСП 1% : 9.32 НДС 12% : 111.86 Наличными: 1053.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 98 25.11.2024 14:38 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123057 ФПД: 216315074943297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T143815&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123057&fm=216315074943297&tin=02508201610067®Number=0000000000092681&sum=105300 [14:38:11]StoreToDocumentArchive [14:38:11]shift 556 fd 123057 [14:38:11]save to /storage/0556/doc_00123057 [14:38:11]save last doc name /storage/0556/doc_00123057 to /storage/kkm_last_doc_name [14:38:11]save OK [14:38:11]Clear old archive folders... [14:38:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:11]tlvbuf is 01F2FC80 [14:38:11]SAM_PROTO_ClearQueue [14:38:11]wFMCommunicate request_size=4 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 09 00 00 [14:38:11]Write to MH i2c: E2 08 00 55 2C 80 09 00 00 00 00 00 00 F3 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 55 2C 00 90 00 F5 [14:38:11]RAPDU: 90 00 [14:38:11]wFMCommunicate OK [14:38:11]SAM_PROTO_ClearQueue done [14:38:11]KKMCreateOFDPacket [14:38:11]OFDProtocolAddRootSTLVToBuf [14:38:11]FM_MakeSignedData [14:38:11]FM_MakeSignedData [14:38:11]SAM_PROTO_SignData [14:38:11]wFMCommunicate request_size=4 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 0D 01 02 [14:38:11]Write to MH i2c: E2 08 00 56 2C 80 0D 01 02 00 00 00 00 FB [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 56 2C 00 90 00 F6 [14:38:11]RAPDU: 90 00 [14:38:11]wFMCommunicate OK [14:38:11]wFMCommunicate request_size=255 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 92 36 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 76 9B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 9B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 2B 00 00 00 00 07 04 06 00 54 9B 01 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 D7 8B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E0 01 00 35 04 06 00 C4 [14:38:11]Write to MH i2c: E2 02 01 57 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 92 36 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 76 9B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 9B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 2B 00 00 00 00 07 04 06 00 54 9B 01 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 D7 8B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E0 01 00 35 04 06 00 C4 00 00 D0 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]OFD Sender: No OFD packet to send [14:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 57 2C 00 90 00 F7 [14:38:11]RAPDU: 90 00 [14:38:11]wFMCommunicate OK [14:38:11]wFMCommunicate request_size=10 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 0D 02 02 05 BC C7 33 99 41 [14:38:11]Write to MH i2c: E2 0D 00 58 2C 80 0D 02 02 05 00 BC C7 33 99 41 00 00 98 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 58 2C 00 90 00 F8 [14:38:11]RAPDU: 90 00 [14:38:11]wFMCommunicate OK [14:38:11]wFMCommunicate request_size=4 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 0D 03 02 [14:38:11]Write to MH i2c: E2 08 00 59 2C 80 0D 03 02 00 00 00 00 00 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 0B 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 0B 00 59 2C 00 7A 05 11 EB 20 6E 31 E6 90 00 21 [14:38:11]RAPDU: 7A 05 11 EB 20 6E 31 E6 90 00 [14:38:11]wFMCommunicate OK [14:38:11]SAM_PROTO_SignData done [14:38:11]FM_MakeSignedData done [14:38:11]CreateOFDProtocolMessage [14:38:11]wFMCommunicate request_size=4 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 11 00 00 [14:38:11]Write to MH i2c: E2 08 00 5A 2C 80 11 00 00 00 00 00 00 00 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 17 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 17 00 5A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 57 [14:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:38:11]wFMCommunicate OK [14:38:11]CreateOFDProtocolMessage done [14:38:11]OFDSenderStorePacket 123057 [14:38:11]StoreOFDPacket docnum=123057 [14:38:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6B D9 07 01 7D 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 92 36 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 76 9B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 9B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 2B 00 00 00 00 07 04 06 00 54 9B 01 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 D7 8B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E0 01 00 35 04 06 00 C4 BC C7 33 99 41 7A 05 11 EB 20 6E 31 E6 [14:38:11]CheckFolder [14:38:11]dirname=/storage/ofd_packets [14:38:11]CheckFolder done [14:38:11]ProducePacketName [14:38:11]name=ofd_packets/00123057 [14:38:11]NVStorageSaveData ofd_packets/00123057 [14:38:11]File name is /storage/ofd_packets/00123057 [14:38:11]Write 301 bytes [14:38:11]NVStorageSaveData done [14:38:11]OFDSenderStorePacket done [14:38:11]KKMCreateOFDPacket done [14:38:11]NVStorageSaveData kkm_last_timestamp [14:38:11]File name is /storage/kkm_last_timestamp [14:38:11]Write 4 bytes [14:38:11]NVStorageSaveData done [14:38:11]ExternCall_PrintAddStr [14:38:11]wPrintStart [14:38:11]Write to MH i2c: 01 00 00 5B 2C 87 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: 01 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: 01 07 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: 01 07 00 5B 2C 00 00 00 00 00 FF 0F 9C [14:38:11]RasterBufferAndPrint [14:38:11]line Счет N : (1)717852 [14:38:11]line ИНН: 02508201610067 [14:38:11]line Контрольно-Кассовый Чек [14:38:11]line ПРОДАЖА [14:38:11]line ТРК (МРК, ГНК) : 11 [14:38:11]line Товар: 2710124500 [14:38:11]line Аи-95-К-5 [14:38:11]line 13.970 * 75.40 [14:38:11]line = 1053.34 [14:38:11]line НДС 12% НСП 1% [14:38:11]line > о реализуемом товаре [14:38:11]line ОКРУГЛЕНИЕ: -0.34 [14:38:11]line ИТОГО: 1053.00 [14:38:11]line Внесено: 1053.00 [14:38:11]line СДАЧА: 0.00 [14:38:11]line НСП 1% : 9.32 [14:38:11]line НДС 12% : 111.86 [14:38:11]line Наличными: 1053.00 [14:38:11]line Безнал.: 0.00 [14:38:11]line Место: АЗС № 64 "Партнер Нефть" [14:38:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:38:11]line СНО: Общий режим [14:38:11]line Чек 98 25.11.2024 14:38 [14:38:11]line Смена: 556 ФФД: 1.0 [14:38:11]line ЗНМ: 0300000033 [14:38:11]line РНМ: 0000000000092681 [14:38:11]line Версия ККМ: 001 [14:38:11]line ФМ: 0000000000874881 [14:38:11]line ФД: 123057 [14:38:11]line ФПД: 216315074943297 [14:38:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T143815&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123057&fm=216315074943297&tin=02508201610067®Number=0000000000092681&sum=105300 [14:38:12]OFD Sender: Processing packet 123057 [packets to send 7, broken 6] [14:38:12]ProducePacketName [14:38:12]name=ofd_packets/00123057 [14:38:12]OFD Sender: To server: pG, [14:38:12]CommunicateWithHost lk.salyk.kg:30040 [14:38:12]ConnectInit lk.salyk.kg [14:38:12]written 0, free lines is 4095 [14:38:12]Connected sock=10 [14:38:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6B D9 07 01 7D 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 92 36 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 76 9B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 9B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 2B 00 00 00 00 07 04 06 00 54 9B 01 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 D7 8B 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E0 01 00 35 04 06 00 C4 BC C7 33 99 41 7A 05 11 EB 20 6E 31 E6 [14:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C6 5A 47 00 E7 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 34 38 38 31 10 04 04 00 B1 E0 01 00 F4 03 04 00 9D 37 44 67 B6 04 01 00 00 55 0F EA 14 AF E5 94 83 [14:38:12]CommunicateWithHost err = 0 [14:38:12]CheckOFDResponse [14:38:12]1017 (14) - 77093643461234 [14:38:12]1041 (16) - 0000000000874881 [14:38:12]1040 (4) - 123057 [14:38:12]1012 (4) - 25.11.2024 08:38 [14:38:12]1206 (1) - 0 [14:38:12]OFD Sender: Remove packet 123057 [14:38:12]ProducePacketName [14:38:12]name=ofd_packets/00123057 [14:38:12]NVStorageDeleteData [14:38:12]Write to MH i2c: 01 00 00 86 2C B2 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 07 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 07 00 86 2C 00 00 00 00 00 3F 0C 04 [14:38:12]RasterBufferAndPrint [14:38:12]line [14:38:12]line [14:38:12]line [14:38:12]line [14:38:12]line [14:38:12]written 0, free lines is 3140 [14:38:12]MH_Cut [14:38:12]Write to MH i2c: D1 01 00 8D 2C 01 8B [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: D1 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: D1 01 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: D1 01 00 8D 2C 00 8A [14:38:12]Write to MH i2c: 01 00 00 8E 2C BA [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:13]OFD Sender: No OFD packet to send [14:38:14]*** Cut start [14:38:14]*** Partial cut [14:38:14]*** CUTSNS_PIN = 1 [14:38:14]*** CUTSNS_PIN = 0 [14:38:14]*** Brake cut motor [14:38:14]Read from MH i2c: 01 [14:38:14]MH_I2C_Read... [14:38:14]*** Stop cut motor [14:38:14]*** Cut end [14:38:14]Read from MH i2c: 01 07 00 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: 01 07 00 8E 2C 00 00 00 00 00 FF 0F CF [14:38:14]process_action close_receipt done [14:38:14]requested_data is exist [14:38:14]produce_requested_data [14:38:14]requested_item fm.sn is exist - process it [14:38:14]wFMCommunicate request_size=4 [14:38:14]MH_SAM_APDU [14:38:14]CAPDU: 80 11 00 00 [14:38:14]Write to MH i2c: E2 08 00 8F 2C 80 11 00 00 00 00 00 00 35 [14:38:14]Write i2c OK [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 17 00 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 17 00 8F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8C [14:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:38:14]wFMCommunicate OK [14:38:14]requested_item fd.num is exist - process it [14:38:14]SAM_PROTO_GetFieldsCounters [14:38:14]wFMCommunicate request_size=4 [14:38:14]MH_SAM_APDU [14:38:14]CAPDU: 80 13 00 00 [14:38:14]Write to MH i2c: E2 08 00 90 2C 80 13 00 00 00 00 00 00 38 [14:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:14]Write i2c OK [14:38:14]MH_I2C_Read... [14:38:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:14]Read from MH i2c: E2 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 62 00 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 62 00 90 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B1 E0 01 00 0E 04 04 00 2C 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 44 [14:38:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B1 E0 01 00 0E 04 04 00 2C 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 [14:38:14]wFMCommunicate OK [14:38:14]SAM_PROTO_GetFieldsCounters done [14:38:14]requested_item shift.num is exist - process it [14:38:14]requested_item shift.opened is exist - process it [14:38:14]req_shift_opened [14:38:14]FM_GetShiftState [14:38:14]SAM_PROTO_GetShiftState [14:38:14]wFMCommunicate request_size=4 [14:38:14]MH_SAM_APDU [14:38:14]CAPDU: 80 13 01 00 [14:38:14]Write to MH i2c: E2 08 00 91 2C 80 13 01 00 00 00 00 00 3A [14:38:14]Write i2c OK [14:38:14]MH_I2C_Read... [14:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:14]Read from MH i2c: E2 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 0E 00 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 0E 00 91 2C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B9 [14:38:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:38:14]wFMCommunicate OK [14:38:14]SAM_PROTO_GetShiftState done [14:38:14]FM_GetShiftState done [14:38:14]req_shift_opened done [14:38:14]requested_item shift.open_date is exist - process it [14:38:14]req_shift_open_date [14:38:14]req_shift_open_date done [14:38:14]produce_requested_data done [14:38:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123057,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:38:14]process_action_free close_receipt [14:38:14]json_value_free [14:38:14]json_value_free done [14:38:14]process_json_proto returns [14:38:14]Send response to host [14:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123057,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:38:14]free response buf [14:38:14]execute_script done [14:38:14]execute_script returns [14:38:14]free content buf [14:38:14]Sock 7.Close socket [14:38:14]Sock 7.Thread stoped [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:27]accept exits with 9 [14:39:27]New connection [14:39:27]New thread 3066723684 created [14:39:27]Thread 3066580324 joined [14:39:27]Waiting for new connection... [14:39:27] Sock 9.Parse request [14:39:27]Sock 9.Check first char [14:39:27]Sock 9.First char is OK [14:39:27]request: POST /json_proto HTTP/1.0 [14:39:27]Method: POST [14:39:27]URL: /json_proto [14:39:27]Method is POST - this is cgi request [14:39:27]url: /json_proto [14:39:27]query_string will be loaded in cgi processing [14:39:27]execute_cgi json_proto POST (null) [14:39:27]execute_cgi path=json_proto method=POST [14:39:27]POST find Content-Length [14:39:27]Host: 172.17.37.4:8080 [14:39:27]Content-Length: 682 [14:39:27]Content-Type: application/json [14:39:27] [14:39:27]POST finish read [14:39:27]Found Content-Length = 682 [14:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:27]execute_script... [14:39: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)717853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:27]POST & json_proto [14:39:27]process_json_proto [14:39:27]json parsed OK: [14:39:27]protocol is kg_v1.0 [14:39:27]action value=close_receipt [14:39:27]process_action close_receipt [14:39:27]cmd_close_receipt [14:39:27]MH_GetDate [14:39:27]Write to MH i2c: F0 00 00 92 2C AD [14:39:27]Write i2c OK [14:39:27]MH_I2C_Read... [14:39:27]Read from MH i2c: F0 [14:39:27]MH_I2C_Read... [14:39:27]Read from MH i2c: F0 09 00 [14:39:27]MH_I2C_Read... [14:39:27]Read from MH i2c: F0 09 00 92 2C 00 25 8C 44 67 B8 5A 43 67 CE [14:39:27]GetLastDocTimeStamp 1732545495 [14:39:27]current date 1732545573 [14:39:27]FM_GetShiftState [14:39:27]SAM_PROTO_GetShiftState [14:39:27]wFMCommunicate request_size=4 [14:39:27]MH_SAM_APDU [14:39:27]CAPDU: 80 13 01 00 [14:39:27]Write to MH i2c: E2 08 00 93 2C 80 13 01 00 00 00 00 00 3C [14:39:27]Write i2c OK [14:39:27]MH_I2C_Read... [14:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:27]Read from MH i2c: E2 [14:39:27]MH_I2C_Read... [14:39:27]Read from MH i2c: E2 0E 00 [14:39:27]MH_I2C_Read... [14:39:27]Read from MH i2c: E2 0E 00 93 2C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 BB [14:39:27]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:39:27]wFMCommunicate OK [14:39:27]SAM_PROTO_GetShiftState done [14:39:27]FM_GetShiftState done [14:39:27]opened in 1732493066 [14:39:27]opened+sec_in_day 1732579466 [14:39:27]quantity*price = 100021 [14:39:27]sum+1 = 100023 [14:39:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 99 25.11.2024 14:39 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123058 ФПД: 131143089038756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T143933&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123058&fm=131143089038756&tin=02508201610067®Number=0000000000092681&sum=100000 [14:39:28]StoreToDocumentArchive [14:39:28]shift 556 fd 123058 [14:39:28]save to /storage/0556/doc_00123058 [14:39:28]save last doc name /storage/0556/doc_00123058 to /storage/kkm_last_doc_name [14:39:28]save OK [14:39:28]Clear old archive folders... [14:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:28]tlvbuf is 020580A0 [14:39:28]SAM_PROTO_ClearQueue [14:39:28]wFMCommunicate request_size=4 [14:39:28]MH_SAM_APDU [14:39:28]CAPDU: 80 09 00 00 [14:39:28]Write to MH i2c: E2 08 00 A0 2C 80 09 00 00 00 00 00 00 3E [14:39:28]Write i2c OK [14:39:28]MH_I2C_Read... [14:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:28]Read from MH i2c: E2 [14:39:28]MH_I2C_Read... [14:39:28]Read from MH i2c: E2 03 00 [14:39:28]MH_I2C_Read... [14:39:28]Read from MH i2c: E2 03 00 A0 2C 00 90 00 40 [14:39:28]RAPDU: 90 00 [14:39:28]wFMCommunicate OK [14:39:28]SAM_PROTO_ClearQueue done [14:39:28]KKMCreateOFDPacket [14:39:28]OFDProtocolAddRootSTLVToBuf [14:39:28]FM_MakeSignedData [14:39:28]FM_MakeSignedData [14:39:28]SAM_PROTO_SignData [14:39:28]wFMCommunicate request_size=4 [14:39:28]MH_SAM_APDU [14:39:28]CAPDU: 80 0D 01 02 [14:39:28]Write to MH i2c: E2 08 00 A1 2C 80 0D 01 02 00 00 00 00 46 [14:39:28]Write i2c OK [14:39:28]MH_I2C_Read... [14:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:28]Read from MH i2c: E2 [14:39:28]MH_I2C_Read... [14:39:28]Read from MH i2c: E2 03 00 [14:39:28]MH_I2C_Read... [14:39:28]Read from MH i2c: E2 03 00 A1 2C 00 90 00 41 [14:39:28]RAPDU: 90 00 [14:39:28]wFMCommunicate OK [14:39:28]wFMCommunicate request_size=255 [14:39:28]MH_SAM_APDU [14:39:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 25 8C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E0 01 00 35 04 06 00 77 [14:39:28]Write to MH i2c: E2 02 01 A2 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 25 8C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E0 01 00 35 04 06 00 77 00 00 94 [14:39:28]Write i2c OK [14:39:28]MH_I2C_Read... [14:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:29]Read from MH i2c: E2 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: E2 03 00 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: E2 03 00 A2 2C 00 90 00 42 [14:39:29]RAPDU: 90 00 [14:39:29]wFMCommunicate OK [14:39:29]wFMCommunicate request_size=10 [14:39:29]MH_SAM_APDU [14:39:29]CAPDU: 80 0D 02 02 05 46 21 3C A5 A4 [14:39:29]Write to MH i2c: E2 0D 00 A3 2C 80 0D 02 02 05 00 46 21 3C A5 A4 00 00 3F [14:39:29]Write i2c OK [14:39:29]MH_I2C_Read... [14:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:29]Read from MH i2c: E2 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: E2 03 00 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: E2 03 00 A3 2C 00 90 00 43 [14:39:29]RAPDU: 90 00 [14:39:29]wFMCommunicate OK [14:39:29]wFMCommunicate request_size=4 [14:39:29]MH_SAM_APDU [14:39:29]CAPDU: 80 0D 03 02 [14:39:29]Write to MH i2c: E2 08 00 A4 2C 80 0D 03 02 00 00 00 00 4B [14:39:29]Write i2c OK [14:39:29]MH_I2C_Read... [14:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:29]Read from MH i2c: E2 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: E2 0B 00 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: E2 0B 00 A4 2C 00 8A F7 12 12 DC 7F 7D 47 90 00 10 [14:39:29]RAPDU: 8A F7 12 12 DC 7F 7D 47 90 00 [14:39:29]wFMCommunicate OK [14:39:29]SAM_PROTO_SignData done [14:39:29]FM_MakeSignedData done [14:39:29]CreateOFDProtocolMessage [14:39:29]wFMCommunicate request_size=4 [14:39:29]MH_SAM_APDU [14:39:29]CAPDU: 80 11 00 00 [14:39:29]Write to MH i2c: E2 08 00 A5 2C 80 11 00 00 00 00 00 00 4B [14:39:29]Write i2c OK [14:39:29]MH_I2C_Read... [14:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:29]Read from MH i2c: E2 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: E2 17 00 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: E2 17 00 A5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A2 [14:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:39:29]wFMCommunicate OK [14:39:29]CreateOFDProtocolMessage done [14:39:29]OFDSenderStorePacket 123058 [14:39:29]StoreOFDPacket docnum=123058 [14:39:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 10 52 07 01 64 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 25 8C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E0 01 00 35 04 06 00 77 46 21 3C A5 A4 8A F7 12 12 DC 7F 7D 47 [14:39:29]CheckFolder [14:39:29]dirname=/storage/ofd_packets [14:39:29]CheckFolder done [14:39:29]ProducePacketName [14:39:29]name=ofd_packets/00123058 [14:39:29]NVStorageSaveData ofd_packets/00123058 [14:39:29]File name is /storage/ofd_packets/00123058 [14:39:29]Write 301 bytes [14:39:29]NVStorageSaveData done [14:39:29]OFDSenderStorePacket done [14:39:29]KKMCreateOFDPacket done [14:39:29]NVStorageSaveData kkm_last_timestamp [14:39:29]File name is /storage/kkm_last_timestamp [14:39:29]Write 4 bytes [14:39:29]NVStorageSaveData done [14:39:29]ExternCall_PrintAddStr [14:39:29]wPrintStart [14:39:29]Write to MH i2c: 01 00 00 A6 2C D2 [14:39:29]Write i2c OK [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: 01 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: 01 07 00 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: 01 07 00 A6 2C 00 00 00 00 00 FF 0F E7 [14:39:29]RasterBufferAndPrint [14:39:29]line Счет N : (1)717853 [14:39:29]line ИНН: 02508201610067 [14:39:29]line Контрольно-Кассовый Чек [14:39:29]line ПРОДАЖА [14:39:29]line ТРК (МРК, ГНК) : 12 [14:39:29]line Товар: 2710124130 [14:39:29]line Аи-92-К-4 [14:39:29]line 14.840 * 67.40 [14:39:29]line = 1000.22 [14:39:29]line НДС 12% НСП 1% [14:39:29]line > о реализуемом товаре [14:39:29]line ОКРУГЛЕНИЕ: -0.22 [14:39:29]line ИТОГО: 1000.00 [14:39:29]line Внесено: 1000.00 [14:39:29]line СДАЧА: 0.00 [14:39:29]line НСП 1% : 8.85 [14:39:29]line НДС 12% : 106.22 [14:39:29]line Наличными: 1000.00 [14:39:29]line Безнал.: 0.00 [14:39:29]line Место: АЗС № 64 "Партнер Нефть" [14:39:29]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:39:29]line СНО: Общий режим [14:39:29]line Чек 99 25.11.2024 14:39 [14:39:29]line Смена: 556 ФФД: 1.0 [14:39:29]line ЗНМ: 0300000033 [14:39:29]line РНМ: 0000000000092681 [14:39:29]line Версия ККМ: 001 [14:39:29]line ФМ: 0000000000874881 [14:39:29]line ФД: 123058 [14:39:29]line ФПД: 131143089038756 [14:39:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T143933&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123058&fm=131143089038756&tin=02508201610067®Number=0000000000092681&sum=100000 [14:39:29]OFD Sender: Processing packet 123058 [packets to send 7, broken 6] [14:39:29]ProducePacketName [14:39:29]name=ofd_packets/00123058 [14:39:29]OFD Sender: To server: pG, [14:39:29]CommunicateWithHost lk.salyk.kg:30040 [14:39:29]ConnectInit lk.salyk.kg [14:39:29]written 0, free lines is 4095 [14:39:29]Connected sock=10 [14:39:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 10 52 07 01 64 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 25 8C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E0 01 00 35 04 06 00 77 46 21 3C A5 A4 8A F7 12 12 DC 7F 7D 47 [14:39:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C7 5B 47 00 F4 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E0 01 00 F4 03 04 00 EA 37 44 67 B6 04 01 00 00 43 A5 07 BB 21 04 B2 BD [14:39:29]CommunicateWithHost err = 0 [14:39:29]CheckOFDResponse [14:39:29]1017 (14) - 77093643461234 [14:39:29]1041 (16) - 0000000000874881 [14:39:29]1040 (4) - 123058 [14:39:29]1012 (4) - 25.11.2024 08:40 [14:39:29]1206 (1) - 0 [14:39:29]OFD Sender: Remove packet 123058 [14:39:29]ProducePacketName [14:39:29]name=ofd_packets/00123058 [14:39:29]NVStorageDeleteData [14:39:30]Write to MH i2c: 01 00 00 D1 2C FD [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 07 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 07 00 D1 2C 00 00 00 00 00 42 0C 52 [14:39:30]RasterBufferAndPrint [14:39:30]line [14:39:30]line [14:39:30]line [14:39:30]line [14:39:30]line [14:39:30]written 0, free lines is 3143 [14:39:30]MH_Cut [14:39:30]Write to MH i2c: D1 01 00 D8 2C 01 D6 [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: D1 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: D1 01 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: D1 01 00 D8 2C 00 D5 [14:39:30]Write to MH i2c: 01 00 00 D9 2C 05 [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]OFD Sender: No OFD packet to send [14:39:31]*** Cut start [14:39:31]*** Partial cut [14:39:31]*** CUTSNS_PIN = 1 [14:39:31]*** CUTSNS_PIN = 0 [14:39:31]*** Brake cut motor [14:39:32]Read from MH i2c: 01 [14:39:32]MH_I2C_Read... [14:39:32]*** Stop cut motor [14:39:32]*** Cut end [14:39:32]Read from MH i2c: 01 07 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 07 00 D9 2C 00 00 00 00 00 FF 0F 1A [14:39:32]process_action close_receipt done [14:39:32]requested_data is exist [14:39:32]produce_requested_data [14:39:32]requested_item fm.sn is exist - process it [14:39:32]wFMCommunicate request_size=4 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 11 00 00 [14:39:32]Write to MH i2c: E2 08 00 DA 2C 80 11 00 00 00 00 00 00 80 [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 17 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 17 00 DA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D7 [14:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:39:32]wFMCommunicate OK [14:39:32]requested_item fd.num is exist - process it [14:39:32]SAM_PROTO_GetFieldsCounters [14:39:32]wFMCommunicate request_size=4 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 13 00 00 [14:39:32]Write to MH i2c: E2 08 00 DB 2C 80 13 00 00 00 00 00 00 83 [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 62 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 62 00 DB 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B2 E0 01 00 0E 04 04 00 2C 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 93 [14:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B2 E0 01 00 0E 04 04 00 2C 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 [14:39:32]wFMCommunicate OK [14:39:32]SAM_PROTO_GetFieldsCounters done [14:39:32]requested_item shift.num is exist - process it [14:39:32]requested_item shift.opened is exist - process it [14:39:32]req_shift_opened [14:39:32]FM_GetShiftState [14:39:32]SAM_PROTO_GetShiftState [14:39:32]wFMCommunicate request_size=4 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 13 01 00 [14:39:32]Write to MH i2c: E2 08 00 DC 2C 80 13 01 00 00 00 00 00 85 [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 0E 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 0E 00 DC 2C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 04 [14:39:32]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:39:32]wFMCommunicate OK [14:39:32]SAM_PROTO_GetShiftState done [14:39:32]FM_GetShiftState done [14:39:32]req_shift_opened done [14:39:32]requested_item shift.open_date is exist - process it [14:39:32]req_shift_open_date [14:39:32]req_shift_open_date done [14:39:32]produce_requested_data done [14:39:32]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123058,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:39:32]process_action_free close_receipt [14:39:32]json_value_free [14:39:32]json_value_free done [14:39:32]process_json_proto returns [14:39:32]Send response to host [14:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123058,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:39:32]free response buf [14:39:32]execute_script done [14:39:32]execute_script returns [14:39:32]free content buf [14:39:32]Sock 9.Close socket [14:39:32]Sock 9.Thread stoped [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:21]accept exits with 7 [14:42:21]New connection [14:42:21]New thread 3066580324 created [14:42:21]Thread 3066723684 joined [14:42:21]Waiting for new connection... [14:42:21] Sock 7.Parse request [14:42:21]Sock 7.Check first char [14:42:21]Sock 7.First char is OK [14:42:21]request: POST /json_proto HTTP/1.0 [14:42:21]Method: POST [14:42:21]URL: /json_proto [14:42:21]Method is POST - this is cgi request [14:42:21]url: /json_proto [14:42:21]query_string will be loaded in cgi processing [14:42:21]execute_cgi json_proto POST (null) [14:42:21]execute_cgi path=json_proto method=POST [14:42:21]POST find Content-Length [14:42:21]Host: 172.17.37.4:8080 [14:42:21]Content-Length: 677 [14:42:21]Content-Type: application/json [14:42:21] [14:42:21]POST finish read [14:42:21]Found Content-Length = 677 [14:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.270, "sum" : 220.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:21]execute_script... [14:42: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)717854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.270, "sum" : 220.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:21]POST & json_proto [14:42:21]process_json_proto [14:42:21]json parsed OK: [14:42:21]protocol is kg_v1.0 [14:42:21]action value=close_receipt [14:42:21]process_action close_receipt [14:42:21]cmd_close_receipt [14:42:21]MH_GetDate [14:42:21]Write to MH i2c: F0 00 00 DD 2C F8 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: F0 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: F0 09 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: F0 09 00 DD 2C 00 D2 8C 44 67 B8 5A 43 67 C6 [14:42:21]GetLastDocTimeStamp 1732545573 [14:42:21]current date 1732545746 [14:42:21]FM_GetShiftState [14:42:21]SAM_PROTO_GetShiftState [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 13 01 00 [14:42:21]Write to MH i2c: E2 08 00 DE 2C 80 13 01 00 00 00 00 00 87 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0E 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0E 00 DE 2C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 06 [14:42:21]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_GetShiftState done [14:42:21]FM_GetShiftState done [14:42:21]opened in 1732493066 [14:42:21]opened+sec_in_day 1732579466 [14:42:21]quantity*price = 22039 [14:42:21]sum+1 = 22041 [14:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 100 25.11.2024 14:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123059 ФПД: 193277503998464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T144226&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123059&fm=193277503998464&tin=02508201610067®Number=0000000000092681&sum=22000 [14:42:22]StoreToDocumentArchive [14:42:22]shift 556 fd 123059 [14:42:22]save to /storage/0556/doc_00123059 [14:42:22]save last doc name /storage/0556/doc_00123059 to /storage/kkm_last_doc_name [14:42:22]save OK [14:42:22]Clear old archive folders... [14:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:22]tlvbuf is 0210F840 [14:42:22]SAM_PROTO_ClearQueue [14:42:22]wFMCommunicate request_size=4 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 09 00 00 [14:42:22]Write to MH i2c: E2 08 00 EB 2C 80 09 00 00 00 00 00 00 89 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 EB 2C 00 90 00 8B [14:42:22]RAPDU: 90 00 [14:42:22]wFMCommunicate OK [14:42:22]SAM_PROTO_ClearQueue done [14:42:22]KKMCreateOFDPacket [14:42:22]OFDProtocolAddRootSTLVToBuf [14:42:22]FM_MakeSignedData [14:42:22]FM_MakeSignedData [14:42:22]SAM_PROTO_SignData [14:42:22]wFMCommunicate request_size=4 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 0D 01 02 [14:42:22]Write to MH i2c: E2 08 00 EC 2C 80 0D 01 02 00 00 00 00 91 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 EC 2C 00 90 00 8C [14:42:22]RAPDU: 90 00 [14:42:22]wFMCommunicate OK [14:42:22]wFMCommunicate request_size=255 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C6 0C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 18 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D2 8C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E0 01 00 35 04 06 00 AF [14:42:22]Write to MH i2c: E2 02 01 ED 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 34 FF 03 08 00 03 C6 0C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 18 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D2 8C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E0 01 00 35 04 06 00 AF 00 00 A5 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 ED 2C 00 90 00 8D [14:42:22]RAPDU: 90 00 [14:42:22]wFMCommunicate OK [14:42:22]wFMCommunicate request_size=10 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 0D 02 02 05 C8 EC F8 0A 00 [14:42:22]Write to MH i2c: E2 0D 00 EE 2C 80 0D 02 02 05 00 C8 EC F8 0A 00 00 00 54 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 EE 2C 00 90 00 8E [14:42:22]RAPDU: 90 00 [14:42:22]wFMCommunicate OK [14:42:22]wFMCommunicate request_size=4 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 0D 03 02 [14:42:22]Write to MH i2c: E2 08 00 EF 2C 80 0D 03 02 00 00 00 00 96 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 0B 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 0B 00 EF 2C 00 5B FB C4 2C 4D 72 35 46 90 00 17 [14:42:22]RAPDU: 5B FB C4 2C 4D 72 35 46 90 00 [14:42:22]wFMCommunicate OK [14:42:22]SAM_PROTO_SignData done [14:42:22]FM_MakeSignedData done [14:42:22]CreateOFDProtocolMessage [14:42:22]wFMCommunicate request_size=4 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 11 00 00 [14:42:22]Write to MH i2c: E2 08 00 F0 2C 80 11 00 00 00 00 00 00 96 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:23]Read from MH i2c: E2 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 17 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 17 00 F0 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 ED [14:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:42:23]wFMCommunicate OK [14:42:23]CreateOFDProtocolMessage done [14:42:23]OFDSenderStorePacket 123059 [14:42:23]StoreOFDPacket docnum=123059 [14:42:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6D 0D 07 01 CB 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C6 0C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 18 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D2 8C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E0 01 00 35 04 06 00 AF C8 EC F8 0A 00 5B FB C4 2C 4D 72 35 46 [14:42:23]CheckFolder [14:42:23]dirname=/storage/ofd_packets [14:42:23]CheckFolder done [14:42:23]ProducePacketName [14:42:23]name=ofd_packets/00123059 [14:42:23]NVStorageSaveData ofd_packets/00123059 [14:42:23]File name is /storage/ofd_packets/00123059 [14:42:23]Write 301 bytes [14:42:23]NVStorageSaveData done [14:42:23]OFDSenderStorePacket done [14:42:23]KKMCreateOFDPacket done [14:42:23]NVStorageSaveData kkm_last_timestamp [14:42:23]File name is /storage/kkm_last_timestamp [14:42:23]Write 4 bytes [14:42:23]NVStorageSaveData done [14:42:23]ExternCall_PrintAddStr [14:42:23]wPrintStart [14:42:23]Write to MH i2c: 01 00 00 F1 2C 1D [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 07 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 FF 0F 32 [14:42:23]RasterBufferAndPrint [14:42:23]line Счет N : (1)717854 [14:42:23]line ИНН: 02508201610067 [14:42:23]line Контрольно-Кассовый Чек [14:42:23]line ПРОДАЖА [14:42:23]line ТРК (МРК, ГНК) : 22 [14:42:23]line Товар: 2710124130 [14:42:23]line Аи-92-К-4 [14:42:23]line 3.270 * 67.40 [14:42:23]line = 220.40 [14:42:23]line НДС 12% НСП 1% [14:42:23]line > о реализуемом товаре [14:42:23]line ОКРУГЛЕНИЕ: -0.40 [14:42:23]line ИТОГО: 220.00 [14:42:23]line Внесено: 220.00 [14:42:23]line СДАЧА: 0.00 [14:42:23]line НСП 1% : 1.95 [14:42:23]line НДС 12% : 23.40 [14:42:23]line Наличными: 220.00 [14:42:23]line Безнал.: 0.00 [14:42:23]line Место: АЗС № 64 "Партнер Нефть" [14:42:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:42:23]line СНО: Общий режим [14:42:23]line Чек 100 25.11.2024 14:42 [14:42:23]line Смена: 556 ФФД: 1.0 [14:42:23]line ЗНМ: 0300000033 [14:42:23]line РНМ: 0000000000092681 [14:42:23]line Версия ККМ: 001 [14:42:23]line ФМ: 0000000000874881 [14:42:23]line ФД: 123059 [14:42:23]line ФПД: 193277503998464 [14:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T144226&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123059&fm=193277503998464&tin=02508201610067®Number=0000000000092681&sum=22000 [14:42:23]OFD Sender: Processing packet 123059 [packets to send 7, broken 6] [14:42:23]ProducePacketName [14:42:23]name=ofd_packets/00123059 [14:42:23]OFD Sender: To server: pG, [14:42:23]CommunicateWithHost lk.salyk.kg:30040 [14:42:23]ConnectInit lk.salyk.kg [14:42:23]written 0, free lines is 4095 [14:42:23]Connected sock=10 [14:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6D 0D 07 01 CB 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C6 0C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 18 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D2 8C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E0 01 00 35 04 06 00 AF C8 EC F8 0A 00 5B FB C4 2C 4D 72 35 46 [14:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A8 73 47 00 43 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E0 01 00 F4 03 04 00 98 38 44 67 B6 04 01 00 00 0C 12 AC 6A 57 7D 4C 84 [14:42:23]CommunicateWithHost err = 0 [14:42:23]CheckOFDResponse [14:42:23]1017 (14) - 77093643461234 [14:42:23]1041 (16) - 0000000000874881 [14:42:23]1040 (4) - 123059 [14:42:23]1012 (4) - 25.11.2024 08:43 [14:42:23]1206 (1) - 0 [14:42:23]OFD Sender: Remove packet 123059 [14:42:23]ProducePacketName [14:42:23]name=ofd_packets/00123059 [14:42:23]NVStorageDeleteData [14:42:23]Write to MH i2c: 01 00 00 1C 2D 49 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 07 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 07 00 1C 2D 00 00 00 00 00 4A 0C A6 [14:42:23]RasterBufferAndPrint [14:42:23]line [14:42:23]line [14:42:23]line [14:42:23]line [14:42:23]line [14:42:23]written 0, free lines is 3149 [14:42:23]MH_Cut [14:42:23]Write to MH i2c: D1 01 00 23 2D 01 22 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: D1 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: D1 01 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: D1 01 00 23 2D 00 21 [14:42:23]Write to MH i2c: 01 00 00 24 2D 51 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:24]OFD Sender: No OFD packet to send [14:42:25]*** Cut start [14:42:25]*** Partial cut [14:42:25]*** CUTSNS_PIN = 1 [14:42:25]*** CUTSNS_PIN = 0 [14:42:25]*** Brake cut motor [14:42:25]Read from MH i2c: 01 [14:42:25]MH_I2C_Read... [14:42:25]*** Stop cut motor [14:42:25]*** Cut end [14:42:25]Read from MH i2c: 01 07 00 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: 01 07 00 24 2D 00 00 00 00 00 FF 0F 66 [14:42:25]process_action close_receipt done [14:42:25]requested_data is exist [14:42:25]produce_requested_data [14:42:25]requested_item fm.sn is exist - process it [14:42:25]wFMCommunicate request_size=4 [14:42:25]MH_SAM_APDU [14:42:25]CAPDU: 80 11 00 00 [14:42:25]Write to MH i2c: E2 08 00 25 2D 80 11 00 00 00 00 00 00 CC [14:42:25]Write i2c OK [14:42:25]MH_I2C_Read... [14:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:25]Read from MH i2c: E2 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 17 00 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 17 00 25 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 23 [14:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:42:25]wFMCommunicate OK [14:42:25]requested_item fd.num is exist - process it [14:42:25]SAM_PROTO_GetFieldsCounters [14:42:25]wFMCommunicate request_size=4 [14:42:25]MH_SAM_APDU [14:42:25]CAPDU: 80 13 00 00 [14:42:25]Write to MH i2c: E2 08 00 26 2D 80 13 00 00 00 00 00 00 CF [14:42:25]Write i2c OK [14:42:25]MH_I2C_Read... [14:42:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:26]Read from MH i2c: E2 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: E2 62 00 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: E2 62 00 26 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B3 E0 01 00 0E 04 04 00 2C 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 E3 [14: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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B3 E0 01 00 0E 04 04 00 2C 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 [14:42:26]wFMCommunicate OK [14:42:26]SAM_PROTO_GetFieldsCounters done [14:42:26]requested_item shift.num is exist - process it [14:42:26]requested_item shift.opened is exist - process it [14:42:26]req_shift_opened [14:42:26]FM_GetShiftState [14:42:26]SAM_PROTO_GetShiftState [14:42:26]wFMCommunicate request_size=4 [14:42:26]MH_SAM_APDU [14:42:26]CAPDU: 80 13 01 00 [14:42:26]Write to MH i2c: E2 08 00 27 2D 80 13 01 00 00 00 00 00 D1 [14:42:26]Write i2c OK [14:42:26]MH_I2C_Read... [14:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:26]Read from MH i2c: E2 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: E2 0E 00 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: E2 0E 00 27 2D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 50 [14:42:26]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:42:26]wFMCommunicate OK [14:42:26]SAM_PROTO_GetShiftState done [14:42:26]FM_GetShiftState done [14:42:26]req_shift_opened done [14:42:26]requested_item shift.open_date is exist - process it [14:42:26]req_shift_open_date [14:42:26]req_shift_open_date done [14:42:26]produce_requested_data done [14:42:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123059,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:42:26]process_action_free close_receipt [14:42:26]json_value_free [14:42:26]json_value_free done [14:42:26]process_json_proto returns [14:42:26]Send response to host [14:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123059,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:42:26]free response buf [14:42:26]execute_script done [14:42:26]execute_script returns [14:42:26]free content buf [14:42:26]Sock 7.Close socket [14:42:26]Sock 7.Thread stoped [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:15]accept exits with 9 [14:43:15]New connection [14:43:15]New thread 3066723684 created [14:43:15]Thread 3066580324 joined [14:43:15]Waiting for new connection... [14:43:15] Sock 9.Parse request [14:43:15]Sock 9.Check first char [14:43:15]Sock 9.First char is OK [14:43:15]request: POST /json_proto HTTP/1.0 [14:43:15]Method: POST [14:43:15]URL: /json_proto [14:43:15]Method is POST - this is cgi request [14:43:15]url: /json_proto [14:43:15]query_string will be loaded in cgi processing [14:43:15]execute_cgi json_proto POST (null) [14:43:15]execute_cgi path=json_proto method=POST [14:43:15]POST find Content-Length [14:43:15]Host: 172.17.37.4:8080 [14:43:15]Content-Length: 677 [14:43:15]Content-Type: application/json [14:43:15] [14:43:15]POST finish read [14:43:15]Found Content-Length = 677 [14:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:15]execute_script... [14:43:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:15]POST & json_proto [14:43:15]process_json_proto [14:43:15]json parsed OK: [14:43:15]protocol is kg_v1.0 [14:43:15]action value=close_receipt [14:43:15]process_action close_receipt [14:43:15]cmd_close_receipt [14:43:15]MH_GetDate [14:43:15]Write to MH i2c: F0 00 00 28 2D 44 [14:43:15]Write i2c OK [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: F0 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: F0 09 00 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: F0 09 00 28 2D 00 09 8D 44 67 B8 5A 43 67 4A [14:43:15]GetLastDocTimeStamp 1732545746 [14:43:15]current date 1732545801 [14:43:15]FM_GetShiftState [14:43:15]SAM_PROTO_GetShiftState [14:43:15]wFMCommunicate request_size=4 [14:43:15]MH_SAM_APDU [14:43:15]CAPDU: 80 13 01 00 [14:43:15]Write to MH i2c: E2 08 00 29 2D 80 13 01 00 00 00 00 00 D3 [14:43:15]Write i2c OK [14:43:15]MH_I2C_Read... [14:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:15]Read from MH i2c: E2 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 0E 00 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 0E 00 29 2D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 52 [14:43:15]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:43:15]wFMCommunicate OK [14:43:15]SAM_PROTO_GetShiftState done [14:43:15]FM_GetShiftState done [14:43:15]opened in 1732493066 [14:43:15]opened+sec_in_day 1732579466 [14:43:15]quantity*price = 50010 [14:43:15]sum+1 = 50012 [14:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 101 25.11.2024 14:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123060 ФПД: 184302316854095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T144321&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123060&fm=184302316854095&tin=02508201610067®Number=0000000000092681&sum=50000 [14:43:16]StoreToDocumentArchive [14:43:16]shift 556 fd 123060 [14:43:16]save to /storage/0556/doc_00123060 [14:43:16]save last doc name /storage/0556/doc_00123060 to /storage/kkm_last_doc_name [14:43:16]save OK [14:43:16]Clear old archive folders... [14:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:16]tlvbuf is 01F6C950 [14:43:16]SAM_PROTO_ClearQueue [14:43:16]wFMCommunicate request_size=4 [14:43:16]MH_SAM_APDU [14:43:16]CAPDU: 80 09 00 00 [14:43:16]Write to MH i2c: E2 08 00 36 2D 80 09 00 00 00 00 00 00 D5 [14:43:16]Write i2c OK [14:43:16]MH_I2C_Read... [14:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:16]Read from MH i2c: E2 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 03 00 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 03 00 36 2D 00 90 00 D7 [14:43:16]RAPDU: 90 00 [14:43:16]wFMCommunicate OK [14:43:16]SAM_PROTO_ClearQueue done [14:43:16]KKMCreateOFDPacket [14:43:16]OFDProtocolAddRootSTLVToBuf [14:43:16]FM_MakeSignedData [14:43:16]FM_MakeSignedData [14:43:16]SAM_PROTO_SignData [14:43:16]wFMCommunicate request_size=4 [14:43:16]MH_SAM_APDU [14:43:16]CAPDU: 80 0D 01 02 [14:43:16]Write to MH i2c: E2 08 00 37 2D 80 0D 01 02 00 00 00 00 DD [14:43:16]Write i2c OK [14:43:16]MH_I2C_Read... [14:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:16]Read from MH i2c: E2 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 03 00 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 03 00 37 2D 00 90 00 D8 [14:43:16]RAPDU: 90 00 [14:43:16]wFMCommunicate OK [14:43:16]wFMCommunicate request_size=255 [14:43:16]MH_SAM_APDU [14:43:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 09 8D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E0 01 00 35 04 06 00 A7 [14:43:16]Write to MH i2c: E2 02 01 38 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 09 8D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E0 01 00 35 04 06 00 A7 00 00 54 [14:43:16]Write i2c OK [14:43:16]MH_I2C_Read... [14:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:17]Read from MH i2c: E2 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 03 00 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 03 00 38 2D 00 90 00 D9 [14:43:17]RAPDU: 90 00 [14:43:17]wFMCommunicate OK [14:43:17]wFMCommunicate request_size=10 [14:43:17]MH_SAM_APDU [14:43:17]CAPDU: 80 0D 02 02 05 9F 3A 20 9B 4F [14:43:17]Write to MH i2c: E2 0D 00 39 2D 80 0D 02 02 05 00 9F 3A 20 9B 4F 00 00 CD [14:43:17]Write i2c OK [14:43:17]MH_I2C_Read... [14:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:17]Read from MH i2c: E2 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 03 00 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 03 00 39 2D 00 90 00 DA [14:43:17]RAPDU: 90 00 [14:43:17]wFMCommunicate OK [14:43:17]wFMCommunicate request_size=4 [14:43:17]MH_SAM_APDU [14:43:17]CAPDU: 80 0D 03 02 [14:43:17]Write to MH i2c: E2 08 00 3A 2D 80 0D 03 02 00 00 00 00 E2 [14:43:17]Write i2c OK [14:43:17]MH_I2C_Read... [14:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:17]Read from MH i2c: E2 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 0B 00 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 0B 00 3A 2D 00 7E 7F BE F0 01 A0 77 E4 90 00 8A [14:43:17]RAPDU: 7E 7F BE F0 01 A0 77 E4 90 00 [14:43:17]wFMCommunicate OK [14:43:17]SAM_PROTO_SignData done [14:43:17]FM_MakeSignedData done [14:43:17]CreateOFDProtocolMessage [14:43:17]wFMCommunicate request_size=4 [14:43:17]MH_SAM_APDU [14:43:17]CAPDU: 80 11 00 00 [14:43:17]Write to MH i2c: E2 08 00 3B 2D 80 11 00 00 00 00 00 00 E2 [14:43:17]Write i2c OK [14:43:17]MH_I2C_Read... [14:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:17]Read from MH i2c: E2 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 17 00 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 17 00 3B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 39 [14:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:43:17]wFMCommunicate OK [14:43:17]CreateOFDProtocolMessage done [14:43:17]OFDSenderStorePacket 123060 [14:43:17]StoreOFDPacket docnum=123060 [14:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1A E3 07 01 C6 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 09 8D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E0 01 00 35 04 06 00 A7 9F 3A 20 9B 4F 7E 7F BE F0 01 A0 77 E4 [14:43:17]CheckFolder [14:43:17]dirname=/storage/ofd_packets [14:43:17]CheckFolder done [14:43:17]ProducePacketName [14:43:17]name=ofd_packets/00123060 [14:43:17]NVStorageSaveData ofd_packets/00123060 [14:43:17]File name is /storage/ofd_packets/00123060 [14:43:17]Write 301 bytes [14:43:17]NVStorageSaveData done [14:43:17]OFDSenderStorePacket done [14:43:17]KKMCreateOFDPacket done [14:43:17]NVStorageSaveData kkm_last_timestamp [14:43:17]File name is /storage/kkm_last_timestamp [14:43:17]Write 4 bytes [14:43:17]NVStorageSaveData done [14:43:17]ExternCall_PrintAddStr [14:43:17]wPrintStart [14:43:17]Write to MH i2c: 01 00 00 3C 2D 69 [14:43:17]Write i2c OK [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: 01 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: 01 07 00 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: 01 07 00 3C 2D 00 00 00 00 00 FF 0F 7E [14:43:17]RasterBufferAndPrint [14:43:17]line Счет N : (1)717855 [14:43:17]line ИНН: 02508201610067 [14:43:17]line Контрольно-Кассовый Чек [14:43:17]line ПРОДАЖА [14:43:17]line ТРК (МРК, ГНК) : 12 [14:43:17]line Товар: 2710124130 [14:43:17]line Аи-92-К-4 [14:43:17]line 7.420 * 67.40 [14:43:17]line = 500.11 [14:43:17]line НДС 12% НСП 1% [14:43:17]line > о реализуемом товаре [14:43:17]line ОКРУГЛЕНИЕ: -0.11 [14:43:17]line ИТОГО: 500.00 [14:43:17]line Внесено: 500.00 [14:43:17]line СДАЧА: 0.00 [14:43:17]line НСП 1% : 4.43 [14:43:17]line НДС 12% : 53.11 [14:43:17]line Наличными: 500.00 [14:43:17]line Безнал.: 0.00 [14:43:17]line Место: АЗС № 64 "Партнер Нефть" [14:43:17]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:43:17]line СНО: Общий режим [14:43:17]line Чек 101 25.11.2024 14:43 [14:43:17]line Смена: 556 ФФД: 1.0 [14:43:17]line ЗНМ: 0300000033 [14:43:17]line РНМ: 0000000000092681 [14:43:17]line Версия ККМ: 001 [14:43:17]line ФМ: 0000000000874881 [14:43:17]line ФД: 123060 [14:43:17]line ФПД: 184302316854095 [14:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T144321&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123060&fm=184302316854095&tin=02508201610067®Number=0000000000092681&sum=50000 [14:43:17]OFD Sender: Processing packet 123060 [packets to send 7, broken 6] [14:43:17]ProducePacketName [14:43:17]name=ofd_packets/00123060 [14:43:17]OFD Sender: To server: pG, [14:43:17]CommunicateWithHost lk.salyk.kg:30040 [14:43:17]ConnectInit lk.salyk.kg [14:43:17]written 0, free lines is 4095 [14:43:17]Connected sock=10 [14:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1A E3 07 01 C6 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 09 8D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E0 01 00 35 04 06 00 A7 9F 3A 20 9B 4F 7E 7F BE F0 01 A0 77 E4 [14:43:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7D 30 47 00 64 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E0 01 00 F4 03 04 00 CE 38 44 67 B6 04 01 00 00 5C 08 2C 8F 87 6B D8 C6 [14:43:18]CommunicateWithHost err = 0 [14:43:18]CheckOFDResponse [14:43:18]1017 (14) - 77093643461234 [14:43:18]1041 (16) - 0000000000874881 [14:43:18]1040 (4) - 123060 [14:43:18]1012 (4) - 25.11.2024 08:43 [14:43:18]1206 (1) - 0 [14:43:18]OFD Sender: Remove packet 123060 [14:43:18]ProducePacketName [14:43:18]name=ofd_packets/00123060 [14:43:18]NVStorageDeleteData [14:43:18]Write to MH i2c: 01 00 00 67 2D 94 [14:43:18]Write i2c OK [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: 01 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: 01 07 00 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: 01 07 00 67 2D 00 00 00 00 00 41 0C E8 [14:43:18]RasterBufferAndPrint [14:43:18]line [14:43:18]line [14:43:18]line [14:43:18]line [14:43:18]line [14:43:18]written 0, free lines is 3142 [14:43:18]MH_Cut [14:43:18]Write to MH i2c: D1 01 00 6E 2D 01 6D [14:43:18]Write i2c OK [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: D1 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: D1 01 00 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: D1 01 00 6E 2D 00 6C [14:43:18]Write to MH i2c: 01 00 00 6F 2D 9C [14:43:18]Write i2c OK [14:43:18]MH_I2C_Read... [14:43:18]OFD Sender: No OFD packet to send [14:43:19]*** Cut start [14:43:19]*** Partial cut [14:43:19]*** CUTSNS_PIN = 1 [14:43:19]*** CUTSNS_PIN = 0 [14:43:19]*** Brake cut motor [14:43:20]Read from MH i2c: 01 [14:43:20]MH_I2C_Read... [14:43:20]*** Stop cut motor [14:43:20]*** Cut end [14:43:20]Read from MH i2c: 01 07 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: 01 07 00 6F 2D 00 00 00 00 00 FF 0F B1 [14:43:20]process_action close_receipt done [14:43:20]requested_data is exist [14:43:20]produce_requested_data [14:43:20]requested_item fm.sn is exist - process it [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 11 00 00 [14:43:20]Write to MH i2c: E2 08 00 70 2D 80 11 00 00 00 00 00 00 17 [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 17 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 17 00 70 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6E [14:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:43:20]wFMCommunicate OK [14:43:20]requested_item fd.num is exist - process it [14:43:20]SAM_PROTO_GetFieldsCounters [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 13 00 00 [14:43:20]Write to MH i2c: E2 08 00 71 2D 80 13 00 00 00 00 00 00 1A [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 62 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 62 00 71 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B4 E0 01 00 0E 04 04 00 2C 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 32 [14: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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B4 E0 01 00 0E 04 04 00 2C 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 [14:43:20]wFMCommunicate OK [14:43:20]SAM_PROTO_GetFieldsCounters done [14:43:20]requested_item shift.num is exist - process it [14:43:20]requested_item shift.opened is exist - process it [14:43:20]req_shift_opened [14:43:20]FM_GetShiftState [14:43:20]SAM_PROTO_GetShiftState [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 13 01 00 [14:43:20]Write to MH i2c: E2 08 00 72 2D 80 13 01 00 00 00 00 00 1C [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 0E 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 0E 00 72 2D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 9B [14:43:20]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:43:20]wFMCommunicate OK [14:43:20]SAM_PROTO_GetShiftState done [14:43:20]FM_GetShiftState done [14:43:20]req_shift_opened done [14:43:20]requested_item shift.open_date is exist - process it [14:43:20]req_shift_open_date [14:43:20]req_shift_open_date done [14:43:20]produce_requested_data done [14:43:20]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123060,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:43:20]process_action_free close_receipt [14:43:20]json_value_free [14:43:20]json_value_free done [14:43:20]process_json_proto returns [14:43:20]Send response to host [14:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123060,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:43:20]free response buf [14:43:20]execute_script done [14:43:20]execute_script returns [14:43:20]free content buf [14:43:20]Sock 9.Close socket [14:43:20]Sock 9.Thread stoped [14:43:23]OFD Sender: No OFD packet to send [14:43:23]accept exits with 7 [14:43:23]New connection [14:43:23]New thread 3066580324 created [14:43:23]Thread 3066723684 joined [14:43:23]Waiting for new connection... [14:43:23] Sock 7.Parse request [14:43:23]Sock 7.Check first char [14:43:23]Sock 7.First char is OK [14:43:23]request: POST /json_proto HTTP/1.0 [14:43:23]Method: POST [14:43:23]URL: /json_proto [14:43:23]Method is POST - this is cgi request [14:43:23]url: /json_proto [14:43:23]query_string will be loaded in cgi processing [14:43:23]execute_cgi json_proto POST (null) [14:43:23]execute_cgi path=json_proto method=POST [14:43:23]POST find Content-Length [14:43:23]Host: 172.17.37.4:8080 [14:43:23]Content-Length: 677 [14:43:23]Content-Type: application/json [14:43:23] [14:43:23]POST finish read [14:43:23]Found Content-Length = 677 [14:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:23]execute_script... [14:43: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)717856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:23]POST & json_proto [14:43:23]process_json_proto [14:43:23]json parsed OK: [14:43:23]protocol is kg_v1.0 [14:43:23]action value=close_receipt [14:43:23]process_action close_receipt [14:43:23]cmd_close_receipt [14:43:23]MH_GetDate [14:43:23]Write to MH i2c: F0 00 00 73 2D 8F [14:43:23]Write i2c OK [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: F0 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: F0 09 00 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: F0 09 00 73 2D 00 11 8D 44 67 B8 5A 43 67 9D [14:43:23]GetLastDocTimeStamp 1732545801 [14:43:23]current date 1732545809 [14:43:23]FM_GetShiftState [14:43:23]SAM_PROTO_GetShiftState [14:43:23]wFMCommunicate request_size=4 [14:43:23]MH_SAM_APDU [14:43:23]CAPDU: 80 13 01 00 [14:43:23]Write to MH i2c: E2 08 00 74 2D 80 13 01 00 00 00 00 00 1E [14:43:23]Write i2c OK [14:43:23]MH_I2C_Read... [14:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:23]Read from MH i2c: E2 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: E2 0E 00 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: E2 0E 00 74 2D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 9D [14:43:23]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:43:23]wFMCommunicate OK [14:43:23]SAM_PROTO_GetShiftState done [14:43:23]FM_GetShiftState done [14:43:23]opened in 1732493066 [14:43:23]opened+sec_in_day 1732579466 [14:43:23]quantity*price = 50010 [14:43:23]sum+1 = 50012 [14:43:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 102 25.11.2024 14:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123061 ФПД: 141017006641724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T144329&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123061&fm=141017006641724&tin=02508201610067®Number=0000000000092681&sum=50000 [14:43:25]StoreToDocumentArchive [14:43:25]shift 556 fd 123061 [14:43:25]save to /storage/0556/doc_00123061 [14:43:25]save last doc name /storage/0556/doc_00123061 to /storage/kkm_last_doc_name [14:43:25]save OK [14:43:25]Clear old archive folders... [14:43:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:25]tlvbuf is 02090A80 [14:43:25]SAM_PROTO_ClearQueue [14:43:25]wFMCommunicate request_size=4 [14:43:25]MH_SAM_APDU [14:43:25]CAPDU: 80 09 00 00 [14:43:25]Write to MH i2c: E2 08 00 81 2D 80 09 00 00 00 00 00 00 20 [14:43:25]Write i2c OK [14:43:25]MH_I2C_Read... [14:43:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:25]Read from MH i2c: E2 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 03 00 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 03 00 81 2D 00 90 00 22 [14:43:25]RAPDU: 90 00 [14:43:25]wFMCommunicate OK [14:43:25]SAM_PROTO_ClearQueue done [14:43:25]KKMCreateOFDPacket [14:43:25]OFDProtocolAddRootSTLVToBuf [14:43:25]FM_MakeSignedData [14:43:25]FM_MakeSignedData [14:43:25]SAM_PROTO_SignData [14:43:25]wFMCommunicate request_size=4 [14:43:25]MH_SAM_APDU [14:43:25]CAPDU: 80 0D 01 02 [14:43:25]Write to MH i2c: E2 08 00 82 2D 80 0D 01 02 00 00 00 00 28 [14:43:25]Write i2c OK [14:43:25]MH_I2C_Read... [14:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:25]Read from MH i2c: E2 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 03 00 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 03 00 82 2D 00 90 00 23 [14:43:25]RAPDU: 90 00 [14:43:25]wFMCommunicate OK [14:43:25]wFMCommunicate request_size=255 [14:43:25]MH_SAM_APDU [14:43:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 11 8D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E0 01 00 35 04 06 00 80 [14:43:25]Write to MH i2c: E2 02 01 83 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 11 8D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E0 01 00 35 04 06 00 80 00 00 82 [14:43:25]Write i2c OK [14:43:25]MH_I2C_Read... [14:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:25]Read from MH i2c: E2 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 03 00 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 03 00 83 2D 00 90 00 24 [14:43:25]RAPDU: 90 00 [14:43:25]wFMCommunicate OK [14:43:25]wFMCommunicate request_size=10 [14:43:25]MH_SAM_APDU [14:43:25]CAPDU: 80 0D 02 02 05 41 14 96 92 3C [14:43:25]Write to MH i2c: E2 0D 00 84 2D 80 0D 02 02 05 00 41 14 96 92 3C 00 00 EE [14:43:25]Write i2c OK [14:43:25]MH_I2C_Read... [14:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:25]Read from MH i2c: E2 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 03 00 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 03 00 84 2D 00 90 00 25 [14:43:25]RAPDU: 90 00 [14:43:25]wFMCommunicate OK [14:43:25]wFMCommunicate request_size=4 [14:43:25]MH_SAM_APDU [14:43:25]CAPDU: 80 0D 03 02 [14:43:25]Write to MH i2c: E2 08 00 85 2D 80 0D 03 02 00 00 00 00 2D [14:43:25]Write i2c OK [14:43:25]MH_I2C_Read... [14:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:25]Read from MH i2c: E2 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 0B 00 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 0B 00 85 2D 00 8A 4F F0 0F 72 C9 96 61 90 00 38 [14:43:25]RAPDU: 8A 4F F0 0F 72 C9 96 61 90 00 [14:43:25]wFMCommunicate OK [14:43:25]SAM_PROTO_SignData done [14:43:25]FM_MakeSignedData done [14:43:25]CreateOFDProtocolMessage [14:43:25]wFMCommunicate request_size=4 [14:43:25]MH_SAM_APDU [14:43:25]CAPDU: 80 11 00 00 [14:43:25]Write to MH i2c: E2 08 00 86 2D 80 11 00 00 00 00 00 00 2D [14:43:25]Write i2c OK [14:43:25]MH_I2C_Read... [14:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:25]Read from MH i2c: E2 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 17 00 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: E2 17 00 86 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 84 [14:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:43:25]wFMCommunicate OK [14:43:25]CreateOFDProtocolMessage done [14:43:25]OFDSenderStorePacket 123061 [14:43:25]StoreOFDPacket docnum=123061 [14:43:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D4 41 07 01 CF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 11 8D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E0 01 00 35 04 06 00 80 41 14 96 92 3C 8A 4F F0 0F 72 C9 96 61 [14:43:25]CheckFolder [14:43:25]dirname=/storage/ofd_packets [14:43:25]CheckFolder done [14:43:25]ProducePacketName [14:43:25]name=ofd_packets/00123061 [14:43:25]NVStorageSaveData ofd_packets/00123061 [14:43:25]File name is /storage/ofd_packets/00123061 [14:43:25]Write 301 bytes [14:43:25]NVStorageSaveData done [14:43:25]OFDSenderStorePacket done [14:43:25]KKMCreateOFDPacket done [14:43:25]NVStorageSaveData kkm_last_timestamp [14:43:25]File name is /storage/kkm_last_timestamp [14:43:25]Write 4 bytes [14:43:25]NVStorageSaveData done [14:43:25]ExternCall_PrintAddStr [14:43:25]wPrintStart [14:43:25]Write to MH i2c: 01 00 00 87 2D B4 [14:43:25]Write i2c OK [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: 01 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: 01 07 00 [14:43:25]MH_I2C_Read... [14:43:25]Read from MH i2c: 01 07 00 87 2D 00 00 00 00 00 FF 0F C9 [14:43:25]RasterBufferAndPrint [14:43:25]line Счет N : (1)717856 [14:43:25]line ИНН: 02508201610067 [14:43:25]line Контрольно-Кассовый Чек [14:43:25]line ПРОДАЖА [14:43:25]line ТРК (МРК, ГНК) : 42 [14:43:25]line Товар: 2710124130 [14:43:25]line Аи-92-К-4 [14:43:25]line 7.420 * 67.40 [14:43:25]line = 500.11 [14:43:25]line НДС 12% НСП 1% [14:43:25]line > о реализуемом товаре [14:43:25]line ОКРУГЛЕНИЕ: -0.11 [14:43:25]line ИТОГО: 500.00 [14:43:25]line Внесено: 500.00 [14:43:25]line СДАЧА: 0.00 [14:43:25]line НСП 1% : 4.43 [14:43:25]line НДС 12% : 53.11 [14:43:25]line Наличными: 500.00 [14:43:25]line Безнал.: 0.00 [14:43:25]line Место: АЗС № 64 "Партнер Нефть" [14:43:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:43:25]line СНО: Общий режим [14:43:25]line Чек 102 25.11.2024 14:43 [14:43:25]line Смена: 556 ФФД: 1.0 [14:43:25]line ЗНМ: 0300000033 [14:43:25]line РНМ: 0000000000092681 [14:43:25]line Версия ККМ: 001 [14:43:25]line ФМ: 0000000000874881 [14:43:25]line ФД: 123061 [14:43:25]line ФПД: 141017006641724 [14:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T144329&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123061&fm=141017006641724&tin=02508201610067®Number=0000000000092681&sum=50000 [14:43:25]written 0, free lines is 4095 [14:43:25]OFD Sender: Processing packet 123061 [packets to send 7, broken 6] [14:43:25]ProducePacketName [14:43:25]name=ofd_packets/00123061 [14:43:25]OFD Sender: To server: pG, [14:43:25]CommunicateWithHost lk.salyk.kg:30040 [14:43:25]ConnectInit lk.salyk.kg [14:43:25]Connected sock=10 [14:43:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D4 41 07 01 CF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 11 8D 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E0 01 00 35 04 06 00 80 41 14 96 92 3C 8A 4F F0 0F 72 C9 96 61 [14:43:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 29 D6 47 00 3B D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E0 01 00 F4 03 04 00 D6 38 44 67 B6 04 01 00 00 7B 35 F2 F9 0B B4 0E 1C [14:43:26]CommunicateWithHost err = 0 [14:43:26]CheckOFDResponse [14:43:26]1017 (14) - 77093643461234 [14:43:26]1041 (16) - 0000000000874881 [14:43:26]1040 (4) - 123061 [14:43:26]1012 (4) - 25.11.2024 08:44 [14:43:26]1206 (1) - 0 [14:43:26]OFD Sender: Remove packet 123061 [14:43:26]ProducePacketName [14:43:26]name=ofd_packets/00123061 [14:43:26]NVStorageDeleteData [14:43:26]Write to MH i2c: 01 00 00 B2 2D DF [14:43:26]Write i2c OK [14:43:26]MH_I2C_Read... [14:43:26]Read from MH i2c: 01 [14:43:26]MH_I2C_Read... [14:43:26]Read from MH i2c: 01 07 00 [14:43:26]MH_I2C_Read... [14:43:26]Read from MH i2c: 01 07 00 B2 2D 00 00 00 00 00 55 0C 47 [14:43:26]RasterBufferAndPrint [14:43:26]line [14:43:26]line [14:43:26]line [14:43:26]line [14:43:26]line [14:43:26]written 0, free lines is 3163 [14:43:26]MH_Cut [14:43:26]Write to MH i2c: D1 01 00 B9 2D 01 B8 [14:43:26]Write i2c OK [14:43:26]MH_I2C_Read... [14:43:26]Read from MH i2c: D1 [14:43:26]MH_I2C_Read... [14:43:26]Read from MH i2c: D1 01 00 [14:43:26]MH_I2C_Read... [14:43:26]Read from MH i2c: D1 01 00 B9 2D 00 B7 [14:43:26]Write to MH i2c: 01 00 00 BA 2D E7 [14:43:26]Write i2c OK [14:43:26]MH_I2C_Read... [14:43:26]OFD Sender: No OFD packet to send [14:43:27]*** Cut start [14:43:27]*** Partial cut [14:43:27]*** CUTSNS_PIN = 1 [14:43:27]*** CUTSNS_PIN = 0 [14:43:27]*** Brake cut motor [14:43:28]Read from MH i2c: 01 [14:43:28]MH_I2C_Read... [14:43:28]*** Stop cut motor [14:43:28]*** Cut end [14:43:28]Read from MH i2c: 01 07 00 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: 01 07 00 BA 2D 00 00 00 00 00 FF 0F FC [14:43:28]process_action close_receipt done [14:43:28]requested_data is exist [14:43:28]produce_requested_data [14:43:28]requested_item fm.sn is exist - process it [14:43:28]wFMCommunicate request_size=4 [14:43:28]MH_SAM_APDU [14:43:28]CAPDU: 80 11 00 00 [14:43:28]Write to MH i2c: E2 08 00 BB 2D 80 11 00 00 00 00 00 00 62 [14:43:28]Write i2c OK [14:43:28]MH_I2C_Read... [14:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:28]Read from MH i2c: E2 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 17 00 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 17 00 BB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B9 [14:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:43:28]wFMCommunicate OK [14:43:28]requested_item fd.num is exist - process it [14:43:28]SAM_PROTO_GetFieldsCounters [14:43:28]wFMCommunicate request_size=4 [14:43:28]MH_SAM_APDU [14:43:28]CAPDU: 80 13 00 00 [14:43:28]Write to MH i2c: E2 08 00 BC 2D 80 13 00 00 00 00 00 00 65 [14:43:28]Write i2c OK [14:43:28]MH_I2C_Read... [14:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:28]Read from MH i2c: E2 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 62 00 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 62 00 BC 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B5 E0 01 00 0E 04 04 00 2C 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 81 [14:43:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B5 E0 01 00 0E 04 04 00 2C 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 [14:43:28]wFMCommunicate OK [14:43:28]SAM_PROTO_GetFieldsCounters done [14:43:28]requested_item shift.num is exist - process it [14:43:28]requested_item shift.opened is exist - process it [14:43:28]req_shift_opened [14:43:28]FM_GetShiftState [14:43:28]SAM_PROTO_GetShiftState [14:43:28]wFMCommunicate request_size=4 [14:43:28]MH_SAM_APDU [14:43:28]CAPDU: 80 13 01 00 [14:43:28]Write to MH i2c: E2 08 00 BD 2D 80 13 01 00 00 00 00 00 67 [14:43:28]Write i2c OK [14:43:28]MH_I2C_Read... [14:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:28]Read from MH i2c: E2 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 0E 00 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 0E 00 BD 2D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E6 [14:43:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:43:28]wFMCommunicate OK [14:43:28]SAM_PROTO_GetShiftState done [14:43:28]FM_GetShiftState done [14:43:28]req_shift_opened done [14:43:28]requested_item shift.open_date is exist - process it [14:43:28]req_shift_open_date [14:43:28]req_shift_open_date done [14:43:28]produce_requested_data done [14:43:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123061,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:43:28]process_action_free close_receipt [14:43:28]json_value_free [14:43:28]json_value_free done [14:43:28]process_json_proto returns [14:43:28]Send response to host [14:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123061,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:43:28]free response buf [14:43:28]execute_script done [14:43:28]execute_script returns [14:43:28]free content buf [14:43:28]Sock 7.Close socket [14:43:28]Sock 7.Thread stoped [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:45]accept exits with 9 [14:52:45]New connection [14:52:45]New thread 3066723684 created [14:52:45]Thread 3066580324 joined [14:52:45]Waiting for new connection... [14:52:45] Sock 9.Parse request [14:52:45]Sock 9.Check first char [14:52:45]Sock 9.First char is OK [14:52:45]request: POST /json_proto HTTP/1.0 [14:52:45]Method: POST [14:52:45]URL: /json_proto [14:52:45]Method is POST - this is cgi request [14:52:45]url: /json_proto [14:52:45]query_string will be loaded in cgi processing [14:52:45]execute_cgi json_proto POST (null) [14:52:45]execute_cgi path=json_proto method=POST [14:52:45]POST find Content-Length [14:52:45]Host: 172.17.37.4:8080 [14:52:45]Content-Length: 677 [14:52:45]Content-Type: application/json [14:52:45] [14:52:45]POST finish read [14:52:45]Found Content-Length = 677 [14:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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:52:45]execute_script... [14:52: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)717857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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:52:45]POST & json_proto [14:52:45]process_json_proto [14:52:45]json parsed OK: [14:52:45]protocol is kg_v1.0 [14:52:45]action value=close_receipt [14:52:45]process_action close_receipt [14:52:45]cmd_close_receipt [14:52:45]MH_GetDate [14:52:45]Write to MH i2c: F0 00 00 BE 2D DA [14:52:45]Write i2c OK [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: F0 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: F0 09 00 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: F0 09 00 BE 2D 00 42 8F 44 67 B8 5A 43 67 1B [14:52:45]GetLastDocTimeStamp 1732545809 [14:52:45]current date 1732546370 [14:52:45]FM_GetShiftState [14:52:45]SAM_PROTO_GetShiftState [14:52:45]wFMCommunicate request_size=4 [14:52:45]MH_SAM_APDU [14:52:45]CAPDU: 80 13 01 00 [14:52:45]Write to MH i2c: E2 08 00 BF 2D 80 13 01 00 00 00 00 00 69 [14:52:45]Write i2c OK [14:52:45]MH_I2C_Read... [14:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:45]Read from MH i2c: E2 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: E2 0E 00 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: E2 0E 00 BF 2D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E8 [14:52:45]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:52:45]wFMCommunicate OK [14:52:45]SAM_PROTO_GetShiftState done [14:52:45]FM_GetShiftState done [14:52:45]opened in 1732493066 [14:52:45]opened+sec_in_day 1732579466 [14:52:45]quantity*price = 60053 [14:52:45]sum+1 = 60054 [14:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 103 25.11.2024 14:52 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123062 ФПД: 27460712478417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T145250&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123062&fm=27460712478417&tin=02508201610067®Number=0000000000092681&sum=60000 [14:52:46]StoreToDocumentArchive [14:52:46]shift 556 fd 123062 [14:52:46]save to /storage/0556/doc_00123062 [14:52:46]save last doc name /storage/0556/doc_00123062 to /storage/kkm_last_doc_name [14:52:46]save OK [14:52:46]Clear old archive folders... [14:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:46]tlvbuf is B6D70350 [14:52:46]SAM_PROTO_ClearQueue [14:52:46]wFMCommunicate request_size=4 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 09 00 00 [14:52:46]Write to MH i2c: E2 08 00 CC 2D 80 09 00 00 00 00 00 00 6B [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 CC 2D 00 90 00 6D [14:52:46]RAPDU: 90 00 [14:52:46]wFMCommunicate OK [14:52:46]SAM_PROTO_ClearQueue done [14:52:46]KKMCreateOFDPacket [14:52:46]OFDProtocolAddRootSTLVToBuf [14:52:46]FM_MakeSignedData [14:52:46]FM_MakeSignedData [14:52:46]SAM_PROTO_SignData [14:52:46]wFMCommunicate request_size=4 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 0D 01 02 [14:52:46]Write to MH i2c: E2 08 00 CD 2D 80 0D 01 02 00 00 00 00 73 [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 CD 2D 00 90 00 6E [14:52:46]RAPDU: 90 00 [14:52:46]wFMCommunicate OK [14:52:46]wFMCommunicate request_size=255 [14:52:46]MH_SAM_APDU [14:52: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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 42 8F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E0 01 00 35 04 06 00 18 [14:52:46]Write to MH i2c: E2 02 01 CE 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 42 8F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E0 01 00 35 04 06 00 18 00 00 C8 [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 CE 2D 00 90 00 6F [14:52:46]RAPDU: 90 00 [14:52:46]wFMCommunicate OK [14:52:46]wFMCommunicate request_size=10 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 0D 02 02 05 F9 B2 03 36 D1 [14:52:46]Write to MH i2c: E2 0D 00 CF 2D 80 0D 02 02 05 00 F9 B2 03 36 D1 00 00 35 [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 CF 2D 00 90 00 70 [14:52:46]RAPDU: 90 00 [14:52:46]wFMCommunicate OK [14:52:46]wFMCommunicate request_size=4 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 0D 03 02 [14:52:46]Write to MH i2c: E2 08 00 D0 2D 80 0D 03 02 00 00 00 00 78 [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 0B 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 0B 00 D0 2D 00 D7 8A 49 9E CB 3D 76 2F 90 00 6E [14:52:46]RAPDU: D7 8A 49 9E CB 3D 76 2F 90 00 [14:52:46]wFMCommunicate OK [14:52:46]SAM_PROTO_SignData done [14:52:46]FM_MakeSignedData done [14:52:46]CreateOFDProtocolMessage [14:52:46]wFMCommunicate request_size=4 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 11 00 00 [14:52:46]Write to MH i2c: E2 08 00 D1 2D 80 11 00 00 00 00 00 00 78 [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 17 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 17 00 D1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CF [14:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:52:46]wFMCommunicate OK [14:52:46]CreateOFDProtocolMessage done [14:52:46]OFDSenderStorePacket 123062 [14:52:46]StoreOFDPacket docnum=123062 [14:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8B 28 07 01 9B 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 42 8F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E0 01 00 35 04 06 00 18 F9 B2 03 36 D1 D7 8A 49 9E CB 3D 76 2F [14:52:46]CheckFolder [14:52:46]dirname=/storage/ofd_packets [14:52:46]CheckFolder done [14:52:46]ProducePacketName [14:52:46]name=ofd_packets/00123062 [14:52:46]NVStorageSaveData ofd_packets/00123062 [14:52:46]File name is /storage/ofd_packets/00123062 [14:52:46]Write 301 bytes [14:52:46]NVStorageSaveData done [14:52:46]OFDSenderStorePacket done [14:52:46]KKMCreateOFDPacket done [14:52:46]NVStorageSaveData kkm_last_timestamp [14:52:46]File name is /storage/kkm_last_timestamp [14:52:46]Write 4 bytes [14:52:46]NVStorageSaveData done [14:52:46]ExternCall_PrintAddStr [14:52:46]wPrintStart [14:52:46]Write to MH i2c: 01 00 00 D2 2D FF [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: 01 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: 01 07 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: 01 07 00 D2 2D 00 00 00 00 00 FF 0F 14 [14:52:46]RasterBufferAndPrint [14:52:46]line Счет N : (1)717857 [14:52:46]line ИНН: 02508201610067 [14:52:46]line Контрольно-Кассовый Чек [14:52:46]line ПРОДАЖА [14:52:46]line ТРК (МРК, ГНК) : 22 [14:52:46]line Товар: 2710124130 [14:52:46]line Аи-92-К-4 [14:52:46]line 8.910 * 67.40 [14:52:46]line = 600.53 [14:52:46]line НДС 12% НСП 1% [14:52:46]line > о реализуемом товаре [14:52:46]line ОКРУГЛЕНИЕ: -0.53 [14:52:46]line ИТОГО: 600.00 [14:52:46]line Внесено: 600.00 [14:52:46]line СДАЧА: 0.00 [14:52:46]line НСП 1% : 5.31 [14:52:46]line НДС 12% : 63.77 [14:52:46]line Наличными: 600.00 [14:52:46]line Безнал.: 0.00 [14:52:46]line Место: АЗС № 64 "Партнер Нефть" [14:52:46]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:52:46]line СНО: Общий режим [14:52:46]line Чек 103 25.11.2024 14:52 [14:52:46]line Смена: 556 ФФД: 1.0 [14:52:46]line ЗНМ: 0300000033 [14:52:46]line РНМ: 0000000000092681 [14:52:46]line Версия ККМ: 001 [14:52:46]line ФМ: 0000000000874881 [14:52:46]line ФД: 123062 [14:52:46]line ФПД: 27460712478417 [14:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T145250&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123062&fm=27460712478417&tin=02508201610067®Number=0000000000092681&sum=60000 [14:52:47]OFD Sender: Processing packet 123062 [packets to send 7, broken 6] [14:52:47]ProducePacketName [14:52:47]name=ofd_packets/00123062 [14:52:47]OFD Sender: To server: pG, [14:52:47]CommunicateWithHost lk.salyk.kg:30040 [14:52:47]ConnectInit lk.salyk.kg [14:52:47]written 0, free lines is 4095 [14:52:47]Connected sock=7 [14:52:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8B 28 07 01 9B 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 42 8F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E0 01 00 35 04 06 00 18 F9 B2 03 36 D1 D7 8A 49 9E CB 3D 76 2F [14:52:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 44 B7 47 00 FF 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E0 01 00 F4 03 04 00 08 3B 44 67 B6 04 01 00 00 02 64 57 B1 81 51 5A E1 [14:52:47]CommunicateWithHost err = 0 [14:52:47]CheckOFDResponse [14:52:47]1017 (14) - 77093643461234 [14:52:47]1041 (16) - 0000000000874881 [14:52:47]1040 (4) - 123062 [14:52:47]1012 (4) - 25.11.2024 08:53 [14:52:47]1206 (1) - 0 [14:52:47]OFD Sender: Remove packet 123062 [14:52:47]ProducePacketName [14:52:47]name=ofd_packets/00123062 [14:52:47]NVStorageDeleteData [14:52:47]Write to MH i2c: 01 00 00 FD 2D 2A [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: 01 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: 01 07 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: 01 07 00 FD 2D 00 00 00 00 00 4C 0C 89 [14:52:47]RasterBufferAndPrint [14:52:47]line [14:52:47]line [14:52:47]line [14:52:47]line [14:52:47]line [14:52:47]written 0, free lines is 3152 [14:52:47]MH_Cut [14:52:47]Write to MH i2c: D1 01 00 04 2E 01 04 [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: D1 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: D1 01 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: D1 01 00 04 2E 00 03 [14:52:47]Write to MH i2c: 01 00 00 05 2E 33 [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:48]OFD Sender: No OFD packet to send [14:52:49]*** Cut start [14:52:49]*** Partial cut [14:52:49]*** CUTSNS_PIN = 1 [14:52:49]*** CUTSNS_PIN = 0 [14:52:49]*** Brake cut motor [14:52:49]Read from MH i2c: 01 [14:52:49]MH_I2C_Read... [14:52:49]*** Stop cut motor [14:52:49]*** Cut end [14:52:49]Read from MH i2c: 01 07 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: 01 07 00 05 2E 00 00 00 00 00 FF 0F 48 [14:52:49]process_action close_receipt done [14:52:49]requested_data is exist [14:52:49]produce_requested_data [14:52:49]requested_item fm.sn is exist - process it [14:52:49]wFMCommunicate request_size=4 [14:52:49]MH_SAM_APDU [14:52:49]CAPDU: 80 11 00 00 [14:52:49]Write to MH i2c: E2 08 00 06 2E 80 11 00 00 00 00 00 00 AE [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:49]Read from MH i2c: E2 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 17 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 17 00 06 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 05 [14:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:52:49]wFMCommunicate OK [14:52:49]requested_item fd.num is exist - process it [14:52:49]SAM_PROTO_GetFieldsCounters [14:52:49]wFMCommunicate request_size=4 [14:52:49]MH_SAM_APDU [14:52:49]CAPDU: 80 13 00 00 [14:52:49]Write to MH i2c: E2 08 00 07 2E 80 13 00 00 00 00 00 00 B1 [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:49]Read from MH i2c: E2 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 62 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 62 00 07 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B6 E0 01 00 0E 04 04 00 2C 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 D1 [14:52:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B6 E0 01 00 0E 04 04 00 2C 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 [14:52:49]wFMCommunicate OK [14:52:49]SAM_PROTO_GetFieldsCounters done [14:52:49]requested_item shift.num is exist - process it [14:52:49]requested_item shift.opened is exist - process it [14:52:49]req_shift_opened [14:52:49]FM_GetShiftState [14:52:49]SAM_PROTO_GetShiftState [14:52:49]wFMCommunicate request_size=4 [14:52:49]MH_SAM_APDU [14:52:49]CAPDU: 80 13 01 00 [14:52:49]Write to MH i2c: E2 08 00 08 2E 80 13 01 00 00 00 00 00 B3 [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:50]Read from MH i2c: E2 [14:52:50]MH_I2C_Read... [14:52:50]Read from MH i2c: E2 0E 00 [14:52:50]MH_I2C_Read... [14:52:50]Read from MH i2c: E2 0E 00 08 2E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 32 [14:52:50]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:52:50]wFMCommunicate OK [14:52:50]SAM_PROTO_GetShiftState done [14:52:50]FM_GetShiftState done [14:52:50]req_shift_opened done [14:52:50]requested_item shift.open_date is exist - process it [14:52:50]req_shift_open_date [14:52:50]req_shift_open_date done [14:52:50]produce_requested_data done [14:52:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123062,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:52:50]process_action_free close_receipt [14:52:50]json_value_free [14:52:50]json_value_free done [14:52:50]process_json_proto returns [14:52:50]Send response to host [14:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123062,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:52:50]free response buf [14:52:50]execute_script done [14:52:50]execute_script returns [14:52:50]free content buf [14:52:50]Sock 9.Close socket [14:52:50]Sock 9.Thread stoped [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:47]accept exits with 10 [14:53:47]New connection [14:53:47]New thread 3066580324 created [14:53:47]Thread 3066723684 joined [14:53:47]Waiting for new connection... [14:53:47] Sock 10.Parse request [14:53:47]Sock 10.Check first char [14:53:47]Sock 10.First char is OK [14:53:47]request: POST /json_proto HTTP/1.0 [14:53:47]Method: POST [14:53:47]URL: /json_proto [14:53:47]Method is POST - this is cgi request [14:53:47]url: /json_proto [14:53:47]query_string will be loaded in cgi processing [14:53:47]execute_cgi json_proto POST (null) [14:53:47]execute_cgi path=json_proto method=POST [14:53:47]POST find Content-Length [14:53:47]Host: 172.17.37.4:8080 [14:53:47]Content-Length: 677 [14:53:47]Content-Type: application/json [14:53:47] [14:53:47]POST finish read [14:53:47]Found Content-Length = 677 [14:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 6.980, "sum" : 470.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:47]execute_script... [14:53: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)717858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 6.980, "sum" : 470.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:47]POST & json_proto [14:53:47]process_json_proto [14:53:47]json parsed OK: [14:53:47]protocol is kg_v1.0 [14:53:47]action value=close_receipt [14:53:47]process_action close_receipt [14:53:47]cmd_close_receipt [14:53:47]MH_GetDate [14:53:47]Write to MH i2c: F0 00 00 09 2E 26 [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: F0 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: F0 09 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: F0 09 00 09 2E 00 81 8F 44 67 B8 5A 43 67 A6 [14:53:47]GetLastDocTimeStamp 1732546370 [14:53:47]current date 1732546433 [14:53:47]FM_GetShiftState [14:53:47]SAM_PROTO_GetShiftState [14:53:47]wFMCommunicate request_size=4 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 13 01 00 [14:53:47]Write to MH i2c: E2 08 00 0A 2E 80 13 01 00 00 00 00 00 B5 [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 0E 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 0E 00 0A 2E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 34 [14:53:47]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:53:47]wFMCommunicate OK [14:53:47]SAM_PROTO_GetShiftState done [14:53:47]FM_GetShiftState done [14:53:47]opened in 1732493066 [14:53:47]opened+sec_in_day 1732579466 [14:53:47]quantity*price = 47045 [14:53:47]sum+1 = 47046 [14:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.96 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 104 25.11.2024 14:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123063 ФПД: 145936389341571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T145353&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123063&fm=145936389341571&tin=02508201610067®Number=0000000000092681&sum=47000 [14:53:48]StoreToDocumentArchive [14:53:48]shift 556 fd 123063 [14:53:48]save to /storage/0556/doc_00123063 [14:53:48]save last doc name /storage/0556/doc_00123063 to /storage/kkm_last_doc_name [14:53:48]save OK [14:53:48]Clear old archive folders... [14:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:48]tlvbuf is 01F5ECF0 [14:53:48]SAM_PROTO_ClearQueue [14:53:48]wFMCommunicate request_size=4 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 09 00 00 [14:53:48]Write to MH i2c: E2 08 00 17 2E 80 09 00 00 00 00 00 00 B7 [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 17 2E 00 90 00 B9 [14:53:48]RAPDU: 90 00 [14:53:48]wFMCommunicate OK [14:53:48]SAM_PROTO_ClearQueue done [14:53:48]KKMCreateOFDPacket [14:53:48]OFDProtocolAddRootSTLVToBuf [14:53:48]FM_MakeSignedData [14:53:48]FM_MakeSignedData [14:53:48]SAM_PROTO_SignData [14:53:48]wFMCommunicate request_size=4 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 0D 01 02 [14:53:48]Write to MH i2c: E2 08 00 18 2E 80 0D 01 02 00 00 00 00 BF [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 18 2E 00 90 00 BA [14:53:49]RAPDU: 90 00 [14:53:49]wFMCommunicate OK [14:53:49]wFMCommunicate request_size=255 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 44 1B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 C5 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 81 8F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B7 E0 01 00 35 04 06 00 84 [14:53:49]Write to MH i2c: E2 02 01 19 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 34 FF 03 08 00 03 44 1B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 C5 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 81 8F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B7 E0 01 00 35 04 06 00 84 00 00 59 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 19 2E 00 90 00 BB [14:53:49]RAPDU: 90 00 [14:53:49]wFMCommunicate OK [14:53:49]wFMCommunicate request_size=10 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 0D 02 02 05 BA 76 A5 81 83 [14:53:49]Write to MH i2c: E2 0D 00 1A 2E 80 0D 02 02 05 00 BA 76 A5 81 83 00 00 A5 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 1A 2E 00 90 00 BC [14:53:49]RAPDU: 90 00 [14:53:49]wFMCommunicate OK [14:53:49]wFMCommunicate request_size=4 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 0D 03 02 [14:53:49]Write to MH i2c: E2 08 00 1B 2E 80 0D 03 02 00 00 00 00 C4 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 0B 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 0B 00 1B 2E 00 CF 92 0A 4C 18 70 88 19 90 00 A5 [14:53:49]RAPDU: CF 92 0A 4C 18 70 88 19 90 00 [14:53:49]wFMCommunicate OK [14:53:49]SAM_PROTO_SignData done [14:53:49]FM_MakeSignedData done [14:53:49]CreateOFDProtocolMessage [14:53:49]wFMCommunicate request_size=4 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 11 00 00 [14:53:49]Write to MH i2c: E2 08 00 1C 2E 80 11 00 00 00 00 00 00 C4 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 17 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 17 00 1C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1B [14:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:53:49]wFMCommunicate OK [14:53:49]CreateOFDProtocolMessage done [14:53:49]OFDSenderStorePacket 123063 [14:53:49]StoreOFDPacket docnum=123063 [14:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 87 84 07 01 4B 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 44 1B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 C5 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 81 8F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B7 E0 01 00 35 04 06 00 84 BA 76 A5 81 83 CF 92 0A 4C 18 70 88 19 [14:53:49]CheckFolder [14:53:49]dirname=/storage/ofd_packets [14:53:49]CheckFolder done [14:53:49]ProducePacketName [14:53:49]name=ofd_packets/00123063 [14:53:49]NVStorageSaveData ofd_packets/00123063 [14:53:49]File name is /storage/ofd_packets/00123063 [14:53:49]Write 301 bytes [14:53:49]NVStorageSaveData done [14:53:49]OFDSenderStorePacket done [14:53:49]KKMCreateOFDPacket done [14:53:49]NVStorageSaveData kkm_last_timestamp [14:53:49]File name is /storage/kkm_last_timestamp [14:53:49]Write 4 bytes [14:53:49]NVStorageSaveData done [14:53:49]ExternCall_PrintAddStr [14:53:49]wPrintStart [14:53:49]Write to MH i2c: 01 00 00 1D 2E 4B [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 07 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 07 00 1D 2E 00 00 00 00 00 FF 0F 60 [14:53:49]RasterBufferAndPrint [14:53:49]line Счет N : (1)717858 [14:53:49]line ИНН: 02508201610067 [14:53:49]line Контрольно-Кассовый Чек [14:53:49]line ПРОДАЖА [14:53:49]line ТРК (МРК, ГНК) : 12 [14:53:49]line Товар: 2710124130 [14:53:49]line Аи-92-К-4 [14:53:49]line 6.980 * 67.40 [14:53:49]line = 470.45 [14:53:49]line НДС 12% НСП 1% [14:53:49]line > о реализуемом товаре [14:53:49]line ОКРУГЛЕНИЕ: -0.45 [14:53:49]line ИТОГО: 470.00 [14:53:49]line Внесено: 470.00 [14:53:49]line СДАЧА: 0.00 [14:53:49]line НСП 1% : 4.16 [14:53:49]line НДС 12% : 49.96 [14:53:49]line Наличными: 470.00 [14:53:49]line Безнал.: 0.00 [14:53:49]line Место: АЗС № 64 "Партнер Нефть" [14:53:49]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:53:49]line СНО: Общий режим [14:53:49]line Чек 104 25.11.2024 14:53 [14:53:49]line Смена: 556 ФФД: 1.0 [14:53:49]line ЗНМ: 0300000033 [14:53:49]line РНМ: 0000000000092681 [14:53:49]line Версия ККМ: 001 [14:53:49]line ФМ: 0000000000874881 [14:53:49]line ФД: 123063 [14:53:49]line ФПД: 145936389341571 [14:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T145353&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123063&fm=145936389341571&tin=02508201610067®Number=0000000000092681&sum=47000 [14:53:49]OFD Sender: Processing packet 123063 [packets to send 7, broken 6] [14:53:49]ProducePacketName [14:53:49]name=ofd_packets/00123063 [14:53:49]OFD Sender: To server: pG, [14:53:49]CommunicateWithHost lk.salyk.kg:30040 [14:53:49]ConnectInit lk.salyk.kg [14:53:49]written 0, free lines is 4095 [14:53:49]Connected sock=9 [14:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 87 84 07 01 4B 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 44 1B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 C5 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 81 8F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B7 E0 01 00 35 04 06 00 84 BA 76 A5 81 83 CF 92 0A 4C 18 70 88 19 [14:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 43 F7 47 00 44 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 34 38 38 31 10 04 04 00 B7 E0 01 00 F4 03 04 00 46 3B 44 67 B6 04 01 00 00 13 E6 10 C8 90 0A 8E 67 [14:53:50]CommunicateWithHost err = 0 [14:53:50]CheckOFDResponse [14:53:50]1017 (14) - 77093643461234 [14:53:50]1041 (16) - 0000000000874881 [14:53:50]1040 (4) - 123063 [14:53:50]1012 (4) - 25.11.2024 08:54 [14:53:50]1206 (1) - 0 [14:53:50]OFD Sender: Remove packet 123063 [14:53:50]ProducePacketName [14:53:50]name=ofd_packets/00123063 [14:53:50]NVStorageDeleteData [14:53:50]Write to MH i2c: 01 00 00 48 2E 76 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 07 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 07 00 48 2E 00 00 00 00 00 44 0C CD [14:53:50]RasterBufferAndPrint [14:53:50]line [14:53:50]line [14:53:50]line [14:53:50]line [14:53:50]line [14:53:50]written 0, free lines is 3145 [14:53:50]MH_Cut [14:53:50]Write to MH i2c: D1 01 00 4F 2E 01 4F [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: D1 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: D1 01 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: D1 01 00 4F 2E 00 4E [14:53:50]Write to MH i2c: 01 00 00 50 2E 7E [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]OFD Sender: No OFD packet to send [14:53:51]*** Cut start [14:53:51]*** Partial cut [14:53:51]*** CUTSNS_PIN = 1 [14:53:51]*** CUTSNS_PIN = 0 [14:53:51]*** Brake cut motor [14:53:52]Read from MH i2c: 01 [14:53:52]MH_I2C_Read... [14:53:52]*** Stop cut motor [14:53:52]*** Cut end [14:53:52]Read from MH i2c: 01 07 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: 01 07 00 50 2E 00 00 00 00 00 FF 0F 93 [14:53:52]process_action close_receipt done [14:53:52]requested_data is exist [14:53:52]produce_requested_data [14:53:52]requested_item fm.sn is exist - process it [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 11 00 00 [14:53:52]Write to MH i2c: E2 08 00 51 2E 80 11 00 00 00 00 00 00 F9 [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 17 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 17 00 51 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 50 [14:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:53:52]wFMCommunicate OK [14:53:52]requested_item fd.num is exist - process it [14:53:52]SAM_PROTO_GetFieldsCounters [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 13 00 00 [14:53:52]Write to MH i2c: E2 08 00 52 2E 80 13 00 00 00 00 00 00 FC [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 62 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 62 00 52 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B7 E0 01 00 0E 04 04 00 2C 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 20 [14:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B7 E0 01 00 0E 04 04 00 2C 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 [14:53:52]wFMCommunicate OK [14:53:52]SAM_PROTO_GetFieldsCounters done [14:53:52]requested_item shift.num is exist - process it [14:53:52]requested_item shift.opened is exist - process it [14:53:52]req_shift_opened [14:53:52]FM_GetShiftState [14:53:52]SAM_PROTO_GetShiftState [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 13 01 00 [14:53:52]Write to MH i2c: E2 08 00 53 2E 80 13 01 00 00 00 00 00 FE [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 53 2E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 7D [14:53:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:53:52]wFMCommunicate OK [14:53:52]SAM_PROTO_GetShiftState done [14:53:52]FM_GetShiftState done [14:53:52]req_shift_opened done [14:53:52]requested_item shift.open_date is exist - process it [14:53:52]req_shift_open_date [14:53:52]req_shift_open_date done [14:53:52]produce_requested_data done [14:53:52]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123063,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:53:52]process_action_free close_receipt [14:53:52]json_value_free [14:53:52]json_value_free done [14:53:52]process_json_proto returns [14:53:52]Send response to host [14:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123063,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:53:52]free response buf [14:53:52]execute_script done [14:53:52]execute_script returns [14:53:52]free content buf [14:53:52]Sock 10.Close socket [14:53:52]Sock 10.Thread stoped [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:57:58]accept exits with 7 [14:57:58]New connection [14:57:58]New thread 3066723684 created [14:57:58]Thread 3066580324 joined [14:57:58]Waiting for new connection... [14:57:58] Sock 7.Parse request [14:57:58]Sock 7.Check first char [14:57:58]Sock 7.First char is OK [14:57:58]request: POST /json_proto HTTP/1.0 [14:57:58]Method: POST [14:57:58]URL: /json_proto [14:57:58]Method is POST - this is cgi request [14:57:58]url: /json_proto [14:57:58]query_string will be loaded in cgi processing [14:57:58]execute_cgi json_proto POST (null) [14:57:58]execute_cgi path=json_proto method=POST [14:57:58]POST find Content-Length [14:57:58]Host: 172.17.37.4:8080 [14:57:58]Content-Length: 678 [14:57:58]Content-Type: application/json [14:57:58] [14:57:58]POST finish read [14:57:58]Found Content-Length = 678 [14:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "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:57:58]execute_script... [14:57: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)717859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "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:57:58]POST & json_proto [14:57:58]process_json_proto [14:57:58]json parsed OK: [14:57:58]protocol is kg_v1.0 [14:57:58]action value=close_receipt [14:57:58]process_action close_receipt [14:57:58]cmd_close_receipt [14:57:58]MH_GetDate [14:57:58]Write to MH i2c: F0 00 00 54 2E 71 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: F0 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: F0 09 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: F0 09 00 54 2E 00 7C 90 44 67 B8 5A 43 67 ED [14:57:58]GetLastDocTimeStamp 1732546433 [14:57:58]current date 1732546684 [14:57:58]FM_GetShiftState [14:57:58]SAM_PROTO_GetShiftState [14:57:58]wFMCommunicate request_size=4 [14:57:58]MH_SAM_APDU [14:57:58]CAPDU: 80 13 01 00 [14:57:58]Write to MH i2c: E2 08 00 55 2E 80 13 01 00 00 00 00 00 00 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:58]Read from MH i2c: E2 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: E2 0E 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: E2 0E 00 55 2E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 7F [14:57:58]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:57:58]wFMCommunicate OK [14:57:58]SAM_PROTO_GetShiftState done [14:57:58]FM_GetShiftState done [14:57:58]opened in 1732493066 [14:57:58]opened+sec_in_day 1732579466 [14:57:58]quantity*price = 70028 [14:57:58]sum+1 = 70030 [14:57:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 105 25.11.2024 14:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123064 ФПД: 154276717355360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T145804&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123064&fm=154276717355360&tin=02508201610067®Number=0000000000092681&sum=70000 [14:57:59]StoreToDocumentArchive [14:57:59]shift 556 fd 123064 [14:57:59]save to /storage/0556/doc_00123064 [14:57:59]save last doc name /storage/0556/doc_00123064 to /storage/kkm_last_doc_name [14:57:59]save OK [14:57:59]Clear old archive folders... [14:57:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:59]tlvbuf is 020A9CF0 [14:57:59]SAM_PROTO_ClearQueue [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 09 00 00 [14:57:59]Write to MH i2c: E2 08 00 62 2E 80 09 00 00 00 00 00 00 02 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 03 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 03 00 62 2E 00 90 00 04 [14:57:59]RAPDU: 90 00 [14:57:59]wFMCommunicate OK [14:57:59]SAM_PROTO_ClearQueue done [14:57:59]KKMCreateOFDPacket [14:57:59]OFDProtocolAddRootSTLVToBuf [14:57:59]FM_MakeSignedData [14:57:59]FM_MakeSignedData [14:57:59]SAM_PROTO_SignData [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 0D 01 02 [14:57:59]Write to MH i2c: E2 08 00 63 2E 80 0D 01 02 00 00 00 00 0A [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 03 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 03 00 63 2E 00 90 00 05 [14:57:59]RAPDU: 90 00 [14:57:59]wFMCommunicate OK [14:57:59]wFMCommunicate request_size=255 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 69 00 00 00 F4 03 04 00 7C 90 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E0 01 00 35 04 06 00 8C [14:57:59]Write to MH i2c: E2 02 01 64 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 69 00 00 00 F4 03 04 00 7C 90 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E0 01 00 35 04 06 00 8C 00 00 F2 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 64 2E 00 90 00 06 [14:58:00]RAPDU: 90 00 [14:58:00]wFMCommunicate OK [14:58:00]wFMCommunicate request_size=10 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 0D 02 02 05 50 58 EF 61 60 [14:58:00]Write to MH i2c: E2 0D 00 65 2E 80 0D 02 02 05 00 50 58 EF 61 60 00 00 6F [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 65 2E 00 90 00 07 [14:58:00]RAPDU: 90 00 [14:58:00]wFMCommunicate OK [14:58:00]wFMCommunicate request_size=4 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 0D 03 02 [14:58:00]Write to MH i2c: E2 08 00 66 2E 80 0D 03 02 00 00 00 00 0F [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 0B 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 0B 00 66 2E 00 1D BD 92 90 16 3C 79 D9 90 00 B0 [14:58:00]RAPDU: 1D BD 92 90 16 3C 79 D9 90 00 [14:58:00]wFMCommunicate OK [14:58:00]SAM_PROTO_SignData done [14:58:00]FM_MakeSignedData done [14:58:00]CreateOFDProtocolMessage [14:58:00]wFMCommunicate request_size=4 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 11 00 00 [14:58:00]Write to MH i2c: E2 08 00 67 2E 80 11 00 00 00 00 00 00 0F [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 17 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 17 00 67 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 66 [14:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:58:00]wFMCommunicate OK [14:58:00]CreateOFDProtocolMessage done [14:58:00]OFDSenderStorePacket 123064 [14:58:00]StoreOFDPacket docnum=123064 [14:58:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1F B5 07 01 43 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 69 00 00 00 F4 03 04 00 7C 90 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E0 01 00 35 04 06 00 8C 50 58 EF 61 60 1D BD 92 90 16 3C 79 D9 [14:58:00]CheckFolder [14:58:00]dirname=/storage/ofd_packets [14:58:00]CheckFolder done [14:58:00]ProducePacketName [14:58:00]name=ofd_packets/00123064 [14:58:00]NVStorageSaveData ofd_packets/00123064 [14:58:00]File name is /storage/ofd_packets/00123064 [14:58:00]Write 301 bytes [14:58:00]NVStorageSaveData done [14:58:00]OFDSenderStorePacket done [14:58:00]KKMCreateOFDPacket done [14:58:00]NVStorageSaveData kkm_last_timestamp [14:58:00]File name is /storage/kkm_last_timestamp [14:58:00]Write 4 bytes [14:58:00]NVStorageSaveData done [14:58:00]ExternCall_PrintAddStr [14:58:00]wPrintStart [14:58:00]Write to MH i2c: 01 00 00 68 2E 96 [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 68 2E 00 00 00 00 00 FF 0F AB [14:58:00]RasterBufferAndPrint [14:58:00]line Счет N : (1)717859 [14:58:00]line ИНН: 02508201610067 [14:58:00]line Контрольно-Кассовый Чек [14:58:00]line ПРОДАЖА [14:58:00]line ТРК (МРК, ГНК) : 12 [14:58:00]line Товар: 2710124130 [14:58:00]line Аи-92-К-4 [14:58:00]line 10.390 * 67.40 [14:58:00]line = 700.29 [14:58:00]line НДС 12% НСП 1% [14:58:00]line > о реализуемом товаре [14:58:00]line ОКРУГЛЕНИЕ: -0.29 [14:58:00]line ИТОГО: 700.00 [14:58:00]line Внесено: 700.00 [14:58:00]line СДАЧА: 0.00 [14:58:00]line НСП 1% : 6.20 [14:58:00]line НДС 12% : 74.37 [14:58:00]line Наличными: 700.00 [14:58:00]line Безнал.: 0.00 [14:58:00]line Место: АЗС № 64 "Партнер Нефть" [14:58:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:58:00]line СНО: Общий режим [14:58:00]line Чек 105 25.11.2024 14:58 [14:58:00]line Смена: 556 ФФД: 1.0 [14:58:00]line ЗНМ: 0300000033 [14:58:00]line РНМ: 0000000000092681 [14:58:00]line Версия ККМ: 001 [14:58:00]line ФМ: 0000000000874881 [14:58:00]line ФД: 123064 [14:58:00]line ФПД: 154276717355360 [14:58:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T145804&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123064&fm=154276717355360&tin=02508201610067®Number=0000000000092681&sum=70000 [14:58:00]OFD Sender: Processing packet 123064 [packets to send 7, broken 6] [14:58:00]ProducePacketName [14:58:00]name=ofd_packets/00123064 [14:58:00]OFD Sender: To server: pG, [14:58:00]CommunicateWithHost lk.salyk.kg:30040 [14:58:00]ConnectInit lk.salyk.kg [14:58:00]written 0, free lines is 4095 [14:58:00]Connected sock=10 [14:58:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1F B5 07 01 43 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 69 00 00 00 F4 03 04 00 7C 90 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E0 01 00 35 04 06 00 8C 50 58 EF 61 60 1D BD 92 90 16 3C 79 D9 [14:58:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 CC B8 47 00 27 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E0 01 00 F4 03 04 00 41 3C 44 67 B6 04 01 00 00 CA B3 18 8E 43 E3 F3 72 [14:58:01]CommunicateWithHost err = 0 [14:58:01]CheckOFDResponse [14:58:01]1017 (14) - 77093643461234 [14:58:01]1041 (16) - 0000000000874881 [14:58:01]1040 (4) - 123064 [14:58:01]1012 (4) - 25.11.2024 08:58 [14:58:01]1206 (1) - 0 [14:58:01]OFD Sender: Remove packet 123064 [14:58:01]ProducePacketName [14:58:01]name=ofd_packets/00123064 [14:58:01]NVStorageDeleteData [14:58:01]Write to MH i2c: 01 00 00 93 2E C1 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 93 2E 00 00 00 00 00 50 0C 24 [14:58:01]RasterBufferAndPrint [14:58:01]line [14:58:01]line [14:58:01]line [14:58:01]line [14:58:01]line [14:58:01]written 0, free lines is 3156 [14:58:01]MH_Cut [14:58:01]Write to MH i2c: D1 01 00 9A 2E 01 9A [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D1 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D1 01 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D1 01 00 9A 2E 00 99 [14:58:01]Write to MH i2c: 01 00 00 9B 2E C9 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]OFD Sender: No OFD packet to send [14:58:02]*** Cut start [14:58:02]*** Partial cut [14:58:02]*** CUTSNS_PIN = 1 [14:58:02]*** CUTSNS_PIN = 0 [14:58:02]*** Brake cut motor [14:58:03]Read from MH i2c: 01 [14:58:03]MH_I2C_Read... [14:58:03]*** Stop cut motor [14:58:03]*** Cut end [14:58:03]Read from MH i2c: 01 07 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 9B 2E 00 00 00 00 00 FF 0F DE [14:58:03]process_action close_receipt done [14:58:03]requested_data is exist [14:58:03]produce_requested_data [14:58:03]requested_item fm.sn is exist - process it [14:58:03]wFMCommunicate request_size=4 [14:58:03]MH_SAM_APDU [14:58:03]CAPDU: 80 11 00 00 [14:58:03]Write to MH i2c: E2 08 00 9C 2E 80 11 00 00 00 00 00 00 44 [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:03]Read from MH i2c: E2 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: E2 17 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: E2 17 00 9C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9B [14:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:58:03]wFMCommunicate OK [14:58:03]requested_item fd.num is exist - process it [14:58:03]SAM_PROTO_GetFieldsCounters [14:58:03]wFMCommunicate request_size=4 [14:58:03]MH_SAM_APDU [14:58:03]CAPDU: 80 13 00 00 [14:58:03]Write to MH i2c: E2 08 00 9D 2E 80 13 00 00 00 00 00 00 47 [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:03]Read from MH i2c: E2 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: E2 62 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: E2 62 00 9D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B8 E0 01 00 0E 04 04 00 2C 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 6F [14:58:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B8 E0 01 00 0E 04 04 00 2C 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 [14:58:03]wFMCommunicate OK [14:58:03]SAM_PROTO_GetFieldsCounters done [14:58:03]requested_item shift.num is exist - process it [14:58:03]requested_item shift.opened is exist - process it [14:58:03]req_shift_opened [14:58:03]FM_GetShiftState [14:58:03]SAM_PROTO_GetShiftState [14:58:03]wFMCommunicate request_size=4 [14:58:03]MH_SAM_APDU [14:58:03]CAPDU: 80 13 01 00 [14:58:03]Write to MH i2c: E2 08 00 9E 2E 80 13 01 00 00 00 00 00 49 [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:03]Read from MH i2c: E2 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: E2 0E 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: E2 0E 00 9E 2E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C8 [14:58:03]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [14:58:03]wFMCommunicate OK [14:58:03]SAM_PROTO_GetShiftState done [14:58:03]FM_GetShiftState done [14:58:03]req_shift_opened done [14:58:03]requested_item shift.open_date is exist - process it [14:58:03]req_shift_open_date [14:58:03]req_shift_open_date done [14:58:03]produce_requested_data done [14:58:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123064,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [14:58:03]process_action_free close_receipt [14:58:03]json_value_free [14:58:03]json_value_free done [14:58:03]process_json_proto returns [14:58:03]Send response to host [14:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123064,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [14:58:03]free response buf [14:58:03]execute_script done [14:58:03]execute_script returns [14:58:03]free content buf [14:58:03]Sock 7.Close socket [14:58:03]Sock 7.Thread stoped [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:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]accept exits with 9 [15:07:21]New connection [15:07:21]New thread 3066580324 created [15:07:21]Thread 3066723684 joined [15:07:21]Waiting for new connection... [15:07:21] Sock 9.Parse request [15:07:21]Sock 9.Check first char [15:07:21]Sock 9.First char is OK [15:07:21]request: POST /json_proto HTTP/1.0 [15:07:21]Method: POST [15:07:21]URL: /json_proto [15:07:21]Method is POST - this is cgi request [15:07:21]url: /json_proto [15:07:21]query_string will be loaded in cgi processing [15:07:21]execute_cgi json_proto POST (null) [15:07:21]execute_cgi path=json_proto method=POST [15:07:21]POST find Content-Length [15:07:21]Host: 172.17.37.4:8080 [15:07:21]Content-Length: 677 [15:07:21]Content-Type: application/json [15:07:21] [15:07:21]POST finish read [15:07:21]Found Content-Length = 677 [15:07:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:21]execute_script... [15:07: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)717860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:21]POST & json_proto [15:07:21]process_json_proto [15:07:21]json parsed OK: [15:07:21]protocol is kg_v1.0 [15:07:21]action value=close_receipt [15:07:21]process_action close_receipt [15:07:21]cmd_close_receipt [15:07:21]MH_GetDate [15:07:21]Write to MH i2c: F0 00 00 9F 2E BC [15:07:21]Write i2c OK [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: F0 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: F0 09 00 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: F0 09 00 9F 2E 00 AF 92 44 67 B8 5A 43 67 6D [15:07:21]GetLastDocTimeStamp 1732546684 [15:07:21]current date 1732547247 [15:07:21]FM_GetShiftState [15:07:21]SAM_PROTO_GetShiftState [15:07:21]wFMCommunicate request_size=4 [15:07:21]MH_SAM_APDU [15:07:21]CAPDU: 80 13 01 00 [15:07:21]Write to MH i2c: E2 08 00 A0 2E 80 13 01 00 00 00 00 00 4B [15:07:21]Write i2c OK [15:07:21]MH_I2C_Read... [15:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:21]Read from MH i2c: E2 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 0E 00 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 0E 00 A0 2E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 CA [15:07:21]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:07:21]wFMCommunicate OK [15:07:21]SAM_PROTO_GetShiftState done [15:07:21]FM_GetShiftState done [15:07:21]opened in 1732493066 [15:07:21]opened+sec_in_day 1732579466 [15:07:21]quantity*price = 60053 [15:07:21]sum+1 = 60054 [15:07:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 106 25.11.2024 15:07 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123065 ФПД: 118090398822120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T150727&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123065&fm=118090398822120&tin=02508201610067®Number=0000000000092681&sum=60000 [15:07:23]StoreToDocumentArchive [15:07:23]shift 556 fd 123065 [15:07:23]save to /storage/0556/doc_00123065 [15:07:23]save last doc name /storage/0556/doc_00123065 to /storage/kkm_last_doc_name [15:07:23]save OK [15:07:23]Clear old archive folders... [15:07:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:23]tlvbuf is B6F20960 [15:07:23]SAM_PROTO_ClearQueue [15:07:23]wFMCommunicate request_size=4 [15:07:23]MH_SAM_APDU [15:07:23]CAPDU: 80 09 00 00 [15:07:23]Write to MH i2c: E2 08 00 AD 2E 80 09 00 00 00 00 00 00 4D [15:07:23]Write i2c OK [15:07:23]MH_I2C_Read... [15:07:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:23]Read from MH i2c: E2 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 03 00 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 03 00 AD 2E 00 90 00 4F [15:07:23]RAPDU: 90 00 [15:07:23]wFMCommunicate OK [15:07:23]SAM_PROTO_ClearQueue done [15:07:23]KKMCreateOFDPacket [15:07:23]OFDProtocolAddRootSTLVToBuf [15:07:23]FM_MakeSignedData [15:07:23]FM_MakeSignedData [15:07:23]SAM_PROTO_SignData [15:07:23]wFMCommunicate request_size=4 [15:07:23]MH_SAM_APDU [15:07:23]CAPDU: 80 0D 01 02 [15:07:23]Write to MH i2c: E2 08 00 AE 2E 80 0D 01 02 00 00 00 00 55 [15:07:23]Write i2c OK [15:07:23]MH_I2C_Read... [15:07:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:23]Read from MH i2c: E2 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 03 00 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 03 00 AE 2E 00 90 00 50 [15:07:23]RAPDU: 90 00 [15:07:23]wFMCommunicate OK [15:07:23]wFMCommunicate request_size=255 [15:07:23]MH_SAM_APDU [15:07:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AF 92 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E0 01 00 35 04 06 00 6B [15:07:23]Write to MH i2c: E2 02 01 AF 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AF 92 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E0 01 00 35 04 06 00 6B 00 00 73 [15:07:23]Write i2c OK [15:07:23]MH_I2C_Read... [15:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:23]Read from MH i2c: E2 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 03 00 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 03 00 AF 2E 00 90 00 51 [15:07:23]RAPDU: 90 00 [15:07:23]wFMCommunicate OK [15:07:23]wFMCommunicate request_size=10 [15:07:23]MH_SAM_APDU [15:07:23]CAPDU: 80 0D 02 02 05 67 10 45 EE E8 [15:07:23]Write to MH i2c: E2 0D 00 B0 2E 80 0D 02 02 05 00 67 10 45 EE E8 00 00 F4 [15:07:23]Write i2c OK [15:07:23]MH_I2C_Read... [15:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:23]Read from MH i2c: E2 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 03 00 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 03 00 B0 2E 00 90 00 52 [15:07:23]RAPDU: 90 00 [15:07:23]wFMCommunicate OK [15:07:23]wFMCommunicate request_size=4 [15:07:23]MH_SAM_APDU [15:07:23]CAPDU: 80 0D 03 02 [15:07:23]Write to MH i2c: E2 08 00 B1 2E 80 0D 03 02 00 00 00 00 5A [15:07:23]Write i2c OK [15:07:23]MH_I2C_Read... [15:07:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:23]Read from MH i2c: E2 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 0B 00 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 0B 00 B1 2E 00 3B 99 CB BF 05 DF 13 E3 90 00 93 [15:07:23]RAPDU: 3B 99 CB BF 05 DF 13 E3 90 00 [15:07:23]wFMCommunicate OK [15:07:23]SAM_PROTO_SignData done [15:07:23]FM_MakeSignedData done [15:07:23]CreateOFDProtocolMessage [15:07:23]wFMCommunicate request_size=4 [15:07:23]MH_SAM_APDU [15:07:23]CAPDU: 80 11 00 00 [15:07:23]Write to MH i2c: E2 08 00 B2 2E 80 11 00 00 00 00 00 00 5A [15:07:23]Write i2c OK [15:07:23]MH_I2C_Read... [15:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:23]Read from MH i2c: E2 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 17 00 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: E2 17 00 B2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B1 [15:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:07:23]wFMCommunicate OK [15:07:23]CreateOFDProtocolMessage done [15:07:23]OFDSenderStorePacket 123065 [15:07:23]StoreOFDPacket docnum=123065 [15:07:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B7 CC 07 01 18 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AF 92 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E0 01 00 35 04 06 00 6B 67 10 45 EE E8 3B 99 CB BF 05 DF 13 E3 [15:07:23]CheckFolder [15:07:23]dirname=/storage/ofd_packets [15:07:23]CheckFolder done [15:07:23]ProducePacketName [15:07:23]name=ofd_packets/00123065 [15:07:23]NVStorageSaveData ofd_packets/00123065 [15:07:23]File name is /storage/ofd_packets/00123065 [15:07:23]Write 301 bytes [15:07:23]NVStorageSaveData done [15:07:23]OFDSenderStorePacket done [15:07:23]KKMCreateOFDPacket done [15:07:23]NVStorageSaveData kkm_last_timestamp [15:07:23]File name is /storage/kkm_last_timestamp [15:07:23]Write 4 bytes [15:07:23]NVStorageSaveData done [15:07:23]ExternCall_PrintAddStr [15:07:23]wPrintStart [15:07:23]Write to MH i2c: 01 00 00 B3 2E E1 [15:07:23]Write i2c OK [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: 01 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: 01 07 00 [15:07:23]MH_I2C_Read... [15:07:23]Read from MH i2c: 01 07 00 B3 2E 00 00 00 00 00 FF 0F F6 [15:07:23]RasterBufferAndPrint [15:07:23]line Счет N : (1)717860 [15:07:23]line ИНН: 02508201610067 [15:07:23]line Контрольно-Кассовый Чек [15:07:23]line ПРОДАЖА [15:07:23]line ТРК (МРК, ГНК) : 12 [15:07:23]line Товар: 2710124130 [15:07:23]line Аи-92-К-4 [15:07:23]line 8.910 * 67.40 [15:07:23]line = 600.53 [15:07:23]line НДС 12% НСП 1% [15:07:23]line > о реализуемом товаре [15:07:23]line ОКРУГЛЕНИЕ: -0.53 [15:07:23]line ИТОГО: 600.00 [15:07:23]line Внесено: 600.00 [15:07:23]line СДАЧА: 0.00 [15:07:23]line НСП 1% : 5.31 [15:07:23]line НДС 12% : 63.77 [15:07:23]line Наличными: 600.00 [15:07:23]line Безнал.: 0.00 [15:07:23]line Место: АЗС № 64 "Партнер Нефть" [15:07:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:07:23]line СНО: Общий режим [15:07:23]line Чек 106 25.11.2024 15:07 [15:07:23]line Смена: 556 ФФД: 1.0 [15:07:23]line ЗНМ: 0300000033 [15:07:23]line РНМ: 0000000000092681 [15:07:23]line Версия ККМ: 001 [15:07:23]line ФМ: 0000000000874881 [15:07:23]line ФД: 123065 [15:07:23]line ФПД: 118090398822120 [15:07:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T150727&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123065&fm=118090398822120&tin=02508201610067®Number=0000000000092681&sum=60000 [15:07:23]OFD Sender: Processing packet 123065 [packets to send 7, broken 6] [15:07:23]ProducePacketName [15:07:23]name=ofd_packets/00123065 [15:07:23]OFD Sender: To server: pG, [15:07:23]CommunicateWithHost lk.salyk.kg:30040 [15:07:23]ConnectInit lk.salyk.kg [15:07:23]written 0, free lines is 4095 [15:07:24]Connected sock=10 [15:07:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B7 CC 07 01 18 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AF 92 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E0 01 00 35 04 06 00 6B 67 10 45 EE E8 3B 99 CB BF 05 DF 13 E3 [15:07:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 13 5D 47 00 7A 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E0 01 00 F4 03 04 00 74 3E 44 67 B6 04 01 00 00 65 0E 38 B7 B2 49 E8 1F [15:07:24]CommunicateWithHost err = 0 [15:07:24]CheckOFDResponse [15:07:24]1017 (14) - 77093643461234 [15:07:24]1041 (16) - 0000000000874881 [15:07:24]1040 (4) - 123065 [15:07:24]1012 (4) - 25.11.2024 09:08 [15:07:24]1206 (1) - 0 [15:07:24]OFD Sender: Remove packet 123065 [15:07:24]ProducePacketName [15:07:24]name=ofd_packets/00123065 [15:07:24]NVStorageDeleteData [15:07:24]Write to MH i2c: 01 00 00 DE 2E 0C [15:07:24]Write i2c OK [15:07:24]MH_I2C_Read... [15:07:24]Read from MH i2c: 01 [15:07:24]MH_I2C_Read... [15:07:24]Read from MH i2c: 01 07 00 [15:07:24]MH_I2C_Read... [15:07:24]Read from MH i2c: 01 07 00 DE 2E 00 00 00 00 00 47 0C 66 [15:07:24]RasterBufferAndPrint [15:07:24]line [15:07:24]line [15:07:24]line [15:07:24]line [15:07:24]line [15:07:24]written 0, free lines is 3146 [15:07:24]MH_Cut [15:07:24]Write to MH i2c: D1 01 00 E5 2E 01 E5 [15:07:24]Write i2c OK [15:07:24]MH_I2C_Read... [15:07:24]Read from MH i2c: D1 [15:07:24]MH_I2C_Read... [15:07:24]Read from MH i2c: D1 01 00 [15:07:24]MH_I2C_Read... [15:07:24]Read from MH i2c: D1 01 00 E5 2E 00 E4 [15:07:24]Write to MH i2c: 01 00 00 E6 2E 14 [15:07:24]Write i2c OK [15:07:24]MH_I2C_Read... [15:07:24]OFD Sender: No OFD packet to send [15:07:25]*** Cut start [15:07:25]*** Partial cut [15:07:25]*** CUTSNS_PIN = 1 [15:07:25]*** CUTSNS_PIN = 0 [15:07:26]*** Brake cut motor [15:07:26]Read from MH i2c: 01 [15:07:26]MH_I2C_Read... [15:07:26]*** Stop cut motor [15:07:26]*** Cut end [15:07:26]Read from MH i2c: 01 07 00 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: 01 07 00 E6 2E 00 00 00 00 00 FF 0F 29 [15:07:26]process_action close_receipt done [15:07:26]requested_data is exist [15:07:26]produce_requested_data [15:07:26]requested_item fm.sn is exist - process it [15:07:26]wFMCommunicate request_size=4 [15:07:26]MH_SAM_APDU [15:07:26]CAPDU: 80 11 00 00 [15:07:26]Write to MH i2c: E2 08 00 E7 2E 80 11 00 00 00 00 00 00 8F [15:07:26]Write i2c OK [15:07:26]MH_I2C_Read... [15:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:26]Read from MH i2c: E2 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: E2 17 00 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: E2 17 00 E7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E6 [15:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:07:26]wFMCommunicate OK [15:07:26]requested_item fd.num is exist - process it [15:07:26]SAM_PROTO_GetFieldsCounters [15:07:26]wFMCommunicate request_size=4 [15:07:26]MH_SAM_APDU [15:07:26]CAPDU: 80 13 00 00 [15:07:26]Write to MH i2c: E2 08 00 E8 2E 80 13 00 00 00 00 00 00 92 [15:07:26]Write i2c OK [15:07:26]MH_I2C_Read... [15:07:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:26]Read from MH i2c: E2 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: E2 62 00 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: E2 62 00 E8 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B9 E0 01 00 0E 04 04 00 2C 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 BE [15:07:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B9 E0 01 00 0E 04 04 00 2C 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 [15:07:26]wFMCommunicate OK [15:07:26]SAM_PROTO_GetFieldsCounters done [15:07:26]requested_item shift.num is exist - process it [15:07:26]requested_item shift.opened is exist - process it [15:07:26]req_shift_opened [15:07:26]FM_GetShiftState [15:07:26]SAM_PROTO_GetShiftState [15:07:26]wFMCommunicate request_size=4 [15:07:26]MH_SAM_APDU [15:07:26]CAPDU: 80 13 01 00 [15:07:26]Write to MH i2c: E2 08 00 E9 2E 80 13 01 00 00 00 00 00 94 [15:07:26]Write i2c OK [15:07:26]MH_I2C_Read... [15:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:26]Read from MH i2c: E2 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: E2 0E 00 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: E2 0E 00 E9 2E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 13 [15:07:26]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:07:26]wFMCommunicate OK [15:07:26]SAM_PROTO_GetShiftState done [15:07:26]FM_GetShiftState done [15:07:26]req_shift_opened done [15:07:26]requested_item shift.open_date is exist - process it [15:07:26]req_shift_open_date [15:07:26]req_shift_open_date done [15:07:26]produce_requested_data done [15:07:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123065,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [15:07:26]process_action_free close_receipt [15:07:26]json_value_free [15:07:26]json_value_free done [15:07:26]process_json_proto returns [15:07:26]Send response to host [15:07:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123065,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [15:07:26]free response buf [15:07:26]execute_script done [15:07:26]execute_script returns [15:07:26]free content buf [15:07:26]Sock 9.Close socket [15:07:26]Sock 9.Thread stoped [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:20]accept exits with 7 [15:12:20]New connection [15:12:20]New thread 3066723684 created [15:12:20]Thread 3066580324 joined [15:12:20]Waiting for new connection... [15:12:20] Sock 7.Parse request [15:12:20]Sock 7.Check first char [15:12:20]Sock 7.First char is OK [15:12:20]request: POST /json_proto HTTP/1.0 [15:12:20]Method: POST [15:12:20]URL: /json_proto [15:12:20]Method is POST - this is cgi request [15:12:20]url: /json_proto [15:12:20]query_string will be loaded in cgi processing [15:12:20]execute_cgi json_proto POST (null) [15:12:20]execute_cgi path=json_proto method=POST [15:12:20]POST find Content-Length [15:12:20]Host: 172.17.37.4:8080 [15:12:20]Content-Length: 677 [15:12:20]Content-Type: application/json [15:12:20] [15:12:20]POST finish read [15:12:20]Found Content-Length = 677 [15:12:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:20]execute_script... [15:12: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)717861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:20]POST & json_proto [15:12:20]process_json_proto [15:12:20]json parsed OK: [15:12:20]protocol is kg_v1.0 [15:12:20]action value=close_receipt [15:12:20]process_action close_receipt [15:12:20]cmd_close_receipt [15:12:20]MH_GetDate [15:12:20]Write to MH i2c: F0 00 00 EA 2E 07 [15:12:20]Write i2c OK [15:12:20]MH_I2C_Read... [15:12:20]Read from MH i2c: F0 [15:12:20]MH_I2C_Read... [15:12:20]Read from MH i2c: F0 09 00 [15:12:20]MH_I2C_Read... [15:12:20]Read from MH i2c: F0 09 00 EA 2E 00 DA 93 44 67 B8 5A 43 67 E4 [15:12:20]GetLastDocTimeStamp 1732547247 [15:12:20]current date 1732547546 [15:12:20]FM_GetShiftState [15:12:20]SAM_PROTO_GetShiftState [15:12:20]wFMCommunicate request_size=4 [15:12:20]MH_SAM_APDU [15:12:20]CAPDU: 80 13 01 00 [15:12:20]Write to MH i2c: E2 08 00 EB 2E 80 13 01 00 00 00 00 00 96 [15:12:20]Write i2c OK [15:12:20]MH_I2C_Read... [15:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:20]Read from MH i2c: E2 [15:12:20]MH_I2C_Read... [15:12:20]Read from MH i2c: E2 0E 00 [15:12:20]MH_I2C_Read... [15:12:20]Read from MH i2c: E2 0E 00 EB 2E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 15 [15:12:20]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:12:20]wFMCommunicate OK [15:12:20]SAM_PROTO_GetShiftState done [15:12:20]FM_GetShiftState done [15:12:20]opened in 1732493066 [15:12:20]opened+sec_in_day 1732579466 [15:12:20]quantity*price = 50010 [15:12:20]sum+1 = 50012 [15:12:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 107 25.11.2024 15:12 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123066 ФПД: 93041706486634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T151226&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123066&fm=93041706486634&tin=02508201610067®Number=0000000000092681&sum=50000 [15:12:21]StoreToDocumentArchive [15:12:21]shift 556 fd 123066 [15:12:21]save to /storage/0556/doc_00123066 [15:12:21]save last doc name /storage/0556/doc_00123066 to /storage/kkm_last_doc_name [15:12:21]save OK [15:12:21]Clear old archive folders... [15:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:21]tlvbuf is B6F20D10 [15:12:21]SAM_PROTO_ClearQueue [15:12:21]wFMCommunicate request_size=4 [15:12:21]MH_SAM_APDU [15:12:21]CAPDU: 80 09 00 00 [15:12:21]Write to MH i2c: E2 08 00 F8 2E 80 09 00 00 00 00 00 00 98 [15:12:21]Write i2c OK [15:12:21]MH_I2C_Read... [15:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:21]Read from MH i2c: E2 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 03 00 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 03 00 F8 2E 00 90 00 9A [15:12:21]RAPDU: 90 00 [15:12:21]wFMCommunicate OK [15:12:21]SAM_PROTO_ClearQueue done [15:12:21]KKMCreateOFDPacket [15:12:21]OFDProtocolAddRootSTLVToBuf [15:12:21]FM_MakeSignedData [15:12:21]FM_MakeSignedData [15:12:21]SAM_PROTO_SignData [15:12:21]wFMCommunicate request_size=4 [15:12:21]MH_SAM_APDU [15:12:21]CAPDU: 80 0D 01 02 [15:12:21]Write to MH i2c: E2 08 00 F9 2E 80 0D 01 02 00 00 00 00 A0 [15:12:21]Write i2c OK [15:12:21]MH_I2C_Read... [15:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:21]Read from MH i2c: E2 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 03 00 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 03 00 F9 2E 00 90 00 9B [15:12:21]RAPDU: 90 00 [15:12:21]wFMCommunicate OK [15:12:21]wFMCommunicate request_size=255 [15:12:21]MH_SAM_APDU [15:12:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 DA 93 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E0 01 00 35 04 06 00 54 [15:12:21]Write to MH i2c: E2 02 01 FA 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 DA 93 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E0 01 00 35 04 06 00 54 00 00 A7 [15:12:21]Write i2c OK [15:12:21]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 FA 2E 00 90 00 9C [15:12:22]RAPDU: 90 00 [15:12:22]wFMCommunicate OK [15:12:22]wFMCommunicate request_size=10 [15:12:22]MH_SAM_APDU [15:12:22]CAPDU: 80 0D 02 02 05 9E F5 DD 4B 6A [15:12:22]Write to MH i2c: E2 0D 00 FB 2E 80 0D 02 02 05 00 9E F5 DD 4B 6A 00 00 D2 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 FB 2E 00 90 00 9D [15:12:22]RAPDU: 90 00 [15:12:22]wFMCommunicate OK [15:12:22]wFMCommunicate request_size=4 [15:12:22]MH_SAM_APDU [15:12:22]CAPDU: 80 0D 03 02 [15:12:22]Write to MH i2c: E2 08 00 FC 2E 80 0D 03 02 00 00 00 00 A5 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 0B 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 0B 00 FC 2E 00 EF 1D 3A 16 0B 8D 83 46 90 00 63 [15:12:22]RAPDU: EF 1D 3A 16 0B 8D 83 46 90 00 [15:12:22]wFMCommunicate OK [15:12:22]SAM_PROTO_SignData done [15:12:22]FM_MakeSignedData done [15:12:22]CreateOFDProtocolMessage [15:12:22]wFMCommunicate request_size=4 [15:12:22]MH_SAM_APDU [15:12:22]CAPDU: 80 11 00 00 [15:12:22]Write to MH i2c: E2 08 00 FD 2E 80 11 00 00 00 00 00 00 A5 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 17 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 17 00 FD 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FC [15:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:12:22]wFMCommunicate OK [15:12:22]CreateOFDProtocolMessage done [15:12:22]OFDSenderStorePacket 123066 [15:12:22]StoreOFDPacket docnum=123066 [15:12:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 84 E2 07 01 44 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 DA 93 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E0 01 00 35 04 06 00 54 9E F5 DD 4B 6A EF 1D 3A 16 0B 8D 83 46 [15:12:22]CheckFolder [15:12:22]dirname=/storage/ofd_packets [15:12:22]CheckFolder done [15:12:22]ProducePacketName [15:12:22]name=ofd_packets/00123066 [15:12:22]NVStorageSaveData ofd_packets/00123066 [15:12:22]File name is /storage/ofd_packets/00123066 [15:12:22]Write 301 bytes [15:12:22]NVStorageSaveData done [15:12:22]OFDSenderStorePacket done [15:12:22]KKMCreateOFDPacket done [15:12:22]NVStorageSaveData kkm_last_timestamp [15:12:22]File name is /storage/kkm_last_timestamp [15:12:22]Write 4 bytes [15:12:22]NVStorageSaveData done [15:12:22]ExternCall_PrintAddStr [15:12:22]wPrintStart [15:12:22]Write to MH i2c: 01 00 00 FE 2E 2C [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: 01 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: 01 07 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: 01 07 00 FE 2E 00 00 00 00 00 FF 0F 41 [15:12:22]RasterBufferAndPrint [15:12:22]line Счет N : (1)717861 [15:12:22]line ИНН: 02508201610067 [15:12:22]line Контрольно-Кассовый Чек [15:12:22]line ПРОДАЖА [15:12:22]line ТРК (МРК, ГНК) : 12 [15:12:22]line Товар: 2710124130 [15:12:22]line Аи-92-К-4 [15:12:22]line 7.420 * 67.40 [15:12:22]line = 500.11 [15:12:22]line НДС 12% НСП 1% [15:12:22]line > о реализуемом товаре [15:12:22]line ОКРУГЛЕНИЕ: -0.11 [15:12:22]line ИТОГО: 500.00 [15:12:22]line Внесено: 500.00 [15:12:22]line СДАЧА: 0.00 [15:12:22]line НСП 1% : 4.43 [15:12:22]line НДС 12% : 53.11 [15:12:22]line Наличными: 500.00 [15:12:22]line Безнал.: 0.00 [15:12:22]line Место: АЗС № 64 "Партнер Нефть" [15:12:22]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:12:22]line СНО: Общий режим [15:12:22]line Чек 107 25.11.2024 15:12 [15:12:22]line Смена: 556 ФФД: 1.0 [15:12:22]line ЗНМ: 0300000033 [15:12:22]line РНМ: 0000000000092681 [15:12:22]line Версия ККМ: 001 [15:12:22]line ФМ: 0000000000874881 [15:12:22]line ФД: 123066 [15:12:22]line ФПД: 93041706486634 [15:12:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T151226&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123066&fm=93041706486634&tin=02508201610067®Number=0000000000092681&sum=50000 [15:12:22]OFD Sender: Processing packet 123066 [packets to send 7, broken 6] [15:12:22]ProducePacketName [15:12:22]name=ofd_packets/00123066 [15:12:22]OFD Sender: To server: pG, [15:12:22]CommunicateWithHost lk.salyk.kg:30040 [15:12:22]ConnectInit lk.salyk.kg [15:12:22]written 0, free lines is 4095 [15:12:22]Connected sock=10 [15:12:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 84 E2 07 01 44 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 DA 93 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E0 01 00 35 04 06 00 54 9E F5 DD 4B 6A EF 1D 3A 16 0B 8D 83 46 [15:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B3 D5 47 00 C8 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 34 38 38 31 10 04 04 00 BA E0 01 00 F4 03 04 00 9F 3F 44 67 B6 04 01 00 00 90 DE 42 AE D8 8F 01 E3 [15:12:22]CommunicateWithHost err = 0 [15:12:22]CheckOFDResponse [15:12:22]1017 (14) - 77093643461234 [15:12:22]1041 (16) - 0000000000874881 [15:12:22]1040 (4) - 123066 [15:12:22]1012 (4) - 25.11.2024 09:13 [15:12:22]1206 (1) - 0 [15:12:22]OFD Sender: Remove packet 123066 [15:12:22]ProducePacketName [15:12:22]name=ofd_packets/00123066 [15:12:22]NVStorageDeleteData [15:12:22]Write to MH i2c: 01 00 00 29 2F 58 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: 01 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: 01 07 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: 01 07 00 29 2F 00 00 00 00 00 47 0C B2 [15:12:22]RasterBufferAndPrint [15:12:22]line [15:12:22]line [15:12:22]line [15:12:22]line [15:12:22]line [15:12:22]written 0, free lines is 3148 [15:12:22]MH_Cut [15:12:22]Write to MH i2c: D1 01 00 30 2F 01 31 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: D1 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: D1 01 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: D1 01 00 30 2F 00 30 [15:12:22]Write to MH i2c: 01 00 00 31 2F 60 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:23]OFD Sender: No OFD packet to send [15:12:24]*** Cut start [15:12:24]*** Partial cut [15:12:24]*** CUTSNS_PIN = 1 [15:12:24]*** CUTSNS_PIN = 0 [15:12:24]*** Brake cut motor [15:12:25]Read from MH i2c: 01 [15:12:25]MH_I2C_Read... [15:12:25]*** Stop cut motor [15:12:25]*** Cut end [15:12:25]Read from MH i2c: 01 07 00 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: 01 07 00 31 2F 00 00 00 00 00 FF 0F 75 [15:12:25]process_action close_receipt done [15:12:25]requested_data is exist [15:12:25]produce_requested_data [15:12:25]requested_item fm.sn is exist - process it [15:12:25]wFMCommunicate request_size=4 [15:12:25]MH_SAM_APDU [15:12:25]CAPDU: 80 11 00 00 [15:12:25]Write to MH i2c: E2 08 00 32 2F 80 11 00 00 00 00 00 00 DB [15:12:25]Write i2c OK [15:12:25]MH_I2C_Read... [15:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:25]Read from MH i2c: E2 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 17 00 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 17 00 32 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 32 [15:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:12:25]wFMCommunicate OK [15:12:25]requested_item fd.num is exist - process it [15:12:25]SAM_PROTO_GetFieldsCounters [15:12:25]wFMCommunicate request_size=4 [15:12:25]MH_SAM_APDU [15:12:25]CAPDU: 80 13 00 00 [15:12:25]Write to MH i2c: E2 08 00 33 2F 80 13 00 00 00 00 00 00 DE [15:12:25]Write i2c OK [15:12:25]MH_I2C_Read... [15:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:25]Read from MH i2c: E2 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 62 00 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 62 00 33 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BA E0 01 00 0E 04 04 00 2C 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 0E [15:12:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BA E0 01 00 0E 04 04 00 2C 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 [15:12:25]wFMCommunicate OK [15:12:25]SAM_PROTO_GetFieldsCounters done [15:12:25]requested_item shift.num is exist - process it [15:12:25]requested_item shift.opened is exist - process it [15:12:25]req_shift_opened [15:12:25]FM_GetShiftState [15:12:25]SAM_PROTO_GetShiftState [15:12:25]wFMCommunicate request_size=4 [15:12:25]MH_SAM_APDU [15:12:25]CAPDU: 80 13 01 00 [15:12:25]Write to MH i2c: E2 08 00 34 2F 80 13 01 00 00 00 00 00 E0 [15:12:25]Write i2c OK [15:12:25]MH_I2C_Read... [15:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:25]Read from MH i2c: E2 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 0E 00 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 0E 00 34 2F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 5F [15:12:25]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:12:25]wFMCommunicate OK [15:12:25]SAM_PROTO_GetShiftState done [15:12:25]FM_GetShiftState done [15:12:25]req_shift_opened done [15:12:25]requested_item shift.open_date is exist - process it [15:12:25]req_shift_open_date [15:12:25]req_shift_open_date done [15:12:25]produce_requested_data done [15:12:25]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123066,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [15:12:25]process_action_free close_receipt [15:12:25]json_value_free [15:12:25]json_value_free done [15:12:25]process_json_proto returns [15:12:25]Send response to host [15:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123066,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [15:12:25]free response buf [15:12:25]execute_script done [15:12:25]execute_script returns [15:12:25]free content buf [15:12:25]Sock 7.Close socket [15:12:25]Sock 7.Thread stoped [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:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [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:12]accept exits with 9 [15:27:12]New connection [15:27:12]New thread 3066580324 created [15:27:12]Thread 3066723684 joined [15:27:12]Waiting for new connection... [15:27:12] Sock 9.Parse request [15:27:12]Sock 9.Check first char [15:27:12]Sock 9.First char is OK [15:27:12]request: POST /json_proto HTTP/1.0 [15:27:12]Method: POST [15:27:12]URL: /json_proto [15:27:12]Method is POST - this is cgi request [15:27:12]url: /json_proto [15:27:12]query_string will be loaded in cgi processing [15:27:12]execute_cgi json_proto POST (null) [15:27:12]execute_cgi path=json_proto method=POST [15:27:12]POST find Content-Length [15:27:12]Host: 172.17.37.4:8080 [15:27:12]Content-Length: 682 [15:27:12]Content-Type: application/json [15:27:12] [15:27:12]POST finish read [15:27:12]Found Content-Length = 682 [15:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:12]execute_script... [15:27:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:12]POST & json_proto [15:27:12]process_json_proto [15:27:12]json parsed OK: [15:27:12]protocol is kg_v1.0 [15:27:12]action value=close_receipt [15:27:12]process_action close_receipt [15:27:12]cmd_close_receipt [15:27:12]MH_GetDate [15:27:12]Write to MH i2c: F0 00 00 35 2F 53 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: F0 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: F0 09 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: F0 09 00 35 2F 00 56 97 44 67 B8 5A 43 67 B0 [15:27:12]GetLastDocTimeStamp 1732547546 [15:27:12]current date 1732548438 [15:27:12]FM_GetShiftState [15:27:12]SAM_PROTO_GetShiftState [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 13 01 00 [15:27:12]Write to MH i2c: E2 08 00 36 2F 80 13 01 00 00 00 00 00 E2 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 0E 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 0E 00 36 2F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 61 [15:27:12]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:27:12]wFMCommunicate OK [15:27:12]SAM_PROTO_GetShiftState done [15:27:12]FM_GetShiftState done [15:27:12]opened in 1732493066 [15:27:12]opened+sec_in_day 1732579466 [15:27:12]quantity*price = 100021 [15:27:12]sum+1 = 100023 [15:27:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 108 25.11.2024 15:27 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123067 ФПД: 205289539212541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T152718&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123067&fm=205289539212541&tin=02508201610067®Number=0000000000092681&sum=100000 [15:27:13]StoreToDocumentArchive [15:27:13]shift 556 fd 123067 [15:27:13]save to /storage/0556/doc_00123067 [15:27:13]save last doc name /storage/0556/doc_00123067 to /storage/kkm_last_doc_name [15:27:13]save OK [15:27:13]Clear old archive folders... [15:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:13]tlvbuf is 02090790 [15:27:13]SAM_PROTO_ClearQueue [15:27:13]wFMCommunicate request_size=4 [15:27:13]MH_SAM_APDU [15:27:13]CAPDU: 80 09 00 00 [15:27:13]Write to MH i2c: E2 08 00 43 2F 80 09 00 00 00 00 00 00 E4 [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 03 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 03 00 43 2F 00 90 00 E6 [15:27:13]RAPDU: 90 00 [15:27:13]wFMCommunicate OK [15:27:13]SAM_PROTO_ClearQueue done [15:27:13]KKMCreateOFDPacket [15:27:13]OFDProtocolAddRootSTLVToBuf [15:27:13]FM_MakeSignedData [15:27:13]FM_MakeSignedData [15:27:13]SAM_PROTO_SignData [15:27:13]wFMCommunicate request_size=4 [15:27:13]MH_SAM_APDU [15:27:13]CAPDU: 80 0D 01 02 [15:27:13]Write to MH i2c: E2 08 00 44 2F 80 0D 01 02 00 00 00 00 EC [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 03 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 03 00 44 2F 00 90 00 E7 [15:27:13]RAPDU: 90 00 [15:27:13]wFMCommunicate OK [15:27:13]wFMCommunicate request_size=255 [15:27:13]MH_SAM_APDU [15:27:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 56 97 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BB E0 01 00 35 04 06 00 BA [15:27:13]Write to MH i2c: E2 02 01 45 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 56 97 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BB E0 01 00 35 04 06 00 BA 00 00 CB [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:14]OFD Sender: No OFD packet to send [15:27:14]Read from MH i2c: E2 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 45 2F 00 90 00 E8 [15:27:14]RAPDU: 90 00 [15:27:14]wFMCommunicate OK [15:27:14]wFMCommunicate request_size=10 [15:27:14]MH_SAM_APDU [15:27:14]CAPDU: 80 0D 02 02 05 B5 B2 0F 94 FD [15:27:14]Write to MH i2c: E2 0D 00 46 2F 80 0D 02 02 05 00 B5 B2 0F 94 FD 00 00 00 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:14]Read from MH i2c: E2 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 46 2F 00 90 00 E9 [15:27:14]RAPDU: 90 00 [15:27:14]wFMCommunicate OK [15:27:14]wFMCommunicate request_size=4 [15:27:14]MH_SAM_APDU [15:27:14]CAPDU: 80 0D 03 02 [15:27:14]Write to MH i2c: E2 08 00 47 2F 80 0D 03 02 00 00 00 00 F1 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:14]Read from MH i2c: E2 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 0B 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 0B 00 47 2F 00 10 47 47 FD 1A 2A 75 86 90 00 CC [15:27:14]RAPDU: 10 47 47 FD 1A 2A 75 86 90 00 [15:27:14]wFMCommunicate OK [15:27:14]SAM_PROTO_SignData done [15:27:14]FM_MakeSignedData done [15:27:14]CreateOFDProtocolMessage [15:27:14]wFMCommunicate request_size=4 [15:27:14]MH_SAM_APDU [15:27:14]CAPDU: 80 11 00 00 [15:27:14]Write to MH i2c: E2 08 00 48 2F 80 11 00 00 00 00 00 00 F1 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:14]Read from MH i2c: E2 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 17 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 17 00 48 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 48 [15:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:27:14]wFMCommunicate OK [15:27:14]CreateOFDProtocolMessage done [15:27:14]OFDSenderStorePacket 123067 [15:27:14]StoreOFDPacket docnum=123067 [15:27:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 80 8C 07 01 FF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 56 97 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BB E0 01 00 35 04 06 00 BA B5 B2 0F 94 FD 10 47 47 FD 1A 2A 75 86 [15:27:14]CheckFolder [15:27:14]dirname=/storage/ofd_packets [15:27:14]CheckFolder done [15:27:14]ProducePacketName [15:27:14]name=ofd_packets/00123067 [15:27:14]NVStorageSaveData ofd_packets/00123067 [15:27:14]File name is /storage/ofd_packets/00123067 [15:27:14]Write 301 bytes [15:27:14]NVStorageSaveData done [15:27:14]OFDSenderStorePacket done [15:27:14]KKMCreateOFDPacket done [15:27:14]NVStorageSaveData kkm_last_timestamp [15:27:14]File name is /storage/kkm_last_timestamp [15:27:14]Write 4 bytes [15:27:14]NVStorageSaveData done [15:27:14]ExternCall_PrintAddStr [15:27:14]wPrintStart [15:27:14]Write to MH i2c: 01 00 00 49 2F 78 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: 01 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: 01 07 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: 01 07 00 49 2F 00 00 00 00 00 FF 0F 8D [15:27:14]RasterBufferAndPrint [15:27:14]line Счет N : (1)717862 [15:27:14]line ИНН: 02508201610067 [15:27:14]line Контрольно-Кассовый Чек [15:27:14]line ПРОДАЖА [15:27:14]line ТРК (МРК, ГНК) : 22 [15:27:14]line Товар: 2710124130 [15:27:14]line Аи-92-К-4 [15:27:14]line 14.840 * 67.40 [15:27:14]line = 1000.22 [15:27:14]line НДС 12% НСП 1% [15:27:14]line > о реализуемом товаре [15:27:14]line ОКРУГЛЕНИЕ: -0.22 [15:27:14]line ИТОГО: 1000.00 [15:27:14]line Внесено: 1000.00 [15:27:14]line СДАЧА: 0.00 [15:27:14]line НСП 1% : 8.85 [15:27:14]line НДС 12% : 106.22 [15:27:14]line Наличными: 1000.00 [15:27:14]line Безнал.: 0.00 [15:27:14]line Место: АЗС № 64 "Партнер Нефть" [15:27:14]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:27:14]line СНО: Общий режим [15:27:14]line Чек 108 25.11.2024 15:27 [15:27:14]line Смена: 556 ФФД: 1.0 [15:27:14]line ЗНМ: 0300000033 [15:27:14]line РНМ: 0000000000092681 [15:27:14]line Версия ККМ: 001 [15:27:14]line ФМ: 0000000000874881 [15:27:14]line ФД: 123067 [15:27:14]line ФПД: 205289539212541 [15:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T152718&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123067&fm=205289539212541&tin=02508201610067®Number=0000000000092681&sum=100000 [15:27:14]OFD Sender: Processing packet 123067 [packets to send 7, broken 6] [15:27:14]ProducePacketName [15:27:14]name=ofd_packets/00123067 [15:27:14]OFD Sender: To server: pG, [15:27:14]CommunicateWithHost lk.salyk.kg:30040 [15:27:14]ConnectInit lk.salyk.kg [15:27:14]written 0, free lines is 4095 [15:27:14]Connected sock=7 [15:27:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 80 8C 07 01 FF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 56 97 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BB E0 01 00 35 04 06 00 BA B5 B2 0F 94 FD 10 47 47 FD 1A 2A 75 86 [15:27:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A1 CE 47 00 7C 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 34 38 38 31 10 04 04 00 BB E0 01 00 F4 03 04 00 1B 43 44 67 B6 04 01 00 00 47 EC 03 C0 57 86 2B BA [15:27:14]CommunicateWithHost err = 0 [15:27:14]CheckOFDResponse [15:27:14]1017 (14) - 77093643461234 [15:27:14]1041 (16) - 0000000000874881 [15:27:14]1040 (4) - 123067 [15:27:14]1012 (4) - 25.11.2024 09:27 [15:27:14]1206 (1) - 0 [15:27:14]OFD Sender: Remove packet 123067 [15:27:14]ProducePacketName [15:27:14]name=ofd_packets/00123067 [15:27:14]NVStorageDeleteData [15:27:14]Write to MH i2c: 01 00 00 74 2F A3 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: 01 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: 01 07 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: 01 07 00 74 2F 00 00 00 00 00 4B 0C 01 [15:27:14]RasterBufferAndPrint [15:27:14]line [15:27:14]line [15:27:14]line [15:27:14]line [15:27:14]line [15:27:14]written 0, free lines is 3151 [15:27:15]MH_Cut [15:27:15]Write to MH i2c: D1 01 00 7B 2F 01 7C [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: D1 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: D1 01 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: D1 01 00 7B 2F 00 7B [15:27:15]Write to MH i2c: 01 00 00 7C 2F AB [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]OFD Sender: No OFD packet to send [15:27:16]*** Cut start [15:27:16]*** Partial cut [15:27:16]*** CUTSNS_PIN = 1 [15:27:16]*** CUTSNS_PIN = 0 [15:27:16]*** Brake cut motor [15:27:17]Read from MH i2c: 01 [15:27:17]MH_I2C_Read... [15:27:17]*** Stop cut motor [15:27:17]*** Cut end [15:27:17]Read from MH i2c: 01 07 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: 01 07 00 7C 2F 00 00 00 00 00 FF 0F C0 [15:27:17]process_action close_receipt done [15:27:17]requested_data is exist [15:27:17]produce_requested_data [15:27:17]requested_item fm.sn is exist - process it [15:27:17]wFMCommunicate request_size=4 [15:27:17]MH_SAM_APDU [15:27:17]CAPDU: 80 11 00 00 [15:27:17]Write to MH i2c: E2 08 00 7D 2F 80 11 00 00 00 00 00 00 26 [15:27:17]Write i2c OK [15:27:17]MH_I2C_Read... [15:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:17]Read from MH i2c: E2 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 17 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 17 00 7D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7D [15:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:27:17]wFMCommunicate OK [15:27:17]requested_item fd.num is exist - process it [15:27:17]SAM_PROTO_GetFieldsCounters [15:27:17]wFMCommunicate request_size=4 [15:27:17]MH_SAM_APDU [15:27:17]CAPDU: 80 13 00 00 [15:27:17]Write to MH i2c: E2 08 00 7E 2F 80 13 00 00 00 00 00 00 29 [15:27:17]Write i2c OK [15:27:17]MH_I2C_Read... [15:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:17]Read from MH i2c: E2 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 62 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 62 00 7E 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BB E0 01 00 0E 04 04 00 2C 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 5D [15:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BB E0 01 00 0E 04 04 00 2C 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 [15:27:17]wFMCommunicate OK [15:27:17]SAM_PROTO_GetFieldsCounters done [15:27:17]requested_item shift.num is exist - process it [15:27:17]requested_item shift.opened is exist - process it [15:27:17]req_shift_opened [15:27:17]FM_GetShiftState [15:27:17]SAM_PROTO_GetShiftState [15:27:17]wFMCommunicate request_size=4 [15:27:17]MH_SAM_APDU [15:27:17]CAPDU: 80 13 01 00 [15:27:17]Write to MH i2c: E2 08 00 7F 2F 80 13 01 00 00 00 00 00 2B [15:27:17]Write i2c OK [15:27:17]MH_I2C_Read... [15:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:17]Read from MH i2c: E2 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 0E 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 0E 00 7F 2F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 AA [15:27:17]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:27:17]wFMCommunicate OK [15:27:17]SAM_PROTO_GetShiftState done [15:27:17]FM_GetShiftState done [15:27:17]req_shift_opened done [15:27:17]requested_item shift.open_date is exist - process it [15:27:17]req_shift_open_date [15:27:17]req_shift_open_date done [15:27:17]produce_requested_data done [15:27:17]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123067,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [15:27:17]process_action_free close_receipt [15:27:17]json_value_free [15:27:17]json_value_free done [15:27:17]process_json_proto returns [15:27:17]Send response to host [15:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123067,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [15:27:17]free response buf [15:27:17]execute_script done [15:27:17]execute_script returns [15:27:17]free content buf [15:27:17]Sock 9.Close socket [15:27:17]Sock 9.Thread stoped [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:42]accept exits with 10 [15:32:42]New connection [15:32:42]New thread 3066723684 created [15:32:42]Thread 3066580324 joined [15:32:42]Waiting for new connection... [15:32:42] Sock 10.Parse request [15:32:42]Sock 10.Check first char [15:32:42]Sock 10.First char is OK [15:32:42]request: POST /json_proto HTTP/1.0 [15:32:42]Method: POST [15:32:42]URL: /json_proto [15:32:42]Method is POST - this is cgi request [15:32:42]url: /json_proto [15:32:42]query_string will be loaded in cgi processing [15:32:42]execute_cgi json_proto POST (null) [15:32:42]execute_cgi path=json_proto method=POST [15:32:42]POST find Content-Length [15:32:42]Host: 172.17.37.4:8080 [15:32:42]Content-Length: 800 [15:32:42]Content-Type: application/json [15:32:42] [15:32:42]POST finish read [15:32:42]Found Content-Length = 800 [15:32:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:42]execute_script... [15:32:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:42]POST & json_proto [15:32:42]process_json_proto [15:32:42]json parsed OK: [15:32:42]protocol is kg_v1.0 [15:32:42]action value=close_receipt [15:32:42]process_action close_receipt [15:32:42]cmd_close_receipt [15:32:42]MH_GetDate [15:32:42]Write to MH i2c: F0 00 00 80 2F 9E [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: F0 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: F0 09 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: F0 09 00 80 2F 00 A0 98 44 67 B8 5A 43 67 46 [15:32:42]GetLastDocTimeStamp 1732548438 [15:32:42]current date 1732548768 [15:32:42]FM_GetShiftState [15:32:42]SAM_PROTO_GetShiftState [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 13 01 00 [15:32:42]Write to MH i2c: E2 08 00 81 2F 80 13 01 00 00 00 00 00 2D [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 0E 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 0E 00 81 2F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 AC [15:32:42]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:32:42]wFMCommunicate OK [15:32:42]SAM_PROTO_GetShiftState done [15:32:42]FM_GetShiftState done [15:32:42]opened in 1732493066 [15:32:42]opened+sec_in_day 1732579466 [15:32:42]quantity*price = 50010 [15:32:42]sum+1 = 50012 [15:32:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 109 25.11.2024 15:32 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123068 ФПД: 52679548325783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T153248&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123068&fm=52679548325783&tin=02508201610067®Number=0000000000092681&sum=50011 [15:32:43]StoreToDocumentArchive [15:32:43]shift 556 fd 123068 [15:32:43]save to /storage/0556/doc_00123068 [15:32:43]save last doc name /storage/0556/doc_00123068 to /storage/kkm_last_doc_name [15:32:43]save OK [15:32:43]Clear old archive folders... [15:32:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:43]tlvbuf is 02083220 [15:32:43]SAM_PROTO_ClearQueue [15:32:43]wFMCommunicate request_size=4 [15:32:43]MH_SAM_APDU [15:32:43]CAPDU: 80 09 00 00 [15:32:43]Write to MH i2c: E2 08 00 8E 2F 80 09 00 00 00 00 00 00 2F [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:44]Read from MH i2c: E2 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 03 00 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 03 00 8E 2F 00 90 00 31 [15:32:44]RAPDU: 90 00 [15:32:44]wFMCommunicate OK [15:32:44]SAM_PROTO_ClearQueue done [15:32:44]KKMCreateOFDPacket [15:32:44]OFDProtocolAddRootSTLVToBuf [15:32:44]FM_MakeSignedData [15:32:44]FM_MakeSignedData [15:32:44]SAM_PROTO_SignData [15:32:44]wFMCommunicate request_size=4 [15:32:44]MH_SAM_APDU [15:32:44]CAPDU: 80 0D 01 02 [15:32:44]Write to MH i2c: E2 08 00 8F 2F 80 0D 01 02 00 00 00 00 37 [15:32:44]Write i2c OK [15:32:44]MH_I2C_Read... [15:32:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:44]Read from MH i2c: E2 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 03 00 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 03 00 8F 2F 00 90 00 32 [15:32:44]RAPDU: 90 00 [15:32:44]wFMCommunicate OK [15:32:44]wFMCommunicate request_size=255 [15:32:44]MH_SAM_APDU [15:32:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A0 98 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E0 01 00 35 04 06 00 2F [15:32:44]Write to MH i2c: E2 02 01 90 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A0 98 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E0 01 00 35 04 06 00 2F 00 00 FE [15:32:44]Write i2c OK [15:32:44]MH_I2C_Read... [15:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:44]Read from MH i2c: E2 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 03 00 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 03 00 90 2F 00 90 00 33 [15:32:44]RAPDU: 90 00 [15:32:44]wFMCommunicate OK [15:32:44]wFMCommunicate request_size=10 [15:32:44]MH_SAM_APDU [15:32:44]CAPDU: 80 0D 02 02 05 E9 69 C3 CF 97 [15:32:44]Write to MH i2c: E2 0D 00 91 2F 80 0D 02 02 05 00 E9 69 C3 CF 97 00 00 BF [15:32:44]Write i2c OK [15:32:44]MH_I2C_Read... [15:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:44]Read from MH i2c: E2 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 03 00 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 03 00 91 2F 00 90 00 34 [15:32:44]RAPDU: 90 00 [15:32:44]wFMCommunicate OK [15:32:44]wFMCommunicate request_size=4 [15:32:44]MH_SAM_APDU [15:32:44]CAPDU: 80 0D 03 02 [15:32:44]Write to MH i2c: E2 08 00 92 2F 80 0D 03 02 00 00 00 00 3C [15:32:44]Write i2c OK [15:32:44]MH_I2C_Read... [15:32:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:44]Read from MH i2c: E2 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 0B 00 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 0B 00 92 2F 00 61 AF E6 CC 49 42 4E 9B 90 00 73 [15:32:44]RAPDU: 61 AF E6 CC 49 42 4E 9B 90 00 [15:32:44]wFMCommunicate OK [15:32:44]SAM_PROTO_SignData done [15:32:44]FM_MakeSignedData done [15:32:44]CreateOFDProtocolMessage [15:32:44]wFMCommunicate request_size=4 [15:32:44]MH_SAM_APDU [15:32:44]CAPDU: 80 11 00 00 [15:32:44]Write to MH i2c: E2 08 00 93 2F 80 11 00 00 00 00 00 00 3C [15:32:44]Write i2c OK [15:32:44]MH_I2C_Read... [15:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:44]Read from MH i2c: E2 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 17 00 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 17 00 93 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 93 [15:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:32:44]wFMCommunicate OK [15:32:44]CreateOFDProtocolMessage done [15:32:44]OFDSenderStorePacket 123068 [15:32:44]StoreOFDPacket docnum=123068 [15:32:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 EA C4 07 01 45 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A0 98 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E0 01 00 35 04 06 00 2F E9 69 C3 CF 97 61 AF E6 CC 49 42 4E 9B [15:32:44]CheckFolder [15:32:44]dirname=/storage/ofd_packets [15:32:44]CheckFolder done [15:32:44]ProducePacketName [15:32:44]name=ofd_packets/00123068 [15:32:44]NVStorageSaveData ofd_packets/00123068 [15:32:44]File name is /storage/ofd_packets/00123068 [15:32:44]Write 301 bytes [15:32:44]NVStorageSaveData done [15:32:44]OFDSenderStorePacket done [15:32:44]KKMCreateOFDPacket done [15:32:44]NVStorageSaveData kkm_last_timestamp [15:32:44]File name is /storage/kkm_last_timestamp [15:32:44]Write 4 bytes [15:32:44]NVStorageSaveData done [15:32:44]ExternCall_PrintAddStr [15:32:44]wPrintStart [15:32:44]Write to MH i2c: 01 00 00 94 2F C3 [15:32:44]Write i2c OK [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: 01 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: 01 07 00 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: 01 07 00 94 2F 00 00 00 00 00 FF 0F D8 [15:32:44]RasterBufferAndPrint [15:32:44]line Счет N : (1)717863 [15:32:44]line ИНН: 02508201610067 [15:32:44]line Контрольно-Кассовый Чек [15:32:44]line ПРОДАЖА [15:32:44]line ТРК (МРК, ГНК) : 12 [15:32:44]line Товар: 2710124130 [15:32:44]line Аи-92-К-4 [15:32:44]line 7.420 * 67.40 [15:32:44]line = 500.11 [15:32:44]line НДС 12% НСП 1% [15:32:44]line > о реализуемом товаре [15:32:44]line ИТОГО: 500.11 [15:32:44]line НСП 1% : 4.43 [15:32:44]line НДС 12% : 53.11 [15:32:44]line Наличными: 0.00 [15:32:44]line Безнал.: 500.11 [15:32:44]line Место: АЗС № 64 "Партнер Нефть" [15:32:44]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:32:44]line СНО: Общий режим [15:32:44]line Чек 109 25.11.2024 15:32 [15:32:44]line Смена: 556 ФФД: 1.0 [15:32:44]line ЗНМ: 0300000033 [15:32:44]line РНМ: 0000000000092681 [15:32:44]line Версия ККМ: 001 [15:32:44]line Платежная система: O! деньги [15:32:44]line ФМ: 0000000000874881 [15:32:44]line ФД: 123068 [15:32:44]line ФПД: 52679548325783 [15:32:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T153248&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123068&fm=52679548325783&tin=02508201610067®Number=0000000000092681&sum=50011 [15:32:44]OFD Sender: Processing packet 123068 [packets to send 7, broken 6] [15:32:44]ProducePacketName [15:32:44]name=ofd_packets/00123068 [15:32:44]OFD Sender: To server: pG, [15:32:44]CommunicateWithHost lk.salyk.kg:30040 [15:32:44]ConnectInit lk.salyk.kg [15:32:44]written 0, free lines is 4095 [15:32:44]Connected sock=9 [15:32:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 EA C4 07 01 45 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A0 98 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E0 01 00 35 04 06 00 2F E9 69 C3 CF 97 61 AF E6 CC 49 42 4E 9B [15:32:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 73 C1 47 00 BD 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E0 01 00 F4 03 04 00 65 44 44 67 B6 04 01 00 00 1C 00 A2 C4 E5 A5 E5 00 [15:32:45]CommunicateWithHost err = 0 [15:32:45]CheckOFDResponse [15:32:45]1017 (14) - 77093643461234 [15:32:45]1041 (16) - 0000000000874881 [15:32:45]1040 (4) - 123068 [15:32:45]1012 (4) - 25.11.2024 09:33 [15:32:45]1206 (1) - 0 [15:32:45]OFD Sender: Remove packet 123068 [15:32:45]ProducePacketName [15:32:45]name=ofd_packets/00123068 [15:32:45]NVStorageDeleteData [15:32:45]Write to MH i2c: 01 00 00 BE 2F ED [15:32:45]Write i2c OK [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: 01 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: 01 07 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: 01 07 00 BE 2F 00 00 00 00 00 59 0C 59 [15:32:45]RasterBufferAndPrint [15:32:45]line [15:32:45]line [15:32:45]line [15:32:45]line [15:32:45]line [15:32:45]written 0, free lines is 3165 [15:32:45]MH_Cut [15:32:45]Write to MH i2c: D1 01 00 C5 2F 01 C6 [15:32:45]Write i2c OK [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: D1 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: D1 01 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: D1 01 00 C5 2F 00 C5 [15:32:45]Write to MH i2c: 01 00 00 C6 2F F5 [15:32:45]Write i2c OK [15:32:45]MH_I2C_Read... [15:32:45]OFD Sender: No OFD packet to send [15:32:46]*** Cut start [15:32:46]*** Partial cut [15:32:46]*** CUTSNS_PIN = 1 [15:32:46]*** CUTSNS_PIN = 0 [15:32:46]*** Brake cut motor [15:32:47]Read from MH i2c: 01 [15:32:47]MH_I2C_Read... [15:32:47]*** Stop cut motor [15:32:47]*** Cut end [15:32:47]Read from MH i2c: 01 07 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: 01 07 00 C6 2F 00 00 00 00 00 FF 0F 0A [15:32:47]process_action close_receipt done [15:32:47]requested_data is exist [15:32:47]produce_requested_data [15:32:47]requested_item fm.sn is exist - process it [15:32:47]wFMCommunicate request_size=4 [15:32:47]MH_SAM_APDU [15:32:47]CAPDU: 80 11 00 00 [15:32:47]Write to MH i2c: E2 08 00 C7 2F 80 11 00 00 00 00 00 00 70 [15:32:47]Write i2c OK [15:32:47]MH_I2C_Read... [15:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:47]Read from MH i2c: E2 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 17 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 17 00 C7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C7 [15:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:32:47]wFMCommunicate OK [15:32:47]requested_item fd.num is exist - process it [15:32:47]SAM_PROTO_GetFieldsCounters [15:32:47]wFMCommunicate request_size=4 [15:32:47]MH_SAM_APDU [15:32:47]CAPDU: 80 13 00 00 [15:32:47]Write to MH i2c: E2 08 00 C8 2F 80 13 00 00 00 00 00 00 73 [15:32:47]Write i2c OK [15:32:47]MH_I2C_Read... [15:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:47]Read from MH i2c: E2 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 62 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 62 00 C8 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BC E0 01 00 0E 04 04 00 2C 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 AB [15:32:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BC E0 01 00 0E 04 04 00 2C 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 [15:32:47]wFMCommunicate OK [15:32:47]SAM_PROTO_GetFieldsCounters done [15:32:47]requested_item shift.num is exist - process it [15:32:47]requested_item shift.opened is exist - process it [15:32:47]req_shift_opened [15:32:47]FM_GetShiftState [15:32:47]SAM_PROTO_GetShiftState [15:32:47]wFMCommunicate request_size=4 [15:32:47]MH_SAM_APDU [15:32:47]CAPDU: 80 13 01 00 [15:32:47]Write to MH i2c: E2 08 00 C9 2F 80 13 01 00 00 00 00 00 75 [15:32:47]Write i2c OK [15:32:47]MH_I2C_Read... [15:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:47]Read from MH i2c: E2 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 0E 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 0E 00 C9 2F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F4 [15:32:47]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:32:47]wFMCommunicate OK [15:32:47]SAM_PROTO_GetShiftState done [15:32:47]FM_GetShiftState done [15:32:47]req_shift_opened done [15:32:47]requested_item shift.open_date is exist - process it [15:32:47]req_shift_open_date [15:32:47]req_shift_open_date done [15:32:47]produce_requested_data done [15:32:47]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123068,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [15:32:47]process_action_free close_receipt [15:32:47]json_value_free [15:32:47]json_value_free done [15:32:47]process_json_proto returns [15:32:47]Send response to host [15:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123068,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [15:32:47]free response buf [15:32:47]execute_script done [15:32:47]execute_script returns [15:32:47]free content buf [15:32:47]Sock 10.Close socket [15:32:47]Sock 10.Thread stoped [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:38]accept exits with 7 [15:33:38]New connection [15:33:38]New thread 3066580324 created [15:33:38]Thread 3066723684 joined [15:33:38]Waiting for new connection... [15:33:38] Sock 7.Parse request [15:33:38]Sock 7.Check first char [15:33:38]Sock 7.First char is OK [15:33:38]request: POST /json_proto HTTP/1.0 [15:33:38]Method: POST [15:33:38]URL: /json_proto [15:33:38]Method is POST - this is cgi request [15:33:38]url: /json_proto [15:33:38]query_string will be loaded in cgi processing [15:33:38]execute_cgi json_proto POST (null) [15:33:38]execute_cgi path=json_proto method=POST [15:33:38]POST find Content-Length [15:33:38]Host: 172.17.37.4:8080 [15:33:38]Content-Length: 682 [15:33:38]Content-Type: application/json [15:33:38] [15:33:38]POST finish read [15:33:38]Found Content-Length = 682 [15:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:38]execute_script... [15:33: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)717864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:38]POST & json_proto [15:33:38]process_json_proto [15:33:38]json parsed OK: [15:33:38]protocol is kg_v1.0 [15:33:38]action value=close_receipt [15:33:38]process_action close_receipt [15:33:38]cmd_close_receipt [15:33:38]MH_GetDate [15:33:38]Write to MH i2c: F0 00 00 CA 2F E8 [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: F0 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: F0 09 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: F0 09 00 CA 2F 00 D8 98 44 67 B8 5A 43 67 C8 [15:33:38]GetLastDocTimeStamp 1732548768 [15:33:38]current date 1732548824 [15:33:38]FM_GetShiftState [15:33:38]SAM_PROTO_GetShiftState [15:33:38]wFMCommunicate request_size=4 [15:33:38]MH_SAM_APDU [15:33:38]CAPDU: 80 13 01 00 [15:33:38]Write to MH i2c: E2 08 00 CB 2F 80 13 01 00 00 00 00 00 77 [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:38]Read from MH i2c: E2 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 0E 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 0E 00 CB 2F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F6 [15:33:38]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:33:38]wFMCommunicate OK [15:33:38]SAM_PROTO_GetShiftState done [15:33:38]FM_GetShiftState done [15:33:38]opened in 1732493066 [15:33:38]opened+sec_in_day 1732579466 [15:33:38]quantity*price = 100055 [15:33:38]sum+1 = 100057 [15:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 110 25.11.2024 15:33 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123069 ФПД: 24449938977277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T153344&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123069&fm=24449938977277&tin=02508201610067®Number=0000000000092681&sum=100000 [15:33:39]StoreToDocumentArchive [15:33:39]shift 556 fd 123069 [15:33:39]save to /storage/0556/doc_00123069 [15:33:39]save last doc name /storage/0556/doc_00123069 to /storage/kkm_last_doc_name [15:33:39]save OK [15:33:39]Clear old archive folders... [15:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:39]tlvbuf is B6F20C40 [15:33:39]SAM_PROTO_ClearQueue [15:33:39]wFMCommunicate request_size=4 [15:33:39]MH_SAM_APDU [15:33:39]CAPDU: 80 09 00 00 [15:33:39]Write to MH i2c: E2 08 00 D8 2F 80 09 00 00 00 00 00 00 79 [15:33:39]Write i2c OK [15:33:39]MH_I2C_Read... [15:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:39]Read from MH i2c: E2 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 03 00 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 03 00 D8 2F 00 90 00 7B [15:33:39]RAPDU: 90 00 [15:33:39]wFMCommunicate OK [15:33:39]SAM_PROTO_ClearQueue done [15:33:39]KKMCreateOFDPacket [15:33:39]OFDProtocolAddRootSTLVToBuf [15:33:39]FM_MakeSignedData [15:33:39]FM_MakeSignedData [15:33:39]SAM_PROTO_SignData [15:33:39]wFMCommunicate request_size=4 [15:33:39]MH_SAM_APDU [15:33:39]CAPDU: 80 0D 01 02 [15:33:39]Write to MH i2c: E2 08 00 D9 2F 80 0D 01 02 00 00 00 00 81 [15:33:39]Write i2c OK [15:33:39]MH_I2C_Read... [15:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:39]Read from MH i2c: E2 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 03 00 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 03 00 D9 2F 00 90 00 7C [15:33:39]RAPDU: 90 00 [15:33:39]wFMCommunicate OK [15:33:39]wFMCommunicate request_size=255 [15:33:39]MH_SAM_APDU [15:33:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6E 00 00 00 F4 03 04 00 D8 98 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E0 01 00 35 04 06 00 16 [15:33:39]Write to MH i2c: E2 02 01 DA 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6E 00 00 00 F4 03 04 00 D8 98 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E0 01 00 35 04 06 00 16 00 00 68 [15:33:39]Write i2c OK [15:33:39]MH_I2C_Read... [15:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:40]Read from MH i2c: E2 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 03 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 03 00 DA 2F 00 90 00 7D [15:33:40]RAPDU: 90 00 [15:33:40]wFMCommunicate OK [15:33:40]wFMCommunicate request_size=10 [15:33:40]MH_SAM_APDU [15:33:40]CAPDU: 80 0D 02 02 05 3C B1 ED 71 FD [15:33:40]Write to MH i2c: E2 0D 00 DB 2F 80 0D 02 02 05 00 3C B1 ED 71 FD 00 00 D6 [15:33:40]Write i2c OK [15:33:40]MH_I2C_Read... [15:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:40]Read from MH i2c: E2 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 03 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 03 00 DB 2F 00 90 00 7E [15:33:40]RAPDU: 90 00 [15:33:40]wFMCommunicate OK [15:33:40]wFMCommunicate request_size=4 [15:33:40]MH_SAM_APDU [15:33:40]CAPDU: 80 0D 03 02 [15:33:40]Write to MH i2c: E2 08 00 DC 2F 80 0D 03 02 00 00 00 00 86 [15:33:40]Write i2c OK [15:33:40]MH_I2C_Read... [15:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:40]Read from MH i2c: E2 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 0B 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 0B 00 DC 2F 00 D3 7D C2 65 5C 10 93 55 90 00 52 [15:33:40]RAPDU: D3 7D C2 65 5C 10 93 55 90 00 [15:33:40]wFMCommunicate OK [15:33:40]SAM_PROTO_SignData done [15:33:40]FM_MakeSignedData done [15:33:40]CreateOFDProtocolMessage [15:33:40]wFMCommunicate request_size=4 [15:33:40]MH_SAM_APDU [15:33:40]CAPDU: 80 11 00 00 [15:33:40]Write to MH i2c: E2 08 00 DD 2F 80 11 00 00 00 00 00 00 86 [15:33:40]Write i2c OK [15:33:40]MH_I2C_Read... [15:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:40]Read from MH i2c: E2 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 17 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 17 00 DD 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DD [15:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:33:40]wFMCommunicate OK [15:33:40]CreateOFDProtocolMessage done [15:33:40]OFDSenderStorePacket 123069 [15:33:40]StoreOFDPacket docnum=123069 [15:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 14 F6 07 01 82 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6E 00 00 00 F4 03 04 00 D8 98 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E0 01 00 35 04 06 00 16 3C B1 ED 71 FD D3 7D C2 65 5C 10 93 55 [15:33:40]CheckFolder [15:33:40]dirname=/storage/ofd_packets [15:33:40]CheckFolder done [15:33:40]ProducePacketName [15:33:40]name=ofd_packets/00123069 [15:33:40]NVStorageSaveData ofd_packets/00123069 [15:33:40]File name is /storage/ofd_packets/00123069 [15:33:40]Write 301 bytes [15:33:40]NVStorageSaveData done [15:33:40]OFDSenderStorePacket done [15:33:40]KKMCreateOFDPacket done [15:33:40]NVStorageSaveData kkm_last_timestamp [15:33:40]File name is /storage/kkm_last_timestamp [15:33:40]Write 4 bytes [15:33:40]NVStorageSaveData done [15:33:40]ExternCall_PrintAddStr [15:33:40]wPrintStart [15:33:40]Write to MH i2c: 01 00 00 DE 2F 0D [15:33:40]Write i2c OK [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: 01 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: 01 07 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: 01 07 00 DE 2F 00 00 00 00 00 FF 0F 22 [15:33:40]RasterBufferAndPrint [15:33:40]line Счет N : (1)717864 [15:33:40]line ИНН: 02508201610067 [15:33:40]line Контрольно-Кассовый Чек [15:33:40]line ПРОДАЖА [15:33:40]line ТРК (МРК, ГНК) : 21 [15:33:40]line Товар: 2710124500 [15:33:40]line Аи-95-К-5 [15:33:40]line 13.270 * 75.40 [15:33:40]line = 1000.56 [15:33:40]line НДС 12% НСП 1% [15:33:40]line > о реализуемом товаре [15:33:40]line ОКРУГЛЕНИЕ: -0.56 [15:33:40]line ИТОГО: 1000.00 [15:33:40]line Внесено: 1000.00 [15:33:40]line СДАЧА: 0.00 [15:33:40]line НСП 1% : 8.85 [15:33:40]line НДС 12% : 106.25 [15:33:40]line Наличными: 1000.00 [15:33:40]line Безнал.: 0.00 [15:33:40]line Место: АЗС № 64 "Партнер Нефть" [15:33:40]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:33:40]line СНО: Общий режим [15:33:40]line Чек 110 25.11.2024 15:33 [15:33:40]line Смена: 556 ФФД: 1.0 [15:33:40]line ЗНМ: 0300000033 [15:33:40]line РНМ: 0000000000092681 [15:33:40]line Версия ККМ: 001 [15:33:40]line ФМ: 0000000000874881 [15:33:40]line ФД: 123069 [15:33:40]line ФПД: 24449938977277 [15:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T153344&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123069&fm=24449938977277&tin=02508201610067®Number=0000000000092681&sum=100000 [15:33:40]OFD Sender: Processing packet 123069 [packets to send 7, broken 6] [15:33:40]ProducePacketName [15:33:40]name=ofd_packets/00123069 [15:33:40]OFD Sender: To server: pG, [15:33:40]CommunicateWithHost lk.salyk.kg:30040 [15:33:40]ConnectInit lk.salyk.kg [15:33:40]written 0, free lines is 4095 [15:33:40]Connected sock=10 [15:33:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 14 F6 07 01 82 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6E 00 00 00 F4 03 04 00 D8 98 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E0 01 00 35 04 06 00 16 3C B1 ED 71 FD D3 7D C2 65 5C 10 93 55 [15:33:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 34 0E 47 00 FE 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 34 38 38 31 10 04 04 00 BD E0 01 00 F4 03 04 00 9D 44 44 67 B6 04 01 00 00 A7 C6 A3 2A E6 DC 86 57 [15:33:40]CommunicateWithHost err = 0 [15:33:40]CheckOFDResponse [15:33:40]1017 (14) - 77093643461234 [15:33:40]1041 (16) - 0000000000874881 [15:33:40]1040 (4) - 123069 [15:33:40]1012 (4) - 25.11.2024 09:34 [15:33:40]1206 (1) - 0 [15:33:40]OFD Sender: Remove packet 123069 [15:33:40]ProducePacketName [15:33:40]name=ofd_packets/00123069 [15:33:40]NVStorageDeleteData [15:33:41]Write to MH i2c: 01 00 00 09 30 39 [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: 01 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: 01 07 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: 01 07 00 09 30 00 00 00 00 00 4E 0C 9A [15:33:41]RasterBufferAndPrint [15:33:41]line [15:33:41]line [15:33:41]line [15:33:41]line [15:33:41]line [15:33:41]written 0, free lines is 3154 [15:33:41]MH_Cut [15:33:41]Write to MH i2c: D1 01 00 10 30 01 12 [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: D1 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: D1 01 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: D1 01 00 10 30 00 11 [15:33:41]Write to MH i2c: 01 00 00 11 30 41 [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]OFD Sender: No OFD packet to send [15:33:42]*** Cut start [15:33:42]*** Partial cut [15:33:42]*** CUTSNS_PIN = 1 [15:33:42]*** CUTSNS_PIN = 0 [15:33:42]*** Brake cut motor [15:33:43]Read from MH i2c: 01 [15:33:43]MH_I2C_Read... [15:33:43]*** Stop cut motor [15:33:43]*** Cut end [15:33:43]Read from MH i2c: 01 07 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 07 00 11 30 00 00 00 00 00 FF 0F 56 [15:33:43]process_action close_receipt done [15:33:43]requested_data is exist [15:33:43]produce_requested_data [15:33:43]requested_item fm.sn is exist - process it [15:33:43]wFMCommunicate request_size=4 [15:33:43]MH_SAM_APDU [15:33:43]CAPDU: 80 11 00 00 [15:33:43]Write to MH i2c: E2 08 00 12 30 80 11 00 00 00 00 00 00 BC [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:43]Read from MH i2c: E2 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 17 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 17 00 12 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 13 [15:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:33:43]wFMCommunicate OK [15:33:43]requested_item fd.num is exist - process it [15:33:43]SAM_PROTO_GetFieldsCounters [15:33:43]wFMCommunicate request_size=4 [15:33:43]MH_SAM_APDU [15:33:43]CAPDU: 80 13 00 00 [15:33:43]Write to MH i2c: E2 08 00 13 30 80 13 00 00 00 00 00 00 BF [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:43]Read from MH i2c: E2 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 62 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 62 00 13 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BD E0 01 00 0E 04 04 00 2C 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 FB [15:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BD E0 01 00 0E 04 04 00 2C 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 [15:33:43]wFMCommunicate OK [15:33:43]SAM_PROTO_GetFieldsCounters done [15:33:43]requested_item shift.num is exist - process it [15:33:43]requested_item shift.opened is exist - process it [15:33:43]req_shift_opened [15:33:43]FM_GetShiftState [15:33:43]SAM_PROTO_GetShiftState [15:33:43]wFMCommunicate request_size=4 [15:33:43]MH_SAM_APDU [15:33:43]CAPDU: 80 13 01 00 [15:33:43]Write to MH i2c: E2 08 00 14 30 80 13 01 00 00 00 00 00 C1 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:43]Read from MH i2c: E2 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 0E 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 0E 00 14 30 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 40 [15:33:43]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:33:43]wFMCommunicate OK [15:33:43]SAM_PROTO_GetShiftState done [15:33:43]FM_GetShiftState done [15:33:43]req_shift_opened done [15:33:43]requested_item shift.open_date is exist - process it [15:33:43]req_shift_open_date [15:33:43]req_shift_open_date done [15:33:43]produce_requested_data done [15:33:43]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123069,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [15:33:43]process_action_free close_receipt [15:33:43]json_value_free [15:33:43]json_value_free done [15:33:43]process_json_proto returns [15:33:43]Send response to host [15:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123069,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [15:33:43]free response buf [15:33:43]execute_script done [15:33:43]execute_script returns [15:33:43]free content buf [15:33:43]Sock 7.Close socket [15:33:43]Sock 7.Thread stoped [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:37:58]accept exits with 9 [15:37:58]New connection [15:37:58]New thread 3066723684 created [15:37:58]Thread 3066580324 joined [15:37:58]Waiting for new connection... [15:37:58] Sock 9.Parse request [15:37:58]Sock 9.Check first char [15:37:58]Sock 9.First char is OK [15:37:58]request: POST /json_proto HTTP/1.0 [15:37:58]Method: POST [15:37:58]URL: /json_proto [15:37:58]Method is POST - this is cgi request [15:37:58]url: /json_proto [15:37:58]query_string will be loaded in cgi processing [15:37:58]execute_cgi json_proto POST (null) [15:37:58]execute_cgi path=json_proto method=POST [15:37:58]POST find Content-Length [15:37:58]Host: 172.17.37.4:8080 [15:37:58]Content-Length: 677 [15:37:58]Content-Type: application/json [15:37:58] [15:37:58]POST finish read [15:37:58]Found Content-Length = 677 [15:37:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:58]execute_script... [15:37: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)717865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:58]POST & json_proto [15:37:58]process_json_proto [15:37:58]json parsed OK: [15:37:58]protocol is kg_v1.0 [15:37:58]action value=close_receipt [15:37:58]process_action close_receipt [15:37:58]cmd_close_receipt [15:37:58]MH_GetDate [15:37:58]Write to MH i2c: F0 00 00 15 30 34 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: F0 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: F0 09 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: F0 09 00 15 30 00 DC 99 44 67 B8 5A 43 67 19 [15:37:58]GetLastDocTimeStamp 1732548824 [15:37:58]current date 1732549084 [15:37:58]FM_GetShiftState [15:37:58]SAM_PROTO_GetShiftState [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 13 01 00 [15:37:58]Write to MH i2c: E2 08 00 16 30 80 13 01 00 00 00 00 00 C3 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0E 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0E 00 16 30 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 42 [15:37:58]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:37:58]wFMCommunicate OK [15:37:58]SAM_PROTO_GetShiftState done [15:37:58]FM_GetShiftState done [15:37:58]opened in 1732493066 [15:37:58]opened+sec_in_day 1732579466 [15:37:58]quantity*price = 50010 [15:37:58]sum+1 = 50012 [15:37:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 111 25.11.2024 15:38 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123070 ФПД: 224643658774005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T153804&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123070&fm=224643658774005&tin=02508201610067®Number=0000000000092681&sum=50000 [15:37:59]StoreToDocumentArchive [15:37:59]shift 556 fd 123070 [15:37:59]save to /storage/0556/doc_00123070 [15:37:59]save last doc name /storage/0556/doc_00123070 to /storage/kkm_last_doc_name [15:37:59]save OK [15:37:59]Clear old archive folders... [15:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:59]tlvbuf is 02109FA0 [15:37:59]SAM_PROTO_ClearQueue [15:37:59]wFMCommunicate request_size=4 [15:37:59]MH_SAM_APDU [15:37:59]CAPDU: 80 09 00 00 [15:37:59]Write to MH i2c: E2 08 00 23 30 80 09 00 00 00 00 00 00 C5 [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:59]Read from MH i2c: E2 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: E2 03 00 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: E2 03 00 23 30 00 90 00 C7 [15:37:59]RAPDU: 90 00 [15:37:59]wFMCommunicate OK [15:37:59]SAM_PROTO_ClearQueue done [15:37:59]KKMCreateOFDPacket [15:37:59]OFDProtocolAddRootSTLVToBuf [15:37:59]FM_MakeSignedData [15:37:59]FM_MakeSignedData [15:37:59]SAM_PROTO_SignData [15:37:59]wFMCommunicate request_size=4 [15:37:59]MH_SAM_APDU [15:37:59]CAPDU: 80 0D 01 02 [15:37:59]Write to MH i2c: E2 08 00 24 30 80 0D 01 02 00 00 00 00 CD [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:59]Read from MH i2c: E2 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: E2 03 00 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: E2 03 00 24 30 00 90 00 C8 [15:37:59]RAPDU: 90 00 [15:37:59]wFMCommunicate OK [15:37:59]wFMCommunicate request_size=255 [15:37:59]MH_SAM_APDU [15:37:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 DC 99 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E0 01 00 35 04 06 00 CC [15:37:59]Write to MH i2c: E2 02 01 25 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 DC 99 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E0 01 00 35 04 06 00 CC 00 00 5C [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:00]Read from MH i2c: E2 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 03 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 03 00 25 30 00 90 00 C9 [15:38:00]RAPDU: 90 00 [15:38:00]wFMCommunicate OK [15:38:00]wFMCommunicate request_size=10 [15:38:00]MH_SAM_APDU [15:38:00]CAPDU: 80 0D 02 02 05 4F ED 7B 75 F5 [15:38:00]Write to MH i2c: E2 0D 00 26 30 80 0D 02 02 05 00 4F ED 7B 75 F5 00 00 FB [15:38:00]Write i2c OK [15:38:00]MH_I2C_Read... [15:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:00]Read from MH i2c: E2 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 03 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 03 00 26 30 00 90 00 CA [15:38:00]RAPDU: 90 00 [15:38:00]wFMCommunicate OK [15:38:00]wFMCommunicate request_size=4 [15:38:00]MH_SAM_APDU [15:38:00]CAPDU: 80 0D 03 02 [15:38:00]Write to MH i2c: E2 08 00 27 30 80 0D 03 02 00 00 00 00 D2 [15:38:00]Write i2c OK [15:38:00]MH_I2C_Read... [15:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:00]Read from MH i2c: E2 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 0B 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 0B 00 27 30 00 00 15 EF 7E BD EB A6 CF 90 00 72 [15:38:00]RAPDU: 00 15 EF 7E BD EB A6 CF 90 00 [15:38:00]wFMCommunicate OK [15:38:00]SAM_PROTO_SignData done [15:38:00]FM_MakeSignedData done [15:38:00]CreateOFDProtocolMessage [15:38:00]wFMCommunicate request_size=4 [15:38:00]MH_SAM_APDU [15:38:00]CAPDU: 80 11 00 00 [15:38:00]Write to MH i2c: E2 08 00 28 30 80 11 00 00 00 00 00 00 D2 [15:38:00]Write i2c OK [15:38:00]MH_I2C_Read... [15:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:00]Read from MH i2c: E2 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 17 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 17 00 28 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 29 [15:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:38:00]wFMCommunicate OK [15:38:00]CreateOFDProtocolMessage done [15:38:00]OFDSenderStorePacket 123070 [15:38:00]StoreOFDPacket docnum=123070 [15:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4E 14 07 01 EC 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 DC 99 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E0 01 00 35 04 06 00 CC 4F ED 7B 75 F5 00 15 EF 7E BD EB A6 CF [15:38:00]CheckFolder [15:38:00]dirname=/storage/ofd_packets [15:38:00]CheckFolder done [15:38:00]ProducePacketName [15:38:00]name=ofd_packets/00123070 [15:38:00]NVStorageSaveData ofd_packets/00123070 [15:38:00]File name is /storage/ofd_packets/00123070 [15:38:00]Write 301 bytes [15:38:00]NVStorageSaveData done [15:38:00]OFDSenderStorePacket done [15:38:00]KKMCreateOFDPacket done [15:38:00]NVStorageSaveData kkm_last_timestamp [15:38:00]File name is /storage/kkm_last_timestamp [15:38:00]Write 4 bytes [15:38:00]NVStorageSaveData done [15:38:00]ExternCall_PrintAddStr [15:38:00]wPrintStart [15:38:00]Write to MH i2c: 01 00 00 29 30 59 [15:38:00]Write i2c OK [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: 01 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: 01 07 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: 01 07 00 29 30 00 00 00 00 00 FF 0F 6E [15:38:00]RasterBufferAndPrint [15:38:00]line Счет N : (1)717865 [15:38:00]line ИНН: 02508201610067 [15:38:00]line Контрольно-Кассовый Чек [15:38:00]line ПРОДАЖА [15:38:00]line ТРК (МРК, ГНК) : 12 [15:38:00]line Товар: 2710124130 [15:38:00]line Аи-92-К-4 [15:38:00]line 7.420 * 67.40 [15:38:00]line = 500.11 [15:38:00]line НДС 12% НСП 1% [15:38:00]line > о реализуемом товаре [15:38:00]line ОКРУГЛЕНИЕ: -0.11 [15:38:00]line ИТОГО: 500.00 [15:38:00]line Внесено: 500.00 [15:38:00]line СДАЧА: 0.00 [15:38:00]line НСП 1% : 4.43 [15:38:00]line НДС 12% : 53.11 [15:38:00]line Наличными: 500.00 [15:38:00]line Безнал.: 0.00 [15:38:00]line Место: АЗС № 64 "Партнер Нефть" [15:38:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:38:00]line СНО: Общий режим [15:38:00]line Чек 111 25.11.2024 15:38 [15:38:00]line Смена: 556 ФФД: 1.0 [15:38:00]line ЗНМ: 0300000033 [15:38:00]line РНМ: 0000000000092681 [15:38:00]line Версия ККМ: 001 [15:38:00]line ФМ: 0000000000874881 [15:38:00]line ФД: 123070 [15:38:00]line ФПД: 224643658774005 [15:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T153804&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123070&fm=224643658774005&tin=02508201610067®Number=0000000000092681&sum=50000 [15:38:00]OFD Sender: Processing packet 123070 [packets to send 7, broken 6] [15:38:00]ProducePacketName [15:38:00]name=ofd_packets/00123070 [15:38:00]OFD Sender: To server: pG, [15:38:00]CommunicateWithHost lk.salyk.kg:30040 [15:38:00]ConnectInit lk.salyk.kg [15:38:00]written 0, free lines is 4095 [15:38:00]Connected sock=10 [15:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4E 14 07 01 EC 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 DC 99 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E0 01 00 35 04 06 00 CC 4F ED 7B 75 F5 00 15 EF 7E BD EB A6 CF [15:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 64 61 47 00 6C C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E0 01 00 F4 03 04 00 A1 45 44 67 B6 04 01 00 00 64 D4 49 19 93 B2 0D 45 [15:38:00]CommunicateWithHost err = 0 [15:38:00]CheckOFDResponse [15:38:00]1017 (14) - 77093643461234 [15:38:00]1041 (16) - 0000000000874881 [15:38:00]1040 (4) - 123070 [15:38:00]1012 (4) - 25.11.2024 09:38 [15:38:00]1206 (1) - 0 [15:38:00]OFD Sender: Remove packet 123070 [15:38:00]ProducePacketName [15:38:00]name=ofd_packets/00123070 [15:38:00]NVStorageDeleteData [15:38:01]Write to MH i2c: 01 00 00 54 30 84 [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: 01 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: 01 07 00 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: 01 07 00 54 30 00 00 00 00 00 4A 0C E1 [15:38:01]RasterBufferAndPrint [15:38:01]line [15:38:01]line [15:38:01]line [15:38:01]line [15:38:01]line [15:38:01]written 0, free lines is 3150 [15:38:01]MH_Cut [15:38:01]Write to MH i2c: D1 01 00 5B 30 01 5D [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: D1 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: D1 01 00 [15:38:01]MH_I2C_Read... [15:38:01]Read from MH i2c: D1 01 00 5B 30 00 5C [15:38:01]Write to MH i2c: 01 00 00 5C 30 8C [15:38:01]Write i2c OK [15:38:01]MH_I2C_Read... [15:38:01]OFD Sender: No OFD packet to send [15:38:02]*** Cut start [15:38:02]*** Partial cut [15:38:02]*** CUTSNS_PIN = 1 [15:38:02]*** CUTSNS_PIN = 0 [15:38:02]*** Brake cut motor [15:38:03]Read from MH i2c: 01 [15:38:03]MH_I2C_Read... [15:38:03]*** Stop cut motor [15:38:03]*** Cut end [15:38:03]Read from MH i2c: 01 07 00 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: 01 07 00 5C 30 00 00 00 00 00 FF 0F A1 [15:38:03]process_action close_receipt done [15:38:03]requested_data is exist [15:38:03]produce_requested_data [15:38:03]requested_item fm.sn is exist - process it [15:38:03]wFMCommunicate request_size=4 [15:38:03]MH_SAM_APDU [15:38:03]CAPDU: 80 11 00 00 [15:38:03]Write to MH i2c: E2 08 00 5D 30 80 11 00 00 00 00 00 00 07 [15:38:03]Write i2c OK [15:38:03]MH_I2C_Read... [15:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:03]Read from MH i2c: E2 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 17 00 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 17 00 5D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5E [15:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:38:03]wFMCommunicate OK [15:38:03]requested_item fd.num is exist - process it [15:38:03]SAM_PROTO_GetFieldsCounters [15:38:03]wFMCommunicate request_size=4 [15:38:03]MH_SAM_APDU [15:38:03]CAPDU: 80 13 00 00 [15:38:03]Write to MH i2c: E2 08 00 5E 30 80 13 00 00 00 00 00 00 0A [15:38:03]Write i2c OK [15:38:03]MH_I2C_Read... [15:38:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:03]Read from MH i2c: E2 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 62 00 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 62 00 5E 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BE E0 01 00 0E 04 04 00 2C 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 4A [15:38:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BE E0 01 00 0E 04 04 00 2C 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 [15:38:03]wFMCommunicate OK [15:38:03]SAM_PROTO_GetFieldsCounters done [15:38:03]requested_item shift.num is exist - process it [15:38:03]requested_item shift.opened is exist - process it [15:38:03]req_shift_opened [15:38:03]FM_GetShiftState [15:38:03]SAM_PROTO_GetShiftState [15:38:03]wFMCommunicate request_size=4 [15:38:03]MH_SAM_APDU [15:38:03]CAPDU: 80 13 01 00 [15:38:03]Write to MH i2c: E2 08 00 5F 30 80 13 01 00 00 00 00 00 0C [15:38:03]Write i2c OK [15:38:03]MH_I2C_Read... [15:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:03]Read from MH i2c: E2 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 0E 00 [15:38:03]MH_I2C_Read... [15:38:03]Read from MH i2c: E2 0E 00 5F 30 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 8B [15:38:03]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:38:03]wFMCommunicate OK [15:38:03]SAM_PROTO_GetShiftState done [15:38:03]FM_GetShiftState done [15:38:03]req_shift_opened done [15:38:03]requested_item shift.open_date is exist - process it [15:38:03]req_shift_open_date [15:38:03]req_shift_open_date done [15:38:03]produce_requested_data done [15:38:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123070,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [15:38:03]process_action_free close_receipt [15:38:03]json_value_free [15:38:03]json_value_free done [15:38:03]process_json_proto returns [15:38:03]Send response to host [15:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123070,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [15:38:03]free response buf [15:38:03]execute_script done [15:38:03]execute_script returns [15:38:03]free content buf [15:38:03]Sock 9.Close socket [15:38:03]Sock 9.Thread stoped [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:47:57]accept exits with 7 [15:47:57]New connection [15:47:57]New thread 3066580324 created [15:47:57]Thread 3066723684 joined [15:47:57]Waiting for new connection... [15:47:57] Sock 7.Parse request [15:47:57]Sock 7.Check first char [15:47:57]Sock 7.First char is OK [15:47:57]request: POST /json_proto HTTP/1.0 [15:47:57]Method: POST [15:47:57]URL: /json_proto [15:47:57]Method is POST - this is cgi request [15:47:57]url: /json_proto [15:47:57]query_string will be loaded in cgi processing [15:47:57]execute_cgi json_proto POST (null) [15:47:57]execute_cgi path=json_proto method=POST [15:47:57]POST find Content-Length [15:47:57]Host: 172.17.37.4:8080 [15:47:57]Content-Length: 800 [15:47:57]Content-Type: application/json [15:47:57] [15:47:57]POST finish read [15:47:57]Found Content-Length = 800 [15:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 9.650, "sum" : 650.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:57]execute_script... [15:47: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)717866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 9.650, "sum" : 650.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:57]POST & json_proto [15:47:57]process_json_proto [15:47:57]json parsed OK: [15:47:57]protocol is kg_v1.0 [15:47:57]action value=close_receipt [15:47:57]process_action close_receipt [15:47:57]cmd_close_receipt [15:47:57]MH_GetDate [15:47:57]Write to MH i2c: F0 00 00 60 30 7F [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: F0 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: F0 09 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: F0 09 00 60 30 00 33 9C 44 67 B8 5A 43 67 BE [15:47:57]GetLastDocTimeStamp 1732549084 [15:47:57]current date 1732549683 [15:47:57]FM_GetShiftState [15:47:57]SAM_PROTO_GetShiftState [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 13 01 00 [15:47:57]Write to MH i2c: E2 08 00 61 30 80 13 01 00 00 00 00 00 0E [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 61 30 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 8D [15:47:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_GetShiftState done [15:47:57]FM_GetShiftState done [15:47:57]opened in 1732493066 [15:47:57]opened+sec_in_day 1732579466 [15:47:57]quantity*price = 65041 [15:47:57]sum+1 = 65042 [15:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.41 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 0.00 Безнал.: 650.41 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 112 25.11.2024 15:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123071 ФПД: 255695962867536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T154803&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123071&fm=255695962867536&tin=02508201610067®Number=0000000000092681&sum=65041 [15:47:58]StoreToDocumentArchive [15:47:58]shift 556 fd 123071 [15:47:58]save to /storage/0556/doc_00123071 [15:47:58]save last doc name /storage/0556/doc_00123071 to /storage/kkm_last_doc_name [15:47:58]save OK [15:47:58]Clear old archive folders... [15:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:58]tlvbuf is 01F4E1D0 [15:47:58]SAM_PROTO_ClearQueue [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 09 00 00 [15:47:58]Write to MH i2c: E2 08 00 6E 30 80 09 00 00 00 00 00 00 10 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 6E 30 00 90 00 12 [15:47:58]RAPDU: 90 00 [15:47:58]wFMCommunicate OK [15:47:58]SAM_PROTO_ClearQueue done [15:47:58]KKMCreateOFDPacket [15:47:58]OFDProtocolAddRootSTLVToBuf [15:47:58]FM_MakeSignedData [15:47:58]FM_MakeSignedData [15:47:58]SAM_PROTO_SignData [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 0D 01 02 [15:47:58]Write to MH i2c: E2 08 00 6F 30 80 0D 01 02 00 00 00 00 18 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 6F 30 00 90 00 13 [15:47:58]RAPDU: 90 00 [15:47:58]wFMCommunicate OK [15:47:58]wFMCommunicate request_size=255 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 11 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 33 9C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BF E0 01 00 35 04 06 00 E8 [15:47:58]Write to MH i2c: E2 02 01 70 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 34 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 11 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 33 9C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BF E0 01 00 35 04 06 00 E8 00 00 8F [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 70 30 00 90 00 14 [15:47:58]RAPDU: 90 00 [15:47:58]wFMCommunicate OK [15:47:58]wFMCommunicate request_size=10 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 0D 02 02 05 8D DB 09 87 50 [15:47:58]Write to MH i2c: E2 0D 00 71 30 80 0D 02 02 05 00 8D DB 09 87 50 00 00 6D [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 71 30 00 90 00 15 [15:47:58]RAPDU: 90 00 [15:47:58]wFMCommunicate OK [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 0D 03 02 [15:47:58]Write to MH i2c: E2 08 00 72 30 80 0D 03 02 00 00 00 00 1D [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0B 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0B 00 72 30 00 21 E3 11 1A 45 DB F8 0F 90 00 74 [15:47:58]RAPDU: 21 E3 11 1A 45 DB F8 0F 90 00 [15:47:58]wFMCommunicate OK [15:47:58]SAM_PROTO_SignData done [15:47:58]FM_MakeSignedData done [15:47:58]CreateOFDProtocolMessage [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 11 00 00 [15:47:58]Write to MH i2c: E2 08 00 73 30 80 11 00 00 00 00 00 00 1D [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:59]Read from MH i2c: E2 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 17 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 17 00 73 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 74 [15:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:47:59]wFMCommunicate OK [15:47:59]CreateOFDProtocolMessage done [15:47:59]OFDSenderStorePacket 123071 [15:47:59]StoreOFDPacket docnum=123071 [15:47:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 81 D7 07 01 90 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 34 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 11 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 33 9C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BF E0 01 00 35 04 06 00 E8 8D DB 09 87 50 21 E3 11 1A 45 DB F8 0F [15:47:59]CheckFolder [15:47:59]dirname=/storage/ofd_packets [15:47:59]CheckFolder done [15:47:59]ProducePacketName [15:47:59]name=ofd_packets/00123071 [15:47:59]NVStorageSaveData ofd_packets/00123071 [15:47:59]File name is /storage/ofd_packets/00123071 [15:47:59]Write 301 bytes [15:47:59]NVStorageSaveData done [15:47:59]OFDSenderStorePacket done [15:47:59]KKMCreateOFDPacket done [15:47:59]NVStorageSaveData kkm_last_timestamp [15:47:59]File name is /storage/kkm_last_timestamp [15:47:59]Write 4 bytes [15:47:59]NVStorageSaveData done [15:47:59]ExternCall_PrintAddStr [15:47:59]wPrintStart [15:47:59]Write to MH i2c: 01 00 00 74 30 A4 [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 07 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 07 00 74 30 00 00 00 00 00 FF 0F B9 [15:47:59]RasterBufferAndPrint [15:47:59]line Счет N : (1)717866 [15:47:59]line ИНН: 02508201610067 [15:47:59]line Контрольно-Кассовый Чек [15:47:59]line ПРОДАЖА [15:47:59]line ТРК (МРК, ГНК) : 12 [15:47:59]line Товар: 2710124130 [15:47:59]line Аи-92-К-4 [15:47:59]line 9.650 * 67.40 [15:47:59]line = 650.41 [15:47:59]line НДС 12% НСП 1% [15:47:59]line > о реализуемом товаре [15:47:59]line ИТОГО: 650.41 [15:47:59]line НСП 1% : 5.76 [15:47:59]line НДС 12% : 69.07 [15:47:59]line Наличными: 0.00 [15:47:59]line Безнал.: 650.41 [15:47:59]line Место: АЗС № 64 "Партнер Нефть" [15:47:59]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:47:59]line СНО: Общий режим [15:47:59]line Чек 112 25.11.2024 15:48 [15:47:59]line Смена: 556 ФФД: 1.0 [15:47:59]line ЗНМ: 0300000033 [15:47:59]line РНМ: 0000000000092681 [15:47:59]line Версия ККМ: 001 [15:47:59]line Платежная система: O! деньги [15:47:59]line ФМ: 0000000000874881 [15:47:59]line ФД: 123071 [15:47:59]line ФПД: 255695962867536 [15:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T154803&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123071&fm=255695962867536&tin=02508201610067®Number=0000000000092681&sum=65041 [15:47:59]written 0, free lines is 4095 [15:47:59]OFD Sender: Processing packet 123071 [packets to send 7, broken 6] [15:47:59]ProducePacketName [15:47:59]name=ofd_packets/00123071 [15:47:59]OFD Sender: To server: pG, [15:47:59]CommunicateWithHost lk.salyk.kg:30040 [15:47:59]ConnectInit lk.salyk.kg [15:47:59]Connected sock=11 [15:47:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 81 D7 07 01 90 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 34 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 11 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 33 9C 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BF E0 01 00 35 04 06 00 E8 8D DB 09 87 50 21 E3 11 1A 45 DB F8 0F [15:47:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3F A6 47 00 5B 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 34 38 38 31 10 04 04 00 BF E0 01 00 F4 03 04 00 F8 47 44 67 B6 04 01 00 00 6E E0 8E 95 02 E0 D2 F2 [15:47:59]CommunicateWithHost err = 0 [15:47:59]CheckOFDResponse [15:47:59]1017 (14) - 77093643461234 [15:47:59]1041 (16) - 0000000000874881 [15:47:59]1040 (4) - 123071 [15:47:59]1012 (4) - 25.11.2024 09:48 [15:47:59]1206 (1) - 0 [15:47:59]OFD Sender: Remove packet 123071 [15:47:59]ProducePacketName [15:47:59]name=ofd_packets/00123071 [15:47:59]NVStorageDeleteData [15:47:59]Write to MH i2c: 01 00 00 9E 30 CE [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 07 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 07 00 9E 30 00 00 00 00 00 53 0C 34 [15:47:59]RasterBufferAndPrint [15:47:59]line [15:47:59]line [15:47:59]line [15:47:59]line [15:47:59]line [15:47:59]written 0, free lines is 3160 [15:47:59]MH_Cut [15:47:59]Write to MH i2c: D1 01 00 A5 30 01 A7 [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: D1 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: D1 01 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: D1 01 00 A5 30 00 A6 [15:47:59]Write to MH i2c: 01 00 00 A6 30 D6 [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:48:00]OFD Sender: No OFD packet to send [15:48:01]*** Cut start [15:48:01]*** Partial cut [15:48:01]*** CUTSNS_PIN = 1 [15:48:01]*** CUTSNS_PIN = 0 [15:48:01]*** Brake cut motor [15:48:01]Read from MH i2c: 01 [15:48:01]MH_I2C_Read... [15:48:01]*** Stop cut motor [15:48:01]*** Cut end [15:48:01]Read from MH i2c: 01 07 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: 01 07 00 A6 30 00 00 00 00 00 FF 0F EB [15:48:01]process_action close_receipt done [15:48:01]requested_data is exist [15:48:01]produce_requested_data [15:48:01]requested_item fm.sn is exist - process it [15:48:01]wFMCommunicate request_size=4 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 11 00 00 [15:48:01]Write to MH i2c: E2 08 00 A7 30 80 11 00 00 00 00 00 00 51 [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 17 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 17 00 A7 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A8 [15:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:48:01]wFMCommunicate OK [15:48:01]requested_item fd.num is exist - process it [15:48:01]SAM_PROTO_GetFieldsCounters [15:48:01]wFMCommunicate request_size=4 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 13 00 00 [15:48:01]Write to MH i2c: E2 08 00 A8 30 80 13 00 00 00 00 00 00 54 [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:02]Read from MH i2c: E2 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: E2 62 00 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: E2 62 00 A8 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BF E0 01 00 0E 04 04 00 2C 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 98 [15: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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BF E0 01 00 0E 04 04 00 2C 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 [15:48:02]wFMCommunicate OK [15:48:02]SAM_PROTO_GetFieldsCounters done [15:48:02]requested_item shift.num is exist - process it [15:48:02]requested_item shift.opened is exist - process it [15:48:02]req_shift_opened [15:48:02]FM_GetShiftState [15:48:02]SAM_PROTO_GetShiftState [15:48:02]wFMCommunicate request_size=4 [15:48:02]MH_SAM_APDU [15:48:02]CAPDU: 80 13 01 00 [15:48:02]Write to MH i2c: E2 08 00 A9 30 80 13 01 00 00 00 00 00 56 [15:48:02]Write i2c OK [15:48:02]MH_I2C_Read... [15:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:02]Read from MH i2c: E2 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: E2 0E 00 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: E2 0E 00 A9 30 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D5 [15:48:02]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:48:02]wFMCommunicate OK [15:48:02]SAM_PROTO_GetShiftState done [15:48:02]FM_GetShiftState done [15:48:02]req_shift_opened done [15:48:02]requested_item shift.open_date is exist - process it [15:48:02]req_shift_open_date [15:48:02]req_shift_open_date done [15:48:02]produce_requested_data done [15:48:02]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123071,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [15:48:02]process_action_free close_receipt [15:48:02]json_value_free [15:48:02]json_value_free done [15:48:02]process_json_proto returns [15:48:02]Send response to host [15:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123071,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [15:48:02]free response buf [15:48:02]execute_script done [15:48:02]execute_script returns [15:48:02]free content buf [15:48:02]Sock 7.Close socket [15:48:02]Sock 7.Thread stoped [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52: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:24]accept exits with 9 [15:57:24]New connection [15:57:24]New thread 3066723684 created [15:57:24]Thread 3066580324 joined [15:57:24]Waiting for new connection... [15:57:24] Sock 9.Parse request [15:57:24]Sock 9.Check first char [15:57:24]Sock 9.First char is OK [15:57:24]request: POST /json_proto HTTP/1.0 [15:57:24]Method: POST [15:57:24]URL: /json_proto [15:57:24]Method is POST - this is cgi request [15:57:24]url: /json_proto [15:57:24]query_string will be loaded in cgi processing [15:57:24]execute_cgi json_proto POST (null) [15:57:24]execute_cgi path=json_proto method=POST [15:57:24]POST find Content-Length [15:57:24]Host: 172.17.37.4:8080 [15:57:24]Content-Length: 677 [15:57:24]Content-Type: application/json [15:57:24] [15:57:24]POST finish read [15:57:24]Found Content-Length = 677 [15:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:24]execute_script... [15:57:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:24]POST & json_proto [15:57:24]process_json_proto [15:57:24]json parsed OK: [15:57:24]protocol is kg_v1.0 [15:57:24]action value=close_receipt [15:57:24]process_action close_receipt [15:57:24]cmd_close_receipt [15:57:24]MH_GetDate [15:57:24]Write to MH i2c: F0 00 00 AA 30 C9 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: F0 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: F0 09 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: F0 09 00 AA 30 00 69 9E 44 67 B8 5A 43 67 40 [15:57:24]GetLastDocTimeStamp 1732549683 [15:57:24]current date 1732550249 [15:57:24]FM_GetShiftState [15:57:24]SAM_PROTO_GetShiftState [15:57:24]wFMCommunicate request_size=4 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 13 01 00 [15:57:24]Write to MH i2c: E2 08 00 AB 30 80 13 01 00 00 00 00 00 58 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 0E 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 0E 00 AB 30 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D7 [15:57:24]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:57:24]wFMCommunicate OK [15:57:24]SAM_PROTO_GetShiftState done [15:57:24]FM_GetShiftState done [15:57:24]opened in 1732493066 [15:57:24]opened+sec_in_day 1732579466 [15:57:24]quantity*price = 50065 [15:57:24]sum+1 = 50067 [15:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 113 25.11.2024 15:57 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123072 ФПД: 146538087058384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T155729&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123072&fm=146538087058384&tin=02508201610067®Number=0000000000092681&sum=50000 [15:57:25]StoreToDocumentArchive [15:57:25]shift 556 fd 123072 [15:57:25]save to /storage/0556/doc_00123072 [15:57:25]save last doc name /storage/0556/doc_00123072 to /storage/kkm_last_doc_name [15:57:25]save OK [15:57:25]Clear old archive folders... [15:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:25]tlvbuf is B6F20880 [15:57:25]SAM_PROTO_ClearQueue [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 09 00 00 [15:57:25]Write to MH i2c: E2 08 00 B8 30 80 09 00 00 00 00 00 00 5A [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 03 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 03 00 B8 30 00 90 00 5C [15:57:25]RAPDU: 90 00 [15:57:25]wFMCommunicate OK [15:57:25]SAM_PROTO_ClearQueue done [15:57:25]KKMCreateOFDPacket [15:57:25]OFDProtocolAddRootSTLVToBuf [15:57:25]FM_MakeSignedData [15:57:25]FM_MakeSignedData [15:57:25]SAM_PROTO_SignData [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 0D 01 02 [15:57:25]Write to MH i2c: E2 08 00 B9 30 80 0D 01 02 00 00 00 00 62 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 03 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 03 00 B9 30 00 90 00 5D [15:57:25]RAPDU: 90 00 [15:57:25]wFMCommunicate OK [15:57:25]wFMCommunicate request_size=255 [15:57:25]MH_SAM_APDU [15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 69 9E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E0 01 00 35 04 06 00 85 [15:57:25]Write to MH i2c: E2 02 01 BA 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 69 9E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E0 01 00 35 04 06 00 85 00 00 96 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]OFD Sender: No OFD packet to send [15:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 03 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 03 00 BA 30 00 90 00 5E [15:57:25]RAPDU: 90 00 [15:57:25]wFMCommunicate OK [15:57:25]wFMCommunicate request_size=10 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 0D 02 02 05 46 8E A0 0B D0 [15:57:25]Write to MH i2c: E2 0D 00 BB 30 80 0D 02 02 05 00 46 8E A0 0B D0 00 00 BE [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 03 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 03 00 BB 30 00 90 00 5F [15:57:25]RAPDU: 90 00 [15:57:25]wFMCommunicate OK [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 0D 03 02 [15:57:25]Write to MH i2c: E2 08 00 BC 30 80 0D 03 02 00 00 00 00 67 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0B 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0B 00 BC 30 00 A1 C1 7B 44 AD 99 00 90 90 00 5F [15:57:25]RAPDU: A1 C1 7B 44 AD 99 00 90 90 00 [15:57:25]wFMCommunicate OK [15:57:25]SAM_PROTO_SignData done [15:57:25]FM_MakeSignedData done [15:57:25]CreateOFDProtocolMessage [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 11 00 00 [15:57:25]Write to MH i2c: E2 08 00 BD 30 80 11 00 00 00 00 00 00 67 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 17 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 17 00 BD 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BE [15:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:57:25]wFMCommunicate OK [15:57:25]CreateOFDProtocolMessage done [15:57:25]OFDSenderStorePacket 123072 [15:57:25]StoreOFDPacket docnum=123072 [15:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FF E7 07 01 C1 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 69 9E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E0 01 00 35 04 06 00 85 46 8E A0 0B D0 A1 C1 7B 44 AD 99 00 90 [15:57:25]CheckFolder [15:57:25]dirname=/storage/ofd_packets [15:57:25]CheckFolder done [15:57:25]ProducePacketName [15:57:25]name=ofd_packets/00123072 [15:57:25]NVStorageSaveData ofd_packets/00123072 [15:57:25]File name is /storage/ofd_packets/00123072 [15:57:25]Write 301 bytes [15:57:25]NVStorageSaveData done [15:57:25]OFDSenderStorePacket done [15:57:25]KKMCreateOFDPacket done [15:57:25]NVStorageSaveData kkm_last_timestamp [15:57:25]File name is /storage/kkm_last_timestamp [15:57:25]Write 4 bytes [15:57:25]NVStorageSaveData done [15:57:25]ExternCall_PrintAddStr [15:57:25]wPrintStart [15:57:25]Write to MH i2c: 01 00 00 BE 30 EE [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: 01 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: 01 07 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: 01 07 00 BE 30 00 00 00 00 00 FF 0F 03 [15:57:25]RasterBufferAndPrint [15:57:25]line Счет N : (1)717867 [15:57:25]line ИНН: 02508201610067 [15:57:25]line Контрольно-Кассовый Чек [15:57:25]line ПРОДАЖА [15:57:25]line ТРК (МРК, ГНК) : 11 [15:57:25]line Товар: 2710124500 [15:57:25]line Аи-95-К-5 [15:57:25]line 6.640 * 75.40 [15:57:25]line = 500.66 [15:57:25]line НДС 12% НСП 1% [15:57:25]line > о реализуемом товаре [15:57:25]line ОКРУГЛЕНИЕ: -0.66 [15:57:25]line ИТОГО: 500.00 [15:57:25]line Внесено: 500.00 [15:57:25]line СДАЧА: 0.00 [15:57:25]line НСП 1% : 4.43 [15:57:25]line НДС 12% : 53.17 [15:57:25]line Наличными: 500.00 [15:57:25]line Безнал.: 0.00 [15:57:25]line Место: АЗС № 64 "Партнер Нефть" [15:57:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:57:25]line СНО: Общий режим [15:57:25]line Чек 113 25.11.2024 15:57 [15:57:25]line Смена: 556 ФФД: 1.0 [15:57:25]line ЗНМ: 0300000033 [15:57:25]line РНМ: 0000000000092681 [15:57:25]line Версия ККМ: 001 [15:57:25]line ФМ: 0000000000874881 [15:57:25]line ФД: 123072 [15:57:25]line ФПД: 146538087058384 [15:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T155729&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123072&fm=146538087058384&tin=02508201610067®Number=0000000000092681&sum=50000 [15:57:26]OFD Sender: Processing packet 123072 [packets to send 7, broken 6] [15:57:26]ProducePacketName [15:57:26]name=ofd_packets/00123072 [15:57:26]OFD Sender: To server: pG, [15:57:26]CommunicateWithHost lk.salyk.kg:30040 [15:57:26]ConnectInit lk.salyk.kg [15:57:26]written 0, free lines is 4095 [15:57:26]Connected sock=10 [15:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FF E7 07 01 C1 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 69 9E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E0 01 00 35 04 06 00 85 46 8E A0 0B D0 A1 C1 7B 44 AD 99 00 90 [15:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 12 F5 47 00 25 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E0 01 00 F4 03 04 00 2F 4A 44 67 B6 04 01 00 00 C2 63 9F 98 9F 74 E5 D4 [15:57:26]CommunicateWithHost err = 0 [15:57:26]CheckOFDResponse [15:57:26]1017 (14) - 77093643461234 [15:57:26]1041 (16) - 0000000000874881 [15:57:26]1040 (4) - 123072 [15:57:26]1012 (4) - 25.11.2024 09:58 [15:57:26]1206 (1) - 0 [15:57:26]OFD Sender: Remove packet 123072 [15:57:26]ProducePacketName [15:57:26]name=ofd_packets/00123072 [15:57:26]NVStorageDeleteData [15:57:26]Write to MH i2c: 01 00 00 E9 30 19 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: 01 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: 01 07 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: 01 07 00 E9 30 00 00 00 00 00 48 0C 74 [15:57:26]RasterBufferAndPrint [15:57:26]line [15:57:26]line [15:57:26]line [15:57:26]line [15:57:26]line [15:57:26]written 0, free lines is 3148 [15:57:26]MH_Cut [15:57:26]Write to MH i2c: D1 01 00 F0 30 01 F2 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: D1 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: D1 01 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: D1 01 00 F0 30 00 F1 [15:57:26]Write to MH i2c: 01 00 00 F1 30 21 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]OFD Sender: No OFD packet to send [15:57:27]*** Cut start [15:57:27]*** Partial cut [15:57:27]*** CUTSNS_PIN = 1 [15:57:28]*** CUTSNS_PIN = 0 [15:57:28]*** Brake cut motor [15:57:28]Read from MH i2c: 01 [15:57:28]MH_I2C_Read... [15:57:28]*** Stop cut motor [15:57:28]*** Cut end [15:57:28]Read from MH i2c: 01 07 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 F1 30 00 00 00 00 00 FF 0F 36 [15:57:28]process_action close_receipt done [15:57:28]requested_data is exist [15:57:28]produce_requested_data [15:57:28]requested_item fm.sn is exist - process it [15:57:28]wFMCommunicate request_size=4 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 11 00 00 [15:57:28]Write to MH i2c: E2 08 00 F2 30 80 11 00 00 00 00 00 00 9C [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 17 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 17 00 F2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F3 [15:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:57:28]wFMCommunicate OK [15:57:28]requested_item fd.num is exist - process it [15:57:28]SAM_PROTO_GetFieldsCounters [15:57:28]wFMCommunicate request_size=4 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 13 00 00 [15:57:28]Write to MH i2c: E2 08 00 F3 30 80 13 00 00 00 00 00 00 9F [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 62 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 62 00 F3 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C0 E0 01 00 0E 04 04 00 2C 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 E7 [15:57:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C0 E0 01 00 0E 04 04 00 2C 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 [15:57:28]wFMCommunicate OK [15:57:28]SAM_PROTO_GetFieldsCounters done [15:57:28]requested_item shift.num is exist - process it [15:57:28]requested_item shift.opened is exist - process it [15:57:28]req_shift_opened [15:57:28]FM_GetShiftState [15:57:28]SAM_PROTO_GetShiftState [15:57:28]wFMCommunicate request_size=4 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 13 01 00 [15:57:28]Write to MH i2c: E2 08 00 F4 30 80 13 01 00 00 00 00 00 A1 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 0E 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 0E 00 F4 30 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 20 [15:57:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:57:28]wFMCommunicate OK [15:57:28]SAM_PROTO_GetShiftState done [15:57:28]FM_GetShiftState done [15:57:28]req_shift_opened done [15:57:28]requested_item shift.open_date is exist - process it [15:57:28]req_shift_open_date [15:57:28]req_shift_open_date done [15:57:28]produce_requested_data done [15:57:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123072,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [15:57:28]process_action_free close_receipt [15:57:28]json_value_free [15:57:28]json_value_free done [15:57:28]process_json_proto returns [15:57:28]Send response to host [15:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123072,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [15:57:28]free response buf [15:57:28]execute_script done [15:57:28]execute_script returns [15:57:28]free content buf [15:57:28]Sock 9.Close socket [15:57:28]Sock 9.Thread stoped [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]accept exits with 7 [15:58:06]New connection [15:58:06]New thread 3066580324 created [15:58:06]Thread 3066723684 joined [15:58:06]Waiting for new connection... [15:58:06] Sock 7.Parse request [15:58:06]Sock 7.Check first char [15:58:06]Sock 7.First char is OK [15:58:06]request: POST /json_proto HTTP/1.0 [15:58:06]Method: POST [15:58:06]URL: /json_proto [15:58:06]Method is POST - this is cgi request [15:58:06]url: /json_proto [15:58:06]query_string will be loaded in cgi processing [15:58:06]execute_cgi json_proto POST (null) [15:58:06]execute_cgi path=json_proto method=POST [15:58:06]POST find Content-Length [15:58:06]Host: 172.17.37.4:8080 [15:58:06]Content-Length: 677 [15:58:06]Content-Type: application/json [15:58:06] [15:58:06]POST finish read [15:58:06]Found Content-Length = 677 [15:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:06]execute_script... [15:58: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)717868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:06]POST & json_proto [15:58:06]process_json_proto [15:58:06]json parsed OK: [15:58:06]protocol is kg_v1.0 [15:58:06]action value=close_receipt [15:58:06]process_action close_receipt [15:58:06]cmd_close_receipt [15:58:06]MH_GetDate [15:58:06]Write to MH i2c: F0 00 00 F5 30 14 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: F0 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: F0 09 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: F0 09 00 F5 30 00 94 9E 44 67 B8 5A 43 67 B6 [15:58:06]GetLastDocTimeStamp 1732550249 [15:58:06]current date 1732550292 [15:58:06]FM_GetShiftState [15:58:06]SAM_PROTO_GetShiftState [15:58:06]wFMCommunicate request_size=4 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 13 01 00 [15:58:06]Write to MH i2c: E2 08 00 F6 30 80 13 01 00 00 00 00 00 A3 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 0E 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 0E 00 F6 30 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 22 [15:58:06]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:58:06]wFMCommunicate OK [15:58:06]SAM_PROTO_GetShiftState done [15:58:06]FM_GetShiftState done [15:58:06]opened in 1732493066 [15:58:06]opened+sec_in_day 1732579466 [15:58:06]quantity*price = 50010 [15:58:06]sum+1 = 50012 [15:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 114 25.11.2024 15:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123073 ФПД: 139971649820687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T155812&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123073&fm=139971649820687&tin=02508201610067®Number=0000000000092681&sum=50000 [15:58:07]StoreToDocumentArchive [15:58:07]shift 556 fd 123073 [15:58:07]save to /storage/0556/doc_00123073 [15:58:07]save last doc name /storage/0556/doc_00123073 to /storage/kkm_last_doc_name [15:58:07]save OK [15:58:07]Clear old archive folders... [15:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:07]tlvbuf is B6F20B10 [15:58:07]SAM_PROTO_ClearQueue [15:58:07]wFMCommunicate request_size=4 [15:58:07]MH_SAM_APDU [15:58:07]CAPDU: 80 09 00 00 [15:58:07]Write to MH i2c: E2 08 00 03 31 80 09 00 00 00 00 00 00 A6 [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:07]Read from MH i2c: E2 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 03 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 03 00 03 31 00 90 00 A8 [15:58:07]RAPDU: 90 00 [15:58:07]wFMCommunicate OK [15:58:07]SAM_PROTO_ClearQueue done [15:58:07]KKMCreateOFDPacket [15:58:07]OFDProtocolAddRootSTLVToBuf [15:58:07]FM_MakeSignedData [15:58:07]FM_MakeSignedData [15:58:07]SAM_PROTO_SignData [15:58:07]wFMCommunicate request_size=4 [15:58:07]MH_SAM_APDU [15:58:07]CAPDU: 80 0D 01 02 [15:58:07]Write to MH i2c: E2 08 00 04 31 80 0D 01 02 00 00 00 00 AE [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:07]Read from MH i2c: E2 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 03 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 03 00 04 31 00 90 00 A9 [15:58:07]RAPDU: 90 00 [15:58:07]wFMCommunicate OK [15:58:07]wFMCommunicate request_size=255 [15:58:07]MH_SAM_APDU [15:58:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 94 9E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E0 01 00 35 04 06 00 7F [15:58:07]Write to MH i2c: E2 02 01 05 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 94 9E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E0 01 00 35 04 06 00 7F 00 00 B3 [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:08]Read from MH i2c: E2 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 03 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 03 00 05 31 00 90 00 AA [15:58:08]RAPDU: 90 00 [15:58:08]wFMCommunicate OK [15:58:08]wFMCommunicate request_size=10 [15:58:08]MH_SAM_APDU [15:58:08]CAPDU: 80 0D 02 02 05 4D B0 77 58 0F [15:58:08]Write to MH i2c: E2 0D 00 06 31 80 0D 02 02 05 00 4D B0 77 58 0F 00 00 96 [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:08]Read from MH i2c: E2 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 03 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 03 00 06 31 00 90 00 AB [15:58:08]RAPDU: 90 00 [15:58:08]wFMCommunicate OK [15:58:08]wFMCommunicate request_size=4 [15:58:08]MH_SAM_APDU [15:58:08]CAPDU: 80 0D 03 02 [15:58:08]Write to MH i2c: E2 08 00 07 31 80 0D 03 02 00 00 00 00 B3 [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:08]Read from MH i2c: E2 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 0B 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 0B 00 07 31 00 26 B8 9F 29 65 FF AA DC 90 00 44 [15:58:08]RAPDU: 26 B8 9F 29 65 FF AA DC 90 00 [15:58:08]wFMCommunicate OK [15:58:08]SAM_PROTO_SignData done [15:58:08]FM_MakeSignedData done [15:58:08]CreateOFDProtocolMessage [15:58:08]wFMCommunicate request_size=4 [15:58:08]MH_SAM_APDU [15:58:08]CAPDU: 80 11 00 00 [15:58:08]Write to MH i2c: E2 08 00 08 31 80 11 00 00 00 00 00 00 B3 [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:08]Read from MH i2c: E2 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 17 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 17 00 08 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0A [15:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:58:08]wFMCommunicate OK [15:58:08]CreateOFDProtocolMessage done [15:58:08]OFDSenderStorePacket 123073 [15:58:08]StoreOFDPacket docnum=123073 [15:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FE DF 07 01 FF 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 94 9E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E0 01 00 35 04 06 00 7F 4D B0 77 58 0F 26 B8 9F 29 65 FF AA DC [15:58:08]CheckFolder [15:58:08]dirname=/storage/ofd_packets [15:58:08]CheckFolder done [15:58:08]ProducePacketName [15:58:08]name=ofd_packets/00123073 [15:58:08]NVStorageSaveData ofd_packets/00123073 [15:58:08]File name is /storage/ofd_packets/00123073 [15:58:08]Write 301 bytes [15:58:08]NVStorageSaveData done [15:58:08]OFDSenderStorePacket done [15:58:08]KKMCreateOFDPacket done [15:58:08]NVStorageSaveData kkm_last_timestamp [15:58:08]File name is /storage/kkm_last_timestamp [15:58:08]Write 4 bytes [15:58:08]NVStorageSaveData done [15:58:08]ExternCall_PrintAddStr [15:58:08]wPrintStart [15:58:08]Write to MH i2c: 01 00 00 09 31 3A [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: 01 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: 01 07 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: 01 07 00 09 31 00 00 00 00 00 FF 0F 4F [15:58:08]RasterBufferAndPrint [15:58:08]line Счет N : (1)717868 [15:58:08]line ИНН: 02508201610067 [15:58:08]line Контрольно-Кассовый Чек [15:58:08]line ПРОДАЖА [15:58:08]line ТРК (МРК, ГНК) : 22 [15:58:08]line Товар: 2710124130 [15:58:08]line Аи-92-К-4 [15:58:08]line 7.420 * 67.40 [15:58:08]line = 500.11 [15:58:08]line НДС 12% НСП 1% [15:58:08]line > о реализуемом товаре [15:58:08]line ОКРУГЛЕНИЕ: -0.11 [15:58:08]line ИТОГО: 500.00 [15:58:08]line Внесено: 500.00 [15:58:08]line СДАЧА: 0.00 [15:58:08]line НСП 1% : 4.43 [15:58:08]line НДС 12% : 53.11 [15:58:08]line Наличными: 500.00 [15:58:08]line Безнал.: 0.00 [15:58:08]line Место: АЗС № 64 "Партнер Нефть" [15:58:08]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:58:08]line СНО: Общий режим [15:58:08]line Чек 114 25.11.2024 15:58 [15:58:08]line Смена: 556 ФФД: 1.0 [15:58:08]line ЗНМ: 0300000033 [15:58:08]line РНМ: 0000000000092681 [15:58:08]line Версия ККМ: 001 [15:58:08]line ФМ: 0000000000874881 [15:58:08]line ФД: 123073 [15:58:08]line ФПД: 139971649820687 [15:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T155812&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123073&fm=139971649820687&tin=02508201610067®Number=0000000000092681&sum=50000 [15:58:08]OFD Sender: Processing packet 123073 [packets to send 7, broken 6] [15:58:08]ProducePacketName [15:58:08]name=ofd_packets/00123073 [15:58:08]OFD Sender: To server: pG, [15:58:08]CommunicateWithHost lk.salyk.kg:30040 [15:58:08]ConnectInit lk.salyk.kg [15:58:08]written 0, free lines is 4095 [15:58:08]Connected sock=10 [15:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FE DF 07 01 FF 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 94 9E 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E0 01 00 35 04 06 00 7F 4D B0 77 58 0F 26 B8 9F 29 65 FF AA DC [15:58:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C3 28 47 00 16 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E0 01 00 F4 03 04 00 59 4A 44 67 B6 04 01 00 00 5A F2 C0 C3 7A AF 40 64 [15:58:08]CommunicateWithHost err = 0 [15:58:08]CheckOFDResponse [15:58:08]1017 (14) - 77093643461234 [15:58:08]1041 (16) - 0000000000874881 [15:58:08]1040 (4) - 123073 [15:58:08]1012 (4) - 25.11.2024 09:58 [15:58:08]1206 (1) - 0 [15:58:08]OFD Sender: Remove packet 123073 [15:58:08]ProducePacketName [15:58:08]name=ofd_packets/00123073 [15:58:08]NVStorageDeleteData [15:58:08]Write to MH i2c: 01 00 00 34 31 65 [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: 01 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: 01 07 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: 01 07 00 34 31 00 00 00 00 00 3E 0C B6 [15:58:08]RasterBufferAndPrint [15:58:08]line [15:58:08]line [15:58:08]line [15:58:08]line [15:58:08]line [15:58:08]written 0, free lines is 3139 [15:58:08]MH_Cut [15:58:08]Write to MH i2c: D1 01 00 3B 31 01 3E [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: D1 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: D1 01 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: D1 01 00 3B 31 00 3D [15:58:08]Write to MH i2c: 01 00 00 3C 31 6D [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:09]OFD Sender: No OFD packet to send [15:58:10]*** Cut start [15:58:10]*** Partial cut [15:58:10]*** CUTSNS_PIN = 1 [15:58:10]*** CUTSNS_PIN = 0 [15:58:10]*** Brake cut motor [15:58:11]Read from MH i2c: 01 [15:58:11]MH_I2C_Read... [15:58:11]*** Stop cut motor [15:58:11]*** Cut end [15:58:11]Read from MH i2c: 01 07 00 [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: 01 07 00 3C 31 00 00 00 00 00 FF 0F 82 [15:58:11]process_action close_receipt done [15:58:11]requested_data is exist [15:58:11]produce_requested_data [15:58:11]requested_item fm.sn is exist - process it [15:58:11]wFMCommunicate request_size=4 [15:58:11]MH_SAM_APDU [15:58:11]CAPDU: 80 11 00 00 [15:58:11]Write to MH i2c: E2 08 00 3D 31 80 11 00 00 00 00 00 00 E8 [15:58:11]Write i2c OK [15:58:11]MH_I2C_Read... [15:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:11]Read from MH i2c: E2 [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: E2 17 00 [15:58:11]MH_I2C_Read... [15:58:11]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 34 38 38 31 90 00 3F [15:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:58:11]wFMCommunicate OK [15:58:11]requested_item fd.num is exist - process it [15:58:11]SAM_PROTO_GetFieldsCounters [15:58:11]wFMCommunicate request_size=4 [15:58:11]MH_SAM_APDU [15:58:11]CAPDU: 80 13 00 00 [15:58:11]Write to MH i2c: E2 08 00 3E 31 80 13 00 00 00 00 00 00 EB [15:58:11]Write i2c OK [15:58:11]MH_I2C_Read... [15:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:11]Read from MH i2c: E2 [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: E2 62 00 [15:58:11]MH_I2C_Read... [15:58:11]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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C1 E0 01 00 0E 04 04 00 2C 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 37 [15: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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C1 E0 01 00 0E 04 04 00 2C 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 [15:58:11]wFMCommunicate OK [15:58:11]SAM_PROTO_GetFieldsCounters done [15:58:11]requested_item shift.num is exist - process it [15:58:11]requested_item shift.opened is exist - process it [15:58:11]req_shift_opened [15:58:11]FM_GetShiftState [15:58:11]SAM_PROTO_GetShiftState [15:58:11]wFMCommunicate request_size=4 [15:58:11]MH_SAM_APDU [15:58:11]CAPDU: 80 13 01 00 [15:58:11]Write to MH i2c: E2 08 00 3F 31 80 13 01 00 00 00 00 00 ED [15:58:11]Write i2c OK [15:58:11]MH_I2C_Read... [15:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:11]Read from MH i2c: E2 [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: E2 0E 00 [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: E2 0E 00 3F 31 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 6C [15:58:11]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [15:58:11]wFMCommunicate OK [15:58:11]SAM_PROTO_GetShiftState done [15:58:11]FM_GetShiftState done [15:58:11]req_shift_opened done [15:58:11]requested_item shift.open_date is exist - process it [15:58:11]req_shift_open_date [15:58:11]req_shift_open_date done [15:58:11]produce_requested_data done [15:58:11]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123073,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [15:58:11]process_action_free close_receipt [15:58:11]json_value_free [15:58:11]json_value_free done [15:58:11]process_json_proto returns [15:58:11]Send response to host [15:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123073,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [15:58:11]free response buf [15:58:11]execute_script done [15:58:11]execute_script returns [15:58:11]free content buf [15:58:11]Sock 7.Close socket [15:58:11]Sock 7.Thread stoped [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:08]accept exits with 9 [16:00:08]New connection [16:00:08]New thread 3066723684 created [16:00:08]Thread 3066580324 joined [16:00:08]Waiting for new connection... [16:00:08] Sock 9.Parse request [16:00:08]Sock 9.Check first char [16:00:08]Sock 9.First char is OK [16:00:08]request: POST /json_proto HTTP/1.0 [16:00:08]Method: POST [16:00:08]URL: /json_proto [16:00:08]Method is POST - this is cgi request [16:00:08]url: /json_proto [16:00:08]query_string will be loaded in cgi processing [16:00:08]execute_cgi json_proto POST (null) [16:00:08]execute_cgi path=json_proto method=POST [16:00:08]POST find Content-Length [16:00:08]Host: 172.17.37.4:8080 [16:00:08]Content-Length: 807 [16:00:08]Content-Type: application/json [16:00:08] [16:00:08]POST finish read [16:00:08]Found Content-Length = 807 [16:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:08]execute_script... [16:00: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)717869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:08]POST & json_proto [16:00:08]process_json_proto [16:00:08]json parsed OK: [16:00:08]protocol is kg_v1.0 [16:00:08]action value=close_receipt [16:00:08]process_action close_receipt [16:00:08]cmd_close_receipt [16:00:08]MH_GetDate [16:00:08]Write to MH i2c: F0 00 00 40 31 60 [16:00:08]Write i2c OK [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: F0 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: F0 09 00 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: F0 09 00 40 31 00 0E 9F 44 67 B8 5A 43 67 7D [16:00:08]GetLastDocTimeStamp 1732550292 [16:00:08]current date 1732550414 [16:00:08]FM_GetShiftState [16:00:08]SAM_PROTO_GetShiftState [16:00:08]wFMCommunicate request_size=4 [16:00:08]MH_SAM_APDU [16:00:08]CAPDU: 80 13 01 00 [16:00:08]Write to MH i2c: E2 08 00 41 31 80 13 01 00 00 00 00 00 EF [16:00:08]Write i2c OK [16:00:08]MH_I2C_Read... [16:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:08]Read from MH i2c: E2 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: E2 0E 00 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: E2 0E 00 41 31 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 6E [16:00:08]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:00:08]wFMCommunicate OK [16:00:08]SAM_PROTO_GetShiftState done [16:00:08]FM_GetShiftState done [16:00:08]opened in 1732493066 [16:00:08]opened+sec_in_day 1732579466 [16:00:08]quantity*price = 100066 [16:00:08]sum+1 = 100067 [16:00:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 115 25.11.2024 16:00 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123074 ФПД: 101591333199376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T160014&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123074&fm=101591333199376&tin=02508201610067®Number=0000000000092681&sum=100066 [16:00:09]StoreToDocumentArchive [16:00:09]shift 556 fd 123074 [16:00:09]save to /storage/0556/doc_00123074 [16:00:09]save last doc name /storage/0556/doc_00123074 to /storage/kkm_last_doc_name [16:00:09]save OK [16:00:09]Clear old archive folders... [16:00:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:00:09]tlvbuf is B6E89A30 [16:00:09]SAM_PROTO_ClearQueue [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 09 00 00 [16:00:09]Write to MH i2c: E2 08 00 4E 31 80 09 00 00 00 00 00 00 F1 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 4E 31 00 90 00 F3 [16:00:09]RAPDU: 90 00 [16:00:09]wFMCommunicate OK [16:00:09]SAM_PROTO_ClearQueue done [16:00:09]KKMCreateOFDPacket [16:00:09]OFDProtocolAddRootSTLVToBuf [16:00:09]FM_MakeSignedData [16:00:09]FM_MakeSignedData [16:00:09]SAM_PROTO_SignData [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 0D 01 02 [16:00:09]Write to MH i2c: E2 08 00 4F 31 80 0D 01 02 00 00 00 00 F9 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 4F 31 00 90 00 F4 [16:00:09]RAPDU: 90 00 [16:00:09]wFMCommunicate OK [16:00:09]wFMCommunicate request_size=255 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 0E 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C2 E0 01 00 35 04 06 00 [16:00:09]Write to MH i2c: E2 02 01 50 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 0E 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C2 E0 01 00 35 04 06 00 00 00 00 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 50 31 00 90 00 F5 [16:00:09]RAPDU: 90 00 [16:00:09]wFMCommunicate OK [16:00:09]wFMCommunicate request_size=11 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 0D 02 02 06 5C 65 93 53 DE 10 [16:00:09]Write to MH i2c: E2 0E 00 51 31 80 0D 02 02 06 00 5C 65 93 53 DE 10 00 00 9D [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 51 31 00 90 00 F6 [16:00:09]RAPDU: 90 00 [16:00:09]wFMCommunicate OK [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 0D 03 02 [16:00:09]Write to MH i2c: E2 08 00 52 31 80 0D 03 02 00 00 00 00 FE [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 0B 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 0B 00 52 31 00 C9 A2 06 78 93 12 0A 54 90 00 EB [16:00:09]RAPDU: C9 A2 06 78 93 12 0A 54 90 00 [16:00:09]wFMCommunicate OK [16:00:09]SAM_PROTO_SignData done [16:00:09]FM_MakeSignedData done [16:00:09]CreateOFDProtocolMessage [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 11 00 00 [16:00:09]Write to MH i2c: E2 08 00 53 31 80 11 00 00 00 00 00 00 FE [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 17 00 [16:00:09]MH_I2C_Read... [16:00:09]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 34 38 38 31 90 00 55 [16:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:00:09]wFMCommunicate OK [16:00:09]CreateOFDProtocolMessage done [16:00:09]OFDSenderStorePacket 123074 [16:00:09]StoreOFDPacket docnum=123074 [16:00:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BE C2 08 01 CF 17 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 0E 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C2 E0 01 00 35 04 06 00 5C 65 93 53 DE 10 C9 A2 06 78 93 12 0A 54 [16:00:09]CheckFolder [16:00:09]dirname=/storage/ofd_packets [16:00:09]CheckFolder done [16:00:09]ProducePacketName [16:00:09]name=ofd_packets/00123074 [16:00:09]NVStorageSaveData ofd_packets/00123074 [16:00:09]File name is /storage/ofd_packets/00123074 [16:00:09]Write 302 bytes [16:00:09]NVStorageSaveData done [16:00:09]OFDSenderStorePacket done [16:00:09]KKMCreateOFDPacket done [16:00:09]NVStorageSaveData kkm_last_timestamp [16:00:09]File name is /storage/kkm_last_timestamp [16:00:09]Write 4 bytes [16:00:09]NVStorageSaveData done [16:00:09]ExternCall_PrintAddStr [16:00:09]wPrintStart [16:00:09]Write to MH i2c: 01 00 00 54 31 85 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: 01 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: 01 07 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: 01 07 00 54 31 00 00 00 00 00 FF 0F 9A [16:00:09]RasterBufferAndPrint [16:00:09]line Счет N : (1)717869 [16:00:09]line ИНН: 02508201610067 [16:00:09]line Контрольно-Кассовый Чек [16:00:09]line ПРОДАЖА [16:00:09]line ТРК (МРК, ГНК) : 6 [16:00:09]line Товар: 2710194210 [16:00:09]line ДТ(л)-К-5 [16:00:09]line 13.360 * 74.90 [16:00:09]line = 1000.66 [16:00:09]line НДС 12% НСП 1% [16:00:09]line > о реализуемом товаре [16:00:09]line ИТОГО: 1000.66 [16:00:09]line НСП 1% : 8.85 [16:00:09]line НДС 12% : 106.26 [16:00:09]line Наличными: 0.00 [16:00:09]line Безнал.: 1000.66 [16:00:09]line Место: АЗС № 64 "Партнер Нефть" [16:00:09]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:00:09]line СНО: Общий режим [16:00:09]line Чек 115 25.11.2024 16:00 [16:00:09]line Смена: 556 ФФД: 1.0 [16:00:09]line ЗНМ: 0300000033 [16:00:09]line РНМ: 0000000000092681 [16:00:09]line Версия ККМ: 001 [16:00:09]line Платежная система: O! деньги [16:00:09]line ФМ: 0000000000874881 [16:00:09]line ФД: 123074 [16:00:09]line ФПД: 101591333199376 [16:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T160014&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123074&fm=101591333199376&tin=02508201610067®Number=0000000000092681&sum=100066 [16:00:10]OFD Sender: Processing packet 123074 [packets to send 7, broken 6] [16:00:10]ProducePacketName [16:00:10]name=ofd_packets/00123074 [16:00:10]OFD Sender: To server: pG, [16:00:10]CommunicateWithHost lk.salyk.kg:30040 [16:00:10]ConnectInit lk.salyk.kg [16:00:10]written 0, free lines is 4095 [16:00:10]Write to MH i2c: 01 00 00 7E 31 AF [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 07 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 07 00 7E 31 00 00 00 00 00 57 0C 19 [16:00:10]RasterBufferAndPrint [16:00:10]line [16:00:10]line [16:00:10]line [16:00:10]line [16:00:10]line [16:00:10]written 0, free lines is 3163 [16:00:10]MH_Cut [16:00:10]Write to MH i2c: D1 01 00 85 31 01 88 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: D1 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: D1 01 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: D1 01 00 85 31 00 87 [16:00:10]Write to MH i2c: 01 00 00 86 31 B7 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:12]*** Cut start [16:00:12]*** Partial cut [16:00:12]*** CUTSNS_PIN = 1 [16:00:12]*** CUTSNS_PIN = 0 [16:00:12]*** Brake cut motor [16:00:12]Read from MH i2c: 01 [16:00:12]MH_I2C_Read... [16:00:12]*** Stop cut motor [16:00:12]*** Cut end [16:00:12]Read from MH i2c: 01 07 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: 01 07 00 86 31 00 00 00 00 00 FF 0F CC [16:00:12]process_action close_receipt done [16:00:12]requested_data is exist [16:00:12]produce_requested_data [16:00:12]requested_item fm.sn is exist - process it [16:00:12]wFMCommunicate request_size=4 [16:00:12]MH_SAM_APDU [16:00:12]CAPDU: 80 11 00 00 [16:00:12]Write to MH i2c: E2 08 00 87 31 80 11 00 00 00 00 00 00 32 [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:12]Read from MH i2c: E2 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 17 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 17 00 87 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 89 [16:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:00:12]wFMCommunicate OK [16:00:12]requested_item fd.num is exist - process it [16:00:12]SAM_PROTO_GetFieldsCounters [16:00:12]wFMCommunicate request_size=4 [16:00:12]MH_SAM_APDU [16:00:12]CAPDU: 80 13 00 00 [16:00:12]Write to MH i2c: E2 08 00 88 31 80 13 00 00 00 00 00 00 35 [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:12]Read from MH i2c: E2 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 62 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 62 00 88 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C2 E0 01 00 0E 04 04 00 2C 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 85 [16:00:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C2 E0 01 00 0E 04 04 00 2C 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 [16:00:12]wFMCommunicate OK [16:00:12]SAM_PROTO_GetFieldsCounters done [16:00:12]requested_item shift.num is exist - process it [16:00:12]requested_item shift.opened is exist - process it [16:00:12]req_shift_opened [16:00:12]FM_GetShiftState [16:00:12]SAM_PROTO_GetShiftState [16:00:12]wFMCommunicate request_size=4 [16:00:12]MH_SAM_APDU [16:00:12]CAPDU: 80 13 01 00 [16:00:12]Write to MH i2c: E2 08 00 89 31 80 13 01 00 00 00 00 00 37 [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:13]Read from MH i2c: E2 [16:00:13]MH_I2C_Read... [16:00:13]Read from MH i2c: E2 0E 00 [16:00:13]MH_I2C_Read... [16:00:13]Read from MH i2c: E2 0E 00 89 31 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B6 [16:00:13]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:00:13]wFMCommunicate OK [16:00:13]SAM_PROTO_GetShiftState done [16:00:13]FM_GetShiftState done [16:00:13]req_shift_opened done [16:00:13]requested_item shift.open_date is exist - process it [16:00:13]req_shift_open_date [16:00:13]req_shift_open_date done [16:00:13]produce_requested_data done [16:00:13]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123074,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:00:13]process_action_free close_receipt [16:00:13]json_value_free [16:00:13]json_value_free done [16:00:13]process_json_proto returns [16:00:13]Send response to host [16:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123074,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:00:13]free response buf [16:00:13]execute_script done [16:00:13]execute_script returns [16:00:13]free content buf [16:00:13]Sock 9.Close socket [16:00:13]Sock 9.Thread stoped [16:02:23]ConnectInit Can't connect to host [16:02:23]CommunicateWithHost connect error [16:02:23]CommunicateWithHost err = -1 [16:02:23]OFD Sender: Server communicate error [16:02:28]OFD Sender: Processing packet 123074 [packets to send 7, broken 6] [16:02:28]ProducePacketName [16:02:28]name=ofd_packets/00123074 [16:02:28]OFD Sender: To server: pG, [16:02:28]CommunicateWithHost lk.salyk.kg:30040 [16:02:28]ConnectInit lk.salyk.kg [16:02:28]Connected sock=9 [16:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BE C2 08 01 CF 17 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 0E 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C2 E0 01 00 35 04 06 00 5C 65 93 53 DE 10 C9 A2 06 78 93 12 0A 54 [16:02:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F6 A5 47 00 8A 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 34 38 38 31 10 04 04 00 C2 E0 01 00 F4 03 04 00 5E 4B 44 67 B6 04 01 00 00 29 69 21 8B D4 32 D0 86 [16:02:29]CommunicateWithHost err = 0 [16:02:29]CheckOFDResponse [16:02:29]1017 (14) - 77093643461234 [16:02:29]1041 (16) - 0000000000874881 [16:02:29]1040 (4) - 123074 [16:02:29]1012 (4) - 25.11.2024 10:03 [16:02:29]1206 (1) - 0 [16:02:29]OFD Sender: Remove packet 123074 [16:02:29]ProducePacketName [16:02:29]name=ofd_packets/00123074 [16:02:29]NVStorageDeleteData [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:20]accept exits with 7 [16:03:20]New connection [16:03:20]New thread 3066580324 created [16:03:20]Thread 3066723684 joined [16:03:20]Waiting for new connection... [16:03:20] Sock 7.Parse request [16:03:20]Sock 7.Check first char [16:03:20]Sock 7.First char is OK [16:03:20]request: POST /json_proto HTTP/1.0 [16:03:20]Method: POST [16:03:20]URL: /json_proto [16:03:20]Method is POST - this is cgi request [16:03:20]url: /json_proto [16:03:20]query_string will be loaded in cgi processing [16:03:20]execute_cgi json_proto POST (null) [16:03:20]execute_cgi path=json_proto method=POST [16:03:20]POST find Content-Length [16:03:20]Host: 172.17.37.4:8080 [16:03:20]Content-Length: 686 [16:03:20]Content-Type: application/json [16:03:20] [16:03:20]POST finish read [16:03:20]Found Content-Length = 686 [16:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 53.410, "sum" : 4000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:20]execute_script... [16:03: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)717870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 53.410, "sum" : 4000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:20]POST & json_proto [16:03:20]process_json_proto [16:03:20]json parsed OK: [16:03:20]protocol is kg_v1.0 [16:03:20]action value=close_receipt [16:03:20]process_action close_receipt [16:03:20]cmd_close_receipt [16:03:20]MH_GetDate [16:03:20]Write to MH i2c: F0 00 00 8A 31 AA [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: F0 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: F0 09 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: F0 09 00 8A 31 00 CE 9F 44 67 B8 5A 43 67 87 [16:03:20]GetLastDocTimeStamp 1732550414 [16:03:20]current date 1732550606 [16:03:20]FM_GetShiftState [16:03:20]SAM_PROTO_GetShiftState [16:03:20]wFMCommunicate request_size=4 [16:03:20]MH_SAM_APDU [16:03:20]CAPDU: 80 13 01 00 [16:03:20]Write to MH i2c: E2 08 00 8B 31 80 13 01 00 00 00 00 00 39 [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:20]Read from MH i2c: E2 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 0E 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 0E 00 8B 31 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B8 [16:03:20]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:03:20]wFMCommunicate OK [16:03:20]SAM_PROTO_GetShiftState done [16:03:20]FM_GetShiftState done [16:03:20]opened in 1732493066 [16:03:20]opened+sec_in_day 1732579466 [16:03:20]quantity*price = 400040 [16:03:20]sum+1 = 400042 [16:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.82 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 116 25.11.2024 16:03 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123075 ФПД: 181591566975651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T160326&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123075&fm=181591566975651&tin=02508201610067®Number=0000000000092681&sum=400000 [16:03:21]StoreToDocumentArchive [16:03:21]shift 556 fd 123075 [16:03:21]save to /storage/0556/doc_00123075 [16:03:21]save last doc name /storage/0556/doc_00123075 to /storage/kkm_last_doc_name [16:03:21]save OK [16:03:21]Clear old archive folders... [16:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:03:21]tlvbuf is 01F2FA10 [16:03:21]SAM_PROTO_ClearQueue [16:03:21]wFMCommunicate request_size=4 [16:03:21]MH_SAM_APDU [16:03:21]CAPDU: 80 09 00 00 [16:03:21]Write to MH i2c: E2 08 00 98 31 80 09 00 00 00 00 00 00 3B [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:21]Read from MH i2c: E2 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 03 00 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 03 00 98 31 00 90 00 3D [16:03:21]RAPDU: 90 00 [16:03:21]wFMCommunicate OK [16:03:21]SAM_PROTO_ClearQueue done [16:03:21]KKMCreateOFDPacket [16:03:21]OFDProtocolAddRootSTLVToBuf [16:03:21]FM_MakeSignedData [16:03:21]FM_MakeSignedData [16:03:21]SAM_PROTO_SignData [16:03:21]wFMCommunicate request_size=4 [16:03:21]MH_SAM_APDU [16:03:21]CAPDU: 80 0D 01 02 [16:03:21]Write to MH i2c: E2 08 00 99 31 80 0D 01 02 00 00 00 00 43 [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:21]Read from MH i2c: E2 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 03 00 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 03 00 99 31 00 90 00 3E [16:03:21]RAPDU: 90 00 [16:03:21]wFMCommunicate OK [16:03:21]wFMCommunicate request_size=255 [16:03:21]MH_SAM_APDU [16:03:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A2 D0 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A9 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 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 CE 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E0 01 00 35 04 06 00 [16:03:21]Write to MH i2c: E2 02 01 9A 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A2 D0 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A9 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 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 CE 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E0 01 00 35 04 06 00 00 00 3D [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:21]Read from MH i2c: E2 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 03 00 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 03 00 9A 31 00 90 00 3F [16:03:21]RAPDU: 90 00 [16:03:21]wFMCommunicate OK [16:03:21]wFMCommunicate request_size=11 [16:03:21]MH_SAM_APDU [16:03:21]CAPDU: 80 0D 02 02 06 A5 28 14 D8 02 A3 [16:03:21]Write to MH i2c: E2 0E 00 9B 31 80 0D 02 02 06 00 A5 28 14 D8 02 A3 00 00 B0 [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:21]Read from MH i2c: E2 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 03 00 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 03 00 9B 31 00 90 00 40 [16:03:21]RAPDU: 90 00 [16:03:21]wFMCommunicate OK [16:03:21]wFMCommunicate request_size=4 [16:03:21]MH_SAM_APDU [16:03:21]CAPDU: 80 0D 03 02 [16:03:21]Write to MH i2c: E2 08 00 9C 31 80 0D 03 02 00 00 00 00 48 [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:21]Read from MH i2c: E2 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 0B 00 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 0B 00 9C 31 00 66 0A 88 BE 0A C5 9B 8B 90 00 F4 [16:03:21]RAPDU: 66 0A 88 BE 0A C5 9B 8B 90 00 [16:03:21]wFMCommunicate OK [16:03:21]SAM_PROTO_SignData done [16:03:21]FM_MakeSignedData done [16:03:21]CreateOFDProtocolMessage [16:03:21]wFMCommunicate request_size=4 [16:03:21]MH_SAM_APDU [16:03:21]CAPDU: 80 11 00 00 [16:03:21]Write to MH i2c: E2 08 00 9D 31 80 11 00 00 00 00 00 00 48 [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:21]Read from MH i2c: E2 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 17 00 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: E2 17 00 9D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9F [16:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:03:21]wFMCommunicate OK [16:03:21]CreateOFDProtocolMessage done [16:03:21]OFDSenderStorePacket 123075 [16:03:21]StoreOFDPacket docnum=123075 [16:03:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 0B 77 08 01 F2 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A2 D0 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A9 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 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 CE 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E0 01 00 35 04 06 00 A5 28 14 D8 02 A3 66 0A 88 BE 0A C5 9B 8B [16:03:21]CheckFolder [16:03:21]dirname=/storage/ofd_packets [16:03:21]CheckFolder done [16:03:21]ProducePacketName [16:03:21]name=ofd_packets/00123075 [16:03:21]NVStorageSaveData ofd_packets/00123075 [16:03:21]File name is /storage/ofd_packets/00123075 [16:03:21]Write 302 bytes [16:03:21]NVStorageSaveData done [16:03:21]OFDSenderStorePacket done [16:03:21]KKMCreateOFDPacket done [16:03:21]NVStorageSaveData kkm_last_timestamp [16:03:21]File name is /storage/kkm_last_timestamp [16:03:21]Write 4 bytes [16:03:21]NVStorageSaveData done [16:03:21]ExternCall_PrintAddStr [16:03:21]wPrintStart [16:03:21]Write to MH i2c: 01 00 00 9E 31 CF [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: 01 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: 01 07 00 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: 01 07 00 9E 31 00 00 00 00 00 FF 0F E4 [16:03:21]RasterBufferAndPrint [16:03:21]line Счет N : (1)717870 [16:03:21]line ИНН: 02508201610067 [16:03:21]line Контрольно-Кассовый Чек [16:03:21]line ПРОДАЖА [16:03:21]line ТРК (МРК, ГНК) : 6 [16:03:21]line Товар: 2710194210 [16:03:21]line ДТ(л)-К-5 [16:03:21]line 53.410 * 74.90 [16:03:21]line = 4000.41 [16:03:21]line НДС 12% НСП 1% [16:03:21]line > о реализуемом товаре [16:03:21]line ОКРУГЛЕНИЕ: -0.41 [16:03:21]line ИТОГО: 4000.00 [16:03:21]line Внесено: 4000.00 [16:03:21]line СДАЧА: 0.00 [16:03:21]line НСП 1% : 35.40 [16:03:21]line НДС 12% : 424.82 [16:03:21]line Наличными: 4000.00 [16:03:21]line Безнал.: 0.00 [16:03:21]line Место: АЗС № 64 "Партнер Нефть" [16:03:21]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:03:21]line СНО: Общий режим [16:03:21]line Чек 116 25.11.2024 16:03 [16:03:21]line Смена: 556 ФФД: 1.0 [16:03:21]line ЗНМ: 0300000033 [16:03:21]line РНМ: 0000000000092681 [16:03:21]line Версия ККМ: 001 [16:03:21]line ФМ: 0000000000874881 [16:03:21]line ФД: 123075 [16:03:21]line ФПД: 181591566975651 [16:03:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T160326&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123075&fm=181591566975651&tin=02508201610067®Number=0000000000092681&sum=400000 [16:03:22]OFD Sender: Processing packet 123075 [packets to send 7, broken 6] [16:03:22]ProducePacketName [16:03:22]name=ofd_packets/00123075 [16:03:22]OFD Sender: To server: pG, [16:03:22]CommunicateWithHost lk.salyk.kg:30040 [16:03:22]ConnectInit lk.salyk.kg [16:03:22]written 0, free lines is 4095 [16:03:22]Connected sock=10 [16:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 0B 77 08 01 F2 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A2 D0 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A9 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 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 CE 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E0 01 00 35 04 06 00 A5 28 14 D8 02 A3 66 0A 88 BE 0A C5 9B 8B [16:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 32 FE 47 00 49 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E0 01 00 F4 03 04 00 93 4B 44 67 B6 04 01 00 00 8E 04 26 87 E4 6E 4E AC [16:03:22]CommunicateWithHost err = 0 [16:03:22]CheckOFDResponse [16:03:22]1017 (14) - 77093643461234 [16:03:22]1041 (16) - 0000000000874881 [16:03:22]1040 (4) - 123075 [16:03:22]1012 (4) - 25.11.2024 10:04 [16:03:22]1206 (1) - 0 [16:03:22]OFD Sender: Remove packet 123075 [16:03:22]ProducePacketName [16:03:22]name=ofd_packets/00123075 [16:03:22]NVStorageDeleteData [16:03:22]Write to MH i2c: 01 00 00 C9 31 FA [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: 01 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: 01 07 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: 01 07 00 C9 31 00 00 00 00 00 41 0C 4E [16:03:22]RasterBufferAndPrint [16:03:22]line [16:03:22]line [16:03:22]line [16:03:22]line [16:03:22]line [16:03:22]written 0, free lines is 3142 [16:03:22]MH_Cut [16:03:22]Write to MH i2c: D1 01 00 D0 31 01 D3 [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: D1 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: D1 01 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: D1 01 00 D0 31 00 D2 [16:03:22]Write to MH i2c: 01 00 00 D1 31 02 [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:23]OFD Sender: No OFD packet to send [16:03:24]*** Cut start [16:03:24]*** Partial cut [16:03:24]*** CUTSNS_PIN = 1 [16:03:24]*** CUTSNS_PIN = 0 [16:03:24]*** Brake cut motor [16:03:24]Read from MH i2c: 01 [16:03:24]MH_I2C_Read... [16:03:24]*** Stop cut motor [16:03:24]*** Cut end [16:03:24]Read from MH i2c: 01 07 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 07 00 D1 31 00 00 00 00 00 FF 0F 17 [16:03:24]process_action close_receipt done [16:03:24]requested_data is exist [16:03:24]produce_requested_data [16:03:24]requested_item fm.sn is exist - process it [16:03:24]wFMCommunicate request_size=4 [16:03:24]MH_SAM_APDU [16:03:24]CAPDU: 80 11 00 00 [16:03:24]Write to MH i2c: E2 08 00 D2 31 80 11 00 00 00 00 00 00 7D [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:24]Read from MH i2c: E2 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 17 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 17 00 D2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D4 [16:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:03:24]wFMCommunicate OK [16:03:24]requested_item fd.num is exist - process it [16:03:24]SAM_PROTO_GetFieldsCounters [16:03:24]wFMCommunicate request_size=4 [16:03:24]MH_SAM_APDU [16:03:24]CAPDU: 80 13 00 00 [16:03:24]Write to MH i2c: E2 08 00 D3 31 80 13 00 00 00 00 00 00 80 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:24]Read from MH i2c: E2 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 62 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 62 00 D3 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C3 E0 01 00 0E 04 04 00 2C 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 D4 [16:03:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C3 E0 01 00 0E 04 04 00 2C 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 [16:03:24]wFMCommunicate OK [16:03:24]SAM_PROTO_GetFieldsCounters done [16:03:24]requested_item shift.num is exist - process it [16:03:24]requested_item shift.opened is exist - process it [16:03:24]req_shift_opened [16:03:24]FM_GetShiftState [16:03:24]SAM_PROTO_GetShiftState [16:03:24]wFMCommunicate request_size=4 [16:03:24]MH_SAM_APDU [16:03:24]CAPDU: 80 13 01 00 [16:03:24]Write to MH i2c: E2 08 00 D4 31 80 13 01 00 00 00 00 00 82 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 0E 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 0E 00 D4 31 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 01 [16:03:25]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:03:25]wFMCommunicate OK [16:03:25]SAM_PROTO_GetShiftState done [16:03:25]FM_GetShiftState done [16:03:25]req_shift_opened done [16:03:25]requested_item shift.open_date is exist - process it [16:03:25]req_shift_open_date [16:03:25]req_shift_open_date done [16:03:25]produce_requested_data done [16:03:25]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123075,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:03:25]process_action_free close_receipt [16:03:25]json_value_free [16:03:25]json_value_free done [16:03:25]process_json_proto returns [16:03:25]Send response to host [16:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123075,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:03:25]free response buf [16:03:25]execute_script done [16:03:25]execute_script returns [16:03:25]free content buf [16:03:25]Sock 7.Close socket [16:03:25]Sock 7.Thread stoped [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:57]accept exits with 9 [16:03:57]New connection [16:03:57]New thread 3066723684 created [16:03:57]Thread 3066580324 joined [16:03:57]Waiting for new connection... [16:03:57] Sock 9.Parse request [16:03:57]Sock 9.Check first char [16:03:57]Sock 9.First char is OK [16:03:57]request: POST /json_proto HTTP/1.0 [16:03:57]Method: POST [16:03:57]URL: /json_proto [16:03:57]Method is POST - this is cgi request [16:03:57]url: /json_proto [16:03:57]query_string will be loaded in cgi processing [16:03:57]execute_cgi json_proto POST (null) [16:03:57]execute_cgi path=json_proto method=POST [16:03:57]POST find Content-Length [16:03:57]Host: 172.17.37.4:8080 [16:03:57]Content-Length: 800 [16:03:57]Content-Type: application/json [16:03:57] [16:03:57]POST finish read [16:03:57]Found Content-Length = 800 [16:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:57]execute_script... [16:03: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)717871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:57]POST & json_proto [16:03:57]process_json_proto [16:03:57]json parsed OK: [16:03:57]protocol is kg_v1.0 [16:03:57]action value=close_receipt [16:03:57]process_action close_receipt [16:03:57]cmd_close_receipt [16:03:57]MH_GetDate [16:03:57]Write to MH i2c: F0 00 00 D5 31 F5 [16:03:57]Write i2c OK [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: F0 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: F0 09 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: F0 09 00 D5 31 00 F3 9F 44 67 B8 5A 43 67 F7 [16:03:57]GetLastDocTimeStamp 1732550606 [16:03:57]current date 1732550643 [16:03:57]FM_GetShiftState [16:03:57]SAM_PROTO_GetShiftState [16:03:57]wFMCommunicate request_size=4 [16:03:57]MH_SAM_APDU [16:03:57]CAPDU: 80 13 01 00 [16:03:57]Write to MH i2c: E2 08 00 D6 31 80 13 01 00 00 00 00 00 84 [16:03:57]Write i2c OK [16:03:57]MH_I2C_Read... [16:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:57]Read from MH i2c: E2 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 0E 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 0E 00 D6 31 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 03 [16:03:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:03:57]wFMCommunicate OK [16:03:57]SAM_PROTO_GetShiftState done [16:03:57]FM_GetShiftState done [16:03:57]opened in 1732493066 [16:03:57]opened+sec_in_day 1732579466 [16:03:57]quantity*price = 25005 [16:03:57]sum+1 = 25006 [16:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.05 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 0.00 Безнал.: 250.05 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 117 25.11.2024 16:04 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123076 ФПД: 268109314358330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T160403&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123076&fm=268109314358330&tin=02508201610067®Number=0000000000092681&sum=25005 [16:03:58]StoreToDocumentArchive [16:03:58]shift 556 fd 123076 [16:03:58]save to /storage/0556/doc_00123076 [16:03:58]save last doc name /storage/0556/doc_00123076 to /storage/kkm_last_doc_name [16:03:58]save OK [16:03:58]Clear old archive folders... [16:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:58]tlvbuf is 01F4DF70 [16:03:58]SAM_PROTO_ClearQueue [16:03:58]wFMCommunicate request_size=4 [16:03:58]MH_SAM_APDU [16:03:58]CAPDU: 80 09 00 00 [16:03:58]Write to MH i2c: E2 08 00 E3 31 80 09 00 00 00 00 00 00 86 [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:58]Read from MH i2c: E2 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 E3 31 00 90 00 88 [16:03:58]RAPDU: 90 00 [16:03:58]wFMCommunicate OK [16:03:58]SAM_PROTO_ClearQueue done [16:03:58]KKMCreateOFDPacket [16:03:58]OFDProtocolAddRootSTLVToBuf [16:03:58]FM_MakeSignedData [16:03:58]FM_MakeSignedData [16:03:58]SAM_PROTO_SignData [16:03:58]wFMCommunicate request_size=4 [16:03:58]MH_SAM_APDU [16:03:58]CAPDU: 80 0D 01 02 [16:03:58]Write to MH i2c: E2 08 00 E4 31 80 0D 01 02 00 00 00 00 8E [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:58]Read from MH i2c: E2 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 E4 31 00 90 00 89 [16:03:58]RAPDU: 90 00 [16:03:58]wFMCommunicate OK [16:03:58]wFMCommunicate request_size=255 [16:03:58]MH_SAM_APDU [16:03:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F3 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E0 01 00 35 04 06 00 F3 [16:03:58]Write to MH i2c: E2 02 01 E5 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 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F3 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E0 01 00 35 04 06 00 F3 00 00 7E [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:59]Read from MH i2c: E2 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: E2 03 00 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: E2 03 00 E5 31 00 90 00 8A [16:03:59]RAPDU: 90 00 [16:03:59]wFMCommunicate OK [16:03:59]wFMCommunicate request_size=10 [16:03:59]MH_SAM_APDU [16:03:59]CAPDU: 80 0D 02 02 05 D8 10 71 7C 3A [16:03:59]Write to MH i2c: E2 0D 00 E6 31 80 0D 02 02 05 00 D8 10 71 7C 3A 00 00 AA [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:59]Read from MH i2c: E2 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: E2 03 00 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: E2 03 00 E6 31 00 90 00 8B [16:03:59]RAPDU: 90 00 [16:03:59]wFMCommunicate OK [16:03:59]wFMCommunicate request_size=4 [16:03:59]MH_SAM_APDU [16:03:59]CAPDU: 80 0D 03 02 [16:03:59]Write to MH i2c: E2 08 00 E7 31 80 0D 03 02 00 00 00 00 93 [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:59]Read from MH i2c: E2 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: E2 0B 00 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: E2 0B 00 E7 31 00 C8 E9 21 EF 65 33 29 63 90 00 79 [16:03:59]RAPDU: C8 E9 21 EF 65 33 29 63 90 00 [16:03:59]wFMCommunicate OK [16:03:59]SAM_PROTO_SignData done [16:03:59]FM_MakeSignedData done [16:03:59]CreateOFDProtocolMessage [16:03:59]wFMCommunicate request_size=4 [16:03:59]MH_SAM_APDU [16:03:59]CAPDU: 80 11 00 00 [16:03:59]Write to MH i2c: E2 08 00 E8 31 80 11 00 00 00 00 00 00 93 [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:59]Read from MH i2c: E2 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: E2 17 00 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: E2 17 00 E8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EA [16:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:03:59]wFMCommunicate OK [16:03:59]CreateOFDProtocolMessage done [16:03:59]OFDSenderStorePacket 123076 [16:03:59]StoreOFDPacket docnum=123076 [16:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C4 79 07 01 FE 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 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F3 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E0 01 00 35 04 06 00 F3 D8 10 71 7C 3A C8 E9 21 EF 65 33 29 63 [16:03:59]CheckFolder [16:03:59]dirname=/storage/ofd_packets [16:03:59]CheckFolder done [16:03:59]ProducePacketName [16:03:59]name=ofd_packets/00123076 [16:03:59]NVStorageSaveData ofd_packets/00123076 [16:03:59]File name is /storage/ofd_packets/00123076 [16:03:59]Write 301 bytes [16:03:59]NVStorageSaveData done [16:03:59]OFDSenderStorePacket done [16:03:59]KKMCreateOFDPacket done [16:03:59]NVStorageSaveData kkm_last_timestamp [16:03:59]File name is /storage/kkm_last_timestamp [16:03:59]Write 4 bytes [16:03:59]NVStorageSaveData done [16:03:59]ExternCall_PrintAddStr [16:03:59]wPrintStart [16:03:59]Write to MH i2c: 01 00 00 E9 31 1A [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: 01 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: 01 07 00 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: 01 07 00 E9 31 00 00 00 00 00 FF 0F 2F [16:03:59]RasterBufferAndPrint [16:03:59]line Счет N : (1)717871 [16:03:59]line ИНН: 02508201610067 [16:03:59]line Контрольно-Кассовый Чек [16:03:59]line ПРОДАЖА [16:03:59]line ТРК (МРК, ГНК) : 32 [16:03:59]line Товар: 2710124130 [16:03:59]line Аи-92-К-4 [16:03:59]line 3.710 * 67.40 [16:03:59]line = 250.05 [16:03:59]line НДС 12% НСП 1% [16:03:59]line > о реализуемом товаре [16:03:59]line ИТОГО: 250.05 [16:03:59]line НСП 1% : 2.21 [16:03:59]line НДС 12% : 26.55 [16:03:59]line Наличными: 0.00 [16:03:59]line Безнал.: 250.05 [16:03:59]line Место: АЗС № 64 "Партнер Нефть" [16:03:59]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:03:59]line СНО: Общий режим [16:03:59]line Чек 117 25.11.2024 16:04 [16:03:59]line Смена: 556 ФФД: 1.0 [16:03:59]line ЗНМ: 0300000033 [16:03:59]line РНМ: 0000000000092681 [16:03:59]line Версия ККМ: 001 [16:03:59]line Платежная система: O! деньги [16:03:59]line ФМ: 0000000000874881 [16:03:59]line ФД: 123076 [16:03:59]line ФПД: 268109314358330 [16:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T160403&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123076&fm=268109314358330&tin=02508201610067®Number=0000000000092681&sum=25005 [16:03:59]written 0, free lines is 4095 [16:03:59]OFD Sender: Processing packet 123076 [packets to send 7, broken 6] [16:03:59]ProducePacketName [16:03:59]name=ofd_packets/00123076 [16:03:59]OFD Sender: To server: pG, [16:03:59]CommunicateWithHost lk.salyk.kg:30040 [16:03:59]ConnectInit lk.salyk.kg [16:03:59]Connected sock=10 [16:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C4 79 07 01 FE 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 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F3 9F 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E0 01 00 35 04 06 00 F3 D8 10 71 7C 3A C8 E9 21 EF 65 33 29 63 [16:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4D 4E 47 00 7A FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E0 01 00 F4 03 04 00 B8 4B 44 67 B6 04 01 00 00 D1 2A FD 32 56 A8 B8 20 [16:03:59]CommunicateWithHost err = 0 [16:03:59]CheckOFDResponse [16:03:59]1017 (14) - 77093643461234 [16:03:59]1041 (16) - 0000000000874881 [16:03:59]1040 (4) - 123076 [16:03:59]1012 (4) - 25.11.2024 10:04 [16:03:59]1206 (1) - 0 [16:03:59]OFD Sender: Remove packet 123076 [16:03:59]ProducePacketName [16:03:59]name=ofd_packets/00123076 [16:03:59]NVStorageDeleteData [16:04:00]Write to MH i2c: 01 00 00 13 32 45 [16:04:00]Write i2c OK [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: 01 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: 01 07 00 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: 01 07 00 13 32 00 00 00 00 00 5A 0C B2 [16:04:00]RasterBufferAndPrint [16:04:00]line [16:04:00]line [16:04:00]line [16:04:00]line [16:04:00]line [16:04:00]written 0, free lines is 3167 [16:04:00]MH_Cut [16:04:00]Write to MH i2c: D1 01 00 1A 32 01 1E [16:04:00]Write i2c OK [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: D1 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: D1 01 00 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: D1 01 00 1A 32 00 1D [16:04:00]Write to MH i2c: 01 00 00 1B 32 4D [16:04:00]Write i2c OK [16:04:00]MH_I2C_Read... [16:04:00]OFD Sender: No OFD packet to send [16:04:01]*** Cut start [16:04:01]*** Partial cut [16:04:01]*** CUTSNS_PIN = 1 [16:04:01]*** CUTSNS_PIN = 0 [16:04:01]*** Brake cut motor [16:04:02]Read from MH i2c: 01 [16:04:02]MH_I2C_Read... [16:04:02]*** Stop cut motor [16:04:02]*** Cut end [16:04:02]Read from MH i2c: 01 07 00 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: 01 07 00 1B 32 00 00 00 00 00 FF 0F 62 [16:04:02]process_action close_receipt done [16:04:02]requested_data is exist [16:04:02]produce_requested_data [16:04:02]requested_item fm.sn is exist - process it [16:04:02]wFMCommunicate request_size=4 [16:04:02]MH_SAM_APDU [16:04:02]CAPDU: 80 11 00 00 [16:04:02]Write to MH i2c: E2 08 00 1C 32 80 11 00 00 00 00 00 00 C8 [16:04:02]Write i2c OK [16:04:02]MH_I2C_Read... [16:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:02]Read from MH i2c: E2 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 17 00 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 17 00 1C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1F [16:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:04:02]wFMCommunicate OK [16:04:02]requested_item fd.num is exist - process it [16:04:02]SAM_PROTO_GetFieldsCounters [16:04:02]wFMCommunicate request_size=4 [16:04:02]MH_SAM_APDU [16:04:02]CAPDU: 80 13 00 00 [16:04:02]Write to MH i2c: E2 08 00 1D 32 80 13 00 00 00 00 00 00 CB [16:04:02]Write i2c OK [16:04:02]MH_I2C_Read... [16:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:02]Read from MH i2c: E2 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 62 00 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 62 00 1D 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C4 E0 01 00 0E 04 04 00 2C 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 23 [16:04:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C4 E0 01 00 0E 04 04 00 2C 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 [16:04:02]wFMCommunicate OK [16:04:02]SAM_PROTO_GetFieldsCounters done [16:04:02]requested_item shift.num is exist - process it [16:04:02]requested_item shift.opened is exist - process it [16:04:02]req_shift_opened [16:04:02]FM_GetShiftState [16:04:02]SAM_PROTO_GetShiftState [16:04:02]wFMCommunicate request_size=4 [16:04:02]MH_SAM_APDU [16:04:02]CAPDU: 80 13 01 00 [16:04:02]Write to MH i2c: E2 08 00 1E 32 80 13 01 00 00 00 00 00 CD [16:04:02]Write i2c OK [16:04:02]MH_I2C_Read... [16:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:02]Read from MH i2c: E2 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 0E 00 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 0E 00 1E 32 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4C [16:04:02]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:04:02]wFMCommunicate OK [16:04:02]SAM_PROTO_GetShiftState done [16:04:02]FM_GetShiftState done [16:04:02]req_shift_opened done [16:04:02]requested_item shift.open_date is exist - process it [16:04:02]req_shift_open_date [16:04:02]req_shift_open_date done [16:04:02]produce_requested_data done [16:04:02]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123076,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:04:02]process_action_free close_receipt [16:04:02]json_value_free [16:04:02]json_value_free done [16:04:02]process_json_proto returns [16:04:02]Send response to host [16:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123076,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:04:02]free response buf [16:04:02]execute_script done [16:04:02]execute_script returns [16:04:02]free content buf [16:04:02]Sock 9.Close socket [16:04:02]Sock 9.Thread stoped [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:28]accept exits with 7 [16:17:28]New connection [16:17:28]New thread 3066580324 created [16:17:28]Thread 3066723684 joined [16:17:28]Waiting for new connection... [16:17:28] Sock 7.Parse request [16:17:28]Sock 7.Check first char [16:17:28]Sock 7.First char is OK [16:17:28]request: POST /json_proto HTTP/1.0 [16:17:28]Method: POST [16:17:28]URL: /json_proto [16:17:28]Method is POST - this is cgi request [16:17:28]url: /json_proto [16:17:28]query_string will be loaded in cgi processing [16:17:28]execute_cgi json_proto POST (null) [16:17:28]execute_cgi path=json_proto method=POST [16:17:28]POST find Content-Length [16:17:28]Host: 172.17.37.4:8080 [16:17:28]Content-Length: 677 [16:17:28]Content-Type: application/json [16:17:28] [16:17:28]POST finish read [16:17:28]Found Content-Length = 677 [16:17:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:28]execute_script... [16:17: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)717872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:28]POST & json_proto [16:17:28]process_json_proto [16:17:28]json parsed OK: [16:17:28]protocol is kg_v1.0 [16:17:28]action value=close_receipt [16:17:28]process_action close_receipt [16:17:28]cmd_close_receipt [16:17:28]MH_GetDate [16:17:28]Write to MH i2c: F0 00 00 1F 32 40 [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: F0 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: F0 09 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: F0 09 00 1F 32 00 1E A3 44 67 B8 5A 43 67 71 [16:17:28]GetLastDocTimeStamp 1732550643 [16:17:28]current date 1732551454 [16:17:28]FM_GetShiftState [16:17:28]SAM_PROTO_GetShiftState [16:17:28]wFMCommunicate request_size=4 [16:17:28]MH_SAM_APDU [16:17:28]CAPDU: 80 13 01 00 [16:17:28]Write to MH i2c: E2 08 00 20 32 80 13 01 00 00 00 00 00 CF [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:28]Read from MH i2c: E2 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 0E 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 0E 00 20 32 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4E [16:17:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:17:28]wFMCommunicate OK [16:17:28]SAM_PROTO_GetShiftState done [16:17:28]FM_GetShiftState done [16:17:28]opened in 1732493066 [16:17:28]opened+sec_in_day 1732579466 [16:17:28]quantity*price = 50010 [16:17:28]sum+1 = 50012 [16:17:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 118 25.11.2024 16:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123077 ФПД: 39728067743529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T161734&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123077&fm=39728067743529&tin=02508201610067®Number=0000000000092681&sum=50000 [16:17:29]StoreToDocumentArchive [16:17:29]shift 556 fd 123077 [16:17:29]save to /storage/0556/doc_00123077 [16:17:29]save last doc name /storage/0556/doc_00123077 to /storage/kkm_last_doc_name [16:17:29]save OK [16:17:29]Clear old archive folders... [16:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:29]tlvbuf is 01F2FA70 [16:17:29]SAM_PROTO_ClearQueue [16:17:29]wFMCommunicate request_size=4 [16:17:29]MH_SAM_APDU [16:17:29]CAPDU: 80 09 00 00 [16:17:29]Write to MH i2c: E2 08 00 2D 32 80 09 00 00 00 00 00 00 D1 [16:17:29]Write i2c OK [16:17:29]MH_I2C_Read... [16:17:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:29]Read from MH i2c: E2 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 03 00 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 03 00 2D 32 00 90 00 D3 [16:17:29]RAPDU: 90 00 [16:17:29]wFMCommunicate OK [16:17:29]SAM_PROTO_ClearQueue done [16:17:29]KKMCreateOFDPacket [16:17:29]OFDProtocolAddRootSTLVToBuf [16:17:29]FM_MakeSignedData [16:17:29]FM_MakeSignedData [16:17:29]SAM_PROTO_SignData [16:17:29]wFMCommunicate request_size=4 [16:17:29]MH_SAM_APDU [16:17:29]CAPDU: 80 0D 01 02 [16:17:29]Write to MH i2c: E2 08 00 2E 32 80 0D 01 02 00 00 00 00 D9 [16:17:29]Write i2c OK [16:17:29]MH_I2C_Read... [16:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:29]Read from MH i2c: E2 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 03 00 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 03 00 2E 32 00 90 00 D4 [16:17:29]RAPDU: 90 00 [16:17:29]wFMCommunicate OK [16:17:29]wFMCommunicate request_size=255 [16:17:29]MH_SAM_APDU [16:17: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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1E A3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C5 E0 01 00 35 04 06 00 24 [16:17:29]Write to MH i2c: E2 02 01 2F 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1E A3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C5 E0 01 00 35 04 06 00 24 00 00 1A [16:17:29]Write i2c OK [16:17:29]MH_I2C_Read... [16:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:29]Read from MH i2c: E2 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 03 00 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 03 00 2F 32 00 90 00 D5 [16:17:29]RAPDU: 90 00 [16:17:29]wFMCommunicate OK [16:17:29]wFMCommunicate request_size=10 [16:17:29]MH_SAM_APDU [16:17:29]CAPDU: 80 0D 02 02 05 21 E9 5D 8F 29 [16:17:29]Write to MH i2c: E2 0D 00 30 32 80 0D 02 02 05 00 21 E9 5D 8F 29 00 00 05 [16:17:29]Write i2c OK [16:17:29]MH_I2C_Read... [16:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:29]Read from MH i2c: E2 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 03 00 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 03 00 30 32 00 90 00 D6 [16:17:29]RAPDU: 90 00 [16:17:29]wFMCommunicate OK [16:17:29]wFMCommunicate request_size=4 [16:17:29]MH_SAM_APDU [16:17:29]CAPDU: 80 0D 03 02 [16:17:29]Write to MH i2c: E2 08 00 31 32 80 0D 03 02 00 00 00 00 DE [16:17:29]Write i2c OK [16:17:29]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0B 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0B 00 31 32 00 38 6F 4E FA 77 49 28 8A 90 00 40 [16:17:30]RAPDU: 38 6F 4E FA 77 49 28 8A 90 00 [16:17:30]wFMCommunicate OK [16:17:30]SAM_PROTO_SignData done [16:17:30]FM_MakeSignedData done [16:17:30]CreateOFDProtocolMessage [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 11 00 00 [16:17:30]Write to MH i2c: E2 08 00 32 32 80 11 00 00 00 00 00 00 DE [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 17 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 17 00 32 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 35 [16:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:17:30]wFMCommunicate OK [16:17:30]CreateOFDProtocolMessage done [16:17:30]OFDSenderStorePacket 123077 [16:17:30]StoreOFDPacket docnum=123077 [16:17:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5F 2D 07 01 E7 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1E A3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C5 E0 01 00 35 04 06 00 24 21 E9 5D 8F 29 38 6F 4E FA 77 49 28 8A [16:17:30]CheckFolder [16:17:30]dirname=/storage/ofd_packets [16:17:30]CheckFolder done [16:17:30]ProducePacketName [16:17:30]name=ofd_packets/00123077 [16:17:30]NVStorageSaveData ofd_packets/00123077 [16:17:30]File name is /storage/ofd_packets/00123077 [16:17:30]Write 301 bytes [16:17:30]NVStorageSaveData done [16:17:30]OFDSenderStorePacket done [16:17:30]KKMCreateOFDPacket done [16:17:30]NVStorageSaveData kkm_last_timestamp [16:17:30]File name is /storage/kkm_last_timestamp [16:17:30]Write 4 bytes [16:17:30]NVStorageSaveData done [16:17:30]ExternCall_PrintAddStr [16:17:30]wPrintStart [16:17:30]Write to MH i2c: 01 00 00 33 32 65 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 07 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 07 00 33 32 00 00 00 00 00 FF 0F 7A [16:17:30]RasterBufferAndPrint [16:17:30]line Счет N : (1)717872 [16:17:30]line ИНН: 02508201610067 [16:17:30]line Контрольно-Кассовый Чек [16:17:30]line ПРОДАЖА [16:17:30]line ТРК (МРК, ГНК) : 32 [16:17:30]line Товар: 2710124130 [16:17:30]line Аи-92-К-4 [16:17:30]line 7.420 * 67.40 [16:17:30]line = 500.11 [16:17:30]line НДС 12% НСП 1% [16:17:30]line > о реализуемом товаре [16:17:30]line ОКРУГЛЕНИЕ: -0.11 [16:17:30]line ИТОГО: 500.00 [16:17:30]line Внесено: 500.00 [16:17:30]line СДАЧА: 0.00 [16:17:30]line НСП 1% : 4.43 [16:17:30]line НДС 12% : 53.11 [16:17:30]line Наличными: 500.00 [16:17:30]line Безнал.: 0.00 [16:17:30]line Место: АЗС № 64 "Партнер Нефть" [16:17:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:17:30]line СНО: Общий режим [16:17:30]line Чек 118 25.11.2024 16:17 [16:17:30]line Смена: 556 ФФД: 1.0 [16:17:30]line ЗНМ: 0300000033 [16:17:30]line РНМ: 0000000000092681 [16:17:30]line Версия ККМ: 001 [16:17:30]line ФМ: 0000000000874881 [16:17:30]line ФД: 123077 [16:17:30]line ФПД: 39728067743529 [16:17:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T161734&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123077&fm=39728067743529&tin=02508201610067®Number=0000000000092681&sum=50000 [16:17:30]OFD Sender: Processing packet 123077 [packets to send 7, broken 6] [16:17:30]ProducePacketName [16:17:30]name=ofd_packets/00123077 [16:17:30]OFD Sender: To server: pG, [16:17:30]CommunicateWithHost lk.salyk.kg:30040 [16:17:30]ConnectInit lk.salyk.kg [16:17:30]written 0, free lines is 4095 [16:17:30]Connected sock=10 [16:17:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5F 2D 07 01 E7 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1E A3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C5 E0 01 00 35 04 06 00 24 21 E9 5D 8F 29 38 6F 4E FA 77 49 28 8A [16:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4D A0 47 00 5B 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 34 38 38 31 10 04 04 00 C5 E0 01 00 F4 03 04 00 E3 4E 44 67 B6 04 01 00 00 21 B5 A4 63 33 60 89 26 [16:17:30]CommunicateWithHost err = 0 [16:17:30]CheckOFDResponse [16:17:30]1017 (14) - 77093643461234 [16:17:30]1041 (16) - 0000000000874881 [16:17:30]1040 (4) - 123077 [16:17:30]1012 (4) - 25.11.2024 10:18 [16:17:30]1206 (1) - 0 [16:17:30]OFD Sender: Remove packet 123077 [16:17:30]ProducePacketName [16:17:30]name=ofd_packets/00123077 [16:17:30]NVStorageDeleteData [16:17:30]Write to MH i2c: 01 00 00 5E 32 90 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 07 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 07 00 5E 32 00 00 00 00 00 3C 0C DF [16:17:30]RasterBufferAndPrint [16:17:30]line [16:17:30]line [16:17:30]line [16:17:30]line [16:17:30]line [16:17:30]written 0, free lines is 3137 [16:17:30]MH_Cut [16:17:30]Write to MH i2c: D1 01 00 65 32 01 69 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: D1 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: D1 01 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: D1 01 00 65 32 00 68 [16:17:30]Write to MH i2c: 01 00 00 66 32 98 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:31]OFD Sender: No OFD packet to send [16:17:32]*** Cut start [16:17:32]*** Partial cut [16:17:32]*** CUTSNS_PIN = 1 [16:17:32]*** CUTSNS_PIN = 0 [16:17:32]*** Brake cut motor [16:17:32]Read from MH i2c: 01 [16:17:32]MH_I2C_Read... [16:17:32]*** Stop cut motor [16:17:32]*** Cut end [16:17:32]Read from MH i2c: 01 07 00 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: 01 07 00 66 32 00 00 00 00 00 FF 0F AD [16:17:32]process_action close_receipt done [16:17:32]requested_data is exist [16:17:32]produce_requested_data [16:17:32]requested_item fm.sn is exist - process it [16:17:32]wFMCommunicate request_size=4 [16:17:32]MH_SAM_APDU [16:17:32]CAPDU: 80 11 00 00 [16:17:32]Write to MH i2c: E2 08 00 67 32 80 11 00 00 00 00 00 00 13 [16:17:32]Write i2c OK [16:17:32]MH_I2C_Read... [16:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:32]Read from MH i2c: E2 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: E2 17 00 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: E2 17 00 67 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6A [16:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:17:32]wFMCommunicate OK [16:17:32]requested_item fd.num is exist - process it [16:17:32]SAM_PROTO_GetFieldsCounters [16:17:32]wFMCommunicate request_size=4 [16:17:32]MH_SAM_APDU [16:17:32]CAPDU: 80 13 00 00 [16:17:32]Write to MH i2c: E2 08 00 68 32 80 13 00 00 00 00 00 00 16 [16:17:32]Write i2c OK [16:17:32]MH_I2C_Read... [16:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:33]Read from MH i2c: E2 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 62 00 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 62 00 68 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E0 01 00 0E 04 04 00 2C 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 72 [16:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E0 01 00 0E 04 04 00 2C 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 [16:17:33]wFMCommunicate OK [16:17:33]SAM_PROTO_GetFieldsCounters done [16:17:33]requested_item shift.num is exist - process it [16:17:33]requested_item shift.opened is exist - process it [16:17:33]req_shift_opened [16:17:33]FM_GetShiftState [16:17:33]SAM_PROTO_GetShiftState [16:17:33]wFMCommunicate request_size=4 [16:17:33]MH_SAM_APDU [16:17:33]CAPDU: 80 13 01 00 [16:17:33]Write to MH i2c: E2 08 00 69 32 80 13 01 00 00 00 00 00 18 [16:17:33]Write i2c OK [16:17:33]MH_I2C_Read... [16:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:33]Read from MH i2c: E2 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 0E 00 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 0E 00 69 32 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 97 [16:17:33]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:17:33]wFMCommunicate OK [16:17:33]SAM_PROTO_GetShiftState done [16:17:33]FM_GetShiftState done [16:17:33]req_shift_opened done [16:17:33]requested_item shift.open_date is exist - process it [16:17:33]req_shift_open_date [16:17:33]req_shift_open_date done [16:17:33]produce_requested_data done [16:17:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123077,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:17:33]process_action_free close_receipt [16:17:33]json_value_free [16:17:33]json_value_free done [16:17:33]process_json_proto returns [16:17:33]Send response to host [16:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123077,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:17:33]free response buf [16:17:33]execute_script done [16:17:33]execute_script returns [16:17:33]free content buf [16:17:33]Sock 7.Close socket [16:17:33]Sock 7.Thread stoped [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:43]accept exits with 9 [16:21:43]New connection [16:21:43]New thread 3066723684 created [16:21:43]Thread 3066580324 joined [16:21:43]Waiting for new connection... [16:21:43] Sock 9.Parse request [16:21:43]Sock 9.Check first char [16:21:43]Sock 9.First char is OK [16:21:43]request: POST /json_proto HTTP/1.0 [16:21:43]Method: POST [16:21:43]URL: /json_proto [16:21:43]Method is POST - this is cgi request [16:21:43]url: /json_proto [16:21:43]query_string will be loaded in cgi processing [16:21:43]execute_cgi json_proto POST (null) [16:21:43]execute_cgi path=json_proto method=POST [16:21:43]POST find Content-Length [16:21:43]Host: 172.17.37.4:8080 [16:21:43]Content-Length: 803 [16:21:43]Content-Type: application/json [16:21:43] [16:21:43]POST finish read [16:21:43]Found Content-Length = 803 [16:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:43]execute_script... [16:21:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:43]POST & json_proto [16:21:43]process_json_proto [16:21:43]json parsed OK: [16:21:43]protocol is kg_v1.0 [16:21:43]action value=close_receipt [16:21:43]process_action close_receipt [16:21:43]cmd_close_receipt [16:21:43]MH_GetDate [16:21:43]Write to MH i2c: F0 00 00 6A 32 8B [16:21:43]Write i2c OK [16:21:43]MH_I2C_Read... [16:21:43]Read from MH i2c: F0 [16:21:43]MH_I2C_Read... [16:21:43]Read from MH i2c: F0 09 00 [16:21:43]MH_I2C_Read... [16:21:43]Read from MH i2c: F0 09 00 6A 32 00 1D A4 44 67 B8 5A 43 67 BC [16:21:43]GetLastDocTimeStamp 1732551454 [16:21:43]current date 1732551709 [16:21:43]FM_GetShiftState [16:21:43]SAM_PROTO_GetShiftState [16:21:43]wFMCommunicate request_size=4 [16:21:43]MH_SAM_APDU [16:21:43]CAPDU: 80 13 01 00 [16:21:43]Write to MH i2c: E2 08 00 6B 32 80 13 01 00 00 00 00 00 1A [16:21:43]Write i2c OK [16:21:43]MH_I2C_Read... [16:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:43]Read from MH i2c: E2 [16:21:43]MH_I2C_Read... [16:21:43]Read from MH i2c: E2 0E 00 [16:21:43]MH_I2C_Read... [16:21:43]Read from MH i2c: E2 0E 00 6B 32 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 99 [16:21:43]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:21:43]wFMCommunicate OK [16:21:43]SAM_PROTO_GetShiftState done [16:21:43]FM_GetShiftState done [16:21:43]opened in 1732493066 [16:21:43]opened+sec_in_day 1732579466 [16:21:43]quantity*price = 100021 [16:21:43]sum+1 = 100023 [16:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 119 25.11.2024 16:21 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123078 ФПД: 210519070079578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T162149&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123078&fm=210519070079578&tin=02508201610067®Number=0000000000092681&sum=100022 [16:21:45]StoreToDocumentArchive [16:21:45]shift 556 fd 123078 [16:21:45]save to /storage/0556/doc_00123078 [16:21:45]save last doc name /storage/0556/doc_00123078 to /storage/kkm_last_doc_name [16:21:45]save OK [16:21:45]Clear old archive folders... [16:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:45]tlvbuf is 02071D80 [16:21:45]SAM_PROTO_ClearQueue [16:21:45]wFMCommunicate request_size=4 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 09 00 00 [16:21:45]Write to MH i2c: E2 08 00 78 32 80 09 00 00 00 00 00 00 1C [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 78 32 00 90 00 1E [16:21:45]RAPDU: 90 00 [16:21:45]wFMCommunicate OK [16:21:45]SAM_PROTO_ClearQueue done [16:21:45]KKMCreateOFDPacket [16:21:45]OFDProtocolAddRootSTLVToBuf [16:21:45]FM_MakeSignedData [16:21:45]FM_MakeSignedData [16:21:45]SAM_PROTO_SignData [16:21:45]wFMCommunicate request_size=4 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 0D 01 02 [16:21:45]Write to MH i2c: E2 08 00 79 32 80 0D 01 02 00 00 00 00 24 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 79 32 00 90 00 1F [16:21:45]RAPDU: 90 00 [16:21:45]wFMCommunicate OK [16:21:45]wFMCommunicate request_size=255 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 1D A4 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C6 E0 01 00 35 04 06 00 BF [16:21:45]Write to MH i2c: E2 02 01 7A 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 1D A4 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C6 E0 01 00 35 04 06 00 BF 00 00 1E [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 7A 32 00 90 00 20 [16:21:45]RAPDU: 90 00 [16:21:45]wFMCommunicate OK [16:21:45]wFMCommunicate request_size=10 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 0D 02 02 05 77 4A 63 FA 5A [16:21:45]Write to MH i2c: E2 0D 00 7B 32 80 0D 02 02 05 00 77 4A 63 FA 5A 00 00 A9 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 7B 32 00 90 00 21 [16:21:45]RAPDU: 90 00 [16:21:45]wFMCommunicate OK [16:21:45]wFMCommunicate request_size=4 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 0D 03 02 [16:21:45]Write to MH i2c: E2 08 00 7C 32 80 0D 03 02 00 00 00 00 29 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 0B 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 0B 00 7C 32 00 C2 87 FD 6B F6 5D EB 78 90 00 91 [16:21:45]RAPDU: C2 87 FD 6B F6 5D EB 78 90 00 [16:21:45]wFMCommunicate OK [16:21:45]SAM_PROTO_SignData done [16:21:45]FM_MakeSignedData done [16:21:45]CreateOFDProtocolMessage [16:21:45]wFMCommunicate request_size=4 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 11 00 00 [16:21:45]Write to MH i2c: E2 08 00 7D 32 80 11 00 00 00 00 00 00 29 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 17 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 17 00 7D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 80 [16:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:21:45]wFMCommunicate OK [16:21:45]CreateOFDProtocolMessage done [16:21:45]OFDSenderStorePacket 123078 [16:21:45]StoreOFDPacket docnum=123078 [16:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 BD 0C 07 01 AC FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 1D A4 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C6 E0 01 00 35 04 06 00 BF 77 4A 63 FA 5A C2 87 FD 6B F6 5D EB 78 [16:21:45]CheckFolder [16:21:45]dirname=/storage/ofd_packets [16:21:45]CheckFolder done [16:21:45]ProducePacketName [16:21:45]name=ofd_packets/00123078 [16:21:45]NVStorageSaveData ofd_packets/00123078 [16:21:45]File name is /storage/ofd_packets/00123078 [16:21:45]Write 301 bytes [16:21:45]NVStorageSaveData done [16:21:45]OFDSenderStorePacket done [16:21:45]KKMCreateOFDPacket done [16:21:45]NVStorageSaveData kkm_last_timestamp [16:21:45]File name is /storage/kkm_last_timestamp [16:21:45]Write 4 bytes [16:21:45]NVStorageSaveData done [16:21:45]ExternCall_PrintAddStr [16:21:45]wPrintStart [16:21:45]Write to MH i2c: 01 00 00 7E 32 B0 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: 01 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: 01 07 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: 01 07 00 7E 32 00 00 00 00 00 FF 0F C5 [16:21:45]RasterBufferAndPrint [16:21:45]line Счет N : (1)717873 [16:21:45]line ИНН: 02508201610067 [16:21:45]line Контрольно-Кассовый Чек [16:21:45]line ПРОДАЖА [16:21:45]line ТРК (МРК, ГНК) : 22 [16:21:45]line Товар: 2710124130 [16:21:45]line Аи-92-К-4 [16:21:45]line 14.840 * 67.40 [16:21:45]line = 1000.22 [16:21:45]line НДС 12% НСП 1% [16:21:45]line > о реализуемом товаре [16:21:45]line ИТОГО: 1000.22 [16:21:45]line НСП 1% : 8.85 [16:21:45]line НДС 12% : 106.22 [16:21:45]line Наличными: 0.00 [16:21:45]line Безнал.: 1000.22 [16:21:45]line Место: АЗС № 64 "Партнер Нефть" [16:21:45]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:21:45]line СНО: Общий режим [16:21:45]line Чек 119 25.11.2024 16:21 [16:21:45]line Смена: 556 ФФД: 1.0 [16:21:45]line ЗНМ: 0300000033 [16:21:45]line РНМ: 0000000000092681 [16:21:45]line Версия ККМ: 001 [16:21:45]line Платежная система: O! деньги [16:21:45]line ФМ: 0000000000874881 [16:21:45]line ФД: 123078 [16:21:45]line ФПД: 210519070079578 [16:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T162149&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123078&fm=210519070079578&tin=02508201610067®Number=0000000000092681&sum=100022 [16:21:45]written 0, free lines is 4095 [16:21:45]OFD Sender: Processing packet 123078 [packets to send 7, broken 6] [16:21:45]ProducePacketName [16:21:45]name=ofd_packets/00123078 [16:21:45]OFD Sender: To server: pG, [16:21:45]CommunicateWithHost lk.salyk.kg:30040 [16:21:45]ConnectInit lk.salyk.kg [16:21:46]Connected sock=10 [16:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 BD 0C 07 01 AC FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 1D A4 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C6 E0 01 00 35 04 06 00 BF 77 4A 63 FA 5A C2 87 FD 6B F6 5D EB 78 [16:21:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B2 69 47 00 FC 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 34 38 38 31 10 04 04 00 C6 E0 01 00 F4 03 04 00 E3 4F 44 67 B6 04 01 00 00 5B C6 B8 B5 A5 4C D0 2C [16:21:46]CommunicateWithHost err = 0 [16:21:46]CheckOFDResponse [16:21:46]1017 (14) - 77093643461234 [16:21:46]1041 (16) - 0000000000874881 [16:21:46]1040 (4) - 123078 [16:21:46]1012 (4) - 25.11.2024 10:22 [16:21:46]1206 (1) - 0 [16:21:46]OFD Sender: Remove packet 123078 [16:21:46]ProducePacketName [16:21:46]name=ofd_packets/00123078 [16:21:46]NVStorageDeleteData [16:21:46]Write to MH i2c: 01 00 00 A8 32 DA [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: 01 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: 01 07 00 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: 01 07 00 A8 32 00 00 00 00 00 50 0C 3D [16:21:46]RasterBufferAndPrint [16:21:46]line [16:21:46]line [16:21:46]line [16:21:46]line [16:21:46]line [16:21:46]written 0, free lines is 3158 [16:21:46]MH_Cut [16:21:46]Write to MH i2c: D1 01 00 AF 32 01 B3 [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: D1 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: D1 01 00 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: D1 01 00 AF 32 00 B2 [16:21:46]Write to MH i2c: 01 00 00 B0 32 E2 [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:46]OFD Sender: No OFD packet to send [16:21:47]*** Cut start [16:21:47]*** Partial cut [16:21:47]*** CUTSNS_PIN = 1 [16:21:47]*** CUTSNS_PIN = 0 [16:21:48]*** Brake cut motor [16:21:48]Read from MH i2c: 01 [16:21:48]MH_I2C_Read... [16:21:48]*** Stop cut motor [16:21:48]*** Cut end [16:21:48]Read from MH i2c: 01 07 00 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: 01 07 00 B0 32 00 00 00 00 00 FF 0F F7 [16:21:48]process_action close_receipt done [16:21:48]requested_data is exist [16:21:48]produce_requested_data [16:21:48]requested_item fm.sn is exist - process it [16:21:48]wFMCommunicate request_size=4 [16:21:48]MH_SAM_APDU [16:21:48]CAPDU: 80 11 00 00 [16:21:48]Write to MH i2c: E2 08 00 B1 32 80 11 00 00 00 00 00 00 5D [16:21:48]Write i2c OK [16:21:48]MH_I2C_Read... [16:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:48]Read from MH i2c: E2 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 17 00 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 17 00 B1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B4 [16:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:21:48]wFMCommunicate OK [16:21:48]requested_item fd.num is exist - process it [16:21:48]SAM_PROTO_GetFieldsCounters [16:21:48]wFMCommunicate request_size=4 [16:21:48]MH_SAM_APDU [16:21:48]CAPDU: 80 13 00 00 [16:21:48]Write to MH i2c: E2 08 00 B2 32 80 13 00 00 00 00 00 00 60 [16:21:48]Write i2c OK [16:21:48]MH_I2C_Read... [16:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:48]Read from MH i2c: E2 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 62 00 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 62 00 B2 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C6 E0 01 00 0E 04 04 00 2C 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 C0 [16:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C6 E0 01 00 0E 04 04 00 2C 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 [16:21:48]wFMCommunicate OK [16:21:48]SAM_PROTO_GetFieldsCounters done [16:21:48]requested_item shift.num is exist - process it [16:21:48]requested_item shift.opened is exist - process it [16:21:48]req_shift_opened [16:21:48]FM_GetShiftState [16:21:48]SAM_PROTO_GetShiftState [16:21:48]wFMCommunicate request_size=4 [16:21:48]MH_SAM_APDU [16:21:48]CAPDU: 80 13 01 00 [16:21:48]Write to MH i2c: E2 08 00 B3 32 80 13 01 00 00 00 00 00 62 [16:21:48]Write i2c OK [16:21:48]MH_I2C_Read... [16:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:48]Read from MH i2c: E2 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 0E 00 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 0E 00 B3 32 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E1 [16:21:48]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:21:48]wFMCommunicate OK [16:21:48]SAM_PROTO_GetShiftState done [16:21:48]FM_GetShiftState done [16:21:48]req_shift_opened done [16:21:48]requested_item shift.open_date is exist - process it [16:21:48]req_shift_open_date [16:21:48]req_shift_open_date done [16:21:48]produce_requested_data done [16:21:48]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123078,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:21:48]process_action_free close_receipt [16:21:48]json_value_free [16:21:48]json_value_free done [16:21:48]process_json_proto returns [16:21:48]Send response to host [16:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123078,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:21:48]free response buf [16:21:48]execute_script done [16:21:48]execute_script returns [16:21:48]free content buf [16:21:48]Sock 9.Close socket [16:21:48]Sock 9.Thread stoped [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:21]accept exits with 7 [16:29:21]New connection [16:29:21]New thread 3066580324 created [16:29:21]Thread 3066723684 joined [16:29:21]Waiting for new connection... [16:29:21] Sock 7.Parse request [16:29:21]Sock 7.Check first char [16:29:21]Sock 7.First char is OK [16:29:21]request: POST /json_proto HTTP/1.0 [16:29:21]Method: POST [16:29:21]URL: /json_proto [16:29:21]Method is POST - this is cgi request [16:29:21]url: /json_proto [16:29:21]query_string will be loaded in cgi processing [16:29:21]execute_cgi json_proto POST (null) [16:29:21]execute_cgi path=json_proto method=POST [16:29:21]POST find Content-Length [16:29:21]Host: 172.17.37.4:8080 [16:29:21]Content-Length: 682 [16:29:21]Content-Type: application/json [16:29:21] [16:29:21]POST finish read [16:29:21]Found Content-Length = 682 [16:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:21]execute_script... [16:29:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:21]POST & json_proto [16:29:21]process_json_proto [16:29:21]json parsed OK: [16:29:21]protocol is kg_v1.0 [16:29:21]action value=close_receipt [16:29:21]process_action close_receipt [16:29:21]cmd_close_receipt [16:29:21]MH_GetDate [16:29:21]Write to MH i2c: F0 00 00 B4 32 D5 [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 09 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 09 00 B4 32 00 E6 A5 44 67 B8 5A 43 67 D0 [16:29:21]GetLastDocTimeStamp 1732551709 [16:29:21]current date 1732552166 [16:29:21]FM_GetShiftState [16:29:21]SAM_PROTO_GetShiftState [16:29:21]wFMCommunicate request_size=4 [16:29:21]MH_SAM_APDU [16:29:21]CAPDU: 80 13 01 00 [16:29:21]Write to MH i2c: E2 08 00 B5 32 80 13 01 00 00 00 00 00 64 [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:21]Read from MH i2c: E2 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 B5 32 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E3 [16:29:21]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:29:21]wFMCommunicate OK [16:29:21]SAM_PROTO_GetShiftState done [16:29:21]FM_GetShiftState done [16:29:21]opened in 1732493066 [16:29:21]opened+sec_in_day 1732579466 [16:29:21]quantity*price = 100021 [16:29:21]sum+1 = 100023 [16:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 120 25.11.2024 16:29 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123079 ФПД: 178021040577336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T162926&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123079&fm=178021040577336&tin=02508201610067®Number=0000000000092681&sum=100000 [16:29:22]StoreToDocumentArchive [16:29:22]shift 556 fd 123079 [16:29:22]save to /storage/0556/doc_00123079 [16:29:22]save last doc name /storage/0556/doc_00123079 to /storage/kkm_last_doc_name [16:29:22]save OK [16:29:22]Clear old archive folders... [16:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:22]tlvbuf is 01F46EB0 [16:29:22]SAM_PROTO_ClearQueue [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 09 00 00 [16:29:22]Write to MH i2c: E2 08 00 C2 32 80 09 00 00 00 00 00 00 66 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 C2 32 00 90 00 68 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]SAM_PROTO_ClearQueue done [16:29:22]KKMCreateOFDPacket [16:29:22]OFDProtocolAddRootSTLVToBuf [16:29:22]FM_MakeSignedData [16:29:22]FM_MakeSignedData [16:29:22]SAM_PROTO_SignData [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 01 02 [16:29:22]Write to MH i2c: E2 08 00 C3 32 80 0D 01 02 00 00 00 00 6E [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 C3 32 00 90 00 69 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=255 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E6 A5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C7 E0 01 00 35 04 06 00 A1 [16:29:22]Write to MH i2c: E2 02 01 C4 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E6 A5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C7 E0 01 00 35 04 06 00 A1 00 00 EA [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 C4 32 00 90 00 6A [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=10 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 02 02 05 E8 C0 E2 DB 38 [16:29:22]Write to MH i2c: E2 0D 00 C5 32 80 0D 02 02 05 00 E8 C0 E2 DB 38 00 00 18 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 C5 32 00 90 00 6B [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 03 02 [16:29:22]Write to MH i2c: E2 08 00 C6 32 80 0D 03 02 00 00 00 00 73 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 0B 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 0B 00 C6 32 00 84 4B 87 D1 3D 9B BA 6F 90 00 9C [16:29:22]RAPDU: 84 4B 87 D1 3D 9B BA 6F 90 00 [16:29:22]wFMCommunicate OK [16:29:22]SAM_PROTO_SignData done [16:29:22]FM_MakeSignedData done [16:29:22]CreateOFDProtocolMessage [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 11 00 00 [16:29:22]Write to MH i2c: E2 08 00 C7 32 80 11 00 00 00 00 00 00 73 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 17 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 17 00 C7 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CA [16:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:29:22]wFMCommunicate OK [16:29:22]CreateOFDProtocolMessage done [16:29:22]OFDSenderStorePacket 123079 [16:29:22]StoreOFDPacket docnum=123079 [16:29:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1D F5 07 01 61 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E6 A5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C7 E0 01 00 35 04 06 00 A1 E8 C0 E2 DB 38 84 4B 87 D1 3D 9B BA 6F [16:29:22]CheckFolder [16:29:22]dirname=/storage/ofd_packets [16:29:22]CheckFolder done [16:29:22]ProducePacketName [16:29:22]name=ofd_packets/00123079 [16:29:22]NVStorageSaveData ofd_packets/00123079 [16:29:22]File name is /storage/ofd_packets/00123079 [16:29:22]Write 301 bytes [16:29:22]NVStorageSaveData done [16:29:22]OFDSenderStorePacket done [16:29:22]KKMCreateOFDPacket done [16:29:22]NVStorageSaveData kkm_last_timestamp [16:29:22]File name is /storage/kkm_last_timestamp [16:29:22]Write 4 bytes [16:29:22]NVStorageSaveData done [16:29:22]ExternCall_PrintAddStr [16:29:22]wPrintStart [16:29:22]Write to MH i2c: 01 00 00 C8 32 FA [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: 01 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: 01 07 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: 01 07 00 C8 32 00 00 00 00 00 FF 0F 0F [16:29:22]RasterBufferAndPrint [16:29:22]line Счет N : (1)717874 [16:29:22]line ИНН: 02508201610067 [16:29:22]line Контрольно-Кассовый Чек [16:29:22]line ПРОДАЖА [16:29:22]line ТРК (МРК, ГНК) : 12 [16:29:22]line Товар: 2710124130 [16:29:22]line Аи-92-К-4 [16:29:22]line 14.840 * 67.40 [16:29:22]line = 1000.22 [16:29:22]line НДС 12% НСП 1% [16:29:22]line > о реализуемом товаре [16:29:22]line ОКРУГЛЕНИЕ: -0.22 [16:29:22]line ИТОГО: 1000.00 [16:29:22]line Внесено: 1000.00 [16:29:22]line СДАЧА: 0.00 [16:29:22]line НСП 1% : 8.85 [16:29:22]line НДС 12% : 106.22 [16:29:22]line Наличными: 1000.00 [16:29:22]line Безнал.: 0.00 [16:29:22]line Место: АЗС № 64 "Партнер Нефть" [16:29:22]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:29:22]line СНО: Общий режим [16:29:22]line Чек 120 25.11.2024 16:29 [16:29:22]line Смена: 556 ФФД: 1.0 [16:29:22]line ЗНМ: 0300000033 [16:29:22]line РНМ: 0000000000092681 [16:29:22]line Версия ККМ: 001 [16:29:22]line ФМ: 0000000000874881 [16:29:22]line ФД: 123079 [16:29:22]line ФПД: 178021040577336 [16:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T162926&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123079&fm=178021040577336&tin=02508201610067®Number=0000000000092681&sum=100000 [16:29:23]OFD Sender: Processing packet 123079 [packets to send 7, broken 6] [16:29:23]ProducePacketName [16:29:23]name=ofd_packets/00123079 [16:29:23]OFD Sender: To server: pG, [16:29:23]CommunicateWithHost lk.salyk.kg:30040 [16:29:23]ConnectInit lk.salyk.kg [16:29:23]written 0, free lines is 4095 [16:29:23]Connected sock=9 [16:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1D F5 07 01 61 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E6 A5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C7 E0 01 00 35 04 06 00 A1 E8 C0 E2 DB 38 84 4B 87 D1 3D 9B BA 6F [16:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 1D 1E 47 00 2D 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C7 E0 01 00 F4 03 04 00 AC 51 44 67 B6 04 01 00 00 BA AC 58 5E 6F 94 0F 30 [16:29:23]CommunicateWithHost err = 0 [16:29:23]CheckOFDResponse [16:29:23]1017 (14) - 77093643461234 [16:29:23]1041 (16) - 0000000000874881 [16:29:23]1040 (4) - 123079 [16:29:23]1012 (4) - 25.11.2024 10:30 [16:29:23]1206 (1) - 0 [16:29:23]OFD Sender: Remove packet 123079 [16:29:23]ProducePacketName [16:29:23]name=ofd_packets/00123079 [16:29:23]NVStorageDeleteData [16:29:23]Write to MH i2c: 01 00 00 F3 32 25 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 F3 32 00 00 00 00 00 49 0C 81 [16:29:23]RasterBufferAndPrint [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]written 0, free lines is 3150 [16:29:23]MH_Cut [16:29:23]Write to MH i2c: D1 01 00 FA 32 01 FE [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: D1 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: D1 01 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: D1 01 00 FA 32 00 FD [16:29:23]Write to MH i2c: 01 00 00 FB 32 2D [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]OFD Sender: No OFD packet to send [16:29:24]*** Cut start [16:29:24]*** Partial cut [16:29:24]*** CUTSNS_PIN = 1 [16:29:25]*** CUTSNS_PIN = 0 [16:29:25]*** Brake cut motor [16:29:25]Read from MH i2c: 01 [16:29:25]MH_I2C_Read... [16:29:25]*** Stop cut motor [16:29:25]*** Cut end [16:29:25]Read from MH i2c: 01 07 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: 01 07 00 FB 32 00 00 00 00 00 FF 0F 42 [16:29:25]process_action close_receipt done [16:29:25]requested_data is exist [16:29:25]produce_requested_data [16:29:25]requested_item fm.sn is exist - process it [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 11 00 00 [16:29:25]Write to MH i2c: E2 08 00 FC 32 80 11 00 00 00 00 00 00 A8 [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 17 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 17 00 FC 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FF [16:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:29:25]wFMCommunicate OK [16:29:25]requested_item fd.num is exist - process it [16:29:25]SAM_PROTO_GetFieldsCounters [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 13 00 00 [16:29:25]Write to MH i2c: E2 08 00 FD 32 80 13 00 00 00 00 00 00 AB [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 62 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 62 00 FD 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C7 E0 01 00 0E 04 04 00 2C 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 0F [16:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C7 E0 01 00 0E 04 04 00 2C 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 [16:29:25]wFMCommunicate OK [16:29:25]SAM_PROTO_GetFieldsCounters done [16:29:25]requested_item shift.num is exist - process it [16:29:25]requested_item shift.opened is exist - process it [16:29:25]req_shift_opened [16:29:25]FM_GetShiftState [16:29:25]SAM_PROTO_GetShiftState [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 13 01 00 [16:29:25]Write to MH i2c: E2 08 00 FE 32 80 13 01 00 00 00 00 00 AD [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 0E 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 0E 00 FE 32 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2C [16:29:25]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:29:25]wFMCommunicate OK [16:29:25]SAM_PROTO_GetShiftState done [16:29:25]FM_GetShiftState done [16:29:25]req_shift_opened done [16:29:25]requested_item shift.open_date is exist - process it [16:29:25]req_shift_open_date [16:29:25]req_shift_open_date done [16:29:25]produce_requested_data done [16:29:25]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123079,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:29:25]process_action_free close_receipt [16:29:25]json_value_free [16:29:25]json_value_free done [16:29:25]process_json_proto returns [16:29:25]Send response to host [16:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123079,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:29:25]free response buf [16:29:25]execute_script done [16:29:25]execute_script returns [16:29:25]free content buf [16:29:25]Sock 7.Close socket [16:29:25]Sock 7.Thread stoped [16:29:26]accept exits with 10 [16:29:26]New connection [16:29:26]New thread 3066723684 created [16:29:26]Thread 3066580324 joined [16:29:26]Waiting for new connection... [16:29:26] Sock 10.Parse request [16:29:26]Sock 10.Check first char [16:29:26]Sock 10.First char is OK [16:29:26]request: POST /json_proto HTTP/1.0 [16:29:26]Method: POST [16:29:26]URL: /json_proto [16:29:26]Method is POST - this is cgi request [16:29:26]url: /json_proto [16:29:26]query_string will be loaded in cgi processing [16:29:26]execute_cgi json_proto POST (null) [16:29:26]execute_cgi path=json_proto method=POST [16:29:26]POST find Content-Length [16:29:26]Host: 172.17.37.4:8080 [16:29:26]Content-Length: 686 [16:29:26]Content-Type: application/json [16:29:26] [16:29:26]POST finish read [16:29:26]Found Content-Length = 686 [16:29:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:26]execute_script... [16:29: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)717875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:26]POST & json_proto [16:29:26]process_json_proto [16:29:26]json parsed OK: [16:29:26]protocol is kg_v1.0 [16:29:26]action value=close_receipt [16:29:26]process_action close_receipt [16:29:26]cmd_close_receipt [16:29:26]MH_GetDate [16:29:26]Write to MH i2c: F0 00 00 FF 32 20 [16:29:26]Write i2c OK [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: F0 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: F0 09 00 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: F0 09 00 FF 32 00 EC A5 44 67 B8 5A 43 67 21 [16:29:26]GetLastDocTimeStamp 1732552166 [16:29:26]current date 1732552172 [16:29:26]FM_GetShiftState [16:29:26]SAM_PROTO_GetShiftState [16:29:26]wFMCommunicate request_size=4 [16:29:26]MH_SAM_APDU [16:29:26]CAPDU: 80 13 01 00 [16:29:26]Write to MH i2c: E2 08 00 00 33 80 13 01 00 00 00 00 00 B0 [16:29:26]Write i2c OK [16:29:26]MH_I2C_Read... [16:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:26]Read from MH i2c: E2 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 0E 00 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 0E 00 00 33 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2F [16:29:26]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:29:26]wFMCommunicate OK [16:29:26]SAM_PROTO_GetShiftState done [16:29:26]FM_GetShiftState done [16:29:26]opened in 1732493066 [16:29:26]opened+sec_in_day 1732579466 [16:29:26]quantity*price = 100066 [16:29:26]sum+1 = 100067 [16:29:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 121 25.11.2024 16:29 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123080 ФПД: 268900641851329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T162932&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123080&fm=268900641851329&tin=02508201610067®Number=0000000000092681&sum=100000 [16:29:27]StoreToDocumentArchive [16:29:27]shift 556 fd 123080 [16:29:27]save to /storage/0556/doc_00123080 [16:29:27]save last doc name /storage/0556/doc_00123080 to /storage/kkm_last_doc_name [16:29:27]save OK [16:29:27]Clear old archive folders... [16:29:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:29:27]tlvbuf is 01F4E270 [16:29:27]SAM_PROTO_ClearQueue [16:29:27]wFMCommunicate request_size=4 [16:29:27]MH_SAM_APDU [16:29:27]CAPDU: 80 09 00 00 [16:29:27]Write to MH i2c: E2 08 00 0D 33 80 09 00 00 00 00 00 00 B2 [16:29:27]Write i2c OK [16:29:27]MH_I2C_Read... [16:29:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:27]Read from MH i2c: E2 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 03 00 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 03 00 0D 33 00 90 00 B4 [16:29:27]RAPDU: 90 00 [16:29:27]wFMCommunicate OK [16:29:27]SAM_PROTO_ClearQueue done [16:29:27]KKMCreateOFDPacket [16:29:27]OFDProtocolAddRootSTLVToBuf [16:29:27]FM_MakeSignedData [16:29:27]FM_MakeSignedData [16:29:27]SAM_PROTO_SignData [16:29:27]wFMCommunicate request_size=4 [16:29:27]MH_SAM_APDU [16:29:27]CAPDU: 80 0D 01 02 [16:29:27]Write to MH i2c: E2 08 00 0E 33 80 0D 01 02 00 00 00 00 BA [16:29:27]Write i2c OK [16:29:27]MH_I2C_Read... [16:29:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:27]Read from MH i2c: E2 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 03 00 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 03 00 0E 33 00 90 00 B5 [16:29:27]RAPDU: 90 00 [16:29:27]wFMCommunicate OK [16:29:27]wFMCommunicate request_size=255 [16:29:27]MH_SAM_APDU [16:29:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 EC A5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E0 01 00 35 04 06 00 [16:29:27]Write to MH i2c: E2 02 01 0F 33 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 EC A5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E0 01 00 35 04 06 00 00 00 2D [16:29:27]Write i2c OK [16:29:27]MH_I2C_Read... [16:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:28]Read from MH i2c: E2 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 03 00 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 03 00 0F 33 00 90 00 B6 [16:29:28]RAPDU: 90 00 [16:29:28]wFMCommunicate OK [16:29:28]wFMCommunicate request_size=11 [16:29:28]MH_SAM_APDU [16:29:28]CAPDU: 80 0D 02 02 06 F4 90 4F 3C C7 C1 [16:29:28]Write to MH i2c: E2 0E 00 10 33 80 0D 02 02 06 00 F4 90 4F 3C C7 C1 00 00 60 [16:29:28]Write i2c OK [16:29:28]MH_I2C_Read... [16:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:28]Read from MH i2c: E2 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 03 00 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 03 00 10 33 00 90 00 B7 [16:29:28]RAPDU: 90 00 [16:29:28]wFMCommunicate OK [16:29:28]wFMCommunicate request_size=4 [16:29:28]MH_SAM_APDU [16:29:28]CAPDU: 80 0D 03 02 [16:29:28]Write to MH i2c: E2 08 00 11 33 80 0D 03 02 00 00 00 00 BF [16:29:28]Write i2c OK [16:29:28]MH_I2C_Read... [16:29:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:28]Read from MH i2c: E2 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 0B 00 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 0B 00 11 33 00 56 D7 DD B2 8B 6B E3 B0 90 00 05 [16:29:28]RAPDU: 56 D7 DD B2 8B 6B E3 B0 90 00 [16:29:28]wFMCommunicate OK [16:29:28]SAM_PROTO_SignData done [16:29:28]FM_MakeSignedData done [16:29:28]CreateOFDProtocolMessage [16:29:28]wFMCommunicate request_size=4 [16:29:28]MH_SAM_APDU [16:29:28]CAPDU: 80 11 00 00 [16:29:28]Write to MH i2c: E2 08 00 12 33 80 11 00 00 00 00 00 00 BF [16:29:28]Write i2c OK [16:29:28]MH_I2C_Read... [16:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:28]Read from MH i2c: E2 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 17 00 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 17 00 12 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 16 [16:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:29:28]wFMCommunicate OK [16:29:28]CreateOFDProtocolMessage done [16:29:28]OFDSenderStorePacket 123080 [16:29:28]StoreOFDPacket docnum=123080 [16:29:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 8D 86 08 01 9F 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 EC A5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E0 01 00 35 04 06 00 F4 90 4F 3C C7 C1 56 D7 DD B2 8B 6B E3 B0 [16:29:28]CheckFolder [16:29:28]dirname=/storage/ofd_packets [16:29:28]CheckFolder done [16:29:28]ProducePacketName [16:29:28]name=ofd_packets/00123080 [16:29:28]NVStorageSaveData ofd_packets/00123080 [16:29:28]File name is /storage/ofd_packets/00123080 [16:29:28]Write 302 bytes [16:29:28]NVStorageSaveData done [16:29:28]OFDSenderStorePacket done [16:29:28]KKMCreateOFDPacket done [16:29:28]NVStorageSaveData kkm_last_timestamp [16:29:28]File name is /storage/kkm_last_timestamp [16:29:28]Write 4 bytes [16:29:28]NVStorageSaveData done [16:29:28]ExternCall_PrintAddStr [16:29:28]wPrintStart [16:29:28]Write to MH i2c: 01 00 00 13 33 46 [16:29:28]Write i2c OK [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: 01 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: 01 07 00 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: 01 07 00 13 33 00 00 00 00 00 FF 0F 5B [16:29:28]RasterBufferAndPrint [16:29:28]line Счет N : (1)717875 [16:29:28]line ИНН: 02508201610067 [16:29:28]line Контрольно-Кассовый Чек [16:29:28]line ПРОДАЖА [16:29:28]line ТРК (МРК, ГНК) : 6 [16:29:28]line Товар: 2710194210 [16:29:28]line ДТ(л)-К-5 [16:29:28]line 13.360 * 74.90 [16:29:28]line = 1000.66 [16:29:28]line НДС 12% НСП 1% [16:29:28]line > о реализуемом товаре [16:29:28]line ОКРУГЛЕНИЕ: -0.66 [16:29:28]line ИТОГО: 1000.00 [16:29:28]line Внесено: 1000.00 [16:29:28]line СДАЧА: 0.00 [16:29:28]line НСП 1% : 8.85 [16:29:28]line НДС 12% : 106.26 [16:29:28]line Наличными: 1000.00 [16:29:28]line Безнал.: 0.00 [16:29:28]line Место: АЗС № 64 "Партнер Нефть" [16:29:28]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:29:28]line СНО: Общий режим [16:29:28]line Чек 121 25.11.2024 16:29 [16:29:28]line Смена: 556 ФФД: 1.0 [16:29:28]line ЗНМ: 0300000033 [16:29:28]line РНМ: 0000000000092681 [16:29:28]line Версия ККМ: 001 [16:29:28]line ФМ: 0000000000874881 [16:29:28]line ФД: 123080 [16:29:28]line ФПД: 268900641851329 [16:29:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T162932&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123080&fm=268900641851329&tin=02508201610067®Number=0000000000092681&sum=100000 [16:29:28]written 0, free lines is 4095 [16:29:28]OFD Sender: Processing packet 123080 [packets to send 7, broken 6] [16:29:28]ProducePacketName [16:29:28]name=ofd_packets/00123080 [16:29:28]OFD Sender: To server: pG, [16:29:28]CommunicateWithHost lk.salyk.kg:30040 [16:29:28]ConnectInit lk.salyk.kg [16:29:28]Connected sock=9 [16:29:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 8D 86 08 01 9F 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 EC A5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E0 01 00 35 04 06 00 F4 90 4F 3C C7 C1 56 D7 DD B2 8B 6B E3 B0 [16:29:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D8 5C 47 00 E8 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 34 38 38 31 10 04 04 00 C8 E0 01 00 F4 03 04 00 B1 51 44 67 B6 04 01 00 00 D5 12 67 7F BB E1 EF BD [16:29:29]CommunicateWithHost err = 0 [16:29:29]CheckOFDResponse [16:29:29]1017 (14) - 77093643461234 [16:29:29]1041 (16) - 0000000000874881 [16:29:29]1040 (4) - 123080 [16:29:29]1012 (4) - 25.11.2024 10:30 [16:29:29]1206 (1) - 0 [16:29:29]OFD Sender: Remove packet 123080 [16:29:29]ProducePacketName [16:29:29]name=ofd_packets/00123080 [16:29:29]NVStorageDeleteData [16:29:29]Write to MH i2c: 01 00 00 3E 33 71 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 07 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 07 00 3E 33 00 00 00 00 00 54 0C D8 [16:29:29]RasterBufferAndPrint [16:29:29]line [16:29:29]line [16:29:29]line [16:29:29]line [16:29:29]line [16:29:29]written 0, free lines is 3164 [16:29:29]MH_Cut [16:29:29]Write to MH i2c: D1 01 00 45 33 01 4A [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: D1 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: D1 01 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: D1 01 00 45 33 00 49 [16:29:29]Write to MH i2c: 01 00 00 46 33 79 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]OFD Sender: No OFD packet to send [16:29:30]*** Cut start [16:29:30]*** Partial cut [16:29:30]*** CUTSNS_PIN = 1 [16:29:30]*** CUTSNS_PIN = 0 [16:29:30]*** Brake cut motor [16:29:31]Read from MH i2c: 01 [16:29:31]MH_I2C_Read... [16:29:31]*** Stop cut motor [16:29:31]*** Cut end [16:29:31]Read from MH i2c: 01 07 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: 01 07 00 46 33 00 00 00 00 00 FF 0F 8E [16:29:31]process_action close_receipt done [16:29:31]requested_data is exist [16:29:31]produce_requested_data [16:29:31]requested_item fm.sn is exist - process it [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 11 00 00 [16:29:31]Write to MH i2c: E2 08 00 47 33 80 11 00 00 00 00 00 00 F4 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 17 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 17 00 47 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4B [16:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:29:31]wFMCommunicate OK [16:29:31]requested_item fd.num is exist - process it [16:29:31]SAM_PROTO_GetFieldsCounters [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 13 00 00 [16:29:31]Write to MH i2c: E2 08 00 48 33 80 13 00 00 00 00 00 00 F7 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 62 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 62 00 48 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C8 E0 01 00 0E 04 04 00 2C 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 5F [16:29:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C8 E0 01 00 0E 04 04 00 2C 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 [16:29:31]wFMCommunicate OK [16:29:31]SAM_PROTO_GetFieldsCounters done [16:29:31]requested_item shift.num is exist - process it [16:29:31]requested_item shift.opened is exist - process it [16:29:31]req_shift_opened [16:29:31]FM_GetShiftState [16:29:31]SAM_PROTO_GetShiftState [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 13 01 00 [16:29:31]Write to MH i2c: E2 08 00 49 33 80 13 01 00 00 00 00 00 F9 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0E 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0E 00 49 33 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 78 [16:29:31]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:29:31]wFMCommunicate OK [16:29:31]SAM_PROTO_GetShiftState done [16:29:31]FM_GetShiftState done [16:29:31]req_shift_opened done [16:29:31]requested_item shift.open_date is exist - process it [16:29:31]req_shift_open_date [16:29:31]req_shift_open_date done [16:29:31]produce_requested_data done [16:29:31]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123080,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:29:31]process_action_free close_receipt [16:29:31]json_value_free [16:29:31]json_value_free done [16:29:31]process_json_proto returns [16:29:31]Send response to host [16:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123080,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:29:31]free response buf [16:29:31]execute_script done [16:29:31]execute_script returns [16:29:31]free content buf [16:29:31]Sock 10.Close socket [16:29:31]Sock 10.Thread stoped [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]accept exits with 7 [16:34:24]New connection [16:34:24]New thread 3066580324 created [16:34:24]Thread 3066723684 joined [16:34:24]Waiting for new connection... [16:34:24] Sock 7.Parse request [16:34:24]Sock 7.Check first char [16:34:24]Sock 7.First char is OK [16:34:24]request: POST /json_proto HTTP/1.0 [16:34:24]Method: POST [16:34:24]URL: /json_proto [16:34:24]Method is POST - this is cgi request [16:34:24]url: /json_proto [16:34:24]query_string will be loaded in cgi processing [16:34:24]execute_cgi json_proto POST (null) [16:34:24]execute_cgi path=json_proto method=POST [16:34:24]POST find Content-Length [16:34:24]Host: 172.17.37.4:8080 [16:34:24]Content-Length: 800 [16:34:24]Content-Type: application/json [16:34:24] [16:34:24]POST finish read [16:34:24]Found Content-Length = 800 [16:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:24]execute_script... [16:34:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:24]POST & json_proto [16:34:24]process_json_proto [16:34:24]json parsed OK: [16:34:24]protocol is kg_v1.0 [16:34:24]action value=close_receipt [16:34:24]process_action close_receipt [16:34:24]cmd_close_receipt [16:34:24]MH_GetDate [16:34:24]Write to MH i2c: F0 00 00 4A 33 6C [16:34:24]Write i2c OK [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: F0 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: F0 09 00 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: F0 09 00 4A 33 00 15 A7 44 67 B8 5A 43 67 98 [16:34:24]GetLastDocTimeStamp 1732552172 [16:34:24]current date 1732552469 [16:34:24]FM_GetShiftState [16:34:24]SAM_PROTO_GetShiftState [16:34:24]wFMCommunicate request_size=4 [16:34:24]MH_SAM_APDU [16:34:24]CAPDU: 80 13 01 00 [16:34:24]Write to MH i2c: E2 08 00 4B 33 80 13 01 00 00 00 00 00 FB [16:34:24]Write i2c OK [16:34:24]MH_I2C_Read... [16:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:24]Read from MH i2c: E2 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: E2 0E 00 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: E2 0E 00 4B 33 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 7A [16:34:24]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:34:24]wFMCommunicate OK [16:34:24]SAM_PROTO_GetShiftState done [16:34:24]FM_GetShiftState done [16:34:24]opened in 1732493066 [16:34:24]opened+sec_in_day 1732579466 [16:34:24]quantity*price = 60053 [16:34:24]sum+1 = 60054 [16:34:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.53 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.53 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 122 25.11.2024 16:34 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123081 ФПД: 111463809654651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T163430&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123081&fm=111463809654651&tin=02508201610067®Number=0000000000092681&sum=60053 [16:34:25]StoreToDocumentArchive [16:34:25]shift 556 fd 123081 [16:34:25]save to /storage/0556/doc_00123081 [16:34:25]save last doc name /storage/0556/doc_00123081 to /storage/kkm_last_doc_name [16:34:25]save OK [16:34:25]Clear old archive folders... [16:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:25]tlvbuf is 020D3690 [16:34:25]SAM_PROTO_ClearQueue [16:34:25]wFMCommunicate request_size=4 [16:34:25]MH_SAM_APDU [16:34:25]CAPDU: 80 09 00 00 [16:34:25]Write to MH i2c: E2 08 00 58 33 80 09 00 00 00 00 00 00 FD [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 58 33 00 90 00 FF [16:34:25]RAPDU: 90 00 [16:34:25]wFMCommunicate OK [16:34:25]SAM_PROTO_ClearQueue done [16:34:25]KKMCreateOFDPacket [16:34:25]OFDProtocolAddRootSTLVToBuf [16:34:25]FM_MakeSignedData [16:34:25]FM_MakeSignedData [16:34:25]SAM_PROTO_SignData [16:34:25]wFMCommunicate request_size=4 [16:34:25]MH_SAM_APDU [16:34:25]CAPDU: 80 0D 01 02 [16:34:25]Write to MH i2c: E2 08 00 59 33 80 0D 01 02 00 00 00 00 05 [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 59 33 00 90 00 00 [16:34:25]RAPDU: 90 00 [16:34:25]wFMCommunicate OK [16:34:25]wFMCommunicate request_size=255 [16:34:25]MH_SAM_APDU [16:34:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 16 A7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E0 01 00 35 04 06 00 65 [16:34:25]Write to MH i2c: E2 02 01 5A 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 16 A7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E0 01 00 35 04 06 00 65 00 00 23 [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 5A 33 00 90 00 01 [16:34:25]RAPDU: 90 00 [16:34:25]wFMCommunicate OK [16:34:25]wFMCommunicate request_size=10 [16:34:25]MH_SAM_APDU [16:34:25]CAPDU: 80 0D 02 02 05 60 30 C7 9F 7B [16:34:25]Write to MH i2c: E2 0D 00 5B 33 80 0D 02 02 05 00 60 30 C7 9F 7B 00 00 83 [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 5B 33 00 90 00 02 [16:34:25]RAPDU: 90 00 [16:34:25]wFMCommunicate OK [16:34:25]wFMCommunicate request_size=4 [16:34:25]MH_SAM_APDU [16:34:25]CAPDU: 80 0D 03 02 [16:34:25]Write to MH i2c: E2 08 00 5C 33 80 0D 03 02 00 00 00 00 0A [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 0B 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 0B 00 5C 33 00 49 C3 C7 40 BA 98 C0 62 90 00 92 [16:34:25]RAPDU: 49 C3 C7 40 BA 98 C0 62 90 00 [16:34:25]wFMCommunicate OK [16:34:25]SAM_PROTO_SignData done [16:34:25]FM_MakeSignedData done [16:34:25]CreateOFDProtocolMessage [16:34:25]wFMCommunicate request_size=4 [16:34:25]MH_SAM_APDU [16:34:25]CAPDU: 80 11 00 00 [16:34:25]Write to MH i2c: E2 08 00 5D 33 80 11 00 00 00 00 00 00 0A [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 17 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 17 00 5D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 61 [16:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:34:25]wFMCommunicate OK [16:34:25]CreateOFDProtocolMessage done [16:34:25]OFDSenderStorePacket 123081 [16:34:25]StoreOFDPacket docnum=123081 [16:34:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4D FA 07 01 C4 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 16 A7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E0 01 00 35 04 06 00 65 60 30 C7 9F 7B 49 C3 C7 40 BA 98 C0 62 [16:34:25]CheckFolder [16:34:25]dirname=/storage/ofd_packets [16:34:25]CheckFolder done [16:34:25]ProducePacketName [16:34:25]name=ofd_packets/00123081 [16:34:25]NVStorageSaveData ofd_packets/00123081 [16:34:25]File name is /storage/ofd_packets/00123081 [16:34:25]Write 301 bytes [16:34:25]NVStorageSaveData done [16:34:25]OFDSenderStorePacket done [16:34:25]KKMCreateOFDPacket done [16:34:25]NVStorageSaveData kkm_last_timestamp [16:34:25]File name is /storage/kkm_last_timestamp [16:34:25]Write 4 bytes [16:34:25]NVStorageSaveData done [16:34:25]ExternCall_PrintAddStr [16:34:25]wPrintStart [16:34:25]Write to MH i2c: 01 00 00 5E 33 91 [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: 01 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: 01 07 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: 01 07 00 5E 33 00 00 00 00 00 FF 0F A6 [16:34:25]RasterBufferAndPrint [16:34:25]line Счет N : (1)717876 [16:34:25]line ИНН: 02508201610067 [16:34:25]line Контрольно-Кассовый Чек [16:34:25]line ПРОДАЖА [16:34:25]line ТРК (МРК, ГНК) : 42 [16:34:25]line Товар: 2710124130 [16:34:25]line Аи-92-К-4 [16:34:25]line 8.910 * 67.40 [16:34:25]line = 600.53 [16:34:25]line НДС 12% НСП 1% [16:34:25]line > о реализуемом товаре [16:34:25]line ИТОГО: 600.53 [16:34:25]line НСП 1% : 5.31 [16:34:25]line НДС 12% : 63.77 [16:34:25]line Наличными: 0.00 [16:34:25]line Безнал.: 600.53 [16:34:25]line Место: АЗС № 64 "Партнер Нефть" [16:34:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:34:25]line СНО: Общий режим [16:34:25]line Чек 122 25.11.2024 16:34 [16:34:25]line Смена: 556 ФФД: 1.0 [16:34:25]line ЗНМ: 0300000033 [16:34:25]line РНМ: 0000000000092681 [16:34:25]line Версия ККМ: 001 [16:34:25]line Платежная система: O! деньги [16:34:25]line ФМ: 0000000000874881 [16:34:25]line ФД: 123081 [16:34:25]line ФПД: 111463809654651 [16:34:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T163430&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123081&fm=111463809654651&tin=02508201610067®Number=0000000000092681&sum=60053 [16:34:26]written 0, free lines is 4095 [16:34:26]OFD Sender: Processing packet 123081 [packets to send 7, broken 6] [16:34:26]ProducePacketName [16:34:26]name=ofd_packets/00123081 [16:34:26]OFD Sender: To server: pG, [16:34:26]CommunicateWithHost lk.salyk.kg:30040 [16:34:26]ConnectInit lk.salyk.kg [16:34:26]Connected sock=11 [16:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4D FA 07 01 C4 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 16 A7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E0 01 00 35 04 06 00 65 60 30 C7 9F 7B 49 C3 C7 40 BA 98 C0 62 [16:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4A 8F 47 00 D7 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E0 01 00 F4 03 04 00 DB 52 44 67 B6 04 01 00 00 A5 B4 47 CD 5A 44 CF 8D [16:34:26]CommunicateWithHost err = 0 [16:34:26]CheckOFDResponse [16:34:26]1017 (14) - 77093643461234 [16:34:26]1041 (16) - 0000000000874881 [16:34:26]1040 (4) - 123081 [16:34:26]1012 (4) - 25.11.2024 10:35 [16:34:26]1206 (1) - 0 [16:34:26]OFD Sender: Remove packet 123081 [16:34:26]ProducePacketName [16:34:26]name=ofd_packets/00123081 [16:34:26]NVStorageDeleteData [16:34:26]Write to MH i2c: 01 00 00 88 33 BB [16:34:26]Write i2c OK [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: 01 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: 01 07 00 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: 01 07 00 88 33 00 00 00 00 00 66 0C 34 [16:34:26]RasterBufferAndPrint [16:34:26]line [16:34:26]line [16:34:26]line [16:34:26]line [16:34:26]line [16:34:26]written 0, free lines is 3178 [16:34:26]MH_Cut [16:34:26]Write to MH i2c: D1 01 00 8F 33 01 94 [16:34:26]Write i2c OK [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: D1 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: D1 01 00 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: D1 01 00 8F 33 00 93 [16:34:26]Write to MH i2c: 01 00 00 90 33 C3 [16:34:26]Write i2c OK [16:34:26]MH_I2C_Read... [16:34:26]OFD Sender: No OFD packet to send [16:34:27]*** Cut start [16:34:27]*** Partial cut [16:34:27]*** CUTSNS_PIN = 1 [16:34:28]*** CUTSNS_PIN = 0 [16:34:28]*** Brake cut motor [16:34:28]Read from MH i2c: 01 [16:34:28]MH_I2C_Read... [16:34:28]*** Stop cut motor [16:34:28]*** Cut end [16:34:28]Read from MH i2c: 01 07 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: 01 07 00 90 33 00 00 00 00 00 FF 0F D8 [16:34:28]process_action close_receipt done [16:34:28]requested_data is exist [16:34:28]produce_requested_data [16:34:28]requested_item fm.sn is exist - process it [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 11 00 00 [16:34:28]Write to MH i2c: E2 08 00 91 33 80 11 00 00 00 00 00 00 3E [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 17 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 17 00 91 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 95 [16:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:34:28]wFMCommunicate OK [16:34:28]requested_item fd.num is exist - process it [16:34:28]SAM_PROTO_GetFieldsCounters [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 13 00 00 [16:34:28]Write to MH i2c: E2 08 00 92 33 80 13 00 00 00 00 00 00 41 [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 62 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 62 00 92 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C9 E0 01 00 0E 04 04 00 2C 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 AD [16:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C9 E0 01 00 0E 04 04 00 2C 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 [16:34:28]wFMCommunicate OK [16:34:28]SAM_PROTO_GetFieldsCounters done [16:34:28]requested_item shift.num is exist - process it [16:34:28]requested_item shift.opened is exist - process it [16:34:28]req_shift_opened [16:34:28]FM_GetShiftState [16:34:28]SAM_PROTO_GetShiftState [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 13 01 00 [16:34:28]Write to MH i2c: E2 08 00 93 33 80 13 01 00 00 00 00 00 43 [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 0E 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 0E 00 93 33 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C2 [16:34:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:34:28]wFMCommunicate OK [16:34:28]SAM_PROTO_GetShiftState done [16:34:28]FM_GetShiftState done [16:34:28]req_shift_opened done [16:34:28]requested_item shift.open_date is exist - process it [16:34:28]req_shift_open_date [16:34:28]req_shift_open_date done [16:34:28]produce_requested_data done [16:34:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123081,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:34:28]process_action_free close_receipt [16:34:28]json_value_free [16:34:28]json_value_free done [16:34:28]process_json_proto returns [16:34:28]Send response to host [16:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123081,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:34:28]free response buf [16:34:28]execute_script done [16:34:28]execute_script returns [16:34:28]free content buf [16:34:28]Sock 7.Close socket [16:34:28]Sock 7.Thread stoped [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:36:58]accept exits with 9 [16:36:58]New connection [16:36:58]New thread 3066723684 created [16:36:58]Thread 3066580324 joined [16:36:58]Waiting for new connection... [16:36:58] Sock 9.Parse request [16:36:58]Sock 9.Check first char [16:36:58]Sock 9.First char is OK [16:36:58]request: POST /json_proto HTTP/1.0 [16:36:58]Method: POST [16:36:58]URL: /json_proto [16:36:58]Method is POST - this is cgi request [16:36:58]url: /json_proto [16:36:58]query_string will be loaded in cgi processing [16:36:58]execute_cgi json_proto POST (null) [16:36:58]execute_cgi path=json_proto method=POST [16:36:58]POST find Content-Length [16:36:58]Host: 172.17.37.4:8080 [16:36:58]Content-Length: 677 [16:36:58]Content-Type: application/json [16:36:58] [16:36:58]POST finish read [16:36:58]Found Content-Length = 677 [16:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:58]execute_script... [16:36: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)717877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:58]POST & json_proto [16:36:58]process_json_proto [16:36:58]json parsed OK: [16:36:58]protocol is kg_v1.0 [16:36:58]action value=close_receipt [16:36:58]process_action close_receipt [16:36:58]cmd_close_receipt [16:36:58]MH_GetDate [16:36:58]Write to MH i2c: F0 00 00 94 33 B6 [16:36:58]Write i2c OK [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: F0 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: F0 09 00 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: F0 09 00 94 33 00 B0 A7 44 67 B8 5A 43 67 7D [16:36:58]GetLastDocTimeStamp 1732552470 [16:36:58]current date 1732552624 [16:36:58]FM_GetShiftState [16:36:58]SAM_PROTO_GetShiftState [16:36:58]wFMCommunicate request_size=4 [16:36:58]MH_SAM_APDU [16:36:58]CAPDU: 80 13 01 00 [16:36:58]Write to MH i2c: E2 08 00 95 33 80 13 01 00 00 00 00 00 45 [16:36:58]Write i2c OK [16:36:58]MH_I2C_Read... [16:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:58]Read from MH i2c: E2 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: E2 0E 00 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: E2 0E 00 95 33 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C4 [16:36:58]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:36:58]wFMCommunicate OK [16:36:58]SAM_PROTO_GetShiftState done [16:36:58]FM_GetShiftState done [16:36:58]opened in 1732493066 [16:36:58]opened+sec_in_day 1732579466 [16:36:58]quantity*price = 30060 [16:36:58]sum+1 = 30061 [16:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 123 25.11.2024 16:37 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123082 ФПД: 220999196392163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T163704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123082&fm=220999196392163&tin=02508201610067®Number=0000000000092681&sum=30000 [16:36:59]StoreToDocumentArchive [16:36:59]shift 556 fd 123082 [16:36:59]save to /storage/0556/doc_00123082 [16:36:59]save last doc name /storage/0556/doc_00123082 to /storage/kkm_last_doc_name [16:36:59]save OK [16:36:59]Clear old archive folders... [16:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:00]tlvbuf is 01F6C6E0 [16:37:00]SAM_PROTO_ClearQueue [16:37:00]wFMCommunicate request_size=4 [16:37:00]MH_SAM_APDU [16:37:00]CAPDU: 80 09 00 00 [16:37:00]Write to MH i2c: E2 08 00 A2 33 80 09 00 00 00 00 00 00 47 [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:00]Read from MH i2c: E2 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 03 00 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 03 00 A2 33 00 90 00 49 [16:37:00]RAPDU: 90 00 [16:37:00]wFMCommunicate OK [16:37:00]SAM_PROTO_ClearQueue done [16:37:00]KKMCreateOFDPacket [16:37:00]OFDProtocolAddRootSTLVToBuf [16:37:00]FM_MakeSignedData [16:37:00]FM_MakeSignedData [16:37:00]SAM_PROTO_SignData [16:37:00]wFMCommunicate request_size=4 [16:37:00]MH_SAM_APDU [16:37:00]CAPDU: 80 0D 01 02 [16:37:00]Write to MH i2c: E2 08 00 A3 33 80 0D 01 02 00 00 00 00 4F [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:00]Read from MH i2c: E2 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 03 00 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 03 00 A3 33 00 90 00 4A [16:37:00]RAPDU: 90 00 [16:37:00]wFMCommunicate OK [16:37:00]wFMCommunicate request_size=255 [16:37:00]MH_SAM_APDU [16:37: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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 B0 A7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E0 01 00 35 04 06 00 C8 [16:37:00]Write to MH i2c: E2 02 01 A4 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 B0 A7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E0 01 00 35 04 06 00 C8 00 00 20 [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:00]Read from MH i2c: E2 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 03 00 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 03 00 A4 33 00 90 00 4B [16:37:00]RAPDU: 90 00 [16:37:00]wFMCommunicate OK [16:37:00]wFMCommunicate request_size=10 [16:37:00]MH_SAM_APDU [16:37:00]CAPDU: 80 0D 02 02 05 FF 62 98 BA E3 [16:37:00]Write to MH i2c: E2 0D 00 A5 33 80 0D 02 02 05 00 FF 62 98 BA E3 00 00 F2 [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:00]Read from MH i2c: E2 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 03 00 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 03 00 A5 33 00 90 00 4C [16:37:00]RAPDU: 90 00 [16:37:00]wFMCommunicate OK [16:37:00]wFMCommunicate request_size=4 [16:37:00]MH_SAM_APDU [16:37:00]CAPDU: 80 0D 03 02 [16:37:00]Write to MH i2c: E2 08 00 A6 33 80 0D 03 02 00 00 00 00 54 [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:00]Read from MH i2c: E2 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 0B 00 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 0B 00 A6 33 00 0A 71 17 6C DC 81 1E 03 90 00 D1 [16:37:00]RAPDU: 0A 71 17 6C DC 81 1E 03 90 00 [16:37:00]wFMCommunicate OK [16:37:00]SAM_PROTO_SignData done [16:37:00]FM_MakeSignedData done [16:37:00]CreateOFDProtocolMessage [16:37:00]wFMCommunicate request_size=4 [16:37:00]MH_SAM_APDU [16:37:00]CAPDU: 80 11 00 00 [16:37:00]Write to MH i2c: E2 08 00 A7 33 80 11 00 00 00 00 00 00 54 [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:00]Read from MH i2c: E2 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 17 00 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: E2 17 00 A7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AB [16:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:37:00]wFMCommunicate OK [16:37:00]CreateOFDProtocolMessage done [16:37:00]OFDSenderStorePacket 123082 [16:37:00]StoreOFDPacket docnum=123082 [16:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6B BC 07 01 10 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 B0 A7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E0 01 00 35 04 06 00 C8 FF 62 98 BA E3 0A 71 17 6C DC 81 1E 03 [16:37:00]CheckFolder [16:37:00]dirname=/storage/ofd_packets [16:37:00]CheckFolder done [16:37:00]ProducePacketName [16:37:00]name=ofd_packets/00123082 [16:37:00]NVStorageSaveData ofd_packets/00123082 [16:37:00]File name is /storage/ofd_packets/00123082 [16:37:00]Write 301 bytes [16:37:00]NVStorageSaveData done [16:37:00]OFDSenderStorePacket done [16:37:00]KKMCreateOFDPacket done [16:37:00]NVStorageSaveData kkm_last_timestamp [16:37:00]File name is /storage/kkm_last_timestamp [16:37:00]Write 4 bytes [16:37:00]NVStorageSaveData done [16:37:00]ExternCall_PrintAddStr [16:37:00]wPrintStart [16:37:00]Write to MH i2c: 01 00 00 A8 33 DB [16:37:00]OFD Sender: Processing packet 123082 [packets to send 7, broken 6] [16:37:00]ProducePacketName [16:37:00]name=ofd_packets/00123082 [16:37:00]OFD Sender: To server: pG, [16:37:00]CommunicateWithHost lk.salyk.kg:30040 [16:37:00]ConnectInit lk.salyk.kg [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: 01 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: 01 07 00 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: 01 07 00 A8 33 00 00 00 00 00 FF 0F F0 [16:37:00]RasterBufferAndPrint [16:37:00]line Счет N : (1)717877 [16:37:00]line ИНН: 02508201610067 [16:37:00]line Контрольно-Кассовый Чек [16:37:00]line ПРОДАЖА [16:37:00]line ТРК (МРК, ГНК) : 12 [16:37:00]line Товар: 2710124130 [16:37:00]line Аи-92-К-4 [16:37:00]line 4.460 * 67.40 [16:37:00]line = 300.60 [16:37:00]line НДС 12% НСП 1% [16:37:00]line > о реализуемом товаре [16:37:00]line ОКРУГЛЕНИЕ: -0.60 [16:37:00]line ИТОГО: 300.00 [16:37:00]line Внесено: 300.00 [16:37:00]line СДАЧА: 0.00 [16:37:00]line НСП 1% : 2.66 [16:37:00]line НДС 12% : 31.92 [16:37:00]line Наличными: 300.00 [16:37:00]line Безнал.: 0.00 [16:37:00]line Место: АЗС № 64 "Партнер Нефть" [16:37:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:37:00]line СНО: Общий режим [16:37:00]line Чек 123 25.11.2024 16:37 [16:37:00]line Смена: 556 ФФД: 1.0 [16:37:00]line ЗНМ: 0300000033 [16:37:00]line РНМ: 0000000000092681 [16:37:00]line Версия ККМ: 001 [16:37:00]line ФМ: 0000000000874881 [16:37:00]line ФД: 123082 [16:37:00]line ФПД: 220999196392163 [16:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T163704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123082&fm=220999196392163&tin=02508201610067®Number=0000000000092681&sum=30000 [16:37:00]Connected sock=10 [16:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6B BC 07 01 10 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 B0 A7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E0 01 00 35 04 06 00 C8 FF 62 98 BA E3 0A 71 17 6C DC 81 1E 03 [16:37:00]written 0, free lines is 4095 [16:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 5D 2C 47 00 B4 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E0 01 00 F4 03 04 00 75 53 44 67 B6 04 01 00 00 37 BB A0 65 D2 91 16 CE [16:37:01]CommunicateWithHost err = 0 [16:37:01]CheckOFDResponse [16:37:01]1017 (14) - 77093643461234 [16:37:01]1041 (16) - 0000000000874881 [16:37:01]1040 (4) - 123082 [16:37:01]1012 (4) - 25.11.2024 10:37 [16:37:01]1206 (1) - 0 [16:37:01]OFD Sender: Remove packet 123082 [16:37:01]ProducePacketName [16:37:01]name=ofd_packets/00123082 [16:37:01]NVStorageDeleteData [16:37:01]Write to MH i2c: 01 00 00 D3 33 06 [16:37:01]Write i2c OK [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: 01 [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: 01 07 00 [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: 01 07 00 D3 33 00 00 00 00 00 50 0C 69 [16:37:01]RasterBufferAndPrint [16:37:01]line [16:37:01]line [16:37:01]line [16:37:01]line [16:37:01]line [16:37:01]written 0, free lines is 3156 [16:37:01]MH_Cut [16:37:01]Write to MH i2c: D1 01 00 DA 33 01 DF [16:37:01]Write i2c OK [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: D1 [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: D1 01 00 [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: D1 01 00 DA 33 00 DE [16:37:01]Write to MH i2c: 01 00 00 DB 33 0E [16:37:01]Write i2c OK [16:37:01]MH_I2C_Read... [16:37:01]OFD Sender: No OFD packet to send [16:37:02]*** Cut start [16:37:02]*** Partial cut [16:37:02]*** CUTSNS_PIN = 1 [16:37:02]*** CUTSNS_PIN = 0 [16:37:03]*** Brake cut motor [16:37:03]Read from MH i2c: 01 [16:37:03]MH_I2C_Read... [16:37:03]*** Stop cut motor [16:37:03]*** Cut end [16:37:03]Read from MH i2c: 01 07 00 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: 01 07 00 DB 33 00 00 00 00 00 FF 0F 23 [16:37:03]process_action close_receipt done [16:37:03]requested_data is exist [16:37:03]produce_requested_data [16:37:03]requested_item fm.sn is exist - process it [16:37:03]wFMCommunicate request_size=4 [16:37:03]MH_SAM_APDU [16:37:03]CAPDU: 80 11 00 00 [16:37:03]Write to MH i2c: E2 08 00 DC 33 80 11 00 00 00 00 00 00 89 [16:37:03]Write i2c OK [16:37:03]MH_I2C_Read... [16:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:03]Read from MH i2c: E2 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: E2 17 00 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: E2 17 00 DC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E0 [16:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:37:03]wFMCommunicate OK [16:37:03]requested_item fd.num is exist - process it [16:37:03]SAM_PROTO_GetFieldsCounters [16:37:03]wFMCommunicate request_size=4 [16:37:03]MH_SAM_APDU [16:37:03]CAPDU: 80 13 00 00 [16:37:03]Write to MH i2c: E2 08 00 DD 33 80 13 00 00 00 00 00 00 8C [16:37:03]Write i2c OK [16:37:03]MH_I2C_Read... [16:37:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:03]Read from MH i2c: E2 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: E2 62 00 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: E2 62 00 DD 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CA E0 01 00 0E 04 04 00 2C 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 FC [16:37:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CA E0 01 00 0E 04 04 00 2C 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 [16:37:03]wFMCommunicate OK [16:37:03]SAM_PROTO_GetFieldsCounters done [16:37:03]requested_item shift.num is exist - process it [16:37:03]requested_item shift.opened is exist - process it [16:37:03]req_shift_opened [16:37:03]FM_GetShiftState [16:37:03]SAM_PROTO_GetShiftState [16:37:03]wFMCommunicate request_size=4 [16:37:03]MH_SAM_APDU [16:37:03]CAPDU: 80 13 01 00 [16:37:03]Write to MH i2c: E2 08 00 DE 33 80 13 01 00 00 00 00 00 8E [16:37:03]Write i2c OK [16:37:03]MH_I2C_Read... [16:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:03]Read from MH i2c: E2 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: E2 0E 00 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: E2 0E 00 DE 33 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0D [16:37:03]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:37:03]wFMCommunicate OK [16:37:03]SAM_PROTO_GetShiftState done [16:37:03]FM_GetShiftState done [16:37:03]req_shift_opened done [16:37:03]requested_item shift.open_date is exist - process it [16:37:03]req_shift_open_date [16:37:03]req_shift_open_date done [16:37:03]produce_requested_data done [16:37:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123082,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:37:03]process_action_free close_receipt [16:37:03]json_value_free [16:37:03]json_value_free done [16:37:03]process_json_proto returns [16:37:03]Send response to host [16:37:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123082,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:37:03]free response buf [16:37:03]execute_script done [16:37:03]execute_script returns [16:37:03]free content buf [16:37:03]Sock 9.Close socket [16:37:03]Sock 9.Thread stoped [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:42]accept exits with 7 [16:40:42]New connection [16:40:42]New thread 3066580324 created [16:40:42]Thread 3066723684 joined [16:40:42]Waiting for new connection... [16:40:42] Sock 7.Parse request [16:40:42]Sock 7.Check first char [16:40:42]Sock 7.First char is OK [16:40:42]request: POST /json_proto HTTP/1.0 [16:40:42]Method: POST [16:40:42]URL: /json_proto [16:40:42]Method is POST - this is cgi request [16:40:42]url: /json_proto [16:40:42]query_string will be loaded in cgi processing [16:40:42]execute_cgi json_proto POST (null) [16:40:42]execute_cgi path=json_proto method=POST [16:40:42]POST find Content-Length [16:40:42]Host: 172.17.37.4:8080 [16:40:42]Content-Length: 682 [16:40:42]Content-Type: application/json [16:40:42] [16:40:42]POST finish read [16:40:42]Found Content-Length = 682 [16:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:42]execute_script... [16:40:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:42]POST & json_proto [16:40:42]process_json_proto [16:40:42]json parsed OK: [16:40:42]protocol is kg_v1.0 [16:40:42]action value=close_receipt [16:40:42]process_action close_receipt [16:40:42]cmd_close_receipt [16:40:42]MH_GetDate [16:40:42]Write to MH i2c: F0 00 00 DF 33 01 [16:40:42]Write i2c OK [16:40:42]MH_I2C_Read... [16:40:42]Read from MH i2c: F0 [16:40:42]MH_I2C_Read... [16:40:42]Read from MH i2c: F0 09 00 [16:40:42]MH_I2C_Read... [16:40:42]Read from MH i2c: F0 09 00 DF 33 00 90 A8 44 67 B8 5A 43 67 A9 [16:40:42]GetLastDocTimeStamp 1732552624 [16:40:42]current date 1732552848 [16:40:42]FM_GetShiftState [16:40:42]SAM_PROTO_GetShiftState [16:40:42]wFMCommunicate request_size=4 [16:40:42]MH_SAM_APDU [16:40:42]CAPDU: 80 13 01 00 [16:40:42]Write to MH i2c: E2 08 00 E0 33 80 13 01 00 00 00 00 00 90 [16:40:42]Write i2c OK [16:40:42]MH_I2C_Read... [16:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:42]Read from MH i2c: E2 [16:40:42]MH_I2C_Read... [16:40:42]Read from MH i2c: E2 0E 00 [16:40:42]MH_I2C_Read... [16:40:42]Read from MH i2c: E2 0E 00 E0 33 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0F [16:40:42]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:40:42]wFMCommunicate OK [16:40:42]SAM_PROTO_GetShiftState done [16:40:42]FM_GetShiftState done [16:40:42]opened in 1732493066 [16:40:42]opened+sec_in_day 1732579466 [16:40:42]quantity*price = 100021 [16:40:42]sum+1 = 100023 [16:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 124 25.11.2024 16:40 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123083 ФПД: 85457757601070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T164048&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123083&fm=85457757601070&tin=02508201610067®Number=0000000000092681&sum=100000 [16:40:43]StoreToDocumentArchive [16:40:43]shift 556 fd 123083 [16:40:43]save to /storage/0556/doc_00123083 [16:40:43]save last doc name /storage/0556/doc_00123083 to /storage/kkm_last_doc_name [16:40:43]save OK [16:40:43]Clear old archive folders... [16:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:43]tlvbuf is 020D39A0 [16:40:43]SAM_PROTO_ClearQueue [16:40:43]wFMCommunicate request_size=4 [16:40:43]MH_SAM_APDU [16:40:43]CAPDU: 80 09 00 00 [16:40:43]Write to MH i2c: E2 08 00 ED 33 80 09 00 00 00 00 00 00 92 [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:43]Read from MH i2c: E2 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 03 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 03 00 ED 33 00 90 00 94 [16:40:43]RAPDU: 90 00 [16:40:43]wFMCommunicate OK [16:40:43]SAM_PROTO_ClearQueue done [16:40:43]KKMCreateOFDPacket [16:40:43]OFDProtocolAddRootSTLVToBuf [16:40:43]FM_MakeSignedData [16:40:43]FM_MakeSignedData [16:40:43]SAM_PROTO_SignData [16:40:43]wFMCommunicate request_size=4 [16:40:43]MH_SAM_APDU [16:40:43]CAPDU: 80 0D 01 02 [16:40:43]Write to MH i2c: E2 08 00 EE 33 80 0D 01 02 00 00 00 00 9A [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:43]Read from MH i2c: E2 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 03 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 03 00 EE 33 00 90 00 95 [16:40:43]RAPDU: 90 00 [16:40:43]wFMCommunicate OK [16:40:43]wFMCommunicate request_size=255 [16:40:43]MH_SAM_APDU [16:40:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 90 A8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E0 01 00 35 04 06 00 4D [16:40:43]Write to MH i2c: E2 02 01 EF 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 90 A8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E0 01 00 35 04 06 00 4D 00 00 77 [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:43]Read from MH i2c: E2 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 03 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 03 00 EF 33 00 90 00 96 [16:40:43]RAPDU: 90 00 [16:40:43]wFMCommunicate OK [16:40:43]wFMCommunicate request_size=10 [16:40:43]MH_SAM_APDU [16:40:43]CAPDU: 80 0D 02 02 05 B9 2F 48 FD 2E [16:40:43]Write to MH i2c: E2 0D 00 F0 33 80 0D 02 02 05 00 B9 2F 48 FD 2E 00 00 02 [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:43]Read from MH i2c: E2 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 03 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 03 00 F0 33 00 90 00 97 [16:40:43]RAPDU: 90 00 [16:40:43]wFMCommunicate OK [16:40:43]wFMCommunicate request_size=4 [16:40:43]MH_SAM_APDU [16:40:43]CAPDU: 80 0D 03 02 [16:40:43]Write to MH i2c: E2 08 00 F1 33 80 0D 03 02 00 00 00 00 9F [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:43]Read from MH i2c: E2 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 0B 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 0B 00 F1 33 00 0B 52 BD B2 56 D6 B3 7F 90 00 CA [16:40:43]RAPDU: 0B 52 BD B2 56 D6 B3 7F 90 00 [16:40:43]wFMCommunicate OK [16:40:43]SAM_PROTO_SignData done [16:40:43]FM_MakeSignedData done [16:40:43]CreateOFDProtocolMessage [16:40:43]wFMCommunicate request_size=4 [16:40:43]MH_SAM_APDU [16:40:43]CAPDU: 80 11 00 00 [16:40:43]Write to MH i2c: E2 08 00 F2 33 80 11 00 00 00 00 00 00 9F [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:43]Read from MH i2c: E2 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 17 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 17 00 F2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F6 [16:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:40:43]wFMCommunicate OK [16:40:43]CreateOFDProtocolMessage done [16:40:43]OFDSenderStorePacket 123083 [16:40:43]StoreOFDPacket docnum=123083 [16:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 84 96 07 01 F7 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 90 A8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E0 01 00 35 04 06 00 4D B9 2F 48 FD 2E 0B 52 BD B2 56 D6 B3 7F [16:40:43]CheckFolder [16:40:43]dirname=/storage/ofd_packets [16:40:43]CheckFolder done [16:40:43]ProducePacketName [16:40:43]name=ofd_packets/00123083 [16:40:43]NVStorageSaveData ofd_packets/00123083 [16:40:43]File name is /storage/ofd_packets/00123083 [16:40:43]Write 301 bytes [16:40:43]NVStorageSaveData done [16:40:43]OFDSenderStorePacket done [16:40:43]KKMCreateOFDPacket done [16:40:43]NVStorageSaveData kkm_last_timestamp [16:40:43]File name is /storage/kkm_last_timestamp [16:40:43]Write 4 bytes [16:40:43]NVStorageSaveData done [16:40:43]ExternCall_PrintAddStr [16:40:43]wPrintStart [16:40:43]Write to MH i2c: 01 00 00 F3 33 26 [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: 01 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: 01 07 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: 01 07 00 F3 33 00 00 00 00 00 FF 0F 3B [16:40:43]RasterBufferAndPrint [16:40:43]line Счет N : (1)717878 [16:40:43]line ИНН: 02508201610067 [16:40:43]line Контрольно-Кассовый Чек [16:40:43]line ПРОДАЖА [16:40:43]line ТРК (МРК, ГНК) : 12 [16:40:43]line Товар: 2710124130 [16:40:43]line Аи-92-К-4 [16:40:43]line 14.840 * 67.40 [16:40:43]line = 1000.22 [16:40:43]line НДС 12% НСП 1% [16:40:43]line > о реализуемом товаре [16:40:43]line ОКРУГЛЕНИЕ: -0.22 [16:40:43]line ИТОГО: 1000.00 [16:40:43]line Внесено: 1000.00 [16:40:43]line СДАЧА: 0.00 [16:40:43]line НСП 1% : 8.85 [16:40:43]line НДС 12% : 106.22 [16:40:43]line Наличными: 1000.00 [16:40:43]line Безнал.: 0.00 [16:40:43]line Место: АЗС № 64 "Партнер Нефть" [16:40:43]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:40:43]line СНО: Общий режим [16:40:43]line Чек 124 25.11.2024 16:40 [16:40:43]line Смена: 556 ФФД: 1.0 [16:40:43]line ЗНМ: 0300000033 [16:40:43]line РНМ: 0000000000092681 [16:40:43]line Версия ККМ: 001 [16:40:43]line ФМ: 0000000000874881 [16:40:43]line ФД: 123083 [16:40:43]line ФПД: 85457757601070 [16:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T164048&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123083&fm=85457757601070&tin=02508201610067®Number=0000000000092681&sum=100000 [16:40:44]OFD Sender: Processing packet 123083 [packets to send 7, broken 6] [16:40:44]ProducePacketName [16:40:44]name=ofd_packets/00123083 [16:40:44]OFD Sender: To server: pG, [16:40:44]CommunicateWithHost lk.salyk.kg:30040 [16:40:44]ConnectInit lk.salyk.kg [16:40:44]written 0, free lines is 4095 [16:40:44]Connected sock=10 [16:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 84 96 07 01 F7 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 90 A8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E0 01 00 35 04 06 00 4D B9 2F 48 FD 2E 0B 52 BD B2 56 D6 B3 7F [16:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D8 8E 47 00 DB DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E0 01 00 F4 03 04 00 55 54 44 67 B6 04 01 00 00 88 CC 9A FA 8B 77 53 8F [16:40:44]CommunicateWithHost err = 0 [16:40:44]CheckOFDResponse [16:40:44]1017 (14) - 77093643461234 [16:40:44]1041 (16) - 0000000000874881 [16:40:44]1040 (4) - 123083 [16:40:44]1012 (4) - 25.11.2024 10:41 [16:40:44]1206 (1) - 0 [16:40:44]OFD Sender: Remove packet 123083 [16:40:44]ProducePacketName [16:40:44]name=ofd_packets/00123083 [16:40:44]NVStorageDeleteData [16:40:44]Write to MH i2c: 01 00 00 1E 34 52 [16:40:44]Write i2c OK [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: 01 [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: 01 07 00 [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: 01 07 00 1E 34 00 00 00 00 00 58 0C BD [16:40:44]RasterBufferAndPrint [16:40:44]line [16:40:44]line [16:40:44]line [16:40:44]line [16:40:44]line [16:40:44]written 0, free lines is 3163 [16:40:44]MH_Cut [16:40:44]Write to MH i2c: D1 01 00 25 34 01 2B [16:40:44]Write i2c OK [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: D1 [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: D1 01 00 [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: D1 01 00 25 34 00 2A [16:40:44]Write to MH i2c: 01 00 00 26 34 5A [16:40:44]Write i2c OK [16:40:44]MH_I2C_Read... [16:40:45]OFD Sender: No OFD packet to send [16:40:46]*** Cut start [16:40:46]*** Partial cut [16:40:46]*** CUTSNS_PIN = 1 [16:40:46]*** CUTSNS_PIN = 0 [16:40:46]*** Brake cut motor [16:40:46]Read from MH i2c: 01 [16:40:46]MH_I2C_Read... [16:40:46]*** Stop cut motor [16:40:46]*** Cut end [16:40:46]Read from MH i2c: 01 07 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: 01 07 00 26 34 00 00 00 00 00 FF 0F 6F [16:40:46]process_action close_receipt done [16:40:46]requested_data is exist [16:40:46]produce_requested_data [16:40:46]requested_item fm.sn is exist - process it [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 11 00 00 [16:40:46]Write to MH i2c: E2 08 00 27 34 80 11 00 00 00 00 00 00 D5 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 17 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 17 00 27 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2C [16:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:40:46]wFMCommunicate OK [16:40:46]requested_item fd.num is exist - process it [16:40:46]SAM_PROTO_GetFieldsCounters [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 13 00 00 [16:40:46]Write to MH i2c: E2 08 00 28 34 80 13 00 00 00 00 00 00 D8 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 62 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 62 00 28 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CB E0 01 00 0E 04 04 00 2C 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 4C [16:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CB E0 01 00 0E 04 04 00 2C 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 [16:40:47]wFMCommunicate OK [16:40:47]SAM_PROTO_GetFieldsCounters done [16:40:47]requested_item shift.num is exist - process it [16:40:47]requested_item shift.opened is exist - process it [16:40:47]req_shift_opened [16:40:47]FM_GetShiftState [16:40:47]SAM_PROTO_GetShiftState [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 13 01 00 [16:40:47]Write to MH i2c: E2 08 00 29 34 80 13 01 00 00 00 00 00 DA [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 0E 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 0E 00 29 34 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 59 [16:40:47]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:40:47]wFMCommunicate OK [16:40:47]SAM_PROTO_GetShiftState done [16:40:47]FM_GetShiftState done [16:40:47]req_shift_opened done [16:40:47]requested_item shift.open_date is exist - process it [16:40:47]req_shift_open_date [16:40:47]req_shift_open_date done [16:40:47]produce_requested_data done [16:40:47]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123083,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:40:47]process_action_free close_receipt [16:40:47]json_value_free [16:40:47]json_value_free done [16:40:47]process_json_proto returns [16:40:47]Send response to host [16:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123083,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:40:47]free response buf [16:40:47]execute_script done [16:40:47]execute_script returns [16:40:47]free content buf [16:40:47]Sock 7.Close socket [16:40:47]Sock 7.Thread stoped [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:48]accept exits with 9 [16:44:48]New connection [16:44:48]New thread 3066723684 created [16:44:48]Thread 3066580324 joined [16:44:48]Waiting for new connection... [16:44:48] Sock 9.Parse request [16:44:48]Sock 9.Check first char [16:44:48]Sock 9.First char is OK [16:44:48]request: POST /json_proto HTTP/1.0 [16:44:48]Method: POST [16:44:48]URL: /json_proto [16:44:48]Method is POST - this is cgi request [16:44:48]url: /json_proto [16:44:48]query_string will be loaded in cgi processing [16:44:48]execute_cgi json_proto POST (null) [16:44:48]execute_cgi path=json_proto method=POST [16:44:48]POST find Content-Length [16:44:48]Host: 172.17.37.4:8080 [16:44:48]Content-Length: 803 [16:44:48]Content-Type: application/json [16:44:48] [16:44:48]POST finish read [16:44:48]Found Content-Length = 803 [16:44:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:48]execute_script... [16:44: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)717879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:48]POST & json_proto [16:44:48]process_json_proto [16:44:48]json parsed OK: [16:44:48]protocol is kg_v1.0 [16:44:48]action value=close_receipt [16:44:48]process_action close_receipt [16:44:48]cmd_close_receipt [16:44:48]MH_GetDate [16:44:48]Write to MH i2c: F0 00 00 2A 34 4D [16:44:48]Write i2c OK [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: F0 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: F0 09 00 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: F0 09 00 2A 34 00 86 A9 44 67 B8 5A 43 67 EC [16:44:48]GetLastDocTimeStamp 1732552848 [16:44:48]current date 1732553094 [16:44:48]FM_GetShiftState [16:44:48]SAM_PROTO_GetShiftState [16:44:48]wFMCommunicate request_size=4 [16:44:48]MH_SAM_APDU [16:44:48]CAPDU: 80 13 01 00 [16:44:48]Write to MH i2c: E2 08 00 2B 34 80 13 01 00 00 00 00 00 DC [16:44:48]Write i2c OK [16:44:48]MH_I2C_Read... [16:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:48]Read from MH i2c: E2 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: E2 0E 00 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: E2 0E 00 2B 34 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 5B [16:44:48]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:44:48]wFMCommunicate OK [16:44:48]SAM_PROTO_GetShiftState done [16:44:48]FM_GetShiftState done [16:44:48]opened in 1732493066 [16:44:48]opened+sec_in_day 1732579466 [16:44:48]quantity*price = 100021 [16:44:48]sum+1 = 100023 [16:44:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 125 25.11.2024 16:44 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123084 ФПД: 47560013737118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T164454&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123084&fm=47560013737118&tin=02508201610067®Number=0000000000092681&sum=100022 [16:44:49]StoreToDocumentArchive [16:44:49]shift 556 fd 123084 [16:44:49]save to /storage/0556/doc_00123084 [16:44:49]save last doc name /storage/0556/doc_00123084 to /storage/kkm_last_doc_name [16:44:49]save OK [16:44:49]Clear old archive folders... [16:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:49]tlvbuf is 01F4DEA0 [16:44:49]SAM_PROTO_ClearQueue [16:44:49]wFMCommunicate request_size=4 [16:44:49]MH_SAM_APDU [16:44:49]CAPDU: 80 09 00 00 [16:44:49]Write to MH i2c: E2 08 00 38 34 80 09 00 00 00 00 00 00 DE [16:44:49]Write i2c OK [16:44:49]MH_I2C_Read... [16:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:50]Read from MH i2c: E2 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 38 34 00 90 00 E0 [16:44:50]RAPDU: 90 00 [16:44:50]wFMCommunicate OK [16:44:50]SAM_PROTO_ClearQueue done [16:44:50]KKMCreateOFDPacket [16:44:50]OFDProtocolAddRootSTLVToBuf [16:44:50]FM_MakeSignedData [16:44:50]FM_MakeSignedData [16:44:50]SAM_PROTO_SignData [16:44:50]wFMCommunicate request_size=4 [16:44:50]MH_SAM_APDU [16:44:50]CAPDU: 80 0D 01 02 [16:44:50]Write to MH i2c: E2 08 00 39 34 80 0D 01 02 00 00 00 00 E6 [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:50]Read from MH i2c: E2 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 39 34 00 90 00 E1 [16:44:50]RAPDU: 90 00 [16:44:50]wFMCommunicate OK [16:44:50]wFMCommunicate request_size=255 [16:44:50]MH_SAM_APDU [16:44:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 86 A9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CC E0 01 00 35 04 06 00 2B [16:44:50]Write to MH i2c: E2 02 01 3A 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 86 A9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CC E0 01 00 35 04 06 00 2B 00 00 C6 [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]OFD Sender: No OFD packet to send [16:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:50]Read from MH i2c: E2 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 3A 34 00 90 00 E2 [16:44:50]RAPDU: 90 00 [16:44:50]wFMCommunicate OK [16:44:50]wFMCommunicate request_size=10 [16:44:50]MH_SAM_APDU [16:44:50]CAPDU: 80 0D 02 02 05 41 6D B9 6C 9E [16:44:50]Write to MH i2c: E2 0D 00 3B 34 80 0D 02 02 05 00 41 6D B9 6C 9E 00 00 64 [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:50]Read from MH i2c: E2 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 3B 34 00 90 00 E3 [16:44:50]RAPDU: 90 00 [16:44:50]wFMCommunicate OK [16:44:50]wFMCommunicate request_size=4 [16:44:50]MH_SAM_APDU [16:44:50]CAPDU: 80 0D 03 02 [16:44:50]Write to MH i2c: E2 08 00 3C 34 80 0D 03 02 00 00 00 00 EB [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:50]Read from MH i2c: E2 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 0B 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 0B 00 3C 34 00 43 E6 3F F6 4E 84 AD D1 90 00 9A [16:44:50]RAPDU: 43 E6 3F F6 4E 84 AD D1 90 00 [16:44:50]wFMCommunicate OK [16:44:50]SAM_PROTO_SignData done [16:44:50]FM_MakeSignedData done [16:44:50]CreateOFDProtocolMessage [16:44:50]wFMCommunicate request_size=4 [16:44:50]MH_SAM_APDU [16:44:50]CAPDU: 80 11 00 00 [16:44:50]Write to MH i2c: E2 08 00 3D 34 80 11 00 00 00 00 00 00 EB [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:50]Read from MH i2c: E2 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 17 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 17 00 3D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 42 [16:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:44:50]wFMCommunicate OK [16:44:50]CreateOFDProtocolMessage done [16:44:50]OFDSenderStorePacket 123084 [16:44:50]StoreOFDPacket docnum=123084 [16:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D0 C8 07 01 56 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 86 A9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CC E0 01 00 35 04 06 00 2B 41 6D B9 6C 9E 43 E6 3F F6 4E 84 AD D1 [16:44:50]CheckFolder [16:44:50]dirname=/storage/ofd_packets [16:44:50]CheckFolder done [16:44:50]ProducePacketName [16:44:50]name=ofd_packets/00123084 [16:44:50]NVStorageSaveData ofd_packets/00123084 [16:44:50]File name is /storage/ofd_packets/00123084 [16:44:50]Write 301 bytes [16:44:50]NVStorageSaveData done [16:44:50]OFDSenderStorePacket done [16:44:50]KKMCreateOFDPacket done [16:44:50]NVStorageSaveData kkm_last_timestamp [16:44:50]File name is /storage/kkm_last_timestamp [16:44:50]Write 4 bytes [16:44:50]NVStorageSaveData done [16:44:50]ExternCall_PrintAddStr [16:44:50]wPrintStart [16:44:50]Write to MH i2c: 01 00 00 3E 34 72 [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: 01 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: 01 07 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: 01 07 00 3E 34 00 00 00 00 00 FF 0F 87 [16:44:50]RasterBufferAndPrint [16:44:50]line Счет N : (1)717879 [16:44:50]line ИНН: 02508201610067 [16:44:50]line Контрольно-Кассовый Чек [16:44:50]line ПРОДАЖА [16:44:50]line ТРК (МРК, ГНК) : 32 [16:44:50]line Товар: 2710124130 [16:44:50]line Аи-92-К-4 [16:44:50]line 14.840 * 67.40 [16:44:50]line = 1000.22 [16:44:50]line НДС 12% НСП 1% [16:44:50]line > о реализуемом товаре [16:44:50]line ИТОГО: 1000.22 [16:44:50]line НСП 1% : 8.85 [16:44:50]line НДС 12% : 106.22 [16:44:50]line Наличными: 0.00 [16:44:50]line Безнал.: 1000.22 [16:44:50]line Место: АЗС № 64 "Партнер Нефть" [16:44:50]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:44:50]line СНО: Общий режим [16:44:50]line Чек 125 25.11.2024 16:44 [16:44:50]line Смена: 556 ФФД: 1.0 [16:44:50]line ЗНМ: 0300000033 [16:44:50]line РНМ: 0000000000092681 [16:44:50]line Версия ККМ: 001 [16:44:50]line Платежная система: O! деньги [16:44:50]line ФМ: 0000000000874881 [16:44:50]line ФД: 123084 [16:44:50]line ФПД: 47560013737118 [16:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T164454&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123084&fm=47560013737118&tin=02508201610067®Number=0000000000092681&sum=100022 [16:44:50]OFD Sender: Processing packet 123084 [packets to send 7, broken 6] [16:44:50]ProducePacketName [16:44:50]name=ofd_packets/00123084 [16:44:50]OFD Sender: To server: pG, [16:44:50]CommunicateWithHost lk.salyk.kg:30040 [16:44:50]ConnectInit lk.salyk.kg [16:44:50]written 0, free lines is 4095 [16:44:50]Connected sock=10 [16:44:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D0 C8 07 01 56 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 86 A9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CC E0 01 00 35 04 06 00 2B 41 6D B9 6C 9E 43 E6 3F F6 4E 84 AD D1 [16:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 89 49 47 00 16 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 34 38 38 31 10 04 04 00 CC E0 01 00 F4 03 04 00 4C 55 44 67 B6 04 01 00 00 CF BE E1 69 53 80 10 CD [16:44:51]CommunicateWithHost err = 0 [16:44:51]CheckOFDResponse [16:44:51]1017 (14) - 77093643461234 [16:44:51]1041 (16) - 0000000000874881 [16:44:51]1040 (4) - 123084 [16:44:51]1012 (4) - 25.11.2024 10:45 [16:44:51]1206 (1) - 0 [16:44:51]OFD Sender: Remove packet 123084 [16:44:51]ProducePacketName [16:44:51]name=ofd_packets/00123084 [16:44:51]NVStorageDeleteData [16:44:51]Write to MH i2c: 01 00 00 68 34 9C [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: 01 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: 01 07 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: 01 07 00 68 34 00 00 00 00 00 5C 0C 0B [16:44:51]RasterBufferAndPrint [16:44:51]line [16:44:51]line [16:44:51]line [16:44:51]line [16:44:51]line [16:44:51]written 0, free lines is 3169 [16:44:51]MH_Cut [16:44:51]Write to MH i2c: D1 01 00 6F 34 01 75 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: D1 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: D1 01 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: D1 01 00 6F 34 00 74 [16:44:51]Write to MH i2c: 01 00 00 70 34 A4 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]OFD Sender: No OFD packet to send [16:44:52]*** Cut start [16:44:52]*** Partial cut [16:44:52]*** CUTSNS_PIN = 1 [16:44:52]*** CUTSNS_PIN = 0 [16:44:52]*** Brake cut motor [16:44:53]Read from MH i2c: 01 [16:44:53]MH_I2C_Read... [16:44:53]*** Stop cut motor [16:44:53]*** Cut end [16:44:53]Read from MH i2c: 01 07 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: 01 07 00 70 34 00 00 00 00 00 FF 0F B9 [16:44:53]process_action close_receipt done [16:44:53]requested_data is exist [16:44:53]produce_requested_data [16:44:53]requested_item fm.sn is exist - process it [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 11 00 00 [16:44:53]Write to MH i2c: E2 08 00 71 34 80 11 00 00 00 00 00 00 1F [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 17 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 17 00 71 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 76 [16:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:44:53]wFMCommunicate OK [16:44:53]requested_item fd.num is exist - process it [16:44:53]SAM_PROTO_GetFieldsCounters [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 13 00 00 [16:44:53]Write to MH i2c: E2 08 00 72 34 80 13 00 00 00 00 00 00 22 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 62 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 62 00 72 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CC E0 01 00 0E 04 04 00 2C 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 9A [16:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CC E0 01 00 0E 04 04 00 2C 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 [16:44:53]wFMCommunicate OK [16:44:53]SAM_PROTO_GetFieldsCounters done [16:44:53]requested_item shift.num is exist - process it [16:44:53]requested_item shift.opened is exist - process it [16:44:53]req_shift_opened [16:44:53]FM_GetShiftState [16:44:53]SAM_PROTO_GetShiftState [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 13 01 00 [16:44:53]Write to MH i2c: E2 08 00 73 34 80 13 01 00 00 00 00 00 24 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 0E 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 0E 00 73 34 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A3 [16:44:53]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:44:53]wFMCommunicate OK [16:44:53]SAM_PROTO_GetShiftState done [16:44:53]FM_GetShiftState done [16:44:53]req_shift_opened done [16:44:53]requested_item shift.open_date is exist - process it [16:44:53]req_shift_open_date [16:44:53]req_shift_open_date done [16:44:53]produce_requested_data done [16:44:53]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123084,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:44:53]process_action_free close_receipt [16:44:53]json_value_free [16:44:53]json_value_free done [16:44:53]process_json_proto returns [16:44:53]Send response to host [16:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123084,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:44:53]free response buf [16:44:53]execute_script done [16:44:53]execute_script returns [16:44:53]free content buf [16:44:53]Sock 9.Close socket [16:44:53]Sock 9.Thread stoped [16:44:56]OFD Sender: No OFD packet to send [16:44:57]accept exits with 7 [16:44:57]New connection [16:44:57]New thread 3066580324 created [16:44:57]Thread 3066723684 joined [16:44:57]Waiting for new connection... [16:44:57] Sock 7.Parse request [16:44:57]Sock 7.Check first char [16:44:57]Sock 7.First char is OK [16:44:57]request: POST /json_proto HTTP/1.0 [16:44:57]Method: POST [16:44:57]URL: /json_proto [16:44:57]Method is POST - this is cgi request [16:44:57]url: /json_proto [16:44:57]query_string will be loaded in cgi processing [16:44:57]execute_cgi json_proto POST (null) [16:44:57]execute_cgi path=json_proto method=POST [16:44:57]POST find Content-Length [16:44:57]Host: 172.17.37.4:8080 [16:44:57]Content-Length: 677 [16:44:57]Content-Type: application/json [16:44:57] [16:44:57]POST finish read [16:44:57]Found Content-Length = 677 [16:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.350, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:57]execute_script... [16:44:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.350, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:57]POST & json_proto [16:44:57]process_json_proto [16:44:57]json parsed OK: [16:44:57]protocol is kg_v1.0 [16:44:57]action value=close_receipt [16:44:57]process_action close_receipt [16:44:57]cmd_close_receipt [16:44:57]MH_GetDate [16:44:57]Write to MH i2c: F0 00 00 74 34 97 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: F0 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: F0 09 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: F0 09 00 74 34 00 8F A9 44 67 B8 5A 43 67 3F [16:44:57]GetLastDocTimeStamp 1732553094 [16:44:57]current date 1732553103 [16:44:57]FM_GetShiftState [16:44:57]SAM_PROTO_GetShiftState [16:44:57]wFMCommunicate request_size=4 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 13 01 00 [16:44:57]Write to MH i2c: E2 08 00 75 34 80 13 01 00 00 00 00 00 26 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 0E 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 0E 00 75 34 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A5 [16:44:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:44:57]wFMCommunicate OK [16:44:57]SAM_PROTO_GetShiftState done [16:44:57]FM_GetShiftState done [16:44:57]opened in 1732493066 [16:44:57]opened+sec_in_day 1732579466 [16:44:57]quantity*price = 36059 [16:44:57]sum+1 = 36060 [16:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 126 25.11.2024 16:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123085 ФПД: 250852699337419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T164503&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123085&fm=250852699337419&tin=02508201610067®Number=0000000000092681&sum=36000 [16:44:58]StoreToDocumentArchive [16:44:58]shift 556 fd 123085 [16:44:58]save to /storage/0556/doc_00123085 [16:44:58]save last doc name /storage/0556/doc_00123085 to /storage/kkm_last_doc_name [16:44:58]save OK [16:44:58]Clear old archive folders... [16:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:58]tlvbuf is 02092FB0 [16:44:58]SAM_PROTO_ClearQueue [16:44:58]wFMCommunicate request_size=4 [16:44:58]MH_SAM_APDU [16:44:58]CAPDU: 80 09 00 00 [16:44:58]Write to MH i2c: E2 08 00 82 34 80 09 00 00 00 00 00 00 28 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 82 34 00 90 00 2A [16:44:58]RAPDU: 90 00 [16:44:58]wFMCommunicate OK [16:44:58]SAM_PROTO_ClearQueue done [16:44:58]KKMCreateOFDPacket [16:44:58]OFDProtocolAddRootSTLVToBuf [16:44:58]FM_MakeSignedData [16:44:58]FM_MakeSignedData [16:44:58]SAM_PROTO_SignData [16:44:58]wFMCommunicate request_size=4 [16:44:58]MH_SAM_APDU [16:44:58]CAPDU: 80 0D 01 02 [16:44:58]Write to MH i2c: E2 08 00 83 34 80 0D 01 02 00 00 00 00 30 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 83 34 00 90 00 2B [16:44:58]RAPDU: 90 00 [16:44:58]wFMCommunicate OK [16:44:58]wFMCommunicate request_size=255 [16:44:58]MH_SAM_APDU [16: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 34 FF 03 08 00 03 E6 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8F A9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CD E0 01 00 35 04 06 00 E4 [16:44:58]Write to MH i2c: E2 02 01 84 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 34 FF 03 08 00 03 E6 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8F A9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CD E0 01 00 35 04 06 00 E4 00 00 C9 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 84 34 00 90 00 2C [16:44:58]RAPDU: 90 00 [16:44:58]wFMCommunicate OK [16:44:58]wFMCommunicate request_size=10 [16:44:58]MH_SAM_APDU [16:44:58]CAPDU: 80 0D 02 02 05 26 32 08 F2 CB [16:44:58]Write to MH i2c: E2 0D 00 85 34 80 0D 02 02 05 00 26 32 08 F2 CB 00 00 5A [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 85 34 00 90 00 2D [16:44:58]RAPDU: 90 00 [16:44:58]wFMCommunicate OK [16:44:58]wFMCommunicate request_size=4 [16:44:58]MH_SAM_APDU [16:44:58]CAPDU: 80 0D 03 02 [16:44:58]Write to MH i2c: E2 08 00 86 34 80 0D 03 02 00 00 00 00 35 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 0B 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 0B 00 86 34 00 9A 1C EC E5 57 FC 5A FF 90 00 69 [16:44:58]RAPDU: 9A 1C EC E5 57 FC 5A FF 90 00 [16:44:58]wFMCommunicate OK [16:44:58]SAM_PROTO_SignData done [16:44:58]FM_MakeSignedData done [16:44:58]CreateOFDProtocolMessage [16:44:58]wFMCommunicate request_size=4 [16:44:58]MH_SAM_APDU [16:44:58]CAPDU: 80 11 00 00 [16:44:58]Write to MH i2c: E2 08 00 87 34 80 11 00 00 00 00 00 00 35 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 17 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 17 00 87 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8C [16:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:44:58]wFMCommunicate OK [16:44:58]CreateOFDProtocolMessage done [16:44:58]OFDSenderStorePacket 123085 [16:44:58]StoreOFDPacket docnum=123085 [16:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 02 B9 07 01 E6 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8F A9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CD E0 01 00 35 04 06 00 E4 26 32 08 F2 CB 9A 1C EC E5 57 FC 5A FF [16:44:58]CheckFolder [16:44:58]dirname=/storage/ofd_packets [16:44:58]CheckFolder done [16:44:58]ProducePacketName [16:44:58]name=ofd_packets/00123085 [16:44:58]NVStorageSaveData ofd_packets/00123085 [16:44:58]File name is /storage/ofd_packets/00123085 [16:44:58]Write 301 bytes [16:44:58]NVStorageSaveData done [16:44:58]OFDSenderStorePacket done [16:44:58]KKMCreateOFDPacket done [16:44:58]NVStorageSaveData kkm_last_timestamp [16:44:58]File name is /storage/kkm_last_timestamp [16:44:58]Write 4 bytes [16:44:58]NVStorageSaveData done [16:44:58]ExternCall_PrintAddStr [16:44:58]wPrintStart [16:44:58]Write to MH i2c: 01 00 00 88 34 BC [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 88 34 00 00 00 00 00 FF 0F D1 [16:44:58]RasterBufferAndPrint [16:44:58]line Счет N : (1)717880 [16:44:58]line ИНН: 02508201610067 [16:44:58]line Контрольно-Кассовый Чек [16:44:58]line ПРОДАЖА [16:44:58]line ТРК (МРК, ГНК) : 22 [16:44:58]line Товар: 2710124130 [16:44:58]line Аи-92-К-4 [16:44:58]line 5.350 * 67.40 [16:44:58]line = 360.59 [16:44:58]line НДС 12% НСП 1% [16:44:58]line > о реализуемом товаре [16:44:58]line ОКРУГЛЕНИЕ: -0.59 [16:44:58]line ИТОГО: 360.00 [16:44:58]line Внесено: 360.00 [16:44:58]line СДАЧА: 0.00 [16:44:58]line НСП 1% : 3.19 [16:44:58]line НДС 12% : 38.29 [16:44:58]line Наличными: 360.00 [16:44:58]line Безнал.: 0.00 [16:44:58]line Место: АЗС № 64 "Партнер Нефть" [16:44:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:44:58]line СНО: Общий режим [16:44:58]line Чек 126 25.11.2024 16:45 [16:44:58]line Смена: 556 ФФД: 1.0 [16:44:58]line ЗНМ: 0300000033 [16:44:58]line РНМ: 0000000000092681 [16:44:58]line Версия ККМ: 001 [16:44:58]line ФМ: 0000000000874881 [16:44:58]line ФД: 123085 [16:44:58]line ФПД: 250852699337419 [16:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T164503&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123085&fm=250852699337419&tin=02508201610067®Number=0000000000092681&sum=36000 [16:44:58]written 0, free lines is 4095 [16:44:58]OFD Sender: Processing packet 123085 [packets to send 7, broken 6] [16:44:58]ProducePacketName [16:44:58]name=ofd_packets/00123085 [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:59]Connected sock=9 [16:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 02 B9 07 01 E6 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8F A9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CD E0 01 00 35 04 06 00 E4 26 32 08 F2 CB 9A 1C EC E5 57 FC 5A FF [16:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 39 36 47 00 34 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CD E0 01 00 F4 03 04 00 54 55 44 67 B6 04 01 00 00 63 27 7E F5 00 F2 EA 50 [16:44:59]CommunicateWithHost err = 0 [16:44:59]CheckOFDResponse [16:44:59]1017 (14) - 77093643461234 [16:44:59]1041 (16) - 0000000000874881 [16:44:59]1040 (4) - 123085 [16:44:59]1012 (4) - 25.11.2024 10:45 [16:44:59]1206 (1) - 0 [16:44:59]OFD Sender: Remove packet 123085 [16:44:59]ProducePacketName [16:44:59]name=ofd_packets/00123085 [16:44:59]NVStorageDeleteData [16:44:59]Write to MH i2c: 01 00 00 B3 34 E7 [16:44:59]Write i2c OK [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: 01 [16:44:59]MH_I2C_Read... [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 B3 34 00 00 00 00 00 5D 0C 57 [16:44:59]RasterBufferAndPrint [16:44:59]line [16:44:59]line [16:44:59]line [16:44:59]line [16:44:59]line [16:44:59]written 0, free lines is 3170 [16:44:59]MH_Cut [16:44:59]Write to MH i2c: D1 01 00 BA 34 01 C0 [16:44:59]Write i2c OK [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: D1 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: D1 01 00 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: D1 01 00 BA 34 00 BF [16:44:59]Write to MH i2c: 01 00 00 BB 34 EF [16:44:59]Write i2c OK [16:44:59]MH_I2C_Read... [16:44:59]OFD Sender: No OFD packet to send [16:45:00]*** Cut start [16:45:00]*** Partial cut [16:45:00]*** CUTSNS_PIN = 1 [16:45:00]*** CUTSNS_PIN = 0 [16:45:01]*** Brake cut motor [16:45:01]Read from MH i2c: 01 [16:45:01]MH_I2C_Read... [16:45:01]*** Stop cut motor [16:45:01]*** Cut end [16:45:01]Read from MH i2c: 01 07 00 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: 01 07 00 BB 34 00 00 00 00 00 FF 0F 04 [16:45:01]process_action close_receipt done [16:45:01]requested_data is exist [16:45:01]produce_requested_data [16:45:01]requested_item fm.sn is exist - process it [16:45:01]wFMCommunicate request_size=4 [16:45:01]MH_SAM_APDU [16:45:01]CAPDU: 80 11 00 00 [16:45:01]Write to MH i2c: E2 08 00 BC 34 80 11 00 00 00 00 00 00 6A [16:45:01]Write i2c OK [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 [16:45:01]MH_I2C_Read... [16:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:01]Read from MH i2c: E2 17 00 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 17 00 BC 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C1 [16:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:45:01]wFMCommunicate OK [16:45:01]requested_item fd.num is exist - process it [16:45:01]SAM_PROTO_GetFieldsCounters [16:45:01]wFMCommunicate request_size=4 [16:45:01]MH_SAM_APDU [16:45:01]CAPDU: 80 13 00 00 [16:45:01]Write to MH i2c: E2 08 00 BD 34 80 13 00 00 00 00 00 00 6D [16:45:01]Write i2c OK [16:45:01]MH_I2C_Read... [16:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:01]Read from MH i2c: E2 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 62 00 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 62 00 BD 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CD E0 01 00 0E 04 04 00 2C 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 E9 [16: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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CD E0 01 00 0E 04 04 00 2C 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 [16:45:01]wFMCommunicate OK [16:45:01]SAM_PROTO_GetFieldsCounters done [16:45:01]requested_item shift.num is exist - process it [16:45:01]requested_item shift.opened is exist - process it [16:45:01]req_shift_opened [16:45:01]FM_GetShiftState [16:45:01]SAM_PROTO_GetShiftState [16:45:01]wFMCommunicate request_size=4 [16:45:01]MH_SAM_APDU [16:45:01]CAPDU: 80 13 01 00 [16:45:01]Write to MH i2c: E2 08 00 BE 34 80 13 01 00 00 00 00 00 6F [16:45:01]Write i2c OK [16:45:01]MH_I2C_Read... [16:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:01]Read from MH i2c: E2 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 0E 00 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 0E 00 BE 34 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 EE [16:45:01]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:45:01]wFMCommunicate OK [16:45:01]SAM_PROTO_GetShiftState done [16:45:01]FM_GetShiftState done [16:45:01]req_shift_opened done [16:45:01]requested_item shift.open_date is exist - process it [16:45:01]req_shift_open_date [16:45:01]req_shift_open_date done [16:45:01]produce_requested_data done [16:45:01]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123085,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:45:01]process_action_free close_receipt [16:45:01]json_value_free [16:45:01]json_value_free done [16:45:01]process_json_proto returns [16:45:01]Send response to host [16:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123085,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:45:01]free response buf [16:45:01]execute_script done [16:45:01]execute_script returns [16:45:01]free content buf [16:45:01]Sock 7.Close socket [16:45:01]Sock 7.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:52]accept exits with 10 [16:48:52]New connection [16:48:52]New thread 3066723684 created [16:48:52]Thread 3066580324 joined [16:48:52]Waiting for new connection... [16:48:52] Sock 10.Parse request [16:48:52]Sock 10.Check first char [16:48:52]Sock 10.First char is OK [16:48:52]request: POST /json_proto HTTP/1.0 [16:48:52]Method: POST [16:48:52]URL: /json_proto [16:48:52]Method is POST - this is cgi request [16:48:52]url: /json_proto [16:48:52]query_string will be loaded in cgi processing [16:48:52]execute_cgi json_proto POST (null) [16:48:52]execute_cgi path=json_proto method=POST [16:48:52]POST find Content-Length [16:48:52]Host: 172.17.37.4:8080 [16:48:52]Content-Length: 677 [16:48:52]Content-Type: application/json [16:48:52] [16:48:52]POST finish read [16:48:52]Found Content-Length = 677 [16:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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:48:52]execute_script... [16:48:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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:48:52]POST & json_proto [16:48:52]process_json_proto [16:48:52]json parsed OK: [16:48:52]protocol is kg_v1.0 [16:48:52]action value=close_receipt [16:48:52]process_action close_receipt [16:48:52]cmd_close_receipt [16:48:52]MH_GetDate [16:48:52]Write to MH i2c: F0 00 00 BF 34 E2 [16:48:52]Write i2c OK [16:48:52]MH_I2C_Read... [16:48:52]Read from MH i2c: F0 [16:48:52]MH_I2C_Read... [16:48:52]Read from MH i2c: F0 09 00 [16:48:52]MH_I2C_Read... [16:48:52]Read from MH i2c: F0 09 00 BF 34 00 7A AA 44 67 B8 5A 43 67 76 [16:48:52]GetLastDocTimeStamp 1732553103 [16:48:52]current date 1732553338 [16:48:52]FM_GetShiftState [16:48:52]SAM_PROTO_GetShiftState [16:48:52]wFMCommunicate request_size=4 [16:48:52]MH_SAM_APDU [16:48:52]CAPDU: 80 13 01 00 [16:48:52]Write to MH i2c: E2 08 00 C0 34 80 13 01 00 00 00 00 00 71 [16:48:52]Write i2c OK [16:48:52]MH_I2C_Read... [16:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:52]Read from MH i2c: E2 [16:48:52]MH_I2C_Read... [16:48:52]Read from MH i2c: E2 0E 00 [16:48:52]MH_I2C_Read... [16:48:52]Read from MH i2c: E2 0E 00 C0 34 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F0 [16:48:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:48:52]wFMCommunicate OK [16:48:52]SAM_PROTO_GetShiftState done [16:48:52]FM_GetShiftState done [16:48:52]opened in 1732493066 [16:48:52]opened+sec_in_day 1732579466 [16:48:52]quantity*price = 40035 [16:48:52]sum+1 = 40037 [16:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 127 25.11.2024 16:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123086 ФПД: 238078729082632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T164858&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123086&fm=238078729082632&tin=02508201610067®Number=0000000000092681&sum=40000 [16:48:53]StoreToDocumentArchive [16:48:53]shift 556 fd 123086 [16:48:53]save to /storage/0556/doc_00123086 [16:48:53]save last doc name /storage/0556/doc_00123086 to /storage/kkm_last_doc_name [16:48:53]save OK [16:48:53]Clear old archive folders... [16:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:53]tlvbuf is 01F4E110 [16:48:53]SAM_PROTO_ClearQueue [16:48:53]wFMCommunicate request_size=4 [16:48:53]MH_SAM_APDU [16:48:53]CAPDU: 80 09 00 00 [16:48:53]Write to MH i2c: E2 08 00 CD 34 80 09 00 00 00 00 00 00 73 [16:48:53]Write i2c OK [16:48:53]MH_I2C_Read... [16:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:53]Read from MH i2c: E2 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 03 00 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 03 00 CD 34 00 90 00 75 [16:48:53]RAPDU: 90 00 [16:48:53]wFMCommunicate OK [16:48:53]SAM_PROTO_ClearQueue done [16:48:53]KKMCreateOFDPacket [16:48:53]OFDProtocolAddRootSTLVToBuf [16:48:53]FM_MakeSignedData [16:48:53]FM_MakeSignedData [16:48:53]SAM_PROTO_SignData [16:48:53]wFMCommunicate request_size=4 [16:48:53]MH_SAM_APDU [16:48:53]CAPDU: 80 0D 01 02 [16:48:53]Write to MH i2c: E2 08 00 CE 34 80 0D 01 02 00 00 00 00 7B [16:48:53]Write i2c OK [16:48:53]MH_I2C_Read... [16:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:53]Read from MH i2c: E2 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 03 00 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 03 00 CE 34 00 90 00 76 [16:48:53]RAPDU: 90 00 [16:48:53]wFMCommunicate OK [16:48:53]wFMCommunicate request_size=255 [16:48:53]MH_SAM_APDU [16:48:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7A AA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E0 01 00 35 04 06 00 D8 [16:48:53]Write to MH i2c: E2 02 01 CF 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7A AA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E0 01 00 35 04 06 00 D8 00 00 0C [16:48:53]Write i2c OK [16:48:53]MH_I2C_Read... [16:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:53]Read from MH i2c: E2 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 03 00 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 03 00 CF 34 00 90 00 77 [16:48:53]RAPDU: 90 00 [16:48:53]wFMCommunicate OK [16:48:53]wFMCommunicate request_size=10 [16:48:53]MH_SAM_APDU [16:48:53]CAPDU: 80 0D 02 02 05 88 06 13 57 08 [16:48:53]Write to MH i2c: E2 0D 00 D0 34 80 0D 02 02 05 00 88 06 13 57 08 00 00 88 [16:48:53]Write i2c OK [16:48:53]MH_I2C_Read... [16:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:53]Read from MH i2c: E2 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 03 00 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 03 00 D0 34 00 90 00 78 [16:48:53]RAPDU: 90 00 [16:48:53]wFMCommunicate OK [16:48:53]wFMCommunicate request_size=4 [16:48:53]MH_SAM_APDU [16:48:53]CAPDU: 80 0D 03 02 [16:48:53]Write to MH i2c: E2 08 00 D1 34 80 0D 03 02 00 00 00 00 80 [16:48:53]Write i2c OK [16:48:53]MH_I2C_Read... [16:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:53]Read from MH i2c: E2 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 0B 00 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 0B 00 D1 34 00 06 0F 7C 04 90 DE 14 15 90 00 AD [16:48:53]RAPDU: 06 0F 7C 04 90 DE 14 15 90 00 [16:48:53]wFMCommunicate OK [16:48:53]SAM_PROTO_SignData done [16:48:53]FM_MakeSignedData done [16:48:53]CreateOFDProtocolMessage [16:48:53]wFMCommunicate request_size=4 [16:48:53]MH_SAM_APDU [16:48:53]CAPDU: 80 11 00 00 [16:48:53]Write to MH i2c: E2 08 00 D2 34 80 11 00 00 00 00 00 00 80 [16:48:53]Write i2c OK [16:48:53]MH_I2C_Read... [16:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:53]Read from MH i2c: E2 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 17 00 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: E2 17 00 D2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D7 [16:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:48:53]wFMCommunicate OK [16:48:53]CreateOFDProtocolMessage done [16:48:53]OFDSenderStorePacket 123086 [16:48:53]StoreOFDPacket docnum=123086 [16:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 73 3E 07 01 AD 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7A AA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E0 01 00 35 04 06 00 D8 88 06 13 57 08 06 0F 7C 04 90 DE 14 15 [16:48:53]CheckFolder [16:48:53]dirname=/storage/ofd_packets [16:48:53]CheckFolder done [16:48:53]ProducePacketName [16:48:53]name=ofd_packets/00123086 [16:48:53]NVStorageSaveData ofd_packets/00123086 [16:48:53]File name is /storage/ofd_packets/00123086 [16:48:53]Write 301 bytes [16:48:53]NVStorageSaveData done [16:48:53]OFDSenderStorePacket done [16:48:53]KKMCreateOFDPacket done [16:48:53]NVStorageSaveData kkm_last_timestamp [16:48:53]File name is /storage/kkm_last_timestamp [16:48:53]Write 4 bytes [16:48:53]NVStorageSaveData done [16:48:53]ExternCall_PrintAddStr [16:48:53]wPrintStart [16:48:53]Write to MH i2c: 01 00 00 D3 34 07 [16:48:53]Write i2c OK [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: 01 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: 01 07 00 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: 01 07 00 D3 34 00 00 00 00 00 FF 0F 1C [16:48:53]RasterBufferAndPrint [16:48:53]line Счет N : (1)717881 [16:48:53]line ИНН: 02508201610067 [16:48:53]line Контрольно-Кассовый Чек [16:48:53]line ПРОДАЖА [16:48:53]line ТРК (МРК, ГНК) : 22 [16:48:53]line Товар: 2710124130 [16:48:53]line Аи-92-К-4 [16:48:53]line 5.940 * 67.40 [16:48:53]line = 400.36 [16:48:53]line НДС 12% НСП 1% [16:48:53]line > о реализуемом товаре [16:48:53]line ОКРУГЛЕНИЕ: -0.36 [16:48:53]line ИТОГО: 400.00 [16:48:53]line Внесено: 400.00 [16:48:53]line СДАЧА: 0.00 [16:48:53]line НСП 1% : 3.54 [16:48:53]line НДС 12% : 42.52 [16:48:53]line Наличными: 400.00 [16:48:53]line Безнал.: 0.00 [16:48:53]line Место: АЗС № 64 "Партнер Нефть" [16:48:53]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:48:53]line СНО: Общий режим [16:48:53]line Чек 127 25.11.2024 16:48 [16:48:53]line Смена: 556 ФФД: 1.0 [16:48:53]line ЗНМ: 0300000033 [16:48:53]line РНМ: 0000000000092681 [16:48:53]line Версия ККМ: 001 [16:48:53]line ФМ: 0000000000874881 [16:48:53]line ФД: 123086 [16:48:53]line ФПД: 238078729082632 [16:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T164858&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123086&fm=238078729082632&tin=02508201610067®Number=0000000000092681&sum=40000 [16:48:54]OFD Sender: Processing packet 123086 [packets to send 7, broken 6] [16:48:54]ProducePacketName [16:48:54]name=ofd_packets/00123086 [16:48:54]OFD Sender: To server: pG, [16:48:54]CommunicateWithHost lk.salyk.kg:30040 [16:48:54]ConnectInit lk.salyk.kg [16:48:54]written 0, free lines is 4095 [16:48:54]Connected sock=9 [16:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 73 3E 07 01 AD 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7A AA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E0 01 00 35 04 06 00 D8 88 06 13 57 08 06 0F 7C 04 90 DE 14 15 [16:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 33 88 47 00 78 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E0 01 00 F4 03 04 00 3F 56 44 67 B6 04 01 00 00 BD 90 92 98 E1 21 58 D9 [16:48:54]CommunicateWithHost err = 0 [16:48:54]CheckOFDResponse [16:48:54]1017 (14) - 77093643461234 [16:48:54]1041 (16) - 0000000000874881 [16:48:54]1040 (4) - 123086 [16:48:54]1012 (4) - 25.11.2024 10:49 [16:48:54]1206 (1) - 0 [16:48:54]OFD Sender: Remove packet 123086 [16:48:54]ProducePacketName [16:48:54]name=ofd_packets/00123086 [16:48:54]NVStorageDeleteData [16:48:54]Write to MH i2c: 01 00 00 FE 34 32 [16:48:54]Write i2c OK [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: 01 [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: 01 07 00 [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: 01 07 00 FE 34 00 00 00 00 00 54 0C 99 [16:48:54]RasterBufferAndPrint [16:48:54]line [16:48:54]line [16:48:54]line [16:48:54]line [16:48:54]line [16:48:54]written 0, free lines is 3158 [16:48:54]MH_Cut [16:48:54]Write to MH i2c: D1 01 00 05 35 01 0C [16:48:54]Write i2c OK [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: D1 [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: D1 01 00 [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: D1 01 00 05 35 00 0B [16:48:54]Write to MH i2c: 01 00 00 06 35 3B [16:48:54]Write i2c OK [16:48:54]MH_I2C_Read... [16:48:55]OFD Sender: No OFD packet to send [16:48:56]*** Cut start [16:48:56]*** Partial cut [16:48:56]*** CUTSNS_PIN = 1 [16:48:56]*** CUTSNS_PIN = 0 [16:48:56]*** Brake cut motor [16:48:56]Read from MH i2c: 01 [16:48:56]MH_I2C_Read... [16:48:56]*** Stop cut motor [16:48:56]*** Cut end [16:48:56]Read from MH i2c: 01 07 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: 01 07 00 06 35 00 00 00 00 00 FF 0F 50 [16:48:56]process_action close_receipt done [16:48:56]requested_data is exist [16:48:56]produce_requested_data [16:48:56]requested_item fm.sn is exist - process it [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 11 00 00 [16:48:56]Write to MH i2c: E2 08 00 07 35 80 11 00 00 00 00 00 00 B6 [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:56]Read from MH i2c: E2 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 17 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 17 00 07 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0D [16:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:48:56]wFMCommunicate OK [16:48:56]requested_item fd.num is exist - process it [16:48:56]SAM_PROTO_GetFieldsCounters [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 13 00 00 [16:48:56]Write to MH i2c: E2 08 00 08 35 80 13 00 00 00 00 00 00 B9 [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:56]Read from MH i2c: E2 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 62 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 62 00 08 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CE E0 01 00 0E 04 04 00 2C 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 39 [16:48:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CE E0 01 00 0E 04 04 00 2C 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 [16:48:56]wFMCommunicate OK [16:48:56]SAM_PROTO_GetFieldsCounters done [16:48:56]requested_item shift.num is exist - process it [16:48:56]requested_item shift.opened is exist - process it [16:48:56]req_shift_opened [16:48:56]FM_GetShiftState [16:48:56]SAM_PROTO_GetShiftState [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 13 01 00 [16:48:56]Write to MH i2c: E2 08 00 09 35 80 13 01 00 00 00 00 00 BB [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:56]Read from MH i2c: E2 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 0E 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 0E 00 09 35 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3A [16:48:56]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:48:56]wFMCommunicate OK [16:48:56]SAM_PROTO_GetShiftState done [16:48:56]FM_GetShiftState done [16:48:56]req_shift_opened done [16:48:56]requested_item shift.open_date is exist - process it [16:48:56]req_shift_open_date [16:48:56]req_shift_open_date done [16:48:56]produce_requested_data done [16:48:56]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123086,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:48:56]process_action_free close_receipt [16:48:56]json_value_free [16:48:56]json_value_free done [16:48:56]process_json_proto returns [16:48:56]Send response to host [16:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123086,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:48:56]free response buf [16:48:56]execute_script done [16:48:56]execute_script returns [16:48:56]free content buf [16:48:56]Sock 10.Close socket [16:48:56]Sock 10.Thread stoped [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:24]accept exits with 7 [16:50:24]New connection [16:50:24]New thread 3066580324 created [16:50:24]Thread 3066723684 joined [16:50:24]Waiting for new connection... [16:50:24] Sock 7.Parse request [16:50:24]Sock 7.Check first char [16:50:24]Sock 7.First char is OK [16:50:24]request: POST /json_proto HTTP/1.0 [16:50:24]Method: POST [16:50:24]URL: /json_proto [16:50:24]Method is POST - this is cgi request [16:50:24]url: /json_proto [16:50:24]query_string will be loaded in cgi processing [16:50:24]execute_cgi json_proto POST (null) [16:50:24]execute_cgi path=json_proto method=POST [16:50:24]POST find Content-Length [16:50:24]Host: 172.17.37.4:8080 [16:50:24]Content-Length: 686 [16:50:24]Content-Type: application/json [16:50:24] [16:50:24]POST finish read [16:50:24]Found Content-Length = 686 [16:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:24]execute_script... [16:50:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:24]POST & json_proto [16:50:24]process_json_proto [16:50:24]json parsed OK: [16:50:24]protocol is kg_v1.0 [16:50:24]action value=close_receipt [16:50:24]process_action close_receipt [16:50:24]cmd_close_receipt [16:50:24]MH_GetDate [16:50:24]Write to MH i2c: F0 00 00 0A 35 2E [16:50:24]Write i2c OK [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: F0 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: F0 09 00 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: F0 09 00 0A 35 00 D6 AA 44 67 B8 5A 43 67 1E [16:50:24]GetLastDocTimeStamp 1732553338 [16:50:24]current date 1732553430 [16:50:24]FM_GetShiftState [16:50:24]SAM_PROTO_GetShiftState [16:50:24]wFMCommunicate request_size=4 [16:50:24]MH_SAM_APDU [16:50:24]CAPDU: 80 13 01 00 [16:50:24]Write to MH i2c: E2 08 00 0B 35 80 13 01 00 00 00 00 00 BD [16:50:24]Write i2c OK [16:50:24]MH_I2C_Read... [16:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:24]Read from MH i2c: E2 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: E2 0E 00 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: E2 0E 00 0B 35 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3C [16:50:24]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:50:24]wFMCommunicate OK [16:50:24]SAM_PROTO_GetShiftState done [16:50:24]FM_GetShiftState done [16:50:24]opened in 1732493066 [16:50:24]opened+sec_in_day 1732579466 [16:50:24]quantity*price = 100066 [16:50:24]sum+1 = 100067 [16:50:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 128 25.11.2024 16:50 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123087 ФПД: 127219930430918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T165030&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123087&fm=127219930430918&tin=02508201610067®Number=0000000000092681&sum=100000 [16:50:25]StoreToDocumentArchive [16:50:25]shift 556 fd 123087 [16:50:25]save to /storage/0556/doc_00123087 [16:50:25]save last doc name /storage/0556/doc_00123087 to /storage/kkm_last_doc_name [16:50:25]save OK [16:50:25]Clear old archive folders... [16:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:50:25]tlvbuf is B6F1DC10 [16:50:25]SAM_PROTO_ClearQueue [16:50:25]wFMCommunicate request_size=4 [16:50:25]MH_SAM_APDU [16:50:25]CAPDU: 80 09 00 00 [16:50:25]Write to MH i2c: E2 08 00 18 35 80 09 00 00 00 00 00 00 BF [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:25]Read from MH i2c: E2 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 03 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 03 00 18 35 00 90 00 C1 [16:50:25]RAPDU: 90 00 [16:50:25]wFMCommunicate OK [16:50:25]SAM_PROTO_ClearQueue done [16:50:25]KKMCreateOFDPacket [16:50:25]OFDProtocolAddRootSTLVToBuf [16:50:25]FM_MakeSignedData [16:50:25]FM_MakeSignedData [16:50:25]SAM_PROTO_SignData [16:50:25]wFMCommunicate request_size=4 [16:50:25]MH_SAM_APDU [16:50:25]CAPDU: 80 0D 01 02 [16:50:25]Write to MH i2c: E2 08 00 19 35 80 0D 01 02 00 00 00 00 C7 [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:25]Read from MH i2c: E2 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 03 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 03 00 19 35 00 90 00 C2 [16:50:25]RAPDU: 90 00 [16:50:25]wFMCommunicate OK [16:50:25]wFMCommunicate request_size=255 [16:50:25]MH_SAM_APDU [16:50:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D6 AA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CF E0 01 00 35 04 06 00 [16:50:25]Write to MH i2c: E2 02 01 1A 35 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D6 AA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CF E0 01 00 35 04 06 00 00 00 37 [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:25]Read from MH i2c: E2 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 03 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 03 00 1A 35 00 90 00 C3 [16:50:25]RAPDU: 90 00 [16:50:25]wFMCommunicate OK [16:50:25]wFMCommunicate request_size=11 [16:50:25]MH_SAM_APDU [16:50:25]CAPDU: 80 0D 02 02 06 73 B4 B2 C2 FD C6 [16:50:25]Write to MH i2c: E2 0E 00 1B 35 80 0D 02 02 06 00 73 B4 B2 C2 FD C6 00 00 34 [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:25]Read from MH i2c: E2 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 03 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 03 00 1B 35 00 90 00 C4 [16:50:25]RAPDU: 90 00 [16:50:25]wFMCommunicate OK [16:50:25]wFMCommunicate request_size=4 [16:50:25]MH_SAM_APDU [16:50:25]CAPDU: 80 0D 03 02 [16:50:25]Write to MH i2c: E2 08 00 1C 35 80 0D 03 02 00 00 00 00 CC [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:25]Read from MH i2c: E2 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 0B 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 0B 00 1C 35 00 FE EA 9C 1A EE 39 E6 1B 90 00 93 [16:50:25]RAPDU: FE EA 9C 1A EE 39 E6 1B 90 00 [16:50:25]wFMCommunicate OK [16:50:25]SAM_PROTO_SignData done [16:50:25]FM_MakeSignedData done [16:50:25]CreateOFDProtocolMessage [16:50:25]wFMCommunicate request_size=4 [16:50:25]MH_SAM_APDU [16:50:25]CAPDU: 80 11 00 00 [16:50:25]Write to MH i2c: E2 08 00 1D 35 80 11 00 00 00 00 00 00 CC [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:25]Read from MH i2c: E2 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 17 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 17 00 1D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 23 [16:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:50:25]wFMCommunicate OK [16:50:25]CreateOFDProtocolMessage done [16:50:25]OFDSenderStorePacket 123087 [16:50:25]StoreOFDPacket docnum=123087 [16:50:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BB 4C 08 01 04 33 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D6 AA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CF E0 01 00 35 04 06 00 73 B4 B2 C2 FD C6 FE EA 9C 1A EE 39 E6 1B [16:50:25]CheckFolder [16:50:25]dirname=/storage/ofd_packets [16:50:25]CheckFolder done [16:50:25]ProducePacketName [16:50:25]name=ofd_packets/00123087 [16:50:25]NVStorageSaveData ofd_packets/00123087 [16:50:25]File name is /storage/ofd_packets/00123087 [16:50:25]Write 302 bytes [16:50:25]NVStorageSaveData done [16:50:25]OFDSenderStorePacket done [16:50:25]KKMCreateOFDPacket done [16:50:25]NVStorageSaveData kkm_last_timestamp [16:50:25]File name is /storage/kkm_last_timestamp [16:50:25]Write 4 bytes [16:50:25]NVStorageSaveData done [16:50:25]ExternCall_PrintAddStr [16:50:25]wPrintStart [16:50:25]Write to MH i2c: 01 00 00 1E 35 53 [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: 01 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: 01 07 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: 01 07 00 1E 35 00 00 00 00 00 FF 0F 68 [16:50:25]RasterBufferAndPrint [16:50:25]line Счет N : (1)717882 [16:50:25]line ИНН: 02508201610067 [16:50:25]line Контрольно-Кассовый Чек [16:50:25]line ПРОДАЖА [16:50:25]line ТРК (МРК, ГНК) : 5 [16:50:25]line Товар: 2710194210 [16:50:25]line ДТ(л)-К-5 [16:50:25]line 13.360 * 74.90 [16:50:25]line = 1000.66 [16:50:25]line НДС 12% НСП 1% [16:50:25]line > о реализуемом товаре [16:50:25]line ОКРУГЛЕНИЕ: -0.66 [16:50:25]line ИТОГО: 1000.00 [16:50:25]line Внесено: 1000.00 [16:50:25]line СДАЧА: 0.00 [16:50:25]line НСП 1% : 8.85 [16:50:25]line НДС 12% : 106.26 [16:50:25]line Наличными: 1000.00 [16:50:25]line Безнал.: 0.00 [16:50:25]line Место: АЗС № 64 "Партнер Нефть" [16:50:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:50:25]line СНО: Общий режим [16:50:25]line Чек 128 25.11.2024 16:50 [16:50:25]line Смена: 556 ФФД: 1.0 [16:50:25]line ЗНМ: 0300000033 [16:50:25]line РНМ: 0000000000092681 [16:50:25]line Версия ККМ: 001 [16:50:25]line ФМ: 0000000000874881 [16:50:25]line ФД: 123087 [16:50:25]line ФПД: 127219930430918 [16:50:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T165030&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123087&fm=127219930430918&tin=02508201610067®Number=0000000000092681&sum=100000 [16:50:26]OFD Sender: Processing packet 123087 [packets to send 7, broken 6] [16:50:26]ProducePacketName [16:50:26]name=ofd_packets/00123087 [16:50:26]OFD Sender: To server: pG, [16:50:26]CommunicateWithHost lk.salyk.kg:30040 [16:50:26]ConnectInit lk.salyk.kg [16:50:26]written 0, free lines is 4095 [16:50:26]Connected sock=10 [16:50:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BB 4C 08 01 04 33 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D6 AA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CF E0 01 00 35 04 06 00 73 B4 B2 C2 FD C6 FE EA 9C 1A EE 39 E6 1B [16:50:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AD DC 47 00 4D 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CF E0 01 00 F4 03 04 00 9B 56 44 67 B6 04 01 00 00 DA 61 25 1E 39 CC 76 1E [16:50:26]CommunicateWithHost err = 0 [16:50:26]CheckOFDResponse [16:50:26]1017 (14) - 77093643461234 [16:50:26]1041 (16) - 0000000000874881 [16:50:26]1040 (4) - 123087 [16:50:26]1012 (4) - 25.11.2024 10:51 [16:50:26]1206 (1) - 0 [16:50:26]OFD Sender: Remove packet 123087 [16:50:26]ProducePacketName [16:50:26]name=ofd_packets/00123087 [16:50:26]NVStorageDeleteData [16:50:26]Write to MH i2c: 01 00 00 49 35 7E [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: 01 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: 01 07 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: 01 07 00 49 35 00 00 00 00 00 52 0C E3 [16:50:26]RasterBufferAndPrint [16:50:26]line [16:50:26]line [16:50:26]line [16:50:26]line [16:50:26]line [16:50:26]written 0, free lines is 3158 [16:50:26]MH_Cut [16:50:26]Write to MH i2c: D1 01 00 50 35 01 57 [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: D1 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: D1 01 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: D1 01 00 50 35 00 56 [16:50:26]Write to MH i2c: 01 00 00 51 35 86 [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:27]OFD Sender: No OFD packet to send [16:50:28]*** Cut start [16:50:28]*** Partial cut [16:50:28]*** CUTSNS_PIN = 1 [16:50:28]*** CUTSNS_PIN = 0 [16:50:28]*** Brake cut motor [16:50:28]Read from MH i2c: 01 [16:50:28]MH_I2C_Read... [16:50:28]*** Stop cut motor [16:50:28]*** Cut end [16:50:28]Read from MH i2c: 01 07 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 51 35 00 00 00 00 00 FF 0F 9B [16:50:28]process_action close_receipt done [16:50:28]requested_data is exist [16:50:28]produce_requested_data [16:50:28]requested_item fm.sn is exist - process it [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 11 00 00 [16:50:28]Write to MH i2c: E2 08 00 52 35 80 11 00 00 00 00 00 00 01 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 17 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 17 00 52 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 58 [16:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:50:28]wFMCommunicate OK [16:50:28]requested_item fd.num is exist - process it [16:50:28]SAM_PROTO_GetFieldsCounters [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 13 00 00 [16:50:28]Write to MH i2c: E2 08 00 53 35 80 13 00 00 00 00 00 00 04 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 62 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 62 00 53 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CF E0 01 00 0E 04 04 00 2C 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 88 [16:50:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CF E0 01 00 0E 04 04 00 2C 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 [16:50:28]wFMCommunicate OK [16:50:28]SAM_PROTO_GetFieldsCounters done [16:50:28]requested_item shift.num is exist - process it [16:50:28]requested_item shift.opened is exist - process it [16:50:28]req_shift_opened [16:50:28]FM_GetShiftState [16:50:28]SAM_PROTO_GetShiftState [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 13 01 00 [16:50:28]Write to MH i2c: E2 08 00 54 35 80 13 01 00 00 00 00 00 06 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0E 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0E 00 54 35 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 85 [16:50:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:50:28]wFMCommunicate OK [16:50:28]SAM_PROTO_GetShiftState done [16:50:28]FM_GetShiftState done [16:50:28]req_shift_opened done [16:50:28]requested_item shift.open_date is exist - process it [16:50:28]req_shift_open_date [16:50:28]req_shift_open_date done [16:50:28]produce_requested_data done [16:50:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123087,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:50:28]process_action_free close_receipt [16:50:28]json_value_free [16:50:28]json_value_free done [16:50:28]process_json_proto returns [16:50:28]Send response to host [16:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123087,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:50:28]free response buf [16:50:28]execute_script done [16:50:28]execute_script returns [16:50:28]free content buf [16:50:28]Sock 7.Close socket [16:50:28]Sock 7.Thread stoped [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:25]accept exits with 9 [16:58:25]New connection [16:58:25]New thread 3066723684 created [16:58:25]Thread 3066580324 joined [16:58:25]Waiting for new connection... [16:58:25] Sock 9.Parse request [16:58:25]Sock 9.Check first char [16:58:25]Sock 9.First char is OK [16:58:25]request: POST /json_proto HTTP/1.0 [16:58:25]Method: POST [16:58:25]URL: /json_proto [16:58:25]Method is POST - this is cgi request [16:58:25]url: /json_proto [16:58:25]query_string will be loaded in cgi processing [16:58:25]execute_cgi json_proto POST (null) [16:58:25]execute_cgi path=json_proto method=POST [16:58:25]POST find Content-Length [16:58:25]Host: 172.17.37.4:8080 [16:58:25]Content-Length: 681 [16:58:25]Content-Type: application/json [16:58:25] [16:58:25]POST finish read [16:58:25]Found Content-Length = 681 [16:58:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:25]execute_script... [16: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)717883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:25]POST & json_proto [16:58:25]process_json_proto [16:58:25]json parsed OK: [16:58:25]protocol is kg_v1.0 [16:58:25]action value=close_receipt [16:58:25]process_action close_receipt [16:58:25]cmd_close_receipt [16:58:25]MH_GetDate [16:58:25]Write to MH i2c: F0 00 00 55 35 79 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: F0 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: F0 09 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: F0 09 00 55 35 00 B7 AC 44 67 B8 5A 43 67 4C [16:58:25]GetLastDocTimeStamp 1732553430 [16:58:25]current date 1732553911 [16:58:25]FM_GetShiftState [16:58:25]SAM_PROTO_GetShiftState [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 13 01 00 [16:58:25]Write to MH i2c: E2 08 00 56 35 80 13 01 00 00 00 00 00 08 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 0E 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 0E 00 56 35 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 87 [16:58:25]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:58:25]wFMCommunicate OK [16:58:25]SAM_PROTO_GetShiftState done [16:58:25]FM_GetShiftState done [16:58:25]opened in 1732493066 [16:58:25]opened+sec_in_day 1732579466 [16:58:25]quantity*price = 50033 [16:58:25]sum+1 = 50034 [16:58:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 129 25.11.2024 16:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123088 ФПД: 114155842977257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T165831&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123088&fm=114155842977257&tin=02508201610067®Number=0000000000092681&sum=50000 [16:58:26]StoreToDocumentArchive [16:58:26]shift 556 fd 123088 [16:58:26]save to /storage/0556/doc_00123088 [16:58:26]save last doc name /storage/0556/doc_00123088 to /storage/kkm_last_doc_name [16:58:26]save OK [16:58:26]Clear old archive folders... [16:58:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:58:26]tlvbuf is B6F20A40 [16:58:26]SAM_PROTO_ClearQueue [16:58:26]wFMCommunicate request_size=4 [16:58:26]MH_SAM_APDU [16:58:26]CAPDU: 80 09 00 00 [16:58:26]Write to MH i2c: E2 08 00 63 35 80 09 00 00 00 00 00 00 0A [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:26]Read from MH i2c: E2 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 03 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 03 00 63 35 00 90 00 0C [16:58:26]RAPDU: 90 00 [16:58:26]wFMCommunicate OK [16:58:26]SAM_PROTO_ClearQueue done [16:58:26]KKMCreateOFDPacket [16:58:26]OFDProtocolAddRootSTLVToBuf [16:58:26]FM_MakeSignedData [16:58:26]FM_MakeSignedData [16:58:26]SAM_PROTO_SignData [16:58:26]wFMCommunicate request_size=4 [16:58:26]MH_SAM_APDU [16:58:26]CAPDU: 80 0D 01 02 [16:58:26]Write to MH i2c: E2 08 00 64 35 80 0D 01 02 00 00 00 00 12 [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:26]Read from MH i2c: E2 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 03 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 03 00 64 35 00 90 00 0D [16:58:26]RAPDU: 90 00 [16:58:26]wFMCommunicate OK [16:58:26]wFMCommunicate request_size=255 [16:58:26]MH_SAM_APDU [16:58:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B7 AC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E0 01 00 35 04 06 00 [16:58:26]Write to MH i2c: E2 02 01 65 35 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B7 AC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E0 01 00 35 04 06 00 00 00 46 [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:27]Read from MH i2c: E2 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 03 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 03 00 65 35 00 90 00 0E [16:58:27]RAPDU: 90 00 [16:58:27]wFMCommunicate OK [16:58:27]wFMCommunicate request_size=11 [16:58:27]MH_SAM_APDU [16:58:27]CAPDU: 80 0D 02 02 06 67 D2 FA 78 3D E9 [16:58:27]Write to MH i2c: E2 0E 00 66 35 80 0D 02 02 06 00 67 D2 FA 78 3D E9 00 00 F2 [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:27]Read from MH i2c: E2 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 03 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 03 00 66 35 00 90 00 0F [16:58:27]RAPDU: 90 00 [16:58:27]wFMCommunicate OK [16:58:27]wFMCommunicate request_size=4 [16:58:27]MH_SAM_APDU [16:58:27]CAPDU: 80 0D 03 02 [16:58:27]Write to MH i2c: E2 08 00 67 35 80 0D 03 02 00 00 00 00 17 [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:27]Read from MH i2c: E2 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 0B 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 0B 00 67 35 00 42 44 06 F6 F8 52 90 8E 90 00 02 [16:58:27]RAPDU: 42 44 06 F6 F8 52 90 8E 90 00 [16:58:27]wFMCommunicate OK [16:58:27]SAM_PROTO_SignData done [16:58:27]FM_MakeSignedData done [16:58:27]CreateOFDProtocolMessage [16:58:27]wFMCommunicate request_size=4 [16:58:27]MH_SAM_APDU [16:58:27]CAPDU: 80 11 00 00 [16:58:27]Write to MH i2c: E2 08 00 68 35 80 11 00 00 00 00 00 00 17 [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:27]Read from MH i2c: E2 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 17 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 17 00 68 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6E [16:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:58:27]wFMCommunicate OK [16:58:27]CreateOFDProtocolMessage done [16:58:27]OFDSenderStorePacket 123088 [16:58:27]StoreOFDPacket docnum=123088 [16:58:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 CF 76 08 01 17 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B7 AC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E0 01 00 35 04 06 00 67 D2 FA 78 3D E9 42 44 06 F6 F8 52 90 8E [16:58:27]CheckFolder [16:58:27]dirname=/storage/ofd_packets [16:58:27]CheckFolder done [16:58:27]ProducePacketName [16:58:27]name=ofd_packets/00123088 [16:58:27]NVStorageSaveData ofd_packets/00123088 [16:58:27]File name is /storage/ofd_packets/00123088 [16:58:27]Write 302 bytes [16:58:27]NVStorageSaveData done [16:58:27]OFDSenderStorePacket done [16:58:27]KKMCreateOFDPacket done [16:58:27]NVStorageSaveData kkm_last_timestamp [16:58:27]File name is /storage/kkm_last_timestamp [16:58:27]Write 4 bytes [16:58:27]NVStorageSaveData done [16:58:27]ExternCall_PrintAddStr [16:58:27]wPrintStart [16:58:27]Write to MH i2c: 01 00 00 69 35 9E [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: 01 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: 01 07 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: 01 07 00 69 35 00 00 00 00 00 FF 0F B3 [16:58:27]RasterBufferAndPrint [16:58:27]line Счет N : (1)717883 [16:58:27]line ИНН: 02508201610067 [16:58:27]line Контрольно-Кассовый Чек [16:58:27]line ПРОДАЖА [16:58:27]line ТРК (МРК, ГНК) : 5 [16:58:27]line Товар: 2710194210 [16:58:27]line ДТ(л)-К-5 [16:58:27]line 6.680 * 74.90 [16:58:27]line = 500.33 [16:58:27]line НДС 12% НСП 1% [16:58:27]line > о реализуемом товаре [16:58:27]line ОКРУГЛЕНИЕ: -0.33 [16:58:27]line ИТОГО: 500.00 [16:58:27]line Внесено: 500.00 [16:58:27]line СДАЧА: 0.00 [16:58:27]line НСП 1% : 4.43 [16:58:27]line НДС 12% : 53.13 [16:58:27]line Наличными: 500.00 [16:58:27]line Безнал.: 0.00 [16:58:27]line Место: АЗС № 64 "Партнер Нефть" [16:58:27]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:58:27]line СНО: Общий режим [16:58:27]line Чек 129 25.11.2024 16:58 [16:58:27]line Смена: 556 ФФД: 1.0 [16:58:27]line ЗНМ: 0300000033 [16:58:27]line РНМ: 0000000000092681 [16:58:27]line Версия ККМ: 001 [16:58:27]line ФМ: 0000000000874881 [16:58:27]line ФД: 123088 [16:58:27]line ФПД: 114155842977257 [16:58:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T165831&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123088&fm=114155842977257&tin=02508201610067®Number=0000000000092681&sum=50000 [16:58:27]OFD Sender: Processing packet 123088 [packets to send 7, broken 6] [16:58:27]ProducePacketName [16:58:27]name=ofd_packets/00123088 [16:58:27]OFD Sender: To server: pG, [16:58:27]CommunicateWithHost lk.salyk.kg:30040 [16:58:27]ConnectInit lk.salyk.kg [16:58:27]written 0, free lines is 4095 [16:58:27]Connected sock=11 [16: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 34 38 38 31 10 01 00 00 CF 76 08 01 17 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B7 AC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E0 01 00 35 04 06 00 67 D2 FA 78 3D E9 42 44 06 F6 F8 52 90 8E [16:58:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 BD D2 47 00 25 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E0 01 00 F4 03 04 00 7C 58 44 67 B6 04 01 00 00 7F D7 65 D3 9A 70 A5 53 [16:58:27]CommunicateWithHost err = 0 [16:58:27]CheckOFDResponse [16:58:27]1017 (14) - 77093643461234 [16:58:27]1041 (16) - 0000000000874881 [16:58:27]1040 (4) - 123088 [16:58:27]1012 (4) - 25.11.2024 10:59 [16:58:27]1206 (1) - 0 [16:58:27]OFD Sender: Remove packet 123088 [16:58:27]ProducePacketName [16:58:27]name=ofd_packets/00123088 [16:58:27]NVStorageDeleteData [16:58:27]Write to MH i2c: 01 00 00 94 35 C9 [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: 01 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: 01 07 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: 01 07 00 94 35 00 00 00 00 00 4C 0C 28 [16:58:27]RasterBufferAndPrint [16:58:27]line [16:58:27]line [16:58:27]line [16:58:27]line [16:58:27]line [16:58:27]written 0, free lines is 3152 [16:58:27]MH_Cut [16:58:27]Write to MH i2c: D1 01 00 9B 35 01 A2 [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: D1 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: D1 01 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: D1 01 00 9B 35 00 A1 [16:58:27]Write to MH i2c: 01 00 00 9C 35 D1 [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:28]OFD Sender: No OFD packet to send [16:58:29]*** Cut start [16:58:29]*** Partial cut [16:58:29]*** CUTSNS_PIN = 1 [16:58:29]*** CUTSNS_PIN = 0 [16:58:29]*** Brake cut motor [16:58:29]Read from MH i2c: 01 [16:58:29]MH_I2C_Read... [16:58:29]*** Stop cut motor [16:58:29]*** Cut end [16:58:29]Read from MH i2c: 01 07 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: 01 07 00 9C 35 00 00 00 00 00 FF 0F E6 [16:58:29]process_action close_receipt done [16:58:29]requested_data is exist [16:58:29]produce_requested_data [16:58:29]requested_item fm.sn is exist - process it [16:58:29]wFMCommunicate request_size=4 [16:58:29]MH_SAM_APDU [16:58:29]CAPDU: 80 11 00 00 [16:58:29]Write to MH i2c: E2 08 00 9D 35 80 11 00 00 00 00 00 00 4C [16:58:29]Write i2c OK [16:58:29]MH_I2C_Read... [16:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:30]Read from MH i2c: E2 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 17 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 17 00 9D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A3 [16:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:58:30]wFMCommunicate OK [16:58:30]requested_item fd.num is exist - process it [16:58:30]SAM_PROTO_GetFieldsCounters [16:58:30]wFMCommunicate request_size=4 [16:58:30]MH_SAM_APDU [16:58:30]CAPDU: 80 13 00 00 [16:58:30]Write to MH i2c: E2 08 00 9E 35 80 13 00 00 00 00 00 00 4F [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:30]Read from MH i2c: E2 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 62 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 62 00 9E 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D0 E0 01 00 0E 04 04 00 2C 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 D7 [16:58:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D0 E0 01 00 0E 04 04 00 2C 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 [16:58:30]wFMCommunicate OK [16:58:30]SAM_PROTO_GetFieldsCounters done [16:58:30]requested_item shift.num is exist - process it [16:58:30]requested_item shift.opened is exist - process it [16:58:30]req_shift_opened [16:58:30]FM_GetShiftState [16:58:30]SAM_PROTO_GetShiftState [16:58:30]wFMCommunicate request_size=4 [16:58:30]MH_SAM_APDU [16:58:30]CAPDU: 80 13 01 00 [16:58:30]Write to MH i2c: E2 08 00 9F 35 80 13 01 00 00 00 00 00 51 [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:30]Read from MH i2c: E2 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 0E 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 0E 00 9F 35 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D0 [16:58:30]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [16:58:30]wFMCommunicate OK [16:58:30]SAM_PROTO_GetShiftState done [16:58:30]FM_GetShiftState done [16:58:30]req_shift_opened done [16:58:30]requested_item shift.open_date is exist - process it [16:58:30]req_shift_open_date [16:58:30]req_shift_open_date done [16:58:30]produce_requested_data done [16:58:30]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123088,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [16:58:30]process_action_free close_receipt [16:58:30]json_value_free [16:58:30]json_value_free done [16:58:30]process_json_proto returns [16:58:30]Send response to host [16:58:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123088,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [16:58:30]free response buf [16:58:30]execute_script done [16:58:30]execute_script returns [16:58:30]free content buf [16:58:30]Sock 9.Close socket [16:58:30]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:47]accept exits with 7 [17:04:47]New connection [17:04:47]New thread 3066580324 created [17:04:47]Thread 3066723684 joined [17:04:47]Waiting for new connection... [17:04:47] Sock 7.Parse request [17:04:47]Sock 7.Check first char [17:04:47]Sock 7.First char is OK [17:04:47]request: POST /json_proto HTTP/1.0 [17:04:47]Method: POST [17:04:47]URL: /json_proto [17:04:47]Method is POST - this is cgi request [17:04:47]url: /json_proto [17:04:47]query_string will be loaded in cgi processing [17:04:47]execute_cgi json_proto POST (null) [17:04:47]execute_cgi path=json_proto method=POST [17:04:47]POST find Content-Length [17:04:47]Host: 172.17.37.4:8080 [17:04:47]Content-Length: 677 [17:04:47]Content-Type: application/json [17:04:47] [17:04:47]POST finish read [17:04:47]Found Content-Length = 677 [17:04:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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" ] } } [17:04:47]execute_script... [17:04: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)717887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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" ] } } [17:04:47]POST & json_proto [17:04:47]process_json_proto [17:04:47]json parsed OK: [17:04:47]protocol is kg_v1.0 [17:04:47]action value=close_receipt [17:04:47]process_action close_receipt [17:04:47]cmd_close_receipt [17:04:47]MH_GetDate [17:04:47]Write to MH i2c: F0 00 00 A0 35 C4 [17:04:47]Write i2c OK [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: F0 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: F0 09 00 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: F0 09 00 A0 35 00 35 AE 44 67 B8 5A 43 67 17 [17:04:47]GetLastDocTimeStamp 1732553911 [17:04:47]current date 1732554293 [17:04:47]FM_GetShiftState [17:04:47]SAM_PROTO_GetShiftState [17:04:47]wFMCommunicate request_size=4 [17:04:47]MH_SAM_APDU [17:04:47]CAPDU: 80 13 01 00 [17:04:47]Write to MH i2c: E2 08 00 A1 35 80 13 01 00 00 00 00 00 53 [17:04:47]Write i2c OK [17:04:47]MH_I2C_Read... [17:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:47]Read from MH i2c: E2 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: E2 0E 00 [17:04:47]MH_I2C_Read... [17:04:47]Read from MH i2c: E2 0E 00 A1 35 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D2 [17:04:47]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:04:47]wFMCommunicate OK [17:04:47]SAM_PROTO_GetShiftState done [17:04:47]FM_GetShiftState done [17:04:47]opened in 1732493066 [17:04:47]opened+sec_in_day 1732579466 [17:04:47]quantity*price = 20017 [17:04:47]sum+1 = 20019 [17:04:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 130 25.11.2024 17:04 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123089 ФПД: 175802356803119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T170453&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123089&fm=175802356803119&tin=02508201610067®Number=0000000000092681&sum=20000 [17:04:48]StoreToDocumentArchive [17:04:48]shift 556 fd 123089 [17:04:48]save to /storage/0556/doc_00123089 [17:04:48]save last doc name /storage/0556/doc_00123089 to /storage/kkm_last_doc_name [17:04:48]save OK [17:04:48]Clear old archive folders... [17:04:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:48]tlvbuf is 01F5EF20 [17:04:48]SAM_PROTO_ClearQueue [17:04:48]wFMCommunicate request_size=4 [17:04:48]MH_SAM_APDU [17:04:48]CAPDU: 80 09 00 00 [17:04:48]Write to MH i2c: E2 08 00 AE 35 80 09 00 00 00 00 00 00 55 [17:04:48]Write i2c OK [17:04:48]MH_I2C_Read... [17:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:48]Read from MH i2c: E2 [17:04:48]MH_I2C_Read... [17:04:48]Read from MH i2c: E2 03 00 [17:04:48]MH_I2C_Read... [17:04:48]Read from MH i2c: E2 03 00 AE 35 00 90 00 57 [17:04:48]RAPDU: 90 00 [17:04:48]wFMCommunicate OK [17:04:48]SAM_PROTO_ClearQueue done [17:04:48]KKMCreateOFDPacket [17:04:48]OFDProtocolAddRootSTLVToBuf [17:04:48]FM_MakeSignedData [17:04:48]FM_MakeSignedData [17:04:48]SAM_PROTO_SignData [17:04:48]wFMCommunicate request_size=4 [17:04:48]MH_SAM_APDU [17:04:48]CAPDU: 80 0D 01 02 [17:04:48]Write to MH i2c: E2 08 00 AF 35 80 0D 01 02 00 00 00 00 5D [17:04:48]Write i2c OK [17:04:48]MH_I2C_Read... [17:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:48]Read from MH i2c: E2 [17:04:48]MH_I2C_Read... [17:04:48]Read from MH i2c: E2 03 00 [17:04:48]MH_I2C_Read... [17:04:48]Read from MH i2c: E2 03 00 AF 35 00 90 00 58 [17:04:48]RAPDU: 90 00 [17:04:48]wFMCommunicate OK [17:04:48]wFMCommunicate request_size=255 [17:04:48]MH_SAM_APDU [17:04: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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 35 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D1 E0 01 00 35 04 06 00 9F [17:04:48]Write to MH i2c: E2 02 01 B0 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 35 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D1 E0 01 00 35 04 06 00 9F 00 00 70 [17:04:48]Write i2c OK [17:04:48]MH_I2C_Read... [17:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:49]Read from MH i2c: E2 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: E2 03 00 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: E2 03 00 B0 35 00 90 00 59 [17:04:49]RAPDU: 90 00 [17:04:49]wFMCommunicate OK [17:04:49]wFMCommunicate request_size=10 [17:04:49]MH_SAM_APDU [17:04:49]CAPDU: 80 0D 02 02 05 E4 2D 07 26 2F [17:04:49]Write to MH i2c: E2 0D 00 B1 35 80 0D 02 02 05 00 E4 2D 07 26 2F 00 00 D7 [17:04:49]Write i2c OK [17:04:49]MH_I2C_Read... [17:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:49]Read from MH i2c: E2 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: E2 03 00 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: E2 03 00 B1 35 00 90 00 5A [17:04:49]RAPDU: 90 00 [17:04:49]wFMCommunicate OK [17:04:49]wFMCommunicate request_size=4 [17:04:49]MH_SAM_APDU [17:04:49]CAPDU: 80 0D 03 02 [17:04:49]Write to MH i2c: E2 08 00 B2 35 80 0D 03 02 00 00 00 00 62 [17:04:49]Write i2c OK [17:04:49]MH_I2C_Read... [17:04:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:49]Read from MH i2c: E2 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: E2 0B 00 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: E2 0B 00 B2 35 00 FE AF 5F C8 8B E7 91 62 90 00 9C [17:04:49]RAPDU: FE AF 5F C8 8B E7 91 62 90 00 [17:04:49]wFMCommunicate OK [17:04:49]SAM_PROTO_SignData done [17:04:49]FM_MakeSignedData done [17:04:49]CreateOFDProtocolMessage [17:04:49]wFMCommunicate request_size=4 [17:04:49]MH_SAM_APDU [17:04:49]CAPDU: 80 11 00 00 [17:04:49]Write to MH i2c: E2 08 00 B3 35 80 11 00 00 00 00 00 00 62 [17:04:49]Write i2c OK [17:04:49]MH_I2C_Read... [17:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:49]Read from MH i2c: E2 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: E2 17 00 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: E2 17 00 B3 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B9 [17:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:04:49]wFMCommunicate OK [17:04:49]CreateOFDProtocolMessage done [17:04:49]OFDSenderStorePacket 123089 [17:04:49]StoreOFDPacket docnum=123089 [17:04:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5C 6A 07 01 44 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 35 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D1 E0 01 00 35 04 06 00 9F E4 2D 07 26 2F FE AF 5F C8 8B E7 91 62 [17:04:49]CheckFolder [17:04:49]dirname=/storage/ofd_packets [17:04:49]CheckFolder done [17:04:49]ProducePacketName [17:04:49]name=ofd_packets/00123089 [17:04:49]NVStorageSaveData ofd_packets/00123089 [17:04:49]File name is /storage/ofd_packets/00123089 [17:04:49]Write 301 bytes [17:04:49]NVStorageSaveData done [17:04:49]OFDSenderStorePacket done [17:04:49]KKMCreateOFDPacket done [17:04:49]NVStorageSaveData kkm_last_timestamp [17:04:49]File name is /storage/kkm_last_timestamp [17:04:49]Write 4 bytes [17:04:49]NVStorageSaveData done [17:04:49]ExternCall_PrintAddStr [17:04:49]wPrintStart [17:04:49]Write to MH i2c: 01 00 00 B4 35 E9 [17:04:49]Write i2c OK [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: 01 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: 01 07 00 [17:04:49]MH_I2C_Read... [17:04:49]Read from MH i2c: 01 07 00 B4 35 00 00 00 00 00 FF 0F FE [17:04:49]RasterBufferAndPrint [17:04:49]line Счет N : (1)717887 [17:04:49]line ИНН: 02508201610067 [17:04:49]line Контрольно-Кассовый Чек [17:04:49]line ПРОДАЖА [17:04:49]line ТРК (МРК, ГНК) : 42 [17:04:49]line Товар: 2710124130 [17:04:49]line Аи-92-К-4 [17:04:49]line 2.970 * 67.40 [17:04:49]line = 200.18 [17:04:49]line НДС 12% НСП 1% [17:04:49]line > о реализуемом товаре [17:04:49]line ОКРУГЛЕНИЕ: -0.18 [17:04:49]line ИТОГО: 200.00 [17:04:49]line Внесено: 200.00 [17:04:49]line СДАЧА: 0.00 [17:04:49]line НСП 1% : 1.77 [17:04:49]line НДС 12% : 21.26 [17:04:49]line Наличными: 200.00 [17:04:49]line Безнал.: 0.00 [17:04:49]line Место: АЗС № 64 "Партнер Нефть" [17:04:49]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:04:49]line СНО: Общий режим [17:04:49]line Чек 130 25.11.2024 17:04 [17:04:49]line Смена: 556 ФФД: 1.0 [17:04:49]line ЗНМ: 0300000033 [17:04:49]line РНМ: 0000000000092681 [17:04:49]line Версия ККМ: 001 [17:04:49]line ФМ: 0000000000874881 [17:04:49]line ФД: 123089 [17:04:49]line ФПД: 175802356803119 [17:04:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T170453&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123089&fm=175802356803119&tin=02508201610067®Number=0000000000092681&sum=20000 [17:04:49]OFD Sender: Processing packet 123089 [packets to send 7, broken 6] [17:04:49]ProducePacketName [17:04:49]name=ofd_packets/00123089 [17:04:49]OFD Sender: To server: pG, [17:04:49]CommunicateWithHost lk.salyk.kg:30040 [17:04:49]ConnectInit lk.salyk.kg [17:04:49]written 0, free lines is 4095 [17:04:49]Connected sock=10 [17:04:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5C 6A 07 01 44 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 35 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D1 E0 01 00 35 04 06 00 9F E4 2D 07 26 2F FE AF 5F C8 8B E7 91 62 [17:04:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 BD C5 47 00 FC 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 34 38 38 31 10 04 04 00 D1 E0 01 00 F4 03 04 00 FA 59 44 67 B6 04 01 00 00 D7 C6 EE B8 E6 45 08 47 [17:04:49]CommunicateWithHost err = 0 [17:04:49]CheckOFDResponse [17:04:49]1017 (14) - 77093643461234 [17:04:49]1041 (16) - 0000000000874881 [17:04:49]1040 (4) - 123089 [17:04:49]1012 (4) - 25.11.2024 11:05 [17:04:49]1206 (1) - 0 [17:04:49]OFD Sender: Remove packet 123089 [17:04:49]ProducePacketName [17:04:49]name=ofd_packets/00123089 [17:04:49]NVStorageDeleteData [17:04:50]Write to MH i2c: 01 00 00 DF 35 14 [17:04:50]Write i2c OK [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: 01 [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: 01 07 00 [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: 01 07 00 DF 35 00 00 00 00 00 4E 0C 75 [17:04:50]RasterBufferAndPrint [17:04:50]line [17:04:50]line [17:04:50]line [17:04:50]line [17:04:50]line [17:04:50]written 0, free lines is 3153 [17:04:50]MH_Cut [17:04:50]Write to MH i2c: D1 01 00 E6 35 01 ED [17:04:50]Write i2c OK [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: D1 [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: D1 01 00 [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: D1 01 00 E6 35 00 EC [17:04:50]Write to MH i2c: 01 00 00 E7 35 1C [17:04:50]Write i2c OK [17:04:50]MH_I2C_Read... [17:04:50]OFD Sender: No OFD packet to send [17:04:51]*** Cut start [17:04:51]*** Partial cut [17:04:51]*** CUTSNS_PIN = 1 [17:04:51]*** CUTSNS_PIN = 0 [17:04:51]*** Brake cut motor [17:04:52]Read from MH i2c: 01 [17:04:52]MH_I2C_Read... [17:04:52]*** Stop cut motor [17:04:52]*** Cut end [17:04:52]Read from MH i2c: 01 07 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: 01 07 00 E7 35 00 00 00 00 00 FF 0F 31 [17:04:52]process_action close_receipt done [17:04:52]requested_data is exist [17:04:52]produce_requested_data [17:04:52]requested_item fm.sn is exist - process it [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 11 00 00 [17:04:52]Write to MH i2c: E2 08 00 E8 35 80 11 00 00 00 00 00 00 97 [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 17 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 17 00 E8 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EE [17:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:04:52]wFMCommunicate OK [17:04:52]requested_item fd.num is exist - process it [17:04:52]SAM_PROTO_GetFieldsCounters [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 13 00 00 [17:04:52]Write to MH i2c: E2 08 00 E9 35 80 13 00 00 00 00 00 00 9A [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 62 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 62 00 E9 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D1 E0 01 00 0E 04 04 00 2C 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 26 [17:04:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D1 E0 01 00 0E 04 04 00 2C 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 [17:04:52]wFMCommunicate OK [17:04:52]SAM_PROTO_GetFieldsCounters done [17:04:52]requested_item shift.num is exist - process it [17:04:52]requested_item shift.opened is exist - process it [17:04:52]req_shift_opened [17:04:52]FM_GetShiftState [17:04:52]SAM_PROTO_GetShiftState [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 13 01 00 [17:04:52]Write to MH i2c: E2 08 00 EA 35 80 13 01 00 00 00 00 00 9C [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 0E 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 0E 00 EA 35 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1B [17:04:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:04:52]wFMCommunicate OK [17:04:52]SAM_PROTO_GetShiftState done [17:04:52]FM_GetShiftState done [17:04:52]req_shift_opened done [17:04:52]requested_item shift.open_date is exist - process it [17:04:52]req_shift_open_date [17:04:52]req_shift_open_date done [17:04:52]produce_requested_data done [17:04:52]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123089,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:04:52]process_action_free close_receipt [17:04:52]json_value_free [17:04:52]json_value_free done [17:04:52]process_json_proto returns [17:04:52]Send response to host [17:04:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123089,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:04:52]free response buf [17:04:52]execute_script done [17:04:52]execute_script returns [17:04:52]free content buf [17:04:52]Sock 7.Close socket [17:04:52]Sock 7.Thread stoped [17:04:52]accept exits with 9 [17:04:52]New connection [17:04:52]New thread 3066723684 created [17:04:52]Thread 3066580324 joined [17:04:52]Waiting for new connection... [17:04:52] Sock 9.Parse request [17:04:52]Sock 9.Check first char [17:04:52]Sock 9.First char is OK [17:04:52]request: POST /json_proto HTTP/1.0 [17:04:52]Method: POST [17:04:52]URL: /json_proto [17:04:52]Method is POST - this is cgi request [17:04:52]url: /json_proto [17:04:52]query_string will be loaded in cgi processing [17:04:52]execute_cgi json_proto POST (null) [17:04:52]execute_cgi path=json_proto method=POST [17:04:52]POST find Content-Length [17:04:52]Host: 172.17.37.4:8080 [17:04:52]Content-Length: 677 [17:04:52]Content-Type: application/json [17:04:52] [17:04:52]POST finish read [17:04:52]Found Content-Length = 677 [17:04:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:04:52]execute_script... [17:04: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)717886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:04:52]POST & json_proto [17:04:52]process_json_proto [17:04:52]json parsed OK: [17:04:52]protocol is kg_v1.0 [17:04:52]action value=close_receipt [17:04:52]process_action close_receipt [17:04:52]cmd_close_receipt [17:04:52]MH_GetDate [17:04:52]Write to MH i2c: F0 00 00 EB 35 0F [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: F0 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: F0 09 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: F0 09 00 EB 35 00 3A AE 44 67 B8 5A 43 67 67 [17:04:52]GetLastDocTimeStamp 1732554293 [17:04:52]current date 1732554298 [17:04:52]FM_GetShiftState [17:04:52]SAM_PROTO_GetShiftState [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 13 01 00 [17:04:52]Write to MH i2c: E2 08 00 EC 35 80 13 01 00 00 00 00 00 9E [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 0E 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 0E 00 EC 35 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1D [17:04:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:04:52]wFMCommunicate OK [17:04:52]SAM_PROTO_GetShiftState done [17:04:52]FM_GetShiftState done [17:04:52]opened in 1732493066 [17:04:52]opened+sec_in_day 1732579466 [17:04:52]quantity*price = 30060 [17:04:52]sum+1 = 30061 [17:04:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 131 25.11.2024 17:04 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123090 ФПД: 24677183201202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T170458&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123090&fm=24677183201202&tin=02508201610067®Number=0000000000092681&sum=30000 [17:04:53]StoreToDocumentArchive [17:04:53]shift 556 fd 123090 [17:04:53]save to /storage/0556/doc_00123090 [17:04:53]save last doc name /storage/0556/doc_00123090 to /storage/kkm_last_doc_name [17:04:53]save OK [17:04:53]Clear old archive folders... [17:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:53]tlvbuf is 02136EB0 [17:04:53]SAM_PROTO_ClearQueue [17:04:53]wFMCommunicate request_size=4 [17:04:53]MH_SAM_APDU [17:04:53]CAPDU: 80 09 00 00 [17:04:53]Write to MH i2c: E2 08 00 F9 35 80 09 00 00 00 00 00 00 A0 [17:04:53]Write i2c OK [17:04:53]MH_I2C_Read... [17:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:53]Read from MH i2c: E2 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: E2 03 00 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: E2 03 00 F9 35 00 90 00 A2 [17:04:53]RAPDU: 90 00 [17:04:53]wFMCommunicate OK [17:04:53]SAM_PROTO_ClearQueue done [17:04:53]KKMCreateOFDPacket [17:04:53]OFDProtocolAddRootSTLVToBuf [17:04:53]FM_MakeSignedData [17:04:53]FM_MakeSignedData [17:04:53]SAM_PROTO_SignData [17:04:53]wFMCommunicate request_size=4 [17:04:53]MH_SAM_APDU [17:04:53]CAPDU: 80 0D 01 02 [17:04:53]Write to MH i2c: E2 08 00 FA 35 80 0D 01 02 00 00 00 00 A8 [17:04:53]Write i2c OK [17:04:53]MH_I2C_Read... [17:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:54]Read from MH i2c: E2 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 03 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 03 00 FA 35 00 90 00 A3 [17:04:54]RAPDU: 90 00 [17:04:54]wFMCommunicate OK [17:04:54]wFMCommunicate request_size=255 [17:04:54]MH_SAM_APDU [17:04:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D2 E0 01 00 35 04 06 00 16 [17:04:54]Write to MH i2c: E2 02 01 FB 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D2 E0 01 00 35 04 06 00 16 00 00 68 [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:54]Read from MH i2c: E2 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 03 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 03 00 FB 35 00 90 00 A4 [17:04:54]RAPDU: 90 00 [17:04:54]wFMCommunicate OK [17:04:54]wFMCommunicate request_size=10 [17:04:54]MH_SAM_APDU [17:04:54]CAPDU: 80 0D 02 02 05 71 9A BD 1F B2 [17:04:54]Write to MH i2c: E2 0D 00 FC 35 80 0D 02 02 05 00 71 9A BD 1F B2 00 00 4E [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:54]Read from MH i2c: E2 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 03 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 03 00 FC 35 00 90 00 A5 [17:04:54]RAPDU: 90 00 [17:04:54]wFMCommunicate OK [17:04:54]wFMCommunicate request_size=4 [17:04:54]MH_SAM_APDU [17:04:54]CAPDU: 80 0D 03 02 [17:04:54]Write to MH i2c: E2 08 00 FD 35 80 0D 03 02 00 00 00 00 AD [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:54]Read from MH i2c: E2 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 0B 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 0B 00 FD 35 00 DD C1 82 54 88 ED D8 88 90 00 F7 [17:04:54]RAPDU: DD C1 82 54 88 ED D8 88 90 00 [17:04:54]wFMCommunicate OK [17:04:54]SAM_PROTO_SignData done [17:04:54]FM_MakeSignedData done [17:04:54]CreateOFDProtocolMessage [17:04:54]wFMCommunicate request_size=4 [17:04:54]MH_SAM_APDU [17:04:54]CAPDU: 80 11 00 00 [17:04:54]Write to MH i2c: E2 08 00 FE 35 80 11 00 00 00 00 00 00 AD [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:54]Read from MH i2c: E2 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 17 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 17 00 FE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 04 [17:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:04:54]wFMCommunicate OK [17:04:54]CreateOFDProtocolMessage done [17:04:54]OFDSenderStorePacket 123090 [17:04:54]StoreOFDPacket docnum=123090 [17:04:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B6 BC 07 01 B3 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D2 E0 01 00 35 04 06 00 16 71 9A BD 1F B2 DD C1 82 54 88 ED D8 88 [17:04:54]CheckFolder [17:04:54]dirname=/storage/ofd_packets [17:04:54]CheckFolder done [17:04:54]ProducePacketName [17:04:54]name=ofd_packets/00123090 [17:04:54]NVStorageSaveData ofd_packets/00123090 [17:04:54]File name is /storage/ofd_packets/00123090 [17:04:54]Write 301 bytes [17:04:54]NVStorageSaveData done [17:04:54]OFDSenderStorePacket done [17:04:54]KKMCreateOFDPacket done [17:04:54]NVStorageSaveData kkm_last_timestamp [17:04:54]File name is /storage/kkm_last_timestamp [17:04:54]Write 4 bytes [17:04:54]NVStorageSaveData done [17:04:54]ExternCall_PrintAddStr [17:04:54]wPrintStart [17:04:54]Write to MH i2c: 01 00 00 FF 35 34 [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 07 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 07 00 FF 35 00 00 00 00 00 FF 0F 49 [17:04:54]RasterBufferAndPrint [17:04:54]line Счет N : (1)717886 [17:04:54]line ИНН: 02508201610067 [17:04:54]line Контрольно-Кассовый Чек [17:04:54]line ПРОДАЖА [17:04:54]line ТРК (МРК, ГНК) : 22 [17:04:54]line Товар: 2710124130 [17:04:54]line Аи-92-К-4 [17:04:54]line 4.460 * 67.40 [17:04:54]line = 300.60 [17:04:54]line НДС 12% НСП 1% [17:04:54]line > о реализуемом товаре [17:04:54]line ОКРУГЛЕНИЕ: -0.60 [17:04:54]line ИТОГО: 300.00 [17:04:54]line Внесено: 300.00 [17:04:54]line СДАЧА: 0.00 [17:04:54]line НСП 1% : 2.66 [17:04:54]line НДС 12% : 31.92 [17:04:54]line Наличными: 300.00 [17:04:54]line Безнал.: 0.00 [17:04:54]line Место: АЗС № 64 "Партнер Нефть" [17:04:55]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:04:55]line СНО: Общий режим [17:04:55]line Чек 131 25.11.2024 17:04 [17:04:55]line Смена: 556 ФФД: 1.0 [17:04:55]line ЗНМ: 0300000033 [17:04:55]line РНМ: 0000000000092681 [17:04:55]line Версия ККМ: 001 [17:04:55]line ФМ: 0000000000874881 [17:04:55]line ФД: 123090 [17:04:55]line ФПД: 24677183201202 [17:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T170458&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123090&fm=24677183201202&tin=02508201610067®Number=0000000000092681&sum=30000 [17:04:55]OFD Sender: Processing packet 123090 [packets to send 7, broken 6] [17:04:55]ProducePacketName [17:04:55]name=ofd_packets/00123090 [17:04:55]OFD Sender: To server: pG, [17:04:55]CommunicateWithHost lk.salyk.kg:30040 [17:04:55]ConnectInit lk.salyk.kg [17:04:55]written 0, free lines is 4095 [17:04:55]Connected sock=10 [17:04:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B6 BC 07 01 B3 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D2 E0 01 00 35 04 06 00 16 71 9A BD 1F B2 DD C1 82 54 88 ED D8 88 [17:04:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 BD 0C 47 00 4B 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 34 38 38 31 10 04 04 00 D2 E0 01 00 F4 03 04 00 00 5A 44 67 B6 04 01 00 00 1A AC C6 B3 6D FC 37 E6 [17:04:55]CommunicateWithHost err = 0 [17:04:55]CheckOFDResponse [17:04:55]1017 (14) - 77093643461234 [17:04:55]1041 (16) - 0000000000874881 [17:04:55]1040 (4) - 123090 [17:04:55]1012 (4) - 25.11.2024 11:05 [17:04:55]1206 (1) - 0 [17:04:55]OFD Sender: Remove packet 123090 [17:04:55]ProducePacketName [17:04:55]name=ofd_packets/00123090 [17:04:55]NVStorageDeleteData [17:04:55]Write to MH i2c: 01 00 00 2A 36 60 [17:04:55]Write i2c OK [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: 01 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: 01 07 00 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: 01 07 00 2A 36 00 00 00 00 00 58 0C CB [17:04:55]RasterBufferAndPrint [17:04:55]line [17:04:55]line [17:04:55]line [17:04:55]line [17:04:55]line [17:04:55]written 0, free lines is 3169 [17:04:55]MH_Cut [17:04:55]Write to MH i2c: D1 01 00 31 36 01 39 [17:04:55]Write i2c OK [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: D1 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: D1 01 00 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: D1 01 00 31 36 00 38 [17:04:55]Write to MH i2c: 01 00 00 32 36 68 [17:04:55]Write i2c OK [17:04:55]MH_I2C_Read... [17:04:55]OFD Sender: No OFD packet to send [17:04:56]*** Cut start [17:04:56]*** Partial cut [17:04:56]*** CUTSNS_PIN = 1 [17:04:57]*** CUTSNS_PIN = 0 [17:04:57]*** Brake cut motor [17:04:57]Read from MH i2c: 01 [17:04:57]MH_I2C_Read... [17:04:57]*** Stop cut motor [17:04:57]*** Cut end [17:04:57]Read from MH i2c: 01 07 00 [17:04:57]MH_I2C_Read... [17:04:57]Read from MH i2c: 01 07 00 32 36 00 00 00 00 00 FF 0F 7D [17:04:57]process_action close_receipt done [17:04:57]requested_data is exist [17:04:57]produce_requested_data [17:04:57]requested_item fm.sn is exist - process it [17:04:57]wFMCommunicate request_size=4 [17:04:57]MH_SAM_APDU [17:04:57]CAPDU: 80 11 00 00 [17:04:57]Write to MH i2c: E2 08 00 33 36 80 11 00 00 00 00 00 00 E3 [17:04:57]Write i2c OK [17:04:57]MH_I2C_Read... [17:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:57]Read from MH i2c: E2 [17:04:57]MH_I2C_Read... [17:04:57]Read from MH i2c: E2 17 00 [17:04:57]MH_I2C_Read... [17:04:57]Read from MH i2c: E2 17 00 33 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3A [17:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:04:57]wFMCommunicate OK [17:04:57]requested_item fd.num is exist - process it [17:04:57]SAM_PROTO_GetFieldsCounters [17:04:57]wFMCommunicate request_size=4 [17:04:57]MH_SAM_APDU [17:04:57]CAPDU: 80 13 00 00 [17:04:57]Write to MH i2c: E2 08 00 34 36 80 13 00 00 00 00 00 00 E6 [17:04:57]Write i2c OK [17:04:57]MH_I2C_Read... [17:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:57]Read from MH i2c: E2 [17:04:57]MH_I2C_Read... [17:04:57]Read from MH i2c: E2 62 00 [17:04:57]MH_I2C_Read... [17:04:57]Read from MH i2c: E2 62 00 34 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D2 E0 01 00 0E 04 04 00 2C 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 76 [17:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D2 E0 01 00 0E 04 04 00 2C 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 [17:04:57]wFMCommunicate OK [17:04:57]SAM_PROTO_GetFieldsCounters done [17:04:57]requested_item shift.num is exist - process it [17:04:57]requested_item shift.opened is exist - process it [17:04:57]req_shift_opened [17:04:57]FM_GetShiftState [17:04:57]SAM_PROTO_GetShiftState [17:04:57]wFMCommunicate request_size=4 [17:04:57]MH_SAM_APDU [17:04:57]CAPDU: 80 13 01 00 [17:04:57]Write to MH i2c: E2 08 00 35 36 80 13 01 00 00 00 00 00 E8 [17:04:57]Write i2c OK [17:04:57]MH_I2C_Read... [17:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:57]Read from MH i2c: E2 [17:04:57]MH_I2C_Read... [17:04:57]Read from MH i2c: E2 0E 00 [17:04:57]MH_I2C_Read... [17:04:57]Read from MH i2c: E2 0E 00 35 36 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 67 [17:04:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:04:57]wFMCommunicate OK [17:04:57]SAM_PROTO_GetShiftState done [17:04:57]FM_GetShiftState done [17:04:57]req_shift_opened done [17:04:57]requested_item shift.open_date is exist - process it [17:04:57]req_shift_open_date [17:04:57]req_shift_open_date done [17:04:57]produce_requested_data done [17:04:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123090,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:04:57]process_action_free close_receipt [17:04:57]json_value_free [17:04:57]json_value_free done [17:04:57]process_json_proto returns [17:04:57]Send response to host [17:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123090,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:04:57]free response buf [17:04:57]execute_script done [17:04:57]execute_script returns [17:04:57]free content buf [17:04:57]Sock 9.Close socket [17:04:57]Sock 9.Thread stoped [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:19]accept exits with 7 [17:06:19]New connection [17:06:19]New thread 3066580324 created [17:06:19]Thread 3066723684 joined [17:06:19]Waiting for new connection... [17:06:19] Sock 7.Parse request [17:06:19]Sock 7.Check first char [17:06:19]Sock 7.First char is OK [17:06:19]request: POST /json_proto HTTP/1.0 [17:06:19]Method: POST [17:06:19]URL: /json_proto [17:06:19]Method is POST - this is cgi request [17:06:19]url: /json_proto [17:06:19]query_string will be loaded in cgi processing [17:06:19]execute_cgi json_proto POST (null) [17:06:19]execute_cgi path=json_proto method=POST [17:06:19]POST find Content-Length [17:06:19]Host: 172.17.37.4:8080 [17:06:19]Content-Length: 677 [17:06:19]Content-Type: application/json [17:06:19] [17:06:19]POST finish read [17:06:19]Found Content-Length = 677 [17:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.500, "sum" : 490.10, "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" ] } } [17:06:19]execute_script... [17:06:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.500, "sum" : 490.10, "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" ] } } [17:06:19]POST & json_proto [17:06:19]process_json_proto [17:06:19]json parsed OK: [17:06:19]protocol is kg_v1.0 [17:06:19]action value=close_receipt [17:06:19]process_action close_receipt [17:06:19]cmd_close_receipt [17:06:19]MH_GetDate [17:06:19]Write to MH i2c: F0 00 00 36 36 5B [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: F0 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: F0 09 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: F0 09 00 36 36 00 91 AE 44 67 B8 5A 43 67 0A [17:06:19]GetLastDocTimeStamp 1732554298 [17:06:19]current date 1732554385 [17:06:19]FM_GetShiftState [17:06:19]SAM_PROTO_GetShiftState [17:06:19]wFMCommunicate request_size=4 [17:06:19]MH_SAM_APDU [17:06:19]CAPDU: 80 13 01 00 [17:06:19]Write to MH i2c: E2 08 00 37 36 80 13 01 00 00 00 00 00 EA [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:19]Read from MH i2c: E2 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 0E 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 0E 00 37 36 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 69 [17:06:19]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:06:19]wFMCommunicate OK [17:06:19]SAM_PROTO_GetShiftState done [17:06:19]FM_GetShiftState done [17:06:19]opened in 1732493066 [17:06:19]opened+sec_in_day 1732579466 [17:06:19]quantity*price = 49010 [17:06:19]sum+1 = 49011 [17:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.05 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 132 25.11.2024 17:06 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123091 ФПД: 194830376429294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T170625&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123091&fm=194830376429294&tin=02508201610067®Number=0000000000092681&sum=49000 [17:06:20]StoreToDocumentArchive [17:06:20]shift 556 fd 123091 [17:06:20]save to /storage/0556/doc_00123091 [17:06:20]save last doc name /storage/0556/doc_00123091 to /storage/kkm_last_doc_name [17:06:20]save OK [17:06:20]Clear old archive folders... [17:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:20]tlvbuf is B6F1D3F0 [17:06:20]SAM_PROTO_ClearQueue [17:06:20]wFMCommunicate request_size=4 [17:06:20]MH_SAM_APDU [17:06:20]CAPDU: 80 09 00 00 [17:06:20]Write to MH i2c: E2 08 00 44 36 80 09 00 00 00 00 00 00 EC [17:06:20]Write i2c OK [17:06:20]MH_I2C_Read... [17:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:20]Read from MH i2c: E2 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: E2 03 00 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: E2 03 00 44 36 00 90 00 EE [17:06:20]RAPDU: 90 00 [17:06:20]wFMCommunicate OK [17:06:20]SAM_PROTO_ClearQueue done [17:06:20]KKMCreateOFDPacket [17:06:20]OFDProtocolAddRootSTLVToBuf [17:06:20]FM_MakeSignedData [17:06:20]FM_MakeSignedData [17:06:20]SAM_PROTO_SignData [17:06:20]wFMCommunicate request_size=4 [17:06:20]MH_SAM_APDU [17:06:20]CAPDU: 80 0D 01 02 [17:06:20]Write to MH i2c: E2 08 00 45 36 80 0D 01 02 00 00 00 00 F4 [17:06:20]Write i2c OK [17:06:20]MH_I2C_Read... [17:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:20]Read from MH i2c: E2 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: E2 03 00 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: E2 03 00 45 36 00 90 00 EF [17:06:20]RAPDU: 90 00 [17:06:20]wFMCommunicate OK [17:06:20]wFMCommunicate request_size=255 [17:06:20]MH_SAM_APDU [17:06:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 72 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 55 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 84 00 00 00 F4 03 04 00 91 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D3 E0 01 00 35 04 06 00 B1 [17:06:20]Write to MH i2c: E2 02 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 72 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 55 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 84 00 00 00 F4 03 04 00 91 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D3 E0 01 00 35 04 06 00 B1 00 00 B1 [17:06:20]Write i2c OK [17:06:20]MH_I2C_Read... [17:06:21]OFD Sender: No OFD packet to send [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 46 36 00 90 00 F0 [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 32 7B 60 E6 EE [17:06:21]Write to MH i2c: E2 0D 00 47 36 80 0D 02 02 05 00 32 7B 60 E6 EE 00 00 E2 [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 47 36 00 90 00 F1 [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 48 36 80 0D 03 02 00 00 00 00 F9 [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 48 36 00 15 23 42 3B 33 D2 8A C1 90 00 FF [17:06:21]RAPDU: 15 23 42 3B 33 D2 8A C1 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 49 36 80 11 00 00 00 00 00 00 F9 [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 49 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 50 [17:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:06:21]wFMCommunicate OK [17:06:21]CreateOFDProtocolMessage done [17:06:21]OFDSenderStorePacket 123091 [17:06:21]StoreOFDPacket docnum=123091 [17:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 52 D3 07 01 A9 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 72 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 55 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 84 00 00 00 F4 03 04 00 91 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D3 E0 01 00 35 04 06 00 B1 32 7B 60 E6 EE 15 23 42 3B 33 D2 8A C1 [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/00123091 [17:06:21]NVStorageSaveData ofd_packets/00123091 [17:06:21]File name is /storage/ofd_packets/00123091 [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 4A 36 80 [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 4A 36 00 00 00 00 00 FF 0F 95 [17:06:21]RasterBufferAndPrint [17:06:21]line Счет N : (1)717888 [17:06:21]line ИНН: 02508201610067 [17:06:21]line Контрольно-Кассовый Чек [17:06:21]line ПРОДАЖА [17:06:21]line ТРК (МРК, ГНК) : 11 [17:06:21]line Товар: 2710124500 [17:06:21]line Аи-95-К-5 [17:06:21]line 6.500 * 75.40 [17:06:21]line = 490.10 [17:06:21]line НДС 12% НСП 1% [17:06:21]line > о реализуемом товаре [17:06:21]line ОКРУГЛЕНИЕ: -0.10 [17:06:21]line ИТОГО: 490.00 [17:06:21]line Внесено: 490.00 [17:06:21]line СДАЧА: 0.00 [17:06:21]line НСП 1% : 4.34 [17:06:21]line НДС 12% : 52.05 [17:06:21]line Наличными: 490.00 [17:06:21]line Безнал.: 0.00 [17:06:21]line Место: АЗС № 64 "Партнер Нефть" [17:06:21]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:06:21]line СНО: Общий режим [17:06:21]line Чек 132 25.11.2024 17:06 [17:06:21]line Смена: 556 ФФД: 1.0 [17:06:21]line ЗНМ: 0300000033 [17:06:21]line РНМ: 0000000000092681 [17:06:21]line Версия ККМ: 001 [17:06:21]line ФМ: 0000000000874881 [17:06:21]line ФД: 123091 [17:06:21]line ФПД: 194830376429294 [17:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T170625&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123091&fm=194830376429294&tin=02508201610067®Number=0000000000092681&sum=49000 [17:06:21]OFD Sender: Processing packet 123091 [packets to send 7, broken 6] [17:06:21]ProducePacketName [17:06:21]name=ofd_packets/00123091 [17:06:21]OFD Sender: To server: pG, [17:06:21]CommunicateWithHost lk.salyk.kg:30040 [17:06:21]ConnectInit lk.salyk.kg [17:06:21]written 0, free lines is 4095 [17:06:21]Connected sock=10 [17:06:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 52 D3 07 01 A9 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 72 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 55 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 84 00 00 00 F4 03 04 00 91 AE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D3 E0 01 00 35 04 06 00 B1 32 7B 60 E6 EE 15 23 42 3B 33 D2 8A C1 [17:06:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 16 D9 47 00 9C C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D3 E0 01 00 F4 03 04 00 56 5A 44 67 B6 04 01 00 00 56 2A C1 2D F5 21 64 87 [17:06:21]CommunicateWithHost err = 0 [17:06:21]CheckOFDResponse [17:06:21]1017 (14) - 77093643461234 [17:06:21]1041 (16) - 0000000000874881 [17:06:21]1040 (4) - 123091 [17:06:21]1012 (4) - 25.11.2024 11:07 [17:06:21]1206 (1) - 0 [17:06:21]OFD Sender: Remove packet 123091 [17:06:21]ProducePacketName [17:06:21]name=ofd_packets/00123091 [17:06:21]NVStorageDeleteData [17:06:22]Write to MH i2c: 01 00 00 75 36 AB [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 75 36 00 00 00 00 00 56 0C 14 [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 3161 [17:06:22]MH_Cut [17:06:22]Write to MH i2c: D1 01 00 7C 36 01 84 [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 7C 36 00 83 [17:06:22]Write to MH i2c: 01 00 00 7D 36 B3 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]OFD Sender: No OFD packet to send [17:06:23]*** Cut start [17:06:23]*** Partial cut [17:06:23]*** CUTSNS_PIN = 1 [17:06:23]*** CUTSNS_PIN = 0 [17:06:23]*** Brake cut motor [17:06:24]Read from MH i2c: 01 [17:06:24]MH_I2C_Read... [17:06:24]*** Stop cut motor [17:06:24]*** Cut end [17:06:24]Read from MH i2c: 01 07 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: 01 07 00 7D 36 00 00 00 00 00 FF 0F C8 [17:06:24]process_action close_receipt done [17:06:24]requested_data is exist [17:06:24]produce_requested_data [17:06:24]requested_item fm.sn is exist - process it [17:06:24]wFMCommunicate request_size=4 [17:06:24]MH_SAM_APDU [17:06:24]CAPDU: 80 11 00 00 [17:06:24]Write to MH i2c: E2 08 00 7E 36 80 11 00 00 00 00 00 00 2E [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:24]Read from MH i2c: E2 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 17 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 17 00 7E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 85 [17:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:06:24]wFMCommunicate OK [17:06:24]requested_item fd.num is exist - process it [17:06:24]SAM_PROTO_GetFieldsCounters [17:06:24]wFMCommunicate request_size=4 [17:06:24]MH_SAM_APDU [17:06:24]CAPDU: 80 13 00 00 [17:06:24]Write to MH i2c: E2 08 00 7F 36 80 13 00 00 00 00 00 00 31 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:24]Read from MH i2c: E2 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 62 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 62 00 7F 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D3 E0 01 00 0E 04 04 00 2C 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 C5 [17:06:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D3 E0 01 00 0E 04 04 00 2C 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 [17:06:24]wFMCommunicate OK [17:06:24]SAM_PROTO_GetFieldsCounters done [17:06:24]requested_item shift.num is exist - process it [17:06:24]requested_item shift.opened is exist - process it [17:06:24]req_shift_opened [17:06:24]FM_GetShiftState [17:06:24]SAM_PROTO_GetShiftState [17:06:24]wFMCommunicate request_size=4 [17:06:24]MH_SAM_APDU [17:06:24]CAPDU: 80 13 01 00 [17:06:24]Write to MH i2c: E2 08 00 80 36 80 13 01 00 00 00 00 00 33 [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 80 36 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B2 [17:06:24]RAPDU: 09 00 01 0A BF 43 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":"0000000000874881","fd.num":123091,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [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":"0000000000874881","fd.num":123091,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [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:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:37]accept exits with 9 [17:08:37]New connection [17:08:37]New thread 3066723684 created [17:08:37]Thread 3066580324 joined [17:08:37]Waiting for new connection... [17:08:37] Sock 9.Parse request [17:08:37]Sock 9.Check first char [17:08:37]Sock 9.First char is OK [17:08:37]request: POST /json_proto HTTP/1.0 [17:08:37]Method: POST [17:08:37]URL: /json_proto [17:08:37]Method is POST - this is cgi request [17:08:37]url: /json_proto [17:08:37]query_string will be loaded in cgi processing [17:08:37]execute_cgi json_proto POST (null) [17:08:37]execute_cgi path=json_proto method=POST [17:08:37]POST find Content-Length [17:08:37]Host: 172.17.37.4:8080 [17:08:37]Content-Length: 682 [17:08:37]Content-Type: application/json [17:08:37] [17:08:37]POST finish read [17:08:37]Found Content-Length = 682 [17:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:37]execute_script... [17:08: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)717889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:37]POST & json_proto [17:08:37]process_json_proto [17:08:37]json parsed OK: [17:08:37]protocol is kg_v1.0 [17:08:37]action value=close_receipt [17:08:37]process_action close_receipt [17:08:37]cmd_close_receipt [17:08:37]MH_GetDate [17:08:37]Write to MH i2c: F0 00 00 81 36 A6 [17:08:37]Write i2c OK [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: F0 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: F0 09 00 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: F0 09 00 81 36 00 1B AF 44 67 B8 5A 43 67 E0 [17:08:37]GetLastDocTimeStamp 1732554385 [17:08:37]current date 1732554523 [17:08:37]FM_GetShiftState [17:08:37]SAM_PROTO_GetShiftState [17:08:37]wFMCommunicate request_size=4 [17:08:37]MH_SAM_APDU [17:08:37]CAPDU: 80 13 01 00 [17:08:37]Write to MH i2c: E2 08 00 82 36 80 13 01 00 00 00 00 00 35 [17:08:37]Write i2c OK [17:08:37]MH_I2C_Read... [17:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:37]Read from MH i2c: E2 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 0E 00 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 0E 00 82 36 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B4 [17:08:37]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:08:37]wFMCommunicate OK [17:08:37]SAM_PROTO_GetShiftState done [17:08:37]FM_GetShiftState done [17:08:37]opened in 1732493066 [17:08:37]opened+sec_in_day 1732579466 [17:08:37]quantity*price = 100021 [17:08:37]sum+1 = 100023 [17:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 133 25.11.2024 17:08 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123092 ФПД: 16914553559555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T170843&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123092&fm=16914553559555&tin=02508201610067®Number=0000000000092681&sum=100000 [17:08:38]StoreToDocumentArchive [17:08:38]shift 556 fd 123092 [17:08:38]save to /storage/0556/doc_00123092 [17:08:38]save last doc name /storage/0556/doc_00123092 to /storage/kkm_last_doc_name [17:08:38]save OK [17:08:38]Clear old archive folders... [17:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:38]tlvbuf is 01F46B20 [17:08:38]SAM_PROTO_ClearQueue [17:08:38]wFMCommunicate request_size=4 [17:08:38]MH_SAM_APDU [17:08:38]CAPDU: 80 09 00 00 [17:08:38]Write to MH i2c: E2 08 00 8F 36 80 09 00 00 00 00 00 00 37 [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:38]Read from MH i2c: E2 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 03 00 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 03 00 8F 36 00 90 00 39 [17:08:38]RAPDU: 90 00 [17:08:38]wFMCommunicate OK [17:08:38]SAM_PROTO_ClearQueue done [17:08:38]KKMCreateOFDPacket [17:08:38]OFDProtocolAddRootSTLVToBuf [17:08:38]FM_MakeSignedData [17:08:38]FM_MakeSignedData [17:08:38]SAM_PROTO_SignData [17:08:38]wFMCommunicate request_size=4 [17:08:38]MH_SAM_APDU [17:08:38]CAPDU: 80 0D 01 02 [17:08:38]Write to MH i2c: E2 08 00 90 36 80 0D 01 02 00 00 00 00 3F [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:38]Read from MH i2c: E2 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 03 00 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 03 00 90 36 00 90 00 3A [17:08:38]RAPDU: 90 00 [17:08:38]wFMCommunicate OK [17:08:38]wFMCommunicate request_size=255 [17:08:38]MH_SAM_APDU [17:08:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 1B AF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D4 E0 01 00 35 04 06 00 0F [17:08:38]Write to MH i2c: E2 02 01 91 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 1B AF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D4 E0 01 00 35 04 06 00 0F 00 00 82 [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:39]Read from MH i2c: E2 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: E2 03 00 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: E2 03 00 91 36 00 90 00 3B [17:08:39]RAPDU: 90 00 [17:08:39]wFMCommunicate OK [17:08:39]wFMCommunicate request_size=10 [17:08:39]MH_SAM_APDU [17:08:39]CAPDU: 80 0D 02 02 05 62 39 F4 DA 03 [17:08:39]Write to MH i2c: E2 0D 00 92 36 80 0D 02 02 05 00 62 39 F4 DA 03 00 00 B8 [17:08:39]Write i2c OK [17:08:39]MH_I2C_Read... [17:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:39]Read from MH i2c: E2 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: E2 03 00 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: E2 03 00 92 36 00 90 00 3C [17:08:39]RAPDU: 90 00 [17:08:39]wFMCommunicate OK [17:08:39]wFMCommunicate request_size=4 [17:08:39]MH_SAM_APDU [17:08:39]CAPDU: 80 0D 03 02 [17:08:39]Write to MH i2c: E2 08 00 93 36 80 0D 03 02 00 00 00 00 44 [17:08:39]Write i2c OK [17:08:39]MH_I2C_Read... [17:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:39]Read from MH i2c: E2 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: E2 0B 00 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: E2 0B 00 93 36 00 1D 80 C0 02 AD 86 27 A4 90 00 A2 [17:08:39]RAPDU: 1D 80 C0 02 AD 86 27 A4 90 00 [17:08:39]wFMCommunicate OK [17:08:39]SAM_PROTO_SignData done [17:08:39]FM_MakeSignedData done [17:08:39]CreateOFDProtocolMessage [17:08:39]wFMCommunicate request_size=4 [17:08:39]MH_SAM_APDU [17:08:39]CAPDU: 80 11 00 00 [17:08:39]Write to MH i2c: E2 08 00 94 36 80 11 00 00 00 00 00 00 44 [17:08:39]Write i2c OK [17:08:39]MH_I2C_Read... [17:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:39]Read from MH i2c: E2 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: E2 17 00 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: E2 17 00 94 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9B [17:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:08:39]wFMCommunicate OK [17:08:39]CreateOFDProtocolMessage done [17:08:39]OFDSenderStorePacket 123092 [17:08:39]StoreOFDPacket docnum=123092 [17:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DB 09 07 01 D8 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 1B AF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D4 E0 01 00 35 04 06 00 0F 62 39 F4 DA 03 1D 80 C0 02 AD 86 27 A4 [17:08:39]CheckFolder [17:08:39]dirname=/storage/ofd_packets [17:08:39]CheckFolder done [17:08:39]ProducePacketName [17:08:39]name=ofd_packets/00123092 [17:08:39]NVStorageSaveData ofd_packets/00123092 [17:08:39]File name is /storage/ofd_packets/00123092 [17:08:39]Write 301 bytes [17:08:39]NVStorageSaveData done [17:08:39]OFDSenderStorePacket done [17:08:39]KKMCreateOFDPacket done [17:08:39]NVStorageSaveData kkm_last_timestamp [17:08:39]File name is /storage/kkm_last_timestamp [17:08:39]Write 4 bytes [17:08:39]NVStorageSaveData done [17:08:39]ExternCall_PrintAddStr [17:08:39]wPrintStart [17:08:39]Write to MH i2c: 01 00 00 95 36 CB [17:08:39]Write i2c OK [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: 01 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: 01 07 00 [17:08:39]MH_I2C_Read... [17:08:39]Read from MH i2c: 01 07 00 95 36 00 00 00 00 00 FF 0F E0 [17:08:39]RasterBufferAndPrint [17:08:39]line Счет N : (1)717889 [17:08:39]line ИНН: 02508201610067 [17:08:39]line Контрольно-Кассовый Чек [17:08:39]line ПРОДАЖА [17:08:39]line ТРК (МРК, ГНК) : 12 [17:08:39]line Товар: 2710124130 [17:08:39]line Аи-92-К-4 [17:08:39]line 14.840 * 67.40 [17:08:39]line = 1000.22 [17:08:39]line НДС 12% НСП 1% [17:08:39]line > о реализуемом товаре [17:08:39]line ОКРУГЛЕНИЕ: -0.22 [17:08:39]line ИТОГО: 1000.00 [17:08:39]line Внесено: 1000.00 [17:08:39]line СДАЧА: 0.00 [17:08:39]line НСП 1% : 8.85 [17:08:39]line НДС 12% : 106.22 [17:08:39]line Наличными: 1000.00 [17:08:39]line Безнал.: 0.00 [17:08:39]line Место: АЗС № 64 "Партнер Нефть" [17:08:39]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:08:39]line СНО: Общий режим [17:08:39]line Чек 133 25.11.2024 17:08 [17:08:39]line Смена: 556 ФФД: 1.0 [17:08:39]line ЗНМ: 0300000033 [17:08:39]line РНМ: 0000000000092681 [17:08:39]line Версия ККМ: 001 [17:08:39]line ФМ: 0000000000874881 [17:08:39]line ФД: 123092 [17:08:39]line ФПД: 16914553559555 [17:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T170843&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123092&fm=16914553559555&tin=02508201610067®Number=0000000000092681&sum=100000 [17:08:39]OFD Sender: Processing packet 123092 [packets to send 7, broken 6] [17:08:39]ProducePacketName [17:08:39]name=ofd_packets/00123092 [17:08:39]OFD Sender: To server: pG, [17:08:39]CommunicateWithHost lk.salyk.kg:30040 [17:08:39]ConnectInit lk.salyk.kg [17:08:39]written 0, free lines is 4095 [17:08:39]Connected sock=10 [17:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DB 09 07 01 D8 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 1B AF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D4 E0 01 00 35 04 06 00 0F 62 39 F4 DA 03 1D 80 C0 02 AD 86 27 A4 [17:08:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 54 92 47 00 1A 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D4 E0 01 00 F4 03 04 00 E0 5A 44 67 B6 04 01 00 00 54 E7 70 00 C4 73 F0 AE [17:08:39]CommunicateWithHost err = 0 [17:08:39]CheckOFDResponse [17:08:39]1017 (14) - 77093643461234 [17:08:39]1041 (16) - 0000000000874881 [17:08:39]1040 (4) - 123092 [17:08:39]1012 (4) - 25.11.2024 11:09 [17:08:39]1206 (1) - 0 [17:08:39]OFD Sender: Remove packet 123092 [17:08:39]ProducePacketName [17:08:39]name=ofd_packets/00123092 [17:08:39]NVStorageDeleteData [17:08:40]Write to MH i2c: 01 00 00 C0 36 F6 [17:08:40]Write i2c OK [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: 01 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: 01 07 00 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: 01 07 00 C0 36 00 00 00 00 00 57 0C 60 [17:08:40]RasterBufferAndPrint [17:08:40]line [17:08:40]line [17:08:40]line [17:08:40]line [17:08:40]line [17:08:40]written 0, free lines is 3163 [17:08:40]MH_Cut [17:08:40]Write to MH i2c: D1 01 00 C7 36 01 CF [17:08:40]Write i2c OK [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: D1 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: D1 01 00 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: D1 01 00 C7 36 00 CE [17:08:40]Write to MH i2c: 01 00 00 C8 36 FE [17:08:40]Write i2c OK [17:08:40]MH_I2C_Read... [17:08:40]OFD Sender: No OFD packet to send [17:08:41]*** Cut start [17:08:41]*** Partial cut [17:08:41]*** CUTSNS_PIN = 1 [17:08:41]*** CUTSNS_PIN = 0 [17:08:41]*** Brake cut motor [17:08:42]Read from MH i2c: 01 [17:08:42]MH_I2C_Read... [17:08:42]*** Stop cut motor [17:08:42]*** Cut end [17:08:42]Read from MH i2c: 01 07 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: 01 07 00 C8 36 00 00 00 00 00 FF 0F 13 [17:08:42]process_action close_receipt done [17:08:42]requested_data is exist [17:08:42]produce_requested_data [17:08:42]requested_item fm.sn is exist - process it [17:08:42]wFMCommunicate request_size=4 [17:08:42]MH_SAM_APDU [17:08:42]CAPDU: 80 11 00 00 [17:08:42]Write to MH i2c: E2 08 00 C9 36 80 11 00 00 00 00 00 00 79 [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:42]Read from MH i2c: E2 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 17 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 17 00 C9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D0 [17:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:08:42]wFMCommunicate OK [17:08:42]requested_item fd.num is exist - process it [17:08:42]SAM_PROTO_GetFieldsCounters [17:08:42]wFMCommunicate request_size=4 [17:08:42]MH_SAM_APDU [17:08:42]CAPDU: 80 13 00 00 [17:08:42]Write to MH i2c: E2 08 00 CA 36 80 13 00 00 00 00 00 00 7C [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:42]Read from MH i2c: E2 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 62 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 62 00 CA 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D4 E0 01 00 0E 04 04 00 2C 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 14 [17:08:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D4 E0 01 00 0E 04 04 00 2C 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 [17:08:42]wFMCommunicate OK [17:08:42]SAM_PROTO_GetFieldsCounters done [17:08:42]requested_item shift.num is exist - process it [17:08:42]requested_item shift.opened is exist - process it [17:08:42]req_shift_opened [17:08:42]FM_GetShiftState [17:08:42]SAM_PROTO_GetShiftState [17:08:42]wFMCommunicate request_size=4 [17:08:42]MH_SAM_APDU [17:08:42]CAPDU: 80 13 01 00 [17:08:42]Write to MH i2c: E2 08 00 CB 36 80 13 01 00 00 00 00 00 7E [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:42]Read from MH i2c: E2 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 0E 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 0E 00 CB 36 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FD [17:08:42]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:08:42]wFMCommunicate OK [17:08:42]SAM_PROTO_GetShiftState done [17:08:42]FM_GetShiftState done [17:08:42]req_shift_opened done [17:08:42]requested_item shift.open_date is exist - process it [17:08:42]req_shift_open_date [17:08:42]req_shift_open_date done [17:08:42]produce_requested_data done [17:08:42]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123092,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:08:42]process_action_free close_receipt [17:08:42]json_value_free [17:08:42]json_value_free done [17:08:42]process_json_proto returns [17:08:42]Send response to host [17:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123092,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:08:42]free response buf [17:08:42]execute_script done [17:08:42]execute_script returns [17:08:42]free content buf [17:08:42]Sock 9.Close socket [17:08:42]Sock 9.Thread stoped [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:17]accept exits with 7 [17:10:17]New connection [17:10:17]New thread 3066580324 created [17:10:17]Thread 3066723684 joined [17:10:17]Waiting for new connection... [17:10:17] Sock 7.Parse request [17:10:17]Sock 7.Check first char [17:10:17]Sock 7.First char is OK [17:10:17]request: POST /json_proto HTTP/1.0 [17:10:17]Method: POST [17:10:17]URL: /json_proto [17:10:17]Method is POST - this is cgi request [17:10:17]url: /json_proto [17:10:17]query_string will be loaded in cgi processing [17:10:17]execute_cgi json_proto POST (null) [17:10:17]execute_cgi path=json_proto method=POST [17:10:17]POST find Content-Length [17:10:17]Host: 172.17.37.4:8080 [17:10:17]Content-Length: 790 [17:10:17]Content-Type: application/json [17:10:17] [17:10:17]POST finish read [17:10:17]Found Content-Length = 790 [17:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4163251;4163252", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:17]execute_script... [17:10:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4163251;4163252", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:17]POST & json_proto [17:10:17]process_json_proto [17:10:17]json parsed OK: [17:10:17]protocol is kg_v1.0 [17:10:17]action value=close_receipt [17:10:17]process_action close_receipt [17:10:17]cmd_close_receipt [17:10:17]MH_GetDate [17:10:17]Write to MH i2c: F0 00 00 CC 36 F1 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: F0 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: F0 09 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: F0 09 00 CC 36 00 7F AF 44 67 B8 5A 43 67 8F [17:10:17]GetLastDocTimeStamp 1732554523 [17:10:17]current date 1732554623 [17:10:17]FM_GetShiftState [17:10:17]SAM_PROTO_GetShiftState [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 13 01 00 [17:10:17]Write to MH i2c: E2 08 00 CD 36 80 13 01 00 00 00 00 00 80 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0E 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0E 00 CD 36 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FF [17:10:17]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_GetShiftState done [17:10:17]FM_GetShiftState done [17:10:17]opened in 1732493066 [17:10:17]opened+sec_in_day 1732579466 [17:10:17]quantity*price = 0 [17:10:17]sum+1 = 1 [17:10:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 134 25.11.2024 17:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 4163251;4163252 ФМ: 0000000000874881 ФД: 123093 ФПД: 221727932687411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T171023&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123093&fm=221727932687411&tin=02508201610067®Number=0000000000092681&sum=0 [17:10:18]StoreToDocumentArchive [17:10:18]shift 556 fd 123093 [17:10:18]save to /storage/0556/doc_00123093 [17:10:18]save last doc name /storage/0556/doc_00123093 to /storage/kkm_last_doc_name [17:10:18]save OK [17:10:18]Clear old archive folders... [17:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:18]tlvbuf is 01F42950 [17:10:18]SAM_PROTO_ClearQueue [17:10:18]wFMCommunicate request_size=4 [17:10:18]MH_SAM_APDU [17:10:18]CAPDU: 80 09 00 00 [17:10:18]Write to MH i2c: E2 08 00 DA 36 80 09 00 00 00 00 00 00 82 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:18]Read from MH i2c: E2 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: E2 03 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: E2 03 00 DA 36 00 90 00 84 [17:10:18]RAPDU: 90 00 [17:10:18]wFMCommunicate OK [17:10:18]SAM_PROTO_ClearQueue done [17:10:18]KKMCreateOFDPacket [17:10:18]OFDProtocolAddRootSTLVToBuf [17:10:18]FM_MakeSignedData [17:10:18]FM_MakeSignedData [17:10:18]SAM_PROTO_SignData [17:10:18]wFMCommunicate request_size=4 [17:10:18]MH_SAM_APDU [17:10:18]CAPDU: 80 0D 01 02 [17:10:18]Write to MH i2c: E2 08 00 DB 36 80 0D 01 02 00 00 00 00 8A [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:18]Read from MH i2c: E2 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: E2 03 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: E2 03 00 DB 36 00 90 00 85 [17:10:18]RAPDU: 90 00 [17:10:18]wFMCommunicate OK [17:10:18]wFMCommunicate request_size=255 [17:10:18]MH_SAM_APDU [17:10:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 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 86 00 00 00 F4 03 04 00 7F AF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D5 E0 01 00 35 04 06 00 C9 [17:10:18]Write to MH i2c: E2 02 01 DC 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 34 FF 03 08 00 03 40 9C 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 86 00 00 00 F4 03 04 00 7F AF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D5 E0 01 00 35 04 06 00 C9 00 00 80 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 03 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 03 00 DC 36 00 90 00 86 [17:10:19]RAPDU: 90 00 [17:10:19]wFMCommunicate OK [17:10:19]wFMCommunicate request_size=10 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 0D 02 02 05 A9 0E AA 24 33 [17:10:19]Write to MH i2c: E2 0D 00 DD 36 80 0D 02 02 05 00 A9 0E AA 24 33 00 00 4F [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 03 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 03 00 DD 36 00 90 00 87 [17:10:19]RAPDU: 90 00 [17:10:19]wFMCommunicate OK [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 0D 03 02 [17:10:19]Write to MH i2c: E2 08 00 DE 36 80 0D 03 02 00 00 00 00 8F [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 0B 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 0B 00 DE 36 00 A2 EA 01 64 79 CF 6B BD 90 00 F1 [17:10:19]RAPDU: A2 EA 01 64 79 CF 6B BD 90 00 [17:10:19]wFMCommunicate OK [17:10:19]SAM_PROTO_SignData done [17:10:19]FM_MakeSignedData done [17:10:19]CreateOFDProtocolMessage [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 11 00 00 [17:10:19]Write to MH i2c: E2 08 00 DF 36 80 11 00 00 00 00 00 00 8F [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 17 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 17 00 DF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E6 [17:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:10:19]wFMCommunicate OK [17:10:19]CreateOFDProtocolMessage done [17:10:19]OFDSenderStorePacket 123093 [17:10:19]StoreOFDPacket docnum=123093 [17:10:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 12 74 07 01 35 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 34 FF 03 08 00 03 40 9C 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 86 00 00 00 F4 03 04 00 7F AF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D5 E0 01 00 35 04 06 00 C9 A9 0E AA 24 33 A2 EA 01 64 79 CF 6B BD [17:10:19]CheckFolder [17:10:19]dirname=/storage/ofd_packets [17:10:19]CheckFolder done [17:10:19]ProducePacketName [17:10:19]name=ofd_packets/00123093 [17:10:19]NVStorageSaveData ofd_packets/00123093 [17:10:19]File name is /storage/ofd_packets/00123093 [17:10:19]Write 301 bytes [17:10:19]NVStorageSaveData done [17:10:19]OFDSenderStorePacket done [17:10:19]KKMCreateOFDPacket done [17:10:19]NVStorageSaveData kkm_last_timestamp [17:10:19]File name is /storage/kkm_last_timestamp [17:10:19]Write 4 bytes [17:10:19]NVStorageSaveData done [17:10:19]ExternCall_PrintAddStr [17:10:19]wPrintStart [17:10:19]Write to MH i2c: 01 00 00 E0 36 16 [17:10:19]OFD Sender: Processing packet 123093 [packets to send 7, broken 6] [17:10:19]ProducePacketName [17:10:19]name=ofd_packets/00123093 [17:10:19]OFD Sender: To server: pG, [17:10:19]CommunicateWithHost lk.salyk.kg:30040 [17:10:19]ConnectInit lk.salyk.kg [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 07 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 07 00 E0 36 00 00 00 00 00 FF 0F 2B [17:10:19]RasterBufferAndPrint [17:10:19]line Счет N : (1)717890 [17:10:19]line ИНН: 02508201610067 [17:10:19]line Контрольно-Кассовый Чек [17:10:19]line ПРОДАЖА [17:10:19]line ТРК (МРК, ГНК) : 22 [17:10:19]line Товар: 2710124130 [17:10:19]line Аи-92-К-4 [17:10:19]line 40.000 * 0.00 [17:10:19]line = 0.00 [17:10:19]line НДС 12% НСП 1% [17:10:19]line > о реализуемом товаре [17:10:19]line ИТОГО: 0.00 [17:10:19]line НСП 1% : 0.00 [17:10:19]line НДС 12% : 0.00 [17:10:19]line Наличными: 0.00 [17:10:19]line Безнал.: 0.00 [17:10:19]line Место: АЗС № 64 "Партнер Нефть" [17:10:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:10:19]line СНО: Общий режим [17:10:19]line Чек 134 25.11.2024 17:10 [17:10:19]line Смена: 556 ФФД: 1.0 [17:10:19]line ЗНМ: 0300000033 [17:10:19]line РНМ: 0000000000092681 [17:10:19]line Версия ККМ: 001 [17:10:19]line Талоны: Партнер нефть [17:10:19]line 4163251;4163252 [17:10:19]line ФМ: 0000000000874881 [17:10:19]line ФД: 123093 [17:10:19]line ФПД: 221727932687411 [17:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T171023&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123093&fm=221727932687411&tin=02508201610067®Number=0000000000092681&sum=0 [17:10:19]written 0, free lines is 4095 [17:10:19]Connected sock=9 [17:10:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 12 74 07 01 35 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 34 FF 03 08 00 03 40 9C 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 86 00 00 00 F4 03 04 00 7F AF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D5 E0 01 00 35 04 06 00 C9 A9 0E AA 24 33 A2 EA 01 64 79 CF 6B BD [17:10:19]Write to MH i2c: 01 00 00 0A 37 41 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 07 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 07 00 0A 37 00 00 00 00 00 6E 0C C2 [17:10:19]RasterBufferAndPrint [17:10:19]line [17:10:19]line [17:10:19]line [17:10:19]line [17:10:19]line [17:10:19]written 0, free lines is 3187 [17:10:19]MH_Cut [17:10:19]Write to MH i2c: D1 01 00 11 37 01 1A [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: D1 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: D1 01 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: D1 01 00 11 37 00 19 [17:10:19]Write to MH i2c: 01 00 00 12 37 49 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 EC 8F 47 00 1F FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D5 E0 01 00 F4 03 04 00 44 5B 44 67 B6 04 01 00 00 AE 88 05 A8 B8 62 76 2D [17:10:19]CommunicateWithHost err = 0 [17:10:19]CheckOFDResponse [17:10:19]1017 (14) - 77093643461234 [17:10:19]1041 (16) - 0000000000874881 [17:10:19]1040 (4) - 123093 [17:10:19]1012 (4) - 25.11.2024 11:11 [17:10:19]1206 (1) - 0 [17:10:19]OFD Sender: Remove packet 123093 [17:10:19]ProducePacketName [17:10:19]name=ofd_packets/00123093 [17:10:19]NVStorageDeleteData [17:10:20]OFD Sender: No OFD packet to send [17:10:21]*** Cut start [17:10:21]*** Partial cut [17:10:21]*** CUTSNS_PIN = 1 [17:10:21]*** CUTSNS_PIN = 0 [17:10:21]*** Brake cut motor [17:10:21]Read from MH i2c: 01 [17:10:21]MH_I2C_Read... [17:10:21]*** Stop cut motor [17:10:21]*** Cut end [17:10:21]Read from MH i2c: 01 07 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: 01 07 00 12 37 00 00 00 00 00 FF 0F 5E [17:10:21]process_action close_receipt done [17:10:21]requested_data is exist [17:10:21]produce_requested_data [17:10:21]requested_item fm.sn is exist - process it [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 11 00 00 [17:10:21]Write to MH i2c: E2 08 00 13 37 80 11 00 00 00 00 00 00 C4 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 17 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 17 00 13 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1B [17:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:10:21]wFMCommunicate OK [17:10:21]requested_item fd.num is exist - process it [17:10:21]SAM_PROTO_GetFieldsCounters [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 13 00 00 [17:10:21]Write to MH i2c: E2 08 00 14 37 80 13 00 00 00 00 00 00 C7 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 62 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 62 00 14 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D5 E0 01 00 0E 04 04 00 2C 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 63 [17:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D5 E0 01 00 0E 04 04 00 2C 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 [17:10:21]wFMCommunicate OK [17:10:21]SAM_PROTO_GetFieldsCounters done [17:10:21]requested_item shift.num is exist - process it [17:10:21]requested_item shift.opened is exist - process it [17:10:21]req_shift_opened [17:10:21]FM_GetShiftState [17:10:21]SAM_PROTO_GetShiftState [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 13 01 00 [17:10:21]Write to MH i2c: E2 08 00 15 37 80 13 01 00 00 00 00 00 C9 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 0E 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 0E 00 15 37 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 48 [17:10:21]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:10:21]wFMCommunicate OK [17:10:21]SAM_PROTO_GetShiftState done [17:10:21]FM_GetShiftState done [17:10:21]req_shift_opened done [17:10:21]requested_item shift.open_date is exist - process it [17:10:21]req_shift_open_date [17:10:21]req_shift_open_date done [17:10:21]produce_requested_data done [17:10:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123093,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:10:21]process_action_free close_receipt [17:10:21]json_value_free [17:10:21]json_value_free done [17:10:21]process_json_proto returns [17:10:21]Send response to host [17:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123093,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:10:21]free response buf [17:10:21]execute_script done [17:10:21]execute_script returns [17:10:21]free content buf [17:10:21]Sock 7.Close socket [17:10:21]Sock 7.Thread stoped [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:14]accept exits with 10 [17:14:14]New connection [17:14:14]New thread 3066723684 created [17:14:14]Thread 3066580324 joined [17:14:14]Waiting for new connection... [17:14:14] Sock 10.Parse request [17:14:14]Sock 10.Check first char [17:14:14]Sock 10.First char is OK [17:14:14]request: POST /json_proto HTTP/1.0 [17:14:14]Method: POST [17:14:14]URL: /json_proto [17:14:14]Method is POST - this is cgi request [17:14:14]url: /json_proto [17:14:14]query_string will be loaded in cgi processing [17:14:14]execute_cgi json_proto POST (null) [17:14:14]execute_cgi path=json_proto method=POST [17:14:14]POST find Content-Length [17:14:14]Host: 172.17.37.4:8080 [17:14:14]Content-Length: 677 [17:14:14]Content-Type: application/json [17:14:14] [17:14:14]POST finish read [17:14:14]Found Content-Length = 677 [17:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:14:14]execute_script... [17:14: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)717891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:14:14]POST & json_proto [17:14:14]process_json_proto [17:14:14]json parsed OK: [17:14:14]protocol is kg_v1.0 [17:14:14]action value=close_receipt [17:14:14]process_action close_receipt [17:14:14]cmd_close_receipt [17:14:14]MH_GetDate [17:14:14]Write to MH i2c: F0 00 00 16 37 3C [17:14:14]Write i2c OK [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: F0 [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: F0 09 00 [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: F0 09 00 16 37 00 6C B0 44 67 B8 5A 43 67 C8 [17:14:14]GetLastDocTimeStamp 1732554623 [17:14:14]current date 1732554860 [17:14:14]FM_GetShiftState [17:14:14]SAM_PROTO_GetShiftState [17:14:14]wFMCommunicate request_size=4 [17:14:14]MH_SAM_APDU [17:14:14]CAPDU: 80 13 01 00 [17:14:14]Write to MH i2c: E2 08 00 17 37 80 13 01 00 00 00 00 00 CB [17:14:14]Write i2c OK [17:14:14]MH_I2C_Read... [17:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:14]Read from MH i2c: E2 [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: E2 0E 00 [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: E2 0E 00 17 37 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4A [17:14:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:14:14]wFMCommunicate OK [17:14:14]SAM_PROTO_GetShiftState done [17:14:14]FM_GetShiftState done [17:14:14]opened in 1732493066 [17:14:14]opened+sec_in_day 1732579466 [17:14:14]quantity*price = 30060 [17:14:14]sum+1 = 30061 [17:14:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 135 25.11.2024 17:14 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123094 ФПД: 107543446071778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T171420&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123094&fm=107543446071778&tin=02508201610067®Number=0000000000092681&sum=30000 [17:14:15]StoreToDocumentArchive [17:14:15]shift 556 fd 123094 [17:14:15]save to /storage/0556/doc_00123094 [17:14:15]save last doc name /storage/0556/doc_00123094 to /storage/kkm_last_doc_name [17:14:15]save OK [17:14:15]Clear old archive folders... [17:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:15]tlvbuf is 01F6C460 [17:14:15]SAM_PROTO_ClearQueue [17:14:15]wFMCommunicate request_size=4 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 09 00 00 [17:14:15]Write to MH i2c: E2 08 00 24 37 80 09 00 00 00 00 00 00 CD [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:15]Read from MH i2c: E2 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 24 37 00 90 00 CF [17:14:15]RAPDU: 90 00 [17:14:15]wFMCommunicate OK [17:14:15]SAM_PROTO_ClearQueue done [17:14:15]KKMCreateOFDPacket [17:14:15]OFDProtocolAddRootSTLVToBuf [17:14:15]FM_MakeSignedData [17:14:15]FM_MakeSignedData [17:14:15]SAM_PROTO_SignData [17:14:15]wFMCommunicate request_size=4 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 0D 01 02 [17:14:15]Write to MH i2c: E2 08 00 25 37 80 0D 01 02 00 00 00 00 D5 [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:15]Read from MH i2c: E2 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 25 37 00 90 00 D0 [17:14:15]RAPDU: 90 00 [17:14:15]wFMCommunicate OK [17:14:15]wFMCommunicate request_size=255 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 6C B0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D6 E0 01 00 35 04 06 00 61 [17:14:15]Write to MH i2c: E2 02 01 26 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 6C B0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D6 E0 01 00 35 04 06 00 61 00 00 1C [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:16]Read from MH i2c: E2 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 03 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 03 00 26 37 00 90 00 D1 [17:14:16]RAPDU: 90 00 [17:14:16]wFMCommunicate OK [17:14:16]wFMCommunicate request_size=10 [17:14:16]MH_SAM_APDU [17:14:16]CAPDU: 80 0D 02 02 05 CF 68 E6 A9 E2 [17:14:16]Write to MH i2c: E2 0D 00 27 37 80 0D 02 02 05 00 CF 68 E6 A9 E2 00 00 8A [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:16]Read from MH i2c: E2 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 03 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 03 00 27 37 00 90 00 D2 [17:14:16]RAPDU: 90 00 [17:14:16]wFMCommunicate OK [17:14:16]wFMCommunicate request_size=4 [17:14:16]MH_SAM_APDU [17:14:16]CAPDU: 80 0D 03 02 [17:14:16]Write to MH i2c: E2 08 00 28 37 80 0D 03 02 00 00 00 00 DA [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:16]Read from MH i2c: E2 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 0B 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 0B 00 28 37 00 8E 4B D0 6E F4 A5 D9 57 90 00 BB [17:14:16]RAPDU: 8E 4B D0 6E F4 A5 D9 57 90 00 [17:14:16]wFMCommunicate OK [17:14:16]SAM_PROTO_SignData done [17:14:16]FM_MakeSignedData done [17:14:16]CreateOFDProtocolMessage [17:14:16]wFMCommunicate request_size=4 [17:14:16]MH_SAM_APDU [17:14:16]CAPDU: 80 11 00 00 [17:14:16]Write to MH i2c: E2 08 00 29 37 80 11 00 00 00 00 00 00 DA [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:16]Read from MH i2c: E2 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 17 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 17 00 29 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 31 [17:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:14:16]wFMCommunicate OK [17:14:16]CreateOFDProtocolMessage done [17:14:16]OFDSenderStorePacket 123094 [17:14:16]StoreOFDPacket docnum=123094 [17:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5A 87 07 01 F6 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 6C B0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D6 E0 01 00 35 04 06 00 61 CF 68 E6 A9 E2 8E 4B D0 6E F4 A5 D9 57 [17:14:16]CheckFolder [17:14:16]dirname=/storage/ofd_packets [17:14:16]CheckFolder done [17:14:16]ProducePacketName [17:14:16]name=ofd_packets/00123094 [17:14:16]NVStorageSaveData ofd_packets/00123094 [17:14:16]File name is /storage/ofd_packets/00123094 [17:14:16]Write 301 bytes [17:14:16]NVStorageSaveData done [17:14:16]OFDSenderStorePacket done [17:14:16]KKMCreateOFDPacket done [17:14:16]NVStorageSaveData kkm_last_timestamp [17:14:16]File name is /storage/kkm_last_timestamp [17:14:16]Write 4 bytes [17:14:16]NVStorageSaveData done [17:14:16]ExternCall_PrintAddStr [17:14:16]wPrintStart [17:14:16]Write to MH i2c: 01 00 00 2A 37 61 [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: 01 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: 01 07 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: 01 07 00 2A 37 00 00 00 00 00 FF 0F 76 [17:14:16]RasterBufferAndPrint [17:14:16]line Счет N : (1)717891 [17:14:16]line ИНН: 02508201610067 [17:14:16]line Контрольно-Кассовый Чек [17:14:16]line ПРОДАЖА [17:14:16]line ТРК (МРК, ГНК) : 12 [17:14:16]line Товар: 2710124130 [17:14:16]line Аи-92-К-4 [17:14:16]line 4.460 * 67.40 [17:14:16]line = 300.60 [17:14:16]line НДС 12% НСП 1% [17:14:16]line > о реализуемом товаре [17:14:16]line ОКРУГЛЕНИЕ: -0.60 [17:14:16]line ИТОГО: 300.00 [17:14:16]line Внесено: 300.00 [17:14:16]line СДАЧА: 0.00 [17:14:16]line НСП 1% : 2.66 [17:14:16]line НДС 12% : 31.92 [17:14:16]line Наличными: 300.00 [17:14:16]line Безнал.: 0.00 [17:14:16]line Место: АЗС № 64 "Партнер Нефть" [17:14:16]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:14:16]line СНО: Общий режим [17:14:16]line Чек 135 25.11.2024 17:14 [17:14:16]line Смена: 556 ФФД: 1.0 [17:14:16]line ЗНМ: 0300000033 [17:14:16]line РНМ: 0000000000092681 [17:14:16]line Версия ККМ: 001 [17:14:16]line ФМ: 0000000000874881 [17:14:16]line ФД: 123094 [17:14:16]line ФПД: 107543446071778 [17:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T171420&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123094&fm=107543446071778&tin=02508201610067®Number=0000000000092681&sum=30000 [17:14:16]OFD Sender: Processing packet 123094 [packets to send 7, broken 6] [17:14:16]ProducePacketName [17:14:16]name=ofd_packets/00123094 [17:14:16]OFD Sender: To server: pG, [17:14:16]CommunicateWithHost lk.salyk.kg:30040 [17:14:16]ConnectInit lk.salyk.kg [17:14:16]written 0, free lines is 4095 [17:14:16]Connected sock=9 [17:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5A 87 07 01 F6 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 6C B0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D6 E0 01 00 35 04 06 00 61 CF 68 E6 A9 E2 8E 4B D0 6E F4 A5 D9 57 [17:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 52 C4 47 00 2D B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D6 E0 01 00 F4 03 04 00 31 5C 44 67 B6 04 01 00 00 C2 18 A5 F3 FB D5 15 49 [17:14:16]CommunicateWithHost err = 0 [17:14:16]CheckOFDResponse [17:14:16]1017 (14) - 77093643461234 [17:14:16]1041 (16) - 0000000000874881 [17:14:16]1040 (4) - 123094 [17:14:16]1012 (4) - 25.11.2024 11:14 [17:14:16]1206 (1) - 0 [17:14:16]OFD Sender: Remove packet 123094 [17:14:16]ProducePacketName [17:14:16]name=ofd_packets/00123094 [17:14:16]NVStorageDeleteData [17:14:17]Write to MH i2c: 01 00 00 55 37 8C [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: 01 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: 01 07 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: 01 07 00 55 37 00 00 00 00 00 4C 0C EB [17:14:17]RasterBufferAndPrint [17:14:17]line [17:14:17]line [17:14:17]line [17:14:17]line [17:14:17]line [17:14:17]written 0, free lines is 3152 [17:14:17]MH_Cut [17:14:17]Write to MH i2c: D1 01 00 5C 37 01 65 [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: D1 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: D1 01 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: D1 01 00 5C 37 00 64 [17:14:17]Write to MH i2c: 01 00 00 5D 37 94 [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]OFD Sender: No OFD packet to send [17:14:18]*** Cut start [17:14:18]*** Partial cut [17:14:18]*** CUTSNS_PIN = 1 [17:14:18]*** CUTSNS_PIN = 0 [17:14:18]*** Brake cut motor [17:14:19]Read from MH i2c: 01 [17:14:19]MH_I2C_Read... [17:14:19]*** Stop cut motor [17:14:19]*** Cut end [17:14:19]Read from MH i2c: 01 07 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: 01 07 00 5D 37 00 00 00 00 00 FF 0F A9 [17:14:19]process_action close_receipt done [17:14:19]requested_data is exist [17:14:19]produce_requested_data [17:14:19]requested_item fm.sn is exist - process it [17:14:19]wFMCommunicate request_size=4 [17:14:19]MH_SAM_APDU [17:14:19]CAPDU: 80 11 00 00 [17:14:19]Write to MH i2c: E2 08 00 5E 37 80 11 00 00 00 00 00 00 0F [17:14:19]Write i2c OK [17:14:19]MH_I2C_Read... [17:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:19]Read from MH i2c: E2 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 17 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 17 00 5E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 66 [17:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:14:19]wFMCommunicate OK [17:14:19]requested_item fd.num is exist - process it [17:14:19]SAM_PROTO_GetFieldsCounters [17:14:19]wFMCommunicate request_size=4 [17:14:19]MH_SAM_APDU [17:14:19]CAPDU: 80 13 00 00 [17:14:19]Write to MH i2c: E2 08 00 5F 37 80 13 00 00 00 00 00 00 12 [17:14:19]Write i2c OK [17:14:19]MH_I2C_Read... [17:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:19]Read from MH i2c: E2 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 62 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 62 00 5F 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D6 E0 01 00 0E 04 04 00 2C 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 B2 [17:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D6 E0 01 00 0E 04 04 00 2C 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 [17:14:19]wFMCommunicate OK [17:14:19]SAM_PROTO_GetFieldsCounters done [17:14:19]requested_item shift.num is exist - process it [17:14:19]requested_item shift.opened is exist - process it [17:14:19]req_shift_opened [17:14:19]FM_GetShiftState [17:14:19]SAM_PROTO_GetShiftState [17:14:19]wFMCommunicate request_size=4 [17:14:19]MH_SAM_APDU [17:14:19]CAPDU: 80 13 01 00 [17:14:19]Write to MH i2c: E2 08 00 60 37 80 13 01 00 00 00 00 00 14 [17:14:19]Write i2c OK [17:14:19]MH_I2C_Read... [17:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:19]Read from MH i2c: E2 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 0E 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 0E 00 60 37 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 93 [17:14:19]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:14:19]wFMCommunicate OK [17:14:19]SAM_PROTO_GetShiftState done [17:14:19]FM_GetShiftState done [17:14:19]req_shift_opened done [17:14:19]requested_item shift.open_date is exist - process it [17:14:19]req_shift_open_date [17:14:19]req_shift_open_date done [17:14:19]produce_requested_data done [17:14:19]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123094,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:14:19]process_action_free close_receipt [17:14:19]json_value_free [17:14:19]json_value_free done [17:14:19]process_json_proto returns [17:14:19]Send response to host [17:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123094,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:14:19]free response buf [17:14:19]execute_script done [17:14:19]execute_script returns [17:14:19]free content buf [17:14:19]Sock 10.Close socket [17:14:19]Sock 10.Thread stoped [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:08]accept exits with 7 [17:16:08]New connection [17:16:08]New thread 3066580324 created [17:16:08]Thread 3066723684 joined [17:16:08]Waiting for new connection... [17:16:08] Sock 7.Parse request [17:16:08]Sock 7.Check first char [17:16:08]Sock 7.First char is OK [17:16:08]request: POST /json_proto HTTP/1.0 [17:16:08]Method: POST [17:16:08]URL: /json_proto [17:16:08]Method is POST - this is cgi request [17:16:08]url: /json_proto [17:16:08]query_string will be loaded in cgi processing [17:16:08]execute_cgi json_proto POST (null) [17:16:08]execute_cgi path=json_proto method=POST [17:16:08]POST find Content-Length [17:16:08]Host: 172.17.37.4:8080 [17:16:08]Content-Length: 803 [17:16:08]Content-Type: application/json [17:16:08] [17:16:08]POST finish read [17:16:08]Found Content-Length = 803 [17:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:08]execute_script... [17:16: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)717892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:08]POST & json_proto [17:16:08]process_json_proto [17:16:08]json parsed OK: [17:16:08]protocol is kg_v1.0 [17:16:08]action value=close_receipt [17:16:08]process_action close_receipt [17:16:08]cmd_close_receipt [17:16:08]MH_GetDate [17:16:08]Write to MH i2c: F0 00 00 61 37 87 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: F0 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: F0 09 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: F0 09 00 61 37 00 DE B0 44 67 B8 5A 43 67 85 [17:16:08]GetLastDocTimeStamp 1732554860 [17:16:08]current date 1732554974 [17:16:08]FM_GetShiftState [17:16:08]SAM_PROTO_GetShiftState [17:16:08]wFMCommunicate request_size=4 [17:16:08]MH_SAM_APDU [17:16:08]CAPDU: 80 13 01 00 [17:16:08]Write to MH i2c: E2 08 00 62 37 80 13 01 00 00 00 00 00 16 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:08]Read from MH i2c: E2 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 0E 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 0E 00 62 37 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 95 [17:16:08]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:16:08]wFMCommunicate OK [17:16:08]SAM_PROTO_GetShiftState done [17:16:08]FM_GetShiftState done [17:16:08]opened in 1732493066 [17:16:08]opened+sec_in_day 1732579466 [17:16:08]quantity*price = 100021 [17:16:08]sum+1 = 100023 [17:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 136 25.11.2024 17:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123095 ФПД: 131741631644879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T171614&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123095&fm=131741631644879&tin=02508201610067®Number=0000000000092681&sum=100022 [17:16:09]StoreToDocumentArchive [17:16:09]shift 556 fd 123095 [17:16:09]save to /storage/0556/doc_00123095 [17:16:09]save last doc name /storage/0556/doc_00123095 to /storage/kkm_last_doc_name [17:16:09]save OK [17:16:09]Clear old archive folders... [17:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:09]tlvbuf is 01F42B00 [17:16:09]SAM_PROTO_ClearQueue [17:16:09]wFMCommunicate request_size=4 [17:16:09]MH_SAM_APDU [17:16:09]CAPDU: 80 09 00 00 [17:16:09]Write to MH i2c: E2 08 00 6F 37 80 09 00 00 00 00 00 00 18 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:09]Read from MH i2c: E2 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 6F 37 00 90 00 1A [17:16:09]RAPDU: 90 00 [17:16:09]wFMCommunicate OK [17:16:09]SAM_PROTO_ClearQueue done [17:16:09]KKMCreateOFDPacket [17:16:09]OFDProtocolAddRootSTLVToBuf [17:16:09]FM_MakeSignedData [17:16:09]FM_MakeSignedData [17:16:09]SAM_PROTO_SignData [17:16:09]wFMCommunicate request_size=4 [17:16:09]MH_SAM_APDU [17:16:09]CAPDU: 80 0D 01 02 [17:16:09]Write to MH i2c: E2 08 00 70 37 80 0D 01 02 00 00 00 00 20 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:09]Read from MH i2c: E2 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 70 37 00 90 00 1B [17:16:09]RAPDU: 90 00 [17:16:09]wFMCommunicate OK [17:16:09]wFMCommunicate request_size=255 [17:16:09]MH_SAM_APDU [17:16:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DE B0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D7 E0 01 00 35 04 06 00 77 [17:16:09]Write to MH i2c: E2 02 01 71 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DE B0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D7 E0 01 00 35 04 06 00 77 00 00 C1 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:10]Read from MH i2c: E2 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 03 00 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 03 00 71 37 00 90 00 1C [17:16:10]RAPDU: 90 00 [17:16:10]wFMCommunicate OK [17:16:10]wFMCommunicate request_size=10 [17:16:10]MH_SAM_APDU [17:16:10]CAPDU: 80 0D 02 02 05 D1 7D 28 04 CF [17:16:10]Write to MH i2c: E2 0D 00 72 37 80 0D 02 02 05 00 D1 7D 28 04 CF 00 00 76 [17:16:10]Write i2c OK [17:16:10]MH_I2C_Read... [17:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:10]Read from MH i2c: E2 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 03 00 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 03 00 72 37 00 90 00 1D [17:16:10]RAPDU: 90 00 [17:16:10]wFMCommunicate OK [17:16:10]wFMCommunicate request_size=4 [17:16:10]MH_SAM_APDU [17:16:10]CAPDU: 80 0D 03 02 [17:16:10]Write to MH i2c: E2 08 00 73 37 80 0D 03 02 00 00 00 00 25 [17:16:10]Write i2c OK [17:16:10]MH_I2C_Read... [17:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:10]Read from MH i2c: E2 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 0B 00 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 0B 00 73 37 00 17 FF 54 AC F0 24 F4 A3 90 00 E7 [17:16:10]RAPDU: 17 FF 54 AC F0 24 F4 A3 90 00 [17:16:10]wFMCommunicate OK [17:16:10]SAM_PROTO_SignData done [17:16:10]FM_MakeSignedData done [17:16:10]CreateOFDProtocolMessage [17:16:10]wFMCommunicate request_size=4 [17:16:10]MH_SAM_APDU [17:16:10]CAPDU: 80 11 00 00 [17:16:10]Write to MH i2c: E2 08 00 74 37 80 11 00 00 00 00 00 00 25 [17:16:10]Write i2c OK [17:16:10]MH_I2C_Read... [17:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:10]Read from MH i2c: E2 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 17 00 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 17 00 74 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7C [17:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:16:10]wFMCommunicate OK [17:16:10]CreateOFDProtocolMessage done [17:16:10]OFDSenderStorePacket 123095 [17:16:10]StoreOFDPacket docnum=123095 [17:16:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E8 8B 07 01 AA 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DE B0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D7 E0 01 00 35 04 06 00 77 D1 7D 28 04 CF 17 FF 54 AC F0 24 F4 A3 [17:16:10]CheckFolder [17:16:10]dirname=/storage/ofd_packets [17:16:10]CheckFolder done [17:16:10]ProducePacketName [17:16:10]name=ofd_packets/00123095 [17:16:10]NVStorageSaveData ofd_packets/00123095 [17:16:10]File name is /storage/ofd_packets/00123095 [17:16:10]Write 301 bytes [17:16:10]NVStorageSaveData done [17:16:10]OFDSenderStorePacket done [17:16:10]KKMCreateOFDPacket done [17:16:10]NVStorageSaveData kkm_last_timestamp [17:16:10]File name is /storage/kkm_last_timestamp [17:16:10]Write 4 bytes [17:16:10]NVStorageSaveData done [17:16:10]ExternCall_PrintAddStr [17:16:10]wPrintStart [17:16:10]Write to MH i2c: 01 00 00 75 37 AC [17:16:10]Write i2c OK [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: 01 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: 01 07 00 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: 01 07 00 75 37 00 00 00 00 00 FF 0F C1 [17:16:10]RasterBufferAndPrint [17:16:10]line Счет N : (1)717892 [17:16:10]line ИНН: 02508201610067 [17:16:10]line Контрольно-Кассовый Чек [17:16:10]line ПРОДАЖА [17:16:10]line ТРК (МРК, ГНК) : 22 [17:16:10]line Товар: 2710124130 [17:16:10]line Аи-92-К-4 [17:16:10]line 14.840 * 67.40 [17:16:10]line = 1000.22 [17:16:10]line НДС 12% НСП 1% [17:16:10]line > о реализуемом товаре [17:16:10]line ИТОГО: 1000.22 [17:16:10]line НСП 1% : 8.85 [17:16:10]line НДС 12% : 106.22 [17:16:10]line Наличными: 0.00 [17:16:10]line Безнал.: 1000.22 [17:16:10]line Место: АЗС № 64 "Партнер Нефть" [17:16:10]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:16:10]line СНО: Общий режим [17:16:10]line Чек 136 25.11.2024 17:16 [17:16:10]line Смена: 556 ФФД: 1.0 [17:16:10]line ЗНМ: 0300000033 [17:16:10]line РНМ: 0000000000092681 [17:16:10]line Версия ККМ: 001 [17:16:10]line Платежная система: O! деньги [17:16:10]line ФМ: 0000000000874881 [17:16:10]line ФД: 123095 [17:16:10]line ФПД: 131741631644879 [17:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T171614&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123095&fm=131741631644879&tin=02508201610067®Number=0000000000092681&sum=100022 [17:16:10]OFD Sender: Processing packet 123095 [packets to send 7, broken 6] [17:16:10]ProducePacketName [17:16:10]name=ofd_packets/00123095 [17:16:10]OFD Sender: To server: pG, [17:16:10]CommunicateWithHost lk.salyk.kg:30040 [17:16:10]ConnectInit lk.salyk.kg [17:16:10]written 0, free lines is 4095 [17:16:10]Connected sock=10 [17:16:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E8 8B 07 01 AA 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DE B0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D7 E0 01 00 35 04 06 00 77 D1 7D 28 04 CF 17 FF 54 AC F0 24 F4 A3 [17:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 62 67 47 00 CC 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 34 38 38 31 10 04 04 00 D7 E0 01 00 F4 03 04 00 A3 5C 44 67 B6 04 01 00 00 A2 7D 4E 55 45 96 FD AC [17:16:10]CommunicateWithHost err = 0 [17:16:10]CheckOFDResponse [17:16:10]1017 (14) - 77093643461234 [17:16:10]1041 (16) - 0000000000874881 [17:16:10]1040 (4) - 123095 [17:16:10]1012 (4) - 25.11.2024 11:16 [17:16:10]1206 (1) - 0 [17:16:10]OFD Sender: Remove packet 123095 [17:16:10]ProducePacketName [17:16:10]name=ofd_packets/00123095 [17:16:10]NVStorageDeleteData [17:16:11]Write to MH i2c: 01 00 00 9F 37 D6 [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: 01 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: 01 07 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: 01 07 00 9F 37 00 00 00 00 00 66 0C 4F [17:16:11]RasterBufferAndPrint [17:16:11]line [17:16:11]line [17:16:11]line [17:16:11]line [17:16:11]line [17:16:11]written 0, free lines is 3178 [17:16:11]MH_Cut [17:16:11]Write to MH i2c: D1 01 00 A6 37 01 AF [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: D1 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: D1 01 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: D1 01 00 A6 37 00 AE [17:16:11]Write to MH i2c: 01 00 00 A7 37 DE [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]OFD Sender: No OFD packet to send [17:16:12]*** Cut start [17:16:12]*** Partial cut [17:16:12]*** CUTSNS_PIN = 1 [17:16:12]*** CUTSNS_PIN = 0 [17:16:12]*** Brake cut motor [17:16:13]Read from MH i2c: 01 [17:16:13]MH_I2C_Read... [17:16:13]*** Stop cut motor [17:16:13]*** Cut end [17:16:13]Read from MH i2c: 01 07 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: 01 07 00 A7 37 00 00 00 00 00 FF 0F F3 [17:16:13]process_action close_receipt done [17:16:13]requested_data is exist [17:16:13]produce_requested_data [17:16:13]requested_item fm.sn is exist - process it [17:16:13]wFMCommunicate request_size=4 [17:16:13]MH_SAM_APDU [17:16:13]CAPDU: 80 11 00 00 [17:16:13]Write to MH i2c: E2 08 00 A8 37 80 11 00 00 00 00 00 00 59 [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 17 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 17 00 A8 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B0 [17:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:16:13]wFMCommunicate OK [17:16:13]requested_item fd.num is exist - process it [17:16:13]SAM_PROTO_GetFieldsCounters [17:16:13]wFMCommunicate request_size=4 [17:16:13]MH_SAM_APDU [17:16:13]CAPDU: 80 13 00 00 [17:16:13]Write to MH i2c: E2 08 00 A9 37 80 13 00 00 00 00 00 00 5C [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 62 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 62 00 A9 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D7 E0 01 00 0E 04 04 00 2C 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 00 [17:16:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D7 E0 01 00 0E 04 04 00 2C 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 [17:16:13]wFMCommunicate OK [17:16:13]SAM_PROTO_GetFieldsCounters done [17:16:13]requested_item shift.num is exist - process it [17:16:13]requested_item shift.opened is exist - process it [17:16:13]req_shift_opened [17:16:13]FM_GetShiftState [17:16:13]SAM_PROTO_GetShiftState [17:16:13]wFMCommunicate request_size=4 [17:16:13]MH_SAM_APDU [17:16:13]CAPDU: 80 13 01 00 [17:16:13]Write to MH i2c: E2 08 00 AA 37 80 13 01 00 00 00 00 00 5E [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 0E 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 0E 00 AA 37 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 DD [17:16:13]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:16:13]wFMCommunicate OK [17:16:13]SAM_PROTO_GetShiftState done [17:16:13]FM_GetShiftState done [17:16:13]req_shift_opened done [17:16:13]requested_item shift.open_date is exist - process it [17:16:13]req_shift_open_date [17:16:13]req_shift_open_date done [17:16:13]produce_requested_data done [17:16:13]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123095,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:16:13]process_action_free close_receipt [17:16:13]json_value_free [17:16:13]json_value_free done [17:16:13]process_json_proto returns [17:16:13]Send response to host [17:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123095,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:16:13]free response buf [17:16:13]execute_script done [17:16:13]execute_script returns [17:16:13]free content buf [17:16:13]Sock 7.Close socket [17:16:13]Sock 7.Thread stoped [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:36]accept exits with 9 [17:18:36]New connection [17:18:36]New thread 3066723684 created [17:18:36]Thread 3066580324 joined [17:18:36]Waiting for new connection... [17:18:36] Sock 9.Parse request [17:18:36]Sock 9.Check first char [17:18:36]Sock 9.First char is OK [17:18:36]request: POST /json_proto HTTP/1.0 [17:18:36]Method: POST [17:18:36]URL: /json_proto [17:18:36]Method is POST - this is cgi request [17:18:36]url: /json_proto [17:18:36]query_string will be loaded in cgi processing [17:18:36]execute_cgi json_proto POST (null) [17:18:36]execute_cgi path=json_proto method=POST [17:18:36]POST find Content-Length [17:18:36]Host: 172.17.37.4:8080 [17:18:36]Content-Length: 682 [17:18:36]Content-Type: application/json [17:18:36] [17:18:36]POST finish read [17:18:36]Found Content-Length = 682 [17:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:36]execute_script... [17:18: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)717893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:36]POST & json_proto [17:18:36]process_json_proto [17:18:36]json parsed OK: [17:18:36]protocol is kg_v1.0 [17:18:36]action value=close_receipt [17:18:36]process_action close_receipt [17:18:36]cmd_close_receipt [17:18:36]MH_GetDate [17:18:36]Write to MH i2c: F0 00 00 AB 37 D1 [17:18:36]Write i2c OK [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: F0 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: F0 09 00 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: F0 09 00 AB 37 00 72 B1 44 67 B8 5A 43 67 64 [17:18:36]GetLastDocTimeStamp 1732554974 [17:18:36]current date 1732555122 [17:18:36]FM_GetShiftState [17:18:36]SAM_PROTO_GetShiftState [17:18:36]wFMCommunicate request_size=4 [17:18:36]MH_SAM_APDU [17:18:36]CAPDU: 80 13 01 00 [17:18:36]Write to MH i2c: E2 08 00 AC 37 80 13 01 00 00 00 00 00 60 [17:18:36]Write i2c OK [17:18:36]MH_I2C_Read... [17:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:36]Read from MH i2c: E2 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: E2 0E 00 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: E2 0E 00 AC 37 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 DF [17:18:36]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:18:36]wFMCommunicate OK [17:18:36]SAM_PROTO_GetShiftState done [17:18:36]FM_GetShiftState done [17:18:36]opened in 1732493066 [17:18:36]opened+sec_in_day 1732579466 [17:18:36]quantity*price = 100021 [17:18:36]sum+1 = 100023 [17:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 137 25.11.2024 17:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123096 ФПД: 7260122037372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T171842&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123096&fm=7260122037372&tin=02508201610067®Number=0000000000092681&sum=100000 [17:18:38]StoreToDocumentArchive [17:18:38]shift 556 fd 123096 [17:18:38]save to /storage/0556/doc_00123096 [17:18:38]save last doc name /storage/0556/doc_00123096 to /storage/kkm_last_doc_name [17:18:38]save OK [17:18:38]Clear old archive folders... [17:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:38]tlvbuf is 01F2F490 [17:18:38]SAM_PROTO_ClearQueue [17:18:38]wFMCommunicate request_size=4 [17:18:38]MH_SAM_APDU [17:18:38]CAPDU: 80 09 00 00 [17:18:38]Write to MH i2c: E2 08 00 B9 37 80 09 00 00 00 00 00 00 62 [17:18:38]Write i2c OK [17:18:38]MH_I2C_Read... [17:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:38]Read from MH i2c: E2 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 03 00 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 03 00 B9 37 00 90 00 64 [17:18:38]RAPDU: 90 00 [17:18:38]wFMCommunicate OK [17:18:38]SAM_PROTO_ClearQueue done [17:18:38]KKMCreateOFDPacket [17:18:38]OFDProtocolAddRootSTLVToBuf [17:18:38]FM_MakeSignedData [17:18:38]FM_MakeSignedData [17:18:38]SAM_PROTO_SignData [17:18:38]wFMCommunicate request_size=4 [17:18:38]MH_SAM_APDU [17:18:38]CAPDU: 80 0D 01 02 [17:18:38]Write to MH i2c: E2 08 00 BA 37 80 0D 01 02 00 00 00 00 6A [17:18:38]Write i2c OK [17:18:38]MH_I2C_Read... [17:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:38]Read from MH i2c: E2 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 03 00 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 03 00 BA 37 00 90 00 65 [17:18:38]RAPDU: 90 00 [17:18:38]wFMCommunicate OK [17:18:38]wFMCommunicate request_size=255 [17:18:38]MH_SAM_APDU [17:18:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 72 B1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D8 E0 01 00 35 04 06 00 06 [17:18:38]Write to MH i2c: E2 02 01 BB 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 72 B1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D8 E0 01 00 35 04 06 00 06 00 00 05 [17:18:38]Write i2c OK [17:18:38]MH_I2C_Read... [17:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:38]Read from MH i2c: E2 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 03 00 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 03 00 BB 37 00 90 00 66 [17:18:38]RAPDU: 90 00 [17:18:38]wFMCommunicate OK [17:18:38]wFMCommunicate request_size=10 [17:18:38]MH_SAM_APDU [17:18:38]CAPDU: 80 0D 02 02 05 9A 60 FE BC 7C [17:18:38]Write to MH i2c: E2 0D 00 BC 37 80 0D 02 02 05 00 9A 60 FE BC 7C 00 00 A7 [17:18:38]Write i2c OK [17:18:38]MH_I2C_Read... [17:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:38]Read from MH i2c: E2 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 03 00 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 03 00 BC 37 00 90 00 67 [17:18:38]RAPDU: 90 00 [17:18:38]wFMCommunicate OK [17:18:38]wFMCommunicate request_size=4 [17:18:38]MH_SAM_APDU [17:18:38]CAPDU: 80 0D 03 02 [17:18:38]Write to MH i2c: E2 08 00 BD 37 80 0D 03 02 00 00 00 00 6F [17:18:38]Write i2c OK [17:18:38]MH_I2C_Read... [17:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:38]Read from MH i2c: E2 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 0B 00 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 0B 00 BD 37 00 AD 88 76 36 7B 30 9E D2 90 00 6C [17:18:38]RAPDU: AD 88 76 36 7B 30 9E D2 90 00 [17:18:38]wFMCommunicate OK [17:18:38]SAM_PROTO_SignData done [17:18:38]FM_MakeSignedData done [17:18:38]CreateOFDProtocolMessage [17:18:38]wFMCommunicate request_size=4 [17:18:38]MH_SAM_APDU [17:18:38]CAPDU: 80 11 00 00 [17:18:38]Write to MH i2c: E2 08 00 BE 37 80 11 00 00 00 00 00 00 6F [17:18:38]Write i2c OK [17:18:38]MH_I2C_Read... [17:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:38]Read from MH i2c: E2 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 17 00 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: E2 17 00 BE 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C6 [17:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:18:38]wFMCommunicate OK [17:18:38]CreateOFDProtocolMessage done [17:18:38]OFDSenderStorePacket 123096 [17:18:38]StoreOFDPacket docnum=123096 [17:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DF 43 07 01 6A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 72 B1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D8 E0 01 00 35 04 06 00 06 9A 60 FE BC 7C AD 88 76 36 7B 30 9E D2 [17:18:38]CheckFolder [17:18:38]dirname=/storage/ofd_packets [17:18:38]CheckFolder done [17:18:38]ProducePacketName [17:18:38]name=ofd_packets/00123096 [17:18:38]NVStorageSaveData ofd_packets/00123096 [17:18:38]File name is /storage/ofd_packets/00123096 [17:18:38]Write 301 bytes [17:18:38]NVStorageSaveData done [17:18:38]OFDSenderStorePacket done [17:18:38]KKMCreateOFDPacket done [17:18:38]NVStorageSaveData kkm_last_timestamp [17:18:38]File name is /storage/kkm_last_timestamp [17:18:38]Write 4 bytes [17:18:38]NVStorageSaveData done [17:18:38]ExternCall_PrintAddStr [17:18:38]wPrintStart [17:18:38]Write to MH i2c: 01 00 00 BF 37 F6 [17:18:38]Write i2c OK [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: 01 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: 01 07 00 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: 01 07 00 BF 37 00 00 00 00 00 FF 0F 0B [17:18:38]RasterBufferAndPrint [17:18:38]line Счет N : (1)717893 [17:18:38]line ИНН: 02508201610067 [17:18:38]line Контрольно-Кассовый Чек [17:18:38]line ПРОДАЖА [17:18:38]line ТРК (МРК, ГНК) : 12 [17:18:38]line Товар: 2710124130 [17:18:38]line Аи-92-К-4 [17:18:38]line 14.840 * 67.40 [17:18:38]line = 1000.22 [17:18:38]line НДС 12% НСП 1% [17:18:38]line > о реализуемом товаре [17:18:38]line ОКРУГЛЕНИЕ: -0.22 [17:18:38]line ИТОГО: 1000.00 [17:18:38]line Внесено: 1000.00 [17:18:38]line СДАЧА: 0.00 [17:18:38]line НСП 1% : 8.85 [17:18:38]line НДС 12% : 106.22 [17:18:38]line Наличными: 1000.00 [17:18:38]line Безнал.: 0.00 [17:18:38]line Место: АЗС № 64 "Партнер Нефть" [17:18:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:18:38]line СНО: Общий режим [17:18:38]line Чек 137 25.11.2024 17:18 [17:18:38]line Смена: 556 ФФД: 1.0 [17:18:38]line ЗНМ: 0300000033 [17:18:38]line РНМ: 0000000000092681 [17:18:38]line Версия ККМ: 001 [17:18:38]line ФМ: 0000000000874881 [17:18:38]line ФД: 123096 [17:18:38]line ФПД: 7260122037372 [17:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T171842&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123096&fm=7260122037372&tin=02508201610067®Number=0000000000092681&sum=100000 [17:18:38]OFD Sender: Processing packet 123096 [packets to send 7, broken 6] [17:18:38]ProducePacketName [17:18:38]name=ofd_packets/00123096 [17:18:38]OFD Sender: To server: pG, [17:18:38]CommunicateWithHost lk.salyk.kg:30040 [17:18:38]ConnectInit lk.salyk.kg [17:18:38]written 0, free lines is 4095 [17:18:38]Connected sock=10 [17:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DF 43 07 01 6A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 72 B1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D8 E0 01 00 35 04 06 00 06 9A 60 FE BC 7C AD 88 76 36 7B 30 9E D2 [17:18:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 E2 22 47 00 0C 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D8 E0 01 00 F4 03 04 00 38 5D 44 67 B6 04 01 00 00 92 7F 9F 4C D6 FA 80 56 [17:18:39]CommunicateWithHost err = 0 [17:18:39]CheckOFDResponse [17:18:39]1017 (14) - 77093643461234 [17:18:39]1041 (16) - 0000000000874881 [17:18:39]1040 (4) - 123096 [17:18:39]1012 (4) - 25.11.2024 11:19 [17:18:39]1206 (1) - 0 [17:18:39]OFD Sender: Remove packet 123096 [17:18:39]ProducePacketName [17:18:39]name=ofd_packets/00123096 [17:18:39]NVStorageDeleteData [17:18:39]Write to MH i2c: 01 00 00 EA 37 21 [17:18:39]Write i2c OK [17:18:39]MH_I2C_Read... [17:18:39]Read from MH i2c: 01 [17:18:39]MH_I2C_Read... [17:18:39]Read from MH i2c: 01 07 00 [17:18:39]MH_I2C_Read... [17:18:39]Read from MH i2c: 01 07 00 EA 37 00 00 00 00 00 50 0C 84 [17:18:39]RasterBufferAndPrint [17:18:39]line [17:18:39]line [17:18:39]line [17:18:39]line [17:18:39]line [17:18:39]written 0, free lines is 3156 [17:18:39]MH_Cut [17:18:39]Write to MH i2c: D1 01 00 F1 37 01 FA [17:18:39]Write i2c OK [17:18:39]MH_I2C_Read... [17:18:39]Read from MH i2c: D1 [17:18:39]MH_I2C_Read... [17:18:39]Read from MH i2c: D1 01 00 [17:18:39]MH_I2C_Read... [17:18:39]Read from MH i2c: D1 01 00 F1 37 00 F9 [17:18:39]Write to MH i2c: 01 00 00 F2 37 29 [17:18:39]Write i2c OK [17:18:39]MH_I2C_Read... [17:18:39]OFD Sender: No OFD packet to send [17:18:40]*** Cut start [17:18:40]*** Partial cut [17:18:40]*** CUTSNS_PIN = 1 [17:18:40]*** CUTSNS_PIN = 0 [17:18:41]*** Brake cut motor [17:18:41]Read from MH i2c: 01 [17:18:41]MH_I2C_Read... [17:18:41]*** Stop cut motor [17:18:41]*** Cut end [17:18:41]Read from MH i2c: 01 07 00 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: 01 07 00 F2 37 00 00 00 00 00 FF 0F 3E [17:18:41]process_action close_receipt done [17:18:41]requested_data is exist [17:18:41]produce_requested_data [17:18:41]requested_item fm.sn is exist - process it [17:18:41]wFMCommunicate request_size=4 [17:18:41]MH_SAM_APDU [17:18:41]CAPDU: 80 11 00 00 [17:18:41]Write to MH i2c: E2 08 00 F3 37 80 11 00 00 00 00 00 00 A4 [17:18:41]Write i2c OK [17:18:41]MH_I2C_Read... [17:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:41]Read from MH i2c: E2 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 17 00 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 17 00 F3 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FB [17:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:18:41]wFMCommunicate OK [17:18:41]requested_item fd.num is exist - process it [17:18:41]SAM_PROTO_GetFieldsCounters [17:18:41]wFMCommunicate request_size=4 [17:18:41]MH_SAM_APDU [17:18:41]CAPDU: 80 13 00 00 [17:18:41]Write to MH i2c: E2 08 00 F4 37 80 13 00 00 00 00 00 00 A7 [17:18:41]Write i2c OK [17:18:41]MH_I2C_Read... [17:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:41]Read from MH i2c: E2 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 62 00 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 62 00 F4 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D8 E0 01 00 0E 04 04 00 2C 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 4F [17:18:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D8 E0 01 00 0E 04 04 00 2C 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 [17:18:41]wFMCommunicate OK [17:18:41]SAM_PROTO_GetFieldsCounters done [17:18:41]requested_item shift.num is exist - process it [17:18:41]requested_item shift.opened is exist - process it [17:18:41]req_shift_opened [17:18:41]FM_GetShiftState [17:18:41]SAM_PROTO_GetShiftState [17:18:41]wFMCommunicate request_size=4 [17:18:41]MH_SAM_APDU [17:18:41]CAPDU: 80 13 01 00 [17:18:41]Write to MH i2c: E2 08 00 F5 37 80 13 01 00 00 00 00 00 A9 [17:18:41]Write i2c OK [17:18:41]MH_I2C_Read... [17:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:41]Read from MH i2c: E2 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 0E 00 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 0E 00 F5 37 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 28 [17:18:41]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:18:41]wFMCommunicate OK [17:18:41]SAM_PROTO_GetShiftState done [17:18:41]FM_GetShiftState done [17:18:41]req_shift_opened done [17:18:41]requested_item shift.open_date is exist - process it [17:18:41]req_shift_open_date [17:18:41]req_shift_open_date done [17:18:41]produce_requested_data done [17:18:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123096,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:18:41]process_action_free close_receipt [17:18:41]json_value_free [17:18:41]json_value_free done [17:18:41]process_json_proto returns [17:18:41]Send response to host [17:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123096,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:18:41]free response buf [17:18:41]execute_script done [17:18:41]execute_script returns [17:18:41]free content buf [17:18:41]Sock 9.Close socket [17:18:41]Sock 9.Thread stoped [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:56]accept exits with 7 [17:21:56]New connection [17:21:56]New thread 3066580324 created [17:21:56]Thread 3066723684 joined [17:21:56]Waiting for new connection... [17:21:56] Sock 7.Parse request [17:21:56]Sock 7.Check first char [17:21:56]Sock 7.First char is OK [17:21:56]request: POST /json_proto HTTP/1.0 [17:21:56]Method: POST [17:21:56]URL: /json_proto [17:21:56]Method is POST - this is cgi request [17:21:56]url: /json_proto [17:21:56]query_string will be loaded in cgi processing [17:21:56]execute_cgi json_proto POST (null) [17:21:56]execute_cgi path=json_proto method=POST [17:21:56]POST find Content-Length [17:21:56]Host: 172.17.37.4:8080 [17:21:56]Content-Length: 682 [17:21:56]Content-Type: application/json [17:21:56] [17:21:56]POST finish read [17:21:56]Found Content-Length = 682 [17:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:56]execute_script... [17:21: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)717894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:56]POST & json_proto [17:21:56]process_json_proto [17:21:56]json parsed OK: [17:21:56]protocol is kg_v1.0 [17:21:56]action value=close_receipt [17:21:56]process_action close_receipt [17:21:56]cmd_close_receipt [17:21:56]MH_GetDate [17:21:56]Write to MH i2c: F0 00 00 F6 37 1C [17:21:56]Write i2c OK [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: F0 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: F0 09 00 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: F0 09 00 F6 37 00 3A B2 44 67 B8 5A 43 67 78 [17:21:56]GetLastDocTimeStamp 1732555122 [17:21:56]current date 1732555322 [17:21:56]FM_GetShiftState [17:21:56]SAM_PROTO_GetShiftState [17:21:56]wFMCommunicate request_size=4 [17:21:56]MH_SAM_APDU [17:21:56]CAPDU: 80 13 01 00 [17:21:56]Write to MH i2c: E2 08 00 F7 37 80 13 01 00 00 00 00 00 AB [17:21:56]Write i2c OK [17:21:56]MH_I2C_Read... [17:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:56]Read from MH i2c: E2 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: E2 0E 00 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: E2 0E 00 F7 37 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2A [17:21:56]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:21:56]wFMCommunicate OK [17:21:56]SAM_PROTO_GetShiftState done [17:21:56]FM_GetShiftState done [17:21:56]opened in 1732493066 [17:21:56]opened+sec_in_day 1732579466 [17:21:56]quantity*price = 100021 [17:21:56]sum+1 = 100023 [17:21:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 138 25.11.2024 17:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123097 ФПД: 169979278908607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T172202&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123097&fm=169979278908607&tin=02508201610067®Number=0000000000092681&sum=100000 [17:21:57]StoreToDocumentArchive [17:21:57]shift 556 fd 123097 [17:21:57]save to /storage/0556/doc_00123097 [17:21:57]save last doc name /storage/0556/doc_00123097 to /storage/kkm_last_doc_name [17:21:57]save OK [17:21:57]Clear old archive folders... [17:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:57]tlvbuf is 020A9510 [17:21:57]SAM_PROTO_ClearQueue [17:21:57]wFMCommunicate request_size=4 [17:21:57]MH_SAM_APDU [17:21:57]CAPDU: 80 09 00 00 [17:21:57]Write to MH i2c: E2 08 00 04 38 80 09 00 00 00 00 00 00 AE [17:21:57]Write i2c OK [17:21:57]MH_I2C_Read... [17:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:57]Read from MH i2c: E2 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 03 00 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 03 00 04 38 00 90 00 B0 [17:21:57]RAPDU: 90 00 [17:21:57]wFMCommunicate OK [17:21:57]SAM_PROTO_ClearQueue done [17:21:57]KKMCreateOFDPacket [17:21:57]OFDProtocolAddRootSTLVToBuf [17:21:57]FM_MakeSignedData [17:21:57]FM_MakeSignedData [17:21:57]SAM_PROTO_SignData [17:21:57]wFMCommunicate request_size=4 [17:21:57]MH_SAM_APDU [17:21:57]CAPDU: 80 0D 01 02 [17:21:57]Write to MH i2c: E2 08 00 05 38 80 0D 01 02 00 00 00 00 B6 [17:21:57]Write i2c OK [17:21:57]MH_I2C_Read... [17:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:57]Read from MH i2c: E2 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 03 00 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 03 00 05 38 00 90 00 B1 [17:21:57]RAPDU: 90 00 [17:21:57]wFMCommunicate OK [17:21:57]wFMCommunicate request_size=255 [17:21:57]MH_SAM_APDU [17:21:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3A B2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D9 E0 01 00 35 04 06 00 9A [17:21:57]Write to MH i2c: E2 02 01 06 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3A B2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D9 E0 01 00 35 04 06 00 9A 00 00 B0 [17:21:57]Write i2c OK [17:21:57]MH_I2C_Read... [17:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:57]Read from MH i2c: E2 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 03 00 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 03 00 06 38 00 90 00 B2 [17:21:57]RAPDU: 90 00 [17:21:57]wFMCommunicate OK [17:21:57]wFMCommunicate request_size=10 [17:21:57]MH_SAM_APDU [17:21:57]CAPDU: 80 0D 02 02 05 98 62 89 DC BF [17:21:57]Write to MH i2c: E2 0D 00 07 38 80 0D 02 02 05 00 98 62 89 DC BF 00 00 E1 [17:21:57]Write i2c OK [17:21:57]MH_I2C_Read... [17:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:57]Read from MH i2c: E2 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 03 00 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 03 00 07 38 00 90 00 B3 [17:21:57]RAPDU: 90 00 [17:21:57]wFMCommunicate OK [17:21:57]wFMCommunicate request_size=4 [17:21:57]MH_SAM_APDU [17:21:57]CAPDU: 80 0D 03 02 [17:21:57]Write to MH i2c: E2 08 00 08 38 80 0D 03 02 00 00 00 00 BB [17:21:57]Write i2c OK [17:21:57]MH_I2C_Read... [17:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:57]Read from MH i2c: E2 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 0B 00 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 0B 00 08 38 00 D6 6B 6A 4C CE 3C 63 26 90 00 46 [17:21:57]RAPDU: D6 6B 6A 4C CE 3C 63 26 90 00 [17:21:57]wFMCommunicate OK [17:21:57]SAM_PROTO_SignData done [17:21:57]FM_MakeSignedData done [17:21:57]CreateOFDProtocolMessage [17:21:57]wFMCommunicate request_size=4 [17:21:57]MH_SAM_APDU [17:21:57]CAPDU: 80 11 00 00 [17:21:57]Write to MH i2c: E2 08 00 09 38 80 11 00 00 00 00 00 00 BB [17:21:57]Write i2c OK [17:21:57]MH_I2C_Read... [17:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:58]Read from MH i2c: E2 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 17 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 17 00 09 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 12 [17:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:21:58]wFMCommunicate OK [17:21:58]CreateOFDProtocolMessage done [17:21:58]OFDSenderStorePacket 123097 [17:21:58]StoreOFDPacket docnum=123097 [17:21:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A7 D9 07 01 56 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3A B2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D9 E0 01 00 35 04 06 00 9A 98 62 89 DC BF D6 6B 6A 4C CE 3C 63 26 [17:21:58]CheckFolder [17:21:58]dirname=/storage/ofd_packets [17:21:58]CheckFolder done [17:21:58]ProducePacketName [17:21:58]name=ofd_packets/00123097 [17:21:58]NVStorageSaveData ofd_packets/00123097 [17:21:58]File name is /storage/ofd_packets/00123097 [17:21:58]Write 301 bytes [17:21:58]NVStorageSaveData done [17:21:58]OFDSenderStorePacket done [17:21:58]KKMCreateOFDPacket done [17:21:58]NVStorageSaveData kkm_last_timestamp [17:21:58]File name is /storage/kkm_last_timestamp [17:21:58]Write 4 bytes [17:21:58]NVStorageSaveData done [17:21:58]ExternCall_PrintAddStr [17:21:58]wPrintStart [17:21:58]Write to MH i2c: 01 00 00 0A 38 42 [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 0A 38 00 00 00 00 00 FF 0F 57 [17:21:58]RasterBufferAndPrint [17:21:58]line Счет N : (1)717894 [17:21:58]line ИНН: 02508201610067 [17:21:58]line Контрольно-Кассовый Чек [17:21:58]line ПРОДАЖА [17:21:58]line ТРК (МРК, ГНК) : 32 [17:21:58]line Товар: 2710124130 [17:21:58]line Аи-92-К-4 [17:21:58]line 14.840 * 67.40 [17:21:58]line = 1000.22 [17:21:58]line НДС 12% НСП 1% [17:21:58]line > о реализуемом товаре [17:21:58]line ОКРУГЛЕНИЕ: -0.22 [17:21:58]line ИТОГО: 1000.00 [17:21:58]line Внесено: 1000.00 [17:21:58]line СДАЧА: 0.00 [17:21:58]line НСП 1% : 8.85 [17:21:58]line НДС 12% : 106.22 [17:21:58]line Наличными: 1000.00 [17:21:58]line Безнал.: 0.00 [17:21:58]line Место: АЗС № 64 "Партнер Нефть" [17:21:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:21:58]line СНО: Общий режим [17:21:58]line Чек 138 25.11.2024 17:22 [17:21:58]line Смена: 556 ФФД: 1.0 [17:21:58]line ЗНМ: 0300000033 [17:21:58]line РНМ: 0000000000092681 [17:21:58]line Версия ККМ: 001 [17:21:58]line ФМ: 0000000000874881 [17:21:58]line ФД: 123097 [17:21:58]line ФПД: 169979278908607 [17:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T172202&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123097&fm=169979278908607&tin=02508201610067®Number=0000000000092681&sum=100000 [17:21:58]OFD Sender: Processing packet 123097 [packets to send 7, broken 6] [17:21:58]ProducePacketName [17:21:58]name=ofd_packets/00123097 [17:21:58]OFD Sender: To server: pG, [17:21:58]CommunicateWithHost lk.salyk.kg:30040 [17:21:58]ConnectInit lk.salyk.kg [17:21:58]written 0, free lines is 4095 [17:21:58]Connected sock=10 [17:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A7 D9 07 01 56 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3A B2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D9 E0 01 00 35 04 06 00 9A 98 62 89 DC BF D6 6B 6A 4C CE 3C 63 26 [17:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 E6 F7 47 00 28 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 34 38 38 31 10 04 04 00 D9 E0 01 00 F4 03 04 00 FF 5D 44 67 B6 04 01 00 00 3D 2B 8A 2B 41 C4 7F F0 [17:21:58]CommunicateWithHost err = 0 [17:21:58]CheckOFDResponse [17:21:58]1017 (14) - 77093643461234 [17:21:58]1041 (16) - 0000000000874881 [17:21:58]1040 (4) - 123097 [17:21:58]1012 (4) - 25.11.2024 11:22 [17:21:58]1206 (1) - 0 [17:21:58]OFD Sender: Remove packet 123097 [17:21:58]ProducePacketName [17:21:58]name=ofd_packets/00123097 [17:21:58]NVStorageDeleteData [17:21:58]Write to MH i2c: 01 00 00 35 38 6D [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 35 38 00 00 00 00 00 49 0C C9 [17:21:58]RasterBufferAndPrint [17:21:58]line [17:21:58]line [17:21:58]line [17:21:58]line [17:21:58]line [17:21:58]written 0, free lines is 3149 [17:21:58]MH_Cut [17:21:58]Write to MH i2c: D1 01 00 3C 38 01 46 [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: D1 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: D1 01 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: D1 01 00 3C 38 00 45 [17:21:58]Write to MH i2c: 01 00 00 3D 38 75 [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:59]OFD Sender: No OFD packet to send [17:22:00]*** Cut start [17:22:00]*** Partial cut [17:22:00]*** CUTSNS_PIN = 1 [17:22:00]*** CUTSNS_PIN = 0 [17:22:00]*** Brake cut motor [17:22:00]Read from MH i2c: 01 [17:22:00]MH_I2C_Read... [17:22:00]*** Stop cut motor [17:22:00]*** Cut end [17:22:00]Read from MH i2c: 01 07 00 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: 01 07 00 3D 38 00 00 00 00 00 FF 0F 8A [17:22:00]process_action close_receipt done [17:22:00]requested_data is exist [17:22:00]produce_requested_data [17:22:00]requested_item fm.sn is exist - process it [17:22:00]wFMCommunicate request_size=4 [17:22:00]MH_SAM_APDU [17:22:00]CAPDU: 80 11 00 00 [17:22:00]Write to MH i2c: E2 08 00 3E 38 80 11 00 00 00 00 00 00 F0 [17:22:00]Write i2c OK [17:22:00]MH_I2C_Read... [17:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:00]Read from MH i2c: E2 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 17 00 [17:22:00]MH_I2C_Read... [17:22:00]Read from MH i2c: E2 17 00 3E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 47 [17:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:22:00]wFMCommunicate OK [17:22:00]requested_item fd.num is exist - process it [17:22:00]SAM_PROTO_GetFieldsCounters [17:22:00]wFMCommunicate request_size=4 [17:22:00]MH_SAM_APDU [17:22:00]CAPDU: 80 13 00 00 [17:22:00]Write to MH i2c: E2 08 00 3F 38 80 13 00 00 00 00 00 00 F3 [17:22:00]Write i2c OK [17:22:00]MH_I2C_Read... [17:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:01]Read from MH i2c: E2 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 62 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 62 00 3F 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D9 E0 01 00 0E 04 04 00 2C 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 9F [17:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 D9 E0 01 00 0E 04 04 00 2C 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 [17:22:01]wFMCommunicate OK [17:22:01]SAM_PROTO_GetFieldsCounters done [17:22:01]requested_item shift.num is exist - process it [17:22:01]requested_item shift.opened is exist - process it [17:22:01]req_shift_opened [17:22:01]FM_GetShiftState [17:22:01]SAM_PROTO_GetShiftState [17:22:01]wFMCommunicate request_size=4 [17:22:01]MH_SAM_APDU [17:22:01]CAPDU: 80 13 01 00 [17:22:01]Write to MH i2c: E2 08 00 40 38 80 13 01 00 00 00 00 00 F5 [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:01]Read from MH i2c: E2 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 0E 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 0E 00 40 38 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 74 [17:22:01]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:22:01]wFMCommunicate OK [17:22:01]SAM_PROTO_GetShiftState done [17:22:01]FM_GetShiftState done [17:22:01]req_shift_opened done [17:22:01]requested_item shift.open_date is exist - process it [17:22:01]req_shift_open_date [17:22:01]req_shift_open_date done [17:22:01]produce_requested_data done [17:22:01]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123097,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:22:01]process_action_free close_receipt [17:22:01]json_value_free [17:22:01]json_value_free done [17:22:01]process_json_proto returns [17:22:01]Send response to host [17:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123097,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:22:01]free response buf [17:22:01]execute_script done [17:22:01]execute_script returns [17:22:01]free content buf [17:22:01]Sock 7.Close socket [17:22:01]Sock 7.Thread stoped [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:27]accept exits with 9 [17:22:27]New connection [17:22:27]New thread 3066723684 created [17:22:27]Thread 3066580324 joined [17:22:27]Waiting for new connection... [17:22:27] Sock 9.Parse request [17:22:27]Sock 9.Check first char [17:22:27]Sock 9.First char is OK [17:22:27]request: POST /json_proto HTTP/1.0 [17:22:27]Method: POST [17:22:27]URL: /json_proto [17:22:27]Method is POST - this is cgi request [17:22:27]url: /json_proto [17:22:27]query_string will be loaded in cgi processing [17:22:27]execute_cgi json_proto POST (null) [17:22:27]execute_cgi path=json_proto method=POST [17:22:27]POST find Content-Length [17:22:27]Host: 172.17.37.4:8080 [17:22:27]Content-Length: 682 [17:22:27]Content-Type: application/json [17:22:27] [17:22:27]POST finish read [17:22:27]Found Content-Length = 682 [17:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:27]execute_script... [17:22: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)717895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:27]POST & json_proto [17:22:27]process_json_proto [17:22:27]json parsed OK: [17:22:27]protocol is kg_v1.0 [17:22:27]action value=close_receipt [17:22:27]process_action close_receipt [17:22:27]cmd_close_receipt [17:22:27]MH_GetDate [17:22:27]Write to MH i2c: F0 00 00 41 38 68 [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: F0 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: F0 09 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: F0 09 00 41 38 00 59 B2 44 67 B8 5A 43 67 E3 [17:22:27]GetLastDocTimeStamp 1732555322 [17:22:27]current date 1732555353 [17:22:27]FM_GetShiftState [17:22:27]SAM_PROTO_GetShiftState [17:22:27]wFMCommunicate request_size=4 [17:22:27]MH_SAM_APDU [17:22:27]CAPDU: 80 13 01 00 [17:22:27]Write to MH i2c: E2 08 00 42 38 80 13 01 00 00 00 00 00 F7 [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:27]Read from MH i2c: E2 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 0E 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 0E 00 42 38 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 76 [17:22:27]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:22:27]wFMCommunicate OK [17:22:27]SAM_PROTO_GetShiftState done [17:22:27]FM_GetShiftState done [17:22:27]opened in 1732493066 [17:22:27]opened+sec_in_day 1732579466 [17:22:27]quantity*price = 100021 [17:22:27]sum+1 = 100023 [17:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 139 25.11.2024 17:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123098 ФПД: 189996145078228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T172233&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123098&fm=189996145078228&tin=02508201610067®Number=0000000000092681&sum=100000 [17:22:28]StoreToDocumentArchive [17:22:28]shift 556 fd 123098 [17:22:28]save to /storage/0556/doc_00123098 [17:22:28]save last doc name /storage/0556/doc_00123098 to /storage/kkm_last_doc_name [17:22:28]save OK [17:22:28]Clear old archive folders... [17:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:28]tlvbuf is 00051400 [17:22:28]SAM_PROTO_ClearQueue [17:22:28]wFMCommunicate request_size=4 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 09 00 00 [17:22:28]Write to MH i2c: E2 08 00 4F 38 80 09 00 00 00 00 00 00 F9 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 4F 38 00 90 00 FB [17:22:28]RAPDU: 90 00 [17:22:28]wFMCommunicate OK [17:22:28]SAM_PROTO_ClearQueue done [17:22:28]KKMCreateOFDPacket [17:22:28]OFDProtocolAddRootSTLVToBuf [17:22:28]FM_MakeSignedData [17:22:28]FM_MakeSignedData [17:22:28]SAM_PROTO_SignData [17:22:28]wFMCommunicate request_size=4 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 0D 01 02 [17:22:28]Write to MH i2c: E2 08 00 50 38 80 0D 01 02 00 00 00 00 01 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 50 38 00 90 00 FC [17:22:28]RAPDU: 90 00 [17:22:28]wFMCommunicate OK [17:22:28]wFMCommunicate request_size=255 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 59 B2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DA E0 01 00 35 04 06 00 AC [17:22:28]Write to MH i2c: E2 02 01 51 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 59 B2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DA E0 01 00 35 04 06 00 AC 00 00 2E [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 51 38 00 90 00 FD [17:22:28]RAPDU: 90 00 [17:22:28]wFMCommunicate OK [17:22:28]wFMCommunicate request_size=10 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 0D 02 02 05 CC EC BC 6F D4 [17:22:28]Write to MH i2c: E2 0D 00 52 38 80 0D 02 02 05 00 CC EC BC 6F D4 00 00 C5 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 03 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 03 00 52 38 00 90 00 FE [17:22:29]RAPDU: 90 00 [17:22:29]wFMCommunicate OK [17:22:29]wFMCommunicate request_size=4 [17:22:29]MH_SAM_APDU [17:22:29]CAPDU: 80 0D 03 02 [17:22:29]Write to MH i2c: E2 08 00 53 38 80 0D 03 02 00 00 00 00 06 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 0B 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 0B 00 53 38 00 30 27 2E 26 93 0B AC 3D 90 00 39 [17:22:29]RAPDU: 30 27 2E 26 93 0B AC 3D 90 00 [17:22:29]wFMCommunicate OK [17:22:29]SAM_PROTO_SignData done [17:22:29]FM_MakeSignedData done [17:22:29]CreateOFDProtocolMessage [17:22:29]wFMCommunicate request_size=4 [17:22:29]MH_SAM_APDU [17:22:29]CAPDU: 80 11 00 00 [17:22:29]Write to MH i2c: E2 08 00 54 38 80 11 00 00 00 00 00 00 06 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 17 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 17 00 54 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5D [17:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:22:29]wFMCommunicate OK [17:22:29]CreateOFDProtocolMessage done [17:22:29]OFDSenderStorePacket 123098 [17:22:29]StoreOFDPacket docnum=123098 [17:22:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 99 59 07 01 FE 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 59 B2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DA E0 01 00 35 04 06 00 AC CC EC BC 6F D4 30 27 2E 26 93 0B AC 3D [17:22:29]CheckFolder [17:22:29]dirname=/storage/ofd_packets [17:22:29]CheckFolder done [17:22:29]ProducePacketName [17:22:29]name=ofd_packets/00123098 [17:22:29]NVStorageSaveData ofd_packets/00123098 [17:22:29]File name is /storage/ofd_packets/00123098 [17:22:29]Write 301 bytes [17:22:29]NVStorageSaveData done [17:22:29]OFDSenderStorePacket done [17:22:29]KKMCreateOFDPacket done [17:22:29]NVStorageSaveData kkm_last_timestamp [17:22:29]File name is /storage/kkm_last_timestamp [17:22:29]Write 4 bytes [17:22:29]NVStorageSaveData done [17:22:29]ExternCall_PrintAddStr [17:22:29]wPrintStart [17:22:29]Write to MH i2c: 01 00 00 55 38 8D [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 55 38 00 00 00 00 00 FF 0F A2 [17:22:29]RasterBufferAndPrint [17:22:29]line Счет N : (1)717895 [17:22:29]line ИНН: 02508201610067 [17:22:29]line Контрольно-Кассовый Чек [17:22:29]line ПРОДАЖА [17:22:29]line ТРК (МРК, ГНК) : 42 [17:22:29]line Товар: 2710124130 [17:22:29]line Аи-92-К-4 [17:22:29]line 14.840 * 67.40 [17:22:29]line = 1000.22 [17:22:29]line НДС 12% НСП 1% [17:22:29]line > о реализуемом товаре [17:22:29]line ОКРУГЛЕНИЕ: -0.22 [17:22:29]line ИТОГО: 1000.00 [17:22:29]line Внесено: 1000.00 [17:22:29]line СДАЧА: 0.00 [17:22:29]line НСП 1% : 8.85 [17:22:29]line НДС 12% : 106.22 [17:22:29]line Наличными: 1000.00 [17:22:29]line Безнал.: 0.00 [17:22:29]line Место: АЗС № 64 "Партнер Нефть" [17:22:29]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:22:29]line СНО: Общий режим [17:22:29]line Чек 139 25.11.2024 17:22 [17:22:29]line Смена: 556 ФФД: 1.0 [17:22:29]line ЗНМ: 0300000033 [17:22:29]line РНМ: 0000000000092681 [17:22:29]line Версия ККМ: 001 [17:22:29]line ФМ: 0000000000874881 [17:22:29]line ФД: 123098 [17:22:29]line ФПД: 189996145078228 [17:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T172233&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123098&fm=189996145078228&tin=02508201610067®Number=0000000000092681&sum=100000 [17:22:29]OFD Sender: Processing packet 123098 [packets to send 7, broken 6] [17:22:29]ProducePacketName [17:22:29]name=ofd_packets/00123098 [17:22:29]OFD Sender: To server: pG, [17:22:29]CommunicateWithHost lk.salyk.kg:30040 [17:22:29]ConnectInit lk.salyk.kg [17:22:29]written 0, free lines is 4095 [17:22:29]Connected sock=10 [17:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 99 59 07 01 FE 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 59 B2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DA E0 01 00 35 04 06 00 AC CC EC BC 6F D4 30 27 2E 26 93 0B AC 3D [17:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 FF 18 47 00 F3 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 34 38 38 31 10 04 04 00 DA E0 01 00 F4 03 04 00 1E 5E 44 67 B6 04 01 00 00 F2 63 27 14 A1 C9 32 B7 [17:22:29]CommunicateWithHost err = 0 [17:22:29]CheckOFDResponse [17:22:29]1017 (14) - 77093643461234 [17:22:29]1041 (16) - 0000000000874881 [17:22:29]1040 (4) - 123098 [17:22:29]1012 (4) - 25.11.2024 11:23 [17:22:29]1206 (1) - 0 [17:22:29]OFD Sender: Remove packet 123098 [17:22:29]ProducePacketName [17:22:29]name=ofd_packets/00123098 [17:22:29]NVStorageDeleteData [17:22:29]Write to MH i2c: 01 00 00 80 38 B8 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 80 38 00 00 00 00 00 4D 0C 18 [17:22:29]RasterBufferAndPrint [17:22:29]line [17:22:29]line [17:22:29]line [17:22:29]line [17:22:29]line [17:22:29]written 0, free lines is 3152 [17:22:29]MH_Cut [17:22:29]Write to MH i2c: D1 01 00 87 38 01 91 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: D1 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: D1 01 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: D1 01 00 87 38 00 90 [17:22:29]Write to MH i2c: 01 00 00 88 38 C0 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:30]OFD Sender: No OFD packet to send [17:22:31]*** Cut start [17:22:31]*** Partial cut [17:22:31]*** CUTSNS_PIN = 1 [17:22:31]*** CUTSNS_PIN = 0 [17:22:31]*** Brake cut motor [17:22:31]Read from MH i2c: 01 [17:22:31]MH_I2C_Read... [17:22:31]*** Stop cut motor [17:22:31]*** Cut end [17:22:31]Read from MH i2c: 01 07 00 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: 01 07 00 88 38 00 00 00 00 00 FF 0F D5 [17:22:31]process_action close_receipt done [17:22:31]requested_data is exist [17:22:31]produce_requested_data [17:22:31]requested_item fm.sn is exist - process it [17:22:31]wFMCommunicate request_size=4 [17:22:31]MH_SAM_APDU [17:22:31]CAPDU: 80 11 00 00 [17:22:31]Write to MH i2c: E2 08 00 89 38 80 11 00 00 00 00 00 00 3B [17:22:31]Write i2c OK [17:22:31]MH_I2C_Read... [17:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:31]Read from MH i2c: E2 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: E2 17 00 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: E2 17 00 89 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 92 [17:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:22:31]wFMCommunicate OK [17:22:31]requested_item fd.num is exist - process it [17:22:31]SAM_PROTO_GetFieldsCounters [17:22:31]wFMCommunicate request_size=4 [17:22:31]MH_SAM_APDU [17:22:31]CAPDU: 80 13 00 00 [17:22:31]Write to MH i2c: E2 08 00 8A 38 80 13 00 00 00 00 00 00 3E [17:22:31]Write i2c OK [17:22:31]MH_I2C_Read... [17:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:32]Read from MH i2c: E2 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 62 00 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 62 00 8A 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DA E0 01 00 0E 04 04 00 2C 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 EE [17:22:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DA E0 01 00 0E 04 04 00 2C 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 [17:22:32]wFMCommunicate OK [17:22:32]SAM_PROTO_GetFieldsCounters done [17:22:32]requested_item shift.num is exist - process it [17:22:32]requested_item shift.opened is exist - process it [17:22:32]req_shift_opened [17:22:32]FM_GetShiftState [17:22:32]SAM_PROTO_GetShiftState [17:22:32]wFMCommunicate request_size=4 [17:22:32]MH_SAM_APDU [17:22:32]CAPDU: 80 13 01 00 [17:22:32]Write to MH i2c: E2 08 00 8B 38 80 13 01 00 00 00 00 00 40 [17:22:32]Write i2c OK [17:22:32]MH_I2C_Read... [17:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:32]Read from MH i2c: E2 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 0E 00 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 0E 00 8B 38 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 BF [17:22:32]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:22:32]wFMCommunicate OK [17:22:32]SAM_PROTO_GetShiftState done [17:22:32]FM_GetShiftState done [17:22:32]req_shift_opened done [17:22:32]requested_item shift.open_date is exist - process it [17:22:32]req_shift_open_date [17:22:32]req_shift_open_date done [17:22:32]produce_requested_data done [17:22:32]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123098,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:22:32]process_action_free close_receipt [17:22:32]json_value_free [17:22:32]json_value_free done [17:22:32]process_json_proto returns [17:22:32]Send response to host [17:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123098,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:22:32]free response buf [17:22:32]execute_script done [17:22:32]execute_script returns [17:22:32]free content buf [17:22:32]Sock 9.Close socket [17:22:32]Sock 9.Thread stoped [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:47]accept exits with 7 [17:37:47]New connection [17:37:47]New thread 3066580324 created [17:37:47]Thread 3066723684 joined [17:37:47]Waiting for new connection... [17:37:47] Sock 7.Parse request [17:37:47]Sock 7.Check first char [17:37:47]Sock 7.First char is OK [17:37:47]request: POST /json_proto HTTP/1.0 [17:37:47]Method: POST [17:37:47]URL: /json_proto [17:37:47]Method is POST - this is cgi request [17:37:47]url: /json_proto [17:37:47]query_string will be loaded in cgi processing [17:37:47]execute_cgi json_proto POST (null) [17:37:47]execute_cgi path=json_proto method=POST [17:37:47]POST find Content-Length [17:37:47]Host: 172.17.37.4:8080 [17:37:47]Content-Length: 677 [17:37:47]Content-Type: application/json [17:37:47] [17:37:47]POST finish read [17:37:47]Found Content-Length = 677 [17:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:47]execute_script... [17:37: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)717896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:47]POST & json_proto [17:37:47]process_json_proto [17:37:47]json parsed OK: [17:37:47]protocol is kg_v1.0 [17:37:47]action value=close_receipt [17:37:47]process_action close_receipt [17:37:47]cmd_close_receipt [17:37:47]MH_GetDate [17:37:47]Write to MH i2c: F0 00 00 8C 38 B3 [17:37:47]Write i2c OK [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: F0 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: F0 09 00 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: F0 09 00 8C 38 00 F2 B5 44 67 B8 5A 43 67 CA [17:37:47]GetLastDocTimeStamp 1732555353 [17:37:47]current date 1732556274 [17:37:47]FM_GetShiftState [17:37:47]SAM_PROTO_GetShiftState [17:37:47]wFMCommunicate request_size=4 [17:37:47]MH_SAM_APDU [17:37:47]CAPDU: 80 13 01 00 [17:37:47]Write to MH i2c: E2 08 00 8D 38 80 13 01 00 00 00 00 00 42 [17:37:47]Write i2c OK [17:37:47]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 0E 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 0E 00 8D 38 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C1 [17:37:48]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:37:48]wFMCommunicate OK [17:37:48]SAM_PROTO_GetShiftState done [17:37:48]FM_GetShiftState done [17:37:48]opened in 1732493066 [17:37:48]opened+sec_in_day 1732579466 [17:37:48]quantity*price = 50010 [17:37:48]sum+1 = 50012 [17:37:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 140 25.11.2024 17:37 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123099 ФПД: 112083389309838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T173754&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123099&fm=112083389309838&tin=02508201610067®Number=0000000000092681&sum=50000 [17:37:49]StoreToDocumentArchive [17:37:49]shift 556 fd 123099 [17:37:49]save to /storage/0556/doc_00123099 [17:37:49]save last doc name /storage/0556/doc_00123099 to /storage/kkm_last_doc_name [17:37:49]save OK [17:37:49]Clear old archive folders... [17:37:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:49]tlvbuf is 01F6C950 [17:37:49]SAM_PROTO_ClearQueue [17:37:49]wFMCommunicate request_size=4 [17:37:49]MH_SAM_APDU [17:37:49]CAPDU: 80 09 00 00 [17:37:49]Write to MH i2c: E2 08 00 9A 38 80 09 00 00 00 00 00 00 44 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:49]Read from MH i2c: E2 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 03 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 03 00 9A 38 00 90 00 46 [17:37:49]RAPDU: 90 00 [17:37:49]wFMCommunicate OK [17:37:49]SAM_PROTO_ClearQueue done [17:37:49]KKMCreateOFDPacket [17:37:49]OFDProtocolAddRootSTLVToBuf [17:37:49]FM_MakeSignedData [17:37:49]FM_MakeSignedData [17:37:49]SAM_PROTO_SignData [17:37:49]wFMCommunicate request_size=4 [17:37:49]MH_SAM_APDU [17:37:49]CAPDU: 80 0D 01 02 [17:37:49]Write to MH i2c: E2 08 00 9B 38 80 0D 01 02 00 00 00 00 4C [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:49]Read from MH i2c: E2 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 03 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 03 00 9B 38 00 90 00 47 [17:37:49]RAPDU: 90 00 [17:37:49]wFMCommunicate OK [17:37:49]wFMCommunicate request_size=255 [17:37:49]MH_SAM_APDU [17:37:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F2 B5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DB E0 01 00 35 04 06 00 65 [17:37:49]Write to MH i2c: E2 02 01 9C 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F2 B5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DB E0 01 00 35 04 06 00 65 00 00 E0 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:49]Read from MH i2c: E2 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 03 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 03 00 9C 38 00 90 00 48 [17:37:49]RAPDU: 90 00 [17:37:49]wFMCommunicate OK [17:37:49]wFMCommunicate request_size=10 [17:37:49]MH_SAM_APDU [17:37:49]CAPDU: 80 0D 02 02 05 F0 72 9A E3 8E [17:37:49]Write to MH i2c: E2 0D 00 9D 38 80 0D 02 02 05 00 F0 72 9A E3 8E 00 00 C6 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:49]Read from MH i2c: E2 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 03 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 03 00 9D 38 00 90 00 49 [17:37:49]RAPDU: 90 00 [17:37:49]wFMCommunicate OK [17:37:49]wFMCommunicate request_size=4 [17:37:49]MH_SAM_APDU [17:37:49]CAPDU: 80 0D 03 02 [17:37:49]Write to MH i2c: E2 08 00 9E 38 80 0D 03 02 00 00 00 00 51 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:49]Read from MH i2c: E2 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 0B 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 0B 00 9E 38 00 F6 CE FE 1E 67 2B 2F 0C 90 00 FF [17:37:49]RAPDU: F6 CE FE 1E 67 2B 2F 0C 90 00 [17:37:49]wFMCommunicate OK [17:37:49]SAM_PROTO_SignData done [17:37:49]FM_MakeSignedData done [17:37:49]CreateOFDProtocolMessage [17:37:49]wFMCommunicate request_size=4 [17:37:49]MH_SAM_APDU [17:37:49]CAPDU: 80 11 00 00 [17:37:49]Write to MH i2c: E2 08 00 9F 38 80 11 00 00 00 00 00 00 51 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:49]Read from MH i2c: E2 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 17 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: E2 17 00 9F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A8 [17:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:37:49]wFMCommunicate OK [17:37:49]CreateOFDProtocolMessage done [17:37:49]OFDSenderStorePacket 123099 [17:37:49]StoreOFDPacket docnum=123099 [17:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 98 86 07 01 65 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F2 B5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DB E0 01 00 35 04 06 00 65 F0 72 9A E3 8E F6 CE FE 1E 67 2B 2F 0C [17:37:49]CheckFolder [17:37:49]dirname=/storage/ofd_packets [17:37:49]CheckFolder done [17:37:49]ProducePacketName [17:37:49]name=ofd_packets/00123099 [17:37:49]NVStorageSaveData ofd_packets/00123099 [17:37:49]File name is /storage/ofd_packets/00123099 [17:37:49]Write 301 bytes [17:37:49]NVStorageSaveData done [17:37:49]OFDSenderStorePacket done [17:37:49]KKMCreateOFDPacket done [17:37:49]NVStorageSaveData kkm_last_timestamp [17:37:49]File name is /storage/kkm_last_timestamp [17:37:49]Write 4 bytes [17:37:49]NVStorageSaveData done [17:37:49]ExternCall_PrintAddStr [17:37:49]wPrintStart [17:37:49]Write to MH i2c: 01 00 00 A0 38 D8 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 07 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 07 00 A0 38 00 00 00 00 00 FF 0F ED [17:37:49]RasterBufferAndPrint [17:37:49]line Счет N : (1)717896 [17:37:49]line ИНН: 02508201610067 [17:37:49]line Контрольно-Кассовый Чек [17:37:49]line ПРОДАЖА [17:37:49]line ТРК (МРК, ГНК) : 32 [17:37:49]line Товар: 2710124130 [17:37:49]line Аи-92-К-4 [17:37:49]line 7.420 * 67.40 [17:37:49]line = 500.11 [17:37:49]line НДС 12% НСП 1% [17:37:49]line > о реализуемом товаре [17:37:49]line ОКРУГЛЕНИЕ: -0.11 [17:37:49]line ИТОГО: 500.00 [17:37:49]line Внесено: 500.00 [17:37:49]line СДАЧА: 0.00 [17:37:49]line НСП 1% : 4.43 [17:37:49]line НДС 12% : 53.11 [17:37:49]line Наличными: 500.00 [17:37:49]line Безнал.: 0.00 [17:37:49]line Место: АЗС № 64 "Партнер Нефть" [17:37:49]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:37:49]line СНО: Общий режим [17:37:49]line Чек 140 25.11.2024 17:37 [17:37:49]line Смена: 556 ФФД: 1.0 [17:37:49]line ЗНМ: 0300000033 [17:37:49]line РНМ: 0000000000092681 [17:37:49]line Версия ККМ: 001 [17:37:49]line ФМ: 0000000000874881 [17:37:49]line ФД: 123099 [17:37:49]line ФПД: 112083389309838 [17:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T173754&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123099&fm=112083389309838&tin=02508201610067®Number=0000000000092681&sum=50000 [17:37:50]OFD Sender: Processing packet 123099 [packets to send 7, broken 6] [17:37:50]ProducePacketName [17:37:50]name=ofd_packets/00123099 [17:37:50]OFD Sender: To server: pG, [17:37:50]CommunicateWithHost lk.salyk.kg:30040 [17:37:50]ConnectInit lk.salyk.kg [17:37:50]written 0, free lines is 4095 [17:37:50]Connected sock=10 [17:37:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 98 86 07 01 65 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F2 B5 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DB E0 01 00 35 04 06 00 65 F0 72 9A E3 8E F6 CE FE 1E 67 2B 2F 0C [17:37:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D1 6C 47 00 9C 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 34 38 38 31 10 04 04 00 DB E0 01 00 F4 03 04 00 B7 61 44 67 B6 04 01 00 00 F8 19 D3 BA 1A 63 EB 14 [17:37:50]CommunicateWithHost err = 0 [17:37:50]CheckOFDResponse [17:37:50]1017 (14) - 77093643461234 [17:37:50]1041 (16) - 0000000000874881 [17:37:50]1040 (4) - 123099 [17:37:50]1012 (4) - 25.11.2024 11:38 [17:37:50]1206 (1) - 0 [17:37:50]OFD Sender: Remove packet 123099 [17:37:50]ProducePacketName [17:37:50]name=ofd_packets/00123099 [17:37:50]NVStorageDeleteData [17:37:50]Write to MH i2c: 01 00 00 CB 38 03 [17:37:50]Write i2c OK [17:37:50]MH_I2C_Read... [17:37:50]Read from MH i2c: 01 [17:37:50]MH_I2C_Read... [17:37:50]Read from MH i2c: 01 07 00 [17:37:50]MH_I2C_Read... [17:37:50]Read from MH i2c: 01 07 00 CB 38 00 00 00 00 00 40 0C 56 [17:37:50]RasterBufferAndPrint [17:37:50]line [17:37:50]line [17:37:50]line [17:37:50]line [17:37:50]line [17:37:50]written 0, free lines is 3140 [17:37:50]MH_Cut [17:37:50]Write to MH i2c: D1 01 00 D2 38 01 DC [17:37:50]Write i2c OK [17:37:50]MH_I2C_Read... [17:37:50]Read from MH i2c: D1 [17:37:50]MH_I2C_Read... [17:37:50]Read from MH i2c: D1 01 00 [17:37:50]MH_I2C_Read... [17:37:50]Read from MH i2c: D1 01 00 D2 38 00 DB [17:37:50]Write to MH i2c: 01 00 00 D3 38 0B [17:37:50]Write i2c OK [17:37:50]MH_I2C_Read... [17:37:50]OFD Sender: No OFD packet to send [17:37:51]*** Cut start [17:37:51]*** Partial cut [17:37:51]*** CUTSNS_PIN = 1 [17:37:51]*** CUTSNS_PIN = 0 [17:37:52]*** Brake cut motor [17:37:52]Read from MH i2c: 01 [17:37:52]MH_I2C_Read... [17:37:52]*** Stop cut motor [17:37:52]*** Cut end [17:37:52]Read from MH i2c: 01 07 00 [17:37:52]MH_I2C_Read... [17:37:52]Read from MH i2c: 01 07 00 D3 38 00 00 00 00 00 FF 0F 20 [17:37:52]process_action close_receipt done [17:37:52]requested_data is exist [17:37:52]produce_requested_data [17:37:52]requested_item fm.sn is exist - process it [17:37:52]wFMCommunicate request_size=4 [17:37:52]MH_SAM_APDU [17:37:52]CAPDU: 80 11 00 00 [17:37:52]Write to MH i2c: E2 08 00 D4 38 80 11 00 00 00 00 00 00 86 [17:37:52]Write i2c OK [17:37:52]MH_I2C_Read... [17:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:52]Read from MH i2c: E2 [17:37:52]MH_I2C_Read... [17:37:52]Read from MH i2c: E2 17 00 [17:37:52]MH_I2C_Read... [17:37:52]Read from MH i2c: E2 17 00 D4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DD [17:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:37:52]wFMCommunicate OK [17:37:52]requested_item fd.num is exist - process it [17:37:52]SAM_PROTO_GetFieldsCounters [17:37:52]wFMCommunicate request_size=4 [17:37:52]MH_SAM_APDU [17:37:52]CAPDU: 80 13 00 00 [17:37:52]Write to MH i2c: E2 08 00 D5 38 80 13 00 00 00 00 00 00 89 [17:37:52]Write i2c OK [17:37:52]MH_I2C_Read... [17:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:52]Read from MH i2c: E2 [17:37:52]MH_I2C_Read... [17:37:52]Read from MH i2c: E2 62 00 [17:37:52]MH_I2C_Read... [17:37:52]Read from MH i2c: E2 62 00 D5 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DB E0 01 00 0E 04 04 00 2C 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 3D [17:37:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DB E0 01 00 0E 04 04 00 2C 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 [17:37:52]wFMCommunicate OK [17:37:52]SAM_PROTO_GetFieldsCounters done [17:37:52]requested_item shift.num is exist - process it [17:37:52]requested_item shift.opened is exist - process it [17:37:52]req_shift_opened [17:37:52]FM_GetShiftState [17:37:52]SAM_PROTO_GetShiftState [17:37:52]wFMCommunicate request_size=4 [17:37:52]MH_SAM_APDU [17:37:52]CAPDU: 80 13 01 00 [17:37:52]Write to MH i2c: E2 08 00 D6 38 80 13 01 00 00 00 00 00 8B [17:37:52]Write i2c OK [17:37:52]MH_I2C_Read... [17:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:52]Read from MH i2c: E2 [17:37:52]MH_I2C_Read... [17:37:52]Read from MH i2c: E2 0E 00 [17:37:52]MH_I2C_Read... [17:37:52]Read from MH i2c: E2 0E 00 D6 38 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0A [17:37:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:37:52]wFMCommunicate OK [17:37:52]SAM_PROTO_GetShiftState done [17:37:52]FM_GetShiftState done [17:37:52]req_shift_opened done [17:37:52]requested_item shift.open_date is exist - process it [17:37:52]req_shift_open_date [17:37:52]req_shift_open_date done [17:37:52]produce_requested_data done [17:37:52]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123099,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:37:52]process_action_free close_receipt [17:37:52]json_value_free [17:37:52]json_value_free done [17:37:52]process_json_proto returns [17:37:52]Send response to host [17:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123099,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:37:52]free response buf [17:37:52]execute_script done [17:37:52]execute_script returns [17:37:52]free content buf [17:37:52]Sock 7.Close socket [17:37:52]Sock 7.Thread stoped [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:50]accept exits with 9 [17:45:50]New connection [17:45:50]New thread 3066723684 created [17:45:50]Thread 3066580324 joined [17:45:50]Waiting for new connection... [17:45:50] Sock 9.Parse request [17:45:50]Sock 9.Check first char [17:45:50]Sock 9.First char is OK [17:45:50]request: POST /json_proto HTTP/1.0 [17:45:50]Method: POST [17:45:50]URL: /json_proto [17:45:50]Method is POST - this is cgi request [17:45:50]url: /json_proto [17:45:50]query_string will be loaded in cgi processing [17:45:50]execute_cgi json_proto POST (null) [17:45:50]execute_cgi path=json_proto method=POST [17:45:50]POST find Content-Length [17:45:50]Host: 172.17.37.4:8080 [17:45:50]Content-Length: 800 [17:45:50]Content-Type: application/json [17:45:50] [17:45:50]POST finish read [17:45:50]Found Content-Length = 800 [17:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:50]execute_script... [17:45:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:50]POST & json_proto [17:45:50]process_json_proto [17:45:50]json parsed OK: [17:45:50]protocol is kg_v1.0 [17:45:50]action value=close_receipt [17:45:50]process_action close_receipt [17:45:50]cmd_close_receipt [17:45:50]MH_GetDate [17:45:50]Write to MH i2c: F0 00 00 D7 38 FE [17:45:50]Write i2c OK [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: F0 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: F0 09 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: F0 09 00 D7 38 00 D4 B7 44 67 B8 5A 43 67 F9 [17:45:50]GetLastDocTimeStamp 1732556274 [17:45:50]current date 1732556756 [17:45:50]FM_GetShiftState [17:45:50]SAM_PROTO_GetShiftState [17:45:50]wFMCommunicate request_size=4 [17:45:50]MH_SAM_APDU [17:45:50]CAPDU: 80 13 01 00 [17:45:50]Write to MH i2c: E2 08 00 D8 38 80 13 01 00 00 00 00 00 8D [17:45:50]Write i2c OK [17:45:50]MH_I2C_Read... [17:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:50]Read from MH i2c: E2 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 0E 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 0E 00 D8 38 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0C [17:45:50]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:45:50]wFMCommunicate OK [17:45:50]SAM_PROTO_GetShiftState done [17:45:50]FM_GetShiftState done [17:45:50]opened in 1732493066 [17:45:50]opened+sec_in_day 1732579466 [17:45:50]quantity*price = 60053 [17:45:50]sum+1 = 60054 [17:45:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.53 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.53 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 141 25.11.2024 17:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123100 ФПД: 280379672693779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T174556&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123100&fm=280379672693779&tin=02508201610067®Number=0000000000092681&sum=60053 [17:45:51]StoreToDocumentArchive [17:45:51]shift 556 fd 123100 [17:45:51]save to /storage/0556/doc_00123100 [17:45:51]save last doc name /storage/0556/doc_00123100 to /storage/kkm_last_doc_name [17:45:51]save OK [17:45:51]Clear old archive folders... [17:45:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:51]tlvbuf is 02057C60 [17:45:51]SAM_PROTO_ClearQueue [17:45:51]wFMCommunicate request_size=4 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 09 00 00 [17:45:51]Write to MH i2c: E2 08 00 E5 38 80 09 00 00 00 00 00 00 8F [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 E5 38 00 90 00 91 [17:45:51]RAPDU: 90 00 [17:45:51]wFMCommunicate OK [17:45:51]SAM_PROTO_ClearQueue done [17:45:51]KKMCreateOFDPacket [17:45:51]OFDProtocolAddRootSTLVToBuf [17:45:51]FM_MakeSignedData [17:45:51]FM_MakeSignedData [17:45:51]SAM_PROTO_SignData [17:45:51]wFMCommunicate request_size=4 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 0D 01 02 [17:45:51]Write to MH i2c: E2 08 00 E6 38 80 0D 01 02 00 00 00 00 97 [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 E6 38 00 90 00 92 [17:45:51]RAPDU: 90 00 [17:45:51]wFMCommunicate OK [17:45:51]wFMCommunicate request_size=255 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D4 B7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DC E0 01 00 35 04 06 00 FF [17:45:51]Write to MH i2c: E2 02 01 E7 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D4 B7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DC E0 01 00 35 04 06 00 FF 00 00 43 [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:52]Read from MH i2c: E2 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: E2 03 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: E2 03 00 E7 38 00 90 00 93 [17:45:52]RAPDU: 90 00 [17:45:52]wFMCommunicate OK [17:45:52]wFMCommunicate request_size=10 [17:45:52]MH_SAM_APDU [17:45:52]CAPDU: 80 0D 02 02 05 00 FA CB 0C 13 [17:45:52]Write to MH i2c: E2 0D 00 E8 38 80 0D 02 02 05 00 00 FA CB 0C 13 00 00 88 [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:52]Read from MH i2c: E2 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: E2 03 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: E2 03 00 E8 38 00 90 00 94 [17:45:52]RAPDU: 90 00 [17:45:52]wFMCommunicate OK [17:45:52]wFMCommunicate request_size=4 [17:45:52]MH_SAM_APDU [17:45:52]CAPDU: 80 0D 03 02 [17:45:52]Write to MH i2c: E2 08 00 E9 38 80 0D 03 02 00 00 00 00 9C [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:52]Read from MH i2c: E2 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: E2 0B 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: E2 0B 00 E9 38 00 5A C8 31 4B 14 30 18 F6 90 00 8D [17:45:52]RAPDU: 5A C8 31 4B 14 30 18 F6 90 00 [17:45:52]wFMCommunicate OK [17:45:52]SAM_PROTO_SignData done [17:45:52]FM_MakeSignedData done [17:45:52]CreateOFDProtocolMessage [17:45:52]wFMCommunicate request_size=4 [17:45:52]MH_SAM_APDU [17:45:52]CAPDU: 80 11 00 00 [17:45:52]Write to MH i2c: E2 08 00 EA 38 80 11 00 00 00 00 00 00 9C [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:52]Read from MH i2c: E2 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: E2 17 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: E2 17 00 EA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F3 [17:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:45:52]wFMCommunicate OK [17:45:52]CreateOFDProtocolMessage done [17:45:52]OFDSenderStorePacket 123100 [17:45:52]StoreOFDPacket docnum=123100 [17:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7E DD 07 01 69 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D4 B7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DC E0 01 00 35 04 06 00 FF 00 FA CB 0C 13 5A C8 31 4B 14 30 18 F6 [17:45:52]CheckFolder [17:45:52]dirname=/storage/ofd_packets [17:45:52]CheckFolder done [17:45:52]ProducePacketName [17:45:52]name=ofd_packets/00123100 [17:45:52]NVStorageSaveData ofd_packets/00123100 [17:45:52]File name is /storage/ofd_packets/00123100 [17:45:52]Write 301 bytes [17:45:52]NVStorageSaveData done [17:45:52]OFDSenderStorePacket done [17:45:52]KKMCreateOFDPacket done [17:45:52]NVStorageSaveData kkm_last_timestamp [17:45:52]File name is /storage/kkm_last_timestamp [17:45:52]Write 4 bytes [17:45:52]NVStorageSaveData done [17:45:52]ExternCall_PrintAddStr [17:45:52]wPrintStart [17:45:52]Write to MH i2c: 01 00 00 EB 38 23 [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: 01 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: 01 07 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: 01 07 00 EB 38 00 00 00 00 00 FF 0F 38 [17:45:52]RasterBufferAndPrint [17:45:52]line Счет N : (1)717898 [17:45:52]line ИНН: 02508201610067 [17:45:52]line Контрольно-Кассовый Чек [17:45:52]line ПРОДАЖА [17:45:52]line ТРК (МРК, ГНК) : 22 [17:45:52]line Товар: 2710124130 [17:45:52]line Аи-92-К-4 [17:45:52]line 8.910 * 67.40 [17:45:52]line = 600.53 [17:45:52]line НДС 12% НСП 1% [17:45:52]line > о реализуемом товаре [17:45:52]line ИТОГО: 600.53 [17:45:52]line НСП 1% : 5.31 [17:45:52]line НДС 12% : 63.77 [17:45:52]line Наличными: 0.00 [17:45:52]line Безнал.: 600.53 [17:45:52]line Место: АЗС № 64 "Партнер Нефть" [17:45:52]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:45:52]line СНО: Общий режим [17:45:52]line Чек 141 25.11.2024 17:45 [17:45:52]line Смена: 556 ФФД: 1.0 [17:45:52]line ЗНМ: 0300000033 [17:45:52]line РНМ: 0000000000092681 [17:45:52]line Версия ККМ: 001 [17:45:52]line Платежная система: O! деньги [17:45:52]line ФМ: 0000000000874881 [17:45:52]line ФД: 123100 [17:45:52]line ФПД: 280379672693779 [17:45:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T174556&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123100&fm=280379672693779&tin=02508201610067®Number=0000000000092681&sum=60053 [17:45:52]written 0, free lines is 4095 [17:45:52]OFD Sender: Processing packet 123100 [packets to send 7, broken 6] [17:45:52]ProducePacketName [17:45:52]name=ofd_packets/00123100 [17:45:52]OFD Sender: To server: pG, [17:45:52]CommunicateWithHost lk.salyk.kg:30040 [17:45:52]ConnectInit lk.salyk.kg [17:45:52]Connected sock=10 [17:45:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7E DD 07 01 69 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D4 B7 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DC E0 01 00 35 04 06 00 FF 00 FA CB 0C 13 5A C8 31 4B 14 30 18 F6 [17:45:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C3 B1 47 00 70 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DC E0 01 00 F4 03 04 00 99 63 44 67 B6 04 01 00 00 6E BF C3 69 0D 5E C5 37 [17:45:52]CommunicateWithHost err = 0 [17:45:52]CheckOFDResponse [17:45:52]1017 (14) - 77093643461234 [17:45:52]1041 (16) - 0000000000874881 [17:45:52]1040 (4) - 123100 [17:45:52]1012 (4) - 25.11.2024 11:46 [17:45:52]1206 (1) - 0 [17:45:52]OFD Sender: Remove packet 123100 [17:45:52]ProducePacketName [17:45:52]name=ofd_packets/00123100 [17:45:52]NVStorageDeleteData [17:45:53]Write to MH i2c: 01 00 00 15 39 4E [17:45:53]Write i2c OK [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: 01 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: 01 07 00 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: 01 07 00 15 39 00 00 00 00 00 5A 0C BB [17:45:53]RasterBufferAndPrint [17:45:53]line [17:45:53]line [17:45:53]line [17:45:53]line [17:45:53]line [17:45:53]written 0, free lines is 3166 [17:45:53]MH_Cut [17:45:53]Write to MH i2c: D1 01 00 1C 39 01 27 [17:45:53]Write i2c OK [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: D1 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: D1 01 00 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: D1 01 00 1C 39 00 26 [17:45:53]Write to MH i2c: 01 00 00 1D 39 56 [17:45:53]Write i2c OK [17:45:53]MH_I2C_Read... [17:45:53]OFD Sender: No OFD packet to send [17:45:54]*** Cut start [17:45:54]*** Partial cut [17:45:54]*** CUTSNS_PIN = 1 [17:45:54]*** CUTSNS_PIN = 0 [17:45:54]*** Brake cut motor [17:45:55]Read from MH i2c: 01 [17:45:55]MH_I2C_Read... [17:45:55]*** Stop cut motor [17:45:55]*** Cut end [17:45:55]Read from MH i2c: 01 07 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 07 00 1D 39 00 00 00 00 00 FF 0F 6B [17:45:55]process_action close_receipt done [17:45:55]requested_data is exist [17:45:55]produce_requested_data [17:45:55]requested_item fm.sn is exist - process it [17:45:55]wFMCommunicate request_size=4 [17:45:55]MH_SAM_APDU [17:45:55]CAPDU: 80 11 00 00 [17:45:55]Write to MH i2c: E2 08 00 1E 39 80 11 00 00 00 00 00 00 D1 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:55]Read from MH i2c: E2 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: E2 17 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: E2 17 00 1E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 28 [17:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:45:55]wFMCommunicate OK [17:45:55]requested_item fd.num is exist - process it [17:45:55]SAM_PROTO_GetFieldsCounters [17:45:55]wFMCommunicate request_size=4 [17:45:55]MH_SAM_APDU [17:45:55]CAPDU: 80 13 00 00 [17:45:55]Write to MH i2c: E2 08 00 1F 39 80 13 00 00 00 00 00 00 D4 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:55]Read from MH i2c: E2 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: E2 62 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: E2 62 00 1F 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DC E0 01 00 0E 04 04 00 2C 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 8C [17:45:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DC E0 01 00 0E 04 04 00 2C 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 [17:45:55]wFMCommunicate OK [17:45:55]SAM_PROTO_GetFieldsCounters done [17:45:55]requested_item shift.num is exist - process it [17:45:55]requested_item shift.opened is exist - process it [17:45:55]req_shift_opened [17:45:55]FM_GetShiftState [17:45:55]SAM_PROTO_GetShiftState [17:45:55]wFMCommunicate request_size=4 [17:45:55]MH_SAM_APDU [17:45:55]CAPDU: 80 13 01 00 [17:45:55]Write to MH i2c: E2 08 00 20 39 80 13 01 00 00 00 00 00 D6 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:55]Read from MH i2c: E2 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: E2 0E 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: E2 0E 00 20 39 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 55 [17:45:55]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:45:55]wFMCommunicate OK [17:45:55]SAM_PROTO_GetShiftState done [17:45:55]FM_GetShiftState done [17:45:55]req_shift_opened done [17:45:55]requested_item shift.open_date is exist - process it [17:45:55]req_shift_open_date [17:45:55]req_shift_open_date done [17:45:55]produce_requested_data done [17:45:55]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123100,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:45:55]process_action_free close_receipt [17:45:55]json_value_free [17:45:55]json_value_free done [17:45:55]process_json_proto returns [17:45:55]Send response to host [17:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123100,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:45:55]free response buf [17:45:55]execute_script done [17:45:55]execute_script returns [17:45:55]free content buf [17:45:55]Sock 9.Close socket [17:45:55]Sock 9.Thread stoped [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]accept exits with 7 [17:46:48]New connection [17:46:48]New thread 3066580324 created [17:46:48]Thread 3066723684 joined [17:46:48]Waiting for new connection... [17:46:48] Sock 7.Parse request [17:46:48]Sock 7.Check first char [17:46:48]Sock 7.First char is OK [17:46:48]request: POST /json_proto HTTP/1.0 [17:46:48]Method: POST [17:46:48]URL: /json_proto [17:46:48]Method is POST - this is cgi request [17:46:48]url: /json_proto [17:46:48]query_string will be loaded in cgi processing [17:46:48]execute_cgi json_proto POST (null) [17:46:48]execute_cgi path=json_proto method=POST [17:46:48]POST find Content-Length [17:46:48]Host: 172.17.37.4:8080 [17:46:48]Content-Length: 682 [17:46:48]Content-Type: application/json [17:46:48] [17:46:48]POST finish read [17:46:48]Found Content-Length = 682 [17:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 29.680, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:48]execute_script... [17:46: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)717897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 29.680, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:48]POST & json_proto [17:46:48]process_json_proto [17:46:48]json parsed OK: [17:46:48]protocol is kg_v1.0 [17:46:48]action value=close_receipt [17:46:48]process_action close_receipt [17:46:48]cmd_close_receipt [17:46:48]MH_GetDate [17:46:48]Write to MH i2c: F0 00 00 21 39 49 [17:46:48]Write i2c OK [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: F0 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: F0 09 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: F0 09 00 21 39 00 0E B8 44 67 B8 5A 43 67 7F [17:46:48]GetLastDocTimeStamp 1732556756 [17:46:48]current date 1732556814 [17:46:48]FM_GetShiftState [17:46:48]SAM_PROTO_GetShiftState [17:46:48]wFMCommunicate request_size=4 [17:46:48]MH_SAM_APDU [17:46:48]CAPDU: 80 13 01 00 [17:46:48]Write to MH i2c: E2 08 00 22 39 80 13 01 00 00 00 00 00 D8 [17:46:48]Write i2c OK [17:46:48]MH_I2C_Read... [17:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:48]Read from MH i2c: E2 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 0E 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 0E 00 22 39 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 57 [17:46:48]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:46:48]wFMCommunicate OK [17:46:48]SAM_PROTO_GetShiftState done [17:46:48]FM_GetShiftState done [17:46:48]opened in 1732493066 [17:46:48]opened+sec_in_day 1732579466 [17:46:48]quantity*price = 200043 [17:46:48]sum+1 = 200044 [17:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 142 25.11.2024 17:46 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123101 ФПД: 150523683297714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T174654&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123101&fm=150523683297714&tin=02508201610067®Number=0000000000092681&sum=200000 [17:46:49]StoreToDocumentArchive [17:46:49]shift 556 fd 123101 [17:46:49]save to /storage/0556/doc_00123101 [17:46:49]save last doc name /storage/0556/doc_00123101 to /storage/kkm_last_doc_name [17:46:49]save OK [17:46:49]Clear old archive folders... [17:46:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:49]tlvbuf is B6D70740 [17:46:49]SAM_PROTO_ClearQueue [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 09 00 00 [17:46:49]Write to MH i2c: E2 08 00 2F 39 80 09 00 00 00 00 00 00 DA [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 2F 39 00 90 00 DC [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]SAM_PROTO_ClearQueue done [17:46:49]KKMCreateOFDPacket [17:46:49]OFDProtocolAddRootSTLVToBuf [17:46:49]FM_MakeSignedData [17:46:49]FM_MakeSignedData [17:46:49]SAM_PROTO_SignData [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 01 02 [17:46:49]Write to MH i2c: E2 08 00 30 39 80 0D 01 02 00 00 00 00 E2 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 30 39 00 90 00 DD [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]wFMCommunicate request_size=255 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 0E B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DD E0 01 00 35 04 06 00 88 [17:46:49]Write to MH i2c: E2 02 01 31 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 0E B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DD E0 01 00 35 04 06 00 88 00 00 8C [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 31 39 00 90 00 DE [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]wFMCommunicate request_size=10 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 02 02 05 E6 86 AC 59 B2 [17:46:49]Write to MH i2c: E2 0D 00 32 39 80 0D 02 02 05 00 E6 86 AC 59 B2 00 00 12 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 32 39 00 90 00 DF [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 03 02 [17:46:49]Write to MH i2c: E2 08 00 33 39 80 0D 03 02 00 00 00 00 E7 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 0B 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 0B 00 33 39 00 1B 4D 8D 46 4D B9 B1 F9 90 00 D3 [17:46:49]RAPDU: 1B 4D 8D 46 4D B9 B1 F9 90 00 [17:46:49]wFMCommunicate OK [17:46:49]SAM_PROTO_SignData done [17:46:49]FM_MakeSignedData done [17:46:49]CreateOFDProtocolMessage [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 11 00 00 [17:46:49]Write to MH i2c: E2 08 00 34 39 80 11 00 00 00 00 00 00 E7 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 17 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 17 00 34 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3E [17:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:46:49]wFMCommunicate OK [17:46:49]CreateOFDProtocolMessage done [17:46:49]OFDSenderStorePacket 123101 [17:46:49]StoreOFDPacket docnum=123101 [17:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D8 42 07 01 2F 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 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 0E B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DD E0 01 00 35 04 06 00 88 E6 86 AC 59 B2 1B 4D 8D 46 4D B9 B1 F9 [17:46:49]CheckFolder [17:46:49]dirname=/storage/ofd_packets [17:46:49]CheckFolder done [17:46:49]ProducePacketName [17:46:49]name=ofd_packets/00123101 [17:46:49]NVStorageSaveData ofd_packets/00123101 [17:46:49]File name is /storage/ofd_packets/00123101 [17:46:49]Write 301 bytes [17:46:49]NVStorageSaveData done [17:46:49]OFDSenderStorePacket done [17:46:49]KKMCreateOFDPacket done [17:46:49]NVStorageSaveData kkm_last_timestamp [17:46:49]File name is /storage/kkm_last_timestamp [17:46:49]Write 4 bytes [17:46:49]NVStorageSaveData done [17:46:49]ExternCall_PrintAddStr [17:46:49]wPrintStart [17:46:49]Write to MH i2c: 01 00 00 35 39 6E [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: 01 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: 01 07 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: 01 07 00 35 39 00 00 00 00 00 FF 0F 83 [17:46:49]RasterBufferAndPrint [17:46:49]line Счет N : (1)717897 [17:46:49]line ИНН: 02508201610067 [17:46:49]line Контрольно-Кассовый Чек [17:46:49]line ПРОДАЖА [17:46:49]line ТРК (МРК, ГНК) : 12 [17:46:49]line Товар: 2710124130 [17:46:49]line Аи-92-К-4 [17:46:49]line 29.680 * 67.40 [17:46:49]line = 2000.43 [17:46:50]line НДС 12% НСП 1% [17:46:50]line > о реализуемом товаре [17:46:50]line ОКРУГЛЕНИЕ: -0.43 [17:46:50]line ИТОГО: 2000.00 [17:46:50]line Внесено: 2000.00 [17:46:50]line СДАЧА: 0.00 [17:46:50]line НСП 1% : 17.70 [17:46:50]line НДС 12% : 212.43 [17:46:50]line Наличными: 2000.00 [17:46:50]line Безнал.: 0.00 [17:46:50]line Место: АЗС № 64 "Партнер Нефть" [17:46:50]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:46:50]line СНО: Общий режим [17:46:50]line Чек 142 25.11.2024 17:46 [17:46:50]line Смена: 556 ФФД: 1.0 [17:46:50]line ЗНМ: 0300000033 [17:46:50]line РНМ: 0000000000092681 [17:46:50]line Версия ККМ: 001 [17:46:50]line ФМ: 0000000000874881 [17:46:50]line ФД: 123101 [17:46:50]line ФПД: 150523683297714 [17:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T174654&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123101&fm=150523683297714&tin=02508201610067®Number=0000000000092681&sum=200000 [17:46:50]OFD Sender: Processing packet 123101 [packets to send 7, broken 6] [17:46:50]ProducePacketName [17:46:50]name=ofd_packets/00123101 [17:46:50]OFD Sender: To server: pG, [17:46:50]CommunicateWithHost lk.salyk.kg:30040 [17:46:50]ConnectInit lk.salyk.kg [17:46:50]written 0, free lines is 4095 [17:46:50]Connected sock=10 [17:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D8 42 07 01 2F 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 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 0E B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DD E0 01 00 35 04 06 00 88 E6 86 AC 59 B2 1B 4D 8D 46 4D B9 B1 F9 [17:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AA 3A 47 00 13 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 34 38 38 31 10 04 04 00 DD E0 01 00 F4 03 04 00 D3 63 44 67 B6 04 01 00 00 59 32 1F DA 95 AF 06 CA [17:46:50]CommunicateWithHost err = 0 [17:46:50]CheckOFDResponse [17:46:50]1017 (14) - 77093643461234 [17:46:50]1041 (16) - 0000000000874881 [17:46:50]1040 (4) - 123101 [17:46:50]1012 (4) - 25.11.2024 11:47 [17:46:50]1206 (1) - 0 [17:46:50]OFD Sender: Remove packet 123101 [17:46:50]ProducePacketName [17:46:50]name=ofd_packets/00123101 [17:46:50]NVStorageDeleteData [17:46:50]Write to MH i2c: 01 00 00 60 39 99 [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 07 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 07 00 60 39 00 00 00 00 00 43 0C EF [17:46:50]RasterBufferAndPrint [17:46:50]line [17:46:50]line [17:46:50]line [17:46:50]line [17:46:50]line [17:46:50]written 0, free lines is 3145 [17:46:50]MH_Cut [17:46:50]Write to MH i2c: D1 01 00 67 39 01 72 [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: D1 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: D1 01 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: D1 01 00 67 39 00 71 [17:46:50]Write to MH i2c: 01 00 00 68 39 A1 [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:51]OFD Sender: No OFD packet to send [17:46:52]*** Cut start [17:46:52]*** Partial cut [17:46:52]*** CUTSNS_PIN = 1 [17:46:52]*** CUTSNS_PIN = 0 [17:46:52]*** Brake cut motor [17:46:52]Read from MH i2c: 01 [17:46:52]MH_I2C_Read... [17:46:52]*** Stop cut motor [17:46:52]*** Cut end [17:46:52]Read from MH i2c: 01 07 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: 01 07 00 68 39 00 00 00 00 00 FF 0F B6 [17:46:52]process_action close_receipt done [17:46:52]requested_data is exist [17:46:52]produce_requested_data [17:46:52]requested_item fm.sn is exist - process it [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 11 00 00 [17:46:52]Write to MH i2c: E2 08 00 69 39 80 11 00 00 00 00 00 00 1C [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:52]Read from MH i2c: E2 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 17 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 17 00 69 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 73 [17:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:46:52]wFMCommunicate OK [17:46:52]requested_item fd.num is exist - process it [17:46:52]SAM_PROTO_GetFieldsCounters [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 13 00 00 [17:46:52]Write to MH i2c: E2 08 00 6A 39 80 13 00 00 00 00 00 00 1F [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:52]Read from MH i2c: E2 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 62 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 62 00 6A 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DD E0 01 00 0E 04 04 00 2C 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 DB [17:46:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DD E0 01 00 0E 04 04 00 2C 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 [17:46:52]wFMCommunicate OK [17:46:52]SAM_PROTO_GetFieldsCounters done [17:46:52]requested_item shift.num is exist - process it [17:46:52]requested_item shift.opened is exist - process it [17:46:52]req_shift_opened [17:46:52]FM_GetShiftState [17:46:52]SAM_PROTO_GetShiftState [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 13 01 00 [17:46:52]Write to MH i2c: E2 08 00 6B 39 80 13 01 00 00 00 00 00 21 [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:53]Read from MH i2c: E2 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: E2 0E 00 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: E2 0E 00 6B 39 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A0 [17:46:53]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:46:53]wFMCommunicate OK [17:46:53]SAM_PROTO_GetShiftState done [17:46:53]FM_GetShiftState done [17:46:53]req_shift_opened done [17:46:53]requested_item shift.open_date is exist - process it [17:46:53]req_shift_open_date [17:46:53]req_shift_open_date done [17:46:53]produce_requested_data done [17:46:53]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123101,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:46:53]process_action_free close_receipt [17:46:53]json_value_free [17:46:53]json_value_free done [17:46:53]process_json_proto returns [17:46:53]Send response to host [17:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123101,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:46:53]free response buf [17:46:53]execute_script done [17:46:53]execute_script returns [17:46:53]free content buf [17:46:53]Sock 7.Close socket [17:46:53]Sock 7.Thread stoped [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:21]int [17:47:21]Write to MH i2c: 01 00 00 6C 39 A5 [17:47:21]*** FLAG_PRN_PAP1 set [17:47:21]Write i2c OK [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: 01 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: 01 07 00 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: 01 07 00 6C 39 00 01 00 00 00 FF 0F BB [17:47:21]state=0 [17:47:21]No paper [17:47:21]int [17:47:21]Write to MH i2c: 01 00 00 6D 39 A6 [17:47:21]*** FLAG_PRN_PAP2 set [17:47:21]Write i2c OK [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: 01 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: 01 07 00 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: 01 07 00 6D 39 00 03 00 00 00 FF 0F BE [17:47:21]state=0 [17:47:21]No paper [17:47:21]Cover opened [17:47:26]OFD Sender: No OFD packet to send [17:47:26]Write to MH i2c: 01 00 00 6E 39 A7 [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: 01 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: 01 07 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: 01 07 00 6E 39 00 03 00 00 00 FF 0F BF [17:47:26]state=3 [17:47:26]No paper [17:47:26]Cover opened [17:47:29]int [17:47:29]Write to MH i2c: 01 00 00 6F 39 A8 [17:47:29]*** FLAG_PRN_PAP1 reset [17:47:29]*** FLAG_PRN_PAP2 reset [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 07 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 07 00 6F 39 00 00 00 00 00 FF 0F BD [17:47:29]state=3 [17:47:29]Cover closed [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:50]accept exits with 9 [17:47:50]New connection [17:47:50]New thread 3066723684 created [17:47:50]Thread 3066580324 joined [17:47:50]Waiting for new connection... [17:47:50] Sock 9.Parse request [17:47:50]Sock 9.Check first char [17:47:50]Sock 9.First char is OK [17:47:50]request: POST /json_proto HTTP/1.0 [17:47:50]Method: POST [17:47:50]URL: /json_proto [17:47:50]Method is POST - this is cgi request [17:47:50]url: /json_proto [17:47:50]query_string will be loaded in cgi processing [17:47:50]execute_cgi json_proto POST (null) [17:47:50]execute_cgi path=json_proto method=POST [17:47:50]POST find Content-Length [17:47:50]Host: 172.17.37.4:8080 [17:47:50]Content-Length: 673 [17:47:50]Content-Type: application/json [17:47:50] [17:47:50]POST finish read [17:47:50]Found Content-Length = 673 [17:47:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 1.000, "sum" : 67.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 67.00, "total" : 67.00, "payments": [ { "type": 0, "sum" : 67.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:50]execute_script... [17:47: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)717899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 1.000, "sum" : 67.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 67.00, "total" : 67.00, "payments": [ { "type": 0, "sum" : 67.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:50]POST & json_proto [17:47:50]process_json_proto [17:47:50]json parsed OK: [17:47:50]protocol is kg_v1.0 [17:47:50]action value=close_receipt [17:47:50]process_action close_receipt [17:47:50]cmd_close_receipt [17:47:50]MH_GetDate [17:47:50]Write to MH i2c: F0 00 00 70 39 98 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: F0 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: F0 09 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: F0 09 00 70 39 00 4C B8 44 67 B8 5A 43 67 0C [17:47:50]GetLastDocTimeStamp 1732556814 [17:47:50]current date 1732556876 [17:47:50]FM_GetShiftState [17:47:50]SAM_PROTO_GetShiftState [17:47:50]wFMCommunicate request_size=4 [17:47:50]MH_SAM_APDU [17:47:50]CAPDU: 80 13 01 00 [17:47:50]Write to MH i2c: E2 08 00 71 39 80 13 01 00 00 00 00 00 27 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 0E 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 0E 00 71 39 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A6 [17:47:50]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:47:50]wFMCommunicate OK [17:47:50]SAM_PROTO_GetShiftState done [17:47:50]FM_GetShiftState done [17:47:50]opened in 1732493066 [17:47:50]opened+sec_in_day 1732579466 [17:47:50]quantity*price = 6740 [17:47:50]sum+1 = 6741 [17:47:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 67.00 Внесено: 67.00 СДАЧА: 0.00 НСП 1% : 0.60 НДС 12% : 7.16 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 143 25.11.2024 17:47 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123102 ФПД: 162665949181260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T174756&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123102&fm=162665949181260&tin=02508201610067®Number=0000000000092681&sum=6700 [17:47:51]StoreToDocumentArchive [17:47:51]shift 556 fd 123102 [17:47:51]save to /storage/0556/doc_00123102 [17:47:51]save last doc name /storage/0556/doc_00123102 to /storage/kkm_last_doc_name [17:47:51]save OK [17:47:51]Clear old archive folders... [17:47:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:51]tlvbuf is 01F4E3B0 [17:47:51]SAM_PROTO_ClearQueue [17:47:51]wFMCommunicate request_size=4 [17:47:51]MH_SAM_APDU [17:47:51]CAPDU: 80 09 00 00 [17:47:51]Write to MH i2c: E2 08 00 7E 39 80 09 00 00 00 00 00 00 29 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:51]Read from MH i2c: E2 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 03 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 03 00 7E 39 00 90 00 2B [17:47:51]RAPDU: 90 00 [17:47:51]wFMCommunicate OK [17:47:51]SAM_PROTO_ClearQueue done [17:47:51]KKMCreateOFDPacket [17:47:51]OFDProtocolAddRootSTLVToBuf [17:47:51]FM_MakeSignedData [17:47:51]FM_MakeSignedData [17:47:51]SAM_PROTO_SignData [17:47:51]wFMCommunicate request_size=4 [17:47:51]MH_SAM_APDU [17:47:51]CAPDU: 80 0D 01 02 [17:47:51]Write to MH i2c: E2 08 00 7F 39 80 0D 01 02 00 00 00 00 31 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:51]Read from MH i2c: E2 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 03 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 03 00 7F 39 00 90 00 2C [17:47:51]RAPDU: 90 00 [17:47:51]wFMCommunicate OK [17:47:51]wFMCommunicate request_size=255 [17:47:51]MH_SAM_APDU [17:47: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 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 54 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4C B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DE E0 01 00 35 04 06 00 93 [17:47:51]Write to MH i2c: E2 02 01 80 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 54 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4C B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DE E0 01 00 35 04 06 00 93 00 00 5A [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 80 39 00 90 00 2D [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=10 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 02 02 05 F1 9E 1E 35 4C [17:47:52]Write to MH i2c: E2 0D 00 81 39 80 0D 02 02 05 00 F1 9E 1E 35 4C 00 00 6C [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 81 39 00 90 00 2E [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 03 02 [17:47:52]Write to MH i2c: E2 08 00 82 39 80 0D 03 02 00 00 00 00 36 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 0B 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 0B 00 82 39 00 77 FC 39 36 23 F5 DE 9F 90 00 AE [17:47:52]RAPDU: 77 FC 39 36 23 F5 DE 9F 90 00 [17:47:52]wFMCommunicate OK [17:47:52]SAM_PROTO_SignData done [17:47:52]FM_MakeSignedData done [17:47:52]CreateOFDProtocolMessage [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 11 00 00 [17:47:52]Write to MH i2c: E2 08 00 83 39 80 11 00 00 00 00 00 00 36 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 17 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 17 00 83 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8D [17:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:47:52]wFMCommunicate OK [17:47:52]CreateOFDProtocolMessage done [17:47:52]OFDSenderStorePacket 123102 [17:47:52]StoreOFDPacket docnum=123102 [17:47:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D8 0A 07 01 BA 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 54 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4C B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DE E0 01 00 35 04 06 00 93 F1 9E 1E 35 4C 77 FC 39 36 23 F5 DE 9F [17:47:52]CheckFolder [17:47:52]dirname=/storage/ofd_packets [17:47:52]CheckFolder done [17:47:52]ProducePacketName [17:47:52]name=ofd_packets/00123102 [17:47:52]NVStorageSaveData ofd_packets/00123102 [17:47:52]File name is /storage/ofd_packets/00123102 [17:47:52]Write 301 bytes [17:47:52]NVStorageSaveData done [17:47:52]OFDSenderStorePacket done [17:47:52]KKMCreateOFDPacket done [17:47:52]NVStorageSaveData kkm_last_timestamp [17:47:52]File name is /storage/kkm_last_timestamp [17:47:52]Write 4 bytes [17:47:52]NVStorageSaveData done [17:47:52]ExternCall_PrintAddStr [17:47:52]wPrintStart [17:47:52]Write to MH i2c: 01 00 00 84 39 BD [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 07 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 07 00 84 39 00 00 00 00 00 FF 0F D2 [17:47:52]RasterBufferAndPrint [17:47:52]line Счет N : (1)717899 [17:47:52]line ИНН: 02508201610067 [17:47:52]line Контрольно-Кассовый Чек [17:47:52]line ПРОДАЖА [17:47:52]line ТРК (МРК, ГНК) : 22 [17:47:52]line Товар: 2710124130 [17:47:52]line Аи-92-К-4 [17:47:52]line 1.000 * 67.40 [17:47:52]line = 67.40 [17:47:52]line НДС 12% НСП 1% [17:47:52]line > о реализуемом товаре [17:47:52]line ОКРУГЛЕНИЕ: -0.40 [17:47:52]line ИТОГО: 67.00 [17:47:52]line Внесено: 67.00 [17:47:52]line СДАЧА: 0.00 [17:47:52]line НСП 1% : 0.60 [17:47:52]line НДС 12% : 7.16 [17:47:52]line Наличными: 67.00 [17:47:52]line Безнал.: 0.00 [17:47:52]line Место: АЗС № 64 "Партнер Нефть" [17:47:52]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:47:52]line СНО: Общий режим [17:47:52]line Чек 143 25.11.2024 17:47 [17:47:52]line Смена: 556 ФФД: 1.0 [17:47:52]line ЗНМ: 0300000033 [17:47:52]line РНМ: 0000000000092681 [17:47:52]line Версия ККМ: 001 [17:47:52]line ФМ: 0000000000874881 [17:47:52]line ФД: 123102 [17:47:52]line ФПД: 162665949181260 [17:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T174756&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123102&fm=162665949181260&tin=02508201610067®Number=0000000000092681&sum=6700 [17:47:52]OFD Sender: Processing packet 123102 [packets to send 7, broken 6] [17:47:52]ProducePacketName [17:47:52]name=ofd_packets/00123102 [17:47:52]OFD Sender: To server: pG, [17:47:52]CommunicateWithHost lk.salyk.kg:30040 [17:47:52]ConnectInit lk.salyk.kg [17:47:52]written 0, free lines is 4095 [17:47:52]Connected sock=10 [17:47:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D8 0A 07 01 BA 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 54 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4C B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DE E0 01 00 35 04 06 00 93 F1 9E 1E 35 4C 77 FC 39 36 23 F5 DE 9F [17:47:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 5A 28 47 00 F3 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DE E0 01 00 F4 03 04 00 11 64 44 67 B6 04 01 00 00 2C 90 4A 9A A3 C0 88 12 [17:47:52]CommunicateWithHost err = 0 [17:47:52]CheckOFDResponse [17:47:52]1017 (14) - 77093643461234 [17:47:52]1041 (16) - 0000000000874881 [17:47:52]1040 (4) - 123102 [17:47:52]1012 (4) - 25.11.2024 11:48 [17:47:52]1206 (1) - 0 [17:47:52]OFD Sender: Remove packet 123102 [17:47:52]ProducePacketName [17:47:52]name=ofd_packets/00123102 [17:47:52]NVStorageDeleteData [17:47:52]Write to MH i2c: 01 00 00 AF 39 E8 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 07 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 07 00 AF 39 00 00 00 00 00 4C 0C 47 [17:47:52]RasterBufferAndPrint [17:47:52]line [17:47:52]line [17:47:52]line [17:47:52]line [17:47:52]line [17:47:52]written 0, free lines is 3152 [17:47:52]MH_Cut [17:47:52]Write to MH i2c: D1 01 00 B6 39 01 C1 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: D1 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: D1 01 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: D1 01 00 B6 39 00 C0 [17:47:52]Write to MH i2c: 01 00 00 B7 39 F0 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:53]OFD Sender: No OFD packet to send [17:47:54]*** Cut start [17:47:54]*** Partial cut [17:47:54]*** CUTSNS_PIN = 1 [17:47:54]*** CUTSNS_PIN = 0 [17:47:54]*** Brake cut motor [17:47:54]Read from MH i2c: 01 [17:47:54]MH_I2C_Read... [17:47:54]*** Stop cut motor [17:47:54]*** Cut end [17:47:54]Read from MH i2c: 01 07 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: 01 07 00 B7 39 00 00 00 00 00 FF 0F 05 [17:47:54]process_action close_receipt done [17:47:54]requested_data is exist [17:47:54]produce_requested_data [17:47:54]requested_item fm.sn is exist - process it [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 11 00 00 [17:47:54]Write to MH i2c: E2 08 00 B8 39 80 11 00 00 00 00 00 00 6B [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 17 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 17 00 B8 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C2 [17:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:47:54]wFMCommunicate OK [17:47:54]requested_item fd.num is exist - process it [17:47:54]SAM_PROTO_GetFieldsCounters [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 13 00 00 [17:47:54]Write to MH i2c: E2 08 00 B9 39 80 13 00 00 00 00 00 00 6E [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 62 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 62 00 B9 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DE E0 01 00 0E 04 04 00 2C 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 2E [17:47:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DE E0 01 00 0E 04 04 00 2C 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 [17:47:55]wFMCommunicate OK [17:47:55]SAM_PROTO_GetFieldsCounters done [17:47:55]requested_item shift.num is exist - process it [17:47:55]requested_item shift.opened is exist - process it [17:47:55]req_shift_opened [17:47:55]FM_GetShiftState [17:47:55]SAM_PROTO_GetShiftState [17:47:55]wFMCommunicate request_size=4 [17:47:55]MH_SAM_APDU [17:47:55]CAPDU: 80 13 01 00 [17:47:55]Write to MH i2c: E2 08 00 BA 39 80 13 01 00 00 00 00 00 70 [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 0E 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 0E 00 BA 39 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 EF [17:47:55]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:47:55]wFMCommunicate OK [17:47:55]SAM_PROTO_GetShiftState done [17:47:55]FM_GetShiftState done [17:47:55]req_shift_opened done [17:47:55]requested_item shift.open_date is exist - process it [17:47:55]req_shift_open_date [17:47:55]req_shift_open_date done [17:47:55]produce_requested_data done [17:47:55]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123102,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:47:55]process_action_free close_receipt [17:47:55]json_value_free [17:47:55]json_value_free done [17:47:55]process_json_proto returns [17:47:55]Send response to host [17:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123102,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:47:55]free response buf [17:47:55]execute_script done [17:47:55]execute_script returns [17:47:55]free content buf [17:47:55]Sock 9.Close socket [17:47:55]Sock 9.Thread stoped [17:47:58]OFD Sender: No OFD packet to send [17:47:59]accept exits with 7 [17:47:59]New connection [17:47:59]New thread 3066580324 created [17:47:59]Thread 3066723684 joined [17:47:59]Waiting for new connection... [17:47:59] Sock 7.Parse request [17:47:59]Sock 7.Check first char [17:47:59]Sock 7.First char is OK [17:47:59]request: POST /json_proto HTTP/1.0 [17:47:59]Method: POST [17:47:59]URL: /json_proto [17:47:59]Method is POST - this is cgi request [17:47:59]url: /json_proto [17:47:59]query_string will be loaded in cgi processing [17:47:59]execute_cgi json_proto POST (null) [17:47:59]execute_cgi path=json_proto method=POST [17:47:59]POST find Content-Length [17:47:59]Host: 172.17.37.4:8080 [17:47:59]Content-Length: 730 [17:47:59]Content-Type: application/json [17:47:59] [17:47:59]POST finish read [17:47:59]Found Content-Length = 730 [17:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123102, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 1.000, "sum" : 67.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 67.00, "total" : 67.00, "payments": [ { "type": 0, "sum" : 67.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:59]execute_script... [17:47:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123102, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 1.000, "sum" : 67.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 67.00, "total" : 67.00, "payments": [ { "type": 0, "sum" : 67.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:59]POST & json_proto [17:47:59]process_json_proto [17:47:59]json parsed OK: [17:47:59]protocol is kg_v1.0 [17:47:59]action value=close_receipt [17:47:59]process_action close_receipt [17:47:59]cmd_close_receipt [17:47:59]MH_GetDate [17:47:59]Write to MH i2c: F0 00 00 BB 39 E3 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: F0 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: F0 09 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: F0 09 00 BB 39 00 55 B8 44 67 B8 5A 43 67 60 [17:47:59]GetLastDocTimeStamp 1732556876 [17:47:59]current date 1732556885 [17:47:59]FM_GetShiftState [17:47:59]SAM_PROTO_GetShiftState [17:47:59]wFMCommunicate request_size=4 [17:47:59]MH_SAM_APDU [17:47:59]CAPDU: 80 13 01 00 [17:47:59]Write to MH i2c: E2 08 00 BC 39 80 13 01 00 00 00 00 00 72 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:59]Read from MH i2c: E2 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 0E 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 0E 00 BC 39 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F1 [17:47:59]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:47:59]wFMCommunicate OK [17:47:59]SAM_PROTO_GetShiftState done [17:47:59]FM_GetShiftState done [17:47:59]opened in 1732493066 [17:47:59]opened+sec_in_day 1732579466 [17:47:59]quantity*price = 6740 [17:47:59]sum+1 = 6741 [17:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 67.00 НСП 1% : 0.60 НДС 12% : 7.16 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 144 25.11.2024 17:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФД осн.: 123102 ФМ осн.: 0000000000874881 ФМ: 0000000000874881 ФД: 123103 ФПД: 58690557918830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T174805&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123103&fm=58690557918830&tin=02508201610067®Number=0000000000092681&sum=6700 [17:48:00]StoreToDocumentArchive [17:48:00]shift 556 fd 123103 [17:48:00]save to /storage/0556/doc_00123103 [17:48:00]save last doc name /storage/0556/doc_00123103 to /storage/kkm_last_doc_name [17:48:00]save OK [17:48:00]Clear old archive folders... [17:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:48:00]tlvbuf is 01F4DCD0 [17:48:00]SAM_PROTO_ClearQueue [17:48:00]wFMCommunicate request_size=4 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 09 00 00 [17:48:00]Write to MH i2c: E2 08 00 CB 39 80 09 00 00 00 00 00 00 76 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 CB 39 00 90 00 78 [17:48:00]RAPDU: 90 00 [17:48:00]wFMCommunicate OK [17:48:00]SAM_PROTO_ClearQueue done [17:48:00]KKMCreateOFDPacket [17:48:00]OFDProtocolAddRootSTLVToBuf [17:48:00]FM_MakeSignedData [17:48:00]FM_MakeSignedData [17:48:00]SAM_PROTO_SignData [17:48:00]wFMCommunicate request_size=4 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 0D 01 02 [17:48:00]Write to MH i2c: E2 08 00 CC 39 80 0D 01 02 00 00 00 00 7E [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 CC 39 00 90 00 79 [17:48:00]RAPDU: 90 00 [17:48:00]wFMCommunicate OK [17:48:00]wFMCommunicate request_size=255 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 54 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 55 B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 DE E0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 [17:48:00]Write to MH i2c: E2 02 01 CD 39 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 54 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 55 B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 DE E0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 00 00 80 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:01]Read from MH i2c: E2 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 03 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 03 00 CD 39 00 90 00 7A [17:48:01]RAPDU: 90 00 [17:48:01]wFMCommunicate OK [17:48:01]wFMCommunicate request_size=38 [17:48:01]MH_SAM_APDU [17:48:01]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DF E0 01 00 35 04 06 00 35 60 F5 DB 3E 6E [17:48:01]Write to MH i2c: E2 29 00 CE 39 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DF E0 01 00 35 04 06 00 35 60 F5 DB 3E 6E 00 00 DF [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:01]Read from MH i2c: E2 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 03 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 03 00 CE 39 00 90 00 7B [17:48:01]RAPDU: 90 00 [17:48:01]wFMCommunicate OK [17:48:01]wFMCommunicate request_size=4 [17:48:01]MH_SAM_APDU [17:48:01]CAPDU: 80 0D 03 02 [17:48:01]Write to MH i2c: E2 08 00 CF 39 80 0D 03 02 00 00 00 00 83 [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:01]Read from MH i2c: E2 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 0B 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 0B 00 CF 39 00 44 75 75 AF E9 25 38 08 90 00 AF [17:48:01]RAPDU: 44 75 75 AF E9 25 38 08 90 00 [17:48:01]wFMCommunicate OK [17:48:01]SAM_PROTO_SignData done [17:48:01]FM_MakeSignedData done [17:48:01]CreateOFDProtocolMessage [17:48:01]wFMCommunicate request_size=4 [17:48:01]MH_SAM_APDU [17:48:01]CAPDU: 80 11 00 00 [17:48:01]Write to MH i2c: E2 08 00 D0 39 80 11 00 00 00 00 00 00 83 [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:01]Read from MH i2c: E2 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 17 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 17 00 D0 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DA [17:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:48:01]wFMCommunicate OK [17:48:01]CreateOFDProtocolMessage done [17:48:01]OFDSenderStorePacket 123103 [17:48:01]StoreOFDPacket docnum=123103 [17:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2B 01 00 00 DA 2A 23 01 E2 C1 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 54 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 55 B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 DE E0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DF E0 01 00 35 04 06 00 35 60 F5 DB 3E 6E 44 75 75 AF E9 25 38 08 [17:48:01]CheckFolder [17:48:01]dirname=/storage/ofd_packets [17:48:01]CheckFolder done [17:48:01]ProducePacketName [17:48:01]name=ofd_packets/00123103 [17:48:01]NVStorageSaveData ofd_packets/00123103 [17:48:01]File name is /storage/ofd_packets/00123103 [17:48:01]Write 329 bytes [17:48:01]NVStorageSaveData done [17:48:01]OFDSenderStorePacket done [17:48:01]KKMCreateOFDPacket done [17:48:01]NVStorageSaveData kkm_last_timestamp [17:48:01]File name is /storage/kkm_last_timestamp [17:48:01]Write 4 bytes [17:48:01]NVStorageSaveData done [17:48:01]ExternCall_PrintAddStr [17:48:01]wPrintStart [17:48:01]Write to MH i2c: 01 00 00 D1 39 0A [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 07 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 07 00 D1 39 00 00 00 00 00 FF 0F 1F [17:48:01]RasterBufferAndPrint [17:48:01]line Счет N : (1)717899 [17:48:01]line ИНН: 02508201610067 [17:48:01]line Контрольно-Кассовый Чек [17:48:01]line ВОЗВРАТ ПРОДАЖИ [17:48:01]line ТРК (МРК, ГНК) : 22 [17:48:01]line Товар: 2710124130 [17:48:01]line Аи-92-К-4 [17:48:01]line 1.000 * 67.40 [17:48:01]line = 67.40 [17:48:01]line НДС 12% НСП 1% [17:48:01]line > о реализуемом товаре [17:48:01]line ОКРУГЛЕНИЕ: -0.40 [17:48:01]line ИТОГО: 67.00 [17:48:01]line НСП 1% : 0.60 [17:48:01]line НДС 12% : 7.16 [17:48:01]line Наличными: 67.00 [17:48:01]line Безнал.: 0.00 [17:48:01]line Место: АЗС № 64 "Партнер Нефть" [17:48:01]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:48:01]line СНО: Общий режим [17:48:01]line Чек 144 25.11.2024 17:48 [17:48:01]line Смена: 556 ФФД: 1.0 [17:48:01]line ЗНМ: 0300000033 [17:48:01]line РНМ: 0000000000092681 [17:48:01]line Версия ККМ: 001 [17:48:01]line ФД осн.: 123102 [17:48:01]line ФМ осн.: 0000000000874881 [17:48:01]line ФМ: 0000000000874881 [17:48:01]line ФД: 123103 [17:48:01]line ФПД: 58690557918830 [17:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T174805&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123103&fm=58690557918830&tin=02508201610067®Number=0000000000092681&sum=6700 [17:48:01]written 0, free lines is 4095 [17:48:01]OFD Sender: Processing packet 123103 [packets to send 7, broken 6] [17:48:01]ProducePacketName [17:48:01]name=ofd_packets/00123103 [17:48:01]OFD Sender: To server: pG, [17:48:01]CommunicateWithHost lk.salyk.kg:30040 [17:48:01]ConnectInit lk.salyk.kg [17:48:01]Connected sock=10 [17:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2B 01 00 00 DA 2A 23 01 E2 C1 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 54 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 55 B8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 DE E0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 DF E0 01 00 35 04 06 00 35 60 F5 DB 3E 6E 44 75 75 AF E9 25 38 08 [17:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D7 F3 47 00 79 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 34 38 38 31 10 04 04 00 DF E0 01 00 F4 03 04 00 1A 64 44 67 B6 04 01 00 00 44 8D AD 63 B7 9B 55 09 [17:48:01]CommunicateWithHost err = 0 [17:48:01]CheckOFDResponse [17:48:01]1017 (14) - 77093643461234 [17:48:01]1041 (16) - 0000000000874881 [17:48:01]1040 (4) - 123103 [17:48:01]1012 (4) - 25.11.2024 11:48 [17:48:01]1206 (1) - 0 [17:48:01]OFD Sender: Remove packet 123103 [17:48:01]ProducePacketName [17:48:01]name=ofd_packets/00123103 [17:48:01]NVStorageDeleteData [17:48:01]Write to MH i2c: 01 00 00 FC 39 35 [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 07 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 07 00 FC 39 00 00 00 00 00 5B 0C A3 [17:48:01]RasterBufferAndPrint [17:48:01]line [17:48:01]line [17:48:01]line [17:48:01]line [17:48:01]line [17:48:01]written 0, free lines is 3169 [17:48:01]MH_Cut [17:48:01]Write to MH i2c: D1 01 00 03 3A 01 0F [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: D1 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: D1 01 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: D1 01 00 03 3A 00 0E [17:48:01]Write to MH i2c: 01 00 00 04 3A 3E [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:02]OFD Sender: No OFD packet to send [17:48:03]*** Cut start [17:48:03]*** Partial cut [17:48:03]*** CUTSNS_PIN = 1 [17:48:03]*** CUTSNS_PIN = 0 [17:48:03]*** Brake cut motor [17:48:03]Read from MH i2c: 01 [17:48:03]MH_I2C_Read... [17:48:03]*** Stop cut motor [17:48:03]*** Cut end [17:48:03]Read from MH i2c: 01 07 00 [17:48:03]MH_I2C_Read... [17:48:03]Read from MH i2c: 01 07 00 04 3A 00 00 00 00 00 FF 0F 53 [17:48:03]process_action close_receipt done [17:48:03]requested_data is exist [17:48:03]produce_requested_data [17:48:03]requested_item fm.sn is exist - process it [17:48:03]wFMCommunicate request_size=4 [17:48:03]MH_SAM_APDU [17:48:03]CAPDU: 80 11 00 00 [17:48:03]Write to MH i2c: E2 08 00 05 3A 80 11 00 00 00 00 00 00 B9 [17:48:03]Write i2c OK [17:48:03]MH_I2C_Read... [17:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:03]Read from MH i2c: E2 [17:48:03]MH_I2C_Read... [17:48:03]Read from MH i2c: E2 17 00 [17:48:03]MH_I2C_Read... [17:48:03]Read from MH i2c: E2 17 00 05 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 10 [17:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:48:03]wFMCommunicate OK [17:48:03]requested_item fd.num is exist - process it [17:48:03]SAM_PROTO_GetFieldsCounters [17:48:03]wFMCommunicate request_size=4 [17:48:03]MH_SAM_APDU [17:48:03]CAPDU: 80 13 00 00 [17:48:03]Write to MH i2c: E2 08 00 06 3A 80 13 00 00 00 00 00 00 BC [17:48:03]Write i2c OK [17:48:03]MH_I2C_Read... [17:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:04]Read from MH i2c: E2 [17:48:04]MH_I2C_Read... [17:48:04]Read from MH i2c: E2 62 00 [17:48:04]MH_I2C_Read... [17:48:04]Read from MH i2c: E2 62 00 06 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DF E0 01 00 0E 04 04 00 2C 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 80 [17:48:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 DF E0 01 00 0E 04 04 00 2C 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 [17:48:04]wFMCommunicate OK [17:48:04]SAM_PROTO_GetFieldsCounters done [17:48:04]requested_item shift.num is exist - process it [17:48:04]requested_item shift.opened is exist - process it [17:48:04]req_shift_opened [17:48:04]FM_GetShiftState [17:48:04]SAM_PROTO_GetShiftState [17:48:04]wFMCommunicate request_size=4 [17:48:04]MH_SAM_APDU [17:48:04]CAPDU: 80 13 01 00 [17:48:04]Write to MH i2c: E2 08 00 07 3A 80 13 01 00 00 00 00 00 BE [17:48:04]Write i2c OK [17:48:04]MH_I2C_Read... [17:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:04]Read from MH i2c: E2 [17:48:04]MH_I2C_Read... [17:48:04]Read from MH i2c: E2 0E 00 [17:48:04]MH_I2C_Read... [17:48:04]Read from MH i2c: E2 0E 00 07 3A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3D [17:48:04]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:48:04]wFMCommunicate OK [17:48:04]SAM_PROTO_GetShiftState done [17:48:04]FM_GetShiftState done [17:48:04]req_shift_opened done [17:48:04]requested_item shift.open_date is exist - process it [17:48:04]req_shift_open_date [17:48:04]req_shift_open_date done [17:48:04]produce_requested_data done [17:48:04]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123103,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:48:04]process_action_free close_receipt [17:48:04]json_value_free [17:48:04]json_value_free done [17:48:04]process_json_proto returns [17:48:04]Send response to host [17:48:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123103,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:48:04]free response buf [17:48:04]execute_script done [17:48:04]execute_script returns [17:48:04]free content buf [17:48:04]Sock 7.Close socket [17:48:04]Sock 7.Thread stoped [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:04]accept exits with 9 [17:51:04]New connection [17:51:04]New thread 3066723684 created [17:51:04]Thread 3066580324 joined [17:51:04]Waiting for new connection... [17:51:04] Sock 9.Parse request [17:51:04]Sock 9.Check first char [17:51:04]Sock 9.First char is OK [17:51:04]request: POST /json_proto HTTP/1.0 [17:51:04]Method: POST [17:51:04]URL: /json_proto [17:51:04]Method is POST - this is cgi request [17:51:04]url: /json_proto [17:51:04]query_string will be loaded in cgi processing [17:51:04]execute_cgi json_proto POST (null) [17:51:04]execute_cgi path=json_proto method=POST [17:51:04]POST find Content-Length [17:51:04]Host: 172.17.37.4:8080 [17:51:04]Content-Length: 677 [17:51:04]Content-Type: application/json [17:51:04] [17:51:04]POST finish read [17:51:04]Found Content-Length = 677 [17:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:04]execute_script... [17:51: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)717900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:04]POST & json_proto [17:51:04]process_json_proto [17:51:04]json parsed OK: [17:51:04]protocol is kg_v1.0 [17:51:04]action value=close_receipt [17:51:04]process_action close_receipt [17:51:04]cmd_close_receipt [17:51:04]MH_GetDate [17:51:04]Write to MH i2c: F0 00 00 08 3A 31 [17:51:04]Write i2c OK [17:51:04]MH_I2C_Read... [17:51:04]Read from MH i2c: F0 [17:51:04]MH_I2C_Read... [17:51:04]Read from MH i2c: F0 09 00 [17:51:04]MH_I2C_Read... [17:51:04]Read from MH i2c: F0 09 00 08 3A 00 0E B9 44 67 B8 5A 43 67 68 [17:51:04]GetLastDocTimeStamp 1732556885 [17:51:04]current date 1732557070 [17:51:04]FM_GetShiftState [17:51:04]SAM_PROTO_GetShiftState [17:51:04]wFMCommunicate request_size=4 [17:51:04]MH_SAM_APDU [17:51:04]CAPDU: 80 13 01 00 [17:51:04]Write to MH i2c: E2 08 00 09 3A 80 13 01 00 00 00 00 00 C0 [17:51:04]Write i2c OK [17:51:04]MH_I2C_Read... [17:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:04]Read from MH i2c: E2 [17:51:04]MH_I2C_Read... [17:51:04]Read from MH i2c: E2 0E 00 [17:51:04]MH_I2C_Read... [17:51:04]Read from MH i2c: E2 0E 00 09 3A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3F [17:51:04]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:51:04]wFMCommunicate OK [17:51:04]SAM_PROTO_GetShiftState done [17:51:04]FM_GetShiftState done [17:51:04]opened in 1732493066 [17:51:04]opened+sec_in_day 1732579466 [17:51:04]quantity*price = 50010 [17:51:04]sum+1 = 50012 [17:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 145 25.11.2024 17:51 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123104 ФПД: 24290283778211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175110&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123104&fm=24290283778211&tin=02508201610067®Number=0000000000092681&sum=50000 [17:51:05]StoreToDocumentArchive [17:51:05]shift 556 fd 123104 [17:51:05]save to /storage/0556/doc_00123104 [17:51:05]save last doc name /storage/0556/doc_00123104 to /storage/kkm_last_doc_name [17:51:05]save OK [17:51:05]Clear old archive folders... [17:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:05]tlvbuf is 020D3490 [17:51:05]SAM_PROTO_ClearQueue [17:51:05]wFMCommunicate request_size=4 [17:51:05]MH_SAM_APDU [17:51:05]CAPDU: 80 09 00 00 [17:51:05]Write to MH i2c: E2 08 00 16 3A 80 09 00 00 00 00 00 00 C2 [17:51:05]Write i2c OK [17:51:05]MH_I2C_Read... [17:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:05]Read from MH i2c: E2 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 03 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 03 00 16 3A 00 90 00 C4 [17:51:05]RAPDU: 90 00 [17:51:05]wFMCommunicate OK [17:51:05]SAM_PROTO_ClearQueue done [17:51:05]KKMCreateOFDPacket [17:51:05]OFDProtocolAddRootSTLVToBuf [17:51:05]FM_MakeSignedData [17:51:05]FM_MakeSignedData [17:51:05]SAM_PROTO_SignData [17:51:05]wFMCommunicate request_size=4 [17:51:05]MH_SAM_APDU [17:51:05]CAPDU: 80 0D 01 02 [17:51:05]Write to MH i2c: E2 08 00 17 3A 80 0D 01 02 00 00 00 00 CA [17:51:05]Write i2c OK [17:51:05]MH_I2C_Read... [17:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:05]Read from MH i2c: E2 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 03 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 03 00 17 3A 00 90 00 C5 [17:51:05]RAPDU: 90 00 [17:51:05]wFMCommunicate OK [17:51:05]wFMCommunicate request_size=255 [17:51:05]MH_SAM_APDU [17:51:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 0E B9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E0 E0 01 00 35 04 06 00 16 [17:51:05]Write to MH i2c: E2 02 01 18 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 0E B9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E0 E0 01 00 35 04 06 00 16 00 00 39 [17:51:05]Write i2c OK [17:51:05]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 18 3A 00 90 00 C6 [17:51:06]RAPDU: 90 00 [17:51:06]wFMCommunicate OK [17:51:06]wFMCommunicate request_size=10 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 0D 02 02 05 17 85 BC 70 A3 [17:51:06]Write to MH i2c: E2 0D 00 19 3A 80 0D 02 02 05 00 17 85 BC 70 A3 00 00 42 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 19 3A 00 90 00 C7 [17:51:06]RAPDU: 90 00 [17:51:06]wFMCommunicate OK [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 0D 03 02 [17:51:06]Write to MH i2c: E2 08 00 1A 3A 80 0D 03 02 00 00 00 00 CF [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0B 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0B 00 1A 3A 00 AF DB 75 F2 95 E1 86 B1 90 00 6E [17:51:06]RAPDU: AF DB 75 F2 95 E1 86 B1 90 00 [17:51:06]wFMCommunicate OK [17:51:06]SAM_PROTO_SignData done [17:51:06]FM_MakeSignedData done [17:51:06]CreateOFDProtocolMessage [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 11 00 00 [17:51:06]Write to MH i2c: E2 08 00 1B 3A 80 11 00 00 00 00 00 00 CF [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 17 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 17 00 1B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 26 [17:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:51:06]wFMCommunicate OK [17:51:06]CreateOFDProtocolMessage done [17:51:06]OFDSenderStorePacket 123104 [17:51:06]StoreOFDPacket docnum=123104 [17:51:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 67 F4 07 01 FC 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 0E B9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E0 E0 01 00 35 04 06 00 16 17 85 BC 70 A3 AF DB 75 F2 95 E1 86 B1 [17:51:06]CheckFolder [17:51:06]dirname=/storage/ofd_packets [17:51:06]CheckFolder done [17:51:06]ProducePacketName [17:51:06]name=ofd_packets/00123104 [17:51:06]NVStorageSaveData ofd_packets/00123104 [17:51:06]File name is /storage/ofd_packets/00123104 [17:51:06]Write 301 bytes [17:51:06]NVStorageSaveData done [17:51:06]OFDSenderStorePacket done [17:51:06]KKMCreateOFDPacket done [17:51:06]NVStorageSaveData kkm_last_timestamp [17:51:06]File name is /storage/kkm_last_timestamp [17:51:06]Write 4 bytes [17:51:06]NVStorageSaveData done [17:51:06]ExternCall_PrintAddStr [17:51:06]wPrintStart [17:51:06]Write to MH i2c: 01 00 00 1C 3A 56 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: 01 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: 01 07 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: 01 07 00 1C 3A 00 00 00 00 00 FF 0F 6B [17:51:06]RasterBufferAndPrint [17:51:06]line Счет N : (1)717900 [17:51:06]line ИНН: 02508201610067 [17:51:06]line Контрольно-Кассовый Чек [17:51:06]line ПРОДАЖА [17:51:06]line ТРК (МРК, ГНК) : 12 [17:51:06]line Товар: 2710124130 [17:51:06]line Аи-92-К-4 [17:51:06]line 7.420 * 67.40 [17:51:06]line = 500.11 [17:51:06]line НДС 12% НСП 1% [17:51:06]line > о реализуемом товаре [17:51:06]line ОКРУГЛЕНИЕ: -0.11 [17:51:06]line ИТОГО: 500.00 [17:51:06]line Внесено: 500.00 [17:51:06]line СДАЧА: 0.00 [17:51:06]line НСП 1% : 4.43 [17:51:06]line НДС 12% : 53.11 [17:51:06]line Наличными: 500.00 [17:51:06]line Безнал.: 0.00 [17:51:06]line Место: АЗС № 64 "Партнер Нефть" [17:51:06]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:51:06]line СНО: Общий режим [17:51:06]line Чек 145 25.11.2024 17:51 [17:51:06]line Смена: 556 ФФД: 1.0 [17:51:06]line ЗНМ: 0300000033 [17:51:06]line РНМ: 0000000000092681 [17:51:06]line Версия ККМ: 001 [17:51:06]line ФМ: 0000000000874881 [17:51:06]line ФД: 123104 [17:51:06]line ФПД: 24290283778211 [17:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175110&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123104&fm=24290283778211&tin=02508201610067®Number=0000000000092681&sum=50000 [17:51:06]OFD Sender: Processing packet 123104 [packets to send 7, broken 6] [17:51:06]ProducePacketName [17:51:06]name=ofd_packets/00123104 [17:51:06]OFD Sender: To server: pG, [17:51:06]CommunicateWithHost lk.salyk.kg:30040 [17:51:06]ConnectInit lk.salyk.kg [17:51:06]written 0, free lines is 4095 [17:51:06]Connected sock=10 [17:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 67 F4 07 01 FC 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 0E B9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E0 E0 01 00 35 04 06 00 16 17 85 BC 70 A3 AF DB 75 F2 95 E1 86 B1 [17:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 79 13 47 00 57 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 34 38 38 31 10 04 04 00 E0 E0 01 00 F4 03 04 00 D4 64 44 67 B6 04 01 00 00 31 0F 5A 42 D2 A0 23 5D [17:51:06]CommunicateWithHost err = 0 [17:51:06]CheckOFDResponse [17:51:06]1017 (14) - 77093643461234 [17:51:06]1041 (16) - 0000000000874881 [17:51:06]1040 (4) - 123104 [17:51:06]1012 (4) - 25.11.2024 11:51 [17:51:06]1206 (1) - 0 [17:51:06]OFD Sender: Remove packet 123104 [17:51:06]ProducePacketName [17:51:06]name=ofd_packets/00123104 [17:51:06]NVStorageDeleteData [17:51:07]Write to MH i2c: 01 00 00 47 3A 81 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 47 3A 00 00 00 00 00 43 0C D7 [17:51:07]RasterBufferAndPrint [17:51:07]line [17:51:07]line [17:51:07]line [17:51:07]line [17:51:07]line [17:51:07]written 0, free lines is 3144 [17:51:07]MH_Cut [17:51:07]Write to MH i2c: D1 01 00 4E 3A 01 5A [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: D1 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: D1 01 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: D1 01 00 4E 3A 00 59 [17:51:07]Write to MH i2c: 01 00 00 4F 3A 89 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]OFD Sender: No OFD packet to send [17:51:08]*** Cut start [17:51:08]*** Partial cut [17:51:08]*** CUTSNS_PIN = 1 [17:51:08]*** CUTSNS_PIN = 0 [17:51:08]*** Brake cut motor [17:51:09]Read from MH i2c: 01 [17:51:09]MH_I2C_Read... [17:51:09]*** Stop cut motor [17:51:09]*** Cut end [17:51:09]Read from MH i2c: 01 07 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: 01 07 00 4F 3A 00 00 00 00 00 FF 0F 9E [17:51:09]process_action close_receipt done [17:51:09]requested_data is exist [17:51:09]produce_requested_data [17:51:09]requested_item fm.sn is exist - process it [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 11 00 00 [17:51:09]Write to MH i2c: E2 08 00 50 3A 80 11 00 00 00 00 00 00 04 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 17 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 17 00 50 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5B [17:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:51:09]wFMCommunicate OK [17:51:09]requested_item fd.num is exist - process it [17:51:09]SAM_PROTO_GetFieldsCounters [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 13 00 00 [17:51:09]Write to MH i2c: E2 08 00 51 3A 80 13 00 00 00 00 00 00 07 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 62 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 62 00 51 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E0 E0 01 00 0E 04 04 00 2C 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 CF [17:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E0 E0 01 00 0E 04 04 00 2C 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 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_GetFieldsCounters done [17:51:09]requested_item shift.num is exist - process it [17:51:09]requested_item shift.opened is exist - process it [17:51:09]req_shift_opened [17:51:09]FM_GetShiftState [17:51:09]SAM_PROTO_GetShiftState [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 13 01 00 [17:51:09]Write to MH i2c: E2 08 00 52 3A 80 13 01 00 00 00 00 00 09 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0E 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0E 00 52 3A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 88 [17:51:09]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_GetShiftState done [17:51:09]FM_GetShiftState done [17:51:09]req_shift_opened done [17:51:09]requested_item shift.open_date is exist - process it [17:51:09]req_shift_open_date [17:51:09]req_shift_open_date done [17:51:09]produce_requested_data done [17:51:09]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123104,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:51:09]process_action_free close_receipt [17:51:09]json_value_free [17:51:09]json_value_free done [17:51:09]process_json_proto returns [17:51:09]Send response to host [17:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123104,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:51:09]free response buf [17:51:09]execute_script done [17:51:09]execute_script returns [17:51:09]free content buf [17:51:09]Sock 9.Close socket [17:51:09]Sock 9.Thread stoped [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:48]accept exits with 7 [17:56:48]New connection [17:56:48]New thread 3066580324 created [17:56:48]Thread 3066723684 joined [17:56:48]Waiting for new connection... [17:56:48] Sock 7.Parse request [17:56:48]Sock 7.Check first char [17:56:48]Sock 7.First char is OK [17:56:48]request: POST /json_proto HTTP/1.0 [17:56:48]Method: POST [17:56:48]URL: /json_proto [17:56:48]Method is POST - this is cgi request [17:56:48]url: /json_proto [17:56:48]query_string will be loaded in cgi processing [17:56:48]execute_cgi json_proto POST (null) [17:56:48]execute_cgi path=json_proto method=POST [17:56:48]POST find Content-Length [17:56:48]Host: 172.17.37.4:8080 [17:56:48]Content-Length: 677 [17:56:48]Content-Type: application/json [17:56:48] [17:56:48]POST finish read [17:56:48]Found Content-Length = 677 [17:56:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:48]execute_script... [17:56: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)717902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:48]POST & json_proto [17:56:48]process_json_proto [17:56:48]json parsed OK: [17:56:48]protocol is kg_v1.0 [17:56:48]action value=close_receipt [17:56:48]process_action close_receipt [17:56:48]cmd_close_receipt [17:56:48]MH_GetDate [17:56:48]Write to MH i2c: F0 00 00 53 3A 7C [17:56:48]Write i2c OK [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: F0 [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: F0 09 00 [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: F0 09 00 53 3A 00 67 BA 44 67 B8 5A 43 67 0D [17:56:48]GetLastDocTimeStamp 1732557070 [17:56:48]current date 1732557415 [17:56:48]FM_GetShiftState [17:56:48]SAM_PROTO_GetShiftState [17:56:48]wFMCommunicate request_size=4 [17:56:48]MH_SAM_APDU [17:56:48]CAPDU: 80 13 01 00 [17:56:48]Write to MH i2c: E2 08 00 54 3A 80 13 01 00 00 00 00 00 0B [17:56:48]Write i2c OK [17:56:48]MH_I2C_Read... [17:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:48]Read from MH i2c: E2 [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: E2 0E 00 [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: E2 0E 00 54 3A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 8A [17:56:48]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:56:48]wFMCommunicate OK [17:56:48]SAM_PROTO_GetShiftState done [17:56:48]FM_GetShiftState done [17:56:48]opened in 1732493066 [17:56:48]opened+sec_in_day 1732579466 [17:56:48]quantity*price = 50010 [17:56:48]sum+1 = 50012 [17:56:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 146 25.11.2024 17:56 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123105 ФПД: 161842409470448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175655&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123105&fm=161842409470448&tin=02508201610067®Number=0000000000092681&sum=50000 [17:56:50]StoreToDocumentArchive [17:56:50]shift 556 fd 123105 [17:56:50]save to /storage/0556/doc_00123105 [17:56:50]save last doc name /storage/0556/doc_00123105 to /storage/kkm_last_doc_name [17:56:50]save OK [17:56:50]Clear old archive folders... [17:56:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:50]tlvbuf is 01F93DF0 [17:56:50]SAM_PROTO_ClearQueue [17:56:50]wFMCommunicate request_size=4 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 09 00 00 [17:56:50]Write to MH i2c: E2 08 00 61 3A 80 09 00 00 00 00 00 00 0D [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 61 3A 00 90 00 0F [17:56:50]RAPDU: 90 00 [17:56:50]wFMCommunicate OK [17:56:50]SAM_PROTO_ClearQueue done [17:56:50]KKMCreateOFDPacket [17:56:50]OFDProtocolAddRootSTLVToBuf [17:56:50]FM_MakeSignedData [17:56:50]FM_MakeSignedData [17:56:50]SAM_PROTO_SignData [17:56:50]wFMCommunicate request_size=4 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 0D 01 02 [17:56:50]Write to MH i2c: E2 08 00 62 3A 80 0D 01 02 00 00 00 00 15 [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 62 3A 00 90 00 10 [17:56:50]RAPDU: 90 00 [17:56:50]wFMCommunicate OK [17:56:50]wFMCommunicate request_size=255 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 67 BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E1 E0 01 00 35 04 06 00 93 [17:56:50]Write to MH i2c: E2 02 01 63 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 67 BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E1 E0 01 00 35 04 06 00 93 00 00 5D [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:50]Read from MH i2c: E2 03 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 63 3A 00 90 00 11 [17:56:50]RAPDU: 90 00 [17:56:50]wFMCommunicate OK [17:56:50]wFMCommunicate request_size=10 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 0D 02 02 05 31 DF 53 79 F0 [17:56:50]Write to MH i2c: E2 0D 00 64 3A 80 0D 02 02 05 00 31 DF 53 79 F0 00 00 EE [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 64 3A 00 90 00 12 [17:56:50]RAPDU: 90 00 [17:56:50]wFMCommunicate OK [17:56:50]wFMCommunicate request_size=4 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 0D 03 02 [17:56:50]Write to MH i2c: E2 08 00 65 3A 80 0D 03 02 00 00 00 00 1A [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 0B 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 0B 00 65 3A 00 C1 BF D9 E6 BC 32 56 FE 90 00 9C [17:56:50]RAPDU: C1 BF D9 E6 BC 32 56 FE 90 00 [17:56:50]wFMCommunicate OK [17:56:50]SAM_PROTO_SignData done [17:56:50]FM_MakeSignedData done [17:56:50]CreateOFDProtocolMessage [17:56:50]wFMCommunicate request_size=4 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 11 00 00 [17:56:50]Write to MH i2c: E2 08 00 66 3A 80 11 00 00 00 00 00 00 1A [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 17 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 17 00 66 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 71 [17:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:56:50]wFMCommunicate OK [17:56:50]CreateOFDProtocolMessage done [17:56:50]OFDSenderStorePacket 123105 [17:56:50]StoreOFDPacket docnum=123105 [17:56:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 91 5B 07 01 A0 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 67 BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E1 E0 01 00 35 04 06 00 93 31 DF 53 79 F0 C1 BF D9 E6 BC 32 56 FE [17:56:50]CheckFolder [17:56:50]dirname=/storage/ofd_packets [17:56:50]CheckFolder done [17:56:50]ProducePacketName [17:56:50]name=ofd_packets/00123105 [17:56:50]NVStorageSaveData ofd_packets/00123105 [17:56:50]File name is /storage/ofd_packets/00123105 [17:56:50]Write 301 bytes [17:56:50]NVStorageSaveData done [17:56:50]OFDSenderStorePacket done [17:56:50]KKMCreateOFDPacket done [17:56:50]NVStorageSaveData kkm_last_timestamp [17:56:50]File name is /storage/kkm_last_timestamp [17:56:50]Write 4 bytes [17:56:50]NVStorageSaveData done [17:56:50]ExternCall_PrintAddStr [17:56:50]wPrintStart [17:56:50]Write to MH i2c: 01 00 00 67 3A A1 [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: 01 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: 01 07 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: 01 07 00 67 3A 00 00 00 00 00 FF 0F B6 [17:56:50]RasterBufferAndPrint [17:56:50]line Счет N : (1)717902 [17:56:50]line ИНН: 02508201610067 [17:56:50]line Контрольно-Кассовый Чек [17:56:50]line ПРОДАЖА [17:56:50]line ТРК (МРК, ГНК) : 22 [17:56:50]line Товар: 2710124130 [17:56:50]line Аи-92-К-4 [17:56:50]line 7.420 * 67.40 [17:56:50]line = 500.11 [17:56:50]line НДС 12% НСП 1% [17:56:50]line > о реализуемом товаре [17:56:50]line ОКРУГЛЕНИЕ: -0.11 [17:56:50]line ИТОГО: 500.00 [17:56:50]line Внесено: 500.00 [17:56:50]line СДАЧА: 0.00 [17:56:50]line НСП 1% : 4.43 [17:56:50]line НДС 12% : 53.11 [17:56:50]line Наличными: 500.00 [17:56:50]line Безнал.: 0.00 [17:56:50]line Место: АЗС № 64 "Партнер Нефть" [17:56:50]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:56:50]line СНО: Общий режим [17:56:50]line Чек 146 25.11.2024 17:56 [17:56:50]line Смена: 556 ФФД: 1.0 [17:56:50]line ЗНМ: 0300000033 [17:56:50]line РНМ: 0000000000092681 [17:56:50]line Версия ККМ: 001 [17:56:50]line ФМ: 0000000000874881 [17:56:50]line ФД: 123105 [17:56:50]line ФПД: 161842409470448 [17:56:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175655&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123105&fm=161842409470448&tin=02508201610067®Number=0000000000092681&sum=50000 [17:56:50]written 0, free lines is 4095 [17:56:50]OFD Sender: Processing packet 123105 [packets to send 7, broken 6] [17:56:50]ProducePacketName [17:56:50]name=ofd_packets/00123105 [17:56:50]OFD Sender: To server: pG, [17:56:50]CommunicateWithHost lk.salyk.kg:30040 [17:56:50]ConnectInit lk.salyk.kg [17:56:50]Connected sock=11 [17:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 91 5B 07 01 A0 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 67 BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E1 E0 01 00 35 04 06 00 93 31 DF 53 79 F0 C1 BF D9 E6 BC 32 56 FE [17:56:51]Write to MH i2c: 01 00 00 92 3A CC [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: 01 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: 01 07 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: 01 07 00 92 3A 00 00 00 00 00 47 0C 26 [17:56:51]RasterBufferAndPrint [17:56:51]line [17:56:51]line [17:56:51]line [17:56:51]line [17:56:51]line [17:56:51]written 0, free lines is 3147 [17:56:51]MH_Cut [17:56:51]Write to MH i2c: D1 01 00 99 3A 01 A5 [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: D1 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: D1 01 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: D1 01 00 99 3A 00 A4 [17:56:51]Write to MH i2c: 01 00 00 9A 3A D4 [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 35 60 47 00 BF 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E1 E0 01 00 F4 03 04 00 2C 66 44 67 B6 04 01 00 00 9C 7C 62 EC DC 92 03 8F [17:56:51]CommunicateWithHost err = 0 [17:56:51]CheckOFDResponse [17:56:51]1017 (14) - 77093643461234 [17:56:51]1041 (16) - 0000000000874881 [17:56:51]1040 (4) - 123105 [17:56:51]1012 (4) - 25.11.2024 11:57 [17:56:51]1206 (1) - 0 [17:56:51]OFD Sender: Remove packet 123105 [17:56:51]ProducePacketName [17:56:51]name=ofd_packets/00123105 [17:56:51]NVStorageDeleteData [17:56:51]OFD Sender: No OFD packet to send [17:56:52]*** Cut start [17:56:52]*** Partial cut [17:56:52]*** CUTSNS_PIN = 1 [17:56:52]*** CUTSNS_PIN = 0 [17:56:52]*** Brake cut motor [17:56:53]Read from MH i2c: 01 [17:56:53]MH_I2C_Read... [17:56:53]*** Stop cut motor [17:56:53]*** Cut end [17:56:53]Read from MH i2c: 01 07 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 9A 3A 00 00 00 00 00 FF 0F E9 [17:56:53]process_action close_receipt done [17:56:53]requested_data is exist [17:56:53]produce_requested_data [17:56:53]requested_item fm.sn is exist - process it [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 11 00 00 [17:56:53]Write to MH i2c: E2 08 00 9B 3A 80 11 00 00 00 00 00 00 4F [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 17 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 17 00 9B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A6 [17:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:56:53]wFMCommunicate OK [17:56:53]requested_item fd.num is exist - process it [17:56:53]SAM_PROTO_GetFieldsCounters [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 13 00 00 [17:56:53]Write to MH i2c: E2 08 00 9C 3A 80 13 00 00 00 00 00 00 52 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 62 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 62 00 9C 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E1 E0 01 00 0E 04 04 00 2C 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 1E [17:56:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E1 E0 01 00 0E 04 04 00 2C 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 [17:56:53]wFMCommunicate OK [17:56:53]SAM_PROTO_GetFieldsCounters done [17:56:53]requested_item shift.num is exist - process it [17:56:53]requested_item shift.opened is exist - process it [17:56:53]req_shift_opened [17:56:53]FM_GetShiftState [17:56:53]SAM_PROTO_GetShiftState [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 13 01 00 [17:56:53]Write to MH i2c: E2 08 00 9D 3A 80 13 01 00 00 00 00 00 54 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 0E 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 0E 00 9D 3A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D3 [17:56:53]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:56:53]wFMCommunicate OK [17:56:53]SAM_PROTO_GetShiftState done [17:56:53]FM_GetShiftState done [17:56:53]req_shift_opened done [17:56:53]requested_item shift.open_date is exist - process it [17:56:53]req_shift_open_date [17:56:53]req_shift_open_date done [17:56:53]produce_requested_data done [17:56:53]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123105,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:56:53]process_action_free close_receipt [17:56:53]json_value_free [17:56:53]json_value_free done [17:56:53]process_json_proto returns [17:56:53]Send response to host [17:56:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123105,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:56:53]free response buf [17:56:53]execute_script done [17:56:53]execute_script returns [17:56:53]free content buf [17:56:53]Sock 7.Close socket [17:56:53]Sock 7.Thread stoped [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:57:58]accept exits with 9 [17:57:58]New connection [17:57:58]New thread 3066723684 created [17:57:58]Thread 3066580324 joined [17:57:58]Waiting for new connection... [17:57:58] Sock 9.Parse request [17:57:58]Sock 9.Check first char [17:57:58]Sock 9.First char is OK [17:57:58]request: POST /json_proto HTTP/1.0 [17:57:58]Method: POST [17:57:58]URL: /json_proto [17:57:58]Method is POST - this is cgi request [17:57:58]url: /json_proto [17:57:58]query_string will be loaded in cgi processing [17:57:58]execute_cgi json_proto POST (null) [17:57:58]execute_cgi path=json_proto method=POST [17:57:58]POST find Content-Length [17:57:58]Host: 172.17.37.4:8080 [17:57:58]Content-Length: 682 [17:57:58]Content-Type: application/json [17:57:58] [17:57:58]POST finish read [17:57:58]Found Content-Length = 682 [17:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:58]execute_script... [17:57: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)717901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:58]POST & json_proto [17:57:58]process_json_proto [17:57:58]json parsed OK: [17:57:58]protocol is kg_v1.0 [17:57:58]action value=close_receipt [17:57:58]process_action close_receipt [17:57:58]cmd_close_receipt [17:57:58]MH_GetDate [17:57:58]Write to MH i2c: F0 00 00 9E 3A C7 [17:57:58]Write i2c OK [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: F0 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: F0 09 00 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: F0 09 00 9E 3A 00 AD BA 44 67 B8 5A 43 67 9E [17:57:58]GetLastDocTimeStamp 1732557415 [17:57:58]current date 1732557485 [17:57:58]FM_GetShiftState [17:57:58]SAM_PROTO_GetShiftState [17:57:58]wFMCommunicate request_size=4 [17:57:58]MH_SAM_APDU [17:57:58]CAPDU: 80 13 01 00 [17:57:58]Write to MH i2c: E2 08 00 9F 3A 80 13 01 00 00 00 00 00 56 [17:57:58]Write i2c OK [17:57:58]MH_I2C_Read... [17:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:59]Read from MH i2c: E2 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 0E 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 0E 00 9F 3A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D5 [17:57:59]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:57:59]wFMCommunicate OK [17:57:59]SAM_PROTO_GetShiftState done [17:57:59]FM_GetShiftState done [17:57:59]opened in 1732493066 [17:57:59]opened+sec_in_day 1732579466 [17:57:59]quantity*price = 150032 [17:57:59]sum+1 = 150033 [17:57:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 147 25.11.2024 17:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123106 ФПД: 74336066898943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175805&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123106&fm=74336066898943&tin=02508201610067®Number=0000000000092681&sum=150000 [17:58:00]StoreToDocumentArchive [17:58:00]shift 556 fd 123106 [17:58:00]save to /storage/0556/doc_00123106 [17:58:00]save last doc name /storage/0556/doc_00123106 to /storage/kkm_last_doc_name [17:58:00]save OK [17:58:00]Clear old archive folders... [17:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:00]tlvbuf is 020691B0 [17:58:00]SAM_PROTO_ClearQueue [17:58:00]wFMCommunicate request_size=4 [17:58:00]MH_SAM_APDU [17:58:00]CAPDU: 80 09 00 00 [17:58:00]Write to MH i2c: E2 08 00 AC 3A 80 09 00 00 00 00 00 00 58 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 03 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 03 00 AC 3A 00 90 00 5A [17:58:00]RAPDU: 90 00 [17:58:00]wFMCommunicate OK [17:58:00]SAM_PROTO_ClearQueue done [17:58:00]KKMCreateOFDPacket [17:58:00]OFDProtocolAddRootSTLVToBuf [17:58:00]FM_MakeSignedData [17:58:00]FM_MakeSignedData [17:58:00]SAM_PROTO_SignData [17:58:00]wFMCommunicate request_size=4 [17:58:00]MH_SAM_APDU [17:58:00]CAPDU: 80 0D 01 02 [17:58:00]Write to MH i2c: E2 08 00 AD 3A 80 0D 01 02 00 00 00 00 60 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 03 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 03 00 AD 3A 00 90 00 5B [17:58:00]RAPDU: 90 00 [17:58:00]wFMCommunicate OK [17:58:00]wFMCommunicate request_size=255 [17:58:00]MH_SAM_APDU [17:58: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 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 AD BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E2 E0 01 00 35 04 06 00 43 [17:58:00]Write to MH i2c: E2 02 01 AE 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 AD BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E2 E0 01 00 35 04 06 00 43 00 00 81 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 03 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 03 00 AE 3A 00 90 00 5C [17:58:00]RAPDU: 90 00 [17:58:00]wFMCommunicate OK [17:58:00]wFMCommunicate request_size=10 [17:58:00]MH_SAM_APDU [17:58:00]CAPDU: 80 0D 02 02 05 9B B6 DC 8B FF [17:58:00]Write to MH i2c: E2 0D 00 AF 3A 80 0D 02 02 05 00 9B B6 DC 8B FF 00 00 24 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 03 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 03 00 AF 3A 00 90 00 5D [17:58:00]RAPDU: 90 00 [17:58:00]wFMCommunicate OK [17:58:00]wFMCommunicate request_size=4 [17:58:00]MH_SAM_APDU [17:58:00]CAPDU: 80 0D 03 02 [17:58:00]Write to MH i2c: E2 08 00 B0 3A 80 0D 03 02 00 00 00 00 65 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 0B 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 0B 00 B0 3A 00 E1 F6 14 00 C9 F2 3A 96 90 00 DC [17:58:00]RAPDU: E1 F6 14 00 C9 F2 3A 96 90 00 [17:58:00]wFMCommunicate OK [17:58:00]SAM_PROTO_SignData done [17:58:00]FM_MakeSignedData done [17:58:00]CreateOFDProtocolMessage [17:58:00]wFMCommunicate request_size=4 [17:58:00]MH_SAM_APDU [17:58:00]CAPDU: 80 11 00 00 [17:58:00]Write to MH i2c: E2 08 00 B1 3A 80 11 00 00 00 00 00 00 65 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 17 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 17 00 B1 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BC [17:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:58:00]wFMCommunicate OK [17:58:00]CreateOFDProtocolMessage done [17:58:00]OFDSenderStorePacket 123106 [17:58:00]StoreOFDPacket docnum=123106 [17:58:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 08 94 07 01 18 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 AD BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E2 E0 01 00 35 04 06 00 43 9B B6 DC 8B FF E1 F6 14 00 C9 F2 3A 96 [17:58:00]CheckFolder [17:58:00]dirname=/storage/ofd_packets [17:58:00]CheckFolder done [17:58:00]ProducePacketName [17:58:00]name=ofd_packets/00123106 [17:58:00]NVStorageSaveData ofd_packets/00123106 [17:58:00]File name is /storage/ofd_packets/00123106 [17:58:00]Write 301 bytes [17:58:00]NVStorageSaveData done [17:58:00]OFDSenderStorePacket done [17:58:00]KKMCreateOFDPacket done [17:58:00]NVStorageSaveData kkm_last_timestamp [17:58:00]File name is /storage/kkm_last_timestamp [17:58:00]Write 4 bytes [17:58:00]NVStorageSaveData done [17:58:00]ExternCall_PrintAddStr [17:58:00]wPrintStart [17:58:00]Write to MH i2c: 01 00 00 B2 3A EC [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 B2 3A 00 00 00 00 00 FF 0F 01 [17:58:00]RasterBufferAndPrint [17:58:00]line Счет N : (1)717901 [17:58:00]line ИНН: 02508201610067 [17:58:00]line Контрольно-Кассовый Чек [17:58:00]line ПРОДАЖА [17:58:00]line ТРК (МРК, ГНК) : 32 [17:58:00]line Товар: 2710124130 [17:58:00]line Аи-92-К-4 [17:58:00]line 22.260 * 67.40 [17:58:00]line = 1500.32 [17:58:00]line НДС 12% НСП 1% [17:58:00]line > о реализуемом товаре [17:58:00]line ОКРУГЛЕНИЕ: -0.32 [17:58:00]line ИТОГО: 1500.00 [17:58:00]line Внесено: 1500.00 [17:58:00]line СДАЧА: 0.00 [17:58:00]line НСП 1% : 13.28 [17:58:00]line НДС 12% : 159.33 [17:58:00]line Наличными: 1500.00 [17:58:00]line Безнал.: 0.00 [17:58:00]line Место: АЗС № 64 "Партнер Нефть" [17:58:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:58:00]line СНО: Общий режим [17:58:00]line Чек 147 25.11.2024 17:58 [17:58:00]line Смена: 556 ФФД: 1.0 [17:58:00]line ЗНМ: 0300000033 [17:58:00]line РНМ: 0000000000092681 [17:58:00]line Версия ККМ: 001 [17:58:00]line ФМ: 0000000000874881 [17:58:00]line ФД: 123106 [17:58:00]line ФПД: 74336066898943 [17:58:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175805&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123106&fm=74336066898943&tin=02508201610067®Number=0000000000092681&sum=150000 [17:58:01]OFD Sender: Processing packet 123106 [packets to send 7, broken 6] [17:58:01]ProducePacketName [17:58:01]name=ofd_packets/00123106 [17:58:01]OFD Sender: To server: pG, [17:58:01]CommunicateWithHost lk.salyk.kg:30040 [17:58:01]ConnectInit lk.salyk.kg [17:58:01]written 0, free lines is 4095 [17:58:01]Connected sock=7 [17:58:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 08 94 07 01 18 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 AD BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E2 E0 01 00 35 04 06 00 43 9B B6 DC 8B FF E1 F6 14 00 C9 F2 3A 96 [17:58:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 1B 0C 47 00 E6 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E2 E0 01 00 F4 03 04 00 72 66 44 67 B6 04 01 00 00 2A 8D 07 FB B8 9E AC 67 [17:58:01]CommunicateWithHost err = 0 [17:58:01]CheckOFDResponse [17:58:01]1017 (14) - 77093643461234 [17:58:01]1041 (16) - 0000000000874881 [17:58:01]1040 (4) - 123106 [17:58:01]1012 (4) - 25.11.2024 11:58 [17:58:01]1206 (1) - 0 [17:58:01]OFD Sender: Remove packet 123106 [17:58:01]ProducePacketName [17:58:01]name=ofd_packets/00123106 [17:58:01]NVStorageDeleteData [17:58:01]Write to MH i2c: 01 00 00 DD 3A 17 [17:58:01]Write i2c OK [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: 01 [17:58:01]MH_I2C_Read... [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 DD 3A 00 00 00 00 00 47 0C 71 [17:58:01]RasterBufferAndPrint [17:58:01]line [17:58:01]line [17:58:01]line [17:58:01]line [17:58:01]line [17:58:01]written 0, free lines is 3148 [17:58:01]MH_Cut [17:58:01]Write to MH i2c: D1 01 00 E4 3A 01 F0 [17:58:01]Write i2c OK [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: D1 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: D1 01 00 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: D1 01 00 E4 3A 00 EF [17:58:01]Write to MH i2c: 01 00 00 E5 3A 1F [17:58:01]Write i2c OK [17:58:01]MH_I2C_Read... [17:58:01]OFD Sender: No OFD packet to send [17:58:02]*** Cut start [17:58:02]*** Partial cut [17:58:02]*** CUTSNS_PIN = 1 [17:58:02]*** CUTSNS_PIN = 0 [17:58:03]*** Brake cut motor [17:58:03]Read from MH i2c: 01 [17:58:03]MH_I2C_Read... [17:58:03]*** Stop cut motor [17:58:03]*** Cut end [17:58:03]Read from MH i2c: 01 07 00 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: 01 07 00 E5 3A 00 00 00 00 00 FF 0F 34 [17:58:03]process_action close_receipt done [17:58:03]requested_data is exist [17:58:03]produce_requested_data [17:58:03]requested_item fm.sn is exist - process it [17:58:03]wFMCommunicate request_size=4 [17:58:03]MH_SAM_APDU [17:58:03]CAPDU: 80 11 00 00 [17:58:03]Write to MH i2c: E2 08 00 E6 3A 80 11 00 00 00 00 00 00 9A [17:58:03]Write i2c OK [17:58:03]MH_I2C_Read... [17:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:03]Read from MH i2c: E2 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: E2 17 00 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: E2 17 00 E6 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F1 [17:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:58:03]wFMCommunicate OK [17:58:03]requested_item fd.num is exist - process it [17:58:03]SAM_PROTO_GetFieldsCounters [17:58:03]wFMCommunicate request_size=4 [17:58:03]MH_SAM_APDU [17:58:03]CAPDU: 80 13 00 00 [17:58:03]Write to MH i2c: E2 08 00 E7 3A 80 13 00 00 00 00 00 00 9D [17:58:03]Write i2c OK [17:58:03]MH_I2C_Read... [17:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:03]Read from MH i2c: E2 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: E2 62 00 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: E2 62 00 E7 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E2 E0 01 00 0E 04 04 00 2C 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 6D [17:58:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E2 E0 01 00 0E 04 04 00 2C 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 [17:58:03]wFMCommunicate OK [17:58:03]SAM_PROTO_GetFieldsCounters done [17:58:03]requested_item shift.num is exist - process it [17:58:03]requested_item shift.opened is exist - process it [17:58:03]req_shift_opened [17:58:03]FM_GetShiftState [17:58:03]SAM_PROTO_GetShiftState [17:58:03]wFMCommunicate request_size=4 [17:58:03]MH_SAM_APDU [17:58:03]CAPDU: 80 13 01 00 [17:58:03]Write to MH i2c: E2 08 00 E8 3A 80 13 01 00 00 00 00 00 9F [17:58:03]Write i2c OK [17:58:03]MH_I2C_Read... [17:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:03]Read from MH i2c: E2 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: E2 0E 00 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: E2 0E 00 E8 3A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1E [17:58:03]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:58:03]wFMCommunicate OK [17:58:03]SAM_PROTO_GetShiftState done [17:58:03]FM_GetShiftState done [17:58:03]req_shift_opened done [17:58:03]requested_item shift.open_date is exist - process it [17:58:03]req_shift_open_date [17:58:03]req_shift_open_date done [17:58:03]produce_requested_data done [17:58:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123106,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:58:03]process_action_free close_receipt [17:58:03]json_value_free [17:58:03]json_value_free done [17:58:03]process_json_proto returns [17:58:03]Send response to host [17:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123106,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:58:03]free response buf [17:58:03]execute_script done [17:58:03]execute_script returns [17:58:03]free content buf [17:58:03]Sock 9.Close socket [17:58:03]Sock 9.Thread stoped [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:44]accept exits with 10 [17:58:44]New connection [17:58:44]New thread 3066580324 created [17:58:44]Thread 3066723684 joined [17:58:44]Waiting for new connection... [17:58:44] Sock 10.Parse request [17:58:44]Sock 10.Check first char [17:58:44]Sock 10.First char is OK [17:58:44]request: POST /json_proto HTTP/1.0 [17:58:44]Method: POST [17:58:44]URL: /json_proto [17:58:44]Method is POST - this is cgi request [17:58:44]url: /json_proto [17:58:44]query_string will be loaded in cgi processing [17:58:44]execute_cgi json_proto POST (null) [17:58:44]execute_cgi path=json_proto method=POST [17:58:44]POST find Content-Length [17:58:44]Host: 172.17.37.4:8080 [17:58:44]Content-Length: 682 [17:58:44]Content-Type: application/json [17:58:44] [17:58:44]POST finish read [17:58:44]Found Content-Length = 682 [17:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:44]execute_script... [17: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)717903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:44]POST & json_proto [17:58:44]process_json_proto [17:58:44]json parsed OK: [17:58:44]protocol is kg_v1.0 [17:58:44]action value=close_receipt [17:58:44]process_action close_receipt [17:58:44]cmd_close_receipt [17:58:44]MH_GetDate [17:58:44]Write to MH i2c: F0 00 00 E9 3A 12 [17:58:44]Write i2c OK [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: F0 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: F0 09 00 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: F0 09 00 E9 3A 00 DA BA 44 67 B8 5A 43 67 16 [17:58:44]GetLastDocTimeStamp 1732557485 [17:58:44]current date 1732557530 [17:58:44]FM_GetShiftState [17:58:44]SAM_PROTO_GetShiftState [17:58:44]wFMCommunicate request_size=4 [17:58:44]MH_SAM_APDU [17:58:44]CAPDU: 80 13 01 00 [17:58:44]Write to MH i2c: E2 08 00 EA 3A 80 13 01 00 00 00 00 00 A1 [17:58:44]Write i2c OK [17:58:44]MH_I2C_Read... [17:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:44]Read from MH i2c: E2 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 0E 00 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 0E 00 EA 3A 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 20 [17:58:44]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:58:44]wFMCommunicate OK [17:58:44]SAM_PROTO_GetShiftState done [17:58:44]FM_GetShiftState done [17:58:44]opened in 1732493066 [17:58:44]opened+sec_in_day 1732579466 [17:58:44]quantity*price = 100021 [17:58:44]sum+1 = 100023 [17:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 148 25.11.2024 17:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123107 ФПД: 4238984038790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175850&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123107&fm=4238984038790&tin=02508201610067®Number=0000000000092681&sum=100000 [17:58:45]StoreToDocumentArchive [17:58:45]shift 556 fd 123107 [17:58:45]save to /storage/0556/doc_00123107 [17:58:45]save last doc name /storage/0556/doc_00123107 to /storage/kkm_last_doc_name [17:58:45]save OK [17:58:45]Clear old archive folders... [17:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:45]tlvbuf is 01F6C570 [17:58:45]SAM_PROTO_ClearQueue [17:58:45]wFMCommunicate request_size=4 [17:58:45]MH_SAM_APDU [17:58:45]CAPDU: 80 09 00 00 [17:58:45]Write to MH i2c: E2 08 00 F7 3A 80 09 00 00 00 00 00 00 A3 [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:45]Read from MH i2c: E2 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 03 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 03 00 F7 3A 00 90 00 A5 [17:58:45]RAPDU: 90 00 [17:58:45]wFMCommunicate OK [17:58:45]SAM_PROTO_ClearQueue done [17:58:45]KKMCreateOFDPacket [17:58:45]OFDProtocolAddRootSTLVToBuf [17:58:45]FM_MakeSignedData [17:58:45]FM_MakeSignedData [17:58:45]SAM_PROTO_SignData [17:58:45]wFMCommunicate request_size=4 [17:58:45]MH_SAM_APDU [17:58:45]CAPDU: 80 0D 01 02 [17:58:45]Write to MH i2c: E2 08 00 F8 3A 80 0D 01 02 00 00 00 00 AB [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:45]Read from MH i2c: E2 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 03 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 03 00 F8 3A 00 90 00 A6 [17:58:45]RAPDU: 90 00 [17:58:45]wFMCommunicate OK [17:58:45]wFMCommunicate request_size=255 [17:58:45]MH_SAM_APDU [17:58:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DA BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E3 E0 01 00 35 04 06 00 03 [17:58:45]Write to MH i2c: E2 02 01 F9 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DA BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E3 E0 01 00 35 04 06 00 03 00 00 CA [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 F9 3A 00 90 00 A7 [17:58:46]RAPDU: 90 00 [17:58:46]wFMCommunicate OK [17:58:46]wFMCommunicate request_size=10 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 0D 02 02 05 DA F7 23 49 86 [17:58:46]Write to MH i2c: E2 0D 00 FA 3A 80 0D 02 02 05 00 DA F7 23 49 86 00 00 7B [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 FA 3A 00 90 00 A8 [17:58:46]RAPDU: 90 00 [17:58:46]wFMCommunicate OK [17:58:46]wFMCommunicate request_size=4 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 0D 03 02 [17:58:46]Write to MH i2c: E2 08 00 FB 3A 80 0D 03 02 00 00 00 00 B0 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 0B 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 0B 00 FB 3A 00 31 3B 90 EA FC 81 12 E7 90 00 0D [17:58:46]RAPDU: 31 3B 90 EA FC 81 12 E7 90 00 [17:58:46]wFMCommunicate OK [17:58:46]SAM_PROTO_SignData done [17:58:46]FM_MakeSignedData done [17:58:46]CreateOFDProtocolMessage [17:58:46]wFMCommunicate request_size=4 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 11 00 00 [17:58:46]Write to MH i2c: E2 08 00 FC 3A 80 11 00 00 00 00 00 00 B0 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 17 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 17 00 FC 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 07 [17:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:58:46]wFMCommunicate OK [17:58:46]CreateOFDProtocolMessage done [17:58:46]OFDSenderStorePacket 123107 [17:58:46]StoreOFDPacket docnum=123107 [17:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1D 6C 07 01 98 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DA BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E3 E0 01 00 35 04 06 00 03 DA F7 23 49 86 31 3B 90 EA FC 81 12 E7 [17:58:46]CheckFolder [17:58:46]dirname=/storage/ofd_packets [17:58:46]CheckFolder done [17:58:46]ProducePacketName [17:58:46]name=ofd_packets/00123107 [17:58:46]NVStorageSaveData ofd_packets/00123107 [17:58:46]File name is /storage/ofd_packets/00123107 [17:58:46]Write 301 bytes [17:58:46]NVStorageSaveData done [17:58:46]OFDSenderStorePacket done [17:58:46]KKMCreateOFDPacket done [17:58:46]NVStorageSaveData kkm_last_timestamp [17:58:46]File name is /storage/kkm_last_timestamp [17:58:46]Write 4 bytes [17:58:46]NVStorageSaveData done [17:58:46]ExternCall_PrintAddStr [17:58:46]wPrintStart [17:58:46]Write to MH i2c: 01 00 00 FD 3A 37 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 07 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 07 00 FD 3A 00 00 00 00 00 FF 0F 4C [17:58:46]RasterBufferAndPrint [17:58:46]line Счет N : (1)717903 [17:58:46]line ИНН: 02508201610067 [17:58:46]line Контрольно-Кассовый Чек [17:58:46]line ПРОДАЖА [17:58:46]line ТРК (МРК, ГНК) : 12 [17:58:46]line Товар: 2710124130 [17:58:46]line Аи-92-К-4 [17:58:46]line 14.840 * 67.40 [17:58:46]line = 1000.22 [17:58:46]line НДС 12% НСП 1% [17:58:46]line > о реализуемом товаре [17:58:46]line ОКРУГЛЕНИЕ: -0.22 [17:58:46]line ИТОГО: 1000.00 [17:58:46]line Внесено: 1000.00 [17:58:46]line СДАЧА: 0.00 [17:58:46]line НСП 1% : 8.85 [17:58:46]line НДС 12% : 106.22 [17:58:46]line Наличными: 1000.00 [17:58:46]line Безнал.: 0.00 [17:58:46]line Место: АЗС № 64 "Партнер Нефть" [17:58:46]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:58:46]line СНО: Общий режим [17:58:46]line Чек 148 25.11.2024 17:58 [17:58:46]line Смена: 556 ФФД: 1.0 [17:58:46]line ЗНМ: 0300000033 [17:58:46]line РНМ: 0000000000092681 [17:58:46]line Версия ККМ: 001 [17:58:46]line ФМ: 0000000000874881 [17:58:46]line ФД: 123107 [17:58:46]line ФПД: 4238984038790 [17:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175850&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123107&fm=4238984038790&tin=02508201610067®Number=0000000000092681&sum=100000 [17:58:46]written 0, free lines is 4095 [17:58:46]OFD Sender: Processing packet 123107 [packets to send 7, broken 6] [17:58:46]ProducePacketName [17:58:46]name=ofd_packets/00123107 [17:58:46]OFD Sender: To server: pG, [17:58:46]CommunicateWithHost lk.salyk.kg:30040 [17:58:46]ConnectInit lk.salyk.kg [17:58:46]Connected sock=11 [17: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 34 38 38 31 0F 01 00 00 1D 6C 07 01 98 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DA BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E3 E0 01 00 35 04 06 00 03 DA F7 23 49 86 31 3B 90 EA FC 81 12 E7 [17:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 25 46 47 00 E8 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E3 E0 01 00 F4 03 04 00 9F 66 44 67 B6 04 01 00 00 4F 17 D1 93 75 01 F2 1A [17:58:46]CommunicateWithHost err = 0 [17:58:46]CheckOFDResponse [17:58:46]1017 (14) - 77093643461234 [17:58:46]1041 (16) - 0000000000874881 [17:58:46]1040 (4) - 123107 [17:58:46]1012 (4) - 25.11.2024 11:59 [17:58:46]1206 (1) - 0 [17:58:46]OFD Sender: Remove packet 123107 [17:58:46]ProducePacketName [17:58:46]name=ofd_packets/00123107 [17:58:46]NVStorageDeleteData [17:58:46]Write to MH i2c: 01 00 00 28 3B 63 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 07 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 07 00 28 3B 00 00 00 00 00 4E 0C C4 [17:58:46]RasterBufferAndPrint [17:58:46]line [17:58:46]line [17:58:46]line [17:58:46]line [17:58:46]line [17:58:46]written 0, free lines is 3152 [17:58:46]MH_Cut [17:58:46]Write to MH i2c: D1 01 00 2F 3B 01 3C [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: D1 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: D1 01 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: D1 01 00 2F 3B 00 3B [17:58:46]Write to MH i2c: 01 00 00 30 3B 6B [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:47]OFD Sender: No OFD packet to send [17:58:48]*** Cut start [17:58:48]*** Partial cut [17:58:48]*** CUTSNS_PIN = 1 [17:58:48]*** CUTSNS_PIN = 0 [17:58:48]*** Brake cut motor [17:58:48]Read from MH i2c: 01 [17:58:48]MH_I2C_Read... [17:58:48]*** Stop cut motor [17:58:48]*** Cut end [17:58:48]Read from MH i2c: 01 07 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: 01 07 00 30 3B 00 00 00 00 00 FF 0F 80 [17:58:48]process_action close_receipt done [17:58:48]requested_data is exist [17:58:48]produce_requested_data [17:58:48]requested_item fm.sn is exist - process it [17:58:48]wFMCommunicate request_size=4 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 11 00 00 [17:58:48]Write to MH i2c: E2 08 00 31 3B 80 11 00 00 00 00 00 00 E6 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:48]Read from MH i2c: E2 17 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 17 00 31 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3D [17:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:58:48]wFMCommunicate OK [17:58:48]requested_item fd.num is exist - process it [17:58:48]SAM_PROTO_GetFieldsCounters [17:58:48]wFMCommunicate request_size=4 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 13 00 00 [17:58:48]Write to MH i2c: E2 08 00 32 3B 80 13 00 00 00 00 00 00 E9 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 62 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 62 00 32 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E3 E0 01 00 0E 04 04 00 2C 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 BD [17: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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E3 E0 01 00 0E 04 04 00 2C 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 [17:58:48]wFMCommunicate OK [17:58:48]SAM_PROTO_GetFieldsCounters done [17:58:48]requested_item shift.num is exist - process it [17:58:48]requested_item shift.opened is exist - process it [17:58:48]req_shift_opened [17:58:48]FM_GetShiftState [17:58:48]SAM_PROTO_GetShiftState [17:58:48]wFMCommunicate request_size=4 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 13 01 00 [17:58:48]Write to MH i2c: E2 08 00 33 3B 80 13 01 00 00 00 00 00 EB [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 0E 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 0E 00 33 3B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 6A [17:58:48]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:58:48]wFMCommunicate OK [17:58:48]SAM_PROTO_GetShiftState done [17:58:48]FM_GetShiftState done [17:58:48]req_shift_opened done [17:58:48]requested_item shift.open_date is exist - process it [17:58:48]req_shift_open_date [17:58:48]req_shift_open_date done [17:58:48]produce_requested_data done [17:58:48]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123107,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:58:48]process_action_free close_receipt [17:58:48]json_value_free [17:58:48]json_value_free done [17:58:48]process_json_proto returns [17:58:48]Send response to host [17:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123107,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:58:48]free response buf [17:58:48]execute_script done [17:58:48]execute_script returns [17:58:48]free content buf [17:58:48]Sock 10.Close socket [17:58:48]Sock 10.Thread stoped [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:12]accept exits with 7 [17:59:12]New connection [17:59:12]New thread 3066723684 created [17:59:12]Thread 3066580324 joined [17:59:12]Waiting for new connection... [17:59:12] Sock 7.Parse request [17:59:12]Sock 7.Check first char [17:59:12]Sock 7.First char is OK [17:59:12]request: POST /json_proto HTTP/1.0 [17:59:12]Method: POST [17:59:12]URL: /json_proto [17:59:12]Method is POST - this is cgi request [17:59:12]url: /json_proto [17:59:12]query_string will be loaded in cgi processing [17:59:12]execute_cgi json_proto POST (null) [17:59:12]execute_cgi path=json_proto method=POST [17:59:12]POST find Content-Length [17:59:12]Host: 172.17.37.4:8080 [17:59:12]Content-Length: 678 [17:59:12]Content-Type: application/json [17:59:12] [17:59:12]POST finish read [17:59:12]Found Content-Length = 678 [17:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "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:59:12]execute_script... [17:59: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)717904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "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:59:12]POST & json_proto [17:59:12]process_json_proto [17:59:12]json parsed OK: [17:59:12]protocol is kg_v1.0 [17:59:12]action value=close_receipt [17:59:12]process_action close_receipt [17:59:12]cmd_close_receipt [17:59:12]MH_GetDate [17:59:12]Write to MH i2c: F0 00 00 34 3B 5E [17:59:12]Write i2c OK [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: F0 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: F0 09 00 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: F0 09 00 34 3B 00 F7 BA 44 67 B8 5A 43 67 7F [17:59:12]GetLastDocTimeStamp 1732557530 [17:59:12]current date 1732557559 [17:59:12]FM_GetShiftState [17:59:12]SAM_PROTO_GetShiftState [17:59:12]wFMCommunicate request_size=4 [17:59:12]MH_SAM_APDU [17:59:12]CAPDU: 80 13 01 00 [17:59:12]Write to MH i2c: E2 08 00 35 3B 80 13 01 00 00 00 00 00 ED [17:59:12]Write i2c OK [17:59:12]MH_I2C_Read... [17:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:12]Read from MH i2c: E2 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: E2 0E 00 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: E2 0E 00 35 3B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 6C [17:59:12]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:59:12]wFMCommunicate OK [17:59:12]SAM_PROTO_GetShiftState done [17:59:12]FM_GetShiftState done [17:59:12]opened in 1732493066 [17:59:12]opened+sec_in_day 1732579466 [17:59:12]quantity*price = 80003 [17:59:12]sum+1 = 80005 [17:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 149 25.11.2024 17:59 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123108 ФПД: 4748712528754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175919&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123108&fm=4748712528754&tin=02508201610067®Number=0000000000092681&sum=80000 [17:59:14]StoreToDocumentArchive [17:59:14]shift 556 fd 123108 [17:59:14]save to /storage/0556/doc_00123108 [17:59:14]save last doc name /storage/0556/doc_00123108 to /storage/kkm_last_doc_name [17:59:14]save OK [17:59:14]Clear old archive folders... [17:59:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:59:14]tlvbuf is 0212BB10 [17:59:14]SAM_PROTO_ClearQueue [17:59:14]wFMCommunicate request_size=4 [17:59:14]MH_SAM_APDU [17:59:14]CAPDU: 80 09 00 00 [17:59:14]Write to MH i2c: E2 08 00 42 3B 80 09 00 00 00 00 00 00 EF [17:59:14]Write i2c OK [17:59:14]MH_I2C_Read... [17:59:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:14]Read from MH i2c: E2 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 03 00 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 03 00 42 3B 00 90 00 F1 [17:59:14]RAPDU: 90 00 [17:59:14]wFMCommunicate OK [17:59:14]SAM_PROTO_ClearQueue done [17:59:14]KKMCreateOFDPacket [17:59:14]OFDProtocolAddRootSTLVToBuf [17:59:14]FM_MakeSignedData [17:59:14]FM_MakeSignedData [17:59:14]SAM_PROTO_SignData [17:59:14]wFMCommunicate request_size=4 [17:59:14]MH_SAM_APDU [17:59:14]CAPDU: 80 0D 01 02 [17:59:14]Write to MH i2c: E2 08 00 43 3B 80 0D 01 02 00 00 00 00 F7 [17:59:14]Write i2c OK [17:59:14]MH_I2C_Read... [17:59:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:14]Read from MH i2c: E2 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 03 00 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 03 00 43 3B 00 90 00 F2 [17:59:14]RAPDU: 90 00 [17:59:14]wFMCommunicate OK [17:59:14]wFMCommunicate request_size=255 [17:59:14]MH_SAM_APDU [17:59: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 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F7 BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E4 E0 01 00 35 04 06 00 04 [17:59:14]Write to MH i2c: E2 02 01 44 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F7 BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E4 E0 01 00 35 04 06 00 04 00 00 2D [17:59:14]Write i2c OK [17:59:14]MH_I2C_Read... [17:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:14]Read from MH i2c: E2 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 03 00 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 03 00 44 3B 00 90 00 F3 [17:59:14]RAPDU: 90 00 [17:59:14]wFMCommunicate OK [17:59:14]wFMCommunicate request_size=10 [17:59:14]MH_SAM_APDU [17:59:14]CAPDU: 80 0D 02 02 05 51 A5 52 CB 72 [17:59:14]Write to MH i2c: E2 0D 00 45 3B 80 0D 02 02 05 00 51 A5 52 CB 72 00 00 89 [17:59:14]Write i2c OK [17:59:14]MH_I2C_Read... [17:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:14]Read from MH i2c: E2 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 03 00 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 03 00 45 3B 00 90 00 F4 [17:59:14]RAPDU: 90 00 [17:59:14]wFMCommunicate OK [17:59:14]wFMCommunicate request_size=4 [17:59:14]MH_SAM_APDU [17:59:14]CAPDU: 80 0D 03 02 [17:59:14]Write to MH i2c: E2 08 00 46 3B 80 0D 03 02 00 00 00 00 FC [17:59:14]Write i2c OK [17:59:14]MH_I2C_Read... [17:59:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:14]Read from MH i2c: E2 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 0B 00 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 0B 00 46 3B 00 DB 1E 7C 4D CE 7E E1 E8 90 00 D4 [17:59:14]RAPDU: DB 1E 7C 4D CE 7E E1 E8 90 00 [17:59:14]wFMCommunicate OK [17:59:14]SAM_PROTO_SignData done [17:59:14]FM_MakeSignedData done [17:59:14]CreateOFDProtocolMessage [17:59:14]wFMCommunicate request_size=4 [17:59:14]MH_SAM_APDU [17:59:14]CAPDU: 80 11 00 00 [17:59:14]Write to MH i2c: E2 08 00 47 3B 80 11 00 00 00 00 00 00 FC [17:59:14]Write i2c OK [17:59:14]MH_I2C_Read... [17:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:14]Read from MH i2c: E2 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 17 00 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: E2 17 00 47 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 53 [17:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:59:14]wFMCommunicate OK [17:59:14]CreateOFDProtocolMessage done [17:59:14]OFDSenderStorePacket 123108 [17:59:14]StoreOFDPacket docnum=123108 [17:59:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4B 99 07 01 EA D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F7 BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E4 E0 01 00 35 04 06 00 04 51 A5 52 CB 72 DB 1E 7C 4D CE 7E E1 E8 [17:59:14]CheckFolder [17:59:14]dirname=/storage/ofd_packets [17:59:14]CheckFolder done [17:59:14]ProducePacketName [17:59:14]name=ofd_packets/00123108 [17:59:14]NVStorageSaveData ofd_packets/00123108 [17:59:14]File name is /storage/ofd_packets/00123108 [17:59:14]Write 301 bytes [17:59:14]NVStorageSaveData done [17:59:14]OFDSenderStorePacket done [17:59:14]KKMCreateOFDPacket done [17:59:14]NVStorageSaveData kkm_last_timestamp [17:59:14]File name is /storage/kkm_last_timestamp [17:59:14]Write 4 bytes [17:59:14]NVStorageSaveData done [17:59:14]ExternCall_PrintAddStr [17:59:14]wPrintStart [17:59:14]Write to MH i2c: 01 00 00 48 3B 83 [17:59:14]Write i2c OK [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: 01 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: 01 07 00 [17:59:14]MH_I2C_Read... [17:59:14]Read from MH i2c: 01 07 00 48 3B 00 00 00 00 00 FF 0F 98 [17:59:14]RasterBufferAndPrint [17:59:14]line Счет N : (1)717904 [17:59:14]line ИНН: 02508201610067 [17:59:14]line Контрольно-Кассовый Чек [17:59:14]line ПРОДАЖА [17:59:14]line ТРК (МРК, ГНК) : 22 [17:59:14]line Товар: 2710124130 [17:59:14]line Аи-92-К-4 [17:59:14]line 11.870 * 67.40 [17:59:14]line = 800.04 [17:59:14]line НДС 12% НСП 1% [17:59:14]line > о реализуемом товаре [17:59:14]line ОКРУГЛЕНИЕ: -0.04 [17:59:14]line ИТОГО: 800.00 [17:59:14]line Внесено: 800.00 [17:59:14]line СДАЧА: 0.00 [17:59:14]line НСП 1% : 7.08 [17:59:14]line НДС 12% : 84.96 [17:59:14]line Наличными: 800.00 [17:59:14]line Безнал.: 0.00 [17:59:14]line Место: АЗС № 64 "Партнер Нефть" [17:59:14]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:59:14]line СНО: Общий режим [17:59:14]line Чек 149 25.11.2024 17:59 [17:59:14]line Смена: 556 ФФД: 1.0 [17:59:14]line ЗНМ: 0300000033 [17:59:14]line РНМ: 0000000000092681 [17:59:14]line Версия ККМ: 001 [17:59:14]line ФМ: 0000000000874881 [17:59:14]line ФД: 123108 [17:59:14]line ФПД: 4748712528754 [17:59:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T175919&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123108&fm=4748712528754&tin=02508201610067®Number=0000000000092681&sum=80000 [17:59:14]OFD Sender: Processing packet 123108 [packets to send 7, broken 6] [17:59:14]ProducePacketName [17:59:14]name=ofd_packets/00123108 [17:59:14]OFD Sender: To server: pG, [17:59:14]CommunicateWithHost lk.salyk.kg:30040 [17:59:14]ConnectInit lk.salyk.kg [17:59:14]written 0, free lines is 4095 [17:59:15]Connected sock=10 [17:59:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4B 99 07 01 EA D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F7 BA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E4 E0 01 00 35 04 06 00 04 51 A5 52 CB 72 DB 1E 7C 4D CE 7E E1 E8 [17:59:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F5 A5 47 00 68 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E4 E0 01 00 F4 03 04 00 BC 66 44 67 B6 04 01 00 00 80 E9 5F 96 44 E5 B1 53 [17:59:15]CommunicateWithHost err = 0 [17:59:15]CheckOFDResponse [17:59:15]1017 (14) - 77093643461234 [17:59:15]1041 (16) - 0000000000874881 [17:59:15]1040 (4) - 123108 [17:59:15]1012 (4) - 25.11.2024 11:59 [17:59:15]1206 (1) - 0 [17:59:15]OFD Sender: Remove packet 123108 [17:59:15]ProducePacketName [17:59:15]name=ofd_packets/00123108 [17:59:15]NVStorageDeleteData [17:59:15]Write to MH i2c: 01 00 00 73 3B AE [17:59:15]Write i2c OK [17:59:15]MH_I2C_Read... [17:59:15]Read from MH i2c: 01 [17:59:15]MH_I2C_Read... [17:59:15]Read from MH i2c: 01 07 00 [17:59:15]MH_I2C_Read... [17:59:15]Read from MH i2c: 01 07 00 73 3B 00 00 00 00 00 49 0C 0A [17:59:15]RasterBufferAndPrint [17:59:15]line [17:59:15]line [17:59:15]line [17:59:15]line [17:59:15]line [17:59:15]written 0, free lines is 3150 [17:59:15]MH_Cut [17:59:15]Write to MH i2c: D1 01 00 7A 3B 01 87 [17:59:15]Write i2c OK [17:59:15]MH_I2C_Read... [17:59:15]Read from MH i2c: D1 [17:59:15]MH_I2C_Read... [17:59:15]Read from MH i2c: D1 01 00 [17:59:15]MH_I2C_Read... [17:59:15]Read from MH i2c: D1 01 00 7A 3B 00 86 [17:59:15]Write to MH i2c: 01 00 00 7B 3B B6 [17:59:15]Write i2c OK [17:59:15]MH_I2C_Read... [17:59:15]OFD Sender: No OFD packet to send [17:59:16]*** Cut start [17:59:16]*** Partial cut [17:59:16]*** CUTSNS_PIN = 1 [17:59:16]*** CUTSNS_PIN = 0 [17:59:17]*** Brake cut motor [17:59:17]Read from MH i2c: 01 [17:59:17]MH_I2C_Read... [17:59:17]*** Stop cut motor [17:59:17]*** Cut end [17:59:17]Read from MH i2c: 01 07 00 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: 01 07 00 7B 3B 00 00 00 00 00 FF 0F CB [17:59:17]process_action close_receipt done [17:59:17]requested_data is exist [17:59:17]produce_requested_data [17:59:17]requested_item fm.sn is exist - process it [17:59:17]wFMCommunicate request_size=4 [17:59:17]MH_SAM_APDU [17:59:17]CAPDU: 80 11 00 00 [17:59:17]Write to MH i2c: E2 08 00 7C 3B 80 11 00 00 00 00 00 00 31 [17:59:17]Write i2c OK [17:59:17]MH_I2C_Read... [17:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:17]Read from MH i2c: E2 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: E2 17 00 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: E2 17 00 7C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 88 [17:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:59:17]wFMCommunicate OK [17:59:17]requested_item fd.num is exist - process it [17:59:17]SAM_PROTO_GetFieldsCounters [17:59:17]wFMCommunicate request_size=4 [17:59:17]MH_SAM_APDU [17:59:17]CAPDU: 80 13 00 00 [17:59:17]Write to MH i2c: E2 08 00 7D 3B 80 13 00 00 00 00 00 00 34 [17:59:17]Write i2c OK [17:59:17]MH_I2C_Read... [17:59:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:17]Read from MH i2c: E2 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: E2 62 00 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: E2 62 00 7D 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E4 E0 01 00 0E 04 04 00 2C 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 0C [17:59:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E4 E0 01 00 0E 04 04 00 2C 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 [17:59:17]wFMCommunicate OK [17:59:17]SAM_PROTO_GetFieldsCounters done [17:59:17]requested_item shift.num is exist - process it [17:59:17]requested_item shift.opened is exist - process it [17:59:17]req_shift_opened [17:59:17]FM_GetShiftState [17:59:17]SAM_PROTO_GetShiftState [17:59:17]wFMCommunicate request_size=4 [17:59:17]MH_SAM_APDU [17:59:17]CAPDU: 80 13 01 00 [17:59:17]Write to MH i2c: E2 08 00 7E 3B 80 13 01 00 00 00 00 00 36 [17:59:17]Write i2c OK [17:59:17]MH_I2C_Read... [17:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:17]Read from MH i2c: E2 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: E2 0E 00 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: E2 0E 00 7E 3B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B5 [17:59:17]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [17:59:17]wFMCommunicate OK [17:59:17]SAM_PROTO_GetShiftState done [17:59:17]FM_GetShiftState done [17:59:17]req_shift_opened done [17:59:17]requested_item shift.open_date is exist - process it [17:59:17]req_shift_open_date [17:59:17]req_shift_open_date done [17:59:17]produce_requested_data done [17:59:17]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123108,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [17:59:17]process_action_free close_receipt [17:59:17]json_value_free [17:59:17]json_value_free done [17:59:17]process_json_proto returns [17:59:17]Send response to host [17:59:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123108,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [17:59:17]free response buf [17:59:17]execute_script done [17:59:17]execute_script returns [17:59:17]free content buf [17:59:17]Sock 7.Close socket [17:59:17]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:16]accept exits with 9 [18:08:16]New connection [18:08:16]New thread 3066580324 created [18:08:16]Thread 3066723684 joined [18:08:16]Waiting for new connection... [18:08:16] Sock 9.Parse request [18:08:16]Sock 9.Check first char [18:08:16]Sock 9.First char is OK [18:08:16]request: POST /json_proto HTTP/1.0 [18:08:16]Method: POST [18:08:16]URL: /json_proto [18:08:16]Method is POST - this is cgi request [18:08:16]url: /json_proto [18:08:16]query_string will be loaded in cgi processing [18:08:16]execute_cgi json_proto POST (null) [18:08:16]execute_cgi path=json_proto method=POST [18:08:16]POST find Content-Length [18:08:16]Host: 172.17.37.4:8080 [18:08:16]Content-Length: 754 [18:08:16]Content-Type: application/json [18:08:16] [18:08:16]POST finish read [18:08:16]Found Content-Length = 754 [18:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30075354", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:16]execute_script... [18:08:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30075354", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:16]POST & json_proto [18:08:16]process_json_proto [18:08:16]json parsed OK: [18:08:16]protocol is kg_v1.0 [18:08:16]action value=close_receipt [18:08:16]process_action close_receipt [18:08:16]cmd_close_receipt [18:08:16]MH_GetDate [18:08:16]Write to MH i2c: F0 00 00 7F 3B A9 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: F0 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: F0 09 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: F0 09 00 7F 3B 00 17 BD 44 67 B8 5A 43 67 ED [18:08:16]GetLastDocTimeStamp 1732557559 [18:08:16]current date 1732558103 [18:08:16]FM_GetShiftState [18:08:16]SAM_PROTO_GetShiftState [18:08:16]wFMCommunicate request_size=4 [18:08:16]MH_SAM_APDU [18:08:16]CAPDU: 80 13 01 00 [18:08:16]Write to MH i2c: E2 08 00 80 3B 80 13 01 00 00 00 00 00 38 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 0E 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 0E 00 80 3B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B7 [18:08:16]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:08:16]wFMCommunicate OK [18:08:16]SAM_PROTO_GetShiftState done [18:08:16]FM_GetShiftState done [18:08:16]opened in 1732493066 [18:08:16]opened+sec_in_day 1732579466 [18:08:16]quantity*price = 0 [18:08:16]sum+1 = 1 [18:08:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 150 25.11.2024 18:08 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30075354 ФМ: 0000000000874881 ФД: 123109 ФПД: 275999394374950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T180823&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123109&fm=275999394374950&tin=02508201610067®Number=0000000000092681&sum=0 [18:08:17]StoreToDocumentArchive [18:08:17]shift 556 fd 123109 [18:08:17]save to /storage/0556/doc_00123109 [18:08:17]save last doc name /storage/0556/doc_00123109 to /storage/kkm_last_doc_name [18:08:17]save OK [18:08:17]Clear old archive folders... [18:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:17]tlvbuf is 01F2F4E0 [18:08:17]SAM_PROTO_ClearQueue [18:08:17]wFMCommunicate request_size=4 [18:08:17]MH_SAM_APDU [18:08:17]CAPDU: 80 09 00 00 [18:08:17]Write to MH i2c: E2 08 00 8D 3B 80 09 00 00 00 00 00 00 3A [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:17]Read from MH i2c: E2 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 03 00 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 03 00 8D 3B 00 90 00 3C [18:08:17]RAPDU: 90 00 [18:08:17]wFMCommunicate OK [18:08:17]SAM_PROTO_ClearQueue done [18:08:17]KKMCreateOFDPacket [18:08:17]OFDProtocolAddRootSTLVToBuf [18:08:17]FM_MakeSignedData [18:08:17]FM_MakeSignedData [18:08:17]SAM_PROTO_SignData [18:08:17]wFMCommunicate request_size=4 [18:08:17]MH_SAM_APDU [18:08:17]CAPDU: 80 0D 01 02 [18:08:17]Write to MH i2c: E2 08 00 8E 3B 80 0D 01 02 00 00 00 00 42 [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 8E 3B 00 90 00 3D [18:08:18]RAPDU: 90 00 [18:08:18]wFMCommunicate OK [18:08:18]wFMCommunicate request_size=255 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 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 96 00 00 00 F4 03 04 00 17 BD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E5 E0 01 00 35 04 06 00 FB [18:08:18]Write to MH i2c: E2 02 01 8F 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 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 96 00 00 00 F4 03 04 00 17 BD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E5 E0 01 00 35 04 06 00 FB 00 00 30 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 8F 3B 00 90 00 3E [18:08:18]RAPDU: 90 00 [18:08:18]wFMCommunicate OK [18:08:18]wFMCommunicate request_size=10 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 0D 02 02 05 05 1D DC 25 26 [18:08:18]Write to MH i2c: E2 0D 00 90 3B 80 0D 02 02 05 00 05 1D DC 25 26 00 00 98 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 90 3B 00 90 00 3F [18:08:18]RAPDU: 90 00 [18:08:18]wFMCommunicate OK [18:08:18]wFMCommunicate request_size=4 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 0D 03 02 [18:08:18]Write to MH i2c: E2 08 00 91 3B 80 0D 03 02 00 00 00 00 47 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 0B 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 0B 00 91 3B 00 35 D5 16 66 29 6A 35 4A 90 00 E0 [18:08:18]RAPDU: 35 D5 16 66 29 6A 35 4A 90 00 [18:08:18]wFMCommunicate OK [18:08:18]SAM_PROTO_SignData done [18:08:18]FM_MakeSignedData done [18:08:18]CreateOFDProtocolMessage [18:08:18]wFMCommunicate request_size=4 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 11 00 00 [18:08:18]Write to MH i2c: E2 08 00 92 3B 80 11 00 00 00 00 00 00 47 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 17 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 17 00 92 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9E [18:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:08:18]wFMCommunicate OK [18:08:18]CreateOFDProtocolMessage done [18:08:18]OFDSenderStorePacket 123109 [18:08:18]StoreOFDPacket docnum=123109 [18:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 91 92 07 01 E3 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 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 96 00 00 00 F4 03 04 00 17 BD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E5 E0 01 00 35 04 06 00 FB 05 1D DC 25 26 35 D5 16 66 29 6A 35 4A [18:08:18]CheckFolder [18:08:18]dirname=/storage/ofd_packets [18:08:18]CheckFolder done [18:08:18]ProducePacketName [18:08:18]name=ofd_packets/00123109 [18:08:18]NVStorageSaveData ofd_packets/00123109 [18:08:18]File name is /storage/ofd_packets/00123109 [18:08:18]Write 301 bytes [18:08:18]NVStorageSaveData done [18:08:18]OFDSenderStorePacket done [18:08:18]KKMCreateOFDPacket done [18:08:18]NVStorageSaveData kkm_last_timestamp [18:08:18]File name is /storage/kkm_last_timestamp [18:08:18]Write 4 bytes [18:08:18]NVStorageSaveData done [18:08:18]ExternCall_PrintAddStr [18:08:18]wPrintStart [18:08:18]Write to MH i2c: 01 00 00 93 3B CE [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: 01 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: 01 07 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: 01 07 00 93 3B 00 00 00 00 00 FF 0F E3 [18:08:18]RasterBufferAndPrint [18:08:18]line Счет N : (1)717905 [18:08:18]line ИНН: 02508201610067 [18:08:18]line Контрольно-Кассовый Чек [18:08:18]line ПРОДАЖА [18:08:18]line ТРК (МРК, ГНК) : 22 [18:08:18]line Товар: 2710124130 [18:08:18]line Аи-92-К-4 [18:08:18]line 40.000 * 0.00 [18:08:18]line = 0.00 [18:08:18]line НДС 12% НСП 1% [18:08:18]line > о реализуемом товаре [18:08:18]line ИТОГО: 0.00 [18:08:18]line НСП 1% : 0.00 [18:08:18]line НДС 12% : 0.00 [18:08:18]line Наличными: 0.00 [18:08:18]line Безнал.: 0.00 [18:08:18]line Место: АЗС № 64 "Партнер Нефть" [18:08:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:08:18]line СНО: Общий режим [18:08:18]line Чек 150 25.11.2024 18:08 [18:08:18]line Смена: 556 ФФД: 1.0 [18:08:18]line ЗНМ: 0300000033 [18:08:18]line РНМ: 0000000000092681 [18:08:18]line Версия ККМ: 001 [18:08:18]line Талоны: ТК ГПНА Online [18:08:18]line 30075354 [18:08:18]line ФМ: 0000000000874881 [18:08:18]line ФД: 123109 [18:08:18]line ФПД: 275999394374950 [18:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T180823&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123109&fm=275999394374950&tin=02508201610067®Number=0000000000092681&sum=0 [18:08:18]written 0, free lines is 4095 [18:08:18]OFD Sender: Processing packet 123109 [packets to send 7, broken 6] [18:08:18]ProducePacketName [18:08:18]name=ofd_packets/00123109 [18:08:18]OFD Sender: To server: pG, [18:08:18]CommunicateWithHost lk.salyk.kg:30040 [18:08:18]ConnectInit lk.salyk.kg [18:08:18]Connected sock=10 [18:08:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 91 92 07 01 E3 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 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 96 00 00 00 F4 03 04 00 17 BD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E5 E0 01 00 35 04 06 00 FB 05 1D DC 25 26 35 D5 16 66 29 6A 35 4A [18:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A1 91 47 00 61 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E5 E0 01 00 F4 03 04 00 DB 68 44 67 B6 04 01 00 00 4F 19 A7 67 67 23 03 41 [18:08:18]CommunicateWithHost err = 0 [18:08:18]CheckOFDResponse [18:08:18]1017 (14) - 77093643461234 [18:08:18]1041 (16) - 0000000000874881 [18:08:18]1040 (4) - 123109 [18:08:18]1012 (4) - 25.11.2024 12:08 [18:08:18]1206 (1) - 0 [18:08:18]OFD Sender: Remove packet 123109 [18:08:18]ProducePacketName [18:08:18]name=ofd_packets/00123109 [18:08:18]NVStorageDeleteData [18:08:18]Write to MH i2c: 01 00 00 BD 3B F8 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: 01 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: 01 07 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: 01 07 00 BD 3B 00 00 00 00 00 6C 0C 77 [18:08:18]RasterBufferAndPrint [18:08:18]line [18:08:18]line [18:08:18]line [18:08:18]line [18:08:18]line [18:08:18]written 0, free lines is 3185 [18:08:18]MH_Cut [18:08:18]Write to MH i2c: D1 01 00 C4 3B 01 D1 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: D1 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: D1 01 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: D1 01 00 C4 3B 00 D0 [18:08:18]Write to MH i2c: 01 00 00 C5 3B 00 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:19]OFD Sender: No OFD packet to send [18:08:20]*** Cut start [18:08:20]*** Partial cut [18:08:20]*** CUTSNS_PIN = 1 [18:08:20]*** CUTSNS_PIN = 0 [18:08:20]*** Brake cut motor [18:08:20]Read from MH i2c: 01 [18:08:20]MH_I2C_Read... [18:08:20]*** Stop cut motor [18:08:20]*** Cut end [18:08:20]Read from MH i2c: 01 07 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: 01 07 00 C5 3B 00 00 00 00 00 FF 0F 15 [18:08:20]process_action close_receipt done [18:08:20]requested_data is exist [18:08:20]produce_requested_data [18:08:20]requested_item fm.sn is exist - process it [18:08:20]wFMCommunicate request_size=4 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 11 00 00 [18:08:20]Write to MH i2c: E2 08 00 C6 3B 80 11 00 00 00 00 00 00 7B [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 17 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 17 00 C6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D2 [18:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:08:20]wFMCommunicate OK [18:08:20]requested_item fd.num is exist - process it [18:08:20]SAM_PROTO_GetFieldsCounters [18:08:20]wFMCommunicate request_size=4 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 13 00 00 [18:08:20]Write to MH i2c: E2 08 00 C7 3B 80 13 00 00 00 00 00 00 7E [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:21]Read from MH i2c: E2 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: E2 62 00 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: E2 62 00 C7 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E5 E0 01 00 0E 04 04 00 2C 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 5A [18:08:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E5 E0 01 00 0E 04 04 00 2C 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 [18:08:21]wFMCommunicate OK [18:08:21]SAM_PROTO_GetFieldsCounters done [18:08:21]requested_item shift.num is exist - process it [18:08:21]requested_item shift.opened is exist - process it [18:08:21]req_shift_opened [18:08:21]FM_GetShiftState [18:08:21]SAM_PROTO_GetShiftState [18:08:21]wFMCommunicate request_size=4 [18:08:21]MH_SAM_APDU [18:08:21]CAPDU: 80 13 01 00 [18:08:21]Write to MH i2c: E2 08 00 C8 3B 80 13 01 00 00 00 00 00 80 [18:08:21]Write i2c OK [18:08:21]MH_I2C_Read... [18:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:21]Read from MH i2c: E2 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: E2 0E 00 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: E2 0E 00 C8 3B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FF [18:08:21]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:08:21]wFMCommunicate OK [18:08:21]SAM_PROTO_GetShiftState done [18:08:21]FM_GetShiftState done [18:08:21]req_shift_opened done [18:08:21]requested_item shift.open_date is exist - process it [18:08:21]req_shift_open_date [18:08:21]req_shift_open_date done [18:08:21]produce_requested_data done [18:08:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123109,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:08:21]process_action_free close_receipt [18:08:21]json_value_free [18:08:21]json_value_free done [18:08:21]process_json_proto returns [18:08:21]Send response to host [18:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123109,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:08:21]free response buf [18:08:21]execute_script done [18:08:21]execute_script returns [18:08:21]free content buf [18:08:21]Sock 9.Close socket [18:08:21]Sock 9.Thread stoped [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:17]accept exits with 7 [18:09:17]New connection [18:09:17]New thread 3066723684 created [18:09:17]Thread 3066580324 joined [18:09:17]Waiting for new connection... [18:09:17] Sock 7.Parse request [18:09:17]Sock 7.Check first char [18:09:17]Sock 7.First char is OK [18:09:17]request: POST /json_proto HTTP/1.0 [18:09:17]Method: POST [18:09:17]URL: /json_proto [18:09:17]Method is POST - this is cgi request [18:09:17]url: /json_proto [18:09:17]query_string will be loaded in cgi processing [18:09:17]execute_cgi json_proto POST (null) [18:09:17]execute_cgi path=json_proto method=POST [18:09:17]POST find Content-Length [18:09:17]Host: 172.17.37.4:8080 [18:09:17]Content-Length: 681 [18:09:17]Content-Type: application/json [18:09:17] [18:09:17]POST finish read [18:09:17]Found Content-Length = 681 [18:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:17]execute_script... [18:09: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)717906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:17]POST & json_proto [18:09:17]process_json_proto [18:09:17]json parsed OK: [18:09:17]protocol is kg_v1.0 [18:09:17]action value=close_receipt [18:09:17]process_action close_receipt [18:09:17]cmd_close_receipt [18:09:17]MH_GetDate [18:09:17]Write to MH i2c: F0 00 00 C9 3B F3 [18:09:17]Write i2c OK [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: F0 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: F0 09 00 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: F0 09 00 C9 3B 00 54 BD 44 67 B8 5A 43 67 74 [18:09:17]GetLastDocTimeStamp 1732558103 [18:09:17]current date 1732558164 [18:09:17]FM_GetShiftState [18:09:17]SAM_PROTO_GetShiftState [18:09:17]wFMCommunicate request_size=4 [18:09:17]MH_SAM_APDU [18:09:17]CAPDU: 80 13 01 00 [18:09:17]Write to MH i2c: E2 08 00 CA 3B 80 13 01 00 00 00 00 00 82 [18:09:17]Write i2c OK [18:09:17]MH_I2C_Read... [18:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:17]Read from MH i2c: E2 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 0E 00 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 0E 00 CA 3B 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 01 [18:09:17]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:09:17]wFMCommunicate OK [18:09:17]SAM_PROTO_GetShiftState done [18:09:17]FM_GetShiftState done [18:09:17]opened in 1732493066 [18:09:17]opened+sec_in_day 1732579466 [18:09:17]quantity*price = 50033 [18:09:17]sum+1 = 50034 [18:09:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 151 25.11.2024 18:09 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123110 ФПД: 149138635651075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T180924&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123110&fm=149138635651075&tin=02508201610067®Number=0000000000092681&sum=50000 [18:09:19]StoreToDocumentArchive [18:09:19]shift 556 fd 123110 [18:09:19]save to /storage/0556/doc_00123110 [18:09:19]save last doc name /storage/0556/doc_00123110 to /storage/kkm_last_doc_name [18:09:19]save OK [18:09:19]Clear old archive folders... [18:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:09:19]tlvbuf is 01F4D8F0 [18:09:19]SAM_PROTO_ClearQueue [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 09 00 00 [18:09:19]Write to MH i2c: E2 08 00 D7 3B 80 09 00 00 00 00 00 00 84 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 D7 3B 00 90 00 86 [18:09:19]RAPDU: 90 00 [18:09:19]wFMCommunicate OK [18:09:19]SAM_PROTO_ClearQueue done [18:09:19]KKMCreateOFDPacket [18:09:19]OFDProtocolAddRootSTLVToBuf [18:09:19]FM_MakeSignedData [18:09:19]FM_MakeSignedData [18:09:19]SAM_PROTO_SignData [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 0D 01 02 [18:09:19]Write to MH i2c: E2 08 00 D8 3B 80 0D 01 02 00 00 00 00 8C [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 D8 3B 00 90 00 87 [18:09:19]RAPDU: 90 00 [18:09:19]wFMCommunicate OK [18:09:19]wFMCommunicate request_size=255 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 54 BD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E6 E0 01 00 35 04 06 00 [18:09:19]Write to MH i2c: E2 02 01 D9 3B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 54 BD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E6 E0 01 00 35 04 06 00 00 00 9A [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]OFD Sender: No OFD packet to send [18:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 D9 3B 00 90 00 88 [18:09:19]RAPDU: 90 00 [18:09:19]wFMCommunicate OK [18:09:19]wFMCommunicate request_size=11 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 0D 02 02 06 87 A4 0B 66 78 03 [18:09:19]Write to MH i2c: E2 0E 00 DA 3B 80 0D 02 02 06 00 87 A4 0B 66 78 03 00 00 B2 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 DA 3B 00 90 00 89 [18:09:19]RAPDU: 90 00 [18:09:19]wFMCommunicate OK [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 0D 03 02 [18:09:19]Write to MH i2c: E2 08 00 DB 3B 80 0D 03 02 00 00 00 00 91 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 0B 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 0B 00 DB 3B 00 78 F3 FF 77 ED 9D AC F7 90 00 A0 [18:09:19]RAPDU: 78 F3 FF 77 ED 9D AC F7 90 00 [18:09:19]wFMCommunicate OK [18:09:19]SAM_PROTO_SignData done [18:09:19]FM_MakeSignedData done [18:09:19]CreateOFDProtocolMessage [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 11 00 00 [18:09:19]Write to MH i2c: E2 08 00 DC 3B 80 11 00 00 00 00 00 00 91 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 17 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 17 00 DC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E8 [18:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:09:19]wFMCommunicate OK [18:09:19]CreateOFDProtocolMessage done [18:09:19]OFDSenderStorePacket 123110 [18:09:19]StoreOFDPacket docnum=123110 [18:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C0 80 08 01 23 B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 54 BD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E6 E0 01 00 35 04 06 00 87 A4 0B 66 78 03 78 F3 FF 77 ED 9D AC F7 [18:09:19]CheckFolder [18:09:19]dirname=/storage/ofd_packets [18:09:19]CheckFolder done [18:09:19]ProducePacketName [18:09:19]name=ofd_packets/00123110 [18:09:19]NVStorageSaveData ofd_packets/00123110 [18:09:19]File name is /storage/ofd_packets/00123110 [18:09:19]Write 302 bytes [18:09:19]NVStorageSaveData done [18:09:19]OFDSenderStorePacket done [18:09:19]KKMCreateOFDPacket done [18:09:19]NVStorageSaveData kkm_last_timestamp [18:09:19]File name is /storage/kkm_last_timestamp [18:09:19]Write 4 bytes [18:09:19]NVStorageSaveData done [18:09:19]ExternCall_PrintAddStr [18:09:19]wPrintStart [18:09:19]Write to MH i2c: 01 00 00 DD 3B 18 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 07 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 07 00 DD 3B 00 00 00 00 00 FF 0F 2D [18:09:19]RasterBufferAndPrint [18:09:19]line Счет N : (1)717906 [18:09:19]line ИНН: 02508201610067 [18:09:19]line Контрольно-Кассовый Чек [18:09:19]line ПРОДАЖА [18:09:19]line ТРК (МРК, ГНК) : 6 [18:09:19]line Товар: 2710194210 [18:09:19]line ДТ(л)-К-5 [18:09:19]line 6.680 * 74.90 [18:09:19]line = 500.33 [18:09:19]line НДС 12% НСП 1% [18:09:19]line > о реализуемом товаре [18:09:19]line ОКРУГЛЕНИЕ: -0.33 [18:09:19]line ИТОГО: 500.00 [18:09:19]line Внесено: 500.00 [18:09:19]line СДАЧА: 0.00 [18:09:19]line НСП 1% : 4.43 [18:09:19]line НДС 12% : 53.13 [18:09:19]line Наличными: 500.00 [18:09:19]line Безнал.: 0.00 [18:09:19]line Место: АЗС № 64 "Партнер Нефть" [18:09:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:09:19]line СНО: Общий режим [18:09:19]line Чек 151 25.11.2024 18:09 [18:09:19]line Смена: 556 ФФД: 1.0 [18:09:19]line ЗНМ: 0300000033 [18:09:19]line РНМ: 0000000000092681 [18:09:19]line Версия ККМ: 001 [18:09:19]line ФМ: 0000000000874881 [18:09:19]line ФД: 123110 [18:09:19]line ФПД: 149138635651075 [18:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T180924&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123110&fm=149138635651075&tin=02508201610067®Number=0000000000092681&sum=50000 [18:09:19]OFD Sender: Processing packet 123110 [packets to send 7, broken 6] [18:09:19]ProducePacketName [18:09:19]name=ofd_packets/00123110 [18:09:19]OFD Sender: To server: pG, [18:09:19]CommunicateWithHost lk.salyk.kg:30040 [18:09:19]ConnectInit lk.salyk.kg [18:09:19]written 0, free lines is 4095 [18:09:19]Connected sock=10 [18:09:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C0 80 08 01 23 B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 54 BD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E6 E0 01 00 35 04 06 00 87 A4 0B 66 78 03 78 F3 FF 77 ED 9D AC F7 [18:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 96 90 47 00 47 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E6 E0 01 00 F4 03 04 00 19 69 44 67 B6 04 01 00 00 E4 0F 0E 5F 7C F8 2F 37 [18:09:20]CommunicateWithHost err = 0 [18:09:20]CheckOFDResponse [18:09:20]1017 (14) - 77093643461234 [18:09:20]1041 (16) - 0000000000874881 [18:09:20]1040 (4) - 123110 [18:09:20]1012 (4) - 25.11.2024 12:10 [18:09:20]1206 (1) - 0 [18:09:20]OFD Sender: Remove packet 123110 [18:09:20]ProducePacketName [18:09:20]name=ofd_packets/00123110 [18:09:20]NVStorageDeleteData [18:09:20]Write to MH i2c: 01 00 00 08 3C 44 [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: 01 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: 01 07 00 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: 01 07 00 08 3C 00 00 00 00 00 4A 0C A1 [18:09:20]RasterBufferAndPrint [18:09:20]line [18:09:20]line [18:09:20]line [18:09:20]line [18:09:20]line [18:09:20]written 0, free lines is 3151 [18:09:20]MH_Cut [18:09:20]Write to MH i2c: D1 01 00 0F 3C 01 1D [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: D1 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: D1 01 00 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: D1 01 00 0F 3C 00 1C [18:09:20]Write to MH i2c: 01 00 00 10 3C 4C [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]OFD Sender: No OFD packet to send [18:09:21]*** Cut start [18:09:21]*** Partial cut [18:09:21]*** CUTSNS_PIN = 1 [18:09:21]*** CUTSNS_PIN = 0 [18:09:21]*** Brake cut motor [18:09:22]Read from MH i2c: 01 [18:09:22]MH_I2C_Read... [18:09:22]*** Stop cut motor [18:09:22]*** Cut end [18:09:22]Read from MH i2c: 01 07 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 07 00 10 3C 00 00 00 00 00 FF 0F 61 [18:09:22]process_action close_receipt done [18:09:22]requested_data is exist [18:09:22]produce_requested_data [18:09:22]requested_item fm.sn is exist - process it [18:09:22]wFMCommunicate request_size=4 [18:09:22]MH_SAM_APDU [18:09:22]CAPDU: 80 11 00 00 [18:09:22]Write to MH i2c: E2 08 00 11 3C 80 11 00 00 00 00 00 00 C7 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 17 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 17 00 11 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1E [18:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:09:22]wFMCommunicate OK [18:09:22]requested_item fd.num is exist - process it [18:09:22]SAM_PROTO_GetFieldsCounters [18:09:22]wFMCommunicate request_size=4 [18:09:22]MH_SAM_APDU [18:09:22]CAPDU: 80 13 00 00 [18:09:22]Write to MH i2c: E2 08 00 12 3C 80 13 00 00 00 00 00 00 CA [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 62 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 62 00 12 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E6 E0 01 00 0E 04 04 00 2C 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 AA [18:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E6 E0 01 00 0E 04 04 00 2C 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 [18:09:22]wFMCommunicate OK [18:09:22]SAM_PROTO_GetFieldsCounters done [18:09:22]requested_item shift.num is exist - process it [18:09:22]requested_item shift.opened is exist - process it [18:09:22]req_shift_opened [18:09:22]FM_GetShiftState [18:09:22]SAM_PROTO_GetShiftState [18:09:22]wFMCommunicate request_size=4 [18:09:22]MH_SAM_APDU [18:09:22]CAPDU: 80 13 01 00 [18:09:22]Write to MH i2c: E2 08 00 13 3C 80 13 01 00 00 00 00 00 CC [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 0E 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 0E 00 13 3C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4B [18:09:22]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:09:22]wFMCommunicate OK [18:09:22]SAM_PROTO_GetShiftState done [18:09:22]FM_GetShiftState done [18:09:22]req_shift_opened done [18:09:22]requested_item shift.open_date is exist - process it [18:09:22]req_shift_open_date [18:09:22]req_shift_open_date done [18:09:22]produce_requested_data done [18:09:22]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123110,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:09:22]process_action_free close_receipt [18:09:22]json_value_free [18:09:22]json_value_free done [18:09:22]process_json_proto returns [18:09:22]Send response to host [18:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123110,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:09:22]free response buf [18:09:22]execute_script done [18:09:22]execute_script returns [18:09:22]free content buf [18:09:22]Sock 7.Close socket [18:09:22]Sock 7.Thread stoped [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:31]accept exits with 9 [18:12:31]New connection [18:12:31]New thread 3066580324 created [18:12:31]Thread 3066723684 joined [18:12:31]Waiting for new connection... [18:12:31] Sock 9.Parse request [18:12:31]Sock 9.Check first char [18:12:31]Sock 9.First char is OK [18:12:31]request: POST /json_proto HTTP/1.0 [18:12:31]Method: POST [18:12:31]URL: /json_proto [18:12:31]Method is POST - this is cgi request [18:12:31]url: /json_proto [18:12:31]query_string will be loaded in cgi processing [18:12:31]execute_cgi json_proto POST (null) [18:12:31]execute_cgi path=json_proto method=POST [18:12:31]POST find Content-Length [18:12:31]Host: 172.17.37.4:8080 [18:12:31]Content-Length: 677 [18:12:31]Content-Type: application/json [18:12:31] [18:12:31]POST finish read [18:12:31]Found Content-Length = 677 [18:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:12:31]execute_script... [18: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)717907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:12:31]POST & json_proto [18:12:31]process_json_proto [18:12:31]json parsed OK: [18:12:31]protocol is kg_v1.0 [18:12:31]action value=close_receipt [18:12:31]process_action close_receipt [18:12:31]cmd_close_receipt [18:12:31]MH_GetDate [18:12:31]Write to MH i2c: F0 00 00 14 3C 3F [18:12:31]Write i2c OK [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: F0 [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: F0 09 00 [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: F0 09 00 14 3C 00 15 BE 44 67 B8 5A 43 67 82 [18:12:31]GetLastDocTimeStamp 1732558164 [18:12:31]current date 1732558357 [18:12:31]FM_GetShiftState [18:12:31]SAM_PROTO_GetShiftState [18:12:31]wFMCommunicate request_size=4 [18:12:31]MH_SAM_APDU [18:12:31]CAPDU: 80 13 01 00 [18:12:31]Write to MH i2c: E2 08 00 15 3C 80 13 01 00 00 00 00 00 CE [18:12:31]Write i2c OK [18:12:31]MH_I2C_Read... [18:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:31]Read from MH i2c: E2 [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: E2 0E 00 [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: E2 0E 00 15 3C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 4D [18:12:31]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:12:31]wFMCommunicate OK [18:12:31]SAM_PROTO_GetShiftState done [18:12:31]FM_GetShiftState done [18:12:31]opened in 1732493066 [18:12:31]opened+sec_in_day 1732579466 [18:12:31]quantity*price = 30060 [18:12:31]sum+1 = 30061 [18:12:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 152 25.11.2024 18:12 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123111 ФПД: 112511545274045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T181238&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123111&fm=112511545274045&tin=02508201610067®Number=0000000000092681&sum=30000 [18:12:32]StoreToDocumentArchive [18:12:32]shift 556 fd 123111 [18:12:32]save to /storage/0556/doc_00123111 [18:12:32]save last doc name /storage/0556/doc_00123111 to /storage/kkm_last_doc_name [18:12:32]save OK [18:12:32]Clear old archive folders... [18:12:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:32]tlvbuf is B6F202E0 [18:12:32]SAM_PROTO_ClearQueue [18:12:32]wFMCommunicate request_size=4 [18:12:32]MH_SAM_APDU [18:12:32]CAPDU: 80 09 00 00 [18:12:32]Write to MH i2c: E2 08 00 22 3C 80 09 00 00 00 00 00 00 D0 [18:12:32]Write i2c OK [18:12:32]MH_I2C_Read... [18:12:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:32]Read from MH i2c: E2 [18:12:32]MH_I2C_Read... [18:12:32]Read from MH i2c: E2 03 00 [18:12:32]MH_I2C_Read... [18:12:32]Read from MH i2c: E2 03 00 22 3C 00 90 00 D2 [18:12:32]RAPDU: 90 00 [18:12:32]wFMCommunicate OK [18:12:32]SAM_PROTO_ClearQueue done [18:12:32]KKMCreateOFDPacket [18:12:32]OFDProtocolAddRootSTLVToBuf [18:12:32]FM_MakeSignedData [18:12:32]FM_MakeSignedData [18:12:32]SAM_PROTO_SignData [18:12:32]wFMCommunicate request_size=4 [18:12:32]MH_SAM_APDU [18:12:32]CAPDU: 80 0D 01 02 [18:12:32]Write to MH i2c: E2 08 00 23 3C 80 0D 01 02 00 00 00 00 D8 [18:12:32]Write i2c OK [18:12:32]MH_I2C_Read... [18:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:32]Read from MH i2c: E2 [18:12:32]MH_I2C_Read... [18:12:32]Read from MH i2c: E2 03 00 [18:12:32]MH_I2C_Read... [18:12:32]Read from MH i2c: E2 03 00 23 3C 00 90 00 D3 [18:12:32]RAPDU: 90 00 [18:12:32]wFMCommunicate OK [18:12:32]wFMCommunicate request_size=255 [18:12:32]MH_SAM_APDU [18:12:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 16 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E7 E0 01 00 35 04 06 00 66 [18:12:32]Write to MH i2c: E2 02 01 24 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 16 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E7 E0 01 00 35 04 06 00 66 00 00 FE [18:12:32]Write i2c OK [18:12:32]MH_I2C_Read... [18:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:33]Read from MH i2c: E2 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 03 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 03 00 24 3C 00 90 00 D4 [18:12:33]RAPDU: 90 00 [18:12:33]wFMCommunicate OK [18:12:33]wFMCommunicate request_size=10 [18:12:33]MH_SAM_APDU [18:12:33]CAPDU: 80 0D 02 02 05 54 22 B0 6E BD [18:12:33]Write to MH i2c: E2 0D 00 25 3C 80 0D 02 02 05 00 54 22 B0 6E BD 00 00 36 [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:33]Read from MH i2c: E2 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 03 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 03 00 25 3C 00 90 00 D5 [18:12:33]RAPDU: 90 00 [18:12:33]wFMCommunicate OK [18:12:33]wFMCommunicate request_size=4 [18:12:33]MH_SAM_APDU [18:12:33]CAPDU: 80 0D 03 02 [18:12:33]Write to MH i2c: E2 08 00 26 3C 80 0D 03 02 00 00 00 00 DD [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:33]Read from MH i2c: E2 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 0B 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 0B 00 26 3C 00 80 2C E0 9D A9 90 D3 A4 90 00 B7 [18:12:33]RAPDU: 80 2C E0 9D A9 90 D3 A4 90 00 [18:12:33]wFMCommunicate OK [18:12:33]SAM_PROTO_SignData done [18:12:33]FM_MakeSignedData done [18:12:33]CreateOFDProtocolMessage [18:12:33]wFMCommunicate request_size=4 [18:12:33]MH_SAM_APDU [18:12:33]CAPDU: 80 11 00 00 [18:12:33]Write to MH i2c: E2 08 00 27 3C 80 11 00 00 00 00 00 00 DD [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:33]Read from MH i2c: E2 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 17 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 17 00 27 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 34 [18:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:12:33]wFMCommunicate OK [18:12:33]CreateOFDProtocolMessage done [18:12:33]OFDSenderStorePacket 123111 [18:12:33]StoreOFDPacket docnum=123111 [18:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 AD FE 07 01 47 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 16 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E7 E0 01 00 35 04 06 00 66 54 22 B0 6E BD 80 2C E0 9D A9 90 D3 A4 [18:12:33]CheckFolder [18:12:33]dirname=/storage/ofd_packets [18:12:33]CheckFolder done [18:12:33]ProducePacketName [18:12:33]name=ofd_packets/00123111 [18:12:33]NVStorageSaveData ofd_packets/00123111 [18:12:33]File name is /storage/ofd_packets/00123111 [18:12:33]Write 301 bytes [18:12:33]NVStorageSaveData done [18:12:33]OFDSenderStorePacket done [18:12:33]KKMCreateOFDPacket done [18:12:33]NVStorageSaveData kkm_last_timestamp [18:12:33]File name is /storage/kkm_last_timestamp [18:12:33]Write 4 bytes [18:12:33]NVStorageSaveData done [18:12:33]ExternCall_PrintAddStr [18:12:33]wPrintStart [18:12:33]Write to MH i2c: 01 00 00 28 3C 64 [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: 01 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: 01 07 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: 01 07 00 28 3C 00 00 00 00 00 FF 0F 79 [18:12:33]RasterBufferAndPrint [18:12:33]line Счет N : (1)717907 [18:12:33]line ИНН: 02508201610067 [18:12:33]line Контрольно-Кассовый Чек [18:12:33]line ПРОДАЖА [18:12:33]line ТРК (МРК, ГНК) : 32 [18:12:33]line Товар: 2710124130 [18:12:33]line Аи-92-К-4 [18:12:33]line 4.460 * 67.40 [18:12:33]line = 300.60 [18:12:33]line НДС 12% НСП 1% [18:12:33]line > о реализуемом товаре [18:12:33]line ОКРУГЛЕНИЕ: -0.60 [18:12:33]line ИТОГО: 300.00 [18:12:33]line Внесено: 300.00 [18:12:33]line СДАЧА: 0.00 [18:12:33]line НСП 1% : 2.66 [18:12:33]line НДС 12% : 31.92 [18:12:33]line Наличными: 300.00 [18:12:33]line Безнал.: 0.00 [18:12:33]line Место: АЗС № 64 "Партнер Нефть" [18:12:33]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:12:33]line СНО: Общий режим [18:12:33]line Чек 152 25.11.2024 18:12 [18:12:33]line Смена: 556 ФФД: 1.0 [18:12:33]line ЗНМ: 0300000033 [18:12:33]line РНМ: 0000000000092681 [18:12:33]line Версия ККМ: 001 [18:12:33]line ФМ: 0000000000874881 [18:12:33]line ФД: 123111 [18:12:33]line ФПД: 112511545274045 [18:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T181238&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123111&fm=112511545274045&tin=02508201610067®Number=0000000000092681&sum=30000 [18:12:33]OFD Sender: Processing packet 123111 [packets to send 7, broken 6] [18:12:33]ProducePacketName [18:12:33]name=ofd_packets/00123111 [18:12:33]OFD Sender: To server: pG, [18:12:33]CommunicateWithHost lk.salyk.kg:30040 [18:12:33]ConnectInit lk.salyk.kg [18:12:33]written 0, free lines is 4095 [18:12:33]Connected sock=10 [18: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 34 38 38 31 0F 01 00 00 AD FE 07 01 47 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 16 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E7 E0 01 00 35 04 06 00 66 54 22 B0 6E BD 80 2C E0 9D A9 90 D3 A4 [18:12:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6B BA 47 00 6D 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E7 E0 01 00 F4 03 04 00 DB 69 44 67 B6 04 01 00 00 6C F3 57 C5 3F 5D 45 72 [18:12:34]CommunicateWithHost err = 0 [18:12:34]CheckOFDResponse [18:12:34]1017 (14) - 77093643461234 [18:12:34]1041 (16) - 0000000000874881 [18:12:34]1040 (4) - 123111 [18:12:34]1012 (4) - 25.11.2024 12:13 [18:12:34]1206 (1) - 0 [18:12:34]OFD Sender: Remove packet 123111 [18:12:34]ProducePacketName [18:12:34]name=ofd_packets/00123111 [18:12:34]NVStorageDeleteData [18:12:34]Write to MH i2c: 01 00 00 53 3C 8F [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: 01 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: 01 07 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: 01 07 00 53 3C 00 00 00 00 00 40 0C E2 [18:12:34]RasterBufferAndPrint [18:12:34]line [18:12:34]line [18:12:34]line [18:12:34]line [18:12:34]line [18:12:34]written 0, free lines is 3141 [18:12:34]MH_Cut [18:12:34]Write to MH i2c: D1 01 00 5A 3C 01 68 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: D1 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: D1 01 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: D1 01 00 5A 3C 00 67 [18:12:34]Write to MH i2c: 01 00 00 5B 3C 97 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]OFD Sender: No OFD packet to send [18:12:35]*** Cut start [18:12:35]*** Partial cut [18:12:35]*** CUTSNS_PIN = 1 [18:12:35]*** CUTSNS_PIN = 0 [18:12:35]*** Brake cut motor [18:12:36]Read from MH i2c: 01 [18:12:36]MH_I2C_Read... [18:12:36]*** Stop cut motor [18:12:36]*** Cut end [18:12:36]Read from MH i2c: 01 07 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 07 00 5B 3C 00 00 00 00 00 FF 0F AC [18:12:36]process_action close_receipt done [18:12:36]requested_data is exist [18:12:36]produce_requested_data [18:12:36]requested_item fm.sn is exist - process it [18:12:36]wFMCommunicate request_size=4 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 11 00 00 [18:12:36]Write to MH i2c: E2 08 00 5C 3C 80 11 00 00 00 00 00 00 12 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 17 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 17 00 5C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 69 [18:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:12:36]wFMCommunicate OK [18:12:36]requested_item fd.num is exist - process it [18:12:36]SAM_PROTO_GetFieldsCounters [18:12:36]wFMCommunicate request_size=4 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 13 00 00 [18:12:36]Write to MH i2c: E2 08 00 5D 3C 80 13 00 00 00 00 00 00 15 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 62 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 62 00 5D 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E7 E0 01 00 0E 04 04 00 2C 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 F9 [18:12:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E7 E0 01 00 0E 04 04 00 2C 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 [18:12:36]wFMCommunicate OK [18:12:36]SAM_PROTO_GetFieldsCounters done [18:12:36]requested_item shift.num is exist - process it [18:12:36]requested_item shift.opened is exist - process it [18:12:36]req_shift_opened [18:12:36]FM_GetShiftState [18:12:36]SAM_PROTO_GetShiftState [18:12:36]wFMCommunicate request_size=4 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 13 01 00 [18:12:36]Write to MH i2c: E2 08 00 5E 3C 80 13 01 00 00 00 00 00 17 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 0E 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 0E 00 5E 3C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 96 [18:12:36]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:12:36]wFMCommunicate OK [18:12:36]SAM_PROTO_GetShiftState done [18:12:36]FM_GetShiftState done [18:12:36]req_shift_opened done [18:12:36]requested_item shift.open_date is exist - process it [18:12:36]req_shift_open_date [18:12:36]req_shift_open_date done [18:12:36]produce_requested_data done [18:12:36]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123111,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:12:36]process_action_free close_receipt [18:12:36]json_value_free [18:12:36]json_value_free done [18:12:36]process_json_proto returns [18:12:36]Send response to host [18:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123111,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:12:36]free response buf [18:12:36]execute_script done [18:12:36]execute_script returns [18:12:36]free content buf [18:12:36]Sock 9.Close socket [18:12:36]Sock 9.Thread stoped [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:52]accept exits with 7 [18:14:52]New connection [18:14:52]New thread 3066723684 created [18:14:52]Thread 3066580324 joined [18:14:52]Waiting for new connection... [18:14:52] Sock 7.Parse request [18:14:52]Sock 7.Check first char [18:14:52]Sock 7.First char is OK [18:14:52]request: POST /json_proto HTTP/1.0 [18:14:52]Method: POST [18:14:52]URL: /json_proto [18:14:52]Method is POST - this is cgi request [18:14:52]url: /json_proto [18:14:52]query_string will be loaded in cgi processing [18:14:52]execute_cgi json_proto POST (null) [18:14:52]execute_cgi path=json_proto method=POST [18:14:52]POST find Content-Length [18:14:52]Host: 172.17.37.4:8080 [18:14:52]Content-Length: 677 [18:14:52]Content-Type: application/json [18:14:52] [18:14:52]POST finish read [18:14:52]Found Content-Length = 677 [18:14:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:14:52]execute_script... [18:14:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:14:52]POST & json_proto [18:14:52]process_json_proto [18:14:52]json parsed OK: [18:14:52]protocol is kg_v1.0 [18:14:52]action value=close_receipt [18:14:52]process_action close_receipt [18:14:52]cmd_close_receipt [18:14:52]MH_GetDate [18:14:52]Write to MH i2c: F0 00 00 5F 3C 8A [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: F0 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: F0 09 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: F0 09 00 5F 3C 00 A2 BE 44 67 B8 5A 43 67 5A [18:14:52]GetLastDocTimeStamp 1732558358 [18:14:52]current date 1732558498 [18:14:52]FM_GetShiftState [18:14:52]SAM_PROTO_GetShiftState [18:14:52]wFMCommunicate request_size=4 [18:14:52]MH_SAM_APDU [18:14:52]CAPDU: 80 13 01 00 [18:14:52]Write to MH i2c: E2 08 00 60 3C 80 13 01 00 00 00 00 00 19 [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:52]Read from MH i2c: E2 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 0E 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 0E 00 60 3C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 98 [18:14:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:14:52]wFMCommunicate OK [18:14:52]SAM_PROTO_GetShiftState done [18:14:52]FM_GetShiftState done [18:14:52]opened in 1732493066 [18:14:52]opened+sec_in_day 1732579466 [18:14:52]quantity*price = 30060 [18:14:52]sum+1 = 30061 [18:14:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 153 25.11.2024 18:14 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123112 ФПД: 196290803017810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T181458&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123112&fm=196290803017810&tin=02508201610067®Number=0000000000092681&sum=30000 [18:14:53]StoreToDocumentArchive [18:14:53]shift 556 fd 123112 [18:14:53]save to /storage/0556/doc_00123112 [18:14:53]save last doc name /storage/0556/doc_00123112 to /storage/kkm_last_doc_name [18:14:53]save OK [18:14:53]Clear old archive folders... [18:14:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:53]tlvbuf is 0212B7C0 [18:14:53]SAM_PROTO_ClearQueue [18:14:53]wFMCommunicate request_size=4 [18:14:53]MH_SAM_APDU [18:14:53]CAPDU: 80 09 00 00 [18:14:53]Write to MH i2c: E2 08 00 6D 3C 80 09 00 00 00 00 00 00 1B [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:53]Read from MH i2c: E2 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 03 00 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 03 00 6D 3C 00 90 00 1D [18:14:53]RAPDU: 90 00 [18:14:53]wFMCommunicate OK [18:14:53]SAM_PROTO_ClearQueue done [18:14:53]KKMCreateOFDPacket [18:14:53]OFDProtocolAddRootSTLVToBuf [18:14:53]FM_MakeSignedData [18:14:53]FM_MakeSignedData [18:14:53]SAM_PROTO_SignData [18:14:53]wFMCommunicate request_size=4 [18:14:53]MH_SAM_APDU [18:14:53]CAPDU: 80 0D 01 02 [18:14:53]Write to MH i2c: E2 08 00 6E 3C 80 0D 01 02 00 00 00 00 23 [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:53]Read from MH i2c: E2 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 03 00 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 03 00 6E 3C 00 90 00 1E [18:14:53]RAPDU: 90 00 [18:14:53]wFMCommunicate OK [18:14:53]wFMCommunicate request_size=255 [18:14:53]MH_SAM_APDU [18:14:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 A2 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E8 E0 01 00 35 04 06 00 B2 [18:14:53]Write to MH i2c: E2 02 01 6F 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 A2 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E8 E0 01 00 35 04 06 00 B2 00 00 23 [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:54]Read from MH i2c: E2 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 03 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 03 00 6F 3C 00 90 00 1F [18:14:54]RAPDU: 90 00 [18:14:54]wFMCommunicate OK [18:14:54]wFMCommunicate request_size=10 [18:14:54]MH_SAM_APDU [18:14:54]CAPDU: 80 0D 02 02 05 86 83 96 28 52 [18:14:54]Write to MH i2c: E2 0D 00 70 3C 80 0D 02 02 05 00 86 83 96 28 52 00 00 49 [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:54]Read from MH i2c: E2 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 03 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 03 00 70 3C 00 90 00 20 [18:14:54]RAPDU: 90 00 [18:14:54]wFMCommunicate OK [18:14:54]wFMCommunicate request_size=4 [18:14:54]MH_SAM_APDU [18:14:54]CAPDU: 80 0D 03 02 [18:14:54]Write to MH i2c: E2 08 00 71 3C 80 0D 03 02 00 00 00 00 28 [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:54]Read from MH i2c: E2 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 0B 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 0B 00 71 3C 00 5C AE 71 2E D3 AB ED 7C 90 00 B9 [18:14:54]RAPDU: 5C AE 71 2E D3 AB ED 7C 90 00 [18:14:54]wFMCommunicate OK [18:14:54]SAM_PROTO_SignData done [18:14:54]FM_MakeSignedData done [18:14:54]CreateOFDProtocolMessage [18:14:54]wFMCommunicate request_size=4 [18:14:54]MH_SAM_APDU [18:14:54]CAPDU: 80 11 00 00 [18:14:54]Write to MH i2c: E2 08 00 72 3C 80 11 00 00 00 00 00 00 28 [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:54]Read from MH i2c: E2 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 17 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 17 00 72 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7F [18:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:14:54]wFMCommunicate OK [18:14:54]CreateOFDProtocolMessage done [18:14:54]OFDSenderStorePacket 123112 [18:14:54]StoreOFDPacket docnum=123112 [18:14:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6D F4 07 01 FA AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 A2 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E8 E0 01 00 35 04 06 00 B2 86 83 96 28 52 5C AE 71 2E D3 AB ED 7C [18:14:54]CheckFolder [18:14:54]dirname=/storage/ofd_packets [18:14:54]CheckFolder done [18:14:54]ProducePacketName [18:14:54]name=ofd_packets/00123112 [18:14:54]NVStorageSaveData ofd_packets/00123112 [18:14:54]File name is /storage/ofd_packets/00123112 [18:14:54]Write 301 bytes [18:14:54]NVStorageSaveData done [18:14:54]OFDSenderStorePacket done [18:14:54]KKMCreateOFDPacket done [18:14:54]NVStorageSaveData kkm_last_timestamp [18:14:54]File name is /storage/kkm_last_timestamp [18:14:54]Write 4 bytes [18:14:54]NVStorageSaveData done [18:14:54]ExternCall_PrintAddStr [18:14:54]wPrintStart [18:14:54]Write to MH i2c: 01 00 00 73 3C AF [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: 01 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: 01 07 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: 01 07 00 73 3C 00 00 00 00 00 FF 0F C4 [18:14:54]RasterBufferAndPrint [18:14:54]line Счет N : (1)717908 [18:14:54]line ИНН: 02508201610067 [18:14:54]line Контрольно-Кассовый Чек [18:14:54]line ПРОДАЖА [18:14:54]line ТРК (МРК, ГНК) : 42 [18:14:54]line Товар: 2710124130 [18:14:54]line Аи-92-К-4 [18:14:54]line 4.460 * 67.40 [18:14:54]line = 300.60 [18:14:54]line НДС 12% НСП 1% [18:14:54]line > о реализуемом товаре [18:14:54]line ОКРУГЛЕНИЕ: -0.60 [18:14:54]line ИТОГО: 300.00 [18:14:54]line Внесено: 300.00 [18:14:54]line СДАЧА: 0.00 [18:14:54]line НСП 1% : 2.66 [18:14:54]line НДС 12% : 31.92 [18:14:54]line Наличными: 300.00 [18:14:54]line Безнал.: 0.00 [18:14:54]line Место: АЗС № 64 "Партнер Нефть" [18:14:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:14:54]line СНО: Общий режим [18:14:54]line Чек 153 25.11.2024 18:14 [18:14:54]line Смена: 556 ФФД: 1.0 [18:14:54]line ЗНМ: 0300000033 [18:14:54]line РНМ: 0000000000092681 [18:14:54]line Версия ККМ: 001 [18:14:54]line ФМ: 0000000000874881 [18:14:54]line ФД: 123112 [18:14:54]line ФПД: 196290803017810 [18:14:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T181458&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123112&fm=196290803017810&tin=02508201610067®Number=0000000000092681&sum=30000 [18:14:54]OFD Sender: Processing packet 123112 [packets to send 7, broken 6] [18:14:54]ProducePacketName [18:14:54]name=ofd_packets/00123112 [18:14:54]OFD Sender: To server: pG, [18:14:54]CommunicateWithHost lk.salyk.kg:30040 [18:14:54]ConnectInit lk.salyk.kg [18:14:54]written 0, free lines is 4095 [18:14:54]Connected sock=10 [18:14:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6D F4 07 01 FA AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 A2 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E8 E0 01 00 35 04 06 00 B2 86 83 96 28 52 5C AE 71 2E D3 AB ED 7C [18:14:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 CE 2F 47 00 5F 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 34 38 38 31 10 04 04 00 E8 E0 01 00 F4 03 04 00 67 6A 44 67 B6 04 01 00 00 03 30 4F BB 67 C9 CC B9 [18:14:54]CommunicateWithHost err = 0 [18:14:54]CheckOFDResponse [18:14:54]1017 (14) - 77093643461234 [18:14:54]1041 (16) - 0000000000874881 [18:14:54]1040 (4) - 123112 [18:14:54]1012 (4) - 25.11.2024 12:15 [18:14:54]1206 (1) - 0 [18:14:54]OFD Sender: Remove packet 123112 [18:14:54]ProducePacketName [18:14:54]name=ofd_packets/00123112 [18:14:54]NVStorageDeleteData [18:14:55]Write to MH i2c: 01 00 00 9E 3C DA [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: 01 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: 01 07 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: 01 07 00 9E 3C 00 00 00 00 00 46 0C 33 [18:14:55]RasterBufferAndPrint [18:14:55]line [18:14:55]line [18:14:55]line [18:14:55]line [18:14:55]line [18:14:55]written 0, free lines is 3146 [18:14:55]MH_Cut [18:14:55]Write to MH i2c: D1 01 00 A5 3C 01 B3 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: D1 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: D1 01 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: D1 01 00 A5 3C 00 B2 [18:14:55]Write to MH i2c: 01 00 00 A6 3C E2 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]OFD Sender: No OFD packet to send [18:14:56]*** Cut start [18:14:56]*** Partial cut [18:14:56]*** CUTSNS_PIN = 1 [18:14:56]*** CUTSNS_PIN = 0 [18:14:56]*** Brake cut motor [18:14:57]Read from MH i2c: 01 [18:14:57]MH_I2C_Read... [18:14:57]*** Stop cut motor [18:14:57]*** Cut end [18:14:57]Read from MH i2c: 01 07 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 A6 3C 00 00 00 00 00 FF 0F F7 [18:14:57]process_action close_receipt done [18:14:57]requested_data is exist [18:14:57]produce_requested_data [18:14:57]requested_item fm.sn is exist - process it [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 11 00 00 [18:14:57]Write to MH i2c: E2 08 00 A7 3C 80 11 00 00 00 00 00 00 5D [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 A7 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B4 [18:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:14:57]wFMCommunicate OK [18:14:57]requested_item fd.num is exist - process it [18:14:57]SAM_PROTO_GetFieldsCounters [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 13 00 00 [18:14:57]Write to MH i2c: E2 08 00 A8 3C 80 13 00 00 00 00 00 00 60 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 62 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 62 00 A8 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E8 E0 01 00 0E 04 04 00 2C 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 48 [18:14:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E8 E0 01 00 0E 04 04 00 2C 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 [18:14:57]wFMCommunicate OK [18:14:57]SAM_PROTO_GetFieldsCounters done [18:14:57]requested_item shift.num is exist - process it [18:14:57]requested_item shift.opened is exist - process it [18:14:57]req_shift_opened [18:14:57]FM_GetShiftState [18:14:57]SAM_PROTO_GetShiftState [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 13 01 00 [18:14:57]Write to MH i2c: E2 08 00 A9 3C 80 13 01 00 00 00 00 00 62 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0E 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0E 00 A9 3C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E1 [18:14:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:14:57]wFMCommunicate OK [18:14:57]SAM_PROTO_GetShiftState done [18:14:57]FM_GetShiftState done [18:14:57]req_shift_opened done [18:14:57]requested_item shift.open_date is exist - process it [18:14:57]req_shift_open_date [18:14:57]req_shift_open_date done [18:14:57]produce_requested_data done [18:14:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123112,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:14:57]process_action_free close_receipt [18:14:57]json_value_free [18:14:57]json_value_free done [18:14:57]process_json_proto returns [18:14:57]Send response to host [18:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123112,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:14:57]free response buf [18:14:57]execute_script done [18:14:57]execute_script returns [18:14:57]free content buf [18:14:57]Sock 7.Close socket [18:14:57]Sock 7.Thread stoped [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:19]accept exits with 9 [18:16:19]New connection [18:16:19]New thread 3066580324 created [18:16:19]Thread 3066723684 joined [18:16:19]Waiting for new connection... [18:16:19] Sock 9.Parse request [18:16:19]Sock 9.Check first char [18:16:19]Sock 9.First char is OK [18:16:19]request: POST /json_proto HTTP/1.0 [18:16:19]Method: POST [18:16:19]URL: /json_proto [18:16:19]Method is POST - this is cgi request [18:16:19]url: /json_proto [18:16:19]query_string will be loaded in cgi processing [18:16:19]execute_cgi json_proto POST (null) [18:16:19]execute_cgi path=json_proto method=POST [18:16:19]POST find Content-Length [18:16:19]Host: 172.17.37.4:8080 [18:16:19]Content-Length: 677 [18:16:19]Content-Type: application/json [18:16:19] [18:16:19]POST finish read [18:16:19]Found Content-Length = 677 [18:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:19]execute_script... [18:16: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)717909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:19]POST & json_proto [18:16:19]process_json_proto [18:16:19]json parsed OK: [18:16:19]protocol is kg_v1.0 [18:16:19]action value=close_receipt [18:16:19]process_action close_receipt [18:16:19]cmd_close_receipt [18:16:19]MH_GetDate [18:16:19]Write to MH i2c: F0 00 00 AA 3C D5 [18:16:19]Write i2c OK [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: F0 [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: F0 09 00 [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: F0 09 00 AA 3C 00 F9 BE 44 67 B8 5A 43 67 FC [18:16:19]GetLastDocTimeStamp 1732558498 [18:16:19]current date 1732558585 [18:16:19]FM_GetShiftState [18:16:19]SAM_PROTO_GetShiftState [18:16:19]wFMCommunicate request_size=4 [18:16:19]MH_SAM_APDU [18:16:19]CAPDU: 80 13 01 00 [18:16:19]Write to MH i2c: E2 08 00 AB 3C 80 13 01 00 00 00 00 00 64 [18:16:19]Write i2c OK [18:16:19]MH_I2C_Read... [18:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:19]Read from MH i2c: E2 [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: E2 0E 00 [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: E2 0E 00 AB 3C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E3 [18:16:19]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:16:19]wFMCommunicate OK [18:16:19]SAM_PROTO_GetShiftState done [18:16:19]FM_GetShiftState done [18:16:19]opened in 1732493066 [18:16:19]opened+sec_in_day 1732579466 [18:16:19]quantity*price = 40035 [18:16:19]sum+1 = 40037 [18:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 154 25.11.2024 18:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123113 ФПД: 12276388342989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T181625&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123113&fm=12276388342989&tin=02508201610067®Number=0000000000092681&sum=40000 [18:16:20]StoreToDocumentArchive [18:16:20]shift 556 fd 123113 [18:16:20]save to /storage/0556/doc_00123113 [18:16:20]save last doc name /storage/0556/doc_00123113 to /storage/kkm_last_doc_name [18:16:20]save OK [18:16:20]Clear old archive folders... [18:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:20]tlvbuf is 01F46F50 [18:16:20]SAM_PROTO_ClearQueue [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 09 00 00 [18:16:20]Write to MH i2c: E2 08 00 B8 3C 80 09 00 00 00 00 00 00 66 [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 03 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 03 00 B8 3C 00 90 00 68 [18:16:20]RAPDU: 90 00 [18:16:20]wFMCommunicate OK [18:16:20]SAM_PROTO_ClearQueue done [18:16:20]KKMCreateOFDPacket [18:16:20]OFDProtocolAddRootSTLVToBuf [18:16:20]FM_MakeSignedData [18:16:20]FM_MakeSignedData [18:16:20]SAM_PROTO_SignData [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 0D 01 02 [18:16:20]Write to MH i2c: E2 08 00 B9 3C 80 0D 01 02 00 00 00 00 6E [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 03 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 03 00 B9 3C 00 90 00 69 [18:16:20]RAPDU: 90 00 [18:16:20]wFMCommunicate OK [18:16:20]wFMCommunicate request_size=255 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 9A 00 00 00 F4 03 04 00 F9 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E9 E0 01 00 35 04 06 00 0B [18:16:20]Write to MH i2c: E2 02 01 BA 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 9A 00 00 00 F4 03 04 00 F9 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E9 E0 01 00 35 04 06 00 0B 00 00 FB [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]OFD Sender: No OFD packet to send [18:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 03 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 03 00 BA 3C 00 90 00 6A [18:16:20]RAPDU: 90 00 [18:16:20]wFMCommunicate OK [18:16:20]wFMCommunicate request_size=10 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 0D 02 02 05 2A 51 C4 2C CD [18:16:20]Write to MH i2c: E2 0D 00 BB 3C 80 0D 02 02 05 00 2A 51 C4 2C CD 00 00 B3 [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 03 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 03 00 BB 3C 00 90 00 6B [18:16:20]RAPDU: 90 00 [18:16:20]wFMCommunicate OK [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 0D 03 02 [18:16:20]Write to MH i2c: E2 08 00 BC 3C 80 0D 03 02 00 00 00 00 73 [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 0B 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 0B 00 BC 3C 00 12 8A 1A 2F 86 E4 83 D0 90 00 16 [18:16:20]RAPDU: 12 8A 1A 2F 86 E4 83 D0 90 00 [18:16:20]wFMCommunicate OK [18:16:20]SAM_PROTO_SignData done [18:16:20]FM_MakeSignedData done [18:16:20]CreateOFDProtocolMessage [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 11 00 00 [18:16:20]Write to MH i2c: E2 08 00 BD 3C 80 11 00 00 00 00 00 00 73 [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 17 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 17 00 BD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CA [18:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:16:20]wFMCommunicate OK [18:16:20]CreateOFDProtocolMessage done [18:16:20]OFDSenderStorePacket 123113 [18:16:20]StoreOFDPacket docnum=123113 [18:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 55 E8 07 01 71 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 9A 00 00 00 F4 03 04 00 F9 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E9 E0 01 00 35 04 06 00 0B 2A 51 C4 2C CD 12 8A 1A 2F 86 E4 83 D0 [18:16:20]CheckFolder [18:16:20]dirname=/storage/ofd_packets [18:16:20]CheckFolder done [18:16:20]ProducePacketName [18:16:20]name=ofd_packets/00123113 [18:16:20]NVStorageSaveData ofd_packets/00123113 [18:16:20]File name is /storage/ofd_packets/00123113 [18:16:20]Write 301 bytes [18:16:20]NVStorageSaveData done [18:16:20]OFDSenderStorePacket done [18:16:20]KKMCreateOFDPacket done [18:16:20]NVStorageSaveData kkm_last_timestamp [18:16:20]File name is /storage/kkm_last_timestamp [18:16:20]Write 4 bytes [18:16:20]NVStorageSaveData done [18:16:20]ExternCall_PrintAddStr [18:16:20]wPrintStart [18:16:20]Write to MH i2c: 01 00 00 BE 3C FA [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: 01 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: 01 07 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: 01 07 00 BE 3C 00 00 00 00 00 FF 0F 0F [18:16:20]RasterBufferAndPrint [18:16:20]line Счет N : (1)717909 [18:16:20]line ИНН: 02508201610067 [18:16:20]line Контрольно-Кассовый Чек [18:16:20]line ПРОДАЖА [18:16:20]line ТРК (МРК, ГНК) : 22 [18:16:20]line Товар: 2710124130 [18:16:20]line Аи-92-К-4 [18:16:20]line 5.940 * 67.40 [18:16:20]line = 400.36 [18:16:20]line НДС 12% НСП 1% [18:16:20]line > о реализуемом товаре [18:16:20]line ОКРУГЛЕНИЕ: -0.36 [18:16:20]line ИТОГО: 400.00 [18:16:20]line Внесено: 400.00 [18:16:20]line СДАЧА: 0.00 [18:16:20]line НСП 1% : 3.54 [18:16:20]line НДС 12% : 42.52 [18:16:20]line Наличными: 400.00 [18:16:20]line Безнал.: 0.00 [18:16:20]line Место: АЗС № 64 "Партнер Нефть" [18:16:20]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:16:20]line СНО: Общий режим [18:16:20]line Чек 154 25.11.2024 18:16 [18:16:20]line Смена: 556 ФФД: 1.0 [18:16:20]line ЗНМ: 0300000033 [18:16:20]line РНМ: 0000000000092681 [18:16:20]line Версия ККМ: 001 [18:16:20]line ФМ: 0000000000874881 [18:16:20]line ФД: 123113 [18:16:20]line ФПД: 12276388342989 [18:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T181625&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123113&fm=12276388342989&tin=02508201610067®Number=0000000000092681&sum=40000 [18:16:21]OFD Sender: Processing packet 123113 [packets to send 7, broken 6] [18:16:21]ProducePacketName [18:16:21]name=ofd_packets/00123113 [18:16:21]OFD Sender: To server: pG, [18:16:21]CommunicateWithHost lk.salyk.kg:30040 [18:16:21]ConnectInit lk.salyk.kg [18:16:21]written 0, free lines is 4095 [18:16:21]Connected sock=10 [18:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 55 E8 07 01 71 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 9A 00 00 00 F4 03 04 00 F9 BE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E9 E0 01 00 35 04 06 00 0B 2A 51 C4 2C CD 12 8A 1A 2F 86 E4 83 D0 [18:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A0 59 47 00 A0 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 E9 E0 01 00 F4 03 04 00 BE 6A 44 67 B6 04 01 00 00 01 FC E0 6C E8 B0 8F 30 [18:16:21]CommunicateWithHost err = 0 [18:16:21]CheckOFDResponse [18:16:21]1017 (14) - 77093643461234 [18:16:21]1041 (16) - 0000000000874881 [18:16:21]1040 (4) - 123113 [18:16:21]1012 (4) - 25.11.2024 12:17 [18:16:21]1206 (1) - 0 [18:16:21]OFD Sender: Remove packet 123113 [18:16:21]ProducePacketName [18:16:21]name=ofd_packets/00123113 [18:16:21]NVStorageDeleteData [18:16:21]Write to MH i2c: 01 00 00 E9 3C 25 [18:16:21]Write i2c OK [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: 01 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: 01 07 00 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: 01 07 00 E9 3C 00 00 00 00 00 4E 0C 86 [18:16:21]RasterBufferAndPrint [18:16:21]line [18:16:21]line [18:16:21]line [18:16:21]line [18:16:21]line [18:16:21]written 0, free lines is 3154 [18:16:21]MH_Cut [18:16:21]Write to MH i2c: D1 01 00 F0 3C 01 FE [18:16:21]Write i2c OK [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: D1 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: D1 01 00 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: D1 01 00 F0 3C 00 FD [18:16:21]Write to MH i2c: 01 00 00 F1 3C 2D [18:16:21]Write i2c OK [18:16:21]MH_I2C_Read... [18:16:21]OFD Sender: No OFD packet to send [18:16:22]*** Cut start [18:16:22]*** Partial cut [18:16:22]*** CUTSNS_PIN = 1 [18:16:23]*** CUTSNS_PIN = 0 [18:16:23]*** Brake cut motor [18:16:23]Read from MH i2c: 01 [18:16:23]MH_I2C_Read... [18:16:23]*** Stop cut motor [18:16:23]*** Cut end [18:16:23]Read from MH i2c: 01 07 00 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: 01 07 00 F1 3C 00 00 00 00 00 FF 0F 42 [18:16:23]process_action close_receipt done [18:16:23]requested_data is exist [18:16:23]produce_requested_data [18:16:23]requested_item fm.sn is exist - process it [18:16:23]wFMCommunicate request_size=4 [18:16:23]MH_SAM_APDU [18:16:23]CAPDU: 80 11 00 00 [18:16:23]Write to MH i2c: E2 08 00 F2 3C 80 11 00 00 00 00 00 00 A8 [18:16:23]Write i2c OK [18:16:23]MH_I2C_Read... [18:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:23]Read from MH i2c: E2 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: E2 17 00 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: E2 17 00 F2 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FF [18:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:16:23]wFMCommunicate OK [18:16:23]requested_item fd.num is exist - process it [18:16:23]SAM_PROTO_GetFieldsCounters [18:16:23]wFMCommunicate request_size=4 [18:16:23]MH_SAM_APDU [18:16:23]CAPDU: 80 13 00 00 [18:16:23]Write to MH i2c: E2 08 00 F3 3C 80 13 00 00 00 00 00 00 AB [18:16:23]Write i2c OK [18:16:23]MH_I2C_Read... [18:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:23]Read from MH i2c: E2 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: E2 62 00 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: E2 62 00 F3 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E9 E0 01 00 0E 04 04 00 2C 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 97 [18:16:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 E9 E0 01 00 0E 04 04 00 2C 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 [18:16:23]wFMCommunicate OK [18:16:23]SAM_PROTO_GetFieldsCounters done [18:16:23]requested_item shift.num is exist - process it [18:16:23]requested_item shift.opened is exist - process it [18:16:23]req_shift_opened [18:16:23]FM_GetShiftState [18:16:23]SAM_PROTO_GetShiftState [18:16:23]wFMCommunicate request_size=4 [18:16:23]MH_SAM_APDU [18:16:23]CAPDU: 80 13 01 00 [18:16:23]Write to MH i2c: E2 08 00 F4 3C 80 13 01 00 00 00 00 00 AD [18:16:23]Write i2c OK [18:16:23]MH_I2C_Read... [18:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:23]Read from MH i2c: E2 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: E2 0E 00 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: E2 0E 00 F4 3C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2C [18:16:23]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:16:23]wFMCommunicate OK [18:16:23]SAM_PROTO_GetShiftState done [18:16:23]FM_GetShiftState done [18:16:23]req_shift_opened done [18:16:23]requested_item shift.open_date is exist - process it [18:16:23]req_shift_open_date [18:16:23]req_shift_open_date done [18:16:23]produce_requested_data done [18:16:23]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123113,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:16:23]process_action_free close_receipt [18:16:23]json_value_free [18:16:23]json_value_free done [18:16:23]process_json_proto returns [18:16:23]Send response to host [18:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123113,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:16:23]free response buf [18:16:23]execute_script done [18:16:23]execute_script returns [18:16:23]free content buf [18:16:23]Sock 9.Close socket [18:16:23]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:44]accept exits with 7 [18:20:44]New connection [18:20:44]New thread 3066723684 created [18:20:44]Thread 3066580324 joined [18:20:44]Waiting for new connection... [18:20:44] Sock 7.Parse request [18:20:44]Sock 7.Check first char [18:20:44]Sock 7.First char is OK [18:20:44]request: POST /json_proto HTTP/1.0 [18:20:44]Method: POST [18:20:44]URL: /json_proto [18:20:44]Method is POST - this is cgi request [18:20:44]url: /json_proto [18:20:44]query_string will be loaded in cgi processing [18:20:44]execute_cgi json_proto POST (null) [18:20:44]execute_cgi path=json_proto method=POST [18:20:44]POST find Content-Length [18:20:44]Host: 172.17.37.4:8080 [18:20:44]Content-Length: 678 [18:20:44]Content-Type: application/json [18:20:44] [18:20:44]POST finish read [18:20:44]Found Content-Length = 678 [18:20:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:44]execute_script... [18:20: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)717910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:44]POST & json_proto [18:20:44]process_json_proto [18:20:44]json parsed OK: [18:20:44]protocol is kg_v1.0 [18:20:44]action value=close_receipt [18:20:44]process_action close_receipt [18:20:44]cmd_close_receipt [18:20:44]MH_GetDate [18:20:44]Write to MH i2c: F0 00 00 F5 3C 20 [18:20:44]Write i2c OK [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: F0 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: F0 09 00 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: F0 09 00 F5 3C 00 02 C0 44 67 B8 5A 43 67 52 [18:20:44]GetLastDocTimeStamp 1732558585 [18:20:44]current date 1732558850 [18:20:44]FM_GetShiftState [18:20:44]SAM_PROTO_GetShiftState [18:20:44]wFMCommunicate request_size=4 [18:20:44]MH_SAM_APDU [18:20:44]CAPDU: 80 13 01 00 [18:20:44]Write to MH i2c: E2 08 00 F6 3C 80 13 01 00 00 00 00 00 AF [18:20:44]Write i2c OK [18:20:44]MH_I2C_Read... [18:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:44]Read from MH i2c: E2 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 0E 00 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 0E 00 F6 3C 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 2E [18:20:44]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:20:44]wFMCommunicate OK [18:20:44]SAM_PROTO_GetShiftState done [18:20:44]FM_GetShiftState done [18:20:44]opened in 1732493066 [18:20:44]opened+sec_in_day 1732579466 [18:20:44]quantity*price = 80003 [18:20:44]sum+1 = 80005 [18:20:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 155 25.11.2024 18:20 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123114 ФПД: 12896834752012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T182050&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123114&fm=12896834752012&tin=02508201610067®Number=0000000000092681&sum=80000 [18:20:45]StoreToDocumentArchive [18:20:45]shift 556 fd 123114 [18:20:45]save to /storage/0556/doc_00123114 [18:20:45]save last doc name /storage/0556/doc_00123114 to /storage/kkm_last_doc_name [18:20:45]save OK [18:20:45]Clear old archive folders... [18:20:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:45]tlvbuf is 020A9A10 [18:20:45]SAM_PROTO_ClearQueue [18:20:45]wFMCommunicate request_size=4 [18:20:45]MH_SAM_APDU [18:20:45]CAPDU: 80 09 00 00 [18:20:45]Write to MH i2c: E2 08 00 03 3D 80 09 00 00 00 00 00 00 B2 [18:20:45]Write i2c OK [18:20:45]MH_I2C_Read... [18:20:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:45]Read from MH i2c: E2 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 03 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 03 00 03 3D 00 90 00 B4 [18:20:45]RAPDU: 90 00 [18:20:45]wFMCommunicate OK [18:20:45]SAM_PROTO_ClearQueue done [18:20:45]KKMCreateOFDPacket [18:20:45]OFDProtocolAddRootSTLVToBuf [18:20:45]FM_MakeSignedData [18:20:45]FM_MakeSignedData [18:20:45]SAM_PROTO_SignData [18:20:45]wFMCommunicate request_size=4 [18:20:45]MH_SAM_APDU [18:20:45]CAPDU: 80 0D 01 02 [18:20:45]Write to MH i2c: E2 08 00 04 3D 80 0D 01 02 00 00 00 00 BA [18:20:45]Write i2c OK [18:20:45]MH_I2C_Read... [18:20:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:45]Read from MH i2c: E2 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 03 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 03 00 04 3D 00 90 00 B5 [18:20:45]RAPDU: 90 00 [18:20:45]wFMCommunicate OK [18:20:45]wFMCommunicate request_size=255 [18:20:45]MH_SAM_APDU [18:20:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 02 C0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EA E0 01 00 35 04 06 00 0B [18:20:45]Write to MH i2c: E2 02 01 05 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 02 C0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EA E0 01 00 35 04 06 00 0B 00 00 14 [18:20:45]Write i2c OK [18:20:45]MH_I2C_Read... [18:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:46]Read from MH i2c: E2 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 03 00 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 03 00 05 3D 00 90 00 B6 [18:20:46]RAPDU: 90 00 [18:20:46]wFMCommunicate OK [18:20:46]wFMCommunicate request_size=10 [18:20:46]MH_SAM_APDU [18:20:46]CAPDU: 80 0D 02 02 05 BA C7 41 0E 0C [18:20:46]Write to MH i2c: E2 0D 00 06 3D 80 0D 02 02 05 00 BA C7 41 0E 0C 00 00 A3 [18:20:46]Write i2c OK [18:20:46]MH_I2C_Read... [18:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:46]Read from MH i2c: E2 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 03 00 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 03 00 06 3D 00 90 00 B7 [18:20:46]RAPDU: 90 00 [18:20:46]wFMCommunicate OK [18:20:46]wFMCommunicate request_size=4 [18:20:46]MH_SAM_APDU [18:20:46]CAPDU: 80 0D 03 02 [18:20:46]Write to MH i2c: E2 08 00 07 3D 80 0D 03 02 00 00 00 00 BF [18:20:46]Write i2c OK [18:20:46]MH_I2C_Read... [18:20:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:46]Read from MH i2c: E2 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 0B 00 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 0B 00 07 3D 00 96 E2 06 9F C2 77 D5 93 90 00 7E [18:20:46]RAPDU: 96 E2 06 9F C2 77 D5 93 90 00 [18:20:46]wFMCommunicate OK [18:20:46]SAM_PROTO_SignData done [18:20:46]FM_MakeSignedData done [18:20:46]CreateOFDProtocolMessage [18:20:46]wFMCommunicate request_size=4 [18:20:46]MH_SAM_APDU [18:20:46]CAPDU: 80 11 00 00 [18:20:46]Write to MH i2c: E2 08 00 08 3D 80 11 00 00 00 00 00 00 BF [18:20:46]Write i2c OK [18:20:46]MH_I2C_Read... [18:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:46]Read from MH i2c: E2 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 17 00 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 17 00 08 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 16 [18:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:20:46]wFMCommunicate OK [18:20:46]CreateOFDProtocolMessage done [18:20:46]OFDSenderStorePacket 123114 [18:20:46]StoreOFDPacket docnum=123114 [18:20:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 04 EF 07 01 1F 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 02 C0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EA E0 01 00 35 04 06 00 0B BA C7 41 0E 0C 96 E2 06 9F C2 77 D5 93 [18:20:46]CheckFolder [18:20:46]dirname=/storage/ofd_packets [18:20:46]CheckFolder done [18:20:46]ProducePacketName [18:20:46]name=ofd_packets/00123114 [18:20:46]NVStorageSaveData ofd_packets/00123114 [18:20:46]File name is /storage/ofd_packets/00123114 [18:20:46]Write 301 bytes [18:20:46]NVStorageSaveData done [18:20:46]OFDSenderStorePacket done [18:20:46]KKMCreateOFDPacket done [18:20:46]NVStorageSaveData kkm_last_timestamp [18:20:46]File name is /storage/kkm_last_timestamp [18:20:46]Write 4 bytes [18:20:46]NVStorageSaveData done [18:20:46]ExternCall_PrintAddStr [18:20:46]wPrintStart [18:20:46]Write to MH i2c: 01 00 00 09 3D 46 [18:20:46]Write i2c OK [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: 01 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: 01 07 00 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: 01 07 00 09 3D 00 00 00 00 00 FF 0F 5B [18:20:46]RasterBufferAndPrint [18:20:46]line Счет N : (1)717910 [18:20:46]line ИНН: 02508201610067 [18:20:46]line Контрольно-Кассовый Чек [18:20:46]line ПРОДАЖА [18:20:46]line ТРК (МРК, ГНК) : 22 [18:20:46]line Товар: 2710124130 [18:20:46]line Аи-92-К-4 [18:20:46]line 11.870 * 67.40 [18:20:46]line = 800.04 [18:20:46]line НДС 12% НСП 1% [18:20:46]line > о реализуемом товаре [18:20:46]line ОКРУГЛЕНИЕ: -0.04 [18:20:46]line ИТОГО: 800.00 [18:20:46]line Внесено: 800.00 [18:20:46]line СДАЧА: 0.00 [18:20:46]line НСП 1% : 7.08 [18:20:46]line НДС 12% : 84.96 [18:20:46]line Наличными: 800.00 [18:20:46]line Безнал.: 0.00 [18:20:46]line Место: АЗС № 64 "Партнер Нефть" [18:20:46]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:20:46]line СНО: Общий режим [18:20:46]line Чек 155 25.11.2024 18:20 [18:20:46]line Смена: 556 ФФД: 1.0 [18:20:46]line ЗНМ: 0300000033 [18:20:46]line РНМ: 0000000000092681 [18:20:46]line Версия ККМ: 001 [18:20:46]line ФМ: 0000000000874881 [18:20:46]line ФД: 123114 [18:20:46]line ФПД: 12896834752012 [18:20:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T182050&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123114&fm=12896834752012&tin=02508201610067®Number=0000000000092681&sum=80000 [18:20:46]OFD Sender: Processing packet 123114 [packets to send 7, broken 6] [18:20:46]ProducePacketName [18:20:46]name=ofd_packets/00123114 [18:20:46]OFD Sender: To server: pG, [18:20:46]CommunicateWithHost lk.salyk.kg:30040 [18:20:46]ConnectInit lk.salyk.kg [18:20:46]written 0, free lines is 4095 [18:20:46]Connected sock=10 [18:20:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 04 EF 07 01 1F 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 02 C0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EA E0 01 00 35 04 06 00 0B BA C7 41 0E 0C 96 E2 06 9F C2 77 D5 93 [18:20:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 00 60 47 00 68 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EA E0 01 00 F4 03 04 00 C7 6B 44 67 B6 04 01 00 00 CB 66 DA 47 B7 40 23 E8 [18:20:46]CommunicateWithHost err = 0 [18:20:46]CheckOFDResponse [18:20:46]1017 (14) - 77093643461234 [18:20:46]1041 (16) - 0000000000874881 [18:20:46]1040 (4) - 123114 [18:20:46]1012 (4) - 25.11.2024 12:21 [18:20:46]1206 (1) - 0 [18:20:46]OFD Sender: Remove packet 123114 [18:20:46]ProducePacketName [18:20:46]name=ofd_packets/00123114 [18:20:46]NVStorageDeleteData [18:20:46]Write to MH i2c: 01 00 00 34 3D 71 [18:20:46]Write i2c OK [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: 01 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: 01 07 00 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: 01 07 00 34 3D 00 00 00 00 00 44 0C C8 [18:20:46]RasterBufferAndPrint [18:20:46]line [18:20:46]line [18:20:46]line [18:20:46]line [18:20:46]line [18:20:46]written 0, free lines is 3144 [18:20:47]MH_Cut [18:20:47]Write to MH i2c: D1 01 00 3B 3D 01 4A [18:20:47]Write i2c OK [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: D1 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: D1 01 00 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: D1 01 00 3B 3D 00 49 [18:20:47]Write to MH i2c: 01 00 00 3C 3D 79 [18:20:47]Write i2c OK [18:20:47]MH_I2C_Read... [18:20:47]OFD Sender: No OFD packet to send [18:20:48]*** Cut start [18:20:48]*** Partial cut [18:20:48]*** CUTSNS_PIN = 1 [18:20:48]*** CUTSNS_PIN = 0 [18:20:48]*** Brake cut motor [18:20:49]Read from MH i2c: 01 [18:20:49]MH_I2C_Read... [18:20:49]*** Stop cut motor [18:20:49]*** Cut end [18:20:49]Read from MH i2c: 01 07 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: 01 07 00 3C 3D 00 00 00 00 00 FF 0F 8E [18:20:49]process_action close_receipt done [18:20:49]requested_data is exist [18:20:49]produce_requested_data [18:20:49]requested_item fm.sn is exist - process it [18:20:49]wFMCommunicate request_size=4 [18:20:49]MH_SAM_APDU [18:20:49]CAPDU: 80 11 00 00 [18:20:49]Write to MH i2c: E2 08 00 3D 3D 80 11 00 00 00 00 00 00 F4 [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:49]Read from MH i2c: E2 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 17 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 17 00 3D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4B [18:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:20:49]wFMCommunicate OK [18:20:49]requested_item fd.num is exist - process it [18:20:49]SAM_PROTO_GetFieldsCounters [18:20:49]wFMCommunicate request_size=4 [18:20:49]MH_SAM_APDU [18:20:49]CAPDU: 80 13 00 00 [18:20:49]Write to MH i2c: E2 08 00 3E 3D 80 13 00 00 00 00 00 00 F7 [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:49]Read from MH i2c: E2 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 62 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 62 00 3E 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EA E0 01 00 0E 04 04 00 2C 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 E7 [18:20:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EA E0 01 00 0E 04 04 00 2C 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 [18:20:49]wFMCommunicate OK [18:20:49]SAM_PROTO_GetFieldsCounters done [18:20:49]requested_item shift.num is exist - process it [18:20:49]requested_item shift.opened is exist - process it [18:20:49]req_shift_opened [18:20:49]FM_GetShiftState [18:20:49]SAM_PROTO_GetShiftState [18:20:49]wFMCommunicate request_size=4 [18:20:49]MH_SAM_APDU [18:20:49]CAPDU: 80 13 01 00 [18:20:49]Write to MH i2c: E2 08 00 3F 3D 80 13 01 00 00 00 00 00 F9 [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:49]Read from MH i2c: E2 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 0E 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 0E 00 3F 3D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 78 [18:20:49]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:20:49]wFMCommunicate OK [18:20:49]SAM_PROTO_GetShiftState done [18:20:49]FM_GetShiftState done [18:20:49]req_shift_opened done [18:20:49]requested_item shift.open_date is exist - process it [18:20:49]req_shift_open_date [18:20:49]req_shift_open_date done [18:20:49]produce_requested_data done [18:20:49]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123114,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:20:49]process_action_free close_receipt [18:20:49]json_value_free [18:20:49]json_value_free done [18:20:49]process_json_proto returns [18:20:49]Send response to host [18:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123114,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:20:49]free response buf [18:20:49]execute_script done [18:20:49]execute_script returns [18:20:49]free content buf [18:20:49]Sock 7.Close socket [18:20:49]Sock 7.Thread stoped [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]accept exits with 9 [18:26:07]New connection [18:26:07]New thread 3066580324 created [18:26:07]Thread 3066723684 joined [18:26:07]Waiting for new connection... [18:26:07] Sock 9.Parse request [18:26:07]Sock 9.Check first char [18:26:07]Sock 9.First char is OK [18:26:07]request: POST /json_proto HTTP/1.0 [18:26:07]Method: POST [18:26:07]URL: /json_proto [18:26:07]Method is POST - this is cgi request [18:26:07]url: /json_proto [18:26:07]query_string will be loaded in cgi processing [18:26:07]execute_cgi json_proto POST (null) [18:26:07]execute_cgi path=json_proto method=POST [18:26:07]POST find Content-Length [18:26:07]Host: 172.17.37.4:8080 [18:26:07]Content-Length: 816 [18:26:07]Content-Type: application/json [18:26:07] [18:26:07]POST finish read [18:26:07]Found Content-Length = 816 [18:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:07]execute_script... [18:26: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)717911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:07]POST & json_proto [18:26:07]process_json_proto [18:26:07]json parsed OK: [18:26:07]protocol is kg_v1.0 [18:26:07]action value=close_receipt [18:26:07]process_action close_receipt [18:26:07]cmd_close_receipt [18:26:07]MH_GetDate [18:26:07]Write to MH i2c: F0 00 00 40 3D 6C [18:26:07]Write i2c OK [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: F0 [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: F0 09 00 [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: F0 09 00 40 3D 00 45 C1 44 67 B8 5A 43 67 E2 [18:26:07]GetLastDocTimeStamp 1732558850 [18:26:07]current date 1732559173 [18:26:07]FM_GetShiftState [18:26:07]SAM_PROTO_GetShiftState [18:26:07]wFMCommunicate request_size=4 [18:26:07]MH_SAM_APDU [18:26:07]CAPDU: 80 13 01 00 [18:26:07]Write to MH i2c: E2 08 00 41 3D 80 13 01 00 00 00 00 00 FB [18:26:07]Write i2c OK [18:26:07]MH_I2C_Read... [18:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:07]Read from MH i2c: E2 [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: E2 0E 00 [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: E2 0E 00 41 3D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 7A [18:26:07]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:26:07]wFMCommunicate OK [18:26:07]SAM_PROTO_GetShiftState done [18:26:07]FM_GetShiftState done [18:26:07]opened in 1732493066 [18:26:07]opened+sec_in_day 1732579466 [18:26:07]quantity*price = 50010 [18:26:07]sum+1 = 50012 [18:26:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 156 25.11.2024 18:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123115 ФПД: 253325864927936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T182613&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123115&fm=253325864927936&tin=02508201610067®Number=0000000000092681&sum=50011 [18:26:08]StoreToDocumentArchive [18:26:08]shift 556 fd 123115 [18:26:08]save to /storage/0556/doc_00123115 [18:26:08]save last doc name /storage/0556/doc_00123115 to /storage/kkm_last_doc_name [18:26:08]save OK [18:26:08]Clear old archive folders... [18:26:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:08]tlvbuf is B6F1D010 [18:26:08]SAM_PROTO_ClearQueue [18:26:08]wFMCommunicate request_size=4 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 09 00 00 [18:26:08]Write to MH i2c: E2 08 00 4E 3D 80 09 00 00 00 00 00 00 FD [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 4E 3D 00 90 00 FF [18:26:08]RAPDU: 90 00 [18:26:08]wFMCommunicate OK [18:26:08]SAM_PROTO_ClearQueue done [18:26:08]KKMCreateOFDPacket [18:26:08]OFDProtocolAddRootSTLVToBuf [18:26:08]FM_MakeSignedData [18:26:08]FM_MakeSignedData [18:26:08]SAM_PROTO_SignData [18:26:08]wFMCommunicate request_size=4 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 0D 01 02 [18:26:08]Write to MH i2c: E2 08 00 4F 3D 80 0D 01 02 00 00 00 00 05 [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 4F 3D 00 90 00 00 [18:26:08]RAPDU: 90 00 [18:26:08]wFMCommunicate OK [18:26:08]wFMCommunicate request_size=255 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 45 C1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EB E0 01 00 35 04 06 00 E6 [18:26:08]Write to MH i2c: E2 02 01 50 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 45 C1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EB E0 01 00 35 04 06 00 E6 00 00 AF [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 50 3D 00 90 00 01 [18:26:08]RAPDU: 90 00 [18:26:08]wFMCommunicate OK [18:26:08]wFMCommunicate request_size=10 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 0D 02 02 05 66 06 31 02 C0 [18:26:08]Write to MH i2c: E2 0D 00 51 3D 80 0D 02 02 05 00 66 06 31 02 C0 00 00 71 [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 51 3D 00 90 00 02 [18:26:08]RAPDU: 90 00 [18:26:08]wFMCommunicate OK [18:26:08]wFMCommunicate request_size=4 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 0D 03 02 [18:26:08]Write to MH i2c: E2 08 00 52 3D 80 0D 03 02 00 00 00 00 0A [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 0B 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 0B 00 52 3D 00 E2 51 AD B7 23 9F 12 8A 90 00 00 [18:26:08]RAPDU: E2 51 AD B7 23 9F 12 8A 90 00 [18:26:08]wFMCommunicate OK [18:26:08]SAM_PROTO_SignData done [18:26:08]FM_MakeSignedData done [18:26:08]CreateOFDProtocolMessage [18:26:08]wFMCommunicate request_size=4 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 11 00 00 [18:26:08]Write to MH i2c: E2 08 00 53 3D 80 11 00 00 00 00 00 00 0A [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 17 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 17 00 53 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 61 [18:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:26:08]wFMCommunicate OK [18:26:08]CreateOFDProtocolMessage done [18:26:08]OFDSenderStorePacket 123115 [18:26:08]StoreOFDPacket docnum=123115 [18:26:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D7 99 07 01 A9 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 45 C1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EB E0 01 00 35 04 06 00 E6 66 06 31 02 C0 E2 51 AD B7 23 9F 12 8A [18:26:08]CheckFolder [18:26:08]dirname=/storage/ofd_packets [18:26:08]CheckFolder done [18:26:08]ProducePacketName [18:26:08]name=ofd_packets/00123115 [18:26:08]NVStorageSaveData ofd_packets/00123115 [18:26:08]File name is /storage/ofd_packets/00123115 [18:26:08]Write 301 bytes [18:26:08]NVStorageSaveData done [18:26:08]OFDSenderStorePacket done [18:26:08]KKMCreateOFDPacket done [18:26:08]NVStorageSaveData kkm_last_timestamp [18:26:08]File name is /storage/kkm_last_timestamp [18:26:08]Write 4 bytes [18:26:08]NVStorageSaveData done [18:26:08]ExternCall_PrintAddStr [18:26:08]wPrintStart [18:26:08]Write to MH i2c: 01 00 00 54 3D 91 [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: 01 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: 01 07 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: 01 07 00 54 3D 00 00 00 00 00 FF 0F A6 [18:26:08]RasterBufferAndPrint [18:26:08]line Счет N : (1)717911 [18:26:08]line ИНН: 02508201610067 [18:26:08]line Контрольно-Кассовый Чек [18:26:08]line ПРОДАЖА [18:26:08]line ТРК (МРК, ГНК) : 42 [18:26:08]line Товар: 2710124130 [18:26:08]line Аи-92-К-4 [18:26:08]line 7.420 * 67.40 [18:26:08]line = 500.11 [18:26:08]line НДС 12% НСП 1% [18:26:08]line > о реализуемом товаре [18:26:08]line ИТОГО: 500.11 [18:26:08]line НСП 1% : 4.43 [18:26:08]line НДС 12% : 53.11 [18:26:08]line Наличными: 0.00 [18:26:08]line Безнал.: 500.11 [18:26:08]line Место: АЗС № 64 "Партнер Нефть" [18:26:08]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:26:08]line СНО: Общий режим [18:26:08]line Чек 156 25.11.2024 18:26 [18:26:08]line Смена: 556 ФФД: 1.0 [18:26:08]line ЗНМ: 0300000033 [18:26:08]line РНМ: 0000000000092681 [18:26:08]line Версия ККМ: 001 [18:26:08]line Платежная система: Бакай Банк [18:26:08]line ФМ: 0000000000874881 [18:26:08]line ФД: 123115 [18:26:08]line ФПД: 253325864927936 [18:26:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T182613&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123115&fm=253325864927936&tin=02508201610067®Number=0000000000092681&sum=50011 [18:26:09]OFD Sender: Processing packet 123115 [packets to send 7, broken 6] [18:26:09]ProducePacketName [18:26:09]name=ofd_packets/00123115 [18:26:09]OFD Sender: To server: pG, [18:26:09]CommunicateWithHost lk.salyk.kg:30040 [18:26:09]ConnectInit lk.salyk.kg [18:26:09]written 0, free lines is 4095 [18:26:09]Connected sock=7 [18:26:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D7 99 07 01 A9 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 45 C1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EB E0 01 00 35 04 06 00 E6 66 06 31 02 C0 E2 51 AD B7 23 9F 12 8A [18:26:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 0B 5D 47 00 B0 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 34 38 38 31 10 04 04 00 EB E0 01 00 F4 03 04 00 0A 6D 44 67 B6 04 01 00 00 C5 EE 2B 24 9E B0 4E 6B [18:26:09]CommunicateWithHost err = 0 [18:26:09]CheckOFDResponse [18:26:09]1017 (14) - 77093643461234 [18:26:09]1041 (16) - 0000000000874881 [18:26:09]1040 (4) - 123115 [18:26:09]1012 (4) - 25.11.2024 12:26 [18:26:09]1206 (1) - 0 [18:26:09]OFD Sender: Remove packet 123115 [18:26:09]ProducePacketName [18:26:09]name=ofd_packets/00123115 [18:26:09]NVStorageDeleteData [18:26:09]Write to MH i2c: 01 00 00 7E 3D BB [18:26:09]Write i2c OK [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: 01 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: 01 07 00 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: 01 07 00 7E 3D 00 00 00 00 00 57 0C 25 [18:26:09]RasterBufferAndPrint [18:26:09]line [18:26:09]line [18:26:09]line [18:26:09]line [18:26:09]line [18:26:09]written 0, free lines is 3164 [18:26:09]MH_Cut [18:26:09]Write to MH i2c: D1 01 00 85 3D 01 94 [18:26:09]Write i2c OK [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: D1 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: D1 01 00 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: D1 01 00 85 3D 00 93 [18:26:09]Write to MH i2c: 01 00 00 86 3D C3 [18:26:09]Write i2c OK [18:26:09]MH_I2C_Read... [18:26:10]OFD Sender: No OFD packet to send [18:26:11]*** Cut start [18:26:11]*** Partial cut [18:26:11]*** CUTSNS_PIN = 1 [18:26:11]*** CUTSNS_PIN = 0 [18:26:11]*** Brake cut motor [18:26:11]Read from MH i2c: 01 [18:26:11]MH_I2C_Read... [18:26:11]*** Stop cut motor [18:26:11]*** Cut end [18:26:11]Read from MH i2c: 01 07 00 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: 01 07 00 86 3D 00 00 00 00 00 FF 0F D8 [18:26:11]process_action close_receipt done [18:26:11]requested_data is exist [18:26:11]produce_requested_data [18:26:11]requested_item fm.sn is exist - process it [18:26:11]wFMCommunicate request_size=4 [18:26:11]MH_SAM_APDU [18:26:11]CAPDU: 80 11 00 00 [18:26:11]Write to MH i2c: E2 08 00 87 3D 80 11 00 00 00 00 00 00 3E [18:26:11]Write i2c OK [18:26:11]MH_I2C_Read... [18:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:11]Read from MH i2c: E2 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 17 00 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 17 00 87 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 95 [18:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:26:11]wFMCommunicate OK [18:26:11]requested_item fd.num is exist - process it [18:26:11]SAM_PROTO_GetFieldsCounters [18:26:11]wFMCommunicate request_size=4 [18:26:11]MH_SAM_APDU [18:26:11]CAPDU: 80 13 00 00 [18:26:11]Write to MH i2c: E2 08 00 88 3D 80 13 00 00 00 00 00 00 41 [18:26:11]Write i2c OK [18:26:11]MH_I2C_Read... [18:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:11]Read from MH i2c: E2 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 62 00 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 62 00 88 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EB E0 01 00 0E 04 04 00 2C 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 35 [18:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EB E0 01 00 0E 04 04 00 2C 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 [18:26:11]wFMCommunicate OK [18:26:11]SAM_PROTO_GetFieldsCounters done [18:26:11]requested_item shift.num is exist - process it [18:26:11]requested_item shift.opened is exist - process it [18:26:11]req_shift_opened [18:26:11]FM_GetShiftState [18:26:11]SAM_PROTO_GetShiftState [18:26:11]wFMCommunicate request_size=4 [18:26:11]MH_SAM_APDU [18:26:11]CAPDU: 80 13 01 00 [18:26:11]Write to MH i2c: E2 08 00 89 3D 80 13 01 00 00 00 00 00 43 [18:26:11]Write i2c OK [18:26:11]MH_I2C_Read... [18:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:12]Read from MH i2c: E2 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 0E 00 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 0E 00 89 3D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C2 [18:26:12]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:26:12]wFMCommunicate OK [18:26:12]SAM_PROTO_GetShiftState done [18:26:12]FM_GetShiftState done [18:26:12]req_shift_opened done [18:26:12]requested_item shift.open_date is exist - process it [18:26:12]req_shift_open_date [18:26:12]req_shift_open_date done [18:26:12]produce_requested_data done [18:26:12]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123115,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:26:12]process_action_free close_receipt [18:26:12]json_value_free [18:26:12]json_value_free done [18:26:12]process_json_proto returns [18:26:12]Send response to host [18:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123115,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:26:12]free response buf [18:26:12]execute_script done [18:26:12]execute_script returns [18:26:12]free content buf [18:26:12]Sock 9.Close socket [18:26:12]Sock 9.Thread stoped [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [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:21]accept exits with 10 [18:30:21]New connection [18:30:21]New thread 3066723684 created [18:30:21]Thread 3066580324 joined [18:30:21]Waiting for new connection... [18:30:21] Sock 10.Parse request [18:30:21]Sock 10.Check first char [18:30:21]Sock 10.First char is OK [18:30:21]request: POST /json_proto HTTP/1.0 [18:30:21]Method: POST [18:30:21]URL: /json_proto [18:30:21]Method is POST - this is cgi request [18:30:21]url: /json_proto [18:30:21]query_string will be loaded in cgi processing [18:30:21]execute_cgi json_proto POST (null) [18:30:21]execute_cgi path=json_proto method=POST [18:30:21]POST find Content-Length [18:30:21]Host: 172.17.37.4:8080 [18:30:21]Content-Length: 677 [18:30:21]Content-Type: application/json [18:30:21] [18:30:21]POST finish read [18:30:21]Found Content-Length = 677 [18:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:21]execute_script... [18:30: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)717912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:21]POST & json_proto [18:30:21]process_json_proto [18:30:21]json parsed OK: [18:30:21]protocol is kg_v1.0 [18:30:21]action value=close_receipt [18:30:21]process_action close_receipt [18:30:21]cmd_close_receipt [18:30:21]MH_GetDate [18:30:21]Write to MH i2c: F0 00 00 8A 3D B6 [18:30:21]Write i2c OK [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: F0 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: F0 09 00 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: F0 09 00 8A 3D 00 44 C2 44 67 B8 5A 43 67 2C [18:30:21]GetLastDocTimeStamp 1732559173 [18:30:21]current date 1732559428 [18:30:21]FM_GetShiftState [18:30:21]SAM_PROTO_GetShiftState [18:30:21]wFMCommunicate request_size=4 [18:30:21]MH_SAM_APDU [18:30:21]CAPDU: 80 13 01 00 [18:30:21]Write to MH i2c: E2 08 00 8B 3D 80 13 01 00 00 00 00 00 45 [18:30:21]Write i2c OK [18:30:21]MH_I2C_Read... [18:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:21]Read from MH i2c: E2 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 0E 00 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 0E 00 8B 3D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C4 [18:30:21]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:30:21]wFMCommunicate OK [18:30:21]SAM_PROTO_GetShiftState done [18:30:21]FM_GetShiftState done [18:30:21]opened in 1732493066 [18:30:21]opened+sec_in_day 1732579466 [18:30:21]quantity*price = 20017 [18:30:21]sum+1 = 20019 [18:30:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 157 25.11.2024 18:30 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123116 ФПД: 144970118980456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T183028&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123116&fm=144970118980456&tin=02508201610067®Number=0000000000092681&sum=20000 [18:30:22]StoreToDocumentArchive [18:30:22]shift 556 fd 123116 [18:30:22]save to /storage/0556/doc_00123116 [18:30:22]save last doc name /storage/0556/doc_00123116 to /storage/kkm_last_doc_name [18:30:22]save OK [18:30:22]Clear old archive folders... [18:30:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:22]tlvbuf is 0213D030 [18:30:22]SAM_PROTO_ClearQueue [18:30:22]wFMCommunicate request_size=4 [18:30:22]MH_SAM_APDU [18:30:22]CAPDU: 80 09 00 00 [18:30:22]Write to MH i2c: E2 08 00 98 3D 80 09 00 00 00 00 00 00 47 [18:30:22]Write i2c OK [18:30:22]MH_I2C_Read... [18:30:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:22]Read from MH i2c: E2 [18:30:22]MH_I2C_Read... [18:30:22]Read from MH i2c: E2 03 00 [18:30:22]MH_I2C_Read... [18:30:22]Read from MH i2c: E2 03 00 98 3D 00 90 00 49 [18:30:22]RAPDU: 90 00 [18:30:22]wFMCommunicate OK [18:30:22]SAM_PROTO_ClearQueue done [18:30:22]KKMCreateOFDPacket [18:30:22]OFDProtocolAddRootSTLVToBuf [18:30:22]FM_MakeSignedData [18:30:22]FM_MakeSignedData [18:30:22]SAM_PROTO_SignData [18:30:22]wFMCommunicate request_size=4 [18:30:22]MH_SAM_APDU [18:30:22]CAPDU: 80 0D 01 02 [18:30:22]Write to MH i2c: E2 08 00 99 3D 80 0D 01 02 00 00 00 00 4F [18:30:22]Write i2c OK [18:30:22]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 99 3D 00 90 00 4A [18:30:23]RAPDU: 90 00 [18:30:23]wFMCommunicate OK [18:30:23]wFMCommunicate request_size=255 [18:30:23]MH_SAM_APDU [18:30:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 9D 00 00 00 F4 03 04 00 44 C2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EC E0 01 00 35 04 06 00 83 [18:30:23]Write to MH i2c: E2 02 01 9A 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 9D 00 00 00 F4 03 04 00 44 C2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EC E0 01 00 35 04 06 00 83 00 00 9F [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 9A 3D 00 90 00 4B [18:30:23]RAPDU: 90 00 [18:30:23]wFMCommunicate OK [18:30:23]wFMCommunicate request_size=10 [18:30:23]MH_SAM_APDU [18:30:23]CAPDU: 80 0D 02 02 05 D9 7C 71 E3 68 [18:30:23]Write to MH i2c: E2 0D 00 9B 3D 80 0D 02 02 05 00 D9 7C 71 E3 68 00 00 6D [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 9B 3D 00 90 00 4C [18:30:23]RAPDU: 90 00 [18:30:23]wFMCommunicate OK [18:30:23]wFMCommunicate request_size=4 [18:30:23]MH_SAM_APDU [18:30:23]CAPDU: 80 0D 03 02 [18:30:23]Write to MH i2c: E2 08 00 9C 3D 80 0D 03 02 00 00 00 00 54 [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 0B 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 0B 00 9C 3D 00 4F C6 DA 5E 71 82 44 E5 90 00 BE [18:30:23]RAPDU: 4F C6 DA 5E 71 82 44 E5 90 00 [18:30:23]wFMCommunicate OK [18:30:23]SAM_PROTO_SignData done [18:30:23]FM_MakeSignedData done [18:30:23]CreateOFDProtocolMessage [18:30:23]wFMCommunicate request_size=4 [18:30:23]MH_SAM_APDU [18:30:23]CAPDU: 80 11 00 00 [18:30:23]Write to MH i2c: E2 08 00 9D 3D 80 11 00 00 00 00 00 00 54 [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 17 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 17 00 9D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AB [18:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:30:23]wFMCommunicate OK [18:30:23]CreateOFDProtocolMessage done [18:30:23]OFDSenderStorePacket 123116 [18:30:23]StoreOFDPacket docnum=123116 [18:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 13 AE 07 01 8C DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 9D 00 00 00 F4 03 04 00 44 C2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EC E0 01 00 35 04 06 00 83 D9 7C 71 E3 68 4F C6 DA 5E 71 82 44 E5 [18:30:23]CheckFolder [18:30:23]dirname=/storage/ofd_packets [18:30:23]CheckFolder done [18:30:23]ProducePacketName [18:30:23]name=ofd_packets/00123116 [18:30:23]NVStorageSaveData ofd_packets/00123116 [18:30:23]File name is /storage/ofd_packets/00123116 [18:30:23]Write 301 bytes [18:30:23]NVStorageSaveData done [18:30:23]OFDSenderStorePacket done [18:30:23]KKMCreateOFDPacket done [18:30:23]NVStorageSaveData kkm_last_timestamp [18:30:23]File name is /storage/kkm_last_timestamp [18:30:23]Write 4 bytes [18:30:23]NVStorageSaveData done [18:30:23]ExternCall_PrintAddStr [18:30:23]wPrintStart [18:30:23]Write to MH i2c: 01 00 00 9E 3D DB [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: 01 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: 01 07 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: 01 07 00 9E 3D 00 00 00 00 00 FF 0F F0 [18:30:23]RasterBufferAndPrint [18:30:23]line Счет N : (1)717912 [18:30:23]line ИНН: 02508201610067 [18:30:23]line Контрольно-Кассовый Чек [18:30:23]line ПРОДАЖА [18:30:23]line ТРК (МРК, ГНК) : 22 [18:30:23]line Товар: 2710124130 [18:30:23]line Аи-92-К-4 [18:30:23]line 2.970 * 67.40 [18:30:23]line = 200.18 [18:30:23]line НДС 12% НСП 1% [18:30:23]line > о реализуемом товаре [18:30:23]line ОКРУГЛЕНИЕ: -0.18 [18:30:23]line ИТОГО: 200.00 [18:30:23]line Внесено: 200.00 [18:30:23]line СДАЧА: 0.00 [18:30:23]line НСП 1% : 1.77 [18:30:23]line НДС 12% : 21.26 [18:30:23]line Наличными: 200.00 [18:30:23]line Безнал.: 0.00 [18:30:23]line Место: АЗС № 64 "Партнер Нефть" [18:30:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:30:23]line СНО: Общий режим [18:30:23]line Чек 157 25.11.2024 18:30 [18:30:23]line Смена: 556 ФФД: 1.0 [18:30:23]line ЗНМ: 0300000033 [18:30:23]line РНМ: 0000000000092681 [18:30:23]line Версия ККМ: 001 [18:30:23]line ФМ: 0000000000874881 [18:30:23]line ФД: 123116 [18:30:23]line ФПД: 144970118980456 [18:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T183028&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123116&fm=144970118980456&tin=02508201610067®Number=0000000000092681&sum=20000 [18:30:23]OFD Sender: Processing packet 123116 [packets to send 7, broken 6] [18:30:23]ProducePacketName [18:30:23]name=ofd_packets/00123116 [18:30:23]OFD Sender: To server: pG, [18:30:23]CommunicateWithHost lk.salyk.kg:30040 [18:30:23]ConnectInit lk.salyk.kg [18:30:23]written 0, free lines is 4095 [18:30:23]Connected sock=9 [18:30:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 13 AE 07 01 8C DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 9D 00 00 00 F4 03 04 00 44 C2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EC E0 01 00 35 04 06 00 83 D9 7C 71 E3 68 4F C6 DA 5E 71 82 44 E5 [18:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4C 3B 47 00 9C 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EC E0 01 00 F4 03 04 00 09 6E 44 67 B6 04 01 00 00 3B C4 85 91 15 28 4B 4F [18:30:24]CommunicateWithHost err = 0 [18:30:24]CheckOFDResponse [18:30:24]1017 (14) - 77093643461234 [18:30:24]1041 (16) - 0000000000874881 [18:30:24]1040 (4) - 123116 [18:30:24]1012 (4) - 25.11.2024 12:31 [18:30:24]1206 (1) - 0 [18:30:24]OFD Sender: Remove packet 123116 [18:30:24]ProducePacketName [18:30:24]name=ofd_packets/00123116 [18:30:24]NVStorageDeleteData [18:30:24]Write to MH i2c: 01 00 00 C9 3D 06 [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 07 00 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 07 00 C9 3D 00 00 00 00 00 41 0C 5A [18:30:24]RasterBufferAndPrint [18:30:24]line [18:30:24]line [18:30:24]line [18:30:24]line [18:30:24]line [18:30:24]written 0, free lines is 3143 [18:30:24]MH_Cut [18:30:24]Write to MH i2c: D1 01 00 D0 3D 01 DF [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: D1 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: D1 01 00 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: D1 01 00 D0 3D 00 DE [18:30:24]Write to MH i2c: 01 00 00 D1 3D 0E [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]OFD Sender: No OFD packet to send [18:30:25]*** Cut start [18:30:25]*** Partial cut [18:30:25]*** CUTSNS_PIN = 1 [18:30:25]*** CUTSNS_PIN = 0 [18:30:25]*** Brake cut motor [18:30:26]Read from MH i2c: 01 [18:30:26]MH_I2C_Read... [18:30:26]*** Stop cut motor [18:30:26]*** Cut end [18:30:26]Read from MH i2c: 01 07 00 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: 01 07 00 D1 3D 00 00 00 00 00 FF 0F 23 [18:30:26]process_action close_receipt done [18:30:26]requested_data is exist [18:30:26]produce_requested_data [18:30:26]requested_item fm.sn is exist - process it [18:30:26]wFMCommunicate request_size=4 [18:30:26]MH_SAM_APDU [18:30:26]CAPDU: 80 11 00 00 [18:30:26]Write to MH i2c: E2 08 00 D2 3D 80 11 00 00 00 00 00 00 89 [18:30:26]Write i2c OK [18:30:26]MH_I2C_Read... [18:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:26]Read from MH i2c: E2 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 17 00 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 17 00 D2 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E0 [18:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:30:26]wFMCommunicate OK [18:30:26]requested_item fd.num is exist - process it [18:30:26]SAM_PROTO_GetFieldsCounters [18:30:26]wFMCommunicate request_size=4 [18:30:26]MH_SAM_APDU [18:30:26]CAPDU: 80 13 00 00 [18:30:26]Write to MH i2c: E2 08 00 D3 3D 80 13 00 00 00 00 00 00 8C [18:30:26]Write i2c OK [18:30:26]MH_I2C_Read... [18:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:26]Read from MH i2c: E2 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 62 00 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 62 00 D3 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EC E0 01 00 0E 04 04 00 2C 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 84 [18:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EC E0 01 00 0E 04 04 00 2C 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 [18:30:26]wFMCommunicate OK [18:30:26]SAM_PROTO_GetFieldsCounters done [18:30:26]requested_item shift.num is exist - process it [18:30:26]requested_item shift.opened is exist - process it [18:30:26]req_shift_opened [18:30:26]FM_GetShiftState [18:30:26]SAM_PROTO_GetShiftState [18:30:26]wFMCommunicate request_size=4 [18:30:26]MH_SAM_APDU [18:30:26]CAPDU: 80 13 01 00 [18:30:26]Write to MH i2c: E2 08 00 D4 3D 80 13 01 00 00 00 00 00 8E [18:30:26]Write i2c OK [18:30:26]MH_I2C_Read... [18:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:26]Read from MH i2c: E2 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 0E 00 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 0E 00 D4 3D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0D [18:30:26]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:30:26]wFMCommunicate OK [18:30:26]SAM_PROTO_GetShiftState done [18:30:26]FM_GetShiftState done [18:30:26]req_shift_opened done [18:30:26]requested_item shift.open_date is exist - process it [18:30:26]req_shift_open_date [18:30:26]req_shift_open_date done [18:30:26]produce_requested_data done [18:30:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123116,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:30:26]process_action_free close_receipt [18:30:26]json_value_free [18:30:26]json_value_free done [18:30:26]process_json_proto returns [18:30:26]Send response to host [18:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123116,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:30:26]free response buf [18:30:26]execute_script done [18:30:26]execute_script returns [18:30:26]free content buf [18:30:26]Sock 10.Close socket [18:30:26]Sock 10.Thread stoped [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:21]accept exits with 7 [18:34:21]New connection [18:34:21]New thread 3066580324 created [18:34:21]Thread 3066723684 joined [18:34:21]Waiting for new connection... [18:34:21] Sock 7.Parse request [18:34:21]Sock 7.Check first char [18:34:21]Sock 7.First char is OK [18:34:21]request: POST /json_proto HTTP/1.0 [18:34:21]Method: POST [18:34:21]URL: /json_proto [18:34:21]Method is POST - this is cgi request [18:34:21]url: /json_proto [18:34:21]query_string will be loaded in cgi processing [18:34:21]execute_cgi json_proto POST (null) [18:34:21]execute_cgi path=json_proto method=POST [18:34:21]POST find Content-Length [18:34:21]Host: 172.17.37.4:8080 [18:34:21]Content-Length: 677 [18:34:21]Content-Type: application/json [18:34:21] [18:34:21]POST finish read [18:34:21]Found Content-Length = 677 [18:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:34:21]execute_script... [18:34:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "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:34:21]POST & json_proto [18:34:21]process_json_proto [18:34:21]json parsed OK: [18:34:21]protocol is kg_v1.0 [18:34:21]action value=close_receipt [18:34:21]process_action close_receipt [18:34:21]cmd_close_receipt [18:34:21]MH_GetDate [18:34:21]Write to MH i2c: F0 00 00 D5 3D 01 [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: F0 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: F0 09 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: F0 09 00 D5 3D 00 33 C3 44 67 B8 5A 43 67 67 [18:34:21]GetLastDocTimeStamp 1732559428 [18:34:21]current date 1732559667 [18:34:21]FM_GetShiftState [18:34:21]SAM_PROTO_GetShiftState [18:34:21]wFMCommunicate request_size=4 [18:34:21]MH_SAM_APDU [18:34:21]CAPDU: 80 13 01 00 [18:34:21]Write to MH i2c: E2 08 00 D6 3D 80 13 01 00 00 00 00 00 90 [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:21]Read from MH i2c: E2 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 0E 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 0E 00 D6 3D 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0F [18:34:21]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:34:21]wFMCommunicate OK [18:34:21]SAM_PROTO_GetShiftState done [18:34:21]FM_GetShiftState done [18:34:21]opened in 1732493066 [18:34:21]opened+sec_in_day 1732579466 [18:34:21]quantity*price = 30060 [18:34:21]sum+1 = 30061 [18:34:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 158 25.11.2024 18:34 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123117 ФПД: 227897589486953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T183427&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123117&fm=227897589486953&tin=02508201610067®Number=0000000000092681&sum=30000 [18:34:22]StoreToDocumentArchive [18:34:22]shift 556 fd 123117 [18:34:22]save to /storage/0556/doc_00123117 [18:34:22]save last doc name /storage/0556/doc_00123117 to /storage/kkm_last_doc_name [18:34:22]save OK [18:34:22]Clear old archive folders... [18:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:22]tlvbuf is B6F1D710 [18:34:22]SAM_PROTO_ClearQueue [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 09 00 00 [18:34:22]Write to MH i2c: E2 08 00 E3 3D 80 09 00 00 00 00 00 00 92 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 E3 3D 00 90 00 94 [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]SAM_PROTO_ClearQueue done [18:34:22]KKMCreateOFDPacket [18:34:22]OFDProtocolAddRootSTLVToBuf [18:34:22]FM_MakeSignedData [18:34:22]FM_MakeSignedData [18:34:22]SAM_PROTO_SignData [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 0D 01 02 [18:34:22]Write to MH i2c: E2 08 00 E4 3D 80 0D 01 02 00 00 00 00 9A [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 E4 3D 00 90 00 95 [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]wFMCommunicate request_size=255 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 33 C3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 ED E0 01 00 35 04 06 00 CF [18:34:22]Write to MH i2c: E2 02 01 E5 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 33 C3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 ED E0 01 00 35 04 06 00 CF 00 00 57 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:23]Read from MH i2c: E2 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 03 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 03 00 E5 3D 00 90 00 96 [18:34:23]RAPDU: 90 00 [18:34:23]wFMCommunicate OK [18:34:23]wFMCommunicate request_size=10 [18:34:23]MH_SAM_APDU [18:34:23]CAPDU: 80 0D 02 02 05 45 8A DD D5 69 [18:34:23]Write to MH i2c: E2 0D 00 E6 3D 80 0D 02 02 05 00 45 8A DD D5 69 00 00 91 [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:23]Read from MH i2c: E2 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 03 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 03 00 E6 3D 00 90 00 97 [18:34:23]RAPDU: 90 00 [18:34:23]wFMCommunicate OK [18:34:23]wFMCommunicate request_size=4 [18:34:23]MH_SAM_APDU [18:34:23]CAPDU: 80 0D 03 02 [18:34:23]Write to MH i2c: E2 08 00 E7 3D 80 0D 03 02 00 00 00 00 9F [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:23]Read from MH i2c: E2 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 0B 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 0B 00 E7 3D 00 55 09 48 B5 DC A3 B1 B8 90 00 E3 [18:34:23]RAPDU: 55 09 48 B5 DC A3 B1 B8 90 00 [18:34:23]wFMCommunicate OK [18:34:23]SAM_PROTO_SignData done [18:34:23]FM_MakeSignedData done [18:34:23]CreateOFDProtocolMessage [18:34:23]wFMCommunicate request_size=4 [18:34:23]MH_SAM_APDU [18:34:23]CAPDU: 80 11 00 00 [18:34:23]Write to MH i2c: E2 08 00 E8 3D 80 11 00 00 00 00 00 00 9F [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:23]Read from MH i2c: E2 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 17 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 17 00 E8 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F6 [18:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:34:23]wFMCommunicate OK [18:34:23]CreateOFDProtocolMessage done [18:34:23]OFDSenderStorePacket 123117 [18:34:23]StoreOFDPacket docnum=123117 [18:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 46 B6 07 01 4F 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 33 C3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 ED E0 01 00 35 04 06 00 CF 45 8A DD D5 69 55 09 48 B5 DC A3 B1 B8 [18:34:23]CheckFolder [18:34:23]dirname=/storage/ofd_packets [18:34:23]CheckFolder done [18:34:23]ProducePacketName [18:34:23]name=ofd_packets/00123117 [18:34:23]NVStorageSaveData ofd_packets/00123117 [18:34:23]File name is /storage/ofd_packets/00123117 [18:34:23]Write 301 bytes [18:34:23]NVStorageSaveData done [18:34:23]OFDSenderStorePacket done [18:34:23]KKMCreateOFDPacket done [18:34:23]NVStorageSaveData kkm_last_timestamp [18:34:23]File name is /storage/kkm_last_timestamp [18:34:23]Write 4 bytes [18:34:23]NVStorageSaveData done [18:34:23]ExternCall_PrintAddStr [18:34:23]wPrintStart [18:34:23]Write to MH i2c: 01 00 00 E9 3D 26 [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: 01 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: 01 07 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: 01 07 00 E9 3D 00 00 00 00 00 FF 0F 3B [18:34:23]RasterBufferAndPrint [18:34:23]line Счет N : (1)717913 [18:34:23]line ИНН: 02508201610067 [18:34:23]line Контрольно-Кассовый Чек [18:34:23]line ПРОДАЖА [18:34:23]line ТРК (МРК, ГНК) : 42 [18:34:23]line Товар: 2710124130 [18:34:23]line Аи-92-К-4 [18:34:23]line 4.460 * 67.40 [18:34:23]line = 300.60 [18:34:23]line НДС 12% НСП 1% [18:34:23]line > о реализуемом товаре [18:34:23]line ОКРУГЛЕНИЕ: -0.60 [18:34:23]line ИТОГО: 300.00 [18:34:23]line Внесено: 300.00 [18:34:23]line СДАЧА: 0.00 [18:34:23]line НСП 1% : 2.66 [18:34:23]line НДС 12% : 31.92 [18:34:23]line Наличными: 300.00 [18:34:23]line Безнал.: 0.00 [18:34:23]line Место: АЗС № 64 "Партнер Нефть" [18:34:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:34:23]line СНО: Общий режим [18:34:23]line Чек 158 25.11.2024 18:34 [18:34:23]line Смена: 556 ФФД: 1.0 [18:34:23]line ЗНМ: 0300000033 [18:34:23]line РНМ: 0000000000092681 [18:34:23]line Версия ККМ: 001 [18:34:23]line ФМ: 0000000000874881 [18:34:23]line ФД: 123117 [18:34:23]line ФПД: 227897589486953 [18:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T183427&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123117&fm=227897589486953&tin=02508201610067®Number=0000000000092681&sum=30000 [18:34:23]OFD Sender: Processing packet 123117 [packets to send 7, broken 6] [18:34:23]ProducePacketName [18:34:23]name=ofd_packets/00123117 [18:34:23]OFD Sender: To server: pG, [18:34:23]CommunicateWithHost lk.salyk.kg:30040 [18:34:23]ConnectInit lk.salyk.kg [18:34:23]written 0, free lines is 4095 [18:34:23]Connected sock=9 [18:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 46 B6 07 01 4F 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 33 C3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 ED E0 01 00 35 04 06 00 CF 45 8A DD D5 69 55 09 48 B5 DC A3 B1 B8 [18:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A6 D1 47 00 F9 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 ED E0 01 00 F4 03 04 00 F8 6E 44 67 B6 04 01 00 00 07 31 10 DB 28 29 8E 1F [18:34:23]CommunicateWithHost err = 0 [18:34:23]CheckOFDResponse [18:34:23]1017 (14) - 77093643461234 [18:34:23]1041 (16) - 0000000000874881 [18:34:23]1040 (4) - 123117 [18:34:23]1012 (4) - 25.11.2024 12:35 [18:34:23]1206 (1) - 0 [18:34:23]OFD Sender: Remove packet 123117 [18:34:23]ProducePacketName [18:34:23]name=ofd_packets/00123117 [18:34:23]NVStorageDeleteData [18:34:24]Write to MH i2c: 01 00 00 14 3E 52 [18:34:24]Write i2c OK [18:34:24]MH_I2C_Read... [18:34:24]Read from MH i2c: 01 [18:34:24]MH_I2C_Read... [18:34:24]Read from MH i2c: 01 07 00 [18:34:24]MH_I2C_Read... [18:34:24]Read from MH i2c: 01 07 00 14 3E 00 00 00 00 00 47 0C AC [18:34:24]RasterBufferAndPrint [18:34:24]line [18:34:24]line [18:34:24]line [18:34:24]line [18:34:24]line [18:34:24]written 0, free lines is 3148 [18:34:24]MH_Cut [18:34:24]Write to MH i2c: D1 01 00 1B 3E 01 2B [18:34:24]Write i2c OK [18:34:24]MH_I2C_Read... [18:34:24]Read from MH i2c: D1 [18:34:24]MH_I2C_Read... [18:34:24]Read from MH i2c: D1 01 00 [18:34:24]MH_I2C_Read... [18:34:24]Read from MH i2c: D1 01 00 1B 3E 00 2A [18:34:24]Write to MH i2c: 01 00 00 1C 3E 5A [18:34:24]Write i2c OK [18:34:24]MH_I2C_Read... [18:34:24]OFD Sender: No OFD packet to send [18:34:25]*** Cut start [18:34:25]*** Partial cut [18:34:25]*** CUTSNS_PIN = 1 [18:34:25]*** CUTSNS_PIN = 0 [18:34:25]*** Brake cut motor [18:34:26]Read from MH i2c: 01 [18:34:26]MH_I2C_Read... [18:34:26]*** Stop cut motor [18:34:26]*** Cut end [18:34:26]Read from MH i2c: 01 07 00 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: 01 07 00 1C 3E 00 00 00 00 00 FF 0F 6F [18:34:26]process_action close_receipt done [18:34:26]requested_data is exist [18:34:26]produce_requested_data [18:34:26]requested_item fm.sn is exist - process it [18:34:26]wFMCommunicate request_size=4 [18:34:26]MH_SAM_APDU [18:34:26]CAPDU: 80 11 00 00 [18:34:26]Write to MH i2c: E2 08 00 1D 3E 80 11 00 00 00 00 00 00 D5 [18:34:26]Write i2c OK [18:34:26]MH_I2C_Read... [18:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:26]Read from MH i2c: E2 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 17 00 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 17 00 1D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2C [18:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:34:26]wFMCommunicate OK [18:34:26]requested_item fd.num is exist - process it [18:34:26]SAM_PROTO_GetFieldsCounters [18:34:26]wFMCommunicate request_size=4 [18:34:26]MH_SAM_APDU [18:34:26]CAPDU: 80 13 00 00 [18:34:26]Write to MH i2c: E2 08 00 1E 3E 80 13 00 00 00 00 00 00 D8 [18:34:26]Write i2c OK [18:34:26]MH_I2C_Read... [18:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:26]Read from MH i2c: E2 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 62 00 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 62 00 1E 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 ED E0 01 00 0E 04 04 00 2C 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 D4 [18:34:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 ED E0 01 00 0E 04 04 00 2C 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 [18:34:26]wFMCommunicate OK [18:34:26]SAM_PROTO_GetFieldsCounters done [18:34:26]requested_item shift.num is exist - process it [18:34:26]requested_item shift.opened is exist - process it [18:34:26]req_shift_opened [18:34:26]FM_GetShiftState [18:34:26]SAM_PROTO_GetShiftState [18:34:26]wFMCommunicate request_size=4 [18:34:26]MH_SAM_APDU [18:34:26]CAPDU: 80 13 01 00 [18:34:26]Write to MH i2c: E2 08 00 1F 3E 80 13 01 00 00 00 00 00 DA [18:34:26]Write i2c OK [18:34:26]MH_I2C_Read... [18:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:26]Read from MH i2c: E2 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 0E 00 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 0E 00 1F 3E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 59 [18:34:26]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:34:26]wFMCommunicate OK [18:34:26]SAM_PROTO_GetShiftState done [18:34:26]FM_GetShiftState done [18:34:26]req_shift_opened done [18:34:26]requested_item shift.open_date is exist - process it [18:34:26]req_shift_open_date [18:34:26]req_shift_open_date done [18:34:26]produce_requested_data done [18:34:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123117,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:34:26]process_action_free close_receipt [18:34:26]json_value_free [18:34:26]json_value_free done [18:34:26]process_json_proto returns [18:34:26]Send response to host [18:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123117,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:34:26]free response buf [18:34:26]execute_script done [18:34:26]execute_script returns [18:34:26]free content buf [18:34:26]Sock 7.Close socket [18:34:26]Sock 7.Thread stoped [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]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]accept exits with 10 [18:46:59]New connection [18:46:59]New thread 3066723684 created [18:46:59]Thread 3066580324 joined [18:46:59]Waiting for new connection... [18:46:59] Sock 10.Parse request [18:46:59]Sock 10.Check first char [18:46:59]Sock 10.First char is OK [18:46:59]request: POST /json_proto HTTP/1.0 [18:46:59]Method: POST [18:46:59]URL: /json_proto [18:46:59]Method is POST - this is cgi request [18:46:59]url: /json_proto [18:46:59]query_string will be loaded in cgi processing [18:46:59]execute_cgi json_proto POST (null) [18:46:59]execute_cgi path=json_proto method=POST [18:46:59]POST find Content-Length [18:46:59]Host: 172.17.37.4:8080 [18:46:59]Content-Length: 686 [18:46:59]Content-Type: application/json [18:46:59] [18:46:59]POST finish read [18:46:59]Found Content-Length = 686 [18:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:59]execute_script... [18: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)717914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:59]POST & json_proto [18:46:59]process_json_proto [18:46:59]json parsed OK: [18:46:59]protocol is kg_v1.0 [18:46:59]action value=close_receipt [18:46:59]process_action close_receipt [18:46:59]cmd_close_receipt [18:46:59]MH_GetDate [18:46:59]Write to MH i2c: F0 00 00 20 3E 4D [18:46:59]Write i2c OK [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: F0 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: F0 09 00 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: F0 09 00 20 3E 00 2A C6 44 67 B8 5A 43 67 AD [18:46:59]GetLastDocTimeStamp 1732559667 [18:46:59]current date 1732560426 [18:46:59]FM_GetShiftState [18:46:59]SAM_PROTO_GetShiftState [18:46:59]wFMCommunicate request_size=4 [18:46:59]MH_SAM_APDU [18:46:59]CAPDU: 80 13 01 00 [18:46:59]Write to MH i2c: E2 08 00 21 3E 80 13 01 00 00 00 00 00 DC [18:46:59]Write i2c OK [18:46:59]MH_I2C_Read... [18:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:59]Read from MH i2c: E2 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: E2 0E 00 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: E2 0E 00 21 3E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 5B [18:46:59]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:46:59]wFMCommunicate OK [18:46:59]SAM_PROTO_GetShiftState done [18:46:59]FM_GetShiftState done [18:46:59]opened in 1732493066 [18:46:59]opened+sec_in_day 1732579466 [18:46:59]quantity*price = 100066 [18:46:59]sum+1 = 100067 [18:46:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 159 25.11.2024 18:47 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123118 ФПД: 200721936503718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T184706&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123118&fm=200721936503718&tin=02508201610067®Number=0000000000092681&sum=100000 [18:47:00]StoreToDocumentArchive [18:47:00]shift 556 fd 123118 [18:47:00]save to /storage/0556/doc_00123118 [18:47:00]save last doc name /storage/0556/doc_00123118 to /storage/kkm_last_doc_name [18:47:00]save OK [18:47:00]Clear old archive folders... [18:47:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:47:00]tlvbuf is 02068880 [18:47:00]SAM_PROTO_ClearQueue [18:47:00]wFMCommunicate request_size=4 [18:47:00]MH_SAM_APDU [18:47:00]CAPDU: 80 09 00 00 [18:47:00]Write to MH i2c: E2 08 00 2E 3E 80 09 00 00 00 00 00 00 DE [18:47:00]Write i2c OK [18:47:00]MH_I2C_Read... [18:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:01]Read from MH i2c: E2 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 03 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 03 00 2E 3E 00 90 00 E0 [18:47:01]RAPDU: 90 00 [18:47:01]wFMCommunicate OK [18:47:01]SAM_PROTO_ClearQueue done [18:47:01]KKMCreateOFDPacket [18:47:01]OFDProtocolAddRootSTLVToBuf [18:47:01]FM_MakeSignedData [18:47:01]FM_MakeSignedData [18:47:01]SAM_PROTO_SignData [18:47:01]wFMCommunicate request_size=4 [18:47:01]MH_SAM_APDU [18:47:01]CAPDU: 80 0D 01 02 [18:47:01]Write to MH i2c: E2 08 00 2F 3E 80 0D 01 02 00 00 00 00 E6 [18:47:01]Write i2c OK [18:47:01]MH_I2C_Read... [18:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:01]Read from MH i2c: E2 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 03 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 03 00 2F 3E 00 90 00 E1 [18:47:01]RAPDU: 90 00 [18:47:01]wFMCommunicate OK [18:47:01]wFMCommunicate request_size=255 [18:47:01]MH_SAM_APDU [18:47:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2A C6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EE E0 01 00 35 04 06 00 [18:47:01]Write to MH i2c: E2 02 01 30 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2A C6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EE E0 01 00 35 04 06 00 00 00 04 [18:47:01]Write i2c OK [18:47:01]MH_I2C_Read... [18:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:01]Read from MH i2c: E2 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 03 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 03 00 30 3E 00 90 00 E2 [18:47:01]RAPDU: 90 00 [18:47:01]wFMCommunicate OK [18:47:01]wFMCommunicate request_size=11 [18:47:01]MH_SAM_APDU [18:47:01]CAPDU: 80 0D 02 02 06 B6 8E 37 B9 53 A6 [18:47:01]Write to MH i2c: E2 0E 00 31 3E 80 0D 02 02 06 00 B6 8E 37 B9 53 A6 00 00 22 [18:47:01]Write i2c OK [18:47:01]MH_I2C_Read... [18:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:01]Read from MH i2c: E2 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 03 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 03 00 31 3E 00 90 00 E3 [18:47:01]RAPDU: 90 00 [18:47:01]wFMCommunicate OK [18:47:01]wFMCommunicate request_size=4 [18:47:01]MH_SAM_APDU [18:47:01]CAPDU: 80 0D 03 02 [18:47:01]Write to MH i2c: E2 08 00 32 3E 80 0D 03 02 00 00 00 00 EB [18:47:01]Write i2c OK [18:47:01]MH_I2C_Read... [18:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:01]Read from MH i2c: E2 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 0B 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 0B 00 32 3E 00 17 13 F9 CD B6 C8 30 0F 90 00 99 [18:47:01]RAPDU: 17 13 F9 CD B6 C8 30 0F 90 00 [18:47:01]wFMCommunicate OK [18:47:01]SAM_PROTO_SignData done [18:47:01]FM_MakeSignedData done [18:47:01]CreateOFDProtocolMessage [18:47:01]wFMCommunicate request_size=4 [18:47:01]MH_SAM_APDU [18:47:01]CAPDU: 80 11 00 00 [18:47:01]Write to MH i2c: E2 08 00 33 3E 80 11 00 00 00 00 00 00 EB [18:47:01]Write i2c OK [18:47:01]MH_I2C_Read... [18:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:01]Read from MH i2c: E2 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 17 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 17 00 33 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 42 [18:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:47:01]wFMCommunicate OK [18:47:01]CreateOFDProtocolMessage done [18:47:01]OFDSenderStorePacket 123118 [18:47:01]StoreOFDPacket docnum=123118 [18:47:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 68 1B 08 01 BB 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2A C6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EE E0 01 00 35 04 06 00 B6 8E 37 B9 53 A6 17 13 F9 CD B6 C8 30 0F [18:47:01]CheckFolder [18:47:01]dirname=/storage/ofd_packets [18:47:01]CheckFolder done [18:47:01]ProducePacketName [18:47:01]name=ofd_packets/00123118 [18:47:01]NVStorageSaveData ofd_packets/00123118 [18:47:01]File name is /storage/ofd_packets/00123118 [18:47:01]Write 302 bytes [18:47:01]NVStorageSaveData done [18:47:01]OFDSenderStorePacket done [18:47:01]KKMCreateOFDPacket done [18:47:01]NVStorageSaveData kkm_last_timestamp [18:47:01]File name is /storage/kkm_last_timestamp [18:47:01]Write 4 bytes [18:47:01]NVStorageSaveData done [18:47:01]ExternCall_PrintAddStr [18:47:01]wPrintStart [18:47:01]Write to MH i2c: 01 00 00 34 3E 72 [18:47:01]Write i2c OK [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: 01 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: 01 07 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: 01 07 00 34 3E 00 00 00 00 00 FF 0F 87 [18:47:01]RasterBufferAndPrint [18:47:01]line Счет N : (1)717914 [18:47:01]line ИНН: 02508201610067 [18:47:01]line Контрольно-Кассовый Чек [18:47:01]line ПРОДАЖА [18:47:01]line ТРК (МРК, ГНК) : 6 [18:47:01]line Товар: 2710194210 [18:47:01]line ДТ(л)-К-5 [18:47:01]line 13.360 * 74.90 [18:47:01]line = 1000.66 [18:47:01]line НДС 12% НСП 1% [18:47:01]line > о реализуемом товаре [18:47:01]line ОКРУГЛЕНИЕ: -0.66 [18:47:01]line ИТОГО: 1000.00 [18:47:01]line Внесено: 1000.00 [18:47:01]line СДАЧА: 0.00 [18:47:01]line НСП 1% : 8.85 [18:47:01]line НДС 12% : 106.26 [18:47:01]line Наличными: 1000.00 [18:47:01]line Безнал.: 0.00 [18:47:01]line Место: АЗС № 64 "Партнер Нефть" [18:47:01]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:47:01]line СНО: Общий режим [18:47:01]line Чек 159 25.11.2024 18:47 [18:47:01]line Смена: 556 ФФД: 1.0 [18:47:01]line ЗНМ: 0300000033 [18:47:01]line РНМ: 0000000000092681 [18:47:01]line Версия ККМ: 001 [18:47:01]line ФМ: 0000000000874881 [18:47:01]line ФД: 123118 [18:47:01]line ФПД: 200721936503718 [18:47:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T184706&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123118&fm=200721936503718&tin=02508201610067®Number=0000000000092681&sum=100000 [18:47:01]OFD Sender: Processing packet 123118 [packets to send 7, broken 6] [18:47:01]ProducePacketName [18:47:01]name=ofd_packets/00123118 [18:47:01]OFD Sender: To server: pG, [18:47:01]CommunicateWithHost lk.salyk.kg:30040 [18:47:01]ConnectInit lk.salyk.kg [18:47:01]written 0, free lines is 4095 [18:47:01]Connected sock=9 [18:47:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 68 1B 08 01 BB 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2A C6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EE E0 01 00 35 04 06 00 B6 8E 37 B9 53 A6 17 13 F9 CD B6 C8 30 0F [18:47:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 89 75 47 00 42 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EE E0 01 00 F4 03 04 00 EF 71 44 67 B6 04 01 00 00 97 91 9B DA D3 C2 80 31 [18:47:02]CommunicateWithHost err = 0 [18:47:02]CheckOFDResponse [18:47:02]1017 (14) - 77093643461234 [18:47:02]1041 (16) - 0000000000874881 [18:47:02]1040 (4) - 123118 [18:47:02]1012 (4) - 25.11.2024 12:47 [18:47:02]1206 (1) - 0 [18:47:02]OFD Sender: Remove packet 123118 [18:47:02]ProducePacketName [18:47:02]name=ofd_packets/00123118 [18:47:02]NVStorageDeleteData [18:47:02]Write to MH i2c: 01 00 00 5F 3E 9D [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: 01 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: 01 07 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: 01 07 00 5F 3E 00 00 00 00 00 46 0C F6 [18:47:02]RasterBufferAndPrint [18:47:02]line [18:47:02]line [18:47:02]line [18:47:02]line [18:47:02]line [18:47:02]written 0, free lines is 3147 [18:47:02]MH_Cut [18:47:02]Write to MH i2c: D1 01 00 66 3E 01 76 [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: D1 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: D1 01 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: D1 01 00 66 3E 00 75 [18:47:02]Write to MH i2c: 01 00 00 67 3E A5 [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]OFD Sender: No OFD packet to send [18:47:03]*** Cut start [18:47:03]*** Partial cut [18:47:03]*** CUTSNS_PIN = 1 [18:47:03]*** CUTSNS_PIN = 0 [18:47:03]*** Brake cut motor [18:47:04]Read from MH i2c: 01 [18:47:04]MH_I2C_Read... [18:47:04]*** Stop cut motor [18:47:04]*** Cut end [18:47:04]Read from MH i2c: 01 07 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: 01 07 00 67 3E 00 00 00 00 00 FF 0F BA [18:47:04]process_action close_receipt done [18:47:04]requested_data is exist [18:47:04]produce_requested_data [18:47:04]requested_item fm.sn is exist - process it [18:47:04]wFMCommunicate request_size=4 [18:47:04]MH_SAM_APDU [18:47:04]CAPDU: 80 11 00 00 [18:47:04]Write to MH i2c: E2 08 00 68 3E 80 11 00 00 00 00 00 00 20 [18:47:04]Write i2c OK [18:47:04]MH_I2C_Read... [18:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:04]Read from MH i2c: E2 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 17 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 17 00 68 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 77 [18:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:47:04]wFMCommunicate OK [18:47:04]requested_item fd.num is exist - process it [18:47:04]SAM_PROTO_GetFieldsCounters [18:47:04]wFMCommunicate request_size=4 [18:47:04]MH_SAM_APDU [18:47:04]CAPDU: 80 13 00 00 [18:47:04]Write to MH i2c: E2 08 00 69 3E 80 13 00 00 00 00 00 00 23 [18:47:04]Write i2c OK [18:47:04]MH_I2C_Read... [18:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:04]Read from MH i2c: E2 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 62 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 62 00 69 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EE E0 01 00 0E 04 04 00 2C 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 23 [18:47:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EE E0 01 00 0E 04 04 00 2C 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 [18:47:04]wFMCommunicate OK [18:47:04]SAM_PROTO_GetFieldsCounters done [18:47:04]requested_item shift.num is exist - process it [18:47:04]requested_item shift.opened is exist - process it [18:47:04]req_shift_opened [18:47:04]FM_GetShiftState [18:47:04]SAM_PROTO_GetShiftState [18:47:04]wFMCommunicate request_size=4 [18:47:04]MH_SAM_APDU [18:47:04]CAPDU: 80 13 01 00 [18:47:04]Write to MH i2c: E2 08 00 6A 3E 80 13 01 00 00 00 00 00 25 [18:47:04]Write i2c OK [18:47:04]MH_I2C_Read... [18:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:04]Read from MH i2c: E2 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 0E 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 0E 00 6A 3E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A4 [18:47:04]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:47:04]wFMCommunicate OK [18:47:04]SAM_PROTO_GetShiftState done [18:47:04]FM_GetShiftState done [18:47:04]req_shift_opened done [18:47:04]requested_item shift.open_date is exist - process it [18:47:04]req_shift_open_date [18:47:04]req_shift_open_date done [18:47:04]produce_requested_data done [18:47:04]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123118,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:47:04]process_action_free close_receipt [18:47:04]json_value_free [18:47:04]json_value_free done [18:47:04]process_json_proto returns [18:47:04]Send response to host [18:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123118,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:47:04]free response buf [18:47:04]execute_script done [18:47:04]execute_script returns [18:47:04]free content buf [18:47:04]Sock 10.Close socket [18:47:04]Sock 10.Thread stoped [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:56]accept exits with 7 [18:48:56]New connection [18:48:56]New thread 3066580324 created [18:48:56]Thread 3066723684 joined [18:48:56]Waiting for new connection... [18:48:56] Sock 7.Parse request [18:48:56]Sock 7.Check first char [18:48:56]Sock 7.First char is OK [18:48:56]request: POST /json_proto HTTP/1.0 [18:48:56]Method: POST [18:48:56]URL: /json_proto [18:48:56]Method is POST - this is cgi request [18:48:56]url: /json_proto [18:48:56]query_string will be loaded in cgi processing [18:48:56]execute_cgi json_proto POST (null) [18:48:56]execute_cgi path=json_proto method=POST [18:48:56]POST find Content-Length [18:48:56]Host: 172.17.37.4:8080 [18:48:56]Content-Length: 677 [18:48:56]Content-Type: application/json [18:48:56] [18:48:56]POST finish read [18:48:56]Found Content-Length = 677 [18:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:56]execute_script... [18:48: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)717915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:56]POST & json_proto [18:48:56]process_json_proto [18:48:56]json parsed OK: [18:48:56]protocol is kg_v1.0 [18:48:56]action value=close_receipt [18:48:56]process_action close_receipt [18:48:56]cmd_close_receipt [18:48:56]MH_GetDate [18:48:56]Write to MH i2c: F0 00 00 6B 3E 98 [18:48:56]Write i2c OK [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: F0 [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: F0 09 00 [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: F0 09 00 6B 3E 00 9E C6 44 67 B8 5A 43 67 6C [18:48:56]GetLastDocTimeStamp 1732560426 [18:48:56]current date 1732560542 [18:48:56]FM_GetShiftState [18:48:56]SAM_PROTO_GetShiftState [18:48:56]wFMCommunicate request_size=4 [18:48:56]MH_SAM_APDU [18:48:56]CAPDU: 80 13 01 00 [18:48:56]Write to MH i2c: E2 08 00 6C 3E 80 13 01 00 00 00 00 00 27 [18:48:56]Write i2c OK [18:48:56]MH_I2C_Read... [18:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:56]Read from MH i2c: E2 [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: E2 0E 00 [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: E2 0E 00 6C 3E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 A6 [18:48:56]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:48:56]wFMCommunicate OK [18:48:56]SAM_PROTO_GetShiftState done [18:48:56]FM_GetShiftState done [18:48:56]opened in 1732493066 [18:48:56]opened+sec_in_day 1732579466 [18:48:56]quantity*price = 50010 [18:48:56]sum+1 = 50012 [18:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 160 25.11.2024 18:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123119 ФПД: 234127278415292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T184902&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123119&fm=234127278415292&tin=02508201610067®Number=0000000000092681&sum=50000 [18:48:57]StoreToDocumentArchive [18:48:57]shift 556 fd 123119 [18:48:57]save to /storage/0556/doc_00123119 [18:48:57]save last doc name /storage/0556/doc_00123119 to /storage/kkm_last_doc_name [18:48:57]save OK [18:48:57]Clear old archive folders... [18:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:57]tlvbuf is B6D70770 [18:48:57]SAM_PROTO_ClearQueue [18:48:57]wFMCommunicate request_size=4 [18:48:57]MH_SAM_APDU [18:48:57]CAPDU: 80 09 00 00 [18:48:57]Write to MH i2c: E2 08 00 79 3E 80 09 00 00 00 00 00 00 29 [18:48:57]Write i2c OK [18:48:57]MH_I2C_Read... [18:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:57]Read from MH i2c: E2 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: E2 03 00 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: E2 03 00 79 3E 00 90 00 2B [18:48:57]RAPDU: 90 00 [18:48:57]wFMCommunicate OK [18:48:57]SAM_PROTO_ClearQueue done [18:48:57]KKMCreateOFDPacket [18:48:57]OFDProtocolAddRootSTLVToBuf [18:48:57]FM_MakeSignedData [18:48:57]FM_MakeSignedData [18:48:57]SAM_PROTO_SignData [18:48:57]wFMCommunicate request_size=4 [18:48:57]MH_SAM_APDU [18:48:57]CAPDU: 80 0D 01 02 [18:48:57]Write to MH i2c: E2 08 00 7A 3E 80 0D 01 02 00 00 00 00 31 [18:48:57]Write i2c OK [18:48:57]MH_I2C_Read... [18:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:57]Read from MH i2c: E2 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: E2 03 00 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: E2 03 00 7A 3E 00 90 00 2C [18:48:57]RAPDU: 90 00 [18:48:57]wFMCommunicate OK [18:48:57]wFMCommunicate request_size=255 [18:48:57]MH_SAM_APDU [18:48:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9E C6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EF E0 01 00 35 04 06 00 D4 [18:48:57]Write to MH i2c: E2 02 01 7B 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9E C6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EF E0 01 00 35 04 06 00 D4 00 00 19 [18:48:57]Write i2c OK [18:48:57]MH_I2C_Read... [18:48:57]OFD Sender: No OFD packet to send [18:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:57]Read from MH i2c: E2 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: E2 03 00 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: E2 03 00 7B 3E 00 90 00 2D [18:48:57]RAPDU: 90 00 [18:48:57]wFMCommunicate OK [18:48:57]wFMCommunicate request_size=10 [18:48:57]MH_SAM_APDU [18:48:57]CAPDU: 80 0D 02 02 05 F0 01 43 1D BC [18:48:57]Write to MH i2c: E2 0D 00 7C 3E 80 0D 02 02 05 00 F0 01 43 1D BC 00 00 4B [18:48:57]Write i2c OK [18:48:57]MH_I2C_Read... [18:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:57]Read from MH i2c: E2 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: E2 03 00 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: E2 03 00 7C 3E 00 90 00 2E [18:48:57]RAPDU: 90 00 [18:48:57]wFMCommunicate OK [18:48:57]wFMCommunicate request_size=4 [18:48:57]MH_SAM_APDU [18:48:57]CAPDU: 80 0D 03 02 [18:48:57]Write to MH i2c: E2 08 00 7D 3E 80 0D 03 02 00 00 00 00 36 [18:48:57]Write i2c OK [18:48:57]MH_I2C_Read... [18:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:58]Read from MH i2c: E2 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 0B 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 0B 00 7D 3E 00 23 2A 97 E7 E7 63 0D 24 90 00 7D [18:48:58]RAPDU: 23 2A 97 E7 E7 63 0D 24 90 00 [18:48:58]wFMCommunicate OK [18:48:58]SAM_PROTO_SignData done [18:48:58]FM_MakeSignedData done [18:48:58]CreateOFDProtocolMessage [18:48:58]wFMCommunicate request_size=4 [18:48:58]MH_SAM_APDU [18:48:58]CAPDU: 80 11 00 00 [18:48:58]Write to MH i2c: E2 08 00 7E 3E 80 11 00 00 00 00 00 00 36 [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:58]Read from MH i2c: E2 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 17 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 17 00 7E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8D [18:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:48:58]wFMCommunicate OK [18:48:58]CreateOFDProtocolMessage done [18:48:58]OFDSenderStorePacket 123119 [18:48:58]StoreOFDPacket docnum=123119 [18:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D4 60 07 01 E4 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9E C6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EF E0 01 00 35 04 06 00 D4 F0 01 43 1D BC 23 2A 97 E7 E7 63 0D 24 [18:48:58]CheckFolder [18:48:58]dirname=/storage/ofd_packets [18:48:58]CheckFolder done [18:48:58]ProducePacketName [18:48:58]name=ofd_packets/00123119 [18:48:58]NVStorageSaveData ofd_packets/00123119 [18:48:58]File name is /storage/ofd_packets/00123119 [18:48:58]Write 301 bytes [18:48:58]NVStorageSaveData done [18:48:58]OFDSenderStorePacket done [18:48:58]KKMCreateOFDPacket done [18:48:58]NVStorageSaveData kkm_last_timestamp [18:48:58]File name is /storage/kkm_last_timestamp [18:48:58]Write 4 bytes [18:48:58]NVStorageSaveData done [18:48:58]OFD Sender: Processing packet 123119 [packets to send 7, broken 6] [18:48:58]ProducePacketName [18:48:58]name=ofd_packets/00123119 [18:48:58]OFD Sender: To server: pG, [18:48:58]CommunicateWithHost lk.salyk.kg:30040 [18:48:58]ConnectInit lk.salyk.kg [18:48:58]ExternCall_PrintAddStr [18:48:58]wPrintStart [18:48:58]Write to MH i2c: 01 00 00 7F 3E BD [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: 01 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: 01 07 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: 01 07 00 7F 3E 00 00 00 00 00 FF 0F D2 [18:48:58]RasterBufferAndPrint [18:48:58]line Счет N : (1)717915 [18:48:58]line ИНН: 02508201610067 [18:48:58]line Контрольно-Кассовый Чек [18:48:58]line ПРОДАЖА [18:48:58]line ТРК (МРК, ГНК) : 22 [18:48:58]line Товар: 2710124130 [18:48:58]line Аи-92-К-4 [18:48:58]line 7.420 * 67.40 [18:48:58]line = 500.11 [18:48:58]line НДС 12% НСП 1% [18:48:58]line > о реализуемом товаре [18:48:58]line ОКРУГЛЕНИЕ: -0.11 [18:48:58]line ИТОГО: 500.00 [18:48:58]line Внесено: 500.00 [18:48:58]line СДАЧА: 0.00 [18:48:58]line НСП 1% : 4.43 [18:48:58]line НДС 12% : 53.11 [18:48:58]line Наличными: 500.00 [18:48:58]line Безнал.: 0.00 [18:48:58]line Место: АЗС № 64 "Партнер Нефть" [18:48:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:48:58]line СНО: Общий режим [18:48:58]line Чек 160 25.11.2024 18:49 [18:48:58]line Смена: 556 ФФД: 1.0 [18:48:58]line ЗНМ: 0300000033 [18:48:58]line РНМ: 0000000000092681 [18:48:58]line Версия ККМ: 001 [18:48:58]line ФМ: 0000000000874881 [18:48:58]line ФД: 123119 [18:48:58]line ФПД: 234127278415292 [18:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T184902&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123119&fm=234127278415292&tin=02508201610067®Number=0000000000092681&sum=50000 [18:48:58]Connected sock=11 [18:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D4 60 07 01 E4 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9E C6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EF E0 01 00 35 04 06 00 D4 F0 01 43 1D BC 23 2A 97 E7 E7 63 0D 24 [18:48:58]written 0, free lines is 4095 [18:48:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 49 97 47 00 20 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 EF E0 01 00 F4 03 04 00 63 72 44 67 B6 04 01 00 00 F3 81 77 CB CE F0 07 6A [18:48:58]CommunicateWithHost err = 0 [18:48:58]CheckOFDResponse [18:48:58]1017 (14) - 77093643461234 [18:48:58]1041 (16) - 0000000000874881 [18:48:58]1040 (4) - 123119 [18:48:58]1012 (4) - 25.11.2024 12:49 [18:48:58]1206 (1) - 0 [18:48:58]OFD Sender: Remove packet 123119 [18:48:58]ProducePacketName [18:48:58]name=ofd_packets/00123119 [18:48:58]NVStorageDeleteData [18:48:58]Write to MH i2c: 01 00 00 AA 3E E8 [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: 01 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: 01 07 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: 01 07 00 AA 3E 00 00 00 00 00 43 0C 3E [18:48:58]RasterBufferAndPrint [18:48:58]line [18:48:58]line [18:48:58]line [18:48:58]line [18:48:58]line [18:48:58]written 0, free lines is 3144 [18:48:58]MH_Cut [18:48:58]Write to MH i2c: D1 01 00 B1 3E 01 C1 [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: D1 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: D1 01 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: D1 01 00 B1 3E 00 C0 [18:48:58]Write to MH i2c: 01 00 00 B2 3E F0 [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:59]OFD Sender: No OFD packet to send [18:49:00]*** Cut start [18:49:00]*** Partial cut [18:49:00]*** CUTSNS_PIN = 1 [18:49:00]*** CUTSNS_PIN = 0 [18:49:00]*** Brake cut motor [18:49:00]Read from MH i2c: 01 [18:49:00]MH_I2C_Read... [18:49:00]*** Stop cut motor [18:49:00]*** Cut end [18:49:00]Read from MH i2c: 01 07 00 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: 01 07 00 B2 3E 00 00 00 00 00 FF 0F 05 [18:49:00]process_action close_receipt done [18:49:00]requested_data is exist [18:49:00]produce_requested_data [18:49:00]requested_item fm.sn is exist - process it [18:49:00]wFMCommunicate request_size=4 [18:49:00]MH_SAM_APDU [18:49:00]CAPDU: 80 11 00 00 [18:49:00]Write to MH i2c: E2 08 00 B3 3E 80 11 00 00 00 00 00 00 6B [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:00]Read from MH i2c: E2 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 17 00 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 17 00 B3 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C2 [18:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:49:00]wFMCommunicate OK [18:49:00]requested_item fd.num is exist - process it [18:49:00]SAM_PROTO_GetFieldsCounters [18:49:00]wFMCommunicate request_size=4 [18:49:00]MH_SAM_APDU [18:49:00]CAPDU: 80 13 00 00 [18:49:00]Write to MH i2c: E2 08 00 B4 3E 80 13 00 00 00 00 00 00 6E [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:01]Read from MH i2c: E2 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 62 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 62 00 B4 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EF E0 01 00 0E 04 04 00 2C 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 72 [18:49:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 EF E0 01 00 0E 04 04 00 2C 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 [18:49:01]wFMCommunicate OK [18:49:01]SAM_PROTO_GetFieldsCounters done [18:49:01]requested_item shift.num is exist - process it [18:49:01]requested_item shift.opened is exist - process it [18:49:01]req_shift_opened [18:49:01]FM_GetShiftState [18:49:01]SAM_PROTO_GetShiftState [18:49:01]wFMCommunicate request_size=4 [18:49:01]MH_SAM_APDU [18:49:01]CAPDU: 80 13 01 00 [18:49:01]Write to MH i2c: E2 08 00 B5 3E 80 13 01 00 00 00 00 00 70 [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:01]Read from MH i2c: E2 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 0E 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 0E 00 B5 3E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 EF [18:49:01]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [18:49:01]wFMCommunicate OK [18:49:01]SAM_PROTO_GetShiftState done [18:49:01]FM_GetShiftState done [18:49:01]req_shift_opened done [18:49:01]requested_item shift.open_date is exist - process it [18:49:01]req_shift_open_date [18:49:01]req_shift_open_date done [18:49:01]produce_requested_data done [18:49:01]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123119,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [18:49:01]process_action_free close_receipt [18:49:01]json_value_free [18:49:01]json_value_free done [18:49:01]process_json_proto returns [18:49:01]Send response to host [18:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123119,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [18:49:01]free response buf [18:49:01]execute_script done [18:49:01]execute_script returns [18:49:01]free content buf [18:49:01]Sock 7.Close socket [18:49:01]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]accept exits with 9 [19:05:49]New connection [19:05:49]New thread 3066723684 created [19:05:49]Thread 3066580324 joined [19:05:49]Waiting for new connection... [19:05:49] Sock 9.Parse request [19:05:49]Sock 9.Check first char [19:05:49]Sock 9.First char is OK [19:05:49]request: POST /json_proto HTTP/1.0 [19:05:49]Method: POST [19:05:49]URL: /json_proto [19:05:49]Method is POST - this is cgi request [19:05:49]url: /json_proto [19:05:49]query_string will be loaded in cgi processing [19:05:49]execute_cgi json_proto POST (null) [19:05:49]execute_cgi path=json_proto method=POST [19:05:49]POST find Content-Length [19:05:49]Host: 172.17.37.4:8080 [19:05:49]Content-Length: 801 [19:05:49]Content-Type: application/json [19:05:49] [19:05:49]POST finish read [19:05:49]Found Content-Length = 801 [19:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:49]execute_script... [19:05: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)717916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:49]POST & json_proto [19:05:49]process_json_proto [19:05:49]json parsed OK: [19:05:49]protocol is kg_v1.0 [19:05:49]action value=close_receipt [19:05:49]process_action close_receipt [19:05:49]cmd_close_receipt [19:05:49]MH_GetDate [19:05:49]Write to MH i2c: F0 00 00 B6 3E E3 [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 09 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 09 00 B6 3E 00 94 CA 44 67 B8 5A 43 67 B1 [19:05:49]GetLastDocTimeStamp 1732560542 [19:05:49]current date 1732561556 [19:05:49]FM_GetShiftState [19:05:49]SAM_PROTO_GetShiftState [19:05:49]wFMCommunicate request_size=4 [19:05:49]MH_SAM_APDU [19:05:49]CAPDU: 80 13 01 00 [19:05:49]Write to MH i2c: E2 08 00 B7 3E 80 13 01 00 00 00 00 00 72 [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:49]Read from MH i2c: E2 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 0E 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 0E 00 B7 3E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F1 [19:05:49]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:05:49]wFMCommunicate OK [19:05:49]SAM_PROTO_GetShiftState done [19:05:49]FM_GetShiftState done [19:05:49]opened in 1732493066 [19:05:49]opened+sec_in_day 1732579466 [19:05:49]quantity*price = 70028 [19:05:49]sum+1 = 70030 [19:05:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.29 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.29 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 161 25.11.2024 19:05 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123120 ФПД: 196630338840247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T190556&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123120&fm=196630338840247&tin=02508201610067®Number=0000000000092681&sum=70029 [19:05:50]StoreToDocumentArchive [19:05:50]shift 556 fd 123120 [19:05:50]save to /storage/0556/doc_00123120 [19:05:50]save last doc name /storage/0556/doc_00123120 to /storage/kkm_last_doc_name [19:05:50]save OK [19:05:50]Clear old archive folders... [19:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:50]tlvbuf is 021385A0 [19:05:50]SAM_PROTO_ClearQueue [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 09 00 00 [19:05:50]Write to MH i2c: E2 08 00 C4 3E 80 09 00 00 00 00 00 00 74 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 C4 3E 00 90 00 76 [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]SAM_PROTO_ClearQueue done [19:05:50]KKMCreateOFDPacket [19:05:50]OFDProtocolAddRootSTLVToBuf [19:05:50]FM_MakeSignedData [19:05:50]FM_MakeSignedData [19:05:50]SAM_PROTO_SignData [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 01 02 [19:05:50]Write to MH i2c: E2 08 00 C5 3E 80 0D 01 02 00 00 00 00 7C [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 C5 3E 00 90 00 77 [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]wFMCommunicate request_size=255 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 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 00 00 00 00 00 00 39 04 06 00 8D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 94 CA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F0 E0 01 00 35 04 06 00 B2 [19:05:51]Write to MH i2c: E2 02 01 C6 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 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 00 00 00 00 00 00 39 04 06 00 8D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 94 CA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F0 E0 01 00 35 04 06 00 B2 00 00 86 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 C6 3E 00 90 00 78 [19:05:51]RAPDU: 90 00 [19:05:51]wFMCommunicate OK [19:05:51]wFMCommunicate request_size=10 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 0D 02 02 05 D5 91 7F A6 B7 [19:05:51]Write to MH i2c: E2 0D 00 C7 3E 80 0D 02 02 05 00 D5 91 7F A6 B7 00 00 CB [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 C7 3E 00 90 00 79 [19:05:51]RAPDU: 90 00 [19:05:51]wFMCommunicate OK [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 0D 03 02 [19:05:51]Write to MH i2c: E2 08 00 C8 3E 80 0D 03 02 00 00 00 00 81 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0B 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0B 00 C8 3E 00 86 EC 1F 0A 39 BB F1 A7 90 00 A9 [19:05:51]RAPDU: 86 EC 1F 0A 39 BB F1 A7 90 00 [19:05:51]wFMCommunicate OK [19:05:51]SAM_PROTO_SignData done [19:05:51]FM_MakeSignedData done [19:05:51]CreateOFDProtocolMessage [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 11 00 00 [19:05:51]Write to MH i2c: E2 08 00 C9 3E 80 11 00 00 00 00 00 00 81 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 17 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 17 00 C9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D8 [19:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:05:51]wFMCommunicate OK [19:05:51]CreateOFDProtocolMessage done [19:05:51]OFDSenderStorePacket 123120 [19:05:51]StoreOFDPacket docnum=123120 [19:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 84 4E 07 01 ED 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 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 00 00 00 00 00 00 39 04 06 00 8D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 94 CA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F0 E0 01 00 35 04 06 00 B2 D5 91 7F A6 B7 86 EC 1F 0A 39 BB F1 A7 [19:05:51]CheckFolder [19:05:51]dirname=/storage/ofd_packets [19:05:51]CheckFolder done [19:05:51]ProducePacketName [19:05:51]name=ofd_packets/00123120 [19:05:51]NVStorageSaveData ofd_packets/00123120 [19:05:51]File name is /storage/ofd_packets/00123120 [19:05:51]Write 301 bytes [19:05:51]NVStorageSaveData done [19:05:51]OFDSenderStorePacket done [19:05:51]KKMCreateOFDPacket done [19:05:51]NVStorageSaveData kkm_last_timestamp [19:05:51]File name is /storage/kkm_last_timestamp [19:05:51]Write 4 bytes [19:05:51]NVStorageSaveData done [19:05:51]ExternCall_PrintAddStr [19:05:51]wPrintStart [19:05:51]Write to MH i2c: 01 00 00 CA 3E 08 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 CA 3E 00 00 00 00 00 FF 0F 1D [19:05:51]RasterBufferAndPrint [19:05:51]line Счет N : (1)717916 [19:05:51]line ИНН: 02508201610067 [19:05:51]line Контрольно-Кассовый Чек [19:05:51]line ПРОДАЖА [19:05:51]line ТРК (МРК, ГНК) : 12 [19:05:51]line Товар: 2710124130 [19:05:51]line Аи-92-К-4 [19:05:51]line 10.390 * 67.40 [19:05:51]line = 700.29 [19:05:51]line НДС 12% НСП 1% [19:05:51]line > о реализуемом товаре [19:05:51]line ИТОГО: 700.29 [19:05:51]line НСП 1% : 6.20 [19:05:51]line НДС 12% : 74.37 [19:05:51]line Наличными: 0.00 [19:05:51]line Безнал.: 700.29 [19:05:51]line Место: АЗС № 64 "Партнер Нефть" [19:05:51]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:05:51]line СНО: Общий режим [19:05:51]line Чек 161 25.11.2024 19:05 [19:05:51]line Смена: 556 ФФД: 1.0 [19:05:51]line ЗНМ: 0300000033 [19:05:51]line РНМ: 0000000000092681 [19:05:51]line Версия ККМ: 001 [19:05:51]line Платежная система: O! деньги [19:05:51]line ФМ: 0000000000874881 [19:05:51]line ФД: 123120 [19:05:51]line ФПД: 196630338840247 [19:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T190556&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123120&fm=196630338840247&tin=02508201610067®Number=0000000000092681&sum=70029 [19:05:51]written 0, free lines is 4095 [19:05:51]OFD Sender: Processing packet 123120 [packets to send 7, broken 6] [19:05:51]ProducePacketName [19:05:51]name=ofd_packets/00123120 [19:05:51]OFD Sender: To server: pG, [19:05:51]CommunicateWithHost lk.salyk.kg:30040 [19:05:51]ConnectInit lk.salyk.kg [19:05:51]Connected sock=7 [19:05:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 84 4E 07 01 ED 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 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 00 00 00 00 00 00 39 04 06 00 8D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 94 CA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F0 E0 01 00 35 04 06 00 B2 D5 91 7F A6 B7 86 EC 1F 0A 39 BB F1 A7 [19:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 DE E4 47 00 FE 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 34 38 38 31 10 04 04 00 F0 E0 01 00 F4 03 04 00 59 76 44 67 B6 04 01 00 00 90 22 2F 75 1C 48 09 CA [19:05:52]CommunicateWithHost err = 0 [19:05:52]CheckOFDResponse [19:05:52]1017 (14) - 77093643461234 [19:05:52]1041 (16) - 0000000000874881 [19:05:52]1040 (4) - 123120 [19:05:52]1012 (4) - 25.11.2024 13:06 [19:05:52]1206 (1) - 0 [19:05:52]OFD Sender: Remove packet 123120 [19:05:52]ProducePacketName [19:05:52]name=ofd_packets/00123120 [19:05:52]NVStorageDeleteData [19:05:52]Write to MH i2c: 01 00 00 F4 3E 32 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 F4 3E 00 00 00 00 00 5A 0C 9F [19:05:52]RasterBufferAndPrint [19:05:52]line [19:05:52]line [19:05:52]line [19:05:52]line [19:05:52]line [19:05:52]written 0, free lines is 3166 [19:05:52]MH_Cut [19:05:52]Write to MH i2c: D1 01 00 FB 3E 01 0B [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: D1 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: D1 01 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: D1 01 00 FB 3E 00 0A [19:05:52]Write to MH i2c: 01 00 00 FC 3E 3A [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]OFD Sender: No OFD packet to send [19:05:53]*** Cut start [19:05:53]*** Partial cut [19:05:53]*** CUTSNS_PIN = 1 [19:05:53]*** CUTSNS_PIN = 0 [19:05:53]*** Brake cut motor [19:05:54]Read from MH i2c: 01 [19:05:54]MH_I2C_Read... [19:05:54]*** Stop cut motor [19:05:54]*** Cut end [19:05:54]Read from MH i2c: 01 07 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: 01 07 00 FC 3E 00 00 00 00 00 FF 0F 4F [19:05:54]process_action close_receipt done [19:05:54]requested_data is exist [19:05:54]produce_requested_data [19:05:54]requested_item fm.sn is exist - process it [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 11 00 00 [19:05:54]Write to MH i2c: E2 08 00 FD 3E 80 11 00 00 00 00 00 00 B5 [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 17 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 17 00 FD 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0C [19:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:05:54]wFMCommunicate OK [19:05:54]requested_item fd.num is exist - process it [19:05:54]SAM_PROTO_GetFieldsCounters [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 13 00 00 [19:05:54]Write to MH i2c: E2 08 00 FE 3E 80 13 00 00 00 00 00 00 B8 [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 62 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 62 00 FE 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F0 E0 01 00 0E 04 04 00 2C 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 C0 [19:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F0 E0 01 00 0E 04 04 00 2C 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 [19:05:54]wFMCommunicate OK [19:05:54]SAM_PROTO_GetFieldsCounters done [19:05:54]requested_item shift.num is exist - process it [19:05:54]requested_item shift.opened is exist - process it [19:05:54]req_shift_opened [19:05:54]FM_GetShiftState [19:05:54]SAM_PROTO_GetShiftState [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 13 01 00 [19:05:54]Write to MH i2c: E2 08 00 FF 3E 80 13 01 00 00 00 00 00 BA [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 FF 3E 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 39 [19:05:54]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:05:54]wFMCommunicate OK [19:05:54]SAM_PROTO_GetShiftState done [19:05:54]FM_GetShiftState done [19:05:54]req_shift_opened done [19:05:54]requested_item shift.open_date is exist - process it [19:05:54]req_shift_open_date [19:05:54]req_shift_open_date done [19:05:54]produce_requested_data done [19:05:54]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123120,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [19:05:54]process_action_free close_receipt [19:05:54]json_value_free [19:05:54]json_value_free done [19:05:54]process_json_proto returns [19:05:54]Send response to host [19:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123120,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [19:05:54]free response buf [19:05:54]execute_script done [19:05:54]execute_script returns [19:05:54]free content buf [19:05:54]Sock 9.Close socket [19:05:54]Sock 9.Thread stoped [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:13]accept exits with 10 [19:10:13]New connection [19:10:13]New thread 3066580324 created [19:10:13]Thread 3066723684 joined [19:10:13]Waiting for new connection... [19:10:13] Sock 10.Parse request [19:10:13]Sock 10.Check first char [19:10:13]Sock 10.First char is OK [19:10:13]request: POST /json_proto HTTP/1.0 [19:10:13]Method: POST [19:10:13]URL: /json_proto [19:10:13]Method is POST - this is cgi request [19:10:13]url: /json_proto [19:10:13]query_string will be loaded in cgi processing [19:10:13]execute_cgi json_proto POST (null) [19:10:13]execute_cgi path=json_proto method=POST [19:10:13]POST find Content-Length [19:10:13]Host: 172.17.37.4:8080 [19:10:13]Content-Length: 816 [19:10:13]Content-Type: application/json [19:10:13] [19:10:13]POST finish read [19:10:13]Found Content-Length = 816 [19:10:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:13]execute_script... [19:10: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)717917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:13]POST & json_proto [19:10:13]process_json_proto [19:10:13]json parsed OK: [19:10:13]protocol is kg_v1.0 [19:10:13]action value=close_receipt [19:10:13]process_action close_receipt [19:10:13]cmd_close_receipt [19:10:13]MH_GetDate [19:10:13]Write to MH i2c: F0 00 00 00 3F 2E [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: F0 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: F0 09 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: F0 09 00 00 3F 00 9C CB 44 67 B8 5A 43 67 05 [19:10:13]GetLastDocTimeStamp 1732561556 [19:10:13]current date 1732561820 [19:10:13]FM_GetShiftState [19:10:13]SAM_PROTO_GetShiftState [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 13 01 00 [19:10:13]Write to MH i2c: E2 08 00 01 3F 80 13 01 00 00 00 00 00 BD [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 0E 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 0E 00 01 3F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3C [19:10:13]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:10:13]wFMCommunicate OK [19:10:13]SAM_PROTO_GetShiftState done [19:10:13]FM_GetShiftState done [19:10:13]opened in 1732493066 [19:10:13]opened+sec_in_day 1732579466 [19:10:13]quantity*price = 25005 [19:10:13]sum+1 = 25006 [19:10:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.05 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 0.00 Безнал.: 250.05 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 162 25.11.2024 19:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123121 ФПД: 124146705984638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T191020&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123121&fm=124146705984638&tin=02508201610067®Number=0000000000092681&sum=25005 [19:10:15]StoreToDocumentArchive [19:10:15]shift 556 fd 123121 [19:10:15]save to /storage/0556/doc_00123121 [19:10:15]save last doc name /storage/0556/doc_00123121 to /storage/kkm_last_doc_name [19:10:15]save OK [19:10:15]Clear old archive folders... [19:10:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:15]tlvbuf is 01F46910 [19:10:15]SAM_PROTO_ClearQueue [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 09 00 00 [19:10:15]Write to MH i2c: E2 08 00 0E 3F 80 09 00 00 00 00 00 00 BF [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 0E 3F 00 90 00 C1 [19:10:15]RAPDU: 90 00 [19:10:15]wFMCommunicate OK [19:10:15]SAM_PROTO_ClearQueue done [19:10:15]KKMCreateOFDPacket [19:10:15]OFDProtocolAddRootSTLVToBuf [19:10:15]FM_MakeSignedData [19:10:15]FM_MakeSignedData [19:10:15]SAM_PROTO_SignData [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 0D 01 02 [19:10:15]Write to MH i2c: E2 08 00 0F 3F 80 0D 01 02 00 00 00 00 C7 [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 0F 3F 00 90 00 C2 [19:10:15]RAPDU: 90 00 [19:10:15]wFMCommunicate OK [19:10:15]wFMCommunicate request_size=255 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9C CB 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F1 E0 01 00 35 04 06 00 70 [19:10:15]Write to MH i2c: E2 02 01 10 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9C CB 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F1 E0 01 00 35 04 06 00 70 00 00 63 [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 10 3F 00 90 00 C3 [19:10:15]RAPDU: 90 00 [19:10:15]wFMCommunicate OK [19:10:15]wFMCommunicate request_size=10 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 0D 02 02 05 E9 28 4F 6C 7E [19:10:15]Write to MH i2c: E2 0D 00 11 3F 80 0D 02 02 05 00 E9 28 4F 6C 7E 00 00 1E [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 11 3F 00 90 00 C4 [19:10:15]RAPDU: 90 00 [19:10:15]wFMCommunicate OK [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 0D 03 02 [19:10:15]Write to MH i2c: E2 08 00 12 3F 80 0D 03 02 00 00 00 00 CC [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 0B 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 0B 00 12 3F 00 24 65 C9 E7 65 D2 E5 A7 90 00 C9 [19:10:15]RAPDU: 24 65 C9 E7 65 D2 E5 A7 90 00 [19:10:15]wFMCommunicate OK [19:10:15]SAM_PROTO_SignData done [19:10:15]FM_MakeSignedData done [19:10:15]CreateOFDProtocolMessage [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 11 00 00 [19:10:15]Write to MH i2c: E2 08 00 13 3F 80 11 00 00 00 00 00 00 CC [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 17 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 17 00 13 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 23 [19:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:10:15]wFMCommunicate OK [19:10:15]CreateOFDProtocolMessage done [19:10:15]OFDSenderStorePacket 123121 [19:10:15]StoreOFDPacket docnum=123121 [19:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1F 8C 07 01 47 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9C CB 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F1 E0 01 00 35 04 06 00 70 E9 28 4F 6C 7E 24 65 C9 E7 65 D2 E5 A7 [19:10:15]CheckFolder [19:10:15]dirname=/storage/ofd_packets [19:10:15]CheckFolder done [19:10:15]ProducePacketName [19:10:15]name=ofd_packets/00123121 [19:10:15]NVStorageSaveData ofd_packets/00123121 [19:10:15]File name is /storage/ofd_packets/00123121 [19:10:15]Write 301 bytes [19:10:15]NVStorageSaveData done [19:10:15]OFDSenderStorePacket done [19:10:15]KKMCreateOFDPacket done [19:10:15]NVStorageSaveData kkm_last_timestamp [19:10:15]File name is /storage/kkm_last_timestamp [19:10:15]Write 4 bytes [19:10:15]NVStorageSaveData done [19:10:15]ExternCall_PrintAddStr [19:10:15]wPrintStart [19:10:15]Write to MH i2c: 01 00 00 14 3F 53 [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: 01 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: 01 07 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: 01 07 00 14 3F 00 00 00 00 00 FF 0F 68 [19:10:15]RasterBufferAndPrint [19:10:15]line Счет N : (1)717917 [19:10:15]line ИНН: 02508201610067 [19:10:15]line Контрольно-Кассовый Чек [19:10:15]line ПРОДАЖА [19:10:15]line ТРК (МРК, ГНК) : 12 [19:10:15]line Товар: 2710124130 [19:10:15]line Аи-92-К-4 [19:10:15]line 3.710 * 67.40 [19:10:15]line = 250.05 [19:10:15]line НДС 12% НСП 1% [19:10:15]line > о реализуемом товаре [19:10:15]line ИТОГО: 250.05 [19:10:15]line НСП 1% : 2.21 [19:10:15]line НДС 12% : 26.55 [19:10:15]line Наличными: 0.00 [19:10:15]line Безнал.: 250.05 [19:10:15]line Место: АЗС № 64 "Партнер Нефть" [19:10:15]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:10:15]line СНО: Общий режим [19:10:15]line Чек 162 25.11.2024 19:10 [19:10:15]line Смена: 556 ФФД: 1.0 [19:10:15]line ЗНМ: 0300000033 [19:10:15]line РНМ: 0000000000092681 [19:10:15]line Версия ККМ: 001 [19:10:15]line Платежная система: Бакай Банк [19:10:15]line ФМ: 0000000000874881 [19:10:15]line ФД: 123121 [19:10:15]line ФПД: 124146705984638 [19:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T191020&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123121&fm=124146705984638&tin=02508201610067®Number=0000000000092681&sum=25005 [19:10:15]OFD Sender: Processing packet 123121 [packets to send 7, broken 6] [19:10:15]ProducePacketName [19:10:15]name=ofd_packets/00123121 [19:10:15]OFD Sender: To server: pG, [19:10:15]CommunicateWithHost lk.salyk.kg:30040 [19:10:15]ConnectInit lk.salyk.kg [19:10:15]written 0, free lines is 4095 [19:10:15]Connected sock=9 [19:10:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1F 8C 07 01 47 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9C CB 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F1 E0 01 00 35 04 06 00 70 E9 28 4F 6C 7E 24 65 C9 E7 65 D2 E5 A7 [19:10:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C8 A7 47 00 63 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F1 E0 01 00 F4 03 04 00 61 77 44 67 B6 04 01 00 00 C0 29 56 7C D6 31 FE BA [19:10:15]CommunicateWithHost err = 0 [19:10:15]CheckOFDResponse [19:10:15]1017 (14) - 77093643461234 [19:10:15]1041 (16) - 0000000000874881 [19:10:15]1040 (4) - 123121 [19:10:15]1012 (4) - 25.11.2024 13:10 [19:10:15]1206 (1) - 0 [19:10:15]OFD Sender: Remove packet 123121 [19:10:15]ProducePacketName [19:10:15]name=ofd_packets/00123121 [19:10:15]NVStorageDeleteData [19:10:16]Write to MH i2c: 01 00 00 3E 3F 7D [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: 01 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: 01 07 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: 01 07 00 3E 3F 00 00 00 00 00 5A 0C EA [19:10:16]RasterBufferAndPrint [19:10:16]line [19:10:16]line [19:10:16]line [19:10:16]line [19:10:16]line [19:10:16]written 0, free lines is 3167 [19:10:16]MH_Cut [19:10:16]Write to MH i2c: D1 01 00 45 3F 01 56 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: D1 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: D1 01 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: D1 01 00 45 3F 00 55 [19:10:16]Write to MH i2c: 01 00 00 46 3F 85 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]OFD Sender: No OFD packet to send [19:10:17]*** Cut start [19:10:17]*** Partial cut [19:10:17]*** CUTSNS_PIN = 1 [19:10:17]*** CUTSNS_PIN = 0 [19:10:17]*** Brake cut motor [19:10:18]Read from MH i2c: 01 [19:10:18]MH_I2C_Read... [19:10:18]*** Stop cut motor [19:10:18]*** Cut end [19:10:18]Read from MH i2c: 01 07 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: 01 07 00 46 3F 00 00 00 00 00 FF 0F 9A [19:10:18]process_action close_receipt done [19:10:18]requested_data is exist [19:10:18]produce_requested_data [19:10:18]requested_item fm.sn is exist - process it [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 11 00 00 [19:10:18]Write to MH i2c: E2 08 00 47 3F 80 11 00 00 00 00 00 00 00 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 17 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 17 00 47 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 57 [19:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:10:18]wFMCommunicate OK [19:10:18]requested_item fd.num is exist - process it [19:10:18]SAM_PROTO_GetFieldsCounters [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 13 00 00 [19:10:18]Write to MH i2c: E2 08 00 48 3F 80 13 00 00 00 00 00 00 03 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 62 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 62 00 48 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F1 E0 01 00 0E 04 04 00 2C 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 0F [19:10:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F1 E0 01 00 0E 04 04 00 2C 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 [19:10:18]wFMCommunicate OK [19:10:18]SAM_PROTO_GetFieldsCounters done [19:10:18]requested_item shift.num is exist - process it [19:10:18]requested_item shift.opened is exist - process it [19:10:18]req_shift_opened [19:10:18]FM_GetShiftState [19:10:18]SAM_PROTO_GetShiftState [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 13 01 00 [19:10:18]Write to MH i2c: E2 08 00 49 3F 80 13 01 00 00 00 00 00 05 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 0E 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 0E 00 49 3F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 84 [19:10:18]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:10:18]wFMCommunicate OK [19:10:18]SAM_PROTO_GetShiftState done [19:10:18]FM_GetShiftState done [19:10:18]req_shift_opened done [19:10:18]requested_item shift.open_date is exist - process it [19:10:18]req_shift_open_date [19:10:18]req_shift_open_date done [19:10:18]produce_requested_data done [19:10:18]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123121,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [19:10:18]process_action_free close_receipt [19:10:18]json_value_free [19:10:18]json_value_free done [19:10:18]process_json_proto returns [19:10:18]Send response to host [19:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123121,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [19:10:18]free response buf [19:10:18]execute_script done [19:10:18]execute_script returns [19:10:18]free content buf [19:10:18]Sock 10.Close socket [19:10:18]Sock 10.Thread stoped [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:11]accept exits with 7 [19:19:11]New connection [19:19:11]New thread 3066723684 created [19:19:11]Thread 3066580324 joined [19:19:11]Waiting for new connection... [19:19:11] Sock 7.Parse request [19:19:11]Sock 7.Check first char [19:19:11]Sock 7.First char is OK [19:19:11]request: POST /json_proto HTTP/1.0 [19:19:11]Method: POST [19:19:11]URL: /json_proto [19:19:11]Method is POST - this is cgi request [19:19:11]url: /json_proto [19:19:11]query_string will be loaded in cgi processing [19:19:11]execute_cgi json_proto POST (null) [19:19:11]execute_cgi path=json_proto method=POST [19:19:11]POST find Content-Length [19:19:11]Host: 172.17.37.4:8080 [19:19:11]Content-Length: 677 [19:19:11]Content-Type: application/json [19:19:11] [19:19:11]POST finish read [19:19:11]Found Content-Length = 677 [19:19:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:11]execute_script... [19:19:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:11]POST & json_proto [19:19:11]process_json_proto [19:19:11]json parsed OK: [19:19:11]protocol is kg_v1.0 [19:19:11]action value=close_receipt [19:19:11]process_action close_receipt [19:19:11]cmd_close_receipt [19:19:11]MH_GetDate [19:19:11]Write to MH i2c: F0 00 00 4A 3F 78 [19:19:11]Write i2c OK [19:19:11]MH_I2C_Read... [19:19:11]Read from MH i2c: F0 [19:19:11]MH_I2C_Read... [19:19:11]Read from MH i2c: F0 09 00 [19:19:11]MH_I2C_Read... [19:19:11]Read from MH i2c: F0 09 00 4A 3F 00 B6 CD 44 67 B8 5A 43 67 6B [19:19:11]GetLastDocTimeStamp 1732561820 [19:19:11]current date 1732562358 [19:19:11]FM_GetShiftState [19:19:11]SAM_PROTO_GetShiftState [19:19:11]wFMCommunicate request_size=4 [19:19:11]MH_SAM_APDU [19:19:11]CAPDU: 80 13 01 00 [19:19:11]Write to MH i2c: E2 08 00 4B 3F 80 13 01 00 00 00 00 00 07 [19:19:11]Write i2c OK [19:19:11]MH_I2C_Read... [19:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:11]Read from MH i2c: E2 [19:19:11]MH_I2C_Read... [19:19:11]Read from MH i2c: E2 0E 00 [19:19:11]MH_I2C_Read... [19:19:11]Read from MH i2c: E2 0E 00 4B 3F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 86 [19:19:11]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:19:11]wFMCommunicate OK [19:19:11]SAM_PROTO_GetShiftState done [19:19:11]FM_GetShiftState done [19:19:11]opened in 1732493066 [19:19:11]opened+sec_in_day 1732579466 [19:19:11]quantity*price = 50010 [19:19:11]sum+1 = 50012 [19:19:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 163 25.11.2024 19:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123122 ФПД: 194081969227459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T191918&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123122&fm=194081969227459&tin=02508201610067®Number=0000000000092681&sum=50000 [19:19:13]StoreToDocumentArchive [19:19:13]shift 556 fd 123122 [19:19:13]save to /storage/0556/doc_00123122 [19:19:13]save last doc name /storage/0556/doc_00123122 to /storage/kkm_last_doc_name [19:19:13]save OK [19:19:13]Clear old archive folders... [19:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:13]tlvbuf is 020A9B60 [19:19:13]SAM_PROTO_ClearQueue [19:19:13]wFMCommunicate request_size=4 [19:19:13]MH_SAM_APDU [19:19:13]CAPDU: 80 09 00 00 [19:19:13]Write to MH i2c: E2 08 00 58 3F 80 09 00 00 00 00 00 00 09 [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:13]Read from MH i2c: E2 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 58 3F 00 90 00 0B [19:19:13]RAPDU: 90 00 [19:19:13]wFMCommunicate OK [19:19:13]SAM_PROTO_ClearQueue done [19:19:13]KKMCreateOFDPacket [19:19:13]OFDProtocolAddRootSTLVToBuf [19:19:13]FM_MakeSignedData [19:19:13]FM_MakeSignedData [19:19:13]SAM_PROTO_SignData [19:19:13]wFMCommunicate request_size=4 [19:19:13]MH_SAM_APDU [19:19:13]CAPDU: 80 0D 01 02 [19:19:13]Write to MH i2c: E2 08 00 59 3F 80 0D 01 02 00 00 00 00 11 [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:13]Read from MH i2c: E2 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 59 3F 00 90 00 0C [19:19:13]RAPDU: 90 00 [19:19:13]wFMCommunicate OK [19:19:13]wFMCommunicate request_size=255 [19:19:13]MH_SAM_APDU [19:19:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B6 CD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F2 E0 01 00 35 04 06 00 B0 [19:19:13]Write to MH i2c: E2 02 01 5A 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B6 CD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F2 E0 01 00 35 04 06 00 B0 00 00 FA [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:13]Read from MH i2c: E2 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 5A 3F 00 90 00 0D [19:19:13]RAPDU: 90 00 [19:19:13]wFMCommunicate OK [19:19:13]wFMCommunicate request_size=10 [19:19:13]MH_SAM_APDU [19:19:13]CAPDU: 80 0D 02 02 05 84 3A D5 46 C3 [19:19:13]Write to MH i2c: E2 0D 00 5B 3F 80 0D 02 02 05 00 84 3A D5 46 C3 00 00 BA [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:13]Read from MH i2c: E2 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 5B 3F 00 90 00 0E [19:19:13]RAPDU: 90 00 [19:19:13]wFMCommunicate OK [19:19:13]wFMCommunicate request_size=4 [19:19:13]MH_SAM_APDU [19:19:13]CAPDU: 80 0D 03 02 [19:19:13]Write to MH i2c: E2 08 00 5C 3F 80 0D 03 02 00 00 00 00 16 [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:13]Read from MH i2c: E2 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 0B 00 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 0B 00 5C 3F 00 17 7B A1 5E EA AE 62 FE 90 00 A0 [19:19:13]RAPDU: 17 7B A1 5E EA AE 62 FE 90 00 [19:19:13]wFMCommunicate OK [19:19:13]SAM_PROTO_SignData done [19:19:13]FM_MakeSignedData done [19:19:13]CreateOFDProtocolMessage [19:19:13]wFMCommunicate request_size=4 [19:19:13]MH_SAM_APDU [19:19:13]CAPDU: 80 11 00 00 [19:19:13]Write to MH i2c: E2 08 00 5D 3F 80 11 00 00 00 00 00 00 16 [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:13]Read from MH i2c: E2 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 17 00 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 17 00 5D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6D [19:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:19:13]wFMCommunicate OK [19:19:13]CreateOFDProtocolMessage done [19:19:13]OFDSenderStorePacket 123122 [19:19:13]StoreOFDPacket docnum=123122 [19:19:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3F CA 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B6 CD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F2 E0 01 00 35 04 06 00 B0 84 3A D5 46 C3 17 7B A1 5E EA AE 62 FE [19:19:13]CheckFolder [19:19:13]dirname=/storage/ofd_packets [19:19:13]CheckFolder done [19:19:13]ProducePacketName [19:19:13]name=ofd_packets/00123122 [19:19:13]NVStorageSaveData ofd_packets/00123122 [19:19:13]File name is /storage/ofd_packets/00123122 [19:19:13]Write 301 bytes [19:19:13]NVStorageSaveData done [19:19:13]OFDSenderStorePacket done [19:19:13]KKMCreateOFDPacket done [19:19:13]NVStorageSaveData kkm_last_timestamp [19:19:13]File name is /storage/kkm_last_timestamp [19:19:13]Write 4 bytes [19:19:13]NVStorageSaveData done [19:19:13]ExternCall_PrintAddStr [19:19:13]wPrintStart [19:19:13]Write to MH i2c: 01 00 00 5E 3F 9D [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: 01 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: 01 07 00 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: 01 07 00 5E 3F 00 00 00 00 00 FF 0F B2 [19:19:13]RasterBufferAndPrint [19:19:13]line Счет N : (1)717918 [19:19:13]line ИНН: 02508201610067 [19:19:13]line Контрольно-Кассовый Чек [19:19:13]line ПРОДАЖА [19:19:13]line ТРК (МРК, ГНК) : 22 [19:19:13]line Товар: 2710124130 [19:19:13]line Аи-92-К-4 [19:19:13]line 7.420 * 67.40 [19:19:13]line = 500.11 [19:19:13]line НДС 12% НСП 1% [19:19:13]line > о реализуемом товаре [19:19:13]line ОКРУГЛЕНИЕ: -0.11 [19:19:13]line ИТОГО: 500.00 [19:19:13]line Внесено: 500.00 [19:19:13]line СДАЧА: 0.00 [19:19:13]line НСП 1% : 4.43 [19:19:13]line НДС 12% : 53.11 [19:19:13]line Наличными: 500.00 [19:19:13]line Безнал.: 0.00 [19:19:13]line Место: АЗС № 64 "Партнер Нефть" [19:19:13]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:19:13]line СНО: Общий режим [19:19:13]line Чек 163 25.11.2024 19:19 [19:19:13]line Смена: 556 ФФД: 1.0 [19:19:13]line ЗНМ: 0300000033 [19:19:13]line РНМ: 0000000000092681 [19:19:13]line Версия ККМ: 001 [19:19:13]line ФМ: 0000000000874881 [19:19:13]line ФД: 123122 [19:19:13]line ФПД: 194081969227459 [19:19:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T191918&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123122&fm=194081969227459&tin=02508201610067®Number=0000000000092681&sum=50000 [19:19:13]OFD Sender: Processing packet 123122 [packets to send 7, broken 6] [19:19:13]ProducePacketName [19:19:13]name=ofd_packets/00123122 [19:19:13]OFD Sender: To server: pG, [19:19:13]CommunicateWithHost lk.salyk.kg:30040 [19:19:13]ConnectInit lk.salyk.kg [19:19:13]written 0, free lines is 4095 [19:19:13]Connected sock=10 [19:19:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3F CA 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B6 CD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F2 E0 01 00 35 04 06 00 B0 84 3A D5 46 C3 17 7B A1 5E EA AE 62 FE [19:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 13 EC 47 00 23 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 34 38 38 31 10 04 04 00 F2 E0 01 00 F4 03 04 00 7B 79 44 67 B6 04 01 00 00 26 33 74 04 9E 2F F7 8F [19:19:14]CommunicateWithHost err = 0 [19:19:14]CheckOFDResponse [19:19:14]1017 (14) - 77093643461234 [19:19:14]1041 (16) - 0000000000874881 [19:19:14]1040 (4) - 123122 [19:19:14]1012 (4) - 25.11.2024 13:19 [19:19:14]1206 (1) - 0 [19:19:14]OFD Sender: Remove packet 123122 [19:19:14]ProducePacketName [19:19:14]name=ofd_packets/00123122 [19:19:14]NVStorageDeleteData [19:19:14]Write to MH i2c: 01 00 00 89 3F C8 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: 01 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: 01 07 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: 01 07 00 89 3F 00 00 00 00 00 50 0C 2B [19:19:14]RasterBufferAndPrint [19:19:14]line [19:19:14]line [19:19:14]line [19:19:14]line [19:19:14]line [19:19:14]written 0, free lines is 3156 [19:19:14]MH_Cut [19:19:14]Write to MH i2c: D1 01 00 90 3F 01 A1 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: D1 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: D1 01 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: D1 01 00 90 3F 00 A0 [19:19:14]Write to MH i2c: 01 00 00 91 3F D0 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]OFD Sender: No OFD packet to send [19:19:15]*** Cut start [19:19:15]*** Partial cut [19:19:15]*** CUTSNS_PIN = 1 [19:19:15]*** CUTSNS_PIN = 0 [19:19:16]*** Brake cut motor [19:19:16]Read from MH i2c: 01 [19:19:16]MH_I2C_Read... [19:19:16]*** Stop cut motor [19:19:16]*** Cut end [19:19:16]Read from MH i2c: 01 07 00 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: 01 07 00 91 3F 00 00 00 00 00 FF 0F E5 [19:19:16]process_action close_receipt done [19:19:16]requested_data is exist [19:19:16]produce_requested_data [19:19:16]requested_item fm.sn is exist - process it [19:19:16]wFMCommunicate request_size=4 [19:19:16]MH_SAM_APDU [19:19:16]CAPDU: 80 11 00 00 [19:19:16]Write to MH i2c: E2 08 00 92 3F 80 11 00 00 00 00 00 00 4B [19:19:16]Write i2c OK [19:19:16]MH_I2C_Read... [19:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:16]Read from MH i2c: E2 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 17 00 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 17 00 92 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A2 [19:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:19:16]wFMCommunicate OK [19:19:16]requested_item fd.num is exist - process it [19:19:16]SAM_PROTO_GetFieldsCounters [19:19:16]wFMCommunicate request_size=4 [19:19:16]MH_SAM_APDU [19:19:16]CAPDU: 80 13 00 00 [19:19:16]Write to MH i2c: E2 08 00 93 3F 80 13 00 00 00 00 00 00 4E [19:19:16]Write i2c OK [19:19:16]MH_I2C_Read... [19:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:16]Read from MH i2c: E2 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 62 00 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 62 00 93 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F2 E0 01 00 0E 04 04 00 2C 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 5E [19:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F2 E0 01 00 0E 04 04 00 2C 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 [19:19:16]wFMCommunicate OK [19:19:16]SAM_PROTO_GetFieldsCounters done [19:19:16]requested_item shift.num is exist - process it [19:19:16]requested_item shift.opened is exist - process it [19:19:16]req_shift_opened [19:19:16]FM_GetShiftState [19:19:16]SAM_PROTO_GetShiftState [19:19:16]wFMCommunicate request_size=4 [19:19:16]MH_SAM_APDU [19:19:16]CAPDU: 80 13 01 00 [19:19:16]Write to MH i2c: E2 08 00 94 3F 80 13 01 00 00 00 00 00 50 [19:19:16]Write i2c OK [19:19:16]MH_I2C_Read... [19:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:16]Read from MH i2c: E2 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 0E 00 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 0E 00 94 3F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 CF [19:19:16]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:19:16]wFMCommunicate OK [19:19:16]SAM_PROTO_GetShiftState done [19:19:16]FM_GetShiftState done [19:19:16]req_shift_opened done [19:19:16]requested_item shift.open_date is exist - process it [19:19:16]req_shift_open_date [19:19:16]req_shift_open_date done [19:19:16]produce_requested_data done [19:19:16]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123122,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [19:19:16]process_action_free close_receipt [19:19:16]json_value_free [19:19:16]json_value_free done [19:19:16]process_json_proto returns [19:19:16]Send response to host [19:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123122,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [19:19:16]free response buf [19:19:16]execute_script done [19:19:16]execute_script returns [19:19:16]free content buf [19:19:16]Sock 7.Close socket [19:19:16]Sock 7.Thread stoped [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [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:48]accept exits with 9 [19:24:48]New connection [19:24:48]New thread 3066580324 created [19:24:48]Thread 3066723684 joined [19:24:48]Waiting for new connection... [19:24:48] Sock 9.Parse request [19:24:48]Sock 9.Check first char [19:24:48]Sock 9.First char is OK [19:24:48]request: POST /json_proto HTTP/1.0 [19:24:48]Method: POST [19:24:48]URL: /json_proto [19:24:48]Method is POST - this is cgi request [19:24:48]url: /json_proto [19:24:48]query_string will be loaded in cgi processing [19:24:48]execute_cgi json_proto POST (null) [19:24:48]execute_cgi path=json_proto method=POST [19:24:48]POST find Content-Length [19:24:48]Host: 172.17.37.4:8080 [19:24:48]Content-Length: 677 [19:24:48]Content-Type: application/json [19:24:48] [19:24:48]POST finish read [19:24:48]Found Content-Length = 677 [19:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.750, "sum" : 320.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:48]execute_script... [19:24: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)717919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.750, "sum" : 320.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:48]POST & json_proto [19:24:48]process_json_proto [19:24:48]json parsed OK: [19:24:48]protocol is kg_v1.0 [19:24:48]action value=close_receipt [19:24:48]process_action close_receipt [19:24:48]cmd_close_receipt [19:24:48]MH_GetDate [19:24:48]Write to MH i2c: F0 00 00 95 3F C3 [19:24:48]Write i2c OK [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: F0 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: F0 09 00 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: F0 09 00 95 3F 00 07 CF 44 67 B8 5A 43 67 09 [19:24:48]GetLastDocTimeStamp 1732562358 [19:24:48]current date 1732562695 [19:24:48]FM_GetShiftState [19:24:48]SAM_PROTO_GetShiftState [19:24:48]wFMCommunicate request_size=4 [19:24:48]MH_SAM_APDU [19:24:48]CAPDU: 80 13 01 00 [19:24:48]Write to MH i2c: E2 08 00 96 3F 80 13 01 00 00 00 00 00 52 [19:24:48]Write i2c OK [19:24:48]MH_I2C_Read... [19:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:48]Read from MH i2c: E2 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 0E 00 [19:24:48]MH_I2C_Read... [19:24:48]Read from MH i2c: E2 0E 00 96 3F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D1 [19:24:48]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:24:48]wFMCommunicate OK [19:24:48]SAM_PROTO_GetShiftState done [19:24:48]FM_GetShiftState done [19:24:48]opened in 1732493066 [19:24:48]opened+sec_in_day 1732579466 [19:24:48]quantity*price = 32015 [19:24:48]sum+1 = 32016 [19:24:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 34.00 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 164 25.11.2024 19:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123123 ФПД: 43663677926131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T192455&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123123&fm=43663677926131&tin=02508201610067®Number=0000000000092681&sum=32000 [19:24:50]StoreToDocumentArchive [19:24:50]shift 556 fd 123123 [19:24:50]save to /storage/0556/doc_00123123 [19:24:50]save last doc name /storage/0556/doc_00123123 to /storage/kkm_last_doc_name [19:24:50]save OK [19:24:50]Clear old archive folders... [19:24:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:50]tlvbuf is 01F46EB0 [19:24:50]SAM_PROTO_ClearQueue [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 09 00 00 [19:24:50]Write to MH i2c: E2 08 00 A3 3F 80 09 00 00 00 00 00 00 54 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 A3 3F 00 90 00 56 [19:24:50]RAPDU: 90 00 [19:24:50]wFMCommunicate OK [19:24:50]SAM_PROTO_ClearQueue done [19:24:50]KKMCreateOFDPacket [19:24:50]OFDProtocolAddRootSTLVToBuf [19:24:50]FM_MakeSignedData [19:24:50]FM_MakeSignedData [19:24:50]SAM_PROTO_SignData [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 0D 01 02 [19:24:50]Write to MH i2c: E2 08 00 A4 3F 80 0D 01 02 00 00 00 00 5C [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 A4 3F 00 90 00 57 [19:24:50]RAPDU: 90 00 [19:24:50]wFMCommunicate OK [19:24:50]wFMCommunicate request_size=255 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 07 CF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F3 E0 01 00 35 04 06 00 27 [19:24:50]Write to MH i2c: E2 02 01 A5 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 07 CF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F3 E0 01 00 35 04 06 00 27 00 00 BD [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 A5 3F 00 90 00 58 [19:24:50]RAPDU: 90 00 [19:24:50]wFMCommunicate OK [19:24:50]wFMCommunicate request_size=10 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 0D 02 02 05 B6 3E 03 2A F3 [19:24:50]Write to MH i2c: E2 0D 00 A6 3F 80 0D 02 02 05 00 B6 3E 03 2A F3 00 00 7D [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 03 00 A6 3F 00 90 00 59 [19:24:50]RAPDU: 90 00 [19:24:50]wFMCommunicate OK [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 0D 03 02 [19:24:50]Write to MH i2c: E2 08 00 A7 3F 80 0D 03 02 00 00 00 00 61 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 0B 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 0B 00 A7 3F 00 83 A2 4B 4C 7D A1 2F 0E 90 00 79 [19:24:50]RAPDU: 83 A2 4B 4C 7D A1 2F 0E 90 00 [19:24:50]wFMCommunicate OK [19:24:50]SAM_PROTO_SignData done [19:24:50]FM_MakeSignedData done [19:24:50]CreateOFDProtocolMessage [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 11 00 00 [19:24:50]Write to MH i2c: E2 08 00 A8 3F 80 11 00 00 00 00 00 00 61 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 17 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 17 00 A8 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B8 [19:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:24:50]wFMCommunicate OK [19:24:50]CreateOFDProtocolMessage done [19:24:50]OFDSenderStorePacket 123123 [19:24:50]StoreOFDPacket docnum=123123 [19:24:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 00 87 07 01 1F F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 07 CF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F3 E0 01 00 35 04 06 00 27 B6 3E 03 2A F3 83 A2 4B 4C 7D A1 2F 0E [19:24:50]CheckFolder [19:24:50]dirname=/storage/ofd_packets [19:24:50]CheckFolder done [19:24:50]ProducePacketName [19:24:50]name=ofd_packets/00123123 [19:24:50]NVStorageSaveData ofd_packets/00123123 [19:24:50]File name is /storage/ofd_packets/00123123 [19:24:50]Write 301 bytes [19:24:50]NVStorageSaveData done [19:24:50]OFDSenderStorePacket done [19:24:50]KKMCreateOFDPacket done [19:24:50]NVStorageSaveData kkm_last_timestamp [19:24:50]File name is /storage/kkm_last_timestamp [19:24:50]Write 4 bytes [19:24:50]NVStorageSaveData done [19:24:50]ExternCall_PrintAddStr [19:24:50]wPrintStart [19:24:50]Write to MH i2c: 01 00 00 A9 3F E8 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: 01 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: 01 07 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: 01 07 00 A9 3F 00 00 00 00 00 FF 0F FD [19:24:50]RasterBufferAndPrint [19:24:50]line Счет N : (1)717919 [19:24:50]line ИНН: 02508201610067 [19:24:50]line Контрольно-Кассовый Чек [19:24:50]line ПРОДАЖА [19:24:50]line ТРК (МРК, ГНК) : 32 [19:24:50]line Товар: 2710124130 [19:24:50]line Аи-92-К-4 [19:24:50]line 4.750 * 67.40 [19:24:50]line = 320.15 [19:24:50]line НДС 12% НСП 1% [19:24:50]line > о реализуемом товаре [19:24:50]line ОКРУГЛЕНИЕ: -0.15 [19:24:50]line ИТОГО: 320.00 [19:24:50]line Внесено: 320.00 [19:24:50]line СДАЧА: 0.00 [19:24:50]line НСП 1% : 2.83 [19:24:50]line НДС 12% : 34.00 [19:24:50]line Наличными: 320.00 [19:24:50]line Безнал.: 0.00 [19:24:50]line Место: АЗС № 64 "Партнер Нефть" [19:24:50]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:24:50]line СНО: Общий режим [19:24:50]line Чек 164 25.11.2024 19:24 [19:24:50]line Смена: 556 ФФД: 1.0 [19:24:50]line ЗНМ: 0300000033 [19:24:50]line РНМ: 0000000000092681 [19:24:50]line Версия ККМ: 001 [19:24:50]line ФМ: 0000000000874881 [19:24:50]line ФД: 123123 [19:24:50]line ФПД: 43663677926131 [19:24:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T192455&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123123&fm=43663677926131&tin=02508201610067®Number=0000000000092681&sum=32000 [19:24:50]OFD Sender: Processing packet 123123 [packets to send 7, broken 6] [19:24:50]ProducePacketName [19:24:50]name=ofd_packets/00123123 [19:24:50]OFD Sender: To server: pG, [19:24:50]CommunicateWithHost lk.salyk.kg:30040 [19:24:50]ConnectInit lk.salyk.kg [19:24:50]written 0, free lines is 4095 [19:24:51]Write to MH i2c: 01 00 00 D4 3F 13 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: 01 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: 01 07 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: 01 07 00 D4 3F 00 00 00 00 00 49 0C 6F [19:24:51]RasterBufferAndPrint [19:24:51]line [19:24:51]line [19:24:51]line [19:24:51]line [19:24:51]line [19:24:51]written 0, free lines is 3148 [19:24:51]MH_Cut [19:24:51]Write to MH i2c: D1 01 00 DB 3F 01 EC [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: D1 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: D1 01 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: D1 01 00 DB 3F 00 EB [19:24:51]Write to MH i2c: 01 00 00 DC 3F 1B [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:52]*** Cut start [19:24:52]*** Partial cut [19:24:52]*** CUTSNS_PIN = 1 [19:24:52]*** CUTSNS_PIN = 0 [19:24:53]*** Brake cut motor [19:24:53]Read from MH i2c: 01 [19:24:53]MH_I2C_Read... [19:24:53]*** Stop cut motor [19:24:53]*** Cut end [19:24:53]Read from MH i2c: 01 07 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: 01 07 00 DC 3F 00 00 00 00 00 FF 0F 30 [19:24:53]process_action close_receipt done [19:24:53]requested_data is exist [19:24:53]produce_requested_data [19:24:53]requested_item fm.sn is exist - process it [19:24:53]wFMCommunicate request_size=4 [19:24:53]MH_SAM_APDU [19:24:53]CAPDU: 80 11 00 00 [19:24:53]Write to MH i2c: E2 08 00 DD 3F 80 11 00 00 00 00 00 00 96 [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:53]Read from MH i2c: E2 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 17 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 17 00 DD 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 ED [19:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:24:53]wFMCommunicate OK [19:24:53]requested_item fd.num is exist - process it [19:24:53]SAM_PROTO_GetFieldsCounters [19:24:53]wFMCommunicate request_size=4 [19:24:53]MH_SAM_APDU [19:24:53]CAPDU: 80 13 00 00 [19:24:53]Write to MH i2c: E2 08 00 DE 3F 80 13 00 00 00 00 00 00 99 [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:53]Read from MH i2c: E2 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 62 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 62 00 DE 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F3 E0 01 00 0E 04 04 00 2C 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 AD [19:24:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F3 E0 01 00 0E 04 04 00 2C 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 [19:24:53]wFMCommunicate OK [19:24:53]SAM_PROTO_GetFieldsCounters done [19:24:53]requested_item shift.num is exist - process it [19:24:53]requested_item shift.opened is exist - process it [19:24:53]req_shift_opened [19:24:53]FM_GetShiftState [19:24:53]SAM_PROTO_GetShiftState [19:24:53]wFMCommunicate request_size=4 [19:24:53]MH_SAM_APDU [19:24:53]CAPDU: 80 13 01 00 [19:24:53]Write to MH i2c: E2 08 00 DF 3F 80 13 01 00 00 00 00 00 9B [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:53]Read from MH i2c: E2 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 0E 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 0E 00 DF 3F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1A [19:24:53]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:24:53]wFMCommunicate OK [19:24:53]SAM_PROTO_GetShiftState done [19:24:53]FM_GetShiftState done [19:24:53]req_shift_opened done [19:24:53]requested_item shift.open_date is exist - process it [19:24:53]req_shift_open_date [19:24:53]req_shift_open_date done [19:24:53]produce_requested_data done [19:24:53]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123123,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [19:24:53]process_action_free close_receipt [19:24:53]json_value_free [19:24:53]json_value_free done [19:24:53]process_json_proto returns [19:24:53]Send response to host [19:24:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123123,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [19:24:53]free response buf [19:24:53]execute_script done [19:24:53]execute_script returns [19:24:53]free content buf [19:24:53]Sock 9.Close socket [19:24:53]Sock 9.Thread stoped [19:26:14]accept exits with 7 [19:26:14]New connection [19:26:14]New thread 3066723684 created [19:26:14]Thread 3066580324 joined [19:26:14]Waiting for new connection... [19:26:14] Sock 7.Parse request [19:26:14]Sock 7.Check first char [19:26:14]Sock 7.First char is OK [19:26:14]request: POST /json_proto HTTP/1.0 [19:26:14]Method: POST [19:26:14]URL: /json_proto [19:26:14]Method is POST - this is cgi request [19:26:14]url: /json_proto [19:26:14]query_string will be loaded in cgi processing [19:26:14]execute_cgi json_proto POST (null) [19:26:14]execute_cgi path=json_proto method=POST [19:26:14]POST find Content-Length [19:26:14]Host: 172.17.37.4:8080 [19:26:14]Content-Length: 677 [19:26:14]Content-Type: application/json [19:26:14] [19:26:14]POST finish read [19:26:14]Found Content-Length = 677 [19:26:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 5.310, "sum" : 400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:14]execute_script... [19:26: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)717920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 5.310, "sum" : 400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:14]POST & json_proto [19:26:14]process_json_proto [19:26:14]json parsed OK: [19:26:14]protocol is kg_v1.0 [19:26:14]action value=close_receipt [19:26:14]process_action close_receipt [19:26:14]cmd_close_receipt [19:26:14]MH_GetDate [19:26:14]Write to MH i2c: F0 00 00 E0 3F 0E [19:26:14]Write i2c OK [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: F0 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: F0 09 00 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: F0 09 00 E0 3F 00 5C CF 44 67 B8 5A 43 67 A9 [19:26:14]GetLastDocTimeStamp 1732562695 [19:26:14]current date 1732562780 [19:26:14]FM_GetShiftState [19:26:14]SAM_PROTO_GetShiftState [19:26:14]wFMCommunicate request_size=4 [19:26:14]MH_SAM_APDU [19:26:14]CAPDU: 80 13 01 00 [19:26:14]Write to MH i2c: E2 08 00 E1 3F 80 13 01 00 00 00 00 00 9D [19:26:14]Write i2c OK [19:26:14]MH_I2C_Read... [19:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:14]Read from MH i2c: E2 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 0E 00 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 0E 00 E1 3F 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 1C [19:26:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:26:14]wFMCommunicate OK [19:26:14]SAM_PROTO_GetShiftState done [19:26:14]FM_GetShiftState done [19:26:14]opened in 1732493066 [19:26:14]opened+sec_in_day 1732579466 [19:26:14]quantity*price = 40037 [19:26:14]sum+1 = 40038 [19:26:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 165 25.11.2024 19:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123124 ФПД: 247720689294340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T192620&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123124&fm=247720689294340&tin=02508201610067®Number=0000000000092681&sum=40000 [19:26:15]StoreToDocumentArchive [19:26:15]shift 556 fd 123124 [19:26:15]save to /storage/0556/doc_00123124 [19:26:15]save last doc name /storage/0556/doc_00123124 to /storage/kkm_last_doc_name [19:26:15]save OK [19:26:15]Clear old archive folders... [19:26:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:15]tlvbuf is 02139040 [19:26:15]SAM_PROTO_ClearQueue [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 09 00 00 [19:26:15]Write to MH i2c: E2 08 00 EE 3F 80 09 00 00 00 00 00 00 9F [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 03 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 03 00 EE 3F 00 90 00 A1 [19:26:15]RAPDU: 90 00 [19:26:15]wFMCommunicate OK [19:26:15]SAM_PROTO_ClearQueue done [19:26:15]KKMCreateOFDPacket [19:26:15]OFDProtocolAddRootSTLVToBuf [19:26:15]FM_MakeSignedData [19:26:15]FM_MakeSignedData [19:26:15]SAM_PROTO_SignData [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 0D 01 02 [19:26:15]Write to MH i2c: E2 08 00 EF 3F 80 0D 01 02 00 00 00 00 A7 [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 03 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 03 00 EF 3F 00 90 00 A2 [19:26:15]RAPDU: 90 00 [19:26:15]wFMCommunicate OK [19:26:15]wFMCommunicate request_size=255 [19:26:15]MH_SAM_APDU [19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 65 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 9C 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 5C CF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F4 E0 01 00 35 04 06 00 E1 [19:26:15]Write to MH i2c: E2 02 01 F0 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 65 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 9C 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 5C CF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F4 E0 01 00 35 04 06 00 E1 00 00 44 [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 03 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 03 00 F0 3F 00 90 00 A3 [19:26:15]RAPDU: 90 00 [19:26:15]wFMCommunicate OK [19:26:15]wFMCommunicate request_size=10 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 0D 02 02 05 4C F7 B0 5C 04 [19:26:15]Write to MH i2c: E2 0D 00 F1 3F 80 0D 02 02 05 00 4C F7 B0 5C 04 00 00 07 [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 03 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 03 00 F1 3F 00 90 00 A4 [19:26:15]RAPDU: 90 00 [19:26:15]wFMCommunicate OK [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 0D 03 02 [19:26:15]Write to MH i2c: E2 08 00 F2 3F 80 0D 03 02 00 00 00 00 AC [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 0B 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 0B 00 F2 3F 00 77 C6 A0 06 CD 4D A4 88 90 00 D6 [19:26:15]RAPDU: 77 C6 A0 06 CD 4D A4 88 90 00 [19:26:15]wFMCommunicate OK [19:26:15]SAM_PROTO_SignData done [19:26:15]FM_MakeSignedData done [19:26:15]CreateOFDProtocolMessage [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 11 00 00 [19:26:15]Write to MH i2c: E2 08 00 F3 3F 80 11 00 00 00 00 00 00 AC [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 17 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 17 00 F3 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 03 [19:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:26:15]wFMCommunicate OK [19:26:15]CreateOFDProtocolMessage done [19:26:15]OFDSenderStorePacket 123124 [19:26:15]StoreOFDPacket docnum=123124 [19:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 BF 75 07 01 8A 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 65 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 9C 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 5C CF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F4 E0 01 00 35 04 06 00 E1 4C F7 B0 5C 04 77 C6 A0 06 CD 4D A4 88 [19:26:15]CheckFolder [19:26:15]dirname=/storage/ofd_packets [19:26:15]CheckFolder done [19:26:15]ProducePacketName [19:26:15]name=ofd_packets/00123124 [19:26:15]NVStorageSaveData ofd_packets/00123124 [19:26:15]File name is /storage/ofd_packets/00123124 [19:26:15]Write 301 bytes [19:26:15]NVStorageSaveData done [19:26:15]OFDSenderStorePacket done [19:26:15]KKMCreateOFDPacket done [19:26:15]NVStorageSaveData kkm_last_timestamp [19:26:15]File name is /storage/kkm_last_timestamp [19:26:15]Write 4 bytes [19:26:15]NVStorageSaveData done [19:26:15]ExternCall_PrintAddStr [19:26:15]wPrintStart [19:26:15]Write to MH i2c: 01 00 00 F4 3F 33 [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: 01 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: 01 07 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: 01 07 00 F4 3F 00 00 00 00 00 FF 0F 48 [19:26:15]RasterBufferAndPrint [19:26:15]line Счет N : (1)717920 [19:26:15]line ИНН: 02508201610067 [19:26:15]line Контрольно-Кассовый Чек [19:26:15]line ПРОДАЖА [19:26:15]line ТРК (МРК, ГНК) : 11 [19:26:15]line Товар: 2710124500 [19:26:15]line Аи-95-К-5 [19:26:15]line 5.310 * 75.40 [19:26:15]line = 400.37 [19:26:15]line НДС 12% НСП 1% [19:26:15]line > о реализуемом товаре [19:26:15]line ОКРУГЛЕНИЕ: -0.37 [19:26:15]line ИТОГО: 400.00 [19:26:15]line Внесено: 400.00 [19:26:15]line СДАЧА: 0.00 [19:26:15]line НСП 1% : 3.54 [19:26:15]line НДС 12% : 42.52 [19:26:15]line Наличными: 400.00 [19:26:15]line Безнал.: 0.00 [19:26:15]line Место: АЗС № 64 "Партнер Нефть" [19:26:15]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:26:15]line СНО: Общий режим [19:26:15]line Чек 165 25.11.2024 19:26 [19:26:15]line Смена: 556 ФФД: 1.0 [19:26:15]line ЗНМ: 0300000033 [19:26:15]line РНМ: 0000000000092681 [19:26:15]line Версия ККМ: 001 [19:26:15]line ФМ: 0000000000874881 [19:26:15]line ФД: 123124 [19:26:15]line ФПД: 247720689294340 [19:26:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T192620&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123124&fm=247720689294340&tin=02508201610067®Number=0000000000092681&sum=40000 [19:26:15]written 0, free lines is 4095 [19:26:16]Write to MH i2c: 01 00 00 1F 40 5F [19:26:16]Write i2c OK [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: 01 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: 01 07 00 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: 01 07 00 1F 40 00 00 00 00 00 46 0C B8 [19:26:16]RasterBufferAndPrint [19:26:16]line [19:26:16]line [19:26:16]line [19:26:16]line [19:26:16]line [19:26:16]written 0, free lines is 3146 [19:26:16]MH_Cut [19:26:16]Write to MH i2c: D1 01 00 26 40 01 38 [19:26:16]Write i2c OK [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: D1 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: D1 01 00 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: D1 01 00 26 40 00 37 [19:26:16]Write to MH i2c: 01 00 00 27 40 67 [19:26:16]Write i2c OK [19:26:16]MH_I2C_Read... [19:26:17]*** Cut start [19:26:17]*** Partial cut [19:26:17]*** CUTSNS_PIN = 1 [19:26:17]*** CUTSNS_PIN = 0 [19:26:17]*** Brake cut motor [19:26:18]Read from MH i2c: 01 [19:26:18]MH_I2C_Read... [19:26:18]*** Stop cut motor [19:26:18]*** Cut end [19:26:18]Read from MH i2c: 01 07 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: 01 07 00 27 40 00 00 00 00 00 FF 0F 7C [19:26:18]process_action close_receipt done [19:26:18]requested_data is exist [19:26:18]produce_requested_data [19:26:18]requested_item fm.sn is exist - process it [19:26:18]wFMCommunicate request_size=4 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 11 00 00 [19:26:18]Write to MH i2c: E2 08 00 28 40 80 11 00 00 00 00 00 00 E2 [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 17 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 17 00 28 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 39 [19:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:26:18]wFMCommunicate OK [19:26:18]requested_item fd.num is exist - process it [19:26:18]SAM_PROTO_GetFieldsCounters [19:26:18]wFMCommunicate request_size=4 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 13 00 00 [19:26:18]Write to MH i2c: E2 08 00 29 40 80 13 00 00 00 00 00 00 E5 [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 62 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 62 00 29 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F4 E0 01 00 0E 04 04 00 2C 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 FD [19:26:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F4 E0 01 00 0E 04 04 00 2C 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 [19:26:18]wFMCommunicate OK [19:26:18]SAM_PROTO_GetFieldsCounters done [19:26:18]requested_item shift.num is exist - process it [19:26:18]requested_item shift.opened is exist - process it [19:26:18]req_shift_opened [19:26:18]FM_GetShiftState [19:26:18]SAM_PROTO_GetShiftState [19:26:18]wFMCommunicate request_size=4 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 13 01 00 [19:26:18]Write to MH i2c: E2 08 00 2A 40 80 13 01 00 00 00 00 00 E7 [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 0E 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 0E 00 2A 40 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 66 [19:26:18]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:26:18]wFMCommunicate OK [19:26:18]SAM_PROTO_GetShiftState done [19:26:18]FM_GetShiftState done [19:26:18]req_shift_opened done [19:26:18]requested_item shift.open_date is exist - process it [19:26:18]req_shift_open_date [19:26:18]req_shift_open_date done [19:26:18]produce_requested_data done [19:26:18]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123124,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [19:26:18]process_action_free close_receipt [19:26:18]json_value_free [19:26:18]json_value_free done [19:26:18]process_json_proto returns [19:26:18]Send response to host [19:26:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123124,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [19:26:18]free response buf [19:26:18]execute_script done [19:26:18]execute_script returns [19:26:18]free content buf [19:26:18]Sock 7.Close socket [19:26:18]Sock 7.Thread stoped [19:27:01]ConnectInit Can't connect to host [19:27:01]CommunicateWithHost connect error [19:27:01]CommunicateWithHost err = -1 [19:27:01]OFD Sender: Server communicate error [19:27:01]OFD Sender: Processing packet 123123 [packets to send 8, broken 6] [19:27:01]ProducePacketName [19:27:01]name=ofd_packets/00123123 [19:27:01]OFD Sender: To server: pG, [19:27:01]CommunicateWithHost lk.salyk.kg:30040 [19:27:01]ConnectInit lk.salyk.kg [19:27:01]Connected sock=7 [19:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 00 87 07 01 1F F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 07 CF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F3 E0 01 00 35 04 06 00 27 B6 3E 03 2A F3 83 A2 4B 4C 7D A1 2F 0E [19:27:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 36 F9 47 00 18 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 34 38 38 31 10 04 04 00 F3 E0 01 00 F4 03 04 00 4F 7B 44 67 B6 04 01 00 00 A2 E8 3B E2 52 B1 2D 96 [19:27:02]CommunicateWithHost err = 0 [19:27:02]CheckOFDResponse [19:27:02]1017 (14) - 77093643461234 [19:27:02]1041 (16) - 0000000000874881 [19:27:02]1040 (4) - 123123 [19:27:02]1012 (4) - 25.11.2024 13:27 [19:27:02]1206 (1) - 0 [19:27:02]OFD Sender: Remove packet 123123 [19:27:02]ProducePacketName [19:27:02]name=ofd_packets/00123123 [19:27:02]NVStorageDeleteData [19:27:02]OFD Sender: Processing packet 123124 [packets to send 7, broken 6] [19:27:02]ProducePacketName [19:27:02]name=ofd_packets/00123124 [19:27:02]OFD Sender: To server: pG, [19:27:02]CommunicateWithHost lk.salyk.kg:30040 [19:27:02]ConnectInit lk.salyk.kg [19:27:02]Connected sock=10 [19:27:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 BF 75 07 01 8A 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 65 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 9C 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 5C CF 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F4 E0 01 00 35 04 06 00 E1 4C F7 B0 5C 04 77 C6 A0 06 CD 4D A4 88 [19:27:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 BA 58 47 00 B8 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F4 E0 01 00 F4 03 04 00 50 7B 44 67 B6 04 01 00 00 11 E7 A6 7D 1C 46 FC 4E [19:27:02]CommunicateWithHost err = 0 [19:27:02]CheckOFDResponse [19:27:02]1017 (14) - 77093643461234 [19:27:02]1041 (16) - 0000000000874881 [19:27:02]1040 (4) - 123124 [19:27:02]1012 (4) - 25.11.2024 13:27 [19:27:02]1206 (1) - 0 [19:27:02]OFD Sender: Remove packet 123124 [19:27:02]ProducePacketName [19:27:02]name=ofd_packets/00123124 [19:27:02]NVStorageDeleteData [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:52]accept exits with 9 [19:30:52]New connection [19:30:52]New thread 3066580324 created [19:30:52]Thread 3066723684 joined [19:30:52]Waiting for new connection... [19:30:52] Sock 9.Parse request [19:30:52]Sock 9.Check first char [19:30:52]Sock 9.First char is OK [19:30:52]request: POST /json_proto HTTP/1.0 [19:30:52]Method: POST [19:30:52]URL: /json_proto [19:30:52]Method is POST - this is cgi request [19:30:52]url: /json_proto [19:30:52]query_string will be loaded in cgi processing [19:30:52]execute_cgi json_proto POST (null) [19:30:52]execute_cgi path=json_proto method=POST [19:30:52]POST find Content-Length [19:30:52]Host: 172.17.37.4:8080 [19:30:52]Content-Length: 821 [19:30:52]Content-Type: application/json [19:30:52] [19:30:52]POST finish read [19:30:52]Found Content-Length = 821 [19:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 12.470, "sum" : 934.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 934.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:52]execute_script... [19:30: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)717921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 12.470, "sum" : 934.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 934.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:52]POST & json_proto [19:30:52]process_json_proto [19:30:52]json parsed OK: [19:30:52]protocol is kg_v1.0 [19:30:52]action value=close_receipt [19:30:52]process_action close_receipt [19:30:52]cmd_close_receipt [19:30:52]MH_GetDate [19:30:52]Write to MH i2c: F0 00 00 2B 40 5A [19:30:52]Write i2c OK [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: F0 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: F0 09 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: F0 09 00 2B 40 00 73 D0 44 67 B8 5A 43 67 0D [19:30:52]GetLastDocTimeStamp 1732562780 [19:30:52]current date 1732563059 [19:30:52]FM_GetShiftState [19:30:52]SAM_PROTO_GetShiftState [19:30:52]wFMCommunicate request_size=4 [19:30:52]MH_SAM_APDU [19:30:52]CAPDU: 80 13 01 00 [19:30:52]Write to MH i2c: E2 08 00 2C 40 80 13 01 00 00 00 00 00 E9 [19:30:52]Write i2c OK [19:30:52]MH_I2C_Read... [19:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:52]Read from MH i2c: E2 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 0E 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 0E 00 2C 40 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 68 [19:30:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:30:52]wFMCommunicate OK [19:30:52]SAM_PROTO_GetShiftState done [19:30:52]FM_GetShiftState done [19:30:52]opened in 1732493066 [19:30:52]opened+sec_in_day 1732579466 [19:30:52]quantity*price = 93400 [19:30:52]sum+1 = 93401 [19:30:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 934.00 НСП 1% : 8.26 НДС 12% : 99.19 Наличными: 0.00 Безнал.: 934.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 166 25.11.2024 19:30 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123125 ФПД: 17017463878683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T193059&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123125&fm=17017463878683&tin=02508201610067®Number=0000000000092681&sum=93400 [19:30:53]StoreToDocumentArchive [19:30:53]shift 556 fd 123125 [19:30:53]save to /storage/0556/doc_00123125 [19:30:53]save last doc name /storage/0556/doc_00123125 to /storage/kkm_last_doc_name [19:30:53]save OK [19:30:53]Clear old archive folders... [19:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:30:53]tlvbuf is 02095440 [19:30:53]SAM_PROTO_ClearQueue [19:30:53]wFMCommunicate request_size=4 [19:30:53]MH_SAM_APDU [19:30:53]CAPDU: 80 09 00 00 [19:30:53]Write to MH i2c: E2 08 00 39 40 80 09 00 00 00 00 00 00 EB [19:30:53]Write i2c OK [19:30:53]MH_I2C_Read... [19:30:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:54]Read from MH i2c: E2 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 39 40 00 90 00 ED [19:30:54]RAPDU: 90 00 [19:30:54]wFMCommunicate OK [19:30:54]SAM_PROTO_ClearQueue done [19:30:54]KKMCreateOFDPacket [19:30:54]OFDProtocolAddRootSTLVToBuf [19:30:54]FM_MakeSignedData [19:30:54]FM_MakeSignedData [19:30:54]SAM_PROTO_SignData [19:30:54]wFMCommunicate request_size=4 [19:30:54]MH_SAM_APDU [19:30:54]CAPDU: 80 0D 01 02 [19:30:54]Write to MH i2c: E2 08 00 3A 40 80 0D 01 02 00 00 00 00 F3 [19:30:54]Write i2c OK [19:30:54]MH_I2C_Read... [19:30:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:54]Read from MH i2c: E2 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 3A 40 00 90 00 EE [19:30:54]RAPDU: 90 00 [19:30:54]wFMCommunicate OK [19:30:54]wFMCommunicate request_size=255 [19:30:54]MH_SAM_APDU [19:30:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 D8 6C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 6C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 6C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 73 D0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F5 E0 01 00 35 04 06 00 [19:30:54]Write to MH i2c: E2 02 01 3B 40 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 D8 6C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 6C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 6C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 73 D0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F5 E0 01 00 35 04 06 00 00 00 0B [19:30:54]Write i2c OK [19:30:54]MH_I2C_Read... [19:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:54]Read from MH i2c: E2 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 3B 40 00 90 00 EF [19:30:54]RAPDU: 90 00 [19:30:54]wFMCommunicate OK [19:30:54]wFMCommunicate request_size=11 [19:30:54]MH_SAM_APDU [19:30:54]CAPDU: 80 0D 02 02 06 0F 7A 2F E3 B4 1B [19:30:54]Write to MH i2c: E2 0E 00 3C 40 80 0D 02 02 06 00 0F 7A 2F E3 B4 1B 00 00 6C [19:30:54]Write i2c OK [19:30:54]MH_I2C_Read... [19:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:54]Read from MH i2c: E2 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 03 00 3C 40 00 90 00 F0 [19:30:54]RAPDU: 90 00 [19:30:54]wFMCommunicate OK [19:30:54]wFMCommunicate request_size=4 [19:30:54]MH_SAM_APDU [19:30:54]CAPDU: 80 0D 03 02 [19:30:54]Write to MH i2c: E2 08 00 3D 40 80 0D 03 02 00 00 00 00 F8 [19:30:54]Write i2c OK [19:30:54]MH_I2C_Read... [19:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:54]Read from MH i2c: E2 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 0B 00 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 0B 00 3D 40 00 D9 81 2B 2D E4 E9 F6 E8 90 00 56 [19:30:54]RAPDU: D9 81 2B 2D E4 E9 F6 E8 90 00 [19:30:54]wFMCommunicate OK [19:30:54]SAM_PROTO_SignData done [19:30:54]FM_MakeSignedData done [19:30:54]CreateOFDProtocolMessage [19:30:54]wFMCommunicate request_size=4 [19:30:54]MH_SAM_APDU [19:30:54]CAPDU: 80 11 00 00 [19:30:54]Write to MH i2c: E2 08 00 3E 40 80 11 00 00 00 00 00 00 F8 [19:30:54]Write i2c OK [19:30:54]MH_I2C_Read... [19:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:54]Read from MH i2c: E2 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 17 00 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: E2 17 00 3E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4F [19:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:30:54]wFMCommunicate OK [19:30:54]CreateOFDProtocolMessage done [19:30:54]OFDSenderStorePacket 123125 [19:30:54]StoreOFDPacket docnum=123125 [19:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D7 57 08 01 AE 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 D8 6C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 6C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 6C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 73 D0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F5 E0 01 00 35 04 06 00 0F 7A 2F E3 B4 1B D9 81 2B 2D E4 E9 F6 E8 [19:30:54]CheckFolder [19:30:54]dirname=/storage/ofd_packets [19:30:54]CheckFolder done [19:30:54]ProducePacketName [19:30:54]name=ofd_packets/00123125 [19:30:54]NVStorageSaveData ofd_packets/00123125 [19:30:54]File name is /storage/ofd_packets/00123125 [19:30:54]Write 302 bytes [19:30:54]NVStorageSaveData done [19:30:54]OFDSenderStorePacket done [19:30:54]KKMCreateOFDPacket done [19:30:54]NVStorageSaveData kkm_last_timestamp [19:30:54]File name is /storage/kkm_last_timestamp [19:30:54]Write 4 bytes [19:30:54]NVStorageSaveData done [19:30:54]ExternCall_PrintAddStr [19:30:54]wPrintStart [19:30:54]Write to MH i2c: 01 00 00 3F 40 7F [19:30:54]Write i2c OK [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: 01 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: 01 07 00 [19:30:54]MH_I2C_Read... [19:30:54]Read from MH i2c: 01 07 00 3F 40 00 00 00 00 00 FF 0F 94 [19:30:54]RasterBufferAndPrint [19:30:54]line Счет N : (1)717921 [19:30:54]line ИНН: 02508201610067 [19:30:54]line Контрольно-Кассовый Чек [19:30:54]line ПРОДАЖА [19:30:54]line ТРК (МРК, ГНК) : 6 [19:30:54]line Товар: 2710194210 [19:30:54]line ДТ(л)-К-5 [19:30:54]line 12.470 * 74.90 [19:30:54]line = 934.00 [19:30:54]line НДС 12% НСП 1% [19:30:54]line > о реализуемом товаре [19:30:54]line ИТОГО: 934.00 [19:30:54]line НСП 1% : 8.26 [19:30:54]line НДС 12% : 99.19 [19:30:54]line Наличными: 0.00 [19:30:54]line Безнал.: 934.00 [19:30:54]line Место: АЗС № 64 "Партнер Нефть" [19:30:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:30:54]line СНО: Общий режим [19:30:54]line Чек 166 25.11.2024 19:30 [19:30:54]line Смена: 556 ФФД: 1.0 [19:30:54]line ЗНМ: 0300000033 [19:30:54]line РНМ: 0000000000092681 [19:30:54]line Версия ККМ: 001 [19:30:54]line Платежная система: Бакай Банк [19:30:54]line ФМ: 0000000000874881 [19:30:54]line ФД: 123125 [19:30:54]line ФПД: 17017463878683 [19:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T193059&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123125&fm=17017463878683&tin=02508201610067®Number=0000000000092681&sum=93400 [19:30:54]written 0, free lines is 4095 [19:30:54]OFD Sender: Processing packet 123125 [packets to send 7, broken 6] [19:30:54]ProducePacketName [19:30:54]name=ofd_packets/00123125 [19:30:54]OFD Sender: To server: pG, [19:30:54]CommunicateWithHost lk.salyk.kg:30040 [19:30:54]ConnectInit lk.salyk.kg [19:30:54]Connected sock=10 [19:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D7 57 08 01 AE 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 D8 6C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 6C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 6C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 73 D0 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F5 E0 01 00 35 04 06 00 0F 7A 2F E3 B4 1B D9 81 2B 2D E4 E9 F6 E8 [19:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3D A7 47 00 EC 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F5 E0 01 00 F4 03 04 00 38 7C 44 67 B6 04 01 00 00 0D 41 68 6F DE FD 93 17 [19:30:55]CommunicateWithHost err = 0 [19:30:55]CheckOFDResponse [19:30:55]1017 (14) - 77093643461234 [19:30:55]1041 (16) - 0000000000874881 [19:30:55]1040 (4) - 123125 [19:30:55]1012 (4) - 25.11.2024 13:31 [19:30:55]1206 (1) - 0 [19:30:55]OFD Sender: Remove packet 123125 [19:30:55]ProducePacketName [19:30:55]name=ofd_packets/00123125 [19:30:55]NVStorageDeleteData [19:30:55]Write to MH i2c: 01 00 00 69 40 A9 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: 01 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: 01 07 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: 01 07 00 69 40 00 00 00 00 00 5F 0C 1B [19:30:55]RasterBufferAndPrint [19:30:55]line [19:30:55]line [19:30:55]line [19:30:55]line [19:30:55]line [19:30:55]written 0, free lines is 3172 [19:30:55]MH_Cut [19:30:55]Write to MH i2c: D1 01 00 70 40 01 82 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: D1 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: D1 01 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: D1 01 00 70 40 00 81 [19:30:55]Write to MH i2c: 01 00 00 71 40 B1 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]OFD Sender: No OFD packet to send [19:30:56]*** Cut start [19:30:56]*** Partial cut [19:30:56]*** CUTSNS_PIN = 1 [19:30:56]*** CUTSNS_PIN = 0 [19:30:56]*** Brake cut motor [19:30:57]Read from MH i2c: 01 [19:30:57]MH_I2C_Read... [19:30:57]*** Stop cut motor [19:30:57]*** Cut end [19:30:57]Read from MH i2c: 01 07 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: 01 07 00 71 40 00 00 00 00 00 FF 0F C6 [19:30:57]process_action close_receipt done [19:30:57]requested_data is exist [19:30:57]produce_requested_data [19:30:57]requested_item fm.sn is exist - process it [19:30:57]wFMCommunicate request_size=4 [19:30:57]MH_SAM_APDU [19:30:57]CAPDU: 80 11 00 00 [19:30:57]Write to MH i2c: E2 08 00 72 40 80 11 00 00 00 00 00 00 2C [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:57]Read from MH i2c: E2 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 17 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 17 00 72 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 83 [19:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:30:57]wFMCommunicate OK [19:30:57]requested_item fd.num is exist - process it [19:30:57]SAM_PROTO_GetFieldsCounters [19:30:57]wFMCommunicate request_size=4 [19:30:57]MH_SAM_APDU [19:30:57]CAPDU: 80 13 00 00 [19:30:57]Write to MH i2c: E2 08 00 73 40 80 13 00 00 00 00 00 00 2F [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:57]Read from MH i2c: E2 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 62 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 62 00 73 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F5 E0 01 00 0E 04 04 00 2C 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 4B [19:30:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F5 E0 01 00 0E 04 04 00 2C 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 [19:30:57]wFMCommunicate OK [19:30:57]SAM_PROTO_GetFieldsCounters done [19:30:57]requested_item shift.num is exist - process it [19:30:57]requested_item shift.opened is exist - process it [19:30:57]req_shift_opened [19:30:57]FM_GetShiftState [19:30:57]SAM_PROTO_GetShiftState [19:30:57]wFMCommunicate request_size=4 [19:30:57]MH_SAM_APDU [19:30:57]CAPDU: 80 13 01 00 [19:30:57]Write to MH i2c: E2 08 00 74 40 80 13 01 00 00 00 00 00 31 [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:57]Read from MH i2c: E2 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 0E 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 0E 00 74 40 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B0 [19:30:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:30:57]wFMCommunicate OK [19:30:57]SAM_PROTO_GetShiftState done [19:30:57]FM_GetShiftState done [19:30:57]req_shift_opened done [19:30:57]requested_item shift.open_date is exist - process it [19:30:57]req_shift_open_date [19:30:57]req_shift_open_date done [19:30:57]produce_requested_data done [19:30:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123125,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [19:30:57]process_action_free close_receipt [19:30:57]json_value_free [19:30:57]json_value_free done [19:30:57]process_json_proto returns [19:30:57]Send response to host [19:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123125,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [19:30:57]free response buf [19:30:57]execute_script done [19:30:57]execute_script returns [19:30:57]free content buf [19:30:57]Sock 9.Close socket [19:30:57]Sock 9.Thread stoped [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:29]accept exits with 7 [19:38:29]New connection [19:38:29]New thread 3066723684 created [19:38:29]Thread 3066580324 joined [19:38:29]Waiting for new connection... [19:38:29] Sock 7.Parse request [19:38:29]Sock 7.Check first char [19:38:29]Sock 7.First char is OK [19:38:29]request: POST /json_proto HTTP/1.0 [19:38:29]Method: POST [19:38:29]URL: /json_proto [19:38:29]Method is POST - this is cgi request [19:38:29]url: /json_proto [19:38:29]query_string will be loaded in cgi processing [19:38:29]execute_cgi json_proto POST (null) [19:38:29]execute_cgi path=json_proto method=POST [19:38:29]POST find Content-Length [19:38:29]Host: 172.17.37.4:8080 [19:38:29]Content-Length: 677 [19:38:29]Content-Type: application/json [19:38:29] [19:38:29]POST finish read [19:38:29]Found Content-Length = 677 [19:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:29]execute_script... [19:38:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:29]POST & json_proto [19:38:29]process_json_proto [19:38:29]json parsed OK: [19:38:29]protocol is kg_v1.0 [19:38:29]action value=close_receipt [19:38:29]process_action close_receipt [19:38:29]cmd_close_receipt [19:38:29]MH_GetDate [19:38:29]Write to MH i2c: F0 00 00 75 40 A4 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: F0 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: F0 09 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: F0 09 00 75 40 00 3C D2 44 67 B8 5A 43 67 22 [19:38:29]GetLastDocTimeStamp 1732563059 [19:38:29]current date 1732563516 [19:38:29]FM_GetShiftState [19:38:29]SAM_PROTO_GetShiftState [19:38:29]wFMCommunicate request_size=4 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 13 01 00 [19:38:29]Write to MH i2c: E2 08 00 76 40 80 13 01 00 00 00 00 00 33 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 0E 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 0E 00 76 40 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 B2 [19:38:29]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:38:29]wFMCommunicate OK [19:38:29]SAM_PROTO_GetShiftState done [19:38:29]FM_GetShiftState done [19:38:29]opened in 1732493066 [19:38:29]opened+sec_in_day 1732579466 [19:38:29]quantity*price = 50010 [19:38:29]sum+1 = 50012 [19:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 167 25.11.2024 19:38 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123126 ФПД: 117016940614661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T193836&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123126&fm=117016940614661&tin=02508201610067®Number=0000000000092681&sum=50000 [19:38:31]StoreToDocumentArchive [19:38:31]shift 556 fd 123126 [19:38:31]save to /storage/0556/doc_00123126 [19:38:31]save last doc name /storage/0556/doc_00123126 to /storage/kkm_last_doc_name [19:38:31]save OK [19:38:31]Clear old archive folders... [19:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:31]tlvbuf is 01F33EF0 [19:38:31]SAM_PROTO_ClearQueue [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 09 00 00 [19:38:31]Write to MH i2c: E2 08 00 83 40 80 09 00 00 00 00 00 00 35 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 03 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 03 00 83 40 00 90 00 37 [19:38:31]RAPDU: 90 00 [19:38:31]wFMCommunicate OK [19:38:31]SAM_PROTO_ClearQueue done [19:38:31]KKMCreateOFDPacket [19:38:31]OFDProtocolAddRootSTLVToBuf [19:38:31]FM_MakeSignedData [19:38:31]FM_MakeSignedData [19:38:31]SAM_PROTO_SignData [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 0D 01 02 [19:38:31]Write to MH i2c: E2 08 00 84 40 80 0D 01 02 00 00 00 00 3D [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 03 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 03 00 84 40 00 90 00 38 [19:38:31]RAPDU: 90 00 [19:38:31]wFMCommunicate OK [19:38:31]wFMCommunicate request_size=255 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3C D2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F6 E0 01 00 35 04 06 00 6A [19:38:31]Write to MH i2c: E2 02 01 85 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3C D2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F6 E0 01 00 35 04 06 00 6A 00 00 73 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 03 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 03 00 85 40 00 90 00 39 [19:38:31]RAPDU: 90 00 [19:38:31]wFMCommunicate OK [19:38:31]wFMCommunicate request_size=10 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 0D 02 02 05 6D 21 2D 94 05 [19:38:31]Write to MH i2c: E2 0D 00 86 40 80 0D 02 02 05 00 6D 21 2D 94 05 00 00 9E [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 03 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 03 00 86 40 00 90 00 3A [19:38:31]RAPDU: 90 00 [19:38:31]wFMCommunicate OK [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 0D 03 02 [19:38:31]Write to MH i2c: E2 08 00 87 40 80 0D 03 02 00 00 00 00 42 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 0B 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 0B 00 87 40 00 22 28 E0 95 14 93 80 83 90 00 AC [19:38:31]RAPDU: 22 28 E0 95 14 93 80 83 90 00 [19:38:31]wFMCommunicate OK [19:38:31]SAM_PROTO_SignData done [19:38:31]FM_MakeSignedData done [19:38:31]CreateOFDProtocolMessage [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 11 00 00 [19:38:31]Write to MH i2c: E2 08 00 88 40 80 11 00 00 00 00 00 00 42 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 17 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 17 00 88 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 99 [19:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:38:31]wFMCommunicate OK [19:38:31]CreateOFDProtocolMessage done [19:38:31]OFDSenderStorePacket 123126 [19:38:31]StoreOFDPacket docnum=123126 [19:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F2 C8 07 01 E3 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3C D2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F6 E0 01 00 35 04 06 00 6A 6D 21 2D 94 05 22 28 E0 95 14 93 80 83 [19:38:31]CheckFolder [19:38:31]dirname=/storage/ofd_packets [19:38:31]CheckFolder done [19:38:31]ProducePacketName [19:38:31]name=ofd_packets/00123126 [19:38:31]NVStorageSaveData ofd_packets/00123126 [19:38:31]File name is /storage/ofd_packets/00123126 [19:38:31]Write 301 bytes [19:38:31]NVStorageSaveData done [19:38:31]OFDSenderStorePacket done [19:38:31]KKMCreateOFDPacket done [19:38:31]NVStorageSaveData kkm_last_timestamp [19:38:31]File name is /storage/kkm_last_timestamp [19:38:31]Write 4 bytes [19:38:31]NVStorageSaveData done [19:38:31]ExternCall_PrintAddStr [19:38:31]wPrintStart [19:38:31]Write to MH i2c: 01 00 00 89 40 C9 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: 01 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: 01 07 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: 01 07 00 89 40 00 00 00 00 00 FF 0F DE [19:38:31]RasterBufferAndPrint [19:38:31]line Счет N : (1)717922 [19:38:31]line ИНН: 02508201610067 [19:38:31]line Контрольно-Кассовый Чек [19:38:31]line ПРОДАЖА [19:38:31]line ТРК (МРК, ГНК) : 32 [19:38:31]line Товар: 2710124130 [19:38:31]line Аи-92-К-4 [19:38:31]line 7.420 * 67.40 [19:38:31]line = 500.11 [19:38:31]line НДС 12% НСП 1% [19:38:31]line > о реализуемом товаре [19:38:31]line ОКРУГЛЕНИЕ: -0.11 [19:38:31]line ИТОГО: 500.00 [19:38:31]line Внесено: 500.00 [19:38:31]line СДАЧА: 0.00 [19:38:31]line НСП 1% : 4.43 [19:38:31]line НДС 12% : 53.11 [19:38:31]line Наличными: 500.00 [19:38:31]line Безнал.: 0.00 [19:38:31]line Место: АЗС № 64 "Партнер Нефть" [19:38:31]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:38:31]line СНО: Общий режим [19:38:31]line Чек 167 25.11.2024 19:38 [19:38:31]line Смена: 556 ФФД: 1.0 [19:38:31]line ЗНМ: 0300000033 [19:38:31]line РНМ: 0000000000092681 [19:38:31]line Версия ККМ: 001 [19:38:31]line ФМ: 0000000000874881 [19:38:31]line ФД: 123126 [19:38:31]line ФПД: 117016940614661 [19:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T193836&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123126&fm=117016940614661&tin=02508201610067®Number=0000000000092681&sum=50000 [19:38:31]OFD Sender: Processing packet 123126 [packets to send 7, broken 6] [19:38:31]ProducePacketName [19:38:31]name=ofd_packets/00123126 [19:38:31]OFD Sender: To server: pG, [19:38:31]CommunicateWithHost lk.salyk.kg:30040 [19:38:31]ConnectInit lk.salyk.kg [19:38:31]written 0, free lines is 4095 [19:38:32]Connected sock=10 [19:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F2 C8 07 01 E3 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3C D2 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F6 E0 01 00 35 04 06 00 6A 6D 21 2D 94 05 22 28 E0 95 14 93 80 83 [19:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A4 B3 47 00 07 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 34 38 38 31 10 04 04 00 F6 E0 01 00 F4 03 04 00 01 7E 44 67 B6 04 01 00 00 DF F6 10 81 72 14 E0 5B [19:38:32]CommunicateWithHost err = 0 [19:38:32]CheckOFDResponse [19:38:32]1017 (14) - 77093643461234 [19:38:32]1041 (16) - 0000000000874881 [19:38:32]1040 (4) - 123126 [19:38:32]1012 (4) - 25.11.2024 13:39 [19:38:32]1206 (1) - 0 [19:38:32]OFD Sender: Remove packet 123126 [19:38:32]ProducePacketName [19:38:32]name=ofd_packets/00123126 [19:38:32]NVStorageDeleteData [19:38:32]Write to MH i2c: 01 00 00 B4 40 F4 [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: 01 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: 01 07 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: 01 07 00 B4 40 00 00 00 00 00 47 0C 4E [19:38:32]RasterBufferAndPrint [19:38:32]line [19:38:32]line [19:38:32]line [19:38:32]line [19:38:32]line [19:38:32]written 0, free lines is 3147 [19:38:32]MH_Cut [19:38:32]Write to MH i2c: D1 01 00 BB 40 01 CD [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: D1 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: D1 01 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: D1 01 00 BB 40 00 CC [19:38:32]Write to MH i2c: 01 00 00 BC 40 FC [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]OFD Sender: No OFD packet to send [19:38:33]*** Cut start [19:38:33]*** Partial cut [19:38:33]*** CUTSNS_PIN = 1 [19:38:33]*** CUTSNS_PIN = 0 [19:38:34]*** Brake cut motor [19:38:34]Read from MH i2c: 01 [19:38:34]MH_I2C_Read... [19:38:34]*** Stop cut motor [19:38:34]*** Cut end [19:38:34]Read from MH i2c: 01 07 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: 01 07 00 BC 40 00 00 00 00 00 FF 0F 11 [19:38:34]process_action close_receipt done [19:38:34]requested_data is exist [19:38:34]produce_requested_data [19:38:34]requested_item fm.sn is exist - process it [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 11 00 00 [19:38:34]Write to MH i2c: E2 08 00 BD 40 80 11 00 00 00 00 00 00 77 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 17 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 17 00 BD 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CE [19:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:38:34]wFMCommunicate OK [19:38:34]requested_item fd.num is exist - process it [19:38:34]SAM_PROTO_GetFieldsCounters [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 13 00 00 [19:38:34]Write to MH i2c: E2 08 00 BE 40 80 13 00 00 00 00 00 00 7A [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 62 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 62 00 BE 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F6 E0 01 00 0E 04 04 00 2C 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 9A [19:38:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F6 E0 01 00 0E 04 04 00 2C 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 [19:38:34]wFMCommunicate OK [19:38:34]SAM_PROTO_GetFieldsCounters done [19:38:34]requested_item shift.num is exist - process it [19:38:34]requested_item shift.opened is exist - process it [19:38:34]req_shift_opened [19:38:34]FM_GetShiftState [19:38:34]SAM_PROTO_GetShiftState [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 13 01 00 [19:38:34]Write to MH i2c: E2 08 00 BF 40 80 13 01 00 00 00 00 00 7C [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0E 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0E 00 BF 40 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FB [19:38:34]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:38:34]wFMCommunicate OK [19:38:34]SAM_PROTO_GetShiftState done [19:38:34]FM_GetShiftState done [19:38:34]req_shift_opened done [19:38:34]requested_item shift.open_date is exist - process it [19:38:34]req_shift_open_date [19:38:34]req_shift_open_date done [19:38:34]produce_requested_data done [19:38:34]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123126,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [19:38:34]process_action_free close_receipt [19:38:34]json_value_free [19:38:34]json_value_free done [19:38:34]process_json_proto returns [19:38:34]Send response to host [19:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123126,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [19:38:34]free response buf [19:38:34]execute_script done [19:38:34]execute_script returns [19:38:34]free content buf [19:38:34]Sock 7.Close socket [19:38:34]Sock 7.Thread stoped [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]accept exits with 9 [19:42:12]New connection [19:42:12]New thread 3066580324 created [19:42:12]Thread 3066723684 joined [19:42:12]Waiting for new connection... [19:42:12] Sock 9.Parse request [19:42:12]Sock 9.Check first char [19:42:12]Sock 9.First char is OK [19:42:12]request: POST /json_proto HTTP/1.0 [19:42:12]Method: POST [19:42:12]URL: /json_proto [19:42:12]Method is POST - this is cgi request [19:42:12]url: /json_proto [19:42:12]query_string will be loaded in cgi processing [19:42:12]execute_cgi json_proto POST (null) [19:42:12]execute_cgi path=json_proto method=POST [19:42:12]POST find Content-Length [19:42:12]Host: 172.17.37.4:8080 [19:42:12]Content-Length: 678 [19:42:12]Content-Type: application/json [19:42:12] [19:42:12]POST finish read [19:42:12]Found Content-Length = 678 [19:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "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:42:12]execute_script... [19:42: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)717923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "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:42:12]POST & json_proto [19:42:12]process_json_proto [19:42:12]json parsed OK: [19:42:12]protocol is kg_v1.0 [19:42:12]action value=close_receipt [19:42:12]process_action close_receipt [19:42:12]cmd_close_receipt [19:42:12]MH_GetDate [19:42:12]Write to MH i2c: F0 00 00 C0 40 EF [19:42:12]Write i2c OK [19:42:12]MH_I2C_Read... [19:42:12]Read from MH i2c: F0 [19:42:12]MH_I2C_Read... [19:42:12]Read from MH i2c: F0 09 00 [19:42:12]MH_I2C_Read... [19:42:12]Read from MH i2c: F0 09 00 C0 40 00 1A D3 44 67 B8 5A 43 67 4C [19:42:12]GetLastDocTimeStamp 1732563516 [19:42:12]current date 1732563738 [19:42:12]FM_GetShiftState [19:42:12]SAM_PROTO_GetShiftState [19:42:12]wFMCommunicate request_size=4 [19:42:12]MH_SAM_APDU [19:42:12]CAPDU: 80 13 01 00 [19:42:12]Write to MH i2c: E2 08 00 C1 40 80 13 01 00 00 00 00 00 7E [19:42:12]Write i2c OK [19:42:12]MH_I2C_Read... [19:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:12]Read from MH i2c: E2 [19:42:12]MH_I2C_Read... [19:42:12]Read from MH i2c: E2 0E 00 [19:42:12]MH_I2C_Read... [19:42:12]Read from MH i2c: E2 0E 00 C1 40 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 FD [19:42:12]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:42:12]wFMCommunicate OK [19:42:12]SAM_PROTO_GetShiftState done [19:42:12]FM_GetShiftState done [19:42:12]opened in 1732493066 [19:42:12]opened+sec_in_day 1732579466 [19:42:12]quantity*price = 70028 [19:42:12]sum+1 = 70030 [19:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 168 25.11.2024 19:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123127 ФПД: 228661127601708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T194218&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123127&fm=228661127601708&tin=02508201610067®Number=0000000000092681&sum=70000 [19:42:13]StoreToDocumentArchive [19:42:13]shift 556 fd 123127 [19:42:13]save to /storage/0556/doc_00123127 [19:42:13]save last doc name /storage/0556/doc_00123127 to /storage/kkm_last_doc_name [19:42:13]save OK [19:42:13]Clear old archive folders... [19:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:13]tlvbuf is 0213D150 [19:42:13]SAM_PROTO_ClearQueue [19:42:13]wFMCommunicate request_size=4 [19:42:13]MH_SAM_APDU [19:42:13]CAPDU: 80 09 00 00 [19:42:13]Write to MH i2c: E2 08 00 CE 40 80 09 00 00 00 00 00 00 80 [19:42:13]Write i2c OK [19:42:13]MH_I2C_Read... [19:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:13]Read from MH i2c: E2 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 03 00 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 03 00 CE 40 00 90 00 82 [19:42:13]RAPDU: 90 00 [19:42:13]wFMCommunicate OK [19:42:13]SAM_PROTO_ClearQueue done [19:42:13]KKMCreateOFDPacket [19:42:13]OFDProtocolAddRootSTLVToBuf [19:42:13]FM_MakeSignedData [19:42:13]FM_MakeSignedData [19:42:13]SAM_PROTO_SignData [19:42:13]wFMCommunicate request_size=4 [19:42:13]MH_SAM_APDU [19:42:13]CAPDU: 80 0D 01 02 [19:42:13]Write to MH i2c: E2 08 00 CF 40 80 0D 01 02 00 00 00 00 88 [19:42:13]Write i2c OK [19:42:13]MH_I2C_Read... [19:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:13]Read from MH i2c: E2 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 03 00 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 03 00 CF 40 00 90 00 83 [19:42:13]RAPDU: 90 00 [19:42:13]wFMCommunicate OK [19:42:13]wFMCommunicate request_size=255 [19:42:13]MH_SAM_APDU [19:42:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 A8 00 00 00 F4 03 04 00 1A D3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F7 E0 01 00 35 04 06 00 CF [19:42:13]Write to MH i2c: E2 02 01 D0 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 A8 00 00 00 F4 03 04 00 1A D3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F7 E0 01 00 35 04 06 00 CF 00 00 12 [19:42:13]Write i2c OK [19:42:13]MH_I2C_Read... [19:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:13]Read from MH i2c: E2 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 03 00 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 03 00 D0 40 00 90 00 84 [19:42:13]RAPDU: 90 00 [19:42:13]wFMCommunicate OK [19:42:13]wFMCommunicate request_size=10 [19:42:13]MH_SAM_APDU [19:42:13]CAPDU: 80 0D 02 02 05 F7 51 48 DE 2C [19:42:13]Write to MH i2c: E2 0D 00 D1 40 80 0D 02 02 05 00 F7 51 48 DE 2C 00 00 2F [19:42:13]Write i2c OK [19:42:13]MH_I2C_Read... [19:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:13]Read from MH i2c: E2 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 03 00 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 03 00 D1 40 00 90 00 85 [19:42:13]RAPDU: 90 00 [19:42:13]wFMCommunicate OK [19:42:13]wFMCommunicate request_size=4 [19:42:13]MH_SAM_APDU [19:42:13]CAPDU: 80 0D 03 02 [19:42:13]Write to MH i2c: E2 08 00 D2 40 80 0D 03 02 00 00 00 00 8D [19:42:13]Write i2c OK [19:42:13]MH_I2C_Read... [19:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:13]Read from MH i2c: E2 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 0B 00 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 0B 00 D2 40 00 D3 DA 1F 01 8C A7 31 E1 90 00 A0 [19:42:13]RAPDU: D3 DA 1F 01 8C A7 31 E1 90 00 [19:42:13]wFMCommunicate OK [19:42:13]SAM_PROTO_SignData done [19:42:13]FM_MakeSignedData done [19:42:13]CreateOFDProtocolMessage [19:42:13]wFMCommunicate request_size=4 [19:42:13]MH_SAM_APDU [19:42:13]CAPDU: 80 11 00 00 [19:42:13]Write to MH i2c: E2 08 00 D3 40 80 11 00 00 00 00 00 00 8D [19:42:13]Write i2c OK [19:42:13]MH_I2C_Read... [19:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:13]Read from MH i2c: E2 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 17 00 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: E2 17 00 D3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E4 [19:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:42:13]wFMCommunicate OK [19:42:13]CreateOFDProtocolMessage done [19:42:13]OFDSenderStorePacket 123127 [19:42:13]StoreOFDPacket docnum=123127 [19:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 39 56 07 01 48 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 A8 00 00 00 F4 03 04 00 1A D3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F7 E0 01 00 35 04 06 00 CF F7 51 48 DE 2C D3 DA 1F 01 8C A7 31 E1 [19:42:13]CheckFolder [19:42:13]dirname=/storage/ofd_packets [19:42:13]CheckFolder done [19:42:13]ProducePacketName [19:42:13]name=ofd_packets/00123127 [19:42:13]NVStorageSaveData ofd_packets/00123127 [19:42:13]File name is /storage/ofd_packets/00123127 [19:42:13]Write 301 bytes [19:42:13]NVStorageSaveData done [19:42:13]OFDSenderStorePacket done [19:42:13]KKMCreateOFDPacket done [19:42:13]NVStorageSaveData kkm_last_timestamp [19:42:13]File name is /storage/kkm_last_timestamp [19:42:13]Write 4 bytes [19:42:13]NVStorageSaveData done [19:42:13]ExternCall_PrintAddStr [19:42:13]wPrintStart [19:42:13]Write to MH i2c: 01 00 00 D4 40 14 [19:42:13]Write i2c OK [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: 01 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: 01 07 00 [19:42:13]MH_I2C_Read... [19:42:13]Read from MH i2c: 01 07 00 D4 40 00 00 00 00 00 FF 0F 29 [19:42:13]RasterBufferAndPrint [19:42:13]line Счет N : (1)717923 [19:42:13]line ИНН: 02508201610067 [19:42:13]line Контрольно-Кассовый Чек [19:42:13]line ПРОДАЖА [19:42:13]line ТРК (МРК, ГНК) : 12 [19:42:13]line Товар: 2710124130 [19:42:13]line Аи-92-К-4 [19:42:13]line 10.390 * 67.40 [19:42:13]line = 700.29 [19:42:13]line НДС 12% НСП 1% [19:42:13]line > о реализуемом товаре [19:42:13]line ОКРУГЛЕНИЕ: -0.29 [19:42:13]line ИТОГО: 700.00 [19:42:13]line Внесено: 700.00 [19:42:13]line СДАЧА: 0.00 [19:42:13]line НСП 1% : 6.20 [19:42:13]line НДС 12% : 74.37 [19:42:13]line Наличными: 700.00 [19:42:13]line Безнал.: 0.00 [19:42:13]line Место: АЗС № 64 "Партнер Нефть" [19:42:13]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:42:13]line СНО: Общий режим [19:42:13]line Чек 168 25.11.2024 19:42 [19:42:13]line Смена: 556 ФФД: 1.0 [19:42:13]line ЗНМ: 0300000033 [19:42:13]line РНМ: 0000000000092681 [19:42:13]line Версия ККМ: 001 [19:42:13]line ФМ: 0000000000874881 [19:42:13]line ФД: 123127 [19:42:13]line ФПД: 228661127601708 [19:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T194218&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123127&fm=228661127601708&tin=02508201610067®Number=0000000000092681&sum=70000 [19:42:14]OFD Sender: Processing packet 123127 [packets to send 7, broken 6] [19:42:14]ProducePacketName [19:42:14]name=ofd_packets/00123127 [19:42:14]OFD Sender: To server: pG, [19:42:14]CommunicateWithHost lk.salyk.kg:30040 [19:42:14]ConnectInit lk.salyk.kg [19:42:14]written 0, free lines is 4095 [19:42:14]Connected sock=10 [19:42:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 39 56 07 01 48 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 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 A8 00 00 00 F4 03 04 00 1A D3 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F7 E0 01 00 35 04 06 00 CF F7 51 48 DE 2C D3 DA 1F 01 8C A7 31 E1 [19:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F0 71 47 00 3A 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 34 38 38 31 10 04 04 00 F7 E0 01 00 F4 03 04 00 DF 7E 44 67 B6 04 01 00 00 36 E5 CB CB 51 5B EC B7 [19:42:14]CommunicateWithHost err = 0 [19:42:14]CheckOFDResponse [19:42:14]1017 (14) - 77093643461234 [19:42:14]1041 (16) - 0000000000874881 [19:42:14]1040 (4) - 123127 [19:42:14]1012 (4) - 25.11.2024 13:42 [19:42:14]1206 (1) - 0 [19:42:14]OFD Sender: Remove packet 123127 [19:42:14]ProducePacketName [19:42:14]name=ofd_packets/00123127 [19:42:14]NVStorageDeleteData [19:42:14]Write to MH i2c: 01 00 00 FF 40 3F [19:42:14]Write i2c OK [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: 01 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: 01 07 00 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: 01 07 00 FF 40 00 00 00 00 00 4E 0C A0 [19:42:14]RasterBufferAndPrint [19:42:14]line [19:42:14]line [19:42:14]line [19:42:14]line [19:42:14]line [19:42:14]written 0, free lines is 3153 [19:42:14]MH_Cut [19:42:14]Write to MH i2c: D1 01 00 06 41 01 19 [19:42:14]Write i2c OK [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: D1 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: D1 01 00 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: D1 01 00 06 41 00 18 [19:42:14]Write to MH i2c: 01 00 00 07 41 48 [19:42:14]Write i2c OK [19:42:14]MH_I2C_Read... [19:42:14]OFD Sender: No OFD packet to send [19:42:15]*** Cut start [19:42:15]*** Partial cut [19:42:15]*** CUTSNS_PIN = 1 [19:42:16]*** CUTSNS_PIN = 0 [19:42:16]*** Brake cut motor [19:42:16]Read from MH i2c: 01 [19:42:16]MH_I2C_Read... [19:42:16]*** Stop cut motor [19:42:16]*** Cut end [19:42:16]Read from MH i2c: 01 07 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: 01 07 00 07 41 00 00 00 00 00 FF 0F 5D [19:42:16]process_action close_receipt done [19:42:16]requested_data is exist [19:42:16]produce_requested_data [19:42:16]requested_item fm.sn is exist - process it [19:42:16]wFMCommunicate request_size=4 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 11 00 00 [19:42:16]Write to MH i2c: E2 08 00 08 41 80 11 00 00 00 00 00 00 C3 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 17 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 17 00 08 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1A [19:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:42:16]wFMCommunicate OK [19:42:16]requested_item fd.num is exist - process it [19:42:16]SAM_PROTO_GetFieldsCounters [19:42:16]wFMCommunicate request_size=4 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 13 00 00 [19:42:16]Write to MH i2c: E2 08 00 09 41 80 13 00 00 00 00 00 00 C6 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 62 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 62 00 09 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F7 E0 01 00 0E 04 04 00 2C 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 EA [19:42:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F7 E0 01 00 0E 04 04 00 2C 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 [19:42:16]wFMCommunicate OK [19:42:16]SAM_PROTO_GetFieldsCounters done [19:42:16]requested_item shift.num is exist - process it [19:42:16]requested_item shift.opened is exist - process it [19:42:16]req_shift_opened [19:42:16]FM_GetShiftState [19:42:16]SAM_PROTO_GetShiftState [19:42:16]wFMCommunicate request_size=4 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 13 01 00 [19:42:16]Write to MH i2c: E2 08 00 0A 41 80 13 01 00 00 00 00 00 C8 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:16]Read from MH i2c: E2 0E 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 0E 00 0A 41 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 47 [19:42:16]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:42:16]wFMCommunicate OK [19:42:16]SAM_PROTO_GetShiftState done [19:42:16]FM_GetShiftState done [19:42:16]req_shift_opened done [19:42:16]requested_item shift.open_date is exist - process it [19:42:16]req_shift_open_date [19:42:16]req_shift_open_date done [19:42:16]produce_requested_data done [19:42:16]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123127,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [19:42:16]process_action_free close_receipt [19:42:16]json_value_free [19:42:16]json_value_free done [19:42:16]process_json_proto returns [19:42:16]Send response to host [19:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123127,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [19:42:16]free response buf [19:42:16]execute_script done [19:42:16]execute_script returns [19:42:16]free content buf [19:42:16]Sock 9.Close socket [19:42:16]Sock 9.Thread stoped [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:17]accept exits with 7 [19:57:17]New connection [19:57:17]New thread 3066723684 created [19:57:17]Thread 3066580324 joined [19:57:17]Waiting for new connection... [19:57:17] Sock 7.Parse request [19:57:17]Sock 7.Check first char [19:57:17]Sock 7.First char is OK [19:57:17]request: POST /json_proto HTTP/1.0 [19:57:17]Method: POST [19:57:17]URL: /json_proto [19:57:17]Method is POST - this is cgi request [19:57:17]url: /json_proto [19:57:17]query_string will be loaded in cgi processing [19:57:17]execute_cgi json_proto POST (null) [19:57:17]execute_cgi path=json_proto method=POST [19:57:17]POST find Content-Length [19:57:17]Host: 172.17.37.4:8080 [19:57:17]Content-Length: 804 [19:57:17]Content-Type: application/json [19:57:17] [19:57:17]POST finish read [19:57:17]Found Content-Length = 804 [19:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 5.000, "sum" : 374.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 374.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:17]execute_script... [19:57: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)717925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 5.000, "sum" : 374.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 374.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:17]POST & json_proto [19:57:17]process_json_proto [19:57:17]json parsed OK: [19:57:17]protocol is kg_v1.0 [19:57:17]action value=close_receipt [19:57:17]process_action close_receipt [19:57:17]cmd_close_receipt [19:57:17]MH_GetDate [19:57:17]Write to MH i2c: F0 00 00 0B 41 3B [19:57:17]Write i2c OK [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: F0 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: F0 09 00 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: F0 09 00 0B 41 00 A4 D6 44 67 B8 5A 43 67 25 [19:57:17]GetLastDocTimeStamp 1732563738 [19:57:17]current date 1732564644 [19:57:17]FM_GetShiftState [19:57:17]SAM_PROTO_GetShiftState [19:57:17]wFMCommunicate request_size=4 [19:57:17]MH_SAM_APDU [19:57:17]CAPDU: 80 13 01 00 [19:57:17]Write to MH i2c: E2 08 00 0C 41 80 13 01 00 00 00 00 00 CA [19:57:17]Write i2c OK [19:57:17]MH_I2C_Read... [19:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:17]Read from MH i2c: E2 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: E2 0E 00 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: E2 0E 00 0C 41 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 49 [19:57:17]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:57:17]wFMCommunicate OK [19:57:17]SAM_PROTO_GetShiftState done [19:57:17]FM_GetShiftState done [19:57:17]opened in 1732493066 [19:57:17]opened+sec_in_day 1732579466 [19:57:17]quantity*price = 37450 [19:57:17]sum+1 = 37451 [19:57:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 374.50 НСП 1% : 3.31 НДС 12% : 39.77 Наличными: 0.00 Безнал.: 374.50 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 169 25.11.2024 19:57 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123128 ФПД: 8131476571588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T195724&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123128&fm=8131476571588&tin=02508201610067®Number=0000000000092681&sum=37450 [19:57:18]StoreToDocumentArchive [19:57:18]shift 556 fd 123128 [19:57:18]save to /storage/0556/doc_00123128 [19:57:18]save last doc name /storage/0556/doc_00123128 to /storage/kkm_last_doc_name [19:57:18]save OK [19:57:18]Clear old archive folders... [19:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:57:18]tlvbuf is B6F20B80 [19:57:18]SAM_PROTO_ClearQueue [19:57:18]wFMCommunicate request_size=4 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 09 00 00 [19:57:18]Write to MH i2c: E2 08 00 19 41 80 09 00 00 00 00 00 00 CC [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 19 41 00 90 00 CE [19:57:18]RAPDU: 90 00 [19:57:18]wFMCommunicate OK [19:57:18]SAM_PROTO_ClearQueue done [19:57:18]KKMCreateOFDPacket [19:57:18]OFDProtocolAddRootSTLVToBuf [19:57:18]FM_MakeSignedData [19:57:18]FM_MakeSignedData [19:57:18]SAM_PROTO_SignData [19:57:18]wFMCommunicate request_size=4 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 0D 01 02 [19:57:18]Write to MH i2c: E2 08 00 1A 41 80 0D 01 02 00 00 00 00 D4 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 1A 41 00 90 00 CF [19:57:18]RAPDU: 90 00 [19:57:18]wFMCommunicate OK [19:57:18]wFMCommunicate request_size=255 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 4A 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A4 D6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F8 E0 01 00 35 04 06 00 [19:57:18]Write to MH i2c: E2 02 01 1B 41 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 4A 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A4 D6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F8 E0 01 00 35 04 06 00 00 00 65 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 1B 41 00 90 00 D0 [19:57:18]RAPDU: 90 00 [19:57:18]wFMCommunicate OK [19:57:18]wFMCommunicate request_size=11 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 0D 02 02 06 07 65 41 C5 C5 C4 [19:57:18]Write to MH i2c: E2 0E 00 1C 41 80 0D 02 02 06 00 07 65 41 C5 C5 C4 00 00 DE [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 1C 41 00 90 00 D1 [19:57:18]RAPDU: 90 00 [19:57:18]wFMCommunicate OK [19:57:18]wFMCommunicate request_size=4 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 0D 03 02 [19:57:18]Write to MH i2c: E2 08 00 1D 41 80 0D 03 02 00 00 00 00 D9 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 0B 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 0B 00 1D 41 00 D4 56 6B 4B 2F 11 8F 85 90 00 0E [19:57:18]RAPDU: D4 56 6B 4B 2F 11 8F 85 90 00 [19:57:18]wFMCommunicate OK [19:57:18]SAM_PROTO_SignData done [19:57:18]FM_MakeSignedData done [19:57:18]CreateOFDProtocolMessage [19:57:18]wFMCommunicate request_size=4 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 11 00 00 [19:57:18]Write to MH i2c: E2 08 00 1E 41 80 11 00 00 00 00 00 00 D9 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 17 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 17 00 1E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 30 [19:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:57:19]wFMCommunicate OK [19:57:19]CreateOFDProtocolMessage done [19:57:19]OFDSenderStorePacket 123128 [19:57:19]StoreOFDPacket docnum=123128 [19:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 6B 18 08 01 F8 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 4A 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A4 D6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F8 E0 01 00 35 04 06 00 07 65 41 C5 C5 C4 D4 56 6B 4B 2F 11 8F 85 [19:57:19]CheckFolder [19:57:19]dirname=/storage/ofd_packets [19:57:19]CheckFolder done [19:57:19]ProducePacketName [19:57:19]name=ofd_packets/00123128 [19:57:19]NVStorageSaveData ofd_packets/00123128 [19:57:19]File name is /storage/ofd_packets/00123128 [19:57:19]Write 302 bytes [19:57:19]NVStorageSaveData done [19:57:19]OFDSenderStorePacket done [19:57:19]KKMCreateOFDPacket done [19:57:19]NVStorageSaveData kkm_last_timestamp [19:57:19]File name is /storage/kkm_last_timestamp [19:57:19]Write 4 bytes [19:57:19]NVStorageSaveData done [19:57:19]ExternCall_PrintAddStr [19:57:19]wPrintStart [19:57:19]Write to MH i2c: 01 00 00 1F 41 60 [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 07 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 07 00 1F 41 00 00 00 00 00 FF 0F 75 [19:57:19]RasterBufferAndPrint [19:57:19]line Счет N : (1)717925 [19:57:19]line ИНН: 02508201610067 [19:57:19]line Контрольно-Кассовый Чек [19:57:19]line ПРОДАЖА [19:57:19]line ТРК (МРК, ГНК) : 5 [19:57:19]line Товар: 2710194210 [19:57:19]line ДТ(л)-К-5 [19:57:19]line 5.000 * 74.90 [19:57:19]line = 374.50 [19:57:19]line НДС 12% НСП 1% [19:57:19]line > о реализуемом товаре [19:57:19]line ИТОГО: 374.50 [19:57:19]line НСП 1% : 3.31 [19:57:19]line НДС 12% : 39.77 [19:57:19]line Наличными: 0.00 [19:57:19]line Безнал.: 374.50 [19:57:19]line Место: АЗС № 64 "Партнер Нефть" [19:57:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:57:19]line СНО: Общий режим [19:57:19]line Чек 169 25.11.2024 19:57 [19:57:19]line Смена: 556 ФФД: 1.0 [19:57:19]line ЗНМ: 0300000033 [19:57:19]line РНМ: 0000000000092681 [19:57:19]line Версия ККМ: 001 [19:57:19]line Платежная система: O! деньги [19:57:19]line ФМ: 0000000000874881 [19:57:19]line ФД: 123128 [19:57:19]line ФПД: 8131476571588 [19:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T195724&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123128&fm=8131476571588&tin=02508201610067®Number=0000000000092681&sum=37450 [19:57:19]OFD Sender: Processing packet 123128 [packets to send 7, broken 6] [19:57:19]ProducePacketName [19:57:19]name=ofd_packets/00123128 [19:57:19]OFD Sender: To server: pG, [19:57:19]CommunicateWithHost lk.salyk.kg:30040 [19:57:19]ConnectInit lk.salyk.kg [19:57:19]written 0, free lines is 4095 [19:57:19]Connected sock=9 [19:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 6B 18 08 01 F8 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 4A 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A4 D6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F8 E0 01 00 35 04 06 00 07 65 41 C5 C5 C4 D4 56 6B 4B 2F 11 8F 85 [19:57:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6E A8 47 00 67 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F8 E0 01 00 F4 03 04 00 68 82 44 67 B6 04 01 00 00 DF EE 2F 7D 91 EE C1 DA [19:57:19]CommunicateWithHost err = 0 [19:57:19]CheckOFDResponse [19:57:19]1017 (14) - 77093643461234 [19:57:19]1041 (16) - 0000000000874881 [19:57:19]1040 (4) - 123128 [19:57:19]1012 (4) - 25.11.2024 13:58 [19:57:19]1206 (1) - 0 [19:57:19]OFD Sender: Remove packet 123128 [19:57:19]ProducePacketName [19:57:19]name=ofd_packets/00123128 [19:57:19]NVStorageDeleteData [19:57:19]Write to MH i2c: 01 00 00 49 41 8A [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 07 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 07 00 49 41 00 00 00 00 00 67 0C 04 [19:57:19]RasterBufferAndPrint [19:57:19]line [19:57:19]line [19:57:19]line [19:57:19]line [19:57:19]line [19:57:19]written 0, free lines is 3179 [19:57:19]MH_Cut [19:57:19]Write to MH i2c: D1 01 00 50 41 01 63 [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: D1 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: D1 01 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: D1 01 00 50 41 00 62 [19:57:19]Write to MH i2c: 01 00 00 51 41 92 [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:20]OFD Sender: No OFD packet to send [19:57:21]*** Cut start [19:57:21]*** Partial cut [19:57:21]*** CUTSNS_PIN = 1 [19:57:21]*** CUTSNS_PIN = 0 [19:57:21]*** Brake cut motor [19:57:21]Read from MH i2c: 01 [19:57:21]MH_I2C_Read... [19:57:21]*** Stop cut motor [19:57:21]*** Cut end [19:57:21]Read from MH i2c: 01 07 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: 01 07 00 51 41 00 00 00 00 00 FF 0F A7 [19:57:21]process_action close_receipt done [19:57:21]requested_data is exist [19:57:21]produce_requested_data [19:57:21]requested_item fm.sn is exist - process it [19:57:21]wFMCommunicate request_size=4 [19:57:21]MH_SAM_APDU [19:57:21]CAPDU: 80 11 00 00 [19:57:21]Write to MH i2c: E2 08 00 52 41 80 11 00 00 00 00 00 00 0D [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:21]Read from MH i2c: E2 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 17 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 17 00 52 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 64 [19:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:57:21]wFMCommunicate OK [19:57:21]requested_item fd.num is exist - process it [19:57:21]SAM_PROTO_GetFieldsCounters [19:57:21]wFMCommunicate request_size=4 [19:57:21]MH_SAM_APDU [19:57:21]CAPDU: 80 13 00 00 [19:57:21]Write to MH i2c: E2 08 00 53 41 80 13 00 00 00 00 00 00 10 [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:22]Read from MH i2c: E2 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 62 00 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 62 00 53 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F8 E0 01 00 0E 04 04 00 2C 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 38 [19:57:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F8 E0 01 00 0E 04 04 00 2C 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 [19:57:22]wFMCommunicate OK [19:57:22]SAM_PROTO_GetFieldsCounters done [19:57:22]requested_item shift.num is exist - process it [19:57:22]requested_item shift.opened is exist - process it [19:57:22]req_shift_opened [19:57:22]FM_GetShiftState [19:57:22]SAM_PROTO_GetShiftState [19:57:22]wFMCommunicate request_size=4 [19:57:22]MH_SAM_APDU [19:57:22]CAPDU: 80 13 01 00 [19:57:22]Write to MH i2c: E2 08 00 54 41 80 13 01 00 00 00 00 00 12 [19:57:22]Write i2c OK [19:57:22]MH_I2C_Read... [19:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:22]Read from MH i2c: E2 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 0E 00 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 0E 00 54 41 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 91 [19:57:22]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [19:57:22]wFMCommunicate OK [19:57:22]SAM_PROTO_GetShiftState done [19:57:22]FM_GetShiftState done [19:57:22]req_shift_opened done [19:57:22]requested_item shift.open_date is exist - process it [19:57:22]req_shift_open_date [19:57:22]req_shift_open_date done [19:57:22]produce_requested_data done [19:57:22]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123128,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [19:57:22]process_action_free close_receipt [19:57:22]json_value_free [19:57:22]json_value_free done [19:57:22]process_json_proto returns [19:57:22]Send response to host [19:57:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123128,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [19:57:22]free response buf [19:57:22]execute_script done [19:57:22]execute_script returns [19:57:22]free content buf [19:57:22]Sock 7.Close socket [19:57:22]Sock 7.Thread stoped [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:24]accept exits with 10 [20:09:24]New connection [20:09:24]New thread 3066580324 created [20:09:24]Thread 3066723684 joined [20:09:24]Waiting for new connection... [20:09:24] Sock 10.Parse request [20:09:24]Sock 10.Check first char [20:09:24]Sock 10.First char is OK [20:09:24]request: POST /json_proto HTTP/1.0 [20:09:24]Method: POST [20:09:24]URL: /json_proto [20:09:24]Method is POST - this is cgi request [20:09:24]url: /json_proto [20:09:24]query_string will be loaded in cgi processing [20:09:24]execute_cgi json_proto POST (null) [20:09:24]execute_cgi path=json_proto method=POST [20:09:24]POST find Content-Length [20:09:24]Host: 172.17.37.4:8080 [20:09:24]Content-Length: 677 [20:09:24]Content-Type: application/json [20:09:24] [20:09:24]POST finish read [20:09:24]Found Content-Length = 677 [20:09:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 1.490, "sum" : 100.43, "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" ] } } [20:09:24]execute_script... [20:09:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 1.490, "sum" : 100.43, "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" ] } } [20:09:24]POST & json_proto [20:09:24]process_json_proto [20:09:24]json parsed OK: [20:09:24]protocol is kg_v1.0 [20:09:24]action value=close_receipt [20:09:24]process_action close_receipt [20:09:24]cmd_close_receipt [20:09:24]MH_GetDate [20:09:24]Write to MH i2c: F0 00 00 55 41 85 [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: F0 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: F0 09 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: F0 09 00 55 41 00 7B D9 44 67 B8 5A 43 67 49 [20:09:24]GetLastDocTimeStamp 1732564644 [20:09:24]current date 1732565371 [20:09:24]FM_GetShiftState [20:09:24]SAM_PROTO_GetShiftState [20:09:24]wFMCommunicate request_size=4 [20:09:24]MH_SAM_APDU [20:09:24]CAPDU: 80 13 01 00 [20:09:24]Write to MH i2c: E2 08 00 56 41 80 13 01 00 00 00 00 00 14 [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:24]Read from MH i2c: E2 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 0E 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 0E 00 56 41 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 93 [20:09:24]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:09:24]wFMCommunicate OK [20:09:24]SAM_PROTO_GetShiftState done [20:09:24]FM_GetShiftState done [20:09:24]opened in 1732493066 [20:09:24]opened+sec_in_day 1732579466 [20:09:24]quantity*price = 10042 [20:09:24]sum+1 = 10044 [20:09:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 170 25.11.2024 20:09 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123129 ФПД: 81660083476787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T200931&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123129&fm=81660083476787&tin=02508201610067®Number=0000000000092681&sum=10000 [20:09:25]StoreToDocumentArchive [20:09:25]shift 556 fd 123129 [20:09:25]save to /storage/0556/doc_00123129 [20:09:25]save last doc name /storage/0556/doc_00123129 to /storage/kkm_last_doc_name [20:09:25]save OK [20:09:25]Clear old archive folders... [20:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:25]tlvbuf is 01F2FAD0 [20:09:25]SAM_PROTO_ClearQueue [20:09:25]wFMCommunicate request_size=4 [20:09:25]MH_SAM_APDU [20:09:25]CAPDU: 80 09 00 00 [20:09:25]Write to MH i2c: E2 08 00 63 41 80 09 00 00 00 00 00 00 16 [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:25]Read from MH i2c: E2 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 63 41 00 90 00 18 [20:09:25]RAPDU: 90 00 [20:09:25]wFMCommunicate OK [20:09:25]SAM_PROTO_ClearQueue done [20:09:25]KKMCreateOFDPacket [20:09:25]OFDProtocolAddRootSTLVToBuf [20:09:25]FM_MakeSignedData [20:09:25]FM_MakeSignedData [20:09:25]SAM_PROTO_SignData [20:09:25]wFMCommunicate request_size=4 [20:09:25]MH_SAM_APDU [20:09:25]CAPDU: 80 0D 01 02 [20:09:25]Write to MH i2c: E2 08 00 64 41 80 0D 01 02 00 00 00 00 1E [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:25]OFD Sender: No OFD packet to send [20:09:25]Read from MH i2c: E2 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 [20:09:25]MH_I2C_Read... [20:09:25]Read from MH i2c: E2 03 00 64 41 00 90 00 19 [20:09:25]RAPDU: 90 00 [20:09:25]wFMCommunicate OK [20:09:25]wFMCommunicate request_size=255 [20:09:25]MH_SAM_APDU [20:09:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D2 05 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 3B 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 AA 00 00 00 F4 03 04 00 7B D9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F9 E0 01 00 35 04 06 00 4A [20:09:25]Write to MH i2c: E2 02 01 65 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D2 05 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 3B 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 AA 00 00 00 F4 03 04 00 7B D9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F9 E0 01 00 35 04 06 00 4A 00 00 C3 [20:09:25]Write i2c OK [20:09:25]MH_I2C_Read... [20:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:26]Read from MH i2c: E2 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 03 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 03 00 65 41 00 90 00 1A [20:09:26]RAPDU: 90 00 [20:09:26]wFMCommunicate OK [20:09:26]wFMCommunicate request_size=10 [20:09:26]MH_SAM_APDU [20:09:26]CAPDU: 80 0D 02 02 05 44 F8 44 99 33 [20:09:26]Write to MH i2c: E2 0D 00 66 41 80 0D 02 02 05 00 44 F8 44 99 33 00 00 77 [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:26]Read from MH i2c: E2 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 03 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 03 00 66 41 00 90 00 1B [20:09:26]RAPDU: 90 00 [20:09:26]wFMCommunicate OK [20:09:26]wFMCommunicate request_size=4 [20:09:26]MH_SAM_APDU [20:09:26]CAPDU: 80 0D 03 02 [20:09:26]Write to MH i2c: E2 08 00 67 41 80 0D 03 02 00 00 00 00 23 [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:26]Read from MH i2c: E2 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 0B 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 0B 00 67 41 00 C0 81 1E AE 89 52 7E 0A 90 00 94 [20:09:26]RAPDU: C0 81 1E AE 89 52 7E 0A 90 00 [20:09:26]wFMCommunicate OK [20:09:26]SAM_PROTO_SignData done [20:09:26]FM_MakeSignedData done [20:09:26]CreateOFDProtocolMessage [20:09:26]wFMCommunicate request_size=4 [20:09:26]MH_SAM_APDU [20:09:26]CAPDU: 80 11 00 00 [20:09:26]Write to MH i2c: E2 08 00 68 41 80 11 00 00 00 00 00 00 23 [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:26]Read from MH i2c: E2 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 17 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 17 00 68 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7A [20:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:09:26]wFMCommunicate OK [20:09:26]CreateOFDProtocolMessage done [20:09:26]OFDSenderStorePacket 123129 [20:09:26]StoreOFDPacket docnum=123129 [20:09:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4B 63 07 01 C5 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D2 05 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 3B 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 AA 00 00 00 F4 03 04 00 7B D9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F9 E0 01 00 35 04 06 00 4A 44 F8 44 99 33 C0 81 1E AE 89 52 7E 0A [20:09:26]CheckFolder [20:09:26]dirname=/storage/ofd_packets [20:09:26]CheckFolder done [20:09:26]ProducePacketName [20:09:26]name=ofd_packets/00123129 [20:09:26]NVStorageSaveData ofd_packets/00123129 [20:09:26]File name is /storage/ofd_packets/00123129 [20:09:26]Write 301 bytes [20:09:26]NVStorageSaveData done [20:09:26]OFDSenderStorePacket done [20:09:26]KKMCreateOFDPacket done [20:09:26]NVStorageSaveData kkm_last_timestamp [20:09:26]File name is /storage/kkm_last_timestamp [20:09:26]Write 4 bytes [20:09:26]NVStorageSaveData done [20:09:26]ExternCall_PrintAddStr [20:09:26]wPrintStart [20:09:26]Write to MH i2c: 01 00 00 69 41 AA [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 07 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 07 00 69 41 00 00 00 00 00 FF 0F BF [20:09:26]RasterBufferAndPrint [20:09:26]line Счет N : (1)717926 [20:09:26]line ИНН: 02508201610067 [20:09:26]line Контрольно-Кассовый Чек [20:09:26]line ПРОДАЖА [20:09:26]line ТРК (МРК, ГНК) : 12 [20:09:26]line Товар: 2710124130 [20:09:26]line Аи-92-К-4 [20:09:26]line 1.490 * 67.40 [20:09:26]line = 100.43 [20:09:26]line НДС 12% НСП 1% [20:09:26]line > о реализуемом товаре [20:09:26]line ОКРУГЛЕНИЕ: -0.43 [20:09:26]line ИТОГО: 100.00 [20:09:26]line Внесено: 100.00 [20:09:26]line СДАЧА: 0.00 [20:09:26]line НСП 1% : 0.89 [20:09:26]line НДС 12% : 10.66 [20:09:26]line Наличными: 100.00 [20:09:26]line Безнал.: 0.00 [20:09:26]line Место: АЗС № 64 "Партнер Нефть" [20:09:26]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:09:26]line СНО: Общий режим [20:09:26]line Чек 170 25.11.2024 20:09 [20:09:26]line Смена: 556 ФФД: 1.0 [20:09:26]line ЗНМ: 0300000033 [20:09:26]line РНМ: 0000000000092681 [20:09:26]line Версия ККМ: 001 [20:09:26]line ФМ: 0000000000874881 [20:09:26]line ФД: 123129 [20:09:26]line ФПД: 81660083476787 [20:09:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T200931&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123129&fm=81660083476787&tin=02508201610067®Number=0000000000092681&sum=10000 [20:09:26]OFD Sender: Processing packet 123129 [packets to send 7, broken 6] [20:09:26]ProducePacketName [20:09:26]name=ofd_packets/00123129 [20:09:26]OFD Sender: To server: pG, [20:09:26]CommunicateWithHost lk.salyk.kg:30040 [20:09:26]ConnectInit lk.salyk.kg [20:09:26]written 0, free lines is 4095 [20:09:26]Connected sock=9 [20:09:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4B 63 07 01 C5 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D2 05 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 3B 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 AA 00 00 00 F4 03 04 00 7B D9 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F9 E0 01 00 35 04 06 00 4A 44 F8 44 99 33 C0 81 1E AE 89 52 7E 0A [20:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7D 00 47 00 6D 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 F9 E0 01 00 F4 03 04 00 40 85 44 67 B6 04 01 00 00 E9 0D 8E 2B AA 95 B4 2C [20:09:26]CommunicateWithHost err = 0 [20:09:26]CheckOFDResponse [20:09:26]1017 (14) - 77093643461234 [20:09:26]1041 (16) - 0000000000874881 [20:09:26]1040 (4) - 123129 [20:09:26]1012 (4) - 25.11.2024 14:10 [20:09:26]1206 (1) - 0 [20:09:26]OFD Sender: Remove packet 123129 [20:09:26]ProducePacketName [20:09:26]name=ofd_packets/00123129 [20:09:26]NVStorageDeleteData [20:09:26]Write to MH i2c: 01 00 00 94 41 D5 [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 07 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 07 00 94 41 00 00 00 00 00 51 0C 39 [20:09:27]RasterBufferAndPrint [20:09:27]line [20:09:27]line [20:09:27]line [20:09:27]line [20:09:27]line [20:09:27]written 0, free lines is 3158 [20:09:27]MH_Cut [20:09:27]Write to MH i2c: D1 01 00 9B 41 01 AE [20:09:27]Write i2c OK [20:09:27]MH_I2C_Read... [20:09:27]Read from MH i2c: D1 [20:09:27]MH_I2C_Read... [20:09:27]Read from MH i2c: D1 01 00 [20:09:27]MH_I2C_Read... [20:09:27]Read from MH i2c: D1 01 00 9B 41 00 AD [20:09:27]Write to MH i2c: 01 00 00 9C 41 DD [20:09:27]Write i2c OK [20:09:27]MH_I2C_Read... [20:09:27]OFD Sender: No OFD packet to send [20:09:28]*** Cut start [20:09:28]*** Partial cut [20:09:28]*** CUTSNS_PIN = 1 [20:09:28]*** CUTSNS_PIN = 0 [20:09:28]*** Brake cut motor [20:09:29]Read from MH i2c: 01 [20:09:29]MH_I2C_Read... [20:09:29]*** Stop cut motor [20:09:29]*** Cut end [20:09:29]Read from MH i2c: 01 07 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 07 00 9C 41 00 00 00 00 00 FF 0F F2 [20:09:29]process_action close_receipt done [20:09:29]requested_data is exist [20:09:29]produce_requested_data [20:09:29]requested_item fm.sn is exist - process it [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 11 00 00 [20:09:29]Write to MH i2c: E2 08 00 9D 41 80 11 00 00 00 00 00 00 58 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 17 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 17 00 9D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AF [20:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:09:29]wFMCommunicate OK [20:09:29]requested_item fd.num is exist - process it [20:09:29]SAM_PROTO_GetFieldsCounters [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 13 00 00 [20:09:29]Write to MH i2c: E2 08 00 9E 41 80 13 00 00 00 00 00 00 5B [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 62 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 62 00 9E 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F9 E0 01 00 0E 04 04 00 2C 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 [20:09:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 F9 E0 01 00 0E 04 04 00 2C 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 [20:09:29]wFMCommunicate OK [20:09:29]SAM_PROTO_GetFieldsCounters done [20:09:29]requested_item shift.num is exist - process it [20:09:29]requested_item shift.opened is exist - process it [20:09:29]req_shift_opened [20:09:29]FM_GetShiftState [20:09:29]SAM_PROTO_GetShiftState [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 13 01 00 [20:09:29]Write to MH i2c: E2 08 00 9F 41 80 13 01 00 00 00 00 00 5D [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 0E 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 0E 00 9F 41 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 DC [20:09:29]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:09:29]wFMCommunicate OK [20:09:29]SAM_PROTO_GetShiftState done [20:09:29]FM_GetShiftState done [20:09:29]req_shift_opened done [20:09:29]requested_item shift.open_date is exist - process it [20:09:29]req_shift_open_date [20:09:29]req_shift_open_date done [20:09:29]produce_requested_data done [20:09:29]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123129,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [20:09:29]process_action_free close_receipt [20:09:29]json_value_free [20:09:29]json_value_free done [20:09:29]process_json_proto returns [20:09:29]Send response to host [20:09:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123129,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [20:09:29]free response buf [20:09:29]execute_script done [20:09:29]execute_script returns [20:09:29]free content buf [20:09:29]Sock 10.Close socket [20:09:29]Sock 10.Thread stoped [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:40]accept exits with 7 [20:14:40]New connection [20:14:40]New thread 3066723684 created [20:14:40]Thread 3066580324 joined [20:14:40]Waiting for new connection... [20:14:40] Sock 7.Parse request [20:14:40]Sock 7.Check first char [20:14:40]Sock 7.First char is OK [20:14:40]request: POST /json_proto HTTP/1.0 [20:14:40]Method: POST [20:14:40]URL: /json_proto [20:14:40]Method is POST - this is cgi request [20:14:40]url: /json_proto [20:14:40]query_string will be loaded in cgi processing [20:14:40]execute_cgi json_proto POST (null) [20:14:40]execute_cgi path=json_proto method=POST [20:14:40]POST find Content-Length [20:14:40]Host: 172.17.37.4:8080 [20:14:40]Content-Length: 677 [20:14:40]Content-Type: application/json [20:14:40] [20:14:40]POST finish read [20:14:40]Found Content-Length = 677 [20:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:40]execute_script... [20:14:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:40]POST & json_proto [20:14:40]process_json_proto [20:14:40]json parsed OK: [20:14:40]protocol is kg_v1.0 [20:14:40]action value=close_receipt [20:14:40]process_action close_receipt [20:14:40]cmd_close_receipt [20:14:40]MH_GetDate [20:14:40]Write to MH i2c: F0 00 00 A0 41 D0 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: F0 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: F0 09 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: F0 09 00 A0 41 00 B7 DA 44 67 B8 5A 43 67 D1 [20:14:40]GetLastDocTimeStamp 1732565371 [20:14:40]current date 1732565687 [20:14:40]FM_GetShiftState [20:14:40]SAM_PROTO_GetShiftState [20:14:40]wFMCommunicate request_size=4 [20:14:40]MH_SAM_APDU [20:14:40]CAPDU: 80 13 01 00 [20:14:40]Write to MH i2c: E2 08 00 A1 41 80 13 01 00 00 00 00 00 5F [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:40]Read from MH i2c: E2 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 0E 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 0E 00 A1 41 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 DE [20:14:40]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:14:40]wFMCommunicate OK [20:14:40]SAM_PROTO_GetShiftState done [20:14:40]FM_GetShiftState done [20:14:40]opened in 1732493066 [20:14:40]opened+sec_in_day 1732579466 [20:14:40]quantity*price = 50010 [20:14:40]sum+1 = 50012 [20:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 171 25.11.2024 20:14 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123130 ФПД: 280923808337382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T201447&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123130&fm=280923808337382&tin=02508201610067®Number=0000000000092681&sum=50000 [20:14:41]StoreToDocumentArchive [20:14:41]shift 556 fd 123130 [20:14:41]save to /storage/0556/doc_00123130 [20:14:41]save last doc name /storage/0556/doc_00123130 to /storage/kkm_last_doc_name [20:14:41]save OK [20:14:41]Clear old archive folders... [20:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:41]tlvbuf is 0215AD50 [20:14:41]SAM_PROTO_ClearQueue [20:14:41]wFMCommunicate request_size=4 [20:14:41]MH_SAM_APDU [20:14:41]CAPDU: 80 09 00 00 [20:14:41]Write to MH i2c: E2 08 00 AE 41 80 09 00 00 00 00 00 00 61 [20:14:41]Write i2c OK [20:14:41]MH_I2C_Read... [20:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:41]Read from MH i2c: E2 [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: E2 03 00 [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: E2 03 00 AE 41 00 90 00 63 [20:14:41]RAPDU: 90 00 [20:14:41]wFMCommunicate OK [20:14:41]SAM_PROTO_ClearQueue done [20:14:41]KKMCreateOFDPacket [20:14:41]OFDProtocolAddRootSTLVToBuf [20:14:41]FM_MakeSignedData [20:14:41]FM_MakeSignedData [20:14:41]SAM_PROTO_SignData [20:14:41]wFMCommunicate request_size=4 [20:14:41]MH_SAM_APDU [20:14:41]CAPDU: 80 0D 01 02 [20:14:41]Write to MH i2c: E2 08 00 AF 41 80 0D 01 02 00 00 00 00 69 [20:14:41]Write i2c OK [20:14:41]MH_I2C_Read... [20:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 AF 41 00 90 00 64 [20:14:42]RAPDU: 90 00 [20:14:42]wFMCommunicate OK [20:14:42]wFMCommunicate request_size=255 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B7 DA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FA E0 01 00 35 04 06 00 FF [20:14:42]Write to MH i2c: E2 02 01 B0 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B7 DA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FA E0 01 00 35 04 06 00 FF 00 00 BF [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 B0 41 00 90 00 65 [20:14:42]RAPDU: 90 00 [20:14:42]wFMCommunicate OK [20:14:42]wFMCommunicate request_size=10 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 0D 02 02 05 7F AB CE 0D E6 [20:14:42]Write to MH i2c: E2 0D 00 B1 41 80 0D 02 02 05 00 7F AB CE 0D E6 00 00 61 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 B1 41 00 90 00 66 [20:14:42]RAPDU: 90 00 [20:14:42]wFMCommunicate OK [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 0D 03 02 [20:14:42]Write to MH i2c: E2 08 00 B2 41 80 0D 03 02 00 00 00 00 6E [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0B 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0B 00 B2 41 00 E9 12 40 2B 4A E3 C8 16 90 00 E0 [20:14:42]RAPDU: E9 12 40 2B 4A E3 C8 16 90 00 [20:14:42]wFMCommunicate OK [20:14:42]SAM_PROTO_SignData done [20:14:42]FM_MakeSignedData done [20:14:42]CreateOFDProtocolMessage [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 11 00 00 [20:14:42]Write to MH i2c: E2 08 00 B3 41 80 11 00 00 00 00 00 00 6E [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 17 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 17 00 B3 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C5 [20:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:14:42]wFMCommunicate OK [20:14:42]CreateOFDProtocolMessage done [20:14:42]OFDSenderStorePacket 123130 [20:14:42]StoreOFDPacket docnum=123130 [20:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B7 3A 07 01 E4 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B7 DA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FA E0 01 00 35 04 06 00 FF 7F AB CE 0D E6 E9 12 40 2B 4A E3 C8 16 [20:14:42]CheckFolder [20:14:42]dirname=/storage/ofd_packets [20:14:42]CheckFolder done [20:14:42]ProducePacketName [20:14:42]name=ofd_packets/00123130 [20:14:42]NVStorageSaveData ofd_packets/00123130 [20:14:42]File name is /storage/ofd_packets/00123130 [20:14:42]Write 301 bytes [20:14:42]NVStorageSaveData done [20:14:42]OFDSenderStorePacket done [20:14:42]KKMCreateOFDPacket done [20:14:42]NVStorageSaveData kkm_last_timestamp [20:14:42]File name is /storage/kkm_last_timestamp [20:14:42]Write 4 bytes [20:14:42]NVStorageSaveData done [20:14:42]ExternCall_PrintAddStr [20:14:42]wPrintStart [20:14:42]Write to MH i2c: 01 00 00 B4 41 F5 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 07 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 07 00 B4 41 00 00 00 00 00 FF 0F 0A [20:14:42]RasterBufferAndPrint [20:14:42]line Счет N : (1)717928 [20:14:42]line ИНН: 02508201610067 [20:14:42]line Контрольно-Кассовый Чек [20:14:42]line ПРОДАЖА [20:14:42]line ТРК (МРК, ГНК) : 22 [20:14:42]line Товар: 2710124130 [20:14:42]line Аи-92-К-4 [20:14:42]line 7.420 * 67.40 [20:14:42]line = 500.11 [20:14:42]line НДС 12% НСП 1% [20:14:42]line > о реализуемом товаре [20:14:42]line ОКРУГЛЕНИЕ: -0.11 [20:14:42]line ИТОГО: 500.00 [20:14:42]line Внесено: 500.00 [20:14:42]line СДАЧА: 0.00 [20:14:42]line НСП 1% : 4.43 [20:14:42]line НДС 12% : 53.11 [20:14:42]line Наличными: 500.00 [20:14:42]line Безнал.: 0.00 [20:14:42]line Место: АЗС № 64 "Партнер Нефть" [20:14:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:14:42]line СНО: Общий режим [20:14:42]line Чек 171 25.11.2024 20:14 [20:14:42]line Смена: 556 ФФД: 1.0 [20:14:42]line ЗНМ: 0300000033 [20:14:42]line РНМ: 0000000000092681 [20:14:42]line Версия ККМ: 001 [20:14:42]line ФМ: 0000000000874881 [20:14:42]line ФД: 123130 [20:14:42]line ФПД: 280923808337382 [20:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T201447&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123130&fm=280923808337382&tin=02508201610067®Number=0000000000092681&sum=50000 [20:14:42]OFD Sender: Processing packet 123130 [packets to send 7, broken 6] [20:14:42]ProducePacketName [20:14:42]name=ofd_packets/00123130 [20:14:42]OFD Sender: To server: pG, [20:14:42]CommunicateWithHost lk.salyk.kg:30040 [20:14:42]ConnectInit lk.salyk.kg [20:14:42]written 0, free lines is 4095 [20:14:42]Connected sock=10 [20:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B7 3A 07 01 E4 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B7 DA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FA E0 01 00 35 04 06 00 FF 7F AB CE 0D E6 E9 12 40 2B 4A E3 C8 16 [20:14:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6E 19 47 00 78 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FA E0 01 00 F4 03 04 00 7C 86 44 67 B6 04 01 00 00 9D 5E FC 9B 06 3D 5C AF [20:14:43]CommunicateWithHost err = 0 [20:14:43]CheckOFDResponse [20:14:43]1017 (14) - 77093643461234 [20:14:43]1041 (16) - 0000000000874881 [20:14:43]1040 (4) - 123130 [20:14:43]1012 (4) - 25.11.2024 14:15 [20:14:43]1206 (1) - 0 [20:14:43]OFD Sender: Remove packet 123130 [20:14:43]ProducePacketName [20:14:43]name=ofd_packets/00123130 [20:14:43]NVStorageDeleteData [20:14:43]Write to MH i2c: 01 00 00 DF 41 20 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 07 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 07 00 DF 41 00 00 00 00 00 4F 0C 82 [20:14:43]RasterBufferAndPrint [20:14:43]line [20:14:43]line [20:14:43]line [20:14:43]line [20:14:43]line [20:14:43]written 0, free lines is 3154 [20:14:43]MH_Cut [20:14:43]Write to MH i2c: D1 01 00 E6 41 01 F9 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: D1 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: D1 01 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: D1 01 00 E6 41 00 F8 [20:14:43]Write to MH i2c: 01 00 00 E7 41 28 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]OFD Sender: No OFD packet to send [20:14:44]*** Cut start [20:14:44]*** Partial cut [20:14:44]*** CUTSNS_PIN = 1 [20:14:44]*** CUTSNS_PIN = 0 [20:14:44]*** Brake cut motor [20:14:45]Read from MH i2c: 01 [20:14:45]MH_I2C_Read... [20:14:45]*** Stop cut motor [20:14:45]*** Cut end [20:14:45]Read from MH i2c: 01 07 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 07 00 E7 41 00 00 00 00 00 FF 0F 3D [20:14:45]process_action close_receipt done [20:14:45]requested_data is exist [20:14:45]produce_requested_data [20:14:45]requested_item fm.sn is exist - process it [20:14:45]wFMCommunicate request_size=4 [20:14:45]MH_SAM_APDU [20:14:45]CAPDU: 80 11 00 00 [20:14:45]Write to MH i2c: E2 08 00 E8 41 80 11 00 00 00 00 00 00 A3 [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:45]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 17 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 17 00 E8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FA [20:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:14:45]wFMCommunicate OK [20:14:45]requested_item fd.num is exist - process it [20:14:45]SAM_PROTO_GetFieldsCounters [20:14:45]wFMCommunicate request_size=4 [20:14:45]MH_SAM_APDU [20:14:45]CAPDU: 80 13 00 00 [20:14:45]Write to MH i2c: E2 08 00 E9 41 80 13 00 00 00 00 00 00 A6 [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:45]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 62 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 62 00 E9 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FA E0 01 00 0E 04 04 00 2C 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 [20:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FA E0 01 00 0E 04 04 00 2C 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 [20:14:45]wFMCommunicate OK [20:14:45]SAM_PROTO_GetFieldsCounters done [20:14:45]requested_item shift.num is exist - process it [20:14:45]requested_item shift.opened is exist - process it [20:14:45]req_shift_opened [20:14:45]FM_GetShiftState [20:14:45]SAM_PROTO_GetShiftState [20:14:45]wFMCommunicate request_size=4 [20:14:45]MH_SAM_APDU [20:14:45]CAPDU: 80 13 01 00 [20:14:45]Write to MH i2c: E2 08 00 EA 41 80 13 01 00 00 00 00 00 A8 [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:45]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 0E 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 0E 00 EA 41 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 27 [20:14:45]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:14:45]wFMCommunicate OK [20:14:45]SAM_PROTO_GetShiftState done [20:14:45]FM_GetShiftState done [20:14:45]req_shift_opened done [20:14:45]requested_item shift.open_date is exist - process it [20:14:45]req_shift_open_date [20:14:45]req_shift_open_date done [20:14:45]produce_requested_data done [20:14:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123130,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [20:14:45]process_action_free close_receipt [20:14:45]json_value_free [20:14:45]json_value_free done [20:14:45]process_json_proto returns [20:14:45]Send response to host [20:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123130,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [20:14:45]free response buf [20:14:45]execute_script done [20:14:45]execute_script returns [20:14:45]free content buf [20:14:45]Sock 7.Close socket [20:14:45]Sock 7.Thread stoped [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:56]accept exits with 9 [20:14:56]New connection [20:14:56]New thread 3066580324 created [20:14:56]Thread 3066723684 joined [20:14:56]Waiting for new connection... [20:14:56] Sock 9.Parse request [20:14:56]Sock 9.Check first char [20:14:56]Sock 9.First char is OK [20:14:56]request: POST /json_proto HTTP/1.0 [20:14:56]Method: POST [20:14:56]URL: /json_proto [20:14:56]Method is POST - this is cgi request [20:14:56]url: /json_proto [20:14:56]query_string will be loaded in cgi processing [20:14:56]execute_cgi json_proto POST (null) [20:14:56]execute_cgi path=json_proto method=POST [20:14:56]POST find Content-Length [20:14:56]Host: 172.17.37.4:8080 [20:14:56]Content-Length: 758 [20:14:56]Content-Type: application/json [20:14:56] [20:14:56]POST finish read [20:14:56]Found Content-Length = 758 [20:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30114948", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:56]execute_script... [20:14: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)717927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30114948", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:56]POST & json_proto [20:14:56]process_json_proto [20:14:56]json parsed OK: [20:14:56]protocol is kg_v1.0 [20:14:56]action value=close_receipt [20:14:56]process_action close_receipt [20:14:56]cmd_close_receipt [20:14:56]MH_GetDate [20:14:56]Write to MH i2c: F0 00 00 EB 41 1B [20:14:56]Write i2c OK [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: F0 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: F0 09 00 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: F0 09 00 EB 41 00 C6 DA 44 67 B8 5A 43 67 2B [20:14:56]GetLastDocTimeStamp 1732565687 [20:14:56]current date 1732565702 [20:14:56]FM_GetShiftState [20:14:56]SAM_PROTO_GetShiftState [20:14:56]wFMCommunicate request_size=4 [20:14:56]MH_SAM_APDU [20:14:56]CAPDU: 80 13 01 00 [20:14:56]Write to MH i2c: E2 08 00 EC 41 80 13 01 00 00 00 00 00 AA [20:14:56]Write i2c OK [20:14:56]MH_I2C_Read... [20:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:56]Read from MH i2c: E2 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 0E 00 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 0E 00 EC 41 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 29 [20:14:56]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:14:56]wFMCommunicate OK [20:14:56]SAM_PROTO_GetShiftState done [20:14:56]FM_GetShiftState done [20:14:56]opened in 1732493066 [20:14:56]opened+sec_in_day 1732579466 [20:14:56]quantity*price = 0 [20:14:56]sum+1 = 1 [20:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 172 25.11.2024 20:15 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30114948 ФМ: 0000000000874881 ФД: 123131 ФПД: 139937210910133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T201502&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123131&fm=139937210910133&tin=02508201610067®Number=0000000000092681&sum=0 [20:14:57]StoreToDocumentArchive [20:14:57]shift 556 fd 123131 [20:14:57]save to /storage/0556/doc_00123131 [20:14:57]save last doc name /storage/0556/doc_00123131 to /storage/kkm_last_doc_name [20:14:57]save OK [20:14:57]Clear old archive folders... [20:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:14:57]tlvbuf is 020A9540 [20:14:57]SAM_PROTO_ClearQueue [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 09 00 00 [20:14:57]Write to MH i2c: E2 08 00 F9 41 80 09 00 00 00 00 00 00 AC [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 F9 41 00 90 00 AE [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]SAM_PROTO_ClearQueue done [20:14:57]KKMCreateOFDPacket [20:14:57]OFDProtocolAddRootSTLVToBuf [20:14:57]FM_MakeSignedData [20:14:57]FM_MakeSignedData [20:14:57]SAM_PROTO_SignData [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 01 02 [20:14:57]Write to MH i2c: E2 08 00 FA 41 80 0D 01 02 00 00 00 00 B4 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 FA 41 00 90 00 AF [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=255 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 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 AC 00 00 00 F4 03 04 00 C6 DA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FB E0 01 00 35 04 06 00 [20:14:57]Write to MH i2c: E2 02 01 FB 41 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 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 AC 00 00 00 F4 03 04 00 C6 DA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FB E0 01 00 35 04 06 00 00 00 A4 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 FB 41 00 90 00 B0 [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=11 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 02 02 06 7F 45 AB BF 45 B5 [20:14:57]Write to MH i2c: E2 0E 00 FC 41 80 0D 02 02 06 00 7F 45 AB BF 45 B5 00 00 EB [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 FC 41 00 90 00 B1 [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 03 02 [20:14:57]Write to MH i2c: E2 08 00 FD 41 80 0D 03 02 00 00 00 00 B9 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 0B 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 0B 00 FD 41 00 01 16 94 4D 05 ED CD 8B 90 00 FC [20:14:57]RAPDU: 01 16 94 4D 05 ED CD 8B 90 00 [20:14:57]wFMCommunicate OK [20:14:57]SAM_PROTO_SignData done [20:14:57]FM_MakeSignedData done [20:14:57]CreateOFDProtocolMessage [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 11 00 00 [20:14:57]Write to MH i2c: E2 08 00 FE 41 80 11 00 00 00 00 00 00 B9 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 17 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 17 00 FE 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 10 [20:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:14:57]wFMCommunicate OK [20:14:57]CreateOFDProtocolMessage done [20:14:57]OFDSenderStorePacket 123131 [20:14:57]StoreOFDPacket docnum=123131 [20:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 70 D2 08 01 90 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 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 AC 00 00 00 F4 03 04 00 C6 DA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FB E0 01 00 35 04 06 00 7F 45 AB BF 45 B5 01 16 94 4D 05 ED CD 8B [20:14:57]CheckFolder [20:14:57]dirname=/storage/ofd_packets [20:14:57]CheckFolder done [20:14:57]ProducePacketName [20:14:57]name=ofd_packets/00123131 [20:14:57]NVStorageSaveData ofd_packets/00123131 [20:14:57]File name is /storage/ofd_packets/00123131 [20:14:57]Write 302 bytes [20:14:57]NVStorageSaveData done [20:14:57]OFDSenderStorePacket done [20:14:57]KKMCreateOFDPacket done [20:14:57]NVStorageSaveData kkm_last_timestamp [20:14:57]File name is /storage/kkm_last_timestamp [20:14:57]OFD Sender: Processing packet 123131 [packets to send 7, broken 6] [20:14:57]ProducePacketName [20:14:57]name=ofd_packets/00123131 [20:14:57]OFD Sender: To server: pG, [20:14:57]CommunicateWithHost lk.salyk.kg:30040 [20:14:57]ConnectInit lk.salyk.kg [20:14:57]Write 4 bytes [20:14:57]NVStorageSaveData done [20:14:57]ExternCall_PrintAddStr [20:14:57]wPrintStart [20:14:57]Write to MH i2c: 01 00 00 FF 41 40 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: 01 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: 01 07 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: 01 07 00 FF 41 00 00 00 00 00 FF 0F 55 [20:14:57]RasterBufferAndPrint [20:14:57]line Счет N : (1)717927 [20:14:57]line ИНН: 02508201610067 [20:14:57]line Контрольно-Кассовый Чек [20:14:57]line ПРОДАЖА [20:14:57]line ТРК (МРК, ГНК) : 6 [20:14:57]line Товар: 2710194210 [20:14:57]line ДТ(л)-К-5 [20:14:57]line 30.000 * 0.00 [20:14:57]line = 0.00 [20:14:57]line НДС 12% НСП 1% [20:14:57]line > о реализуемом товаре [20:14:57]line ИТОГО: 0.00 [20:14:57]line НСП 1% : 0.00 [20:14:57]line НДС 12% : 0.00 [20:14:57]line Наличными: 0.00 [20:14:57]line Безнал.: 0.00 [20:14:57]line Место: АЗС № 64 "Партнер Нефть" [20:14:57]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:14:57]line СНО: Общий режим [20:14:57]line Чек 172 25.11.2024 20:15 [20:14:57]line Смена: 556 ФФД: 1.0 [20:14:57]line ЗНМ: 0300000033 [20:14:57]line РНМ: 0000000000092681 [20:14:57]line Версия ККМ: 001 [20:14:57]line Талоны: ТК ГПНА Online [20:14:57]line 30114948 [20:14:57]line ФМ: 0000000000874881 [20:14:57]line ФД: 123131 [20:14:57]line ФПД: 139937210910133 [20:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T201502&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123131&fm=139937210910133&tin=02508201610067®Number=0000000000092681&sum=0 [20:14:58]Connected sock=11 [20:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 70 D2 08 01 90 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 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 AC 00 00 00 F4 03 04 00 C6 DA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FB E0 01 00 35 04 06 00 7F 45 AB BF 45 B5 01 16 94 4D 05 ED CD 8B [20:14:58]written 0, free lines is 4095 [20:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 66 81 47 00 36 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FB E0 01 00 F4 03 04 00 8B 86 44 67 B6 04 01 00 00 6C 68 C1 34 83 09 71 5D [20:14:58]CommunicateWithHost err = 0 [20:14:58]CheckOFDResponse [20:14:58]1017 (14) - 77093643461234 [20:14:58]1041 (16) - 0000000000874881 [20:14:58]1040 (4) - 123131 [20:14:58]1012 (4) - 25.11.2024 14:15 [20:14:58]1206 (1) - 0 [20:14:58]OFD Sender: Remove packet 123131 [20:14:58]ProducePacketName [20:14:58]name=ofd_packets/00123131 [20:14:58]NVStorageDeleteData [20:14:58]Write to MH i2c: 01 00 00 29 42 6B [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 29 42 00 00 00 00 00 69 0C E7 [20:14:58]RasterBufferAndPrint [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]written 0, free lines is 3183 [20:14:58]MH_Cut [20:14:58]Write to MH i2c: D1 01 00 30 42 01 44 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 01 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 01 00 30 42 00 43 [20:14:58]Write to MH i2c: 01 00 00 31 42 73 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]OFD Sender: No OFD packet to send [20:14:59]*** Cut start [20:14:59]*** Partial cut [20:14:59]*** CUTSNS_PIN = 1 [20:14:59]*** CUTSNS_PIN = 0 [20:15:00]*** Brake cut motor [20:15:00]Read from MH i2c: 01 [20:15:00]MH_I2C_Read... [20:15:00]*** Stop cut motor [20:15:00]*** Cut end [20:15:00]Read from MH i2c: 01 07 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: 01 07 00 31 42 00 00 00 00 00 FF 0F 88 [20:15:00]process_action close_receipt done [20:15:00]requested_data is exist [20:15:00]produce_requested_data [20:15:00]requested_item fm.sn is exist - process it [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 11 00 00 [20:15:00]Write to MH i2c: E2 08 00 32 42 80 11 00 00 00 00 00 00 EE [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 17 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 17 00 32 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 45 [20:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:15:00]wFMCommunicate OK [20:15:00]requested_item fd.num is exist - process it [20:15:00]SAM_PROTO_GetFieldsCounters [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 13 00 00 [20:15:00]Write to MH i2c: E2 08 00 33 42 80 13 00 00 00 00 00 00 F1 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 62 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 62 00 33 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FB E0 01 00 0E 04 04 00 2C 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 25 [20:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FB E0 01 00 0E 04 04 00 2C 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 [20:15:00]wFMCommunicate OK [20:15:00]SAM_PROTO_GetFieldsCounters done [20:15:00]requested_item shift.num is exist - process it [20:15:00]requested_item shift.opened is exist - process it [20:15:00]req_shift_opened [20:15:00]FM_GetShiftState [20:15:00]SAM_PROTO_GetShiftState [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 13 01 00 [20:15:00]Write to MH i2c: E2 08 00 34 42 80 13 01 00 00 00 00 00 F3 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 0E 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 0E 00 34 42 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 72 [20:15:00]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:15:00]wFMCommunicate OK [20:15:00]SAM_PROTO_GetShiftState done [20:15:00]FM_GetShiftState done [20:15:00]req_shift_opened done [20:15:00]requested_item shift.open_date is exist - process it [20:15:00]req_shift_open_date [20:15:00]req_shift_open_date done [20:15:00]produce_requested_data done [20:15:00]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123131,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [20:15:00]process_action_free close_receipt [20:15:00]json_value_free [20:15:00]json_value_free done [20:15:00]process_json_proto returns [20:15:00]Send response to host [20:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123131,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [20:15:00]free response buf [20:15:00]execute_script done [20:15:00]execute_script returns [20:15:00]free content buf [20:15:00]Sock 9.Close socket [20:15:00]Sock 9.Thread stoped [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18: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:54]accept exits with 7 [20:19:54]New connection [20:19:54]New thread 3066723684 created [20:19:54]Thread 3066580324 joined [20:19:54]Waiting for new connection... [20:19:54] Sock 7.Parse request [20:19:54]Sock 7.Check first char [20:19:54]Sock 7.First char is OK [20:19:54]request: POST /json_proto HTTP/1.0 [20:19:54]Method: POST [20:19:54]URL: /json_proto [20:19:54]Method is POST - this is cgi request [20:19:54]url: /json_proto [20:19:54]query_string will be loaded in cgi processing [20:19:54]execute_cgi json_proto POST (null) [20:19:54]execute_cgi path=json_proto method=POST [20:19:54]POST find Content-Length [20:19:54]Host: 172.17.37.4:8080 [20:19:54]Content-Length: 678 [20:19:54]Content-Type: application/json [20:19:54] [20:19:54]POST finish read [20:19:54]Found Content-Length = 678 [20:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.980, "sum" : 740.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:54]execute_script... [20:19: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)717929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.980, "sum" : 740.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:54]POST & json_proto [20:19:54]process_json_proto [20:19:54]json parsed OK: [20:19:54]protocol is kg_v1.0 [20:19:54]action value=close_receipt [20:19:54]process_action close_receipt [20:19:54]cmd_close_receipt [20:19:54]MH_GetDate [20:19:54]Write to MH i2c: F0 00 00 35 42 66 [20:19:54]Write i2c OK [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: F0 [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: F0 09 00 [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: F0 09 00 35 42 00 F1 DB 44 67 B8 5A 43 67 A2 [20:19:54]GetLastDocTimeStamp 1732565702 [20:19:54]current date 1732566001 [20:19:54]FM_GetShiftState [20:19:54]SAM_PROTO_GetShiftState [20:19:54]wFMCommunicate request_size=4 [20:19:54]MH_SAM_APDU [20:19:54]CAPDU: 80 13 01 00 [20:19:54]Write to MH i2c: E2 08 00 36 42 80 13 01 00 00 00 00 00 F5 [20:19:54]Write i2c OK [20:19:54]MH_I2C_Read... [20:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:54]Read from MH i2c: E2 [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: E2 0E 00 [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: E2 0E 00 36 42 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 74 [20:19:54]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:19:54]wFMCommunicate OK [20:19:54]SAM_PROTO_GetShiftState done [20:19:54]FM_GetShiftState done [20:19:54]opened in 1732493066 [20:19:54]opened+sec_in_day 1732579466 [20:19:54]quantity*price = 74005 [20:19:54]sum+1 = 74006 [20:19:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.59 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 173 25.11.2024 20:20 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123132 ФПД: 90668807740882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T202001&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123132&fm=90668807740882&tin=02508201610067®Number=0000000000092681&sum=74000 [20:19:55]StoreToDocumentArchive [20:19:55]shift 556 fd 123132 [20:19:55]save to /storage/0556/doc_00123132 [20:19:55]save last doc name /storage/0556/doc_00123132 to /storage/kkm_last_doc_name [20:19:55]save OK [20:19:55]Clear old archive folders... [20:19:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:19:55]tlvbuf is B6EA28F0 [20:19:55]SAM_PROTO_ClearQueue [20:19:55]wFMCommunicate request_size=4 [20:19:55]MH_SAM_APDU [20:19:55]CAPDU: 80 09 00 00 [20:19:55]Write to MH i2c: E2 08 00 43 42 80 09 00 00 00 00 00 00 F7 [20:19:55]Write i2c OK [20:19:55]MH_I2C_Read... [20:19:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:55]Read from MH i2c: E2 [20:19:55]MH_I2C_Read... [20:19:55]Read from MH i2c: E2 03 00 [20:19:55]MH_I2C_Read... [20:19:55]Read from MH i2c: E2 03 00 43 42 00 90 00 F9 [20:19:55]RAPDU: 90 00 [20:19:55]wFMCommunicate OK [20:19:55]SAM_PROTO_ClearQueue done [20:19:55]KKMCreateOFDPacket [20:19:55]OFDProtocolAddRootSTLVToBuf [20:19:55]FM_MakeSignedData [20:19:55]FM_MakeSignedData [20:19:55]SAM_PROTO_SignData [20:19:55]wFMCommunicate request_size=4 [20:19:55]MH_SAM_APDU [20:19:55]CAPDU: 80 0D 01 02 [20:19:55]Write to MH i2c: E2 08 00 44 42 80 0D 01 02 00 00 00 00 FF [20:19:55]Write i2c OK [20:19:55]MH_I2C_Read... [20:19:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:55]Read from MH i2c: E2 [20:19:55]MH_I2C_Read... [20:19:55]Read from MH i2c: E2 03 00 [20:19:55]MH_I2C_Read... [20:19:55]Read from MH i2c: E2 03 00 44 42 00 90 00 FA [20:19:55]RAPDU: 90 00 [20:19:55]wFMCommunicate OK [20:19:55]wFMCommunicate request_size=255 [20:19:55]MH_SAM_APDU [20:19:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 15 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 1E 00 00 00 00 07 04 06 00 10 21 01 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 F1 DB 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FC E0 01 00 35 04 06 00 52 [20:19:55]Write to MH i2c: E2 02 01 45 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 15 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 1E 00 00 00 00 07 04 06 00 10 21 01 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 F1 DB 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FC E0 01 00 35 04 06 00 52 00 00 07 [20:19:55]Write i2c OK [20:19:55]MH_I2C_Read... [20:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:56]Read from MH i2c: E2 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 03 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 03 00 45 42 00 90 00 FB [20:19:56]RAPDU: 90 00 [20:19:56]wFMCommunicate OK [20:19:56]wFMCommunicate request_size=10 [20:19:56]MH_SAM_APDU [20:19:56]CAPDU: 80 0D 02 02 05 76 7A 13 DD D2 [20:19:56]Write to MH i2c: E2 0D 00 46 42 80 0D 02 02 05 00 76 7A 13 DD D2 00 00 BE [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:56]Read from MH i2c: E2 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 03 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 03 00 46 42 00 90 00 FC [20:19:56]RAPDU: 90 00 [20:19:56]wFMCommunicate OK [20:19:56]wFMCommunicate request_size=4 [20:19:56]MH_SAM_APDU [20:19:56]CAPDU: 80 0D 03 02 [20:19:56]Write to MH i2c: E2 08 00 47 42 80 0D 03 02 00 00 00 00 04 [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:56]Read from MH i2c: E2 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 0B 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 0B 00 47 42 00 D0 2F B7 B7 7A D0 CE 56 90 00 E0 [20:19:56]RAPDU: D0 2F B7 B7 7A D0 CE 56 90 00 [20:19:56]wFMCommunicate OK [20:19:56]SAM_PROTO_SignData done [20:19:56]FM_MakeSignedData done [20:19:56]CreateOFDProtocolMessage [20:19:56]wFMCommunicate request_size=4 [20:19:56]MH_SAM_APDU [20:19:56]CAPDU: 80 11 00 00 [20:19:56]Write to MH i2c: E2 08 00 48 42 80 11 00 00 00 00 00 00 04 [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:56]Read from MH i2c: E2 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 17 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 17 00 48 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5B [20:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:19:56]wFMCommunicate OK [20:19:56]CreateOFDProtocolMessage done [20:19:56]OFDSenderStorePacket 123132 [20:19:56]StoreOFDPacket docnum=123132 [20:19:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F4 62 07 01 8E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 15 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 1E 00 00 00 00 07 04 06 00 10 21 01 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 F1 DB 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FC E0 01 00 35 04 06 00 52 76 7A 13 DD D2 D0 2F B7 B7 7A D0 CE 56 [20:19:56]CheckFolder [20:19:56]dirname=/storage/ofd_packets [20:19:56]CheckFolder done [20:19:56]ProducePacketName [20:19:56]name=ofd_packets/00123132 [20:19:56]NVStorageSaveData ofd_packets/00123132 [20:19:56]File name is /storage/ofd_packets/00123132 [20:19:56]Write 301 bytes [20:19:56]NVStorageSaveData done [20:19:56]OFDSenderStorePacket done [20:19:56]KKMCreateOFDPacket done [20:19:56]NVStorageSaveData kkm_last_timestamp [20:19:56]File name is /storage/kkm_last_timestamp [20:19:56]Write 4 bytes [20:19:56]NVStorageSaveData done [20:19:56]ExternCall_PrintAddStr [20:19:56]wPrintStart [20:19:56]Write to MH i2c: 01 00 00 49 42 8B [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 49 42 00 00 00 00 00 FF 0F A0 [20:19:56]RasterBufferAndPrint [20:19:56]line Счет N : (1)717929 [20:19:56]line ИНН: 02508201610067 [20:19:56]line Контрольно-Кассовый Чек [20:19:56]line ПРОДАЖА [20:19:56]line ТРК (МРК, ГНК) : 12 [20:19:56]line Товар: 2710124130 [20:19:56]line Аи-92-К-4 [20:19:56]line 10.980 * 67.40 [20:19:56]line = 740.05 [20:19:56]line НДС 12% НСП 1% [20:19:56]line > о реализуемом товаре [20:19:56]line ОКРУГЛЕНИЕ: -0.05 [20:19:56]line ИТОГО: 740.00 [20:19:56]line Внесено: 740.00 [20:19:56]line СДАЧА: 0.00 [20:19:56]line НСП 1% : 6.55 [20:19:56]line НДС 12% : 78.59 [20:19:56]line Наличными: 740.00 [20:19:56]line Безнал.: 0.00 [20:19:56]line Место: АЗС № 64 "Партнер Нефть" [20:19:56]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:19:56]line СНО: Общий режим [20:19:56]line Чек 173 25.11.2024 20:20 [20:19:56]line Смена: 556 ФФД: 1.0 [20:19:56]line ЗНМ: 0300000033 [20:19:56]line РНМ: 0000000000092681 [20:19:56]line Версия ККМ: 001 [20:19:56]line ФМ: 0000000000874881 [20:19:56]line ФД: 123132 [20:19:56]line ФПД: 90668807740882 [20:19:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T202001&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123132&fm=90668807740882&tin=02508201610067®Number=0000000000092681&sum=74000 [20:19:56]OFD Sender: Processing packet 123132 [packets to send 7, broken 6] [20:19:56]ProducePacketName [20:19:56]name=ofd_packets/00123132 [20:19:56]OFD Sender: To server: pG, [20:19:56]CommunicateWithHost lk.salyk.kg:30040 [20:19:56]ConnectInit lk.salyk.kg [20:19:56]written 0, free lines is 4095 [20:19:56]Connected sock=10 [20:19:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F4 62 07 01 8E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 15 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 1E 00 00 00 00 07 04 06 00 10 21 01 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 F1 DB 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FC E0 01 00 35 04 06 00 52 76 7A 13 DD D2 D0 2F B7 B7 7A D0 CE 56 [20:19:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 51 01 47 00 06 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FC E0 01 00 F4 03 04 00 B6 87 44 67 B6 04 01 00 00 FA C5 05 AC 34 56 24 1D [20:19:57]CommunicateWithHost err = 0 [20:19:57]CheckOFDResponse [20:19:57]1017 (14) - 77093643461234 [20:19:57]1041 (16) - 0000000000874881 [20:19:57]1040 (4) - 123132 [20:19:57]1012 (4) - 25.11.2024 14:20 [20:19:57]1206 (1) - 0 [20:19:57]OFD Sender: Remove packet 123132 [20:19:57]ProducePacketName [20:19:57]name=ofd_packets/00123132 [20:19:57]NVStorageDeleteData [20:19:57]Write to MH i2c: 01 00 00 74 42 B6 [20:19:57]Write i2c OK [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: 01 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: 01 07 00 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: 01 07 00 74 42 00 00 00 00 00 48 0C 11 [20:19:57]RasterBufferAndPrint [20:19:57]line [20:19:57]line [20:19:57]line [20:19:57]line [20:19:57]line [20:19:57]written 0, free lines is 3149 [20:19:57]MH_Cut [20:19:57]Write to MH i2c: D1 01 00 7B 42 01 8F [20:19:57]Write i2c OK [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: D1 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: D1 01 00 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: D1 01 00 7B 42 00 8E [20:19:57]Write to MH i2c: 01 00 00 7C 42 BE [20:19:57]Write i2c OK [20:19:57]MH_I2C_Read... [20:19:57]OFD Sender: No OFD packet to send [20:19:58]*** Cut start [20:19:58]*** Partial cut [20:19:58]*** CUTSNS_PIN = 1 [20:19:58]*** CUTSNS_PIN = 0 [20:19:58]*** Brake cut motor [20:19:59]Read from MH i2c: 01 [20:19:59]MH_I2C_Read... [20:19:59]*** Stop cut motor [20:19:59]*** Cut end [20:19:59]Read from MH i2c: 01 07 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: 01 07 00 7C 42 00 00 00 00 00 FF 0F D3 [20:19:59]process_action close_receipt done [20:19:59]requested_data is exist [20:19:59]produce_requested_data [20:19:59]requested_item fm.sn is exist - process it [20:19:59]wFMCommunicate request_size=4 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 11 00 00 [20:19:59]Write to MH i2c: E2 08 00 7D 42 80 11 00 00 00 00 00 00 39 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 17 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 17 00 7D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 90 [20:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:19:59]wFMCommunicate OK [20:19:59]requested_item fd.num is exist - process it [20:19:59]SAM_PROTO_GetFieldsCounters [20:19:59]wFMCommunicate request_size=4 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 13 00 00 [20:19:59]Write to MH i2c: E2 08 00 7E 42 80 13 00 00 00 00 00 00 3C [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 62 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 62 00 7E 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FC E0 01 00 0E 04 04 00 2C 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 74 [20:19:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FC E0 01 00 0E 04 04 00 2C 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 [20:19:59]wFMCommunicate OK [20:19:59]SAM_PROTO_GetFieldsCounters done [20:19:59]requested_item shift.num is exist - process it [20:19:59]requested_item shift.opened is exist - process it [20:19:59]req_shift_opened [20:19:59]FM_GetShiftState [20:19:59]SAM_PROTO_GetShiftState [20:19:59]wFMCommunicate request_size=4 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 13 01 00 [20:19:59]Write to MH i2c: E2 08 00 7F 42 80 13 01 00 00 00 00 00 3E [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 0E 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 0E 00 7F 42 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 BD [20:19:59]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:19:59]wFMCommunicate OK [20:19:59]SAM_PROTO_GetShiftState done [20:19:59]FM_GetShiftState done [20:19:59]req_shift_opened done [20:19:59]requested_item shift.open_date is exist - process it [20:19:59]req_shift_open_date [20:19:59]req_shift_open_date done [20:19:59]produce_requested_data done [20:19:59]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123132,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [20:19:59]process_action_free close_receipt [20:19:59]json_value_free [20:19:59]json_value_free done [20:19:59]process_json_proto returns [20:19:59]Send response to host [20:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123132,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [20:19:59]free response buf [20:19:59]execute_script done [20:19:59]execute_script returns [20:19:59]free content buf [20:19:59]Sock 7.Close socket [20:19:59]Sock 7.Thread stoped [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:28]accept exits with 9 [20:22:28]New connection [20:22:28]New thread 3066580324 created [20:22:28]Thread 3066723684 joined [20:22:28]Waiting for new connection... [20:22:28] Sock 9.Parse request [20:22:28]Sock 9.Check first char [20:22:28]Sock 9.First char is OK [20:22:28]request: POST /json_proto HTTP/1.0 [20:22:28]Method: POST [20:22:28]URL: /json_proto [20:22:28]Method is POST - this is cgi request [20:22:28]url: /json_proto [20:22:28]query_string will be loaded in cgi processing [20:22:28]execute_cgi json_proto POST (null) [20:22:28]execute_cgi path=json_proto method=POST [20:22:28]POST find Content-Length [20:22:28]Host: 172.17.37.4:8080 [20:22:28]Content-Length: 677 [20:22:28]Content-Type: application/json [20:22:28] [20:22:28]POST finish read [20:22:28]Found Content-Length = 677 [20:22:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.600, "sum" : 310.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:28]execute_script... [20:22: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)717930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.600, "sum" : 310.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:28]POST & json_proto [20:22:28]process_json_proto [20:22:28]json parsed OK: [20:22:28]protocol is kg_v1.0 [20:22:28]action value=close_receipt [20:22:28]process_action close_receipt [20:22:28]cmd_close_receipt [20:22:28]MH_GetDate [20:22:28]Write to MH i2c: F0 00 00 80 42 B1 [20:22:28]Write i2c OK [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: F0 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: F0 09 00 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: F0 09 00 80 42 00 8B DC 44 67 B8 5A 43 67 88 [20:22:28]GetLastDocTimeStamp 1732566001 [20:22:28]current date 1732566155 [20:22:28]FM_GetShiftState [20:22:28]SAM_PROTO_GetShiftState [20:22:28]wFMCommunicate request_size=4 [20:22:28]MH_SAM_APDU [20:22:28]CAPDU: 80 13 01 00 [20:22:28]Write to MH i2c: E2 08 00 81 42 80 13 01 00 00 00 00 00 40 [20:22:28]Write i2c OK [20:22:28]MH_I2C_Read... [20:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:28]Read from MH i2c: E2 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: E2 0E 00 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: E2 0E 00 81 42 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 BF [20:22:28]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:22:28]wFMCommunicate OK [20:22:28]SAM_PROTO_GetShiftState done [20:22:28]FM_GetShiftState done [20:22:28]opened in 1732493066 [20:22:28]opened+sec_in_day 1732579466 [20:22:28]quantity*price = 31004 [20:22:28]sum+1 = 31005 [20:22:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 174 25.11.2024 20:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123133 ФПД: 205182355783552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T202235&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123133&fm=205182355783552&tin=02508201610067®Number=0000000000092681&sum=31000 [20:22:29]StoreToDocumentArchive [20:22:29]shift 556 fd 123133 [20:22:29]save to /storage/0556/doc_00123133 [20:22:29]save last doc name /storage/0556/doc_00123133 to /storage/kkm_last_doc_name [20:22:29]save OK [20:22:29]Clear old archive folders... [20:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:29]tlvbuf is B6F20A90 [20:22:29]SAM_PROTO_ClearQueue [20:22:29]wFMCommunicate request_size=4 [20:22:29]MH_SAM_APDU [20:22:29]CAPDU: 80 09 00 00 [20:22:29]Write to MH i2c: E2 08 00 8E 42 80 09 00 00 00 00 00 00 42 [20:22:29]Write i2c OK [20:22:29]MH_I2C_Read... [20:22:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:29]Read from MH i2c: E2 [20:22:29]MH_I2C_Read... [20:22:29]Read from MH i2c: E2 03 00 [20:22:29]MH_I2C_Read... [20:22:29]Read from MH i2c: E2 03 00 8E 42 00 90 00 44 [20:22:29]RAPDU: 90 00 [20:22:29]wFMCommunicate OK [20:22:29]SAM_PROTO_ClearQueue done [20:22:29]KKMCreateOFDPacket [20:22:29]OFDProtocolAddRootSTLVToBuf [20:22:29]FM_MakeSignedData [20:22:29]FM_MakeSignedData [20:22:29]SAM_PROTO_SignData [20:22:29]wFMCommunicate request_size=4 [20:22:29]MH_SAM_APDU [20:22:29]CAPDU: 80 0D 01 02 [20:22:29]Write to MH i2c: E2 08 00 8F 42 80 0D 01 02 00 00 00 00 4A [20:22:29]Write i2c OK [20:22:29]MH_I2C_Read... [20:22:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:29]Read from MH i2c: E2 [20:22:29]MH_I2C_Read... [20:22:29]Read from MH i2c: E2 03 00 [20:22:29]MH_I2C_Read... [20:22:29]Read from MH i2c: E2 03 00 8F 42 00 90 00 45 [20:22:29]RAPDU: 90 00 [20:22:29]wFMCommunicate OK [20:22:29]wFMCommunicate request_size=255 [20:22:29]MH_SAM_APDU [20:22: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 34 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 8B DC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FD E0 01 00 35 04 06 00 BA [20:22:29]Write to MH i2c: E2 02 01 90 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 8B DC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FD E0 01 00 35 04 06 00 BA 00 00 07 [20:22:29]Write i2c OK [20:22:29]MH_I2C_Read... [20:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:30]Read from MH i2c: E2 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 03 00 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 03 00 90 42 00 90 00 46 [20:22:30]RAPDU: 90 00 [20:22:30]wFMCommunicate OK [20:22:30]wFMCommunicate request_size=10 [20:22:30]MH_SAM_APDU [20:22:30]CAPDU: 80 0D 02 02 05 9C BD 6E 3F 80 [20:22:30]Write to MH i2c: E2 0D 00 91 42 80 0D 02 02 05 00 9C BD 6E 3F 80 00 00 DD [20:22:30]Write i2c OK [20:22:30]MH_I2C_Read... [20:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:30]Read from MH i2c: E2 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 03 00 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 03 00 91 42 00 90 00 47 [20:22:30]RAPDU: 90 00 [20:22:30]wFMCommunicate OK [20:22:30]wFMCommunicate request_size=4 [20:22:30]MH_SAM_APDU [20:22:30]CAPDU: 80 0D 03 02 [20:22:30]Write to MH i2c: E2 08 00 92 42 80 0D 03 02 00 00 00 00 4F [20:22:30]Write i2c OK [20:22:30]MH_I2C_Read... [20:22:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:30]Read from MH i2c: E2 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 0B 00 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 0B 00 92 42 00 17 4B BC 4A 3B B8 73 4E 90 00 6C [20:22:30]RAPDU: 17 4B BC 4A 3B B8 73 4E 90 00 [20:22:30]wFMCommunicate OK [20:22:30]SAM_PROTO_SignData done [20:22:30]FM_MakeSignedData done [20:22:30]CreateOFDProtocolMessage [20:22:30]wFMCommunicate request_size=4 [20:22:30]MH_SAM_APDU [20:22:30]CAPDU: 80 11 00 00 [20:22:30]Write to MH i2c: E2 08 00 93 42 80 11 00 00 00 00 00 00 4F [20:22:30]Write i2c OK [20:22:30]MH_I2C_Read... [20:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:30]Read from MH i2c: E2 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 17 00 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 17 00 93 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A6 [20:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:22:30]wFMCommunicate OK [20:22:30]CreateOFDProtocolMessage done [20:22:30]OFDSenderStorePacket 123133 [20:22:30]StoreOFDPacket docnum=123133 [20:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 AC 3A 07 01 6A 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 8B DC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FD E0 01 00 35 04 06 00 BA 9C BD 6E 3F 80 17 4B BC 4A 3B B8 73 4E [20:22:30]CheckFolder [20:22:30]dirname=/storage/ofd_packets [20:22:30]CheckFolder done [20:22:30]ProducePacketName [20:22:30]name=ofd_packets/00123133 [20:22:30]NVStorageSaveData ofd_packets/00123133 [20:22:30]File name is /storage/ofd_packets/00123133 [20:22:30]Write 301 bytes [20:22:30]NVStorageSaveData done [20:22:30]OFDSenderStorePacket done [20:22:30]KKMCreateOFDPacket done [20:22:30]NVStorageSaveData kkm_last_timestamp [20:22:30]File name is /storage/kkm_last_timestamp [20:22:30]Write 4 bytes [20:22:30]NVStorageSaveData done [20:22:30]ExternCall_PrintAddStr [20:22:30]wPrintStart [20:22:30]Write to MH i2c: 01 00 00 94 42 D6 [20:22:30]Write i2c OK [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: 01 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: 01 07 00 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: 01 07 00 94 42 00 00 00 00 00 FF 0F EB [20:22:30]RasterBufferAndPrint [20:22:30]line Счет N : (1)717930 [20:22:30]line ИНН: 02508201610067 [20:22:30]line Контрольно-Кассовый Чек [20:22:30]line ПРОДАЖА [20:22:30]line ТРК (МРК, ГНК) : 22 [20:22:30]line Товар: 2710124130 [20:22:30]line Аи-92-К-4 [20:22:30]line 4.600 * 67.40 [20:22:30]line = 310.04 [20:22:30]line НДС 12% НСП 1% [20:22:30]line > о реализуемом товаре [20:22:30]line ОКРУГЛЕНИЕ: -0.04 [20:22:30]line ИТОГО: 310.00 [20:22:30]line Внесено: 310.00 [20:22:30]line СДАЧА: 0.00 [20:22:30]line НСП 1% : 2.74 [20:22:30]line НДС 12% : 32.92 [20:22:30]line Наличными: 310.00 [20:22:30]line Безнал.: 0.00 [20:22:30]line Место: АЗС № 64 "Партнер Нефть" [20:22:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:22:30]line СНО: Общий режим [20:22:30]line Чек 174 25.11.2024 20:22 [20:22:30]line Смена: 556 ФФД: 1.0 [20:22:30]line ЗНМ: 0300000033 [20:22:30]line РНМ: 0000000000092681 [20:22:30]line Версия ККМ: 001 [20:22:30]line ФМ: 0000000000874881 [20:22:30]line ФД: 123133 [20:22:30]line ФПД: 205182355783552 [20:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T202235&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123133&fm=205182355783552&tin=02508201610067®Number=0000000000092681&sum=31000 [20:22:30]OFD Sender: Processing packet 123133 [packets to send 7, broken 6] [20:22:30]ProducePacketName [20:22:30]name=ofd_packets/00123133 [20:22:30]OFD Sender: To server: pG, [20:22:30]CommunicateWithHost lk.salyk.kg:30040 [20:22:30]ConnectInit lk.salyk.kg [20:22:30]written 0, free lines is 4095 [20:22:30]Connected sock=10 [20:22:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 AC 3A 07 01 6A 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 8B DC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FD E0 01 00 35 04 06 00 BA 9C BD 6E 3F 80 17 4B BC 4A 3B B8 73 4E [20:22:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 2C 32 47 00 43 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FD E0 01 00 F4 03 04 00 50 88 44 67 B6 04 01 00 00 9F 3F B6 A8 9E F3 94 74 [20:22:30]CommunicateWithHost err = 0 [20:22:30]CheckOFDResponse [20:22:30]1017 (14) - 77093643461234 [20:22:30]1041 (16) - 0000000000874881 [20:22:30]1040 (4) - 123133 [20:22:30]1012 (4) - 25.11.2024 14:23 [20:22:30]1206 (1) - 0 [20:22:30]OFD Sender: Remove packet 123133 [20:22:30]ProducePacketName [20:22:30]name=ofd_packets/00123133 [20:22:30]NVStorageDeleteData [20:22:31]Write to MH i2c: 01 00 00 BF 42 01 [20:22:31]Write i2c OK [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: 01 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: 01 07 00 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: 01 07 00 BF 42 00 00 00 00 00 54 0C 68 [20:22:31]RasterBufferAndPrint [20:22:31]line [20:22:31]line [20:22:31]line [20:22:31]line [20:22:31]line [20:22:31]written 0, free lines is 3160 [20:22:31]MH_Cut [20:22:31]Write to MH i2c: D1 01 00 C6 42 01 DA [20:22:31]Write i2c OK [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: D1 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: D1 01 00 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: D1 01 00 C6 42 00 D9 [20:22:31]Write to MH i2c: 01 00 00 C7 42 09 [20:22:31]Write i2c OK [20:22:31]MH_I2C_Read... [20:22:31]OFD Sender: No OFD packet to send [20:22:32]*** Cut start [20:22:32]*** Partial cut [20:22:32]*** CUTSNS_PIN = 1 [20:22:32]*** CUTSNS_PIN = 0 [20:22:32]*** Brake cut motor [20:22:33]Read from MH i2c: 01 [20:22:33]MH_I2C_Read... [20:22:33]*** Stop cut motor [20:22:33]*** Cut end [20:22:33]Read from MH i2c: 01 07 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: 01 07 00 C7 42 00 00 00 00 00 FF 0F 1E [20:22:33]process_action close_receipt done [20:22:33]requested_data is exist [20:22:33]produce_requested_data [20:22:33]requested_item fm.sn is exist - process it [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 11 00 00 [20:22:33]Write to MH i2c: E2 08 00 C8 42 80 11 00 00 00 00 00 00 84 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 17 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 17 00 C8 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DB [20:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:22:33]wFMCommunicate OK [20:22:33]requested_item fd.num is exist - process it [20:22:33]SAM_PROTO_GetFieldsCounters [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 13 00 00 [20:22:33]Write to MH i2c: E2 08 00 C9 42 80 13 00 00 00 00 00 00 87 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 62 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 62 00 C9 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FD E0 01 00 0E 04 04 00 2C 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 C3 [20:22:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FD E0 01 00 0E 04 04 00 2C 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 [20:22:33]wFMCommunicate OK [20:22:33]SAM_PROTO_GetFieldsCounters done [20:22:33]requested_item shift.num is exist - process it [20:22:33]requested_item shift.opened is exist - process it [20:22:33]req_shift_opened [20:22:33]FM_GetShiftState [20:22:33]SAM_PROTO_GetShiftState [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 13 01 00 [20:22:33]Write to MH i2c: E2 08 00 CA 42 80 13 01 00 00 00 00 00 89 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 0E 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 0E 00 CA 42 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 08 [20:22:33]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:22:33]wFMCommunicate OK [20:22:33]SAM_PROTO_GetShiftState done [20:22:33]FM_GetShiftState done [20:22:33]req_shift_opened done [20:22:33]requested_item shift.open_date is exist - process it [20:22:33]req_shift_open_date [20:22:33]req_shift_open_date done [20:22:33]produce_requested_data done [20:22:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123133,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [20:22:33]process_action_free close_receipt [20:22:33]json_value_free [20:22:33]json_value_free done [20:22:33]process_json_proto returns [20:22:33]Send response to host [20:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123133,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [20:22:33]free response buf [20:22:33]execute_script done [20:22:33]execute_script returns [20:22:33]free content buf [20:22:33]Sock 9.Close socket [20:22:33]Sock 9.Thread stoped [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:09]accept exits with 7 [20:26:09]New connection [20:26:09]New thread 3066723684 created [20:26:09]Thread 3066580324 joined [20:26:09]Waiting for new connection... [20:26:09] Sock 7.Parse request [20:26:09]Sock 7.Check first char [20:26:09]Sock 7.First char is OK [20:26:09]request: POST /json_proto HTTP/1.0 [20:26:09]Method: POST [20:26:09]URL: /json_proto [20:26:09]Method is POST - this is cgi request [20:26:09]url: /json_proto [20:26:09]query_string will be loaded in cgi processing [20:26:09]execute_cgi json_proto POST (null) [20:26:09]execute_cgi path=json_proto method=POST [20:26:09]POST find Content-Length [20:26:09]Host: 172.17.37.4:8080 [20:26:09]Content-Length: 800 [20:26:09]Content-Type: application/json [20:26:09] [20:26:09]POST finish read [20:26:09]Found Content-Length = 800 [20:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:09]execute_script... [20:26:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:09]POST & json_proto [20:26:09]process_json_proto [20:26:09]json parsed OK: [20:26:09]protocol is kg_v1.0 [20:26:09]action value=close_receipt [20:26:09]process_action close_receipt [20:26:09]cmd_close_receipt [20:26:09]MH_GetDate [20:26:09]Write to MH i2c: F0 00 00 CB 42 FC [20:26:09]Write i2c OK [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: F0 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: F0 09 00 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: F0 09 00 CB 42 00 68 DD 44 67 B8 5A 43 67 B1 [20:26:09]GetLastDocTimeStamp 1732566155 [20:26:09]current date 1732566376 [20:26:09]FM_GetShiftState [20:26:09]SAM_PROTO_GetShiftState [20:26:09]wFMCommunicate request_size=4 [20:26:09]MH_SAM_APDU [20:26:09]CAPDU: 80 13 01 00 [20:26:09]Write to MH i2c: E2 08 00 CC 42 80 13 01 00 00 00 00 00 8B [20:26:09]Write i2c OK [20:26:09]MH_I2C_Read... [20:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:09]Read from MH i2c: E2 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: E2 0E 00 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: E2 0E 00 CC 42 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 0A [20:26:09]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:26:09]wFMCommunicate OK [20:26:09]SAM_PROTO_GetShiftState done [20:26:09]FM_GetShiftState done [20:26:09]opened in 1732493066 [20:26:09]opened+sec_in_day 1732579466 [20:26:09]quantity*price = 50010 [20:26:09]sum+1 = 50012 [20:26:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 175 25.11.2024 20:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123134 ФПД: 72928454620469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T202616&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123134&fm=72928454620469&tin=02508201610067®Number=0000000000092681&sum=50011 [20:26:10]StoreToDocumentArchive [20:26:10]shift 556 fd 123134 [20:26:10]save to /storage/0556/doc_00123134 [20:26:10]save last doc name /storage/0556/doc_00123134 to /storage/kkm_last_doc_name [20:26:10]save OK [20:26:10]Clear old archive folders... [20:26:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:10]tlvbuf is 01F6C660 [20:26:10]SAM_PROTO_ClearQueue [20:26:10]wFMCommunicate request_size=4 [20:26:10]MH_SAM_APDU [20:26:10]CAPDU: 80 09 00 00 [20:26:10]Write to MH i2c: E2 08 00 D9 42 80 09 00 00 00 00 00 00 8D [20:26:10]Write i2c OK [20:26:10]MH_I2C_Read... [20:26:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:10]Read from MH i2c: E2 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 03 00 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 03 00 D9 42 00 90 00 8F [20:26:10]RAPDU: 90 00 [20:26:10]wFMCommunicate OK [20:26:10]SAM_PROTO_ClearQueue done [20:26:10]KKMCreateOFDPacket [20:26:10]OFDProtocolAddRootSTLVToBuf [20:26:10]FM_MakeSignedData [20:26:10]FM_MakeSignedData [20:26:10]SAM_PROTO_SignData [20:26:10]wFMCommunicate request_size=4 [20:26:10]MH_SAM_APDU [20:26:10]CAPDU: 80 0D 01 02 [20:26:10]Write to MH i2c: E2 08 00 DA 42 80 0D 01 02 00 00 00 00 95 [20:26:10]Write i2c OK [20:26:10]MH_I2C_Read... [20:26:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:10]Read from MH i2c: E2 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 03 00 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 03 00 DA 42 00 90 00 90 [20:26:10]RAPDU: 90 00 [20:26:10]wFMCommunicate OK [20:26:10]wFMCommunicate request_size=255 [20:26:10]MH_SAM_APDU [20:26:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 68 DD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FE E0 01 00 35 04 06 00 42 [20:26:10]Write to MH i2c: E2 02 01 DB 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 68 DD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FE E0 01 00 35 04 06 00 42 00 00 00 [20:26:10]Write i2c OK [20:26:10]MH_I2C_Read... [20:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:11]Read from MH i2c: E2 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: E2 03 00 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: E2 03 00 DB 42 00 90 00 91 [20:26:11]RAPDU: 90 00 [20:26:11]wFMCommunicate OK [20:26:11]wFMCommunicate request_size=10 [20:26:11]MH_SAM_APDU [20:26:11]CAPDU: 80 0D 02 02 05 53 FA A1 B5 35 [20:26:11]Write to MH i2c: E2 0D 00 DC 42 80 0D 02 02 05 00 53 FA A1 B5 35 00 00 7A [20:26:11]Write i2c OK [20:26:11]MH_I2C_Read... [20:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:11]Read from MH i2c: E2 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: E2 03 00 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: E2 03 00 DC 42 00 90 00 92 [20:26:11]RAPDU: 90 00 [20:26:11]wFMCommunicate OK [20:26:11]wFMCommunicate request_size=4 [20:26:11]MH_SAM_APDU [20:26:11]CAPDU: 80 0D 03 02 [20:26:11]Write to MH i2c: E2 08 00 DD 42 80 0D 03 02 00 00 00 00 9A [20:26:11]Write i2c OK [20:26:11]MH_I2C_Read... [20:26:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:11]Read from MH i2c: E2 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: E2 0B 00 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: E2 0B 00 DD 42 00 82 D2 1E E8 BA 62 81 81 90 00 13 [20:26:11]RAPDU: 82 D2 1E E8 BA 62 81 81 90 00 [20:26:11]wFMCommunicate OK [20:26:11]SAM_PROTO_SignData done [20:26:11]FM_MakeSignedData done [20:26:11]CreateOFDProtocolMessage [20:26:11]wFMCommunicate request_size=4 [20:26:11]MH_SAM_APDU [20:26:11]CAPDU: 80 11 00 00 [20:26:11]Write to MH i2c: E2 08 00 DE 42 80 11 00 00 00 00 00 00 9A [20:26:11]Write i2c OK [20:26:11]MH_I2C_Read... [20:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:11]Read from MH i2c: E2 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: E2 17 00 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: E2 17 00 DE 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F1 [20:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:26:11]wFMCommunicate OK [20:26:11]CreateOFDProtocolMessage done [20:26:11]OFDSenderStorePacket 123134 [20:26:11]StoreOFDPacket docnum=123134 [20:26:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4E 33 07 01 7C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 68 DD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FE E0 01 00 35 04 06 00 42 53 FA A1 B5 35 82 D2 1E E8 BA 62 81 81 [20:26:11]CheckFolder [20:26:11]dirname=/storage/ofd_packets [20:26:11]CheckFolder done [20:26:11]ProducePacketName [20:26:11]name=ofd_packets/00123134 [20:26:11]NVStorageSaveData ofd_packets/00123134 [20:26:11]File name is /storage/ofd_packets/00123134 [20:26:11]Write 301 bytes [20:26:11]NVStorageSaveData done [20:26:11]OFDSenderStorePacket done [20:26:11]KKMCreateOFDPacket done [20:26:11]NVStorageSaveData kkm_last_timestamp [20:26:11]File name is /storage/kkm_last_timestamp [20:26:11]Write 4 bytes [20:26:11]NVStorageSaveData done [20:26:11]ExternCall_PrintAddStr [20:26:11]wPrintStart [20:26:11]Write to MH i2c: 01 00 00 DF 42 21 [20:26:11]Write i2c OK [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 07 00 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 07 00 DF 42 00 00 00 00 00 FF 0F 36 [20:26:11]RasterBufferAndPrint [20:26:11]line Счет N : (1)717931 [20:26:11]line ИНН: 02508201610067 [20:26:11]line Контрольно-Кассовый Чек [20:26:11]line ПРОДАЖА [20:26:11]line ТРК (МРК, ГНК) : 32 [20:26:11]line Товар: 2710124130 [20:26:11]line Аи-92-К-4 [20:26:11]line 7.420 * 67.40 [20:26:11]line = 500.11 [20:26:11]line НДС 12% НСП 1% [20:26:11]line > о реализуемом товаре [20:26:11]line ИТОГО: 500.11 [20:26:11]line НСП 1% : 4.43 [20:26:11]line НДС 12% : 53.11 [20:26:11]line Наличными: 0.00 [20:26:11]line Безнал.: 500.11 [20:26:11]line Место: АЗС № 64 "Партнер Нефть" [20:26:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:26:11]line СНО: Общий режим [20:26:11]line Чек 175 25.11.2024 20:26 [20:26:11]line Смена: 556 ФФД: 1.0 [20:26:11]line ЗНМ: 0300000033 [20:26:11]line РНМ: 0000000000092681 [20:26:11]line Версия ККМ: 001 [20:26:11]line Платежная система: O! деньги [20:26:11]line ФМ: 0000000000874881 [20:26:11]line ФД: 123134 [20:26:11]line ФПД: 72928454620469 [20:26:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T202616&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123134&fm=72928454620469&tin=02508201610067®Number=0000000000092681&sum=50011 [20:26:11]written 0, free lines is 4095 [20:26:11]OFD Sender: Processing packet 123134 [packets to send 7, broken 6] [20:26:11]ProducePacketName [20:26:11]name=ofd_packets/00123134 [20:26:11]OFD Sender: To server: pG, [20:26:11]CommunicateWithHost lk.salyk.kg:30040 [20:26:11]ConnectInit lk.salyk.kg [20:26:11]Connected sock=10 [20:26:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4E 33 07 01 7C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 68 DD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FE E0 01 00 35 04 06 00 42 53 FA A1 B5 35 82 D2 1E E8 BA 62 81 81 [20:26:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 30 05 47 00 97 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FE E0 01 00 F4 03 04 00 2D 89 44 67 B6 04 01 00 00 14 73 E1 64 6C 2C CE 7E [20:26:11]CommunicateWithHost err = 0 [20:26:11]CheckOFDResponse [20:26:11]1017 (14) - 77093643461234 [20:26:11]1041 (16) - 0000000000874881 [20:26:11]1040 (4) - 123134 [20:26:11]1012 (4) - 25.11.2024 14:26 [20:26:11]1206 (1) - 0 [20:26:11]OFD Sender: Remove packet 123134 [20:26:11]ProducePacketName [20:26:11]name=ofd_packets/00123134 [20:26:11]NVStorageDeleteData [20:26:11]Write to MH i2c: 01 00 00 09 43 4C [20:26:11]Write i2c OK [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 07 00 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 07 00 09 43 00 00 00 00 00 5D 0C BC [20:26:11]RasterBufferAndPrint [20:26:11]line [20:26:11]line [20:26:11]line [20:26:11]line [20:26:11]line [20:26:11]written 0, free lines is 3171 [20:26:11]MH_Cut [20:26:11]Write to MH i2c: D1 01 00 10 43 01 25 [20:26:11]Write i2c OK [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: D1 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: D1 01 00 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: D1 01 00 10 43 00 24 [20:26:11]Write to MH i2c: 01 00 00 11 43 54 [20:26:11]Write i2c OK [20:26:11]MH_I2C_Read... [20:26:12]OFD Sender: No OFD packet to send [20:26:13]*** Cut start [20:26:13]*** Partial cut [20:26:13]*** CUTSNS_PIN = 1 [20:26:13]*** CUTSNS_PIN = 0 [20:26:13]*** Brake cut motor [20:26:13]Read from MH i2c: 01 [20:26:14]MH_I2C_Read... [20:26:14]*** Stop cut motor [20:26:14]*** Cut end [20:26:14]Read from MH i2c: 01 07 00 [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: 01 07 00 11 43 00 00 00 00 00 FF 0F 69 [20:26:14]process_action close_receipt done [20:26:14]requested_data is exist [20:26:14]produce_requested_data [20:26:14]requested_item fm.sn is exist - process it [20:26:14]wFMCommunicate request_size=4 [20:26:14]MH_SAM_APDU [20:26:14]CAPDU: 80 11 00 00 [20:26:14]Write to MH i2c: E2 08 00 12 43 80 11 00 00 00 00 00 00 CF [20:26:14]Write i2c OK [20:26:14]MH_I2C_Read... [20:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:14]Read from MH i2c: E2 [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: E2 17 00 [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: E2 17 00 12 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 26 [20:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:26:14]wFMCommunicate OK [20:26:14]requested_item fd.num is exist - process it [20:26:14]SAM_PROTO_GetFieldsCounters [20:26:14]wFMCommunicate request_size=4 [20:26:14]MH_SAM_APDU [20:26:14]CAPDU: 80 13 00 00 [20:26:14]Write to MH i2c: E2 08 00 13 43 80 13 00 00 00 00 00 00 D2 [20:26:14]Write i2c OK [20:26:14]MH_I2C_Read... [20:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:14]Read from MH i2c: E2 [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: E2 62 00 [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: E2 62 00 13 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FE E0 01 00 0E 04 04 00 2C 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 12 [20:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FE E0 01 00 0E 04 04 00 2C 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 [20:26:14]wFMCommunicate OK [20:26:14]SAM_PROTO_GetFieldsCounters done [20:26:14]requested_item shift.num is exist - process it [20:26:14]requested_item shift.opened is exist - process it [20:26:14]req_shift_opened [20:26:14]FM_GetShiftState [20:26:14]SAM_PROTO_GetShiftState [20:26:14]wFMCommunicate request_size=4 [20:26:14]MH_SAM_APDU [20:26:14]CAPDU: 80 13 01 00 [20:26:14]Write to MH i2c: E2 08 00 14 43 80 13 01 00 00 00 00 00 D4 [20:26:14]Write i2c OK [20:26:14]MH_I2C_Read... [20:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:14]Read from MH i2c: E2 [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: E2 0E 00 [20:26:14]MH_I2C_Read... [20:26:14]Read from MH i2c: E2 0E 00 14 43 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 53 [20:26:14]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:26:14]wFMCommunicate OK [20:26:14]SAM_PROTO_GetShiftState done [20:26:14]FM_GetShiftState done [20:26:14]req_shift_opened done [20:26:14]requested_item shift.open_date is exist - process it [20:26:14]req_shift_open_date [20:26:14]req_shift_open_date done [20:26:14]produce_requested_data done [20:26:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123134,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [20:26:14]process_action_free close_receipt [20:26:14]json_value_free [20:26:14]json_value_free done [20:26:14]process_json_proto returns [20:26:14]Send response to host [20:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123134,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [20:26:14]free response buf [20:26:14]execute_script done [20:26:14]execute_script returns [20:26:14]free content buf [20:26:14]Sock 7.Close socket [20:26:14]Sock 7.Thread stoped [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29: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:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]accept exits with 9 [20:30:52]New connection [20:30:52]New thread 3066580324 created [20:30:52]Thread 3066723684 joined [20:30:52]Waiting for new connection... [20:30:52] Sock 9.Parse request [20:30:52]Sock 9.Check first char [20:30:52]Sock 9.First char is OK [20:30:52]request: POST /json_proto HTTP/1.0 [20:30:52]Method: POST [20:30:52]URL: /json_proto [20:30:52]Method is POST - this is cgi request [20:30:52]url: /json_proto [20:30:52]query_string will be loaded in cgi processing [20:30:52]execute_cgi json_proto POST (null) [20:30:52]execute_cgi path=json_proto method=POST [20:30:52]POST find Content-Length [20:30:52]Host: 172.17.37.4:8080 [20:30:52]Content-Length: 800 [20:30:52]Content-Type: application/json [20:30:52] [20:30:52]POST finish read [20:30:52]Found Content-Length = 800 [20:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:52]execute_script... [20:30: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)717932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:52]POST & json_proto [20:30:52]process_json_proto [20:30:52]json parsed OK: [20:30:52]protocol is kg_v1.0 [20:30:52]action value=close_receipt [20:30:52]process_action close_receipt [20:30:52]cmd_close_receipt [20:30:52]MH_GetDate [20:30:52]Write to MH i2c: F0 00 00 15 43 47 [20:30:52]Write i2c OK [20:30:52]MH_I2C_Read... [20:30:52]Read from MH i2c: F0 [20:30:52]MH_I2C_Read... [20:30:52]Read from MH i2c: F0 09 00 [20:30:52]MH_I2C_Read... [20:30:52]Read from MH i2c: F0 09 00 15 43 00 82 DE 44 67 B8 5A 43 67 17 [20:30:52]GetLastDocTimeStamp 1732566376 [20:30:52]current date 1732566658 [20:30:52]FM_GetShiftState [20:30:52]SAM_PROTO_GetShiftState [20:30:52]wFMCommunicate request_size=4 [20:30:52]MH_SAM_APDU [20:30:52]CAPDU: 80 13 01 00 [20:30:52]Write to MH i2c: E2 08 00 16 43 80 13 01 00 00 00 00 00 D6 [20:30:52]Write i2c OK [20:30:52]MH_I2C_Read... [20:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:52]Read from MH i2c: E2 [20:30:52]MH_I2C_Read... [20:30:52]Read from MH i2c: E2 0E 00 [20:30:52]MH_I2C_Read... [20:30:52]Read from MH i2c: E2 0E 00 16 43 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 55 [20:30:52]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:30:52]wFMCommunicate OK [20:30:52]SAM_PROTO_GetShiftState done [20:30:52]FM_GetShiftState done [20:30:52]opened in 1732493066 [20:30:52]opened+sec_in_day 1732579466 [20:30:52]quantity*price = 50010 [20:30:52]sum+1 = 50012 [20:30:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 176 25.11.2024 20:30 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123135 ФПД: 85244578024604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T203059&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123135&fm=85244578024604&tin=02508201610067®Number=0000000000092681&sum=50011 [20:30:53]StoreToDocumentArchive [20:30:53]shift 556 fd 123135 [20:30:53]save to /storage/0556/doc_00123135 [20:30:53]save last doc name /storage/0556/doc_00123135 to /storage/kkm_last_doc_name [20:30:53]save OK [20:30:53]Clear old archive folders... [20:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:53]tlvbuf is 0213CF10 [20:30:53]SAM_PROTO_ClearQueue [20:30:53]wFMCommunicate request_size=4 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 09 00 00 [20:30:53]Write to MH i2c: E2 08 00 23 43 80 09 00 00 00 00 00 00 D8 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 23 43 00 90 00 DA [20:30:53]RAPDU: 90 00 [20:30:53]wFMCommunicate OK [20:30:53]SAM_PROTO_ClearQueue done [20:30:53]KKMCreateOFDPacket [20:30:53]OFDProtocolAddRootSTLVToBuf [20:30:53]FM_MakeSignedData [20:30:53]FM_MakeSignedData [20:30:53]SAM_PROTO_SignData [20:30:53]wFMCommunicate request_size=4 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 0D 01 02 [20:30:53]Write to MH i2c: E2 08 00 24 43 80 0D 01 02 00 00 00 00 E0 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 24 43 00 90 00 DB [20:30:53]RAPDU: 90 00 [20:30:53]wFMCommunicate OK [20:30:53]wFMCommunicate request_size=255 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 83 DE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FF E0 01 00 35 04 06 00 4D [20:30:53]Write to MH i2c: E2 02 01 25 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 83 DE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FF E0 01 00 35 04 06 00 4D 00 00 74 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 25 43 00 90 00 DC [20:30:53]RAPDU: 90 00 [20:30:53]wFMCommunicate OK [20:30:53]wFMCommunicate request_size=10 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 0D 02 02 05 87 8C CA CC 9C [20:30:53]Write to MH i2c: E2 0D 00 26 43 80 0D 02 02 05 00 87 8C CA CC 9C 00 00 32 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 26 43 00 90 00 DD [20:30:53]RAPDU: 90 00 [20:30:53]wFMCommunicate OK [20:30:53]wFMCommunicate request_size=4 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 0D 03 02 [20:30:53]Write to MH i2c: E2 08 00 27 43 80 0D 03 02 00 00 00 00 E5 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 0B 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 0B 00 27 43 00 D5 0E 90 60 40 AE 14 77 90 00 32 [20:30:53]RAPDU: D5 0E 90 60 40 AE 14 77 90 00 [20:30:53]wFMCommunicate OK [20:30:53]SAM_PROTO_SignData done [20:30:53]FM_MakeSignedData done [20:30:53]CreateOFDProtocolMessage [20:30:53]wFMCommunicate request_size=4 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 11 00 00 [20:30:53]Write to MH i2c: E2 08 00 28 43 80 11 00 00 00 00 00 00 E5 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 17 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 17 00 28 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3C [20:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:30:53]wFMCommunicate OK [20:30:53]CreateOFDProtocolMessage done [20:30:53]OFDSenderStorePacket 123135 [20:30:53]StoreOFDPacket docnum=123135 [20:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8D 71 07 01 AF 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 83 DE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FF E0 01 00 35 04 06 00 4D 87 8C CA CC 9C D5 0E 90 60 40 AE 14 77 [20:30:53]CheckFolder [20:30:53]dirname=/storage/ofd_packets [20:30:53]CheckFolder done [20:30:53]ProducePacketName [20:30:53]name=ofd_packets/00123135 [20:30:53]NVStorageSaveData ofd_packets/00123135 [20:30:53]File name is /storage/ofd_packets/00123135 [20:30:53]Write 301 bytes [20:30:53]NVStorageSaveData done [20:30:53]OFDSenderStorePacket done [20:30:53]KKMCreateOFDPacket done [20:30:53]NVStorageSaveData kkm_last_timestamp [20:30:53]File name is /storage/kkm_last_timestamp [20:30:53]Write 4 bytes [20:30:53]NVStorageSaveData done [20:30:53]ExternCall_PrintAddStr [20:30:53]wPrintStart [20:30:53]Write to MH i2c: 01 00 00 29 43 6C [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: 01 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: 01 07 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: 01 07 00 29 43 00 00 00 00 00 FF 0F 81 [20:30:53]RasterBufferAndPrint [20:30:53]line Счет N : (1)717932 [20:30:53]line ИНН: 02508201610067 [20:30:53]line Контрольно-Кассовый Чек [20:30:53]line ПРОДАЖА [20:30:53]line ТРК (МРК, ГНК) : 32 [20:30:53]line Товар: 2710124130 [20:30:53]line Аи-92-К-4 [20:30:53]line 7.420 * 67.40 [20:30:53]line = 500.11 [20:30:53]line НДС 12% НСП 1% [20:30:53]line > о реализуемом товаре [20:30:53]line ИТОГО: 500.11 [20:30:53]line НСП 1% : 4.43 [20:30:53]line НДС 12% : 53.11 [20:30:53]line Наличными: 0.00 [20:30:53]line Безнал.: 500.11 [20:30:53]line Место: АЗС № 64 "Партнер Нефть" [20:30:53]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:30:53]line СНО: Общий режим [20:30:53]line Чек 176 25.11.2024 20:30 [20:30:53]line Смена: 556 ФФД: 1.0 [20:30:53]line ЗНМ: 0300000033 [20:30:53]line РНМ: 0000000000092681 [20:30:53]line Версия ККМ: 001 [20:30:53]line Платежная система: O! деньги [20:30:53]line ФМ: 0000000000874881 [20:30:53]line ФД: 123135 [20:30:53]line ФПД: 85244578024604 [20:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T203059&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123135&fm=85244578024604&tin=02508201610067®Number=0000000000092681&sum=50011 [20:30:54]written 0, free lines is 4095 [20:30:54]OFD Sender: Processing packet 123135 [packets to send 7, broken 6] [20:30:54]ProducePacketName [20:30:54]name=ofd_packets/00123135 [20:30:54]OFD Sender: To server: pG, [20:30:54]CommunicateWithHost lk.salyk.kg:30040 [20:30:54]ConnectInit lk.salyk.kg [20:30:54]Connected sock=10 [20:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8D 71 07 01 AF 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 83 DE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FF E0 01 00 35 04 06 00 4D 87 8C CA CC 9C D5 0E 90 60 40 AE 14 77 [20:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 92 15 47 00 91 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 FF E0 01 00 F4 03 04 00 47 8A 44 67 B6 04 01 00 00 73 F8 4C B2 0C A4 78 0C [20:30:54]CommunicateWithHost err = 0 [20:30:54]CheckOFDResponse [20:30:54]1017 (14) - 77093643461234 [20:30:54]1041 (16) - 0000000000874881 [20:30:54]1040 (4) - 123135 [20:30:54]1012 (4) - 25.11.2024 14:31 [20:30:54]1206 (1) - 0 [20:30:54]OFD Sender: Remove packet 123135 [20:30:54]ProducePacketName [20:30:54]name=ofd_packets/00123135 [20:30:54]NVStorageDeleteData [20:30:54]Write to MH i2c: 01 00 00 53 43 96 [20:30:54]Write i2c OK [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: 01 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: 01 07 00 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: 01 07 00 53 43 00 00 00 00 00 5E 0C 07 [20:30:54]RasterBufferAndPrint [20:30:54]line [20:30:54]line [20:30:54]line [20:30:54]line [20:30:54]line [20:30:54]written 0, free lines is 3172 [20:30:54]MH_Cut [20:30:54]Write to MH i2c: D1 01 00 5A 43 01 6F [20:30:54]Write i2c OK [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: D1 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: D1 01 00 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: D1 01 00 5A 43 00 6E [20:30:54]Write to MH i2c: 01 00 00 5B 43 9E [20:30:54]Write i2c OK [20:30:54]MH_I2C_Read... [20:30:54]OFD Sender: No OFD packet to send [20:30:56]*** Cut start [20:30:56]*** Partial cut [20:30:56]*** CUTSNS_PIN = 1 [20:30:56]*** CUTSNS_PIN = 0 [20:30:56]*** Brake cut motor [20:30:56]Read from MH i2c: 01 [20:30:56]MH_I2C_Read... [20:30:56]*** Stop cut motor [20:30:56]*** Cut end [20:30:56]Read from MH i2c: 01 07 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: 01 07 00 5B 43 00 00 00 00 00 FF 0F B3 [20:30:56]process_action close_receipt done [20:30:56]requested_data is exist [20:30:56]produce_requested_data [20:30:56]requested_item fm.sn is exist - process it [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 11 00 00 [20:30:56]Write to MH i2c: E2 08 00 5C 43 80 11 00 00 00 00 00 00 19 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 17 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 17 00 5C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 70 [20:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:30:56]wFMCommunicate OK [20:30:56]requested_item fd.num is exist - process it [20:30:56]SAM_PROTO_GetFieldsCounters [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 13 00 00 [20:30:56]Write to MH i2c: E2 08 00 5D 43 80 13 00 00 00 00 00 00 1C [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 62 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 62 00 5D 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FF E0 01 00 0E 04 04 00 2C 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 60 [20:30:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 FF E0 01 00 0E 04 04 00 2C 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 [20:30:56]wFMCommunicate OK [20:30:56]SAM_PROTO_GetFieldsCounters done [20:30:56]requested_item shift.num is exist - process it [20:30:56]requested_item shift.opened is exist - process it [20:30:56]req_shift_opened [20:30:56]FM_GetShiftState [20:30:56]SAM_PROTO_GetShiftState [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 13 01 00 [20:30:56]Write to MH i2c: E2 08 00 5E 43 80 13 01 00 00 00 00 00 1E [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 0E 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 0E 00 5E 43 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 9D [20:30:56]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [20:30:56]wFMCommunicate OK [20:30:56]SAM_PROTO_GetShiftState done [20:30:56]FM_GetShiftState done [20:30:56]req_shift_opened done [20:30:56]requested_item shift.open_date is exist - process it [20:30:56]req_shift_open_date [20:30:56]req_shift_open_date done [20:30:56]produce_requested_data done [20:30:56]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123135,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [20:30:56]process_action_free close_receipt [20:30:56]json_value_free [20:30:56]json_value_free done [20:30:56]process_json_proto returns [20:30:56]Send response to host [20:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123135,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [20:30:56]free response buf [20:30:56]execute_script done [20:30:56]execute_script returns [20:30:56]free content buf [20:30:56]Sock 9.Close socket [20:30:56]Sock 9.Thread stoped [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52: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:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:04:57]accept exits with 7 [21:04:57]New connection [21:04:57]New thread 3066723684 created [21:04:57]Thread 3066580324 joined [21:04:57]Waiting for new connection... [21:04:57] Sock 7.Parse request [21:04:57]Sock 7.Check first char [21:04:57]Sock 7.First char is OK [21:04:57]request: POST /json_proto HTTP/1.0 [21:04:57]Method: POST [21:04:57]URL: /json_proto [21:04:57]Method is POST - this is cgi request [21:04:57]url: /json_proto [21:04:57]query_string will be loaded in cgi processing [21:04:57]execute_cgi json_proto POST (null) [21:04:57]execute_cgi path=json_proto method=POST [21:04:57]POST find Content-Length [21:04:57]Host: 172.17.37.4:8080 [21:04:57]Content-Length: 800 [21:04:57]Content-Type: application/json [21:04:57] [21:04:57]POST finish read [21:04:57]Found Content-Length = 800 [21:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 6.060, "sum" : 408.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 408.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:57]execute_script... [21:04: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)717933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 6.060, "sum" : 408.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 408.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:57]POST & json_proto [21:04:57]process_json_proto [21:04:57]json parsed OK: [21:04:57]protocol is kg_v1.0 [21:04:57]action value=close_receipt [21:04:57]process_action close_receipt [21:04:57]cmd_close_receipt [21:04:57]MH_GetDate [21:04:57]Write to MH i2c: F0 00 00 5F 43 91 [21:04:57]Write i2c OK [21:04:57]MH_I2C_Read... [21:04:57]Read from MH i2c: F0 [21:04:57]MH_I2C_Read... [21:04:57]Read from MH i2c: F0 09 00 [21:04:57]MH_I2C_Read... [21:04:57]Read from MH i2c: F0 09 00 5F 43 00 80 E6 44 67 B8 5A 43 67 67 [21:04:57]GetLastDocTimeStamp 1732566659 [21:04:57]current date 1732568704 [21:04:57]FM_GetShiftState [21:04:57]SAM_PROTO_GetShiftState [21:04:57]wFMCommunicate request_size=4 [21:04:57]MH_SAM_APDU [21:04:57]CAPDU: 80 13 01 00 [21:04:57]Write to MH i2c: E2 08 00 60 43 80 13 01 00 00 00 00 00 20 [21:04:57]Write i2c OK [21:04:57]MH_I2C_Read... [21:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:57]Read from MH i2c: E2 [21:04:57]MH_I2C_Read... [21:04:57]Read from MH i2c: E2 0E 00 [21:04:57]MH_I2C_Read... [21:04:57]Read from MH i2c: E2 0E 00 60 43 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 9F [21:04:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:04:57]wFMCommunicate OK [21:04:57]SAM_PROTO_GetShiftState done [21:04:57]FM_GetShiftState done [21:04:57]opened in 1732493066 [21:04:57]opened+sec_in_day 1732579466 [21:04:57]quantity*price = 40844 [21:04:57]sum+1 = 40845 [21:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 408.44 НСП 1% : 3.61 НДС 12% : 43.37 Наличными: 0.00 Безнал.: 408.44 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 177 25.11.2024 21:05 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123136 ФПД: 234377977332727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T210504&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123136&fm=234377977332727&tin=02508201610067®Number=0000000000092681&sum=40844 [21:04:58]StoreToDocumentArchive [21:04:58]shift 556 fd 123136 [21:04:58]save to /storage/0556/doc_00123136 [21:04:58]save last doc name /storage/0556/doc_00123136 to /storage/kkm_last_doc_name [21:04:58]save OK [21:04:58]Clear old archive folders... [21:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:58]tlvbuf is 01F28B00 [21:04:58]SAM_PROTO_ClearQueue [21:04:58]wFMCommunicate request_size=4 [21:04:58]MH_SAM_APDU [21:04:58]CAPDU: 80 09 00 00 [21:04:58]Write to MH i2c: E2 08 00 6D 43 80 09 00 00 00 00 00 00 22 [21:04:58]Write i2c OK [21:04:58]MH_I2C_Read... [21:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:58]Read from MH i2c: E2 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 03 00 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 03 00 6D 43 00 90 00 24 [21:04:58]RAPDU: 90 00 [21:04:58]wFMCommunicate OK [21:04:58]SAM_PROTO_ClearQueue done [21:04:58]KKMCreateOFDPacket [21:04:58]OFDProtocolAddRootSTLVToBuf [21:04:58]FM_MakeSignedData [21:04:58]FM_MakeSignedData [21:04:58]SAM_PROTO_SignData [21:04:58]wFMCommunicate request_size=4 [21:04:58]MH_SAM_APDU [21:04:58]CAPDU: 80 0D 01 02 [21:04:58]Write to MH i2c: E2 08 00 6E 43 80 0D 01 02 00 00 00 00 2A [21:04:58]Write i2c OK [21:04:58]MH_I2C_Read... [21:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:58]Read from MH i2c: E2 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 03 00 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 03 00 6E 43 00 90 00 25 [21:04:58]RAPDU: 90 00 [21:04:58]wFMCommunicate OK [21:04:58]wFMCommunicate request_size=255 [21:04:58]MH_SAM_APDU [21:04:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8C 9F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 9F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 80 E6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 00 E1 01 00 35 04 06 00 D5 [21:04:58]Write to MH i2c: E2 02 01 6F 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8C 9F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 9F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 80 E6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 00 E1 01 00 35 04 06 00 D5 00 00 FC [21:04:58]Write i2c OK [21:04:58]MH_I2C_Read... [21:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:58]Read from MH i2c: E2 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 03 00 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 03 00 6F 43 00 90 00 26 [21:04:58]RAPDU: 90 00 [21:04:58]wFMCommunicate OK [21:04:58]wFMCommunicate request_size=10 [21:04:58]MH_SAM_APDU [21:04:58]CAPDU: 80 0D 02 02 05 2A 60 15 03 F7 [21:04:58]Write to MH i2c: E2 0D 00 70 43 80 0D 02 02 05 00 2A 60 15 03 F7 00 00 D0 [21:04:58]Write i2c OK [21:04:58]MH_I2C_Read... [21:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:58]Read from MH i2c: E2 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 03 00 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 03 00 70 43 00 90 00 27 [21:04:58]RAPDU: 90 00 [21:04:58]wFMCommunicate OK [21:04:58]wFMCommunicate request_size=4 [21:04:58]MH_SAM_APDU [21:04:58]CAPDU: 80 0D 03 02 [21:04:58]Write to MH i2c: E2 08 00 71 43 80 0D 03 02 00 00 00 00 2F [21:04:58]Write i2c OK [21:04:58]MH_I2C_Read... [21:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:58]Read from MH i2c: E2 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 0B 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 0B 00 71 43 00 98 FD 3B 05 FE 73 27 F0 90 00 8D [21:04:59]RAPDU: 98 FD 3B 05 FE 73 27 F0 90 00 [21:04:59]wFMCommunicate OK [21:04:59]SAM_PROTO_SignData done [21:04:59]FM_MakeSignedData done [21:04:59]CreateOFDProtocolMessage [21:04:59]wFMCommunicate request_size=4 [21:04:59]MH_SAM_APDU [21:04:59]CAPDU: 80 11 00 00 [21:04:59]Write to MH i2c: E2 08 00 72 43 80 11 00 00 00 00 00 00 2F [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:59]Read from MH i2c: E2 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 17 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 17 00 72 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 86 [21:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:04:59]wFMCommunicate OK [21:04:59]CreateOFDProtocolMessage done [21:04:59]OFDSenderStorePacket 123136 [21:04:59]StoreOFDPacket docnum=123136 [21:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FC 09 07 01 E9 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8C 9F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 9F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 80 E6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 00 E1 01 00 35 04 06 00 D5 2A 60 15 03 F7 98 FD 3B 05 FE 73 27 F0 [21:04:59]CheckFolder [21:04:59]dirname=/storage/ofd_packets [21:04:59]CheckFolder done [21:04:59]ProducePacketName [21:04:59]name=ofd_packets/00123136 [21:04:59]NVStorageSaveData ofd_packets/00123136 [21:04:59]File name is /storage/ofd_packets/00123136 [21:04:59]Write 301 bytes [21:04:59]NVStorageSaveData done [21:04:59]OFDSenderStorePacket done [21:04:59]KKMCreateOFDPacket done [21:04:59]NVStorageSaveData kkm_last_timestamp [21:04:59]File name is /storage/kkm_last_timestamp [21:04:59]Write 4 bytes [21:04:59]NVStorageSaveData done [21:04:59]ExternCall_PrintAddStr [21:04:59]wPrintStart [21:04:59]Write to MH i2c: 01 00 00 73 43 B6 [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: 01 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: 01 07 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: 01 07 00 73 43 00 00 00 00 00 FF 0F CB [21:04:59]RasterBufferAndPrint [21:04:59]line Счет N : (1)717933 [21:04:59]line ИНН: 02508201610067 [21:04:59]line Контрольно-Кассовый Чек [21:04:59]line ПРОДАЖА [21:04:59]line ТРК (МРК, ГНК) : 22 [21:04:59]line Товар: 2710124130 [21:04:59]line Аи-92-К-4 [21:04:59]line 6.060 * 67.40 [21:04:59]line = 408.44 [21:04:59]line НДС 12% НСП 1% [21:04:59]line > о реализуемом товаре [21:04:59]line ИТОГО: 408.44 [21:04:59]line НСП 1% : 3.61 [21:04:59]line НДС 12% : 43.37 [21:04:59]line Наличными: 0.00 [21:04:59]line Безнал.: 408.44 [21:04:59]line Место: АЗС № 64 "Партнер Нефть" [21:04:59]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:04:59]line СНО: Общий режим [21:04:59]line Чек 177 25.11.2024 21:05 [21:04:59]line Смена: 556 ФФД: 1.0 [21:04:59]line ЗНМ: 0300000033 [21:04:59]line РНМ: 0000000000092681 [21:04:59]line Версия ККМ: 001 [21:04:59]line Платежная система: O! деньги [21:04:59]line ФМ: 0000000000874881 [21:04:59]line ФД: 123136 [21:04:59]line ФПД: 234377977332727 [21:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T210504&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123136&fm=234377977332727&tin=02508201610067®Number=0000000000092681&sum=40844 [21:04:59]OFD Sender: Processing packet 123136 [packets to send 7, broken 6] [21:04:59]ProducePacketName [21:04:59]name=ofd_packets/00123136 [21:04:59]OFD Sender: To server: pG, [21:04:59]CommunicateWithHost lk.salyk.kg:30040 [21:04:59]ConnectInit lk.salyk.kg [21:04:59]written 0, free lines is 4095 [21:04:59]Connected sock=10 [21:04:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FC 09 07 01 E9 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8C 9F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 9F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 80 E6 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 00 E1 01 00 35 04 06 00 D5 2A 60 15 03 F7 98 FD 3B 05 FE 73 27 F0 [21:04:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 BD 6F 47 00 21 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 00 E1 01 00 F4 03 04 00 45 92 44 67 B6 04 01 00 00 BF 1B B2 44 62 CB BF 3E [21:04:59]CommunicateWithHost err = 0 [21:04:59]CheckOFDResponse [21:04:59]1017 (14) - 77093643461234 [21:04:59]1041 (16) - 0000000000874881 [21:04:59]1040 (4) - 123136 [21:04:59]1012 (4) - 25.11.2024 15:05 [21:04:59]1206 (1) - 0 [21:04:59]OFD Sender: Remove packet 123136 [21:04:59]ProducePacketName [21:04:59]name=ofd_packets/00123136 [21:04:59]NVStorageDeleteData [21:04:59]Write to MH i2c: 01 00 00 9D 43 E0 [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: 01 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: 01 07 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: 01 07 00 9D 43 00 00 00 00 00 56 0C 49 [21:04:59]RasterBufferAndPrint [21:04:59]line [21:04:59]line [21:04:59]line [21:04:59]line [21:04:59]line [21:04:59]written 0, free lines is 3161 [21:04:59]MH_Cut [21:04:59]Write to MH i2c: D1 01 00 A4 43 01 B9 [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: D1 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: D1 01 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: D1 01 00 A4 43 00 B8 [21:04:59]Write to MH i2c: 01 00 00 A5 43 E8 [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:05:00]OFD Sender: No OFD packet to send [21:05:01]*** Cut start [21:05:01]*** Partial cut [21:05:01]*** CUTSNS_PIN = 1 [21:05:01]*** CUTSNS_PIN = 0 [21:05:01]*** Brake cut motor [21:05:01]Read from MH i2c: 01 [21:05:01]MH_I2C_Read... [21:05:01]*** Stop cut motor [21:05:01]*** Cut end [21:05:01]Read from MH i2c: 01 07 00 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: 01 07 00 A5 43 00 00 00 00 00 FF 0F FD [21:05:01]process_action close_receipt done [21:05:01]requested_data is exist [21:05:01]produce_requested_data [21:05:01]requested_item fm.sn is exist - process it [21:05:01]wFMCommunicate request_size=4 [21:05:01]MH_SAM_APDU [21:05:01]CAPDU: 80 11 00 00 [21:05:01]Write to MH i2c: E2 08 00 A6 43 80 11 00 00 00 00 00 00 63 [21:05:01]Write i2c OK [21:05:01]MH_I2C_Read... [21:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:01]Read from MH i2c: E2 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 17 00 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 17 00 A6 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BA [21:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:05:01]wFMCommunicate OK [21:05:01]requested_item fd.num is exist - process it [21:05:01]SAM_PROTO_GetFieldsCounters [21:05:01]wFMCommunicate request_size=4 [21:05:01]MH_SAM_APDU [21:05:01]CAPDU: 80 13 00 00 [21:05:01]Write to MH i2c: E2 08 00 A7 43 80 13 00 00 00 00 00 00 66 [21:05:01]Write i2c OK [21:05:01]MH_I2C_Read... [21:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:02]Read from MH i2c: E2 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 62 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 62 00 A7 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 00 E1 01 00 0E 04 04 00 2C 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 AF [21: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 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 00 E1 01 00 0E 04 04 00 2C 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 [21:05:02]wFMCommunicate OK [21:05:02]SAM_PROTO_GetFieldsCounters done [21:05:02]requested_item shift.num is exist - process it [21:05:02]requested_item shift.opened is exist - process it [21:05:02]req_shift_opened [21:05:02]FM_GetShiftState [21:05:02]SAM_PROTO_GetShiftState [21:05:02]wFMCommunicate request_size=4 [21:05:02]MH_SAM_APDU [21:05:02]CAPDU: 80 13 01 00 [21:05:02]Write to MH i2c: E2 08 00 A8 43 80 13 01 00 00 00 00 00 68 [21:05:02]Write i2c OK [21:05:02]MH_I2C_Read... [21:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:02]Read from MH i2c: E2 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 0E 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 0E 00 A8 43 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E7 [21:05:02]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:05:02]wFMCommunicate OK [21:05:02]SAM_PROTO_GetShiftState done [21:05:02]FM_GetShiftState done [21:05:02]req_shift_opened done [21:05:02]requested_item shift.open_date is exist - process it [21:05:02]req_shift_open_date [21:05:02]req_shift_open_date done [21:05:02]produce_requested_data done [21:05:02]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123136,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [21:05:02]process_action_free close_receipt [21:05:02]json_value_free [21:05:02]json_value_free done [21:05:02]process_json_proto returns [21:05:02]Send response to host [21:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123136,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [21:05:02]free response buf [21:05:02]execute_script done [21:05:02]execute_script returns [21:05:02]free content buf [21:05:02]Sock 7.Close socket [21:05:02]Sock 7.Thread stoped [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:06]accept exits with 9 [21:13:06]New connection [21:13:06]New thread 3066580324 created [21:13:06]Thread 3066723684 joined [21:13:06]Waiting for new connection... [21:13:06] Sock 9.Parse request [21:13:06]Sock 9.Check first char [21:13:06]Sock 9.First char is OK [21:13:06]request: POST /json_proto HTTP/1.0 [21:13:06]Method: POST [21:13:06]URL: /json_proto [21:13:06]Method is POST - this is cgi request [21:13:06]url: /json_proto [21:13:06]query_string will be loaded in cgi processing [21:13:06]execute_cgi json_proto POST (null) [21:13:06]execute_cgi path=json_proto method=POST [21:13:06]POST find Content-Length [21:13:06]Host: 172.17.37.4:8080 [21:13:06]Content-Length: 682 [21:13:06]Content-Type: application/json [21:13:06] [21:13:06]POST finish read [21:13:06]Found Content-Length = 682 [21:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 11.900, "sum" : 891.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 891.00, "total" : 891.00, "payments": [ { "type": 0, "sum" : 891.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:06]execute_script... [21:13: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)717934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 11.900, "sum" : 891.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 891.00, "total" : 891.00, "payments": [ { "type": 0, "sum" : 891.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:06]POST & json_proto [21:13:06]process_json_proto [21:13:06]json parsed OK: [21:13:06]protocol is kg_v1.0 [21:13:06]action value=close_receipt [21:13:06]process_action close_receipt [21:13:06]cmd_close_receipt [21:13:06]MH_GetDate [21:13:06]Write to MH i2c: F0 00 00 A9 43 DB [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: F0 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: F0 09 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: F0 09 00 A9 43 00 69 E8 44 67 B8 5A 43 67 9C [21:13:06]GetLastDocTimeStamp 1732568704 [21:13:06]current date 1732569193 [21:13:06]FM_GetShiftState [21:13:06]SAM_PROTO_GetShiftState [21:13:06]wFMCommunicate request_size=4 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 13 01 00 [21:13:06]Write to MH i2c: E2 08 00 AA 43 80 13 01 00 00 00 00 00 6A [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 0E 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 0E 00 AA 43 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 E9 [21:13:06]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:13:06]wFMCommunicate OK [21:13:06]SAM_PROTO_GetShiftState done [21:13:06]FM_GetShiftState done [21:13:06]opened in 1732493066 [21:13:06]opened+sec_in_day 1732579466 [21:13:06]quantity*price = 89131 [21:13:06]sum+1 = 89132 [21:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 891.00 Внесено: 891.00 СДАЧА: 0.00 НСП 1% : 7.89 НДС 12% : 94.65 Наличными: 891.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 178 25.11.2024 21:13 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123137 ФПД: 196513078053037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T211313&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123137&fm=196513078053037&tin=02508201610067®Number=0000000000092681&sum=89100 [21:13:07]StoreToDocumentArchive [21:13:07]shift 556 fd 123137 [21:13:07]save to /storage/0556/doc_00123137 [21:13:07]save last doc name /storage/0556/doc_00123137 to /storage/kkm_last_doc_name [21:13:07]save OK [21:13:07]Clear old archive folders... [21:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:13:07]tlvbuf is 0215A610 [21:13:07]SAM_PROTO_ClearQueue [21:13:07]wFMCommunicate request_size=4 [21:13:07]MH_SAM_APDU [21:13:07]CAPDU: 80 09 00 00 [21:13:07]Write to MH i2c: E2 08 00 B7 43 80 09 00 00 00 00 00 00 6C [21:13:07]Write i2c OK [21:13:07]MH_I2C_Read... [21:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:07]Read from MH i2c: E2 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 03 00 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 03 00 B7 43 00 90 00 6E [21:13:07]RAPDU: 90 00 [21:13:07]wFMCommunicate OK [21:13:07]SAM_PROTO_ClearQueue done [21:13:07]KKMCreateOFDPacket [21:13:07]OFDProtocolAddRootSTLVToBuf [21:13:07]FM_MakeSignedData [21:13:07]FM_MakeSignedData [21:13:07]SAM_PROTO_SignData [21:13:07]wFMCommunicate request_size=4 [21:13:07]MH_SAM_APDU [21:13:07]CAPDU: 80 0D 01 02 [21:13:07]Write to MH i2c: E2 08 00 B8 43 80 0D 01 02 00 00 00 00 74 [21:13:07]Write i2c OK [21:13:07]MH_I2C_Read... [21:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:07]Read from MH i2c: E2 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 03 00 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 03 00 B8 43 00 90 00 6F [21:13:07]RAPDU: 90 00 [21:13:07]wFMCommunicate OK [21:13:07]wFMCommunicate request_size=255 [21:13:07]MH_SAM_APDU [21:13:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 2B 5C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 24 00 00 00 00 07 04 06 00 0C 5C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 69 E8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 01 E1 01 00 35 04 06 00 [21:13:07]Write to MH i2c: E2 02 01 B9 43 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 2B 5C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 24 00 00 00 00 07 04 06 00 0C 5C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 69 E8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 01 E1 01 00 35 04 06 00 00 00 15 [21:13:07]Write i2c OK [21:13:07]MH_I2C_Read... [21:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:08]Read from MH i2c: E2 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: E2 03 00 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: E2 03 00 B9 43 00 90 00 70 [21:13:08]RAPDU: 90 00 [21:13:08]wFMCommunicate OK [21:13:08]wFMCommunicate request_size=11 [21:13:08]MH_SAM_APDU [21:13:08]CAPDU: 80 0D 02 02 06 B2 BA 44 36 08 AD [21:13:08]Write to MH i2c: E2 0E 00 BA 43 80 0D 02 02 06 00 B2 BA 44 36 08 AD 00 00 1E [21:13:08]Write i2c OK [21:13:08]MH_I2C_Read... [21:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:08]Read from MH i2c: E2 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: E2 03 00 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: E2 03 00 BA 43 00 90 00 71 [21:13:08]RAPDU: 90 00 [21:13:08]wFMCommunicate OK [21:13:08]wFMCommunicate request_size=4 [21:13:08]MH_SAM_APDU [21:13:08]CAPDU: 80 0D 03 02 [21:13:08]Write to MH i2c: E2 08 00 BB 43 80 0D 03 02 00 00 00 00 79 [21:13:08]Write i2c OK [21:13:08]MH_I2C_Read... [21:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:08]Read from MH i2c: E2 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: E2 0B 00 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: E2 0B 00 BB 43 00 DF 6D 37 D7 1E DB A2 CA 90 00 39 [21:13:08]RAPDU: DF 6D 37 D7 1E DB A2 CA 90 00 [21:13:08]wFMCommunicate OK [21:13:08]SAM_PROTO_SignData done [21:13:08]FM_MakeSignedData done [21:13:08]CreateOFDProtocolMessage [21:13:08]wFMCommunicate request_size=4 [21:13:08]MH_SAM_APDU [21:13:08]CAPDU: 80 11 00 00 [21:13:08]Write to MH i2c: E2 08 00 BC 43 80 11 00 00 00 00 00 00 79 [21:13:08]Write i2c OK [21:13:08]MH_I2C_Read... [21:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:08]Read from MH i2c: E2 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: E2 17 00 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: E2 17 00 BC 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D0 [21:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:13:08]wFMCommunicate OK [21:13:08]CreateOFDProtocolMessage done [21:13:08]OFDSenderStorePacket 123137 [21:13:08]StoreOFDPacket docnum=123137 [21:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 87 85 08 01 BD 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 2B 5C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 24 00 00 00 00 07 04 06 00 0C 5C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 69 E8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 01 E1 01 00 35 04 06 00 B2 BA 44 36 08 AD DF 6D 37 D7 1E DB A2 CA [21:13:08]CheckFolder [21:13:08]dirname=/storage/ofd_packets [21:13:08]CheckFolder done [21:13:08]ProducePacketName [21:13:08]name=ofd_packets/00123137 [21:13:08]NVStorageSaveData ofd_packets/00123137 [21:13:08]File name is /storage/ofd_packets/00123137 [21:13:08]Write 302 bytes [21:13:08]NVStorageSaveData done [21:13:08]OFDSenderStorePacket done [21:13:08]KKMCreateOFDPacket done [21:13:08]NVStorageSaveData kkm_last_timestamp [21:13:08]File name is /storage/kkm_last_timestamp [21:13:08]Write 4 bytes [21:13:08]NVStorageSaveData done [21:13:08]ExternCall_PrintAddStr [21:13:08]wPrintStart [21:13:08]Write to MH i2c: 01 00 00 BD 43 00 [21:13:08]Write i2c OK [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: 01 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: 01 07 00 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: 01 07 00 BD 43 00 00 00 00 00 FF 0F 15 [21:13:08]RasterBufferAndPrint [21:13:08]line Счет N : (1)717934 [21:13:08]line ИНН: 02508201610067 [21:13:08]line Контрольно-Кассовый Чек [21:13:08]line ПРОДАЖА [21:13:08]line ТРК (МРК, ГНК) : 6 [21:13:08]line Товар: 2710194210 [21:13:08]line ДТ(л)-К-5 [21:13:08]line 11.900 * 74.90 [21:13:08]line = 891.31 [21:13:08]line НДС 12% НСП 1% [21:13:08]line > о реализуемом товаре [21:13:08]line ОКРУГЛЕНИЕ: -0.31 [21:13:08]line ИТОГО: 891.00 [21:13:08]line Внесено: 891.00 [21:13:08]line СДАЧА: 0.00 [21:13:08]line НСП 1% : 7.89 [21:13:08]line НДС 12% : 94.65 [21:13:08]line Наличными: 891.00 [21:13:08]line Безнал.: 0.00 [21:13:08]line Место: АЗС № 64 "Партнер Нефть" [21:13:08]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:13:08]line СНО: Общий режим [21:13:08]line Чек 178 25.11.2024 21:13 [21:13:08]line Смена: 556 ФФД: 1.0 [21:13:08]line ЗНМ: 0300000033 [21:13:08]line РНМ: 0000000000092681 [21:13:08]line Версия ККМ: 001 [21:13:08]line ФМ: 0000000000874881 [21:13:08]line ФД: 123137 [21:13:08]line ФПД: 196513078053037 [21:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T211313&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123137&fm=196513078053037&tin=02508201610067®Number=0000000000092681&sum=89100 [21:13:08]OFD Sender: Processing packet 123137 [packets to send 7, broken 6] [21:13:08]ProducePacketName [21:13:08]name=ofd_packets/00123137 [21:13:08]OFD Sender: To server: pG, [21:13:08]CommunicateWithHost lk.salyk.kg:30040 [21:13:08]ConnectInit lk.salyk.kg [21:13:08]written 0, free lines is 4095 [21:13:08]Connected sock=10 [21:13:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 87 85 08 01 BD 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 2B 5C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 24 00 00 00 00 07 04 06 00 0C 5C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 69 E8 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 01 E1 01 00 35 04 06 00 B2 BA 44 36 08 AD DF 6D 37 D7 1E DB A2 CA [21:13:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 EC 25 47 00 84 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 34 38 38 31 10 04 04 00 01 E1 01 00 F4 03 04 00 2E 94 44 67 B6 04 01 00 00 6A B3 09 E2 50 DB 33 CA [21:13:08]CommunicateWithHost err = 0 [21:13:08]CheckOFDResponse [21:13:08]1017 (14) - 77093643461234 [21:13:08]1041 (16) - 0000000000874881 [21:13:08]1040 (4) - 123137 [21:13:08]1012 (4) - 25.11.2024 15:13 [21:13:08]1206 (1) - 0 [21:13:08]OFD Sender: Remove packet 123137 [21:13:08]ProducePacketName [21:13:08]name=ofd_packets/00123137 [21:13:08]NVStorageDeleteData [21:13:09]Write to MH i2c: 01 00 00 E8 43 2B [21:13:09]Write i2c OK [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: 01 [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: 01 07 00 [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: 01 07 00 E8 43 00 00 00 00 00 3D 0C 7B [21:13:09]RasterBufferAndPrint [21:13:09]line [21:13:09]line [21:13:09]line [21:13:09]line [21:13:09]line [21:13:09]written 0, free lines is 3138 [21:13:09]MH_Cut [21:13:09]Write to MH i2c: D1 01 00 EF 43 01 04 [21:13:09]Write i2c OK [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: D1 [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: D1 01 00 [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: D1 01 00 EF 43 00 03 [21:13:09]Write to MH i2c: 01 00 00 F0 43 33 [21:13:09]Write i2c OK [21:13:09]MH_I2C_Read... [21:13:09]OFD Sender: No OFD packet to send [21:13:10]*** Cut start [21:13:10]*** Partial cut [21:13:10]*** CUTSNS_PIN = 1 [21:13:10]*** CUTSNS_PIN = 0 [21:13:10]*** Brake cut motor [21:13:11]Read from MH i2c: 01 [21:13:11]MH_I2C_Read... [21:13:11]*** Stop cut motor [21:13:11]*** Cut end [21:13:11]Read from MH i2c: 01 07 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: 01 07 00 F0 43 00 00 00 00 00 FF 0F 48 [21:13:11]process_action close_receipt done [21:13:11]requested_data is exist [21:13:11]produce_requested_data [21:13:11]requested_item fm.sn is exist - process it [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 11 00 00 [21:13:11]Write to MH i2c: E2 08 00 F1 43 80 11 00 00 00 00 00 00 AE [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 17 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 17 00 F1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 05 [21:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:13:11]wFMCommunicate OK [21:13:11]requested_item fd.num is exist - process it [21:13:11]SAM_PROTO_GetFieldsCounters [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 13 00 00 [21:13:11]Write to MH i2c: E2 08 00 F2 43 80 13 00 00 00 00 00 00 B1 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 62 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 62 00 F2 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 01 E1 01 00 0E 04 04 00 2C 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 FE [21:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 01 E1 01 00 0E 04 04 00 2C 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 [21:13:11]wFMCommunicate OK [21:13:11]SAM_PROTO_GetFieldsCounters done [21:13:11]requested_item shift.num is exist - process it [21:13:11]requested_item shift.opened is exist - process it [21:13:11]req_shift_opened [21:13:11]FM_GetShiftState [21:13:11]SAM_PROTO_GetShiftState [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 13 01 00 [21:13:11]Write to MH i2c: E2 08 00 F3 43 80 13 01 00 00 00 00 00 B3 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0E 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0E 00 F3 43 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 32 [21:13:11]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:13:11]wFMCommunicate OK [21:13:11]SAM_PROTO_GetShiftState done [21:13:11]FM_GetShiftState done [21:13:11]req_shift_opened done [21:13:11]requested_item shift.open_date is exist - process it [21:13:11]req_shift_open_date [21:13:11]req_shift_open_date done [21:13:11]produce_requested_data done [21:13:11]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123137,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [21:13:11]process_action_free close_receipt [21:13:11]json_value_free [21:13:11]json_value_free done [21:13:11]process_json_proto returns [21:13:11]Send response to host [21:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123137,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [21:13:11]free response buf [21:13:11]execute_script done [21:13:11]execute_script returns [21:13:11]free content buf [21:13:11]Sock 9.Close socket [21:13:11]Sock 9.Thread stoped [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]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:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40: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:50]accept exits with 7 [21:40:50]New connection [21:40:50]New thread 3066723684 created [21:40:50]Thread 3066580324 joined [21:40:50]Waiting for new connection... [21:40:50] Sock 7.Parse request [21:40:50]Sock 7.Check first char [21:40:50]Sock 7.First char is OK [21:40:50]request: POST /json_proto HTTP/1.0 [21:40:50]Method: POST [21:40:50]URL: /json_proto [21:40:50]Method is POST - this is cgi request [21:40:50]url: /json_proto [21:40:50]query_string will be loaded in cgi processing [21:40:50]execute_cgi json_proto POST (null) [21:40:50]execute_cgi path=json_proto method=POST [21:40:50]POST find Content-Length [21:40:50]Host: 172.17.37.4:8080 [21:40:50]Content-Length: 677 [21:40:50]Content-Type: application/json [21:40:50] [21:40:50]POST finish read [21:40:50]Found Content-Length = 677 [21:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:50]execute_script... [21:40: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)717935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:50]POST & json_proto [21:40:50]process_json_proto [21:40:50]json parsed OK: [21:40:50]protocol is kg_v1.0 [21:40:50]action value=close_receipt [21:40:50]process_action close_receipt [21:40:50]cmd_close_receipt [21:40:50]MH_GetDate [21:40:50]Write to MH i2c: F0 00 00 F4 43 26 [21:40:50]Write i2c OK [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: F0 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: F0 09 00 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: F0 09 00 F4 43 00 E9 EE 44 67 B8 5A 43 67 6D [21:40:50]GetLastDocTimeStamp 1732569193 [21:40:50]current date 1732570857 [21:40:50]FM_GetShiftState [21:40:50]SAM_PROTO_GetShiftState [21:40:50]wFMCommunicate request_size=4 [21:40:50]MH_SAM_APDU [21:40:50]CAPDU: 80 13 01 00 [21:40:50]Write to MH i2c: E2 08 00 F5 43 80 13 01 00 00 00 00 00 B5 [21:40:50]Write i2c OK [21:40:50]MH_I2C_Read... [21:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:50]Read from MH i2c: E2 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: E2 0E 00 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: E2 0E 00 F5 43 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 34 [21:40:50]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:40:50]wFMCommunicate OK [21:40:50]SAM_PROTO_GetShiftState done [21:40:50]FM_GetShiftState done [21:40:50]opened in 1732493066 [21:40:50]opened+sec_in_day 1732579466 [21:40:50]quantity*price = 40035 [21:40:50]sum+1 = 40037 [21:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 179 25.11.2024 21:40 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123138 ФПД: 101254414512688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T214057&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123138&fm=101254414512688&tin=02508201610067®Number=0000000000092681&sum=40000 [21:40:51]StoreToDocumentArchive [21:40:51]shift 556 fd 123138 [21:40:51]save to /storage/0556/doc_00123138 [21:40:51]save last doc name /storage/0556/doc_00123138 to /storage/kkm_last_doc_name [21:40:51]save OK [21:40:51]Clear old archive folders... [21:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:51]tlvbuf is B6F206F0 [21:40:51]SAM_PROTO_ClearQueue [21:40:51]wFMCommunicate request_size=4 [21:40:51]MH_SAM_APDU [21:40:51]CAPDU: 80 09 00 00 [21:40:51]Write to MH i2c: E2 08 00 02 44 80 09 00 00 00 00 00 00 B8 [21:40:51]Write i2c OK [21:40:51]MH_I2C_Read... [21:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:51]Read from MH i2c: E2 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: E2 03 00 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: E2 03 00 02 44 00 90 00 BA [21:40:51]RAPDU: 90 00 [21:40:51]wFMCommunicate OK [21:40:51]SAM_PROTO_ClearQueue done [21:40:51]KKMCreateOFDPacket [21:40:51]OFDProtocolAddRootSTLVToBuf [21:40:51]FM_MakeSignedData [21:40:51]FM_MakeSignedData [21:40:51]SAM_PROTO_SignData [21:40:51]wFMCommunicate request_size=4 [21:40:51]MH_SAM_APDU [21:40:51]CAPDU: 80 0D 01 02 [21:40:51]Write to MH i2c: E2 08 00 03 44 80 0D 01 02 00 00 00 00 C0 [21:40:51]Write i2c OK [21:40:51]MH_I2C_Read... [21:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 03 44 00 90 00 BB [21:40:52]RAPDU: 90 00 [21:40:52]wFMCommunicate OK [21:40:52]wFMCommunicate request_size=255 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 B3 00 00 00 F4 03 04 00 E9 EE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 02 E1 01 00 35 04 06 00 5C [21:40:52]Write to MH i2c: E2 02 01 04 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 B3 00 00 00 F4 03 04 00 E9 EE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 02 E1 01 00 35 04 06 00 5C 00 00 F1 [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 04 44 00 90 00 BC [21:40:52]RAPDU: 90 00 [21:40:52]wFMCommunicate OK [21:40:52]wFMCommunicate request_size=10 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 0D 02 02 05 17 21 68 B2 30 [21:40:52]Write to MH i2c: E2 0D 00 05 44 80 0D 02 02 05 00 17 21 68 B2 30 00 00 4F [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 05 44 00 90 00 BD [21:40:52]RAPDU: 90 00 [21:40:52]wFMCommunicate OK [21:40:52]wFMCommunicate request_size=4 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 0D 03 02 [21:40:52]Write to MH i2c: E2 08 00 06 44 80 0D 03 02 00 00 00 00 C5 [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 0B 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 0B 00 06 44 00 38 E7 5F 7E 15 C9 A2 77 90 00 B9 [21:40:52]RAPDU: 38 E7 5F 7E 15 C9 A2 77 90 00 [21:40:52]wFMCommunicate OK [21:40:52]SAM_PROTO_SignData done [21:40:52]FM_MakeSignedData done [21:40:52]CreateOFDProtocolMessage [21:40:52]wFMCommunicate request_size=4 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 11 00 00 [21:40:52]Write to MH i2c: E2 08 00 07 44 80 11 00 00 00 00 00 00 C5 [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 17 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 17 00 07 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1C [21:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:40:52]wFMCommunicate OK [21:40:52]CreateOFDProtocolMessage done [21:40:52]OFDSenderStorePacket 123138 [21:40:52]StoreOFDPacket docnum=123138 [21:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0A 84 07 01 07 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 B3 00 00 00 F4 03 04 00 E9 EE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 02 E1 01 00 35 04 06 00 5C 17 21 68 B2 30 38 E7 5F 7E 15 C9 A2 77 [21:40:52]CheckFolder [21:40:52]dirname=/storage/ofd_packets [21:40:52]CheckFolder done [21:40:52]ProducePacketName [21:40:52]name=ofd_packets/00123138 [21:40:52]NVStorageSaveData ofd_packets/00123138 [21:40:52]File name is /storage/ofd_packets/00123138 [21:40:52]Write 301 bytes [21:40:52]NVStorageSaveData done [21:40:52]OFDSenderStorePacket done [21:40:52]KKMCreateOFDPacket done [21:40:52]NVStorageSaveData kkm_last_timestamp [21:40:52]File name is /storage/kkm_last_timestamp [21:40:52]Write 4 bytes [21:40:52]NVStorageSaveData done [21:40:52]ExternCall_PrintAddStr [21:40:52]wPrintStart [21:40:52]Write to MH i2c: 01 00 00 08 44 4C [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: 01 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: 01 07 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: 01 07 00 08 44 00 00 00 00 00 FF 0F 61 [21:40:52]RasterBufferAndPrint [21:40:52]line Счет N : (1)717935 [21:40:52]line ИНН: 02508201610067 [21:40:52]line Контрольно-Кассовый Чек [21:40:52]line ПРОДАЖА [21:40:52]line ТРК (МРК, ГНК) : 12 [21:40:52]line Товар: 2710124130 [21:40:52]line Аи-92-К-4 [21:40:52]line 5.940 * 67.40 [21:40:52]line = 400.36 [21:40:52]line НДС 12% НСП 1% [21:40:52]line > о реализуемом товаре [21:40:52]line ОКРУГЛЕНИЕ: -0.36 [21:40:52]line ИТОГО: 400.00 [21:40:52]line Внесено: 400.00 [21:40:52]line СДАЧА: 0.00 [21:40:52]line НСП 1% : 3.54 [21:40:52]line НДС 12% : 42.52 [21:40:52]line Наличными: 400.00 [21:40:52]line Безнал.: 0.00 [21:40:52]line Место: АЗС № 64 "Партнер Нефть" [21:40:52]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:40:52]line СНО: Общий режим [21:40:52]line Чек 179 25.11.2024 21:40 [21:40:52]line Смена: 556 ФФД: 1.0 [21:40:52]line ЗНМ: 0300000033 [21:40:52]line РНМ: 0000000000092681 [21:40:52]line Версия ККМ: 001 [21:40:52]line ФМ: 0000000000874881 [21:40:52]line ФД: 123138 [21:40:52]line ФПД: 101254414512688 [21:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T214057&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123138&fm=101254414512688&tin=02508201610067®Number=0000000000092681&sum=40000 [21:40:52]OFD Sender: Processing packet 123138 [packets to send 7, broken 6] [21:40:52]ProducePacketName [21:40:52]name=ofd_packets/00123138 [21:40:52]OFD Sender: To server: pG, [21:40:52]CommunicateWithHost lk.salyk.kg:30040 [21:40:52]ConnectInit lk.salyk.kg [21:40:52]written 0, free lines is 4095 [21:40:52]Connected sock=10 [21:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0A 84 07 01 07 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 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 9C 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 B3 00 00 00 F4 03 04 00 E9 EE 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 02 E1 01 00 35 04 06 00 5C 17 21 68 B2 30 38 E7 5F 7E 15 C9 A2 77 [21:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 CE 23 47 00 44 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 02 E1 01 00 F4 03 04 00 AE 9A 44 67 B6 04 01 00 00 24 56 C1 0F 9D DF 20 87 [21:40:53]CommunicateWithHost err = 0 [21:40:53]CheckOFDResponse [21:40:53]1017 (14) - 77093643461234 [21:40:53]1041 (16) - 0000000000874881 [21:40:53]1040 (4) - 123138 [21:40:53]1012 (4) - 25.11.2024 15:41 [21:40:53]1206 (1) - 0 [21:40:53]OFD Sender: Remove packet 123138 [21:40:53]ProducePacketName [21:40:53]name=ofd_packets/00123138 [21:40:53]NVStorageDeleteData [21:40:53]Write to MH i2c: 01 00 00 33 44 77 [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: 01 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: 01 07 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: 01 07 00 33 44 00 00 00 00 00 49 0C D3 [21:40:53]RasterBufferAndPrint [21:40:53]line [21:40:53]line [21:40:53]line [21:40:53]line [21:40:53]line [21:40:53]written 0, free lines is 3150 [21:40:53]MH_Cut [21:40:53]Write to MH i2c: D1 01 00 3A 44 01 50 [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: D1 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: D1 01 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: D1 01 00 3A 44 00 4F [21:40:53]Write to MH i2c: 01 00 00 3B 44 7F [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]OFD Sender: No OFD packet to send [21:40:54]*** Cut start [21:40:54]*** Partial cut [21:40:54]*** CUTSNS_PIN = 1 [21:40:54]*** CUTSNS_PIN = 0 [21:40:54]*** Brake cut motor [21:40:55]Read from MH i2c: 01 [21:40:55]MH_I2C_Read... [21:40:55]*** Stop cut motor [21:40:55]*** Cut end [21:40:55]Read from MH i2c: 01 07 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: 01 07 00 3B 44 00 00 00 00 00 FF 0F 94 [21:40:55]process_action close_receipt done [21:40:55]requested_data is exist [21:40:55]produce_requested_data [21:40:55]requested_item fm.sn is exist - process it [21:40:55]wFMCommunicate request_size=4 [21:40:55]MH_SAM_APDU [21:40:55]CAPDU: 80 11 00 00 [21:40:55]Write to MH i2c: E2 08 00 3C 44 80 11 00 00 00 00 00 00 FA [21:40:55]Write i2c OK [21:40:55]MH_I2C_Read... [21:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:55]Read from MH i2c: E2 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 17 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 17 00 3C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 51 [21:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:40:55]wFMCommunicate OK [21:40:55]requested_item fd.num is exist - process it [21:40:55]SAM_PROTO_GetFieldsCounters [21:40:55]wFMCommunicate request_size=4 [21:40:55]MH_SAM_APDU [21:40:55]CAPDU: 80 13 00 00 [21:40:55]Write to MH i2c: E2 08 00 3D 44 80 13 00 00 00 00 00 00 FD [21:40:55]Write i2c OK [21:40:55]MH_I2C_Read... [21:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:55]Read from MH i2c: E2 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 62 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 62 00 3D 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 02 E1 01 00 0E 04 04 00 2C 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 4E [21:40:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 02 E1 01 00 0E 04 04 00 2C 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 [21:40:55]wFMCommunicate OK [21:40:55]SAM_PROTO_GetFieldsCounters done [21:40:55]requested_item shift.num is exist - process it [21:40:55]requested_item shift.opened is exist - process it [21:40:55]req_shift_opened [21:40:55]FM_GetShiftState [21:40:55]SAM_PROTO_GetShiftState [21:40:55]wFMCommunicate request_size=4 [21:40:55]MH_SAM_APDU [21:40:55]CAPDU: 80 13 01 00 [21:40:55]Write to MH i2c: E2 08 00 3E 44 80 13 01 00 00 00 00 00 FF [21:40:55]Write i2c OK [21:40:55]MH_I2C_Read... [21:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:55]Read from MH i2c: E2 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 0E 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 0E 00 3E 44 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 7E [21:40:55]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:40:55]wFMCommunicate OK [21:40:55]SAM_PROTO_GetShiftState done [21:40:55]FM_GetShiftState done [21:40:55]req_shift_opened done [21:40:55]requested_item shift.open_date is exist - process it [21:40:55]req_shift_open_date [21:40:55]req_shift_open_date done [21:40:55]produce_requested_data done [21:40:55]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123138,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [21:40:55]process_action_free close_receipt [21:40:55]json_value_free [21:40:55]json_value_free done [21:40:55]process_json_proto returns [21:40:55]Send response to host [21:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123138,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [21:40:55]free response buf [21:40:55]execute_script done [21:40:55]execute_script returns [21:40:55]free content buf [21:40:55]Sock 7.Close socket [21:40:55]Sock 7.Thread stoped [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:36]accept exits with 9 [21:50:36]New connection [21:50:36]New thread 3066580324 created [21:50:36]Thread 3066723684 joined [21:50:36]Waiting for new connection... [21:50:36] Sock 9.Parse request [21:50:36]Sock 9.Check first char [21:50:36]Sock 9.First char is OK [21:50:36]request: POST /json_proto HTTP/1.0 [21:50:36]Method: POST [21:50:36]URL: /json_proto [21:50:36]Method is POST - this is cgi request [21:50:36]url: /json_proto [21:50:36]query_string will be loaded in cgi processing [21:50:36]execute_cgi json_proto POST (null) [21:50:36]execute_cgi path=json_proto method=POST [21:50:36]POST find Content-Length [21:50:36]Host: 172.17.37.4:8080 [21:50:36]Content-Length: 681 [21:50:36]Content-Type: application/json [21:50:36] [21:50:36]POST finish read [21:50:36]Found Content-Length = 681 [21:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 4.010, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:36]execute_script... [21:50: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)717936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 4.010, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:36]POST & json_proto [21:50:36]process_json_proto [21:50:36]json parsed OK: [21:50:36]protocol is kg_v1.0 [21:50:36]action value=close_receipt [21:50:36]process_action close_receipt [21:50:36]cmd_close_receipt [21:50:36]MH_GetDate [21:50:36]Write to MH i2c: F0 00 00 3F 44 72 [21:50:36]Write i2c OK [21:50:36]MH_I2C_Read... [21:50:36]Read from MH i2c: F0 [21:50:36]MH_I2C_Read... [21:50:36]Read from MH i2c: F0 09 00 [21:50:36]MH_I2C_Read... [21:50:36]Read from MH i2c: F0 09 00 3F 44 00 33 F1 44 67 B8 5A 43 67 06 [21:50:36]GetLastDocTimeStamp 1732570857 [21:50:36]current date 1732571443 [21:50:36]FM_GetShiftState [21:50:36]SAM_PROTO_GetShiftState [21:50:36]wFMCommunicate request_size=4 [21:50:36]MH_SAM_APDU [21:50:36]CAPDU: 80 13 01 00 [21:50:36]Write to MH i2c: E2 08 00 40 44 80 13 01 00 00 00 00 00 01 [21:50:36]Write i2c OK [21:50:36]MH_I2C_Read... [21:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:36]Read from MH i2c: E2 [21:50:36]MH_I2C_Read... [21:50:36]Read from MH i2c: E2 0E 00 [21:50:36]MH_I2C_Read... [21:50:36]Read from MH i2c: E2 0E 00 40 44 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 80 [21:50:36]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:50:36]wFMCommunicate OK [21:50:36]SAM_PROTO_GetShiftState done [21:50:36]FM_GetShiftState done [21:50:36]opened in 1732493066 [21:50:36]opened+sec_in_day 1732579466 [21:50:36]quantity*price = 30034 [21:50:36]sum+1 = 30036 [21:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 180 25.11.2024 21:50 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123139 ФПД: 9228719004803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T215043&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123139&fm=9228719004803&tin=02508201610067®Number=0000000000092681&sum=30000 [21:50:37]StoreToDocumentArchive [21:50:37]shift 556 fd 123139 [21:50:37]save to /storage/0556/doc_00123139 [21:50:37]save last doc name /storage/0556/doc_00123139 to /storage/kkm_last_doc_name [21:50:37]save OK [21:50:37]Clear old archive folders... [21:50:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:50:37]tlvbuf is 01F33CF0 [21:50:37]SAM_PROTO_ClearQueue [21:50:37]wFMCommunicate request_size=4 [21:50:37]MH_SAM_APDU [21:50:37]CAPDU: 80 09 00 00 [21:50:37]Write to MH i2c: E2 08 00 4D 44 80 09 00 00 00 00 00 00 03 [21:50:37]Write i2c OK [21:50:37]MH_I2C_Read... [21:50:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:37]Read from MH i2c: E2 [21:50:37]MH_I2C_Read... [21:50:37]Read from MH i2c: E2 03 00 [21:50:37]MH_I2C_Read... [21:50:37]Read from MH i2c: E2 03 00 4D 44 00 90 00 05 [21:50:37]RAPDU: 90 00 [21:50:37]wFMCommunicate OK [21:50:37]SAM_PROTO_ClearQueue done [21:50:37]KKMCreateOFDPacket [21:50:37]OFDProtocolAddRootSTLVToBuf [21:50:37]FM_MakeSignedData [21:50:37]FM_MakeSignedData [21:50:37]SAM_PROTO_SignData [21:50:37]wFMCommunicate request_size=4 [21:50:37]MH_SAM_APDU [21:50:37]CAPDU: 80 0D 01 02 [21:50:37]Write to MH i2c: E2 08 00 4E 44 80 0D 01 02 00 00 00 00 0B [21:50:37]Write i2c OK [21:50:37]MH_I2C_Read... [21:50:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:37]Read from MH i2c: E2 [21:50:37]MH_I2C_Read... [21:50:37]Read from MH i2c: E2 03 00 [21:50:37]MH_I2C_Read... [21:50:37]Read from MH i2c: E2 03 00 4E 44 00 90 00 06 [21:50:37]RAPDU: 90 00 [21:50:37]wFMCommunicate OK [21:50:37]wFMCommunicate request_size=255 [21:50:37]MH_SAM_APDU [21:50:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 F1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 03 E1 01 00 35 04 06 00 [21:50:37]Write to MH i2c: E2 02 01 4F 44 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 F1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 03 E1 01 00 35 04 06 00 00 00 A2 [21:50:37]Write i2c OK [21:50:37]MH_I2C_Read... [21:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:37]Read from MH i2c: E2 [21:50:37]MH_I2C_Read... [21:50:37]Read from MH i2c: E2 03 00 [21:50:37]MH_I2C_Read... [21:50:37]Read from MH i2c: E2 03 00 4F 44 00 90 00 07 [21:50:37]RAPDU: 90 00 [21:50:37]wFMCommunicate OK [21:50:37]wFMCommunicate request_size=11 [21:50:37]MH_SAM_APDU [21:50:37]CAPDU: 80 0D 02 02 06 08 64 BA 84 9C 83 [21:50:37]Write to MH i2c: E2 0E 00 50 44 80 0D 02 02 06 00 08 64 BA 84 9C 83 00 00 E3 [21:50:37]Write i2c OK [21:50:37]MH_I2C_Read... [21:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:37]Read from MH i2c: E2 [21:50:37]MH_I2C_Read... [21:50:37]Read from MH i2c: E2 03 00 [21:50:37]MH_I2C_Read... [21:50:37]Read from MH i2c: E2 03 00 50 44 00 90 00 08 [21:50:37]RAPDU: 90 00 [21:50:37]wFMCommunicate OK [21:50:37]wFMCommunicate request_size=4 [21:50:37]MH_SAM_APDU [21:50:37]CAPDU: 80 0D 03 02 [21:50:37]Write to MH i2c: E2 08 00 51 44 80 0D 03 02 00 00 00 00 10 [21:50:37]Write i2c OK [21:50:37]MH_I2C_Read... [21:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:38]Read from MH i2c: E2 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: E2 0B 00 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: E2 0B 00 51 44 00 E4 2D A6 25 96 0E BA AE 90 00 F9 [21:50:38]RAPDU: E4 2D A6 25 96 0E BA AE 90 00 [21:50:38]wFMCommunicate OK [21:50:38]SAM_PROTO_SignData done [21:50:38]FM_MakeSignedData done [21:50:38]CreateOFDProtocolMessage [21:50:38]wFMCommunicate request_size=4 [21:50:38]MH_SAM_APDU [21:50:38]CAPDU: 80 11 00 00 [21:50:38]Write to MH i2c: E2 08 00 52 44 80 11 00 00 00 00 00 00 10 [21:50:38]Write i2c OK [21:50:38]MH_I2C_Read... [21:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:38]Read from MH i2c: E2 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: E2 17 00 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: E2 17 00 52 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 67 [21:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:50:38]wFMCommunicate OK [21:50:38]CreateOFDProtocolMessage done [21:50:38]OFDSenderStorePacket 123139 [21:50:38]StoreOFDPacket docnum=123139 [21:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 52 5F 08 01 17 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 F1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 03 E1 01 00 35 04 06 00 08 64 BA 84 9C 83 E4 2D A6 25 96 0E BA AE [21:50:38]CheckFolder [21:50:38]dirname=/storage/ofd_packets [21:50:38]CheckFolder done [21:50:38]ProducePacketName [21:50:38]name=ofd_packets/00123139 [21:50:38]NVStorageSaveData ofd_packets/00123139 [21:50:38]File name is /storage/ofd_packets/00123139 [21:50:38]Write 302 bytes [21:50:38]NVStorageSaveData done [21:50:38]OFDSenderStorePacket done [21:50:38]KKMCreateOFDPacket done [21:50:38]NVStorageSaveData kkm_last_timestamp [21:50:38]File name is /storage/kkm_last_timestamp [21:50:38]Write 4 bytes [21:50:38]NVStorageSaveData done [21:50:38]ExternCall_PrintAddStr [21:50:38]wPrintStart [21:50:38]Write to MH i2c: 01 00 00 53 44 97 [21:50:38]Write i2c OK [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: 01 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: 01 07 00 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: 01 07 00 53 44 00 00 00 00 00 FF 0F AC [21:50:38]RasterBufferAndPrint [21:50:38]line Счет N : (1)717936 [21:50:38]line ИНН: 02508201610067 [21:50:38]line Контрольно-Кассовый Чек [21:50:38]line ПРОДАЖА [21:50:38]line ТРК (МРК, ГНК) : 5 [21:50:38]line Товар: 2710194210 [21:50:38]line ДТ(л)-К-5 [21:50:38]line 4.010 * 74.90 [21:50:38]line = 300.35 [21:50:38]line НДС 12% НСП 1% [21:50:38]line > о реализуемом товаре [21:50:38]line ОКРУГЛЕНИЕ: -0.35 [21:50:38]line ИТОГО: 300.00 [21:50:38]line Внесено: 300.00 [21:50:38]line СДАЧА: 0.00 [21:50:38]line НСП 1% : 2.66 [21:50:38]line НДС 12% : 31.90 [21:50:38]line Наличными: 300.00 [21:50:38]line Безнал.: 0.00 [21:50:38]line Место: АЗС № 64 "Партнер Нефть" [21:50:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:50:38]line СНО: Общий режим [21:50:38]line Чек 180 25.11.2024 21:50 [21:50:38]line Смена: 556 ФФД: 1.0 [21:50:38]line ЗНМ: 0300000033 [21:50:38]line РНМ: 0000000000092681 [21:50:38]line Версия ККМ: 001 [21:50:38]line ФМ: 0000000000874881 [21:50:38]line ФД: 123139 [21:50:38]line ФПД: 9228719004803 [21:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T215043&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123139&fm=9228719004803&tin=02508201610067®Number=0000000000092681&sum=30000 [21:50:38]OFD Sender: Processing packet 123139 [packets to send 7, broken 6] [21:50:38]ProducePacketName [21:50:38]name=ofd_packets/00123139 [21:50:38]OFD Sender: To server: pG, [21:50:38]CommunicateWithHost lk.salyk.kg:30040 [21:50:38]ConnectInit lk.salyk.kg [21:50:38]written 0, free lines is 4095 [21:50:38]Connected sock=10 [21:50:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 52 5F 08 01 17 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 F1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 03 E1 01 00 35 04 06 00 08 64 BA 84 9C 83 E4 2D A6 25 96 0E BA AE [21:50:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 24 9A 47 00 42 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 03 E1 01 00 F4 03 04 00 F8 9C 44 67 B6 04 01 00 00 7B A8 60 B6 A2 CF 9F 8C [21:50:38]CommunicateWithHost err = 0 [21:50:38]CheckOFDResponse [21:50:38]1017 (14) - 77093643461234 [21:50:38]1041 (16) - 0000000000874881 [21:50:38]1040 (4) - 123139 [21:50:38]1012 (4) - 25.11.2024 15:51 [21:50:38]1206 (1) - 0 [21:50:38]OFD Sender: Remove packet 123139 [21:50:38]ProducePacketName [21:50:38]name=ofd_packets/00123139 [21:50:38]NVStorageDeleteData [21:50:38]Write to MH i2c: 01 00 00 7E 44 C2 [21:50:38]Write i2c OK [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: 01 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: 01 07 00 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: 01 07 00 7E 44 00 00 00 00 00 54 0C 29 [21:50:38]RasterBufferAndPrint [21:50:38]line [21:50:38]line [21:50:38]line [21:50:38]line [21:50:38]line [21:50:38]written 0, free lines is 3158 [21:50:38]MH_Cut [21:50:38]Write to MH i2c: D1 01 00 85 44 01 9B [21:50:38]Write i2c OK [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: D1 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: D1 01 00 [21:50:38]MH_I2C_Read... [21:50:38]Read from MH i2c: D1 01 00 85 44 00 9A [21:50:38]Write to MH i2c: 01 00 00 86 44 CA [21:50:38]Write i2c OK [21:50:38]MH_I2C_Read... [21:50:39]OFD Sender: No OFD packet to send [21:50:40]*** Cut start [21:50:40]*** Partial cut [21:50:40]*** CUTSNS_PIN = 1 [21:50:40]*** CUTSNS_PIN = 0 [21:50:40]*** Brake cut motor [21:50:40]Read from MH i2c: 01 [21:50:40]MH_I2C_Read... [21:50:40]*** Stop cut motor [21:50:40]*** Cut end [21:50:40]Read from MH i2c: 01 07 00 [21:50:40]MH_I2C_Read... [21:50:40]Read from MH i2c: 01 07 00 86 44 00 00 00 00 00 FF 0F DF [21:50:40]process_action close_receipt done [21:50:40]requested_data is exist [21:50:40]produce_requested_data [21:50:40]requested_item fm.sn is exist - process it [21:50:40]wFMCommunicate request_size=4 [21:50:40]MH_SAM_APDU [21:50:40]CAPDU: 80 11 00 00 [21:50:40]Write to MH i2c: E2 08 00 87 44 80 11 00 00 00 00 00 00 45 [21:50:40]Write i2c OK [21:50:40]MH_I2C_Read... [21:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:40]Read from MH i2c: E2 [21:50:40]MH_I2C_Read... [21:50:40]Read from MH i2c: E2 17 00 [21:50:40]MH_I2C_Read... [21:50:40]Read from MH i2c: E2 17 00 87 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9C [21:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:50:40]wFMCommunicate OK [21:50:40]requested_item fd.num is exist - process it [21:50:40]SAM_PROTO_GetFieldsCounters [21:50:40]wFMCommunicate request_size=4 [21:50:40]MH_SAM_APDU [21:50:40]CAPDU: 80 13 00 00 [21:50:40]Write to MH i2c: E2 08 00 88 44 80 13 00 00 00 00 00 00 48 [21:50:40]Write i2c OK [21:50:40]MH_I2C_Read... [21:50:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:41]Read from MH i2c: E2 [21:50:41]MH_I2C_Read... [21:50:41]Read from MH i2c: E2 62 00 [21:50:41]MH_I2C_Read... [21:50:41]Read from MH i2c: E2 62 00 88 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 03 E1 01 00 0E 04 04 00 2C 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 9D [21:50:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 03 E1 01 00 0E 04 04 00 2C 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 [21:50:41]wFMCommunicate OK [21:50:41]SAM_PROTO_GetFieldsCounters done [21:50:41]requested_item shift.num is exist - process it [21:50:41]requested_item shift.opened is exist - process it [21:50:41]req_shift_opened [21:50:41]FM_GetShiftState [21:50:41]SAM_PROTO_GetShiftState [21:50:41]wFMCommunicate request_size=4 [21:50:41]MH_SAM_APDU [21:50:41]CAPDU: 80 13 01 00 [21:50:41]Write to MH i2c: E2 08 00 89 44 80 13 01 00 00 00 00 00 4A [21:50:41]Write i2c OK [21:50:41]MH_I2C_Read... [21:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:41]Read from MH i2c: E2 [21:50:41]MH_I2C_Read... [21:50:41]Read from MH i2c: E2 0E 00 [21:50:41]MH_I2C_Read... [21:50:41]Read from MH i2c: E2 0E 00 89 44 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C9 [21:50:41]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:50:41]wFMCommunicate OK [21:50:41]SAM_PROTO_GetShiftState done [21:50:41]FM_GetShiftState done [21:50:41]req_shift_opened done [21:50:41]requested_item shift.open_date is exist - process it [21:50:41]req_shift_open_date [21:50:41]req_shift_open_date done [21:50:41]produce_requested_data done [21:50:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123139,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [21:50:41]process_action_free close_receipt [21:50:41]json_value_free [21:50:41]json_value_free done [21:50:41]process_json_proto returns [21:50:41]Send response to host [21:50:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123139,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [21:50:41]free response buf [21:50:41]execute_script done [21:50:41]execute_script returns [21:50:41]free content buf [21:50:41]Sock 9.Close socket [21:50:41]Sock 9.Thread stoped [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:35]accept exits with 7 [21:51:35]New connection [21:51:35]New thread 3066723684 created [21:51:35]Thread 3066580324 joined [21:51:35]Waiting for new connection... [21:51:35] Sock 7.Parse request [21:51:35]Sock 7.Check first char [21:51:35]Sock 7.First char is OK [21:51:35]request: POST /json_proto HTTP/1.0 [21:51:35]Method: POST [21:51:35]URL: /json_proto [21:51:35]Method is POST - this is cgi request [21:51:35]url: /json_proto [21:51:35]query_string will be loaded in cgi processing [21:51:35]execute_cgi json_proto POST (null) [21:51:35]execute_cgi path=json_proto method=POST [21:51:35]POST find Content-Length [21:51:35]Host: 172.17.37.4:8080 [21:51:35]Content-Length: 800 [21:51:35]Content-Type: application/json [21:51:35] [21:51:35]POST finish read [21:51:35]Found Content-Length = 800 [21:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:35]execute_script... [21: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)717937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:35]POST & json_proto [21:51:35]process_json_proto [21:51:35]json parsed OK: [21:51:35]protocol is kg_v1.0 [21:51:35]action value=close_receipt [21:51:35]process_action close_receipt [21:51:35]cmd_close_receipt [21:51:35]MH_GetDate [21:51:35]Write to MH i2c: F0 00 00 8A 44 BD [21:51:35]Write i2c OK [21:51:35]MH_I2C_Read... [21:51:35]Read from MH i2c: F0 [21:51:35]MH_I2C_Read... [21:51:35]Read from MH i2c: F0 09 00 [21:51:35]MH_I2C_Read... [21:51:35]Read from MH i2c: F0 09 00 8A 44 00 6E F1 44 67 B8 5A 43 67 8C [21:51:35]GetLastDocTimeStamp 1732571443 [21:51:35]current date 1732571502 [21:51:35]FM_GetShiftState [21:51:35]SAM_PROTO_GetShiftState [21:51:35]wFMCommunicate request_size=4 [21:51:35]MH_SAM_APDU [21:51:35]CAPDU: 80 13 01 00 [21:51:35]Write to MH i2c: E2 08 00 8B 44 80 13 01 00 00 00 00 00 4C [21:51:35]Write i2c OK [21:51:35]MH_I2C_Read... [21:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:35]Read from MH i2c: E2 [21:51:35]MH_I2C_Read... [21:51:35]Read from MH i2c: E2 0E 00 [21:51:35]MH_I2C_Read... [21:51:35]Read from MH i2c: E2 0E 00 8B 44 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 CB [21:51:35]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:51:35]wFMCommunicate OK [21:51:35]SAM_PROTO_GetShiftState done [21:51:35]FM_GetShiftState done [21:51:35]opened in 1732493066 [21:51:35]opened+sec_in_day 1732579466 [21:51:35]quantity*price = 20017 [21:51:35]sum+1 = 20019 [21:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.18 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.18 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 181 25.11.2024 21:51 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123140 ФПД: 163975603974501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T215142&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123140&fm=163975603974501&tin=02508201610067®Number=0000000000092681&sum=20018 [21:51:36]StoreToDocumentArchive [21:51:36]shift 556 fd 123140 [21:51:36]save to /storage/0556/doc_00123140 [21:51:36]save last doc name /storage/0556/doc_00123140 to /storage/kkm_last_doc_name [21:51:36]save OK [21:51:36]Clear old archive folders... [21:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:36]tlvbuf is B6F1D860 [21:51:36]SAM_PROTO_ClearQueue [21:51:36]wFMCommunicate request_size=4 [21:51:36]MH_SAM_APDU [21:51:36]CAPDU: 80 09 00 00 [21:51:36]Write to MH i2c: E2 08 00 98 44 80 09 00 00 00 00 00 00 4E [21:51:36]Write i2c OK [21:51:36]MH_I2C_Read... [21:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:36]Read from MH i2c: E2 [21:51:36]MH_I2C_Read... [21:51:36]Read from MH i2c: E2 03 00 [21:51:36]MH_I2C_Read... [21:51:36]Read from MH i2c: E2 03 00 98 44 00 90 00 50 [21:51:36]RAPDU: 90 00 [21:51:36]wFMCommunicate OK [21:51:36]SAM_PROTO_ClearQueue done [21:51:36]KKMCreateOFDPacket [21:51:36]OFDProtocolAddRootSTLVToBuf [21:51:36]FM_MakeSignedData [21:51:36]FM_MakeSignedData [21:51:36]SAM_PROTO_SignData [21:51:36]wFMCommunicate request_size=4 [21:51:36]MH_SAM_APDU [21:51:36]CAPDU: 80 0D 01 02 [21:51:36]Write to MH i2c: E2 08 00 99 44 80 0D 01 02 00 00 00 00 56 [21:51:36]Write i2c OK [21:51:36]MH_I2C_Read... [21:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:36]Read from MH i2c: E2 [21:51:36]MH_I2C_Read... [21:51:36]Read from MH i2c: E2 03 00 [21:51:36]MH_I2C_Read... [21:51:36]Read from MH i2c: E2 03 00 99 44 00 90 00 51 [21:51:36]RAPDU: 90 00 [21:51:36]wFMCommunicate OK [21:51:36]wFMCommunicate request_size=255 [21:51:36]MH_SAM_APDU [21:51:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6E F1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 04 E1 01 00 35 04 06 00 95 [21:51:36]Write to MH i2c: E2 02 01 9A 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6E F1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 04 E1 01 00 35 04 06 00 95 00 00 66 [21:51:36]Write i2c OK [21:51:36]MH_I2C_Read... [21:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:36]Read from MH i2c: E2 [21:51:36]MH_I2C_Read... [21:51:36]Read from MH i2c: E2 03 00 [21:51:36]MH_I2C_Read... [21:51:36]Read from MH i2c: E2 03 00 9A 44 00 90 00 52 [21:51:36]RAPDU: 90 00 [21:51:36]wFMCommunicate OK [21:51:36]wFMCommunicate request_size=10 [21:51:36]MH_SAM_APDU [21:51:36]CAPDU: 80 0D 02 02 05 22 8B A0 71 65 [21:51:36]Write to MH i2c: E2 0D 00 9B 44 80 0D 02 02 05 00 22 8B A0 71 65 00 00 86 [21:51:36]Write i2c OK [21:51:36]MH_I2C_Read... [21:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:36]Read from MH i2c: E2 [21:51:36]MH_I2C_Read... [21:51:36]Read from MH i2c: E2 03 00 [21:51:36]MH_I2C_Read... [21:51:36]Read from MH i2c: E2 03 00 9B 44 00 90 00 53 [21:51:36]RAPDU: 90 00 [21:51:36]wFMCommunicate OK [21:51:36]wFMCommunicate request_size=4 [21:51:36]MH_SAM_APDU [21:51:36]CAPDU: 80 0D 03 02 [21:51:36]Write to MH i2c: E2 08 00 9C 44 80 0D 03 02 00 00 00 00 5B [21:51:36]Write i2c OK [21:51:36]MH_I2C_Read... [21:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:37]Read from MH i2c: E2 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: E2 0B 00 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: E2 0B 00 9C 44 00 96 0F 47 F8 1C FA 1E F8 90 00 6C [21:51:37]RAPDU: 96 0F 47 F8 1C FA 1E F8 90 00 [21:51:37]wFMCommunicate OK [21:51:37]SAM_PROTO_SignData done [21:51:37]FM_MakeSignedData done [21:51:37]CreateOFDProtocolMessage [21:51:37]wFMCommunicate request_size=4 [21:51:37]MH_SAM_APDU [21:51:37]CAPDU: 80 11 00 00 [21:51:37]Write to MH i2c: E2 08 00 9D 44 80 11 00 00 00 00 00 00 5B [21:51:37]Write i2c OK [21:51:37]MH_I2C_Read... [21:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:37]Read from MH i2c: E2 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: E2 17 00 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: E2 17 00 9D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B2 [21:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:51:37]wFMCommunicate OK [21:51:37]CreateOFDProtocolMessage done [21:51:37]OFDSenderStorePacket 123140 [21:51:37]StoreOFDPacket docnum=123140 [21:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 87 EE 07 01 EB 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6E F1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 04 E1 01 00 35 04 06 00 95 22 8B A0 71 65 96 0F 47 F8 1C FA 1E F8 [21:51:37]CheckFolder [21:51:37]dirname=/storage/ofd_packets [21:51:37]CheckFolder done [21:51:37]ProducePacketName [21:51:37]name=ofd_packets/00123140 [21:51:37]NVStorageSaveData ofd_packets/00123140 [21:51:37]File name is /storage/ofd_packets/00123140 [21:51:37]Write 301 bytes [21:51:37]NVStorageSaveData done [21:51:37]OFDSenderStorePacket done [21:51:37]KKMCreateOFDPacket done [21:51:37]NVStorageSaveData kkm_last_timestamp [21:51:37]File name is /storage/kkm_last_timestamp [21:51:37]Write 4 bytes [21:51:37]NVStorageSaveData done [21:51:37]ExternCall_PrintAddStr [21:51:37]wPrintStart [21:51:37]Write to MH i2c: 01 00 00 9E 44 E2 [21:51:37]Write i2c OK [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: 01 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: 01 07 00 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: 01 07 00 9E 44 00 00 00 00 00 FF 0F F7 [21:51:37]RasterBufferAndPrint [21:51:37]line Счет N : (1)717937 [21:51:37]line ИНН: 02508201610067 [21:51:37]line Контрольно-Кассовый Чек [21:51:37]line ПРОДАЖА [21:51:37]line ТРК (МРК, ГНК) : 22 [21:51:37]line Товар: 2710124130 [21:51:37]line Аи-92-К-4 [21:51:37]line 2.970 * 67.40 [21:51:37]line = 200.18 [21:51:37]line НДС 12% НСП 1% [21:51:37]line > о реализуемом товаре [21:51:37]line ИТОГО: 200.18 [21:51:37]line НСП 1% : 1.77 [21:51:37]line НДС 12% : 21.26 [21:51:37]line Наличными: 0.00 [21:51:37]line Безнал.: 200.18 [21:51:37]line Место: АЗС № 64 "Партнер Нефть" [21:51:37]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:51:37]line СНО: Общий режим [21:51:37]line Чек 181 25.11.2024 21:51 [21:51:37]line Смена: 556 ФФД: 1.0 [21:51:37]line ЗНМ: 0300000033 [21:51:37]line РНМ: 0000000000092681 [21:51:37]line Версия ККМ: 001 [21:51:37]line Платежная система: O! деньги [21:51:37]line ФМ: 0000000000874881 [21:51:37]line ФД: 123140 [21:51:37]line ФПД: 163975603974501 [21:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T215142&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123140&fm=163975603974501&tin=02508201610067®Number=0000000000092681&sum=20018 [21:51:37]OFD Sender: Processing packet 123140 [packets to send 7, broken 6] [21:51:37]ProducePacketName [21:51:37]name=ofd_packets/00123140 [21:51:37]OFD Sender: To server: pG, [21:51:37]CommunicateWithHost lk.salyk.kg:30040 [21:51:37]ConnectInit lk.salyk.kg [21:51:37]written 0, free lines is 4095 [21:51:37]Connected sock=10 [21: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 34 38 38 31 0F 01 00 00 87 EE 07 01 EB 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6E F1 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 04 E1 01 00 35 04 06 00 95 22 8B A0 71 65 96 0F 47 F8 1C FA 1E F8 [21:51:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 01 02 47 00 57 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 04 E1 01 00 F4 03 04 00 33 9D 44 67 B6 04 01 00 00 62 36 18 6A 5E A5 4B 37 [21:51:37]CommunicateWithHost err = 0 [21:51:37]CheckOFDResponse [21:51:37]1017 (14) - 77093643461234 [21:51:37]1041 (16) - 0000000000874881 [21:51:37]1040 (4) - 123140 [21:51:37]1012 (4) - 25.11.2024 15:52 [21:51:37]1206 (1) - 0 [21:51:37]OFD Sender: Remove packet 123140 [21:51:37]ProducePacketName [21:51:37]name=ofd_packets/00123140 [21:51:37]NVStorageDeleteData [21:51:37]Write to MH i2c: 01 00 00 C8 44 0C [21:51:37]Write i2c OK [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: 01 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: 01 07 00 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: 01 07 00 C8 44 00 00 00 00 00 62 0C 81 [21:51:37]RasterBufferAndPrint [21:51:37]line [21:51:37]line [21:51:37]line [21:51:37]line [21:51:37]line [21:51:37]written 0, free lines is 3175 [21:51:37]MH_Cut [21:51:37]Write to MH i2c: D1 01 00 CF 44 01 E5 [21:51:37]Write i2c OK [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: D1 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: D1 01 00 [21:51:37]MH_I2C_Read... [21:51:37]Read from MH i2c: D1 01 00 CF 44 00 E4 [21:51:37]Write to MH i2c: 01 00 00 D0 44 14 [21:51:37]Write i2c OK [21:51:37]MH_I2C_Read... [21:51:38]OFD Sender: No OFD packet to send [21:51:39]*** Cut start [21:51:39]*** Partial cut [21:51:39]*** CUTSNS_PIN = 1 [21:51:39]*** CUTSNS_PIN = 0 [21:51:39]*** Brake cut motor [21:51:39]Read from MH i2c: 01 [21:51:39]MH_I2C_Read... [21:51:39]*** Stop cut motor [21:51:39]*** Cut end [21:51:39]Read from MH i2c: 01 07 00 [21:51:39]MH_I2C_Read... [21:51:39]Read from MH i2c: 01 07 00 D0 44 00 00 00 00 00 FF 0F 29 [21:51:39]process_action close_receipt done [21:51:39]requested_data is exist [21:51:39]produce_requested_data [21:51:39]requested_item fm.sn is exist - process it [21:51:39]wFMCommunicate request_size=4 [21:51:39]MH_SAM_APDU [21:51:39]CAPDU: 80 11 00 00 [21:51:39]Write to MH i2c: E2 08 00 D1 44 80 11 00 00 00 00 00 00 8F [21:51:39]Write i2c OK [21:51:39]MH_I2C_Read... [21:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:39]Read from MH i2c: E2 [21:51:39]MH_I2C_Read... [21:51:39]Read from MH i2c: E2 17 00 [21:51:39]MH_I2C_Read... [21:51:39]Read from MH i2c: E2 17 00 D1 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E6 [21:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:51:39]wFMCommunicate OK [21:51:39]requested_item fd.num is exist - process it [21:51:39]SAM_PROTO_GetFieldsCounters [21:51:39]wFMCommunicate request_size=4 [21:51:39]MH_SAM_APDU [21:51:39]CAPDU: 80 13 00 00 [21:51:39]Write to MH i2c: E2 08 00 D2 44 80 13 00 00 00 00 00 00 92 [21:51:39]Write i2c OK [21:51:39]MH_I2C_Read... [21:51:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:40]Read from MH i2c: E2 [21:51:40]MH_I2C_Read... [21:51:40]Read from MH i2c: E2 62 00 [21:51:40]MH_I2C_Read... [21:51:40]Read from MH i2c: E2 62 00 D2 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 04 E1 01 00 0E 04 04 00 2C 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 EB [21:51:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 04 E1 01 00 0E 04 04 00 2C 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 [21:51:40]wFMCommunicate OK [21:51:40]SAM_PROTO_GetFieldsCounters done [21:51:40]requested_item shift.num is exist - process it [21:51:40]requested_item shift.opened is exist - process it [21:51:40]req_shift_opened [21:51:40]FM_GetShiftState [21:51:40]SAM_PROTO_GetShiftState [21:51:40]wFMCommunicate request_size=4 [21:51:40]MH_SAM_APDU [21:51:40]CAPDU: 80 13 01 00 [21:51:40]Write to MH i2c: E2 08 00 D3 44 80 13 01 00 00 00 00 00 94 [21:51:40]Write i2c OK [21:51:40]MH_I2C_Read... [21:51:40]Read from MH i2c: E2 [21:51:40]MH_I2C_Read... [21:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:40]Read from MH i2c: E2 0E 00 [21:51:40]MH_I2C_Read... [21:51:40]Read from MH i2c: E2 0E 00 D3 44 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 13 [21:51:40]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [21:51:40]wFMCommunicate OK [21:51:40]SAM_PROTO_GetShiftState done [21:51:40]FM_GetShiftState done [21:51:40]req_shift_opened done [21:51:40]requested_item shift.open_date is exist - process it [21:51:40]req_shift_open_date [21:51:40]req_shift_open_date done [21:51:40]produce_requested_data done [21:51:40]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123140,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [21:51:40]process_action_free close_receipt [21:51:40]json_value_free [21:51:40]json_value_free done [21:51:40]process_json_proto returns [21:51:40]Send response to host [21:51:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123140,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [21:51:40]free response buf [21:51:40]execute_script done [21:51:40]execute_script returns [21:51:40]free content buf [21:51:40]Sock 7.Close socket [21:51:40]Sock 7.Thread stoped [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:13]accept exits with 9 [22:31:13]New connection [22:31:13]New thread 3066580324 created [22:31:13]Thread 3066723684 joined [22:31:13]Waiting for new connection... [22:31:13] Sock 9.Parse request [22:31:13]Sock 9.Check first char [22:31:13]Sock 9.First char is OK [22:31:13]request: POST /json_proto HTTP/1.0 [22:31:13]Method: POST [22:31:13]URL: /json_proto [22:31:13]Method is POST - this is cgi request [22:31:13]url: /json_proto [22:31:13]query_string will be loaded in cgi processing [22:31:13]execute_cgi json_proto POST (null) [22:31:13]execute_cgi path=json_proto method=POST [22:31:13]POST find Content-Length [22:31:13]Host: 172.17.37.4:8080 [22:31:13]Content-Length: 686 [22:31:13]Content-Type: application/json [22:31:13] [22:31:13]POST finish read [22:31:13]Found Content-Length = 686 [22:31:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:13]execute_script... [22:31: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)717938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:13]POST & json_proto [22:31:13]process_json_proto [22:31:13]json parsed OK: [22:31:13]protocol is kg_v1.0 [22:31:13]action value=close_receipt [22:31:13]process_action close_receipt [22:31:13]cmd_close_receipt [22:31:13]MH_GetDate [22:31:13]Write to MH i2c: F0 00 00 D4 44 07 [22:31:13]Write i2c OK [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: F0 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: F0 09 00 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: F0 09 00 D4 44 00 B9 FA 44 67 B8 5A 43 67 2A [22:31:13]GetLastDocTimeStamp 1732571502 [22:31:13]current date 1732573881 [22:31:13]FM_GetShiftState [22:31:13]SAM_PROTO_GetShiftState [22:31:13]wFMCommunicate request_size=4 [22:31:13]MH_SAM_APDU [22:31:13]CAPDU: 80 13 01 00 [22:31:13]Write to MH i2c: E2 08 00 D5 44 80 13 01 00 00 00 00 00 96 [22:31:13]Write i2c OK [22:31:13]MH_I2C_Read... [22:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:13]Read from MH i2c: E2 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: E2 0E 00 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: E2 0E 00 D5 44 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 15 [22:31:13]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [22:31:13]wFMCommunicate OK [22:31:13]SAM_PROTO_GetShiftState done [22:31:13]FM_GetShiftState done [22:31:13]opened in 1732493066 [22:31:13]opened+sec_in_day 1732579466 [22:31:13]quantity*price = 100066 [22:31:13]sum+1 = 100067 [22:31:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 182 25.11.2024 22:31 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123141 ФПД: 21664375767000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T223121&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123141&fm=21664375767000&tin=02508201610067®Number=0000000000092681&sum=100000 [22:31:15]StoreToDocumentArchive [22:31:15]shift 556 fd 123141 [22:31:15]save to /storage/0556/doc_00123141 [22:31:15]save last doc name /storage/0556/doc_00123141 to /storage/kkm_last_doc_name [22:31:15]save OK [22:31:15]Clear old archive folders... [22:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:31:15]tlvbuf is 0213CDB0 [22:31:15]SAM_PROTO_ClearQueue [22:31:15]wFMCommunicate request_size=4 [22:31:15]MH_SAM_APDU [22:31:15]CAPDU: 80 09 00 00 [22:31:15]Write to MH i2c: E2 08 00 E2 44 80 09 00 00 00 00 00 00 98 [22:31:15]Write i2c OK [22:31:15]MH_I2C_Read... [22:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:31:15]Read from MH i2c: E2 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 03 00 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 03 00 E2 44 00 90 00 9A [22:31:15]RAPDU: 90 00 [22:31:15]wFMCommunicate OK [22:31:15]SAM_PROTO_ClearQueue done [22:31:15]KKMCreateOFDPacket [22:31:15]OFDProtocolAddRootSTLVToBuf [22:31:15]FM_MakeSignedData [22:31:15]FM_MakeSignedData [22:31:15]SAM_PROTO_SignData [22:31:15]wFMCommunicate request_size=4 [22:31:15]MH_SAM_APDU [22:31:15]CAPDU: 80 0D 01 02 [22:31:15]Write to MH i2c: E2 08 00 E3 44 80 0D 01 02 00 00 00 00 A0 [22:31:15]Write i2c OK [22:31:15]MH_I2C_Read... [22:31:15]OFD Sender: No OFD packet to send [22:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:31:15]Read from MH i2c: E2 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 03 00 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 03 00 E3 44 00 90 00 9B [22:31:15]RAPDU: 90 00 [22:31:15]wFMCommunicate OK [22:31:15]wFMCommunicate request_size=255 [22:31:15]MH_SAM_APDU [22:31:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 B9 FA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 05 E1 01 00 35 04 06 00 [22:31:15]Write to MH i2c: E2 02 01 E4 44 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 B9 FA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 05 E1 01 00 35 04 06 00 00 00 B0 [22:31:15]Write i2c OK [22:31:15]MH_I2C_Read... [22:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:15]Read from MH i2c: E2 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 03 00 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 03 00 E4 44 00 90 00 9C [22:31:15]RAPDU: 90 00 [22:31:15]wFMCommunicate OK [22:31:15]wFMCommunicate request_size=11 [22:31:15]MH_SAM_APDU [22:31:15]CAPDU: 80 0D 02 02 06 13 B4 21 6B FF D8 [22:31:15]Write to MH i2c: E2 0E 00 E5 44 80 0D 02 02 06 00 13 B4 21 6B FF D8 00 00 D9 [22:31:15]Write i2c OK [22:31:15]MH_I2C_Read... [22:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:15]Read from MH i2c: E2 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 03 00 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 03 00 E5 44 00 90 00 9D [22:31:15]RAPDU: 90 00 [22:31:15]wFMCommunicate OK [22:31:15]wFMCommunicate request_size=4 [22:31:15]MH_SAM_APDU [22:31:15]CAPDU: 80 0D 03 02 [22:31:15]Write to MH i2c: E2 08 00 E6 44 80 0D 03 02 00 00 00 00 A5 [22:31:15]Write i2c OK [22:31:15]MH_I2C_Read... [22:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:31:15]Read from MH i2c: E2 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 0B 00 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 0B 00 E6 44 00 B5 3B 43 A5 40 CC 7D D2 90 00 D9 [22:31:15]RAPDU: B5 3B 43 A5 40 CC 7D D2 90 00 [22:31:15]wFMCommunicate OK [22:31:15]SAM_PROTO_SignData done [22:31:15]FM_MakeSignedData done [22:31:15]CreateOFDProtocolMessage [22:31:15]wFMCommunicate request_size=4 [22:31:15]MH_SAM_APDU [22:31:15]CAPDU: 80 11 00 00 [22:31:15]Write to MH i2c: E2 08 00 E7 44 80 11 00 00 00 00 00 00 A5 [22:31:15]Write i2c OK [22:31:15]MH_I2C_Read... [22:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:15]Read from MH i2c: E2 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 17 00 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: E2 17 00 E7 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FC [22:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:31:15]wFMCommunicate OK [22:31:15]CreateOFDProtocolMessage done [22:31:15]OFDSenderStorePacket 123141 [22:31:15]StoreOFDPacket docnum=123141 [22:31:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 83 BB 08 01 FD D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 B9 FA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 05 E1 01 00 35 04 06 00 13 B4 21 6B FF D8 B5 3B 43 A5 40 CC 7D D2 [22:31:15]CheckFolder [22:31:15]dirname=/storage/ofd_packets [22:31:15]CheckFolder done [22:31:15]ProducePacketName [22:31:15]name=ofd_packets/00123141 [22:31:15]NVStorageSaveData ofd_packets/00123141 [22:31:15]File name is /storage/ofd_packets/00123141 [22:31:15]Write 302 bytes [22:31:15]NVStorageSaveData done [22:31:15]OFDSenderStorePacket done [22:31:15]KKMCreateOFDPacket done [22:31:15]NVStorageSaveData kkm_last_timestamp [22:31:15]File name is /storage/kkm_last_timestamp [22:31:15]Write 4 bytes [22:31:15]NVStorageSaveData done [22:31:15]ExternCall_PrintAddStr [22:31:15]wPrintStart [22:31:15]Write to MH i2c: 01 00 00 E8 44 2C [22:31:15]Write i2c OK [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: 01 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: 01 07 00 [22:31:15]MH_I2C_Read... [22:31:15]Read from MH i2c: 01 07 00 E8 44 00 00 00 00 00 FF 0F 41 [22:31:15]RasterBufferAndPrint [22:31:15]line Счет N : (1)717938 [22:31:15]line ИНН: 02508201610067 [22:31:15]line Контрольно-Кассовый Чек [22:31:15]line ПРОДАЖА [22:31:15]line ТРК (МРК, ГНК) : 5 [22:31:15]line Товар: 2710194210 [22:31:15]line ДТ(л)-К-5 [22:31:15]line 13.360 * 74.90 [22:31:15]line = 1000.66 [22:31:15]line НДС 12% НСП 1% [22:31:15]line > о реализуемом товаре [22:31:15]line ОКРУГЛЕНИЕ: -0.66 [22:31:15]line ИТОГО: 1000.00 [22:31:15]line Внесено: 1000.00 [22:31:15]line СДАЧА: 0.00 [22:31:15]line НСП 1% : 8.85 [22:31:15]line НДС 12% : 106.26 [22:31:15]line Наличными: 1000.00 [22:31:15]line Безнал.: 0.00 [22:31:15]line Место: АЗС № 64 "Партнер Нефть" [22:31:15]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [22:31:15]line СНО: Общий режим [22:31:15]line Чек 182 25.11.2024 22:31 [22:31:15]line Смена: 556 ФФД: 1.0 [22:31:15]line ЗНМ: 0300000033 [22:31:15]line РНМ: 0000000000092681 [22:31:15]line Версия ККМ: 001 [22:31:15]line ФМ: 0000000000874881 [22:31:15]line ФД: 123141 [22:31:15]line ФПД: 21664375767000 [22:31:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T223121&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123141&fm=21664375767000&tin=02508201610067®Number=0000000000092681&sum=100000 [22:31:15]written 0, free lines is 4095 [22:31:15]OFD Sender: Processing packet 123141 [packets to send 7, broken 6] [22:31:15]ProducePacketName [22:31:15]name=ofd_packets/00123141 [22:31:15]OFD Sender: To server: pG, [22:31:15]CommunicateWithHost lk.salyk.kg:30040 [22:31:15]ConnectInit lk.salyk.kg [22:31:15]Connected sock=10 [22:31:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 83 BB 08 01 FD D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 B9 FA 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 05 E1 01 00 35 04 06 00 13 B4 21 6B FF D8 B5 3B 43 A5 40 CC 7D D2 [22:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 11 4B 47 00 71 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 34 38 38 31 10 04 04 00 05 E1 01 00 F4 03 04 00 7D A6 44 67 B6 04 01 00 00 60 12 E8 CC 2A FF FA 51 [22:31:16]CommunicateWithHost err = 0 [22:31:16]CheckOFDResponse [22:31:16]1017 (14) - 77093643461234 [22:31:16]1041 (16) - 0000000000874881 [22:31:16]1040 (4) - 123141 [22:31:16]1012 (4) - 25.11.2024 16:31 [22:31:16]1206 (1) - 0 [22:31:16]OFD Sender: Remove packet 123141 [22:31:16]ProducePacketName [22:31:16]name=ofd_packets/00123141 [22:31:16]NVStorageDeleteData [22:31:16]Write to MH i2c: 01 00 00 13 45 58 [22:31:16]Write i2c OK [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 07 00 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 07 00 13 45 00 00 00 00 00 4A 0C B5 [22:31:16]RasterBufferAndPrint [22:31:16]line [22:31:16]line [22:31:16]line [22:31:16]line [22:31:16]line [22:31:16]written 0, free lines is 3151 [22:31:16]MH_Cut [22:31:16]Write to MH i2c: D1 01 00 1A 45 01 31 [22:31:16]Write i2c OK [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: D1 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: D1 01 00 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: D1 01 00 1A 45 00 30 [22:31:16]Write to MH i2c: 01 00 00 1B 45 60 [22:31:16]Write i2c OK [22:31:16]MH_I2C_Read... [22:31:16]OFD Sender: No OFD packet to send [22:31:17]*** Cut start [22:31:17]*** Partial cut [22:31:17]*** CUTSNS_PIN = 1 [22:31:17]*** CUTSNS_PIN = 0 [22:31:18]*** Brake cut motor [22:31:18]Read from MH i2c: 01 [22:31:18]MH_I2C_Read... [22:31:18]*** Stop cut motor [22:31:18]*** Cut end [22:31:18]Read from MH i2c: 01 07 00 [22:31:18]MH_I2C_Read... [22:31:18]Read from MH i2c: 01 07 00 1B 45 00 00 00 00 00 FF 0F 75 [22:31:18]process_action close_receipt done [22:31:18]requested_data is exist [22:31:18]produce_requested_data [22:31:18]requested_item fm.sn is exist - process it [22:31:18]wFMCommunicate request_size=4 [22:31:18]MH_SAM_APDU [22:31:18]CAPDU: 80 11 00 00 [22:31:18]Write to MH i2c: E2 08 00 1C 45 80 11 00 00 00 00 00 00 DB [22:31:18]Write i2c OK [22:31:18]MH_I2C_Read... [22:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:18]Read from MH i2c: E2 [22:31:18]MH_I2C_Read... [22:31:18]Read from MH i2c: E2 17 00 [22:31:18]MH_I2C_Read... [22:31:18]Read from MH i2c: E2 17 00 1C 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 32 [22:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:31:18]wFMCommunicate OK [22:31:18]requested_item fd.num is exist - process it [22:31:18]SAM_PROTO_GetFieldsCounters [22:31:18]wFMCommunicate request_size=4 [22:31:18]MH_SAM_APDU [22:31:18]CAPDU: 80 13 00 00 [22:31:18]Write to MH i2c: E2 08 00 1D 45 80 13 00 00 00 00 00 00 DE [22:31:18]Write i2c OK [22:31:18]MH_I2C_Read... [22:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:18]Read from MH i2c: E2 [22:31:18]MH_I2C_Read... [22:31:18]Read from MH i2c: E2 62 00 [22:31:18]MH_I2C_Read... [22:31:18]Read from MH i2c: E2 62 00 1D 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 05 E1 01 00 0E 04 04 00 2C 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 3B [22:31:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 05 E1 01 00 0E 04 04 00 2C 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 [22:31:18]wFMCommunicate OK [22:31:18]SAM_PROTO_GetFieldsCounters done [22:31:18]requested_item shift.num is exist - process it [22:31:18]requested_item shift.opened is exist - process it [22:31:18]req_shift_opened [22:31:18]FM_GetShiftState [22:31:18]SAM_PROTO_GetShiftState [22:31:18]wFMCommunicate request_size=4 [22:31:18]MH_SAM_APDU [22:31:18]CAPDU: 80 13 01 00 [22:31:18]Write to MH i2c: E2 08 00 1E 45 80 13 01 00 00 00 00 00 E0 [22:31:18]Write i2c OK [22:31:18]MH_I2C_Read... [22:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:18]Read from MH i2c: E2 [22:31:18]MH_I2C_Read... [22:31:18]Read from MH i2c: E2 0E 00 [22:31:18]MH_I2C_Read... [22:31:18]Read from MH i2c: E2 0E 00 1E 45 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 5F [22:31:18]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [22:31:18]wFMCommunicate OK [22:31:18]SAM_PROTO_GetShiftState done [22:31:18]FM_GetShiftState done [22:31:18]req_shift_opened done [22:31:18]requested_item shift.open_date is exist - process it [22:31:18]req_shift_open_date [22:31:18]req_shift_open_date done [22:31:18]produce_requested_data done [22:31:18]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123141,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [22:31:18]process_action_free close_receipt [22:31:18]json_value_free [22:31:18]json_value_free done [22:31:18]process_json_proto returns [22:31:18]Send response to host [22:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123141,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [22:31:18]free response buf [22:31:18]execute_script done [22:31:18]execute_script returns [22:31:18]free content buf [22:31:18]Sock 9.Close socket [22:31:18]Sock 9.Thread stoped [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:38:06]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:53]accept exits with 7 [22:40:53]New connection [22:40:53]New thread 3066723684 created [22:40:53]Thread 3066580324 joined [22:40:53]Waiting for new connection... [22:40:53] Sock 7.Parse request [22:40:53]Sock 7.Check first char [22:40:53]Sock 7.First char is OK [22:40:53]request: POST /json_proto HTTP/1.0 [22:40:53]Method: POST [22:40:53]URL: /json_proto [22:40:53]Method is POST - this is cgi request [22:40:53]url: /json_proto [22:40:53]query_string will be loaded in cgi processing [22:40:53]execute_cgi json_proto POST (null) [22:40:53]execute_cgi path=json_proto method=POST [22:40:53]POST find Content-Length [22:40:53]Host: 172.17.37.4:8080 [22:40:53]Content-Length: 677 [22:40:53]Content-Type: application/json [22:40:53] [22:40:53]POST finish read [22:40:53]Found Content-Length = 677 [22:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:53]execute_script... [22:40: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)717939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:53]POST & json_proto [22:40:53]process_json_proto [22:40:53]json parsed OK: [22:40:53]protocol is kg_v1.0 [22:40:53]action value=close_receipt [22:40:53]process_action close_receipt [22:40:53]cmd_close_receipt [22:40:53]MH_GetDate [22:40:53]Write to MH i2c: F0 00 00 1F 45 53 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: F0 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: F0 09 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: F0 09 00 1F 45 00 FD FC 44 67 B8 5A 43 67 BC [22:40:53]GetLastDocTimeStamp 1732573881 [22:40:53]current date 1732574461 [22:40:53]FM_GetShiftState [22:40:53]SAM_PROTO_GetShiftState [22:40:53]wFMCommunicate request_size=4 [22:40:53]MH_SAM_APDU [22:40:53]CAPDU: 80 13 01 00 [22:40:53]Write to MH i2c: E2 08 00 20 45 80 13 01 00 00 00 00 00 E2 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:53]Read from MH i2c: E2 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 0E 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 0E 00 20 45 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 61 [22:40:53]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [22:40:53]wFMCommunicate OK [22:40:53]SAM_PROTO_GetShiftState done [22:40:53]FM_GetShiftState done [22:40:53]opened in 1732493066 [22:40:53]opened+sec_in_day 1732579466 [22:40:53]quantity*price = 50065 [22:40:53]sum+1 = 50067 [22:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 183 25.11.2024 22:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123142 ФПД: 8938209631069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T224101&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123142&fm=8938209631069&tin=02508201610067®Number=0000000000092681&sum=50000 [22:40:55]StoreToDocumentArchive [22:40:55]shift 556 fd 123142 [22:40:55]save to /storage/0556/doc_00123142 [22:40:55]save last doc name /storage/0556/doc_00123142 to /storage/kkm_last_doc_name [22:40:55]save OK [22:40:55]Clear old archive folders... [22:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:55]tlvbuf is B6EA2B00 [22:40:55]SAM_PROTO_ClearQueue [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 09 00 00 [22:40:55]Write to MH i2c: E2 08 00 2D 45 80 09 00 00 00 00 00 00 E4 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 2D 45 00 90 00 E6 [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]SAM_PROTO_ClearQueue done [22:40:55]KKMCreateOFDPacket [22:40:55]OFDProtocolAddRootSTLVToBuf [22:40:55]FM_MakeSignedData [22:40:55]FM_MakeSignedData [22:40:55]SAM_PROTO_SignData [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 01 02 [22:40:55]Write to MH i2c: E2 08 00 2E 45 80 0D 01 02 00 00 00 00 EC [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 2E 45 00 90 00 E7 [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]wFMCommunicate request_size=255 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FD FC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 06 E1 01 00 35 04 06 00 08 [22:40:55]Write to MH i2c: E2 02 01 2F 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FD FC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 06 E1 01 00 35 04 06 00 08 00 00 22 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 2F 45 00 90 00 E8 [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]wFMCommunicate request_size=10 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 02 02 05 21 16 CF 5B 5D [22:40:55]Write to MH i2c: E2 0D 00 30 45 80 0D 02 02 05 00 21 16 CF 5B 5D 00 00 B7 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 30 45 00 90 00 E9 [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 03 02 [22:40:55]Write to MH i2c: E2 08 00 31 45 80 0D 03 02 00 00 00 00 F1 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 0B 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 0B 00 31 45 00 93 84 57 E8 28 A2 15 5D 90 00 84 [22:40:55]RAPDU: 93 84 57 E8 28 A2 15 5D 90 00 [22:40:55]wFMCommunicate OK [22:40:55]SAM_PROTO_SignData done [22:40:55]FM_MakeSignedData done [22:40:55]CreateOFDProtocolMessage [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 11 00 00 [22:40:55]Write to MH i2c: E2 08 00 32 45 80 11 00 00 00 00 00 00 F1 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 17 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 17 00 32 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 48 [22:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:40:55]wFMCommunicate OK [22:40:55]CreateOFDProtocolMessage done [22:40:55]OFDSenderStorePacket 123142 [22:40:55]StoreOFDPacket docnum=123142 [22:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D5 F1 07 01 D6 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FD FC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 06 E1 01 00 35 04 06 00 08 21 16 CF 5B 5D 93 84 57 E8 28 A2 15 5D [22:40:55]CheckFolder [22:40:55]dirname=/storage/ofd_packets [22:40:55]CheckFolder done [22:40:55]ProducePacketName [22:40:55]name=ofd_packets/00123142 [22:40:55]NVStorageSaveData ofd_packets/00123142 [22:40:55]File name is /storage/ofd_packets/00123142 [22:40:55]Write 301 bytes [22:40:55]NVStorageSaveData done [22:40:55]OFDSenderStorePacket done [22:40:55]KKMCreateOFDPacket done [22:40:55]NVStorageSaveData kkm_last_timestamp [22:40:55]File name is /storage/kkm_last_timestamp [22:40:55]Write 4 bytes [22:40:55]NVStorageSaveData done [22:40:55]ExternCall_PrintAddStr [22:40:55]wPrintStart [22:40:55]Write to MH i2c: 01 00 00 33 45 78 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 07 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 07 00 33 45 00 00 00 00 00 FF 0F 8D [22:40:55]RasterBufferAndPrint [22:40:55]line Счет N : (1)717939 [22:40:55]line ИНН: 02508201610067 [22:40:55]line Контрольно-Кассовый Чек [22:40:55]line ПРОДАЖА [22:40:55]line ТРК (МРК, ГНК) : 11 [22:40:55]line Товар: 2710124500 [22:40:55]line Аи-95-К-5 [22:40:55]line 6.640 * 75.40 [22:40:55]line = 500.66 [22:40:55]line НДС 12% НСП 1% [22:40:55]line > о реализуемом товаре [22:40:55]line ОКРУГЛЕНИЕ: -0.66 [22:40:55]line ИТОГО: 500.00 [22:40:55]line Внесено: 500.00 [22:40:55]line СДАЧА: 0.00 [22:40:55]line НСП 1% : 4.43 [22:40:55]line НДС 12% : 53.17 [22:40:55]line Наличными: 500.00 [22:40:55]line Безнал.: 0.00 [22:40:55]line Место: АЗС № 64 "Партнер Нефть" [22:40:55]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [22:40:55]line СНО: Общий режим [22:40:55]line Чек 183 25.11.2024 22:41 [22:40:55]line Смена: 556 ФФД: 1.0 [22:40:55]line ЗНМ: 0300000033 [22:40:55]line РНМ: 0000000000092681 [22:40:55]line Версия ККМ: 001 [22:40:55]line ФМ: 0000000000874881 [22:40:55]line ФД: 123142 [22:40:55]line ФПД: 8938209631069 [22:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T224101&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123142&fm=8938209631069&tin=02508201610067®Number=0000000000092681&sum=50000 [22:40:55]OFD Sender: Processing packet 123142 [packets to send 7, broken 6] [22:40:55]ProducePacketName [22:40:55]name=ofd_packets/00123142 [22:40:55]OFD Sender: To server: pG, [22:40:55]CommunicateWithHost lk.salyk.kg:30040 [22:40:55]ConnectInit lk.salyk.kg [22:40:55]written 0, free lines is 4095 [22:40:55]Connected sock=10 [22:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D5 F1 07 01 D6 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FD FC 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 06 E1 01 00 35 04 06 00 08 21 16 CF 5B 5D 93 84 57 E8 28 A2 15 5D [22:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D4 90 47 00 B7 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 06 E1 01 00 F4 03 04 00 C1 A8 44 67 B6 04 01 00 00 AA 75 E4 75 1C 4B 61 0F [22:40:56]CommunicateWithHost err = 0 [22:40:56]CheckOFDResponse [22:40:56]1017 (14) - 77093643461234 [22:40:56]1041 (16) - 0000000000874881 [22:40:56]1040 (4) - 123142 [22:40:56]1012 (4) - 25.11.2024 16:41 [22:40:56]1206 (1) - 0 [22:40:56]OFD Sender: Remove packet 123142 [22:40:56]ProducePacketName [22:40:56]name=ofd_packets/00123142 [22:40:56]NVStorageDeleteData [22:40:56]Write to MH i2c: 01 00 00 5E 45 A3 [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 07 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 07 00 5E 45 00 00 00 00 00 4B 0C 01 [22:40:56]RasterBufferAndPrint [22:40:56]line [22:40:56]line [22:40:56]line [22:40:56]line [22:40:56]line [22:40:56]written 0, free lines is 3151 [22:40:56]MH_Cut [22:40:56]Write to MH i2c: D1 01 00 65 45 01 7C [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: D1 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: D1 01 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: D1 01 00 65 45 00 7B [22:40:56]Write to MH i2c: 01 00 00 66 45 AB [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]OFD Sender: No OFD packet to send [22:40:57]*** Cut start [22:40:57]*** Partial cut [22:40:57]*** CUTSNS_PIN = 1 [22:40:57]*** CUTSNS_PIN = 0 [22:40:57]*** Brake cut motor [22:40:58]Read from MH i2c: 01 [22:40:58]MH_I2C_Read... [22:40:58]*** Stop cut motor [22:40:58]*** Cut end [22:40:58]Read from MH i2c: 01 07 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: 01 07 00 66 45 00 00 00 00 00 FF 0F C0 [22:40:58]process_action close_receipt done [22:40:58]requested_data is exist [22:40:58]produce_requested_data [22:40:58]requested_item fm.sn is exist - process it [22:40:58]wFMCommunicate request_size=4 [22:40:58]MH_SAM_APDU [22:40:58]CAPDU: 80 11 00 00 [22:40:58]Write to MH i2c: E2 08 00 67 45 80 11 00 00 00 00 00 00 26 [22:40:58]Write i2c OK [22:40:58]MH_I2C_Read... [22:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 17 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 17 00 67 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7D [22:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:40:58]wFMCommunicate OK [22:40:58]requested_item fd.num is exist - process it [22:40:58]SAM_PROTO_GetFieldsCounters [22:40:58]wFMCommunicate request_size=4 [22:40:58]MH_SAM_APDU [22:40:58]CAPDU: 80 13 00 00 [22:40:58]Write to MH i2c: E2 08 00 68 45 80 13 00 00 00 00 00 00 29 [22:40:58]Write i2c OK [22:40:58]MH_I2C_Read... [22:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 62 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 62 00 68 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 06 E1 01 00 0E 04 04 00 2C 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 8A [22:40:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 06 E1 01 00 0E 04 04 00 2C 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 [22:40:58]wFMCommunicate OK [22:40:58]SAM_PROTO_GetFieldsCounters done [22:40:58]requested_item shift.num is exist - process it [22:40:58]requested_item shift.opened is exist - process it [22:40:58]req_shift_opened [22:40:58]FM_GetShiftState [22:40:58]SAM_PROTO_GetShiftState [22:40:58]wFMCommunicate request_size=4 [22:40:58]MH_SAM_APDU [22:40:58]CAPDU: 80 13 01 00 [22:40:58]Write to MH i2c: E2 08 00 69 45 80 13 01 00 00 00 00 00 2B [22:40:58]Write i2c OK [22:40:58]MH_I2C_Read... [22:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 0E 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 0E 00 69 45 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 AA [22:40:58]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [22:40:58]wFMCommunicate OK [22:40:58]SAM_PROTO_GetShiftState done [22:40:58]FM_GetShiftState done [22:40:58]req_shift_opened done [22:40:58]requested_item shift.open_date is exist - process it [22:40:58]req_shift_open_date [22:40:58]req_shift_open_date done [22:40:58]produce_requested_data done [22:40:58]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123142,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [22:40:58]process_action_free close_receipt [22:40:58]json_value_free [22:40:58]json_value_free done [22:40:58]process_json_proto returns [22:40:58]Send response to host [22:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123142,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [22:40:58]free response buf [22:40:58]execute_script done [22:40:58]execute_script returns [22:40:58]free content buf [22:40:58]Sock 7.Close socket [22:40:58]Sock 7.Thread stoped [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:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:42:59]accept exits with 9 [22:42:59]New connection [22:42:59]New thread 3066580324 created [22:42:59]Thread 3066723684 joined [22:42:59]Waiting for new connection... [22:42:59] Sock 9.Parse request [22:42:59]Sock 9.Check first char [22:42:59]Sock 9.First char is OK [22:42:59]request: POST /json_proto HTTP/1.0 [22:42:59]Method: POST [22:42:59]URL: /json_proto [22:42:59]Method is POST - this is cgi request [22:42:59]url: /json_proto [22:42:59]query_string will be loaded in cgi processing [22:42:59]execute_cgi json_proto POST (null) [22:42:59]execute_cgi path=json_proto method=POST [22:42:59]POST find Content-Length [22:42:59]Host: 172.17.37.4:8080 [22:42:59]Content-Length: 681 [22:42:59]Content-Type: application/json [22:42:59] [22:42:59]POST finish read [22:42:59]Found Content-Length = 681 [22:42:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:59]execute_script... [22:42: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)717940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:59]POST & json_proto [22:42:59]process_json_proto [22:42:59]json parsed OK: [22:42:59]protocol is kg_v1.0 [22:42:59]action value=close_receipt [22:42:59]process_action close_receipt [22:42:59]cmd_close_receipt [22:42:59]MH_GetDate [22:42:59]Write to MH i2c: F0 00 00 6A 45 9E [22:42:59]Write i2c OK [22:42:59]MH_I2C_Read... [22:42:59]Read from MH i2c: F0 [22:42:59]MH_I2C_Read... [22:42:59]Read from MH i2c: F0 09 00 [22:42:59]MH_I2C_Read... [22:42:59]Read from MH i2c: F0 09 00 6A 45 00 7B FD 44 67 B8 5A 43 67 86 [22:42:59]GetLastDocTimeStamp 1732574461 [22:42:59]current date 1732574587 [22:42:59]FM_GetShiftState [22:42:59]SAM_PROTO_GetShiftState [22:42:59]wFMCommunicate request_size=4 [22:42:59]MH_SAM_APDU [22:42:59]CAPDU: 80 13 01 00 [22:42:59]Write to MH i2c: E2 08 00 6B 45 80 13 01 00 00 00 00 00 2D [22:42:59]Write i2c OK [22:42:59]MH_I2C_Read... [22:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:59]Read from MH i2c: E2 [22:42:59]MH_I2C_Read... [22:42:59]Read from MH i2c: E2 0E 00 [22:42:59]MH_I2C_Read... [22:42:59]Read from MH i2c: E2 0E 00 6B 45 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 AC [22:42:59]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [22:42:59]wFMCommunicate OK [22:42:59]SAM_PROTO_GetShiftState done [22:42:59]FM_GetShiftState done [22:42:59]opened in 1732493066 [22:42:59]opened+sec_in_day 1732579466 [22:42:59]quantity*price = 50033 [22:42:59]sum+1 = 50034 [22:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 184 25.11.2024 22:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123143 ФПД: 203057034748115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T224307&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123143&fm=203057034748115&tin=02508201610067®Number=0000000000092681&sum=50000 [22:43:01]StoreToDocumentArchive [22:43:01]shift 556 fd 123143 [22:43:01]save to /storage/0556/doc_00123143 [22:43:01]save last doc name /storage/0556/doc_00123143 to /storage/kkm_last_doc_name [22:43:01]save OK [22:43:01]Clear old archive folders... [22:43:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:43:01]tlvbuf is B6D70880 [22:43:01]SAM_PROTO_ClearQueue [22:43:01]wFMCommunicate request_size=4 [22:43:01]MH_SAM_APDU [22:43:01]CAPDU: 80 09 00 00 [22:43:01]Write to MH i2c: E2 08 00 78 45 80 09 00 00 00 00 00 00 2F [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:01]Read from MH i2c: E2 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 03 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 03 00 78 45 00 90 00 31 [22:43:01]RAPDU: 90 00 [22:43:01]wFMCommunicate OK [22:43:01]SAM_PROTO_ClearQueue done [22:43:01]KKMCreateOFDPacket [22:43:01]OFDProtocolAddRootSTLVToBuf [22:43:01]FM_MakeSignedData [22:43:01]FM_MakeSignedData [22:43:01]SAM_PROTO_SignData [22:43:01]wFMCommunicate request_size=4 [22:43:01]MH_SAM_APDU [22:43:01]CAPDU: 80 0D 01 02 [22:43:01]Write to MH i2c: E2 08 00 79 45 80 0D 01 02 00 00 00 00 37 [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:01]Read from MH i2c: E2 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 03 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 03 00 79 45 00 90 00 32 [22:43:01]RAPDU: 90 00 [22:43:01]wFMCommunicate OK [22:43:01]wFMCommunicate request_size=255 [22:43:01]MH_SAM_APDU [22:43:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 7B FD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 07 E1 01 00 35 04 06 00 [22:43:01]Write to MH i2c: E2 02 01 7A 45 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 7B FD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 07 E1 01 00 35 04 06 00 00 00 EF [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:01]Read from MH i2c: E2 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 03 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 03 00 7A 45 00 90 00 33 [22:43:01]RAPDU: 90 00 [22:43:01]wFMCommunicate OK [22:43:01]wFMCommunicate request_size=11 [22:43:01]MH_SAM_APDU [22:43:01]CAPDU: 80 0D 02 02 06 B8 AD E6 6C E0 D3 [22:43:01]Write to MH i2c: E2 0E 00 7B 45 80 0D 02 02 06 00 B8 AD E6 6C E0 D3 00 00 B0 [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:01]Read from MH i2c: E2 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 03 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 03 00 7B 45 00 90 00 34 [22:43:01]RAPDU: 90 00 [22:43:01]wFMCommunicate OK [22:43:01]wFMCommunicate request_size=4 [22:43:01]MH_SAM_APDU [22:43:01]CAPDU: 80 0D 03 02 [22:43:01]Write to MH i2c: E2 08 00 7C 45 80 0D 03 02 00 00 00 00 3C [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:01]Read from MH i2c: E2 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 0B 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 0B 00 7C 45 00 3A F9 CF D0 A6 31 9D 05 90 00 88 [22:43:01]RAPDU: 3A F9 CF D0 A6 31 9D 05 90 00 [22:43:01]wFMCommunicate OK [22:43:01]SAM_PROTO_SignData done [22:43:01]FM_MakeSignedData done [22:43:01]CreateOFDProtocolMessage [22:43:01]wFMCommunicate request_size=4 [22:43:01]MH_SAM_APDU [22:43:01]CAPDU: 80 11 00 00 [22:43:01]Write to MH i2c: E2 08 00 7D 45 80 11 00 00 00 00 00 00 3C [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:01]Read from MH i2c: E2 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 17 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 17 00 7D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 93 [22:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:43:01]wFMCommunicate OK [22:43:01]CreateOFDProtocolMessage done [22:43:01]OFDSenderStorePacket 123143 [22:43:01]StoreOFDPacket docnum=123143 [22:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 62 14 08 01 8E D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 7B FD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 07 E1 01 00 35 04 06 00 B8 AD E6 6C E0 D3 3A F9 CF D0 A6 31 9D 05 [22:43:01]CheckFolder [22:43:01]dirname=/storage/ofd_packets [22:43:01]CheckFolder done [22:43:01]ProducePacketName [22:43:01]name=ofd_packets/00123143 [22:43:01]NVStorageSaveData ofd_packets/00123143 [22:43:01]File name is /storage/ofd_packets/00123143 [22:43:01]Write 302 bytes [22:43:01]NVStorageSaveData done [22:43:01]OFDSenderStorePacket done [22:43:01]KKMCreateOFDPacket done [22:43:01]NVStorageSaveData kkm_last_timestamp [22:43:01]File name is /storage/kkm_last_timestamp [22:43:01]Write 4 bytes [22:43:01]NVStorageSaveData done [22:43:01]ExternCall_PrintAddStr [22:43:01]wPrintStart [22:43:01]Write to MH i2c: 01 00 00 7E 45 C3 [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: 01 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: 01 07 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: 01 07 00 7E 45 00 00 00 00 00 FF 0F D8 [22:43:01]RasterBufferAndPrint [22:43:01]line Счет N : (1)717940 [22:43:01]line ИНН: 02508201610067 [22:43:01]line Контрольно-Кассовый Чек [22:43:01]line ПРОДАЖА [22:43:01]line ТРК (МРК, ГНК) : 6 [22:43:01]line Товар: 2710194210 [22:43:01]line ДТ(л)-К-5 [22:43:01]line 6.680 * 74.90 [22:43:01]line = 500.33 [22:43:01]line НДС 12% НСП 1% [22:43:01]line > о реализуемом товаре [22:43:01]line ОКРУГЛЕНИЕ: -0.33 [22:43:01]line ИТОГО: 500.00 [22:43:01]line Внесено: 500.00 [22:43:01]line СДАЧА: 0.00 [22:43:01]line НСП 1% : 4.43 [22:43:01]line НДС 12% : 53.13 [22:43:01]line Наличными: 500.00 [22:43:01]line Безнал.: 0.00 [22:43:01]line Место: АЗС № 64 "Партнер Нефть" [22:43:01]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [22:43:01]line СНО: Общий режим [22:43:01]line Чек 184 25.11.2024 22:43 [22:43:01]line Смена: 556 ФФД: 1.0 [22:43:01]line ЗНМ: 0300000033 [22:43:01]line РНМ: 0000000000092681 [22:43:01]line Версия ККМ: 001 [22:43:01]line ФМ: 0000000000874881 [22:43:01]line ФД: 123143 [22:43:01]line ФПД: 203057034748115 [22:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T224307&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123143&fm=203057034748115&tin=02508201610067®Number=0000000000092681&sum=50000 [22:43:01]OFD Sender: Processing packet 123143 [packets to send 7, broken 6] [22:43:01]ProducePacketName [22:43:01]name=ofd_packets/00123143 [22:43:01]OFD Sender: To server: pG, [22:43:01]CommunicateWithHost lk.salyk.kg:30040 [22:43:01]ConnectInit lk.salyk.kg [22:43:01]written 0, free lines is 4095 [22:43:01]Connected sock=11 [22:43:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 62 14 08 01 8E D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 7B FD 44 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 07 E1 01 00 35 04 06 00 B8 AD E6 6C E0 D3 3A F9 CF D0 A6 31 9D 05 [22:43:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 47 CC 47 00 62 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 07 E1 01 00 F4 03 04 00 3F A9 44 67 B6 04 01 00 00 01 EF A1 58 7F D7 28 68 [22:43:02]CommunicateWithHost err = 0 [22:43:02]CheckOFDResponse [22:43:02]1017 (14) - 77093643461234 [22:43:02]1041 (16) - 0000000000874881 [22:43:02]1040 (4) - 123143 [22:43:02]1012 (4) - 25.11.2024 16:43 [22:43:02]1206 (1) - 0 [22:43:02]OFD Sender: Remove packet 123143 [22:43:02]ProducePacketName [22:43:02]name=ofd_packets/00123143 [22:43:02]NVStorageDeleteData [22:43:02]Write to MH i2c: 01 00 00 A9 45 EE [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: 01 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: 01 07 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: 01 07 00 A9 45 00 00 00 00 00 47 0C 48 [22:43:02]RasterBufferAndPrint [22:43:02]line [22:43:02]line [22:43:02]line [22:43:02]line [22:43:02]line [22:43:02]written 0, free lines is 3146 [22:43:02]MH_Cut [22:43:02]Write to MH i2c: D1 01 00 B0 45 01 C7 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: D1 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: D1 01 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: D1 01 00 B0 45 00 C6 [22:43:02]Write to MH i2c: 01 00 00 B1 45 F6 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]OFD Sender: No OFD packet to send [22:43:03]*** Cut start [22:43:03]*** Partial cut [22:43:03]*** CUTSNS_PIN = 1 [22:43:03]*** CUTSNS_PIN = 0 [22:43:03]*** Brake cut motor [22:43:04]Read from MH i2c: 01 [22:43:04]MH_I2C_Read... [22:43:04]*** Stop cut motor [22:43:04]*** Cut end [22:43:04]Read from MH i2c: 01 07 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: 01 07 00 B1 45 00 00 00 00 00 FF 0F 0B [22:43:04]process_action close_receipt done [22:43:04]requested_data is exist [22:43:04]produce_requested_data [22:43:04]requested_item fm.sn is exist - process it [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 11 00 00 [22:43:04]Write to MH i2c: E2 08 00 B2 45 80 11 00 00 00 00 00 00 71 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 B2 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C8 [22:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:43:04]wFMCommunicate OK [22:43:04]requested_item fd.num is exist - process it [22:43:04]SAM_PROTO_GetFieldsCounters [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 13 00 00 [22:43:04]Write to MH i2c: E2 08 00 B3 45 80 13 00 00 00 00 00 00 74 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 62 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 62 00 B3 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 07 E1 01 00 0E 04 04 00 2C 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 D9 [22:43:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 07 E1 01 00 0E 04 04 00 2C 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 [22:43:04]wFMCommunicate OK [22:43:04]SAM_PROTO_GetFieldsCounters done [22:43:04]requested_item shift.num is exist - process it [22:43:04]requested_item shift.opened is exist - process it [22:43:04]req_shift_opened [22:43:04]FM_GetShiftState [22:43:04]SAM_PROTO_GetShiftState [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 13 01 00 [22:43:04]Write to MH i2c: E2 08 00 B4 45 80 13 01 00 00 00 00 00 76 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 0E 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 0E 00 B4 45 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F5 [22:43:04]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [22:43:04]wFMCommunicate OK [22:43:04]SAM_PROTO_GetShiftState done [22:43:04]FM_GetShiftState done [22:43:04]req_shift_opened done [22:43:04]requested_item shift.open_date is exist - process it [22:43:04]req_shift_open_date [22:43:04]req_shift_open_date done [22:43:04]produce_requested_data done [22:43:04]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123143,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [22:43:04]process_action_free close_receipt [22:43:04]json_value_free [22:43:04]json_value_free done [22:43:04]process_json_proto returns [22:43:04]Send response to host [22:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123143,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [22:43:04]free response buf [22:43:04]execute_script done [22:43:04]execute_script returns [22:43:04]free content buf [22:43:04]Sock 9.Close socket [22:43:04]Sock 9.Thread stoped [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:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:57]accept exits with 7 [23:16:57]New connection [23:16:57]New thread 3066723684 created [23:16:57]Thread 3066580324 joined [23:16:57]Waiting for new connection... [23:16:57] Sock 7.Parse request [23:16:57]Sock 7.Check first char [23:16:57]Sock 7.First char is OK [23:16:57]request: POST /json_proto HTTP/1.0 [23:16:57]Method: POST [23:16:57]URL: /json_proto [23:16:57]Method is POST - this is cgi request [23:16:57]url: /json_proto [23:16:57]query_string will be loaded in cgi processing [23:16:57]execute_cgi json_proto POST (null) [23:16:57]execute_cgi path=json_proto method=POST [23:16:57]POST find Content-Length [23:16:57]Host: 172.17.37.4:8080 [23:16:57]Content-Length: 800 [23:16:57]Content-Type: application/json [23:16:57] [23:16:57]POST finish read [23:16:57]Found Content-Length = 800 [23:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:57]execute_script... [23:16: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)717941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:57]POST & json_proto [23:16:57]process_json_proto [23:16:57]json parsed OK: [23:16:57]protocol is kg_v1.0 [23:16:57]action value=close_receipt [23:16:57]process_action close_receipt [23:16:57]cmd_close_receipt [23:16:57]MH_GetDate [23:16:57]Write to MH i2c: F0 00 00 B5 45 E9 [23:16:57]Write i2c OK [23:16:57]MH_I2C_Read... [23:16:57]Read from MH i2c: F0 [23:16:57]MH_I2C_Read... [23:16:57]Read from MH i2c: F0 09 00 [23:16:57]MH_I2C_Read... [23:16:57]Read from MH i2c: F0 09 00 B5 45 00 70 05 45 67 B8 5A 43 67 CF [23:16:57]GetLastDocTimeStamp 1732574587 [23:16:57]current date 1732576624 [23:16:57]FM_GetShiftState [23:16:57]SAM_PROTO_GetShiftState [23:16:57]wFMCommunicate request_size=4 [23:16:57]MH_SAM_APDU [23:16:57]CAPDU: 80 13 01 00 [23:16:57]Write to MH i2c: E2 08 00 B6 45 80 13 01 00 00 00 00 00 78 [23:16:57]Write i2c OK [23:16:57]MH_I2C_Read... [23:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:57]Read from MH i2c: E2 [23:16:57]MH_I2C_Read... [23:16:57]Read from MH i2c: E2 0E 00 [23:16:57]MH_I2C_Read... [23:16:57]Read from MH i2c: E2 0E 00 B6 45 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 F7 [23:16:57]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [23:16:57]wFMCommunicate OK [23:16:57]SAM_PROTO_GetShiftState done [23:16:57]FM_GetShiftState done [23:16:57]opened in 1732493066 [23:16:57]opened+sec_in_day 1732579466 [23:16:57]quantity*price = 20017 [23:16:57]sum+1 = 20019 [23:16:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.18 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.18 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 185 25.11.2024 23:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123144 ФПД: 193179172893122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T231704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123144&fm=193179172893122&tin=02508201610067®Number=0000000000092681&sum=20018 [23:16:58]StoreToDocumentArchive [23:16:58]shift 556 fd 123144 [23:16:58]save to /storage/0556/doc_00123144 [23:16:58]save last doc name /storage/0556/doc_00123144 to /storage/kkm_last_doc_name [23:16:58]save OK [23:16:58]Clear old archive folders... [23:16:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:58]tlvbuf is B6F20230 [23:16:58]SAM_PROTO_ClearQueue [23:16:58]wFMCommunicate request_size=4 [23:16:58]MH_SAM_APDU [23:16:58]CAPDU: 80 09 00 00 [23:16:58]Write to MH i2c: E2 08 00 C3 45 80 09 00 00 00 00 00 00 7A [23:16:58]Write i2c OK [23:16:58]MH_I2C_Read... [23:16:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:58]Read from MH i2c: E2 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 03 00 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 03 00 C3 45 00 90 00 7C [23:16:58]RAPDU: 90 00 [23:16:58]wFMCommunicate OK [23:16:58]SAM_PROTO_ClearQueue done [23:16:58]KKMCreateOFDPacket [23:16:58]OFDProtocolAddRootSTLVToBuf [23:16:58]FM_MakeSignedData [23:16:58]FM_MakeSignedData [23:16:58]SAM_PROTO_SignData [23:16:58]wFMCommunicate request_size=4 [23:16:58]MH_SAM_APDU [23:16:58]CAPDU: 80 0D 01 02 [23:16:58]Write to MH i2c: E2 08 00 C4 45 80 0D 01 02 00 00 00 00 82 [23:16:58]Write i2c OK [23:16:58]MH_I2C_Read... [23:16:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:58]Read from MH i2c: E2 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 03 00 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 03 00 C4 45 00 90 00 7D [23:16:58]RAPDU: 90 00 [23:16:58]wFMCommunicate OK [23:16:58]wFMCommunicate request_size=255 [23:16:58]MH_SAM_APDU [23:16:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 70 05 45 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 08 E1 01 00 35 04 06 00 AF [23:16:58]Write to MH i2c: E2 02 01 C5 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 70 05 45 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 08 E1 01 00 35 04 06 00 AF 00 00 CB [23:16:58]Write i2c OK [23:16:58]MH_I2C_Read... [23:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:58]Read from MH i2c: E2 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 03 00 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 03 00 C5 45 00 90 00 7E [23:16:58]RAPDU: 90 00 [23:16:58]wFMCommunicate OK [23:16:58]wFMCommunicate request_size=10 [23:16:58]MH_SAM_APDU [23:16:58]CAPDU: 80 0D 02 02 05 B2 07 FA 71 C2 [23:16:58]Write to MH i2c: E2 0D 00 C6 45 80 0D 02 02 05 00 B2 07 FA 71 C2 00 00 75 [23:16:58]Write i2c OK [23:16:58]MH_I2C_Read... [23:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:58]Read from MH i2c: E2 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 03 00 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 03 00 C6 45 00 90 00 7F [23:16:58]RAPDU: 90 00 [23:16:58]wFMCommunicate OK [23:16:58]wFMCommunicate request_size=4 [23:16:58]MH_SAM_APDU [23:16:58]CAPDU: 80 0D 03 02 [23:16:58]Write to MH i2c: E2 08 00 C7 45 80 0D 03 02 00 00 00 00 87 [23:16:58]Write i2c OK [23:16:58]MH_I2C_Read... [23:16:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:58]Read from MH i2c: E2 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 0B 00 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 0B 00 C7 45 00 AF 9F 10 74 13 0A 5D DC 90 00 B0 [23:16:58]RAPDU: AF 9F 10 74 13 0A 5D DC 90 00 [23:16:58]wFMCommunicate OK [23:16:58]SAM_PROTO_SignData done [23:16:58]FM_MakeSignedData done [23:16:58]CreateOFDProtocolMessage [23:16:58]wFMCommunicate request_size=4 [23:16:58]MH_SAM_APDU [23:16:58]CAPDU: 80 11 00 00 [23:16:58]Write to MH i2c: E2 08 00 C8 45 80 11 00 00 00 00 00 00 87 [23:16:58]Write i2c OK [23:16:58]MH_I2C_Read... [23:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:58]Read from MH i2c: E2 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 17 00 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: E2 17 00 C8 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DE [23:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:16:58]wFMCommunicate OK [23:16:58]CreateOFDProtocolMessage done [23:16:58]OFDSenderStorePacket 123144 [23:16:58]StoreOFDPacket docnum=123144 [23:16:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FF D2 07 01 91 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 70 05 45 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 08 E1 01 00 35 04 06 00 AF B2 07 FA 71 C2 AF 9F 10 74 13 0A 5D DC [23:16:58]CheckFolder [23:16:58]dirname=/storage/ofd_packets [23:16:58]CheckFolder done [23:16:58]ProducePacketName [23:16:58]name=ofd_packets/00123144 [23:16:58]NVStorageSaveData ofd_packets/00123144 [23:16:58]File name is /storage/ofd_packets/00123144 [23:16:58]Write 301 bytes [23:16:58]NVStorageSaveData done [23:16:58]OFDSenderStorePacket done [23:16:58]KKMCreateOFDPacket done [23:16:58]NVStorageSaveData kkm_last_timestamp [23:16:58]File name is /storage/kkm_last_timestamp [23:16:58]Write 4 bytes [23:16:58]NVStorageSaveData done [23:16:58]ExternCall_PrintAddStr [23:16:58]wPrintStart [23:16:58]Write to MH i2c: 01 00 00 C9 45 0E [23:16:58]Write i2c OK [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: 01 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: 01 07 00 [23:16:58]MH_I2C_Read... [23:16:58]Read from MH i2c: 01 07 00 C9 45 00 00 00 00 00 FF 0F 23 [23:16:58]RasterBufferAndPrint [23:16:58]line Счет N : (1)717941 [23:16:58]line ИНН: 02508201610067 [23:16:58]line Контрольно-Кассовый Чек [23:16:58]line ПРОДАЖА [23:16:58]line ТРК (МРК, ГНК) : 42 [23:16:58]line Товар: 2710124130 [23:16:58]line Аи-92-К-4 [23:16:58]line 2.970 * 67.40 [23:16:58]line = 200.18 [23:16:58]line НДС 12% НСП 1% [23:16:58]line > о реализуемом товаре [23:16:58]line ИТОГО: 200.18 [23:16:58]line НСП 1% : 1.77 [23:16:58]line НДС 12% : 21.26 [23:16:58]line Наличными: 0.00 [23:16:58]line Безнал.: 200.18 [23:16:58]line Место: АЗС № 64 "Партнер Нефть" [23:16:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [23:16:58]line СНО: Общий режим [23:16:58]line Чек 185 25.11.2024 23:17 [23:16:58]line Смена: 556 ФФД: 1.0 [23:16:58]line ЗНМ: 0300000033 [23:16:58]line РНМ: 0000000000092681 [23:16:58]line Версия ККМ: 001 [23:16:58]line Платежная система: O! деньги [23:16:58]line ФМ: 0000000000874881 [23:16:58]line ФД: 123144 [23:16:58]line ФПД: 193179172893122 [23:16:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241125T231704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123144&fm=193179172893122&tin=02508201610067®Number=0000000000092681&sum=20018 [23:16:59]OFD Sender: Processing packet 123144 [packets to send 7, broken 6] [23:16:59]ProducePacketName [23:16:59]name=ofd_packets/00123144 [23:16:59]OFD Sender: To server: pG, [23:16:59]CommunicateWithHost lk.salyk.kg:30040 [23:16:59]ConnectInit lk.salyk.kg [23:16:59]written 0, free lines is 4095 [23:16:59]Connected sock=10 [23:16:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FF D2 07 01 91 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 70 05 45 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 08 E1 01 00 35 04 06 00 AF B2 07 FA 71 C2 AF 9F 10 74 13 0A 5D DC [23:16:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4A 16 47 00 B1 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 08 E1 01 00 F4 03 04 00 35 B1 44 67 B6 04 01 00 00 7D 62 A0 41 27 C3 15 14 [23:16:59]CommunicateWithHost err = 0 [23:16:59]CheckOFDResponse [23:16:59]1017 (14) - 77093643461234 [23:16:59]1041 (16) - 0000000000874881 [23:16:59]1040 (4) - 123144 [23:16:59]1012 (4) - 25.11.2024 17:17 [23:16:59]1206 (1) - 0 [23:16:59]OFD Sender: Remove packet 123144 [23:16:59]ProducePacketName [23:16:59]name=ofd_packets/00123144 [23:16:59]NVStorageDeleteData [23:16:59]Write to MH i2c: 01 00 00 F3 45 38 [23:16:59]Write i2c OK [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: 01 [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: 01 07 00 [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: 01 07 00 F3 45 00 00 00 00 00 60 0C AB [23:16:59]RasterBufferAndPrint [23:16:59]line [23:16:59]line [23:16:59]line [23:16:59]line [23:16:59]line [23:16:59]written 0, free lines is 3174 [23:16:59]MH_Cut [23:16:59]Write to MH i2c: D1 01 00 FA 45 01 11 [23:16:59]Write i2c OK [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: D1 [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: D1 01 00 [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: D1 01 00 FA 45 00 10 [23:16:59]Write to MH i2c: 01 00 00 FB 45 40 [23:16:59]Write i2c OK [23:16:59]MH_I2C_Read... [23:17:00]OFD Sender: No OFD packet to send [23:17:01]*** Cut start [23:17:01]*** Partial cut [23:17:01]*** CUTSNS_PIN = 1 [23:17:01]*** CUTSNS_PIN = 0 [23:17:01]*** Brake cut motor [23:17:01]Read from MH i2c: 01 [23:17:01]MH_I2C_Read... [23:17:01]*** Stop cut motor [23:17:01]*** Cut end [23:17:01]Read from MH i2c: 01 07 00 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: 01 07 00 FB 45 00 00 00 00 00 FF 0F 55 [23:17:01]process_action close_receipt done [23:17:01]requested_data is exist [23:17:01]produce_requested_data [23:17:01]requested_item fm.sn is exist - process it [23:17:01]wFMCommunicate request_size=4 [23:17:01]MH_SAM_APDU [23:17:01]CAPDU: 80 11 00 00 [23:17:01]Write to MH i2c: E2 08 00 FC 45 80 11 00 00 00 00 00 00 BB [23:17:01]Write i2c OK [23:17:01]MH_I2C_Read... [23:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:01]Read from MH i2c: E2 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 17 00 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 17 00 FC 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 12 [23:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:17:01]wFMCommunicate OK [23:17:01]requested_item fd.num is exist - process it [23:17:01]SAM_PROTO_GetFieldsCounters [23:17:01]wFMCommunicate request_size=4 [23:17:01]MH_SAM_APDU [23:17:01]CAPDU: 80 13 00 00 [23:17:01]Write to MH i2c: E2 08 00 FD 45 80 13 00 00 00 00 00 00 BE [23:17:01]Write i2c OK [23:17:01]MH_I2C_Read... [23:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:02]Read from MH i2c: E2 [23:17:02]MH_I2C_Read... [23:17:02]Read from MH i2c: E2 62 00 [23:17:02]MH_I2C_Read... [23:17:02]Read from MH i2c: E2 62 00 FD 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 27 [23:17:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 [23:17:02]wFMCommunicate OK [23:17:02]SAM_PROTO_GetFieldsCounters done [23:17:02]requested_item shift.num is exist - process it [23:17:02]requested_item shift.opened is exist - process it [23:17:02]req_shift_opened [23:17:02]FM_GetShiftState [23:17:02]SAM_PROTO_GetShiftState [23:17:02]wFMCommunicate request_size=4 [23:17:02]MH_SAM_APDU [23:17:02]CAPDU: 80 13 01 00 [23:17:02]Write to MH i2c: E2 08 00 FE 45 80 13 01 00 00 00 00 00 C0 [23:17:02]Write i2c OK [23:17:02]MH_I2C_Read... [23:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:02]Read from MH i2c: E2 [23:17:02]MH_I2C_Read... [23:17:02]Read from MH i2c: E2 0E 00 [23:17:02]MH_I2C_Read... [23:17:02]Read from MH i2c: E2 0E 00 FE 45 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 3F [23:17:02]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [23:17:02]wFMCommunicate OK [23:17:02]SAM_PROTO_GetShiftState done [23:17:02]FM_GetShiftState done [23:17:02]req_shift_opened done [23:17:02]requested_item shift.open_date is exist - process it [23:17:02]req_shift_open_date [23:17:02]req_shift_open_date done [23:17:02]produce_requested_data done [23:17:02]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123144,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [23:17:02]process_action_free close_receipt [23:17:02]json_value_free [23:17:02]json_value_free done [23:17:02]process_json_proto returns [23:17:02]Send response to host [23:17:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123144,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [23:17:02]free response buf [23:17:02]execute_script done [23:17:02]execute_script returns [23:17:02]free content buf [23:17:02]Sock 7.Close socket [23:17:02]Sock 7.Thread stoped [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:39]accept exits with 9 [23:33:39]New connection [23:33:39]New thread 3066580324 created [23:33:39]Thread 3066723684 joined [23:33:39]Waiting for new connection... [23:33:39] Sock 9.Parse request [23:33:39]Sock 9.Check first char [23:33:39]Sock 9.First char is OK [23:33:39]request: POST /json_proto HTTP/1.0 [23:33:39]Method: POST [23:33:39]URL: /json_proto [23:33:39]Method is POST - this is cgi request [23:33:39]url: /json_proto [23:33:39]query_string will be loaded in cgi processing [23:33:39]execute_cgi json_proto POST (null) [23:33:39]execute_cgi path=json_proto method=POST [23:33:39]POST find Content-Length [23:33:39]Host: 172.17.37.4:8080 [23:33:39]Content-Length: 215 [23:33:39]Content-Type: application/json [23:33:39] [23:33:39]POST finish read [23:33:39]Found Content-Length = 215 [23:33:39]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:33:39]execute_script... [23:33:39]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:33:39]POST & json_proto [23:33:39]process_json_proto [23:33:39]json parsed OK: [23:33:39]protocol is kg_v1.0 [23:33:39]action value=get_value [23:33:39]process_action get_value [23:33:39]cmd_get_value [23:33:39]process_action get_value done [23:33:39]requested_data is exist [23:33:39]produce_requested_data [23:33:39]requested_item kkm.sn is exist - process it [23:33:39]requested_item kkm.ver is exist - process it [23:33:39]requested_item fm.sn is exist - process it [23:33:39]wFMCommunicate request_size=4 [23:33:39]MH_SAM_APDU [23:33:39]CAPDU: 80 11 00 00 [23:33:39]Write to MH i2c: E2 08 00 FF 45 80 11 00 00 00 00 00 00 BE [23:33:39]Write i2c OK [23:33:39]MH_I2C_Read... [23:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:39]Read from MH i2c: E2 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 17 00 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 17 00 FF 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 15 [23:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:33:39]wFMCommunicate OK [23:33:39]requested_item fd.num is exist - process it [23:33:39]SAM_PROTO_GetFieldsCounters [23:33:39]wFMCommunicate request_size=4 [23:33:39]MH_SAM_APDU [23:33:39]CAPDU: 80 13 00 00 [23:33:39]Write to MH i2c: E2 08 00 00 46 80 13 00 00 00 00 00 00 C2 [23:33:39]Write i2c OK [23:33:39]MH_I2C_Read... [23:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:39]Read from MH i2c: E2 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 62 00 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 62 00 00 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 2B [23:33:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 [23:33:39]wFMCommunicate OK [23:33:39]SAM_PROTO_GetFieldsCounters done [23:33:39]requested_item shift.num is exist - process it [23:33:39]requested_item shift.opened is exist - process it [23:33:39]req_shift_opened [23:33:39]FM_GetShiftState [23:33:39]SAM_PROTO_GetShiftState [23:33:39]wFMCommunicate request_size=4 [23:33:39]MH_SAM_APDU [23:33:39]CAPDU: 80 13 01 00 [23:33:39]Write to MH i2c: E2 08 00 01 46 80 13 01 00 00 00 00 00 C4 [23:33:39]Write i2c OK [23:33:39]MH_I2C_Read... [23:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:39]Read from MH i2c: E2 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 0E 00 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 0E 00 01 46 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 43 [23:33:39]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [23:33:39]wFMCommunicate OK [23:33:39]SAM_PROTO_GetShiftState done [23:33:39]FM_GetShiftState done [23:33:39]req_shift_opened done [23:33:39]requested_item shift.open_date is exist - process it [23:33:39]req_shift_open_date [23:33:39]req_shift_open_date done [23:33:39]produce_requested_data done [23:33:39]produce_requested_data return {"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123144,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [23:33:39]process_action_free get_value [23:33:39]json_value_free [23:33:39]json_value_free done [23:33:39]process_json_proto returns [23:33:39]Send response to host [23:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123144,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [23:33:39]free response buf [23:33:39]execute_script done [23:33:39]execute_script returns [23:33:39]free content buf [23:33:39]Sock 9.Close socket [23:33:39]Sock 9.Thread stoped [23:33:39]accept exits with 7 [23:33:39]New connection [23:33:39]New thread 3066723684 created [23:33:39]Thread 3066580324 joined [23:33:39]Waiting for new connection... [23:33:39] Sock 7.Parse request [23:33:39]Sock 7.Check first char [23:33:39]Sock 7.First char is OK [23:33:39]request: POST /json_proto HTTP/1.0 [23:33:39]Method: POST [23:33:39]URL: /json_proto [23:33:39]Method is POST - this is cgi request [23:33:39]url: /json_proto [23:33:39]query_string will be loaded in cgi processing [23:33:39]execute_cgi json_proto POST (null) [23:33:39]execute_cgi path=json_proto method=POST [23:33:39]POST find Content-Length [23:33:39]Host: 172.17.37.4:8080 [23:33:39]Content-Length: 331 [23:33:39]Content-Type: application/json [23:33:39] [23:33:39]POST finish read [23:33:39]Found Content-Length = 331 [23:33:39]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:33:39]execute_script... [23:33:39]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:33:39]POST & json_proto [23:33:39]process_json_proto [23:33:39]json parsed OK: [23:33:39]protocol is kg_v1.0 [23:33:39]action value=get_value [23:33:39]process_action get_value [23:33:39]cmd_get_value [23:33:39]process_action get_value done [23:33:39]requested_data is exist [23:33:39]produce_requested_data [23:33:39]requested_item fm.sale.total is exist - process it [23:33:39]SAM_PROTO_GetFMData [23:33:39]wFMCommunicate request_size=4 [23:33:39]MH_SAM_APDU [23:33:39]CAPDU: 80 13 03 00 [23:33:39]Write to MH i2c: E2 08 00 02 46 80 13 03 00 00 00 00 00 C7 [23:33:39]Write i2c OK [23:33:39]MH_I2C_Read... [23:33:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:33:40]Read from MH i2c: E2 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 FD 00 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 FD 00 02 46 00 C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 30 [23:33:40]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 [23:33:40]wFMCommunicate OK [23:33:40]wFMCommunicate request_size=4 [23:33:40]MH_SAM_APDU [23:33:40]CAPDU: 80 17 00 00 [23:33:40]Write to MH i2c: E2 08 00 03 46 80 17 00 00 00 00 00 00 C9 [23:33:40]Write i2c OK [23:33:40]MH_I2C_Read... [23:33:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:40]Read from MH i2c: E2 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 FD 00 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 FD 00 03 46 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 57 [23:33:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:33:40]wFMCommunicate OK [23:33:40]wFMCommunicate request_size=4 [23:33:40]MH_SAM_APDU [23:33:40]CAPDU: 80 17 00 00 [23:33:40]Write to MH i2c: E2 08 00 04 46 80 17 00 00 00 00 00 00 CA [23:33:40]Write i2c OK [23:33:40]MH_I2C_Read... [23:33:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:40]Read from MH i2c: E2 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 FD 00 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 FD 00 04 46 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 DC [23:33:40]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:33:40]wFMCommunicate OK [23:33:40]wFMCommunicate request_size=4 [23:33:40]MH_SAM_APDU [23:33:40]CAPDU: 80 17 00 00 [23:33:40]Write to MH i2c: E2 08 00 05 46 80 17 00 00 00 00 00 00 CB [23:33:40]Write i2c OK [23:33:40]MH_I2C_Read... [23:33:40]OFD Sender: No OFD packet to send [23:33:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:41]Read from MH i2c: E2 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 FD 00 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 FD 00 05 46 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 57 [23:33:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:33:41]wFMCommunicate OK [23:33:41]wFMCommunicate request_size=4 [23:33:41]MH_SAM_APDU [23:33:41]CAPDU: 80 17 00 00 [23:33:41]Write to MH i2c: E2 08 00 06 46 80 17 00 00 00 00 00 00 CC [23:33:41]Write i2c OK [23:33:41]MH_I2C_Read... [23:33:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:33:41]Read from MH i2c: E2 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 E2 00 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 E2 00 06 46 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AA [23:33:41]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:33:41]wFMCommunicate OK [23:33:41]SAM_PROTO_GetFMData done [23:33:41]requested_item fm.sale_refund.total is exist - process it [23:33:41]requested_item fm.buy.total is exist - process it [23:33:41]requested_item shift.sale.total is exist - process it [23:33:41]SAM_PROTO_GetShiftData [23:33:41]wFMCommunicate request_size=4 [23:33:41]MH_SAM_APDU [23:33:41]CAPDU: 80 13 02 00 [23:33:41]Write to MH i2c: E2 08 00 07 46 80 13 02 00 00 00 00 00 CB [23:33:41]Write i2c OK [23:33:41]MH_I2C_Read... [23:33:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:33:41]Read from MH i2c: E2 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 FD 00 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 FD 00 07 46 00 B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 D0 [23:33:41]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [23:33:41]wFMCommunicate OK [23:33:41]wFMCommunicate request_size=4 [23:33:41]MH_SAM_APDU [23:33:41]CAPDU: 80 17 00 00 [23:33:41]Write to MH i2c: E2 08 00 08 46 80 17 00 00 00 00 00 00 CE [23:33:41]Write i2c OK [23:33:41]MH_I2C_Read... [23:33:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:42]Read from MH i2c: E2 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 FD 00 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 FD 00 08 46 00 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1D [23:33:42]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:33:42]wFMCommunicate OK [23:33:42]wFMCommunicate request_size=4 [23:33:42]MH_SAM_APDU [23:33:42]CAPDU: 80 17 00 00 [23:33:42]Write to MH i2c: E2 08 00 09 46 80 17 00 00 00 00 00 00 CF [23:33:42]Write i2c OK [23:33:42]MH_I2C_Read... [23:33:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:42]Read from MH i2c: E2 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 FD 00 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 FD 00 09 46 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [23:33:42]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:33:42]wFMCommunicate OK [23:33:42]wFMCommunicate request_size=4 [23:33:42]MH_SAM_APDU [23:33:42]CAPDU: 80 17 00 00 [23:33:42]Write to MH i2c: E2 08 00 0A 46 80 17 00 00 00 00 00 00 D0 [23:33:42]Write i2c OK [23:33:42]MH_I2C_Read... [23:33:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:42]Read from MH i2c: E2 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 FD 00 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 FD 00 0A 46 00 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 90 00 3F [23:33:42]RAPDU: 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 90 00 [23:33:42]wFMCommunicate OK [23:33:42]wFMCommunicate request_size=4 [23:33:42]MH_SAM_APDU [23:33:42]CAPDU: 80 17 00 00 [23:33:42]Write to MH i2c: E2 08 00 0B 46 80 17 00 00 00 00 00 00 D1 [23:33:42]Write i2c OK [23:33:42]MH_I2C_Read... [23:33:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:33:42]Read from MH i2c: E2 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 D3 00 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 D3 00 0B 46 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [23:33:42]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33:42]wFMCommunicate OK [23:33:42]SAM_PROTO_GetShiftData done [23:33:42]requested_item shift.sale.total_cash is exist - process it [23:33:42]requested_item shift.sale_refund.total is exist - process it [23:33:42]requested_item shift.sale_refund.total_cash is exist - process it [23:33:42]requested_item shift.buy.total is exist - process it [23:33:42]requested_item shift.buy.total_cash is exist - process it [23:33:42]produce_requested_data done [23:33:42]produce_requested_data return {"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:33:42]process_action_free get_value [23:33:42]json_value_free [23:33:42]json_value_free done [23:33:42]process_json_proto returns [23:33:42]Send response to host [23:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:33:42]free response buf [23:33:42]execute_script done [23:33:42]execute_script returns [23:33:42]free content buf [23:33:42]Sock 7.Close socket [23:33:42]Sock 7.Thread stoped [23:33:43]accept exits with 9 [23:33:43]New connection [23:33:43]New thread 3066580324 created [23:33:43]Thread 3066723684 joined [23:33:43]Waiting for new connection... [23:33:43] Sock 9.Parse request [23:33:43]Sock 9.Check first char [23:33:43]Sock 9.First char is OK [23:33:43]request: POST /json_proto HTTP/1.0 [23:33:43]Method: POST [23:33:43]URL: /json_proto [23:33:43]Method is POST - this is cgi request [23:33:43]url: /json_proto [23:33:43]query_string will be loaded in cgi processing [23:33:43]execute_cgi json_proto POST (null) [23:33:43]execute_cgi path=json_proto method=POST [23:33:43]POST find Content-Length [23:33:43]Host: 172.17.37.4:8080 [23:33:43]Content-Length: 331 [23:33:43]Content-Type: application/json [23:33:43] [23:33:43]POST finish read [23:33:43]Found Content-Length = 331 [23:33:43]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:33:43]execute_script... [23:33:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:33:43]POST & json_proto [23:33:43]process_json_proto [23:33:43]json parsed OK: [23:33:43]protocol is kg_v1.0 [23:33:43]action value=get_value [23:33:43]process_action get_value [23:33:43]cmd_get_value [23:33:43]process_action get_value done [23:33:43]requested_data is exist [23:33:43]produce_requested_data [23:33:43]requested_item fm.sale.total is exist - process it [23:33:43]SAM_PROTO_GetFMData [23:33:43]wFMCommunicate request_size=4 [23:33:43]MH_SAM_APDU [23:33:43]CAPDU: 80 13 03 00 [23:33:43]Write to MH i2c: E2 08 00 0C 46 80 13 03 00 00 00 00 00 D1 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:33:43]Read from MH i2c: E2 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 FD 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 FD 00 0C 46 00 C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 3A [23:33:43]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 [23:33:43]wFMCommunicate OK [23:33:43]wFMCommunicate request_size=4 [23:33:43]MH_SAM_APDU [23:33:43]CAPDU: 80 17 00 00 [23:33:43]Write to MH i2c: E2 08 00 0D 46 80 17 00 00 00 00 00 00 D3 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:43]Read from MH i2c: E2 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 FD 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 FD 00 0D 46 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 61 [23:33:43]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:33:43]wFMCommunicate OK [23:33:43]wFMCommunicate request_size=4 [23:33:43]MH_SAM_APDU [23:33:43]CAPDU: 80 17 00 00 [23:33:43]Write to MH i2c: E2 08 00 0E 46 80 17 00 00 00 00 00 00 D4 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:44]Read from MH i2c: E2 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: E2 FD 00 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: E2 FD 00 0E 46 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E6 [23:33:44]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:33:44]wFMCommunicate OK [23:33:44]wFMCommunicate request_size=4 [23:33:44]MH_SAM_APDU [23:33:44]CAPDU: 80 17 00 00 [23:33:44]Write to MH i2c: E2 08 00 0F 46 80 17 00 00 00 00 00 00 D5 [23:33:44]Write i2c OK [23:33:44]MH_I2C_Read... [23:33:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:44]Read from MH i2c: E2 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: E2 FD 00 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: E2 FD 00 0F 46 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 61 [23:33:44]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:33:44]wFMCommunicate OK [23:33:44]wFMCommunicate request_size=4 [23:33:44]MH_SAM_APDU [23:33:44]CAPDU: 80 17 00 00 [23:33:44]Write to MH i2c: E2 08 00 10 46 80 17 00 00 00 00 00 00 D6 [23:33:44]Write i2c OK [23:33:44]MH_I2C_Read... [23:33:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:33:44]Read from MH i2c: E2 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: E2 E2 00 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: E2 E2 00 10 46 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 [23:33:45]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:33:45]wFMCommunicate OK [23:33:45]SAM_PROTO_GetFMData done [23:33:45]requested_item fm.sale_refund.total is exist - process it [23:33:45]requested_item fm.buy.total is exist - process it [23:33:45]requested_item shift.sale.total is exist - process it [23:33:45]SAM_PROTO_GetShiftData [23:33:45]wFMCommunicate request_size=4 [23:33:45]MH_SAM_APDU [23:33:45]CAPDU: 80 13 02 00 [23:33:45]Write to MH i2c: E2 08 00 11 46 80 13 02 00 00 00 00 00 D5 [23:33:45]Write i2c OK [23:33:45]MH_I2C_Read... [23:33:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:33:45]Read from MH i2c: E2 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 FD 00 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 FD 00 11 46 00 B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 DA [23:33:45]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [23:33:45]wFMCommunicate OK [23:33:45]wFMCommunicate request_size=4 [23:33:45]MH_SAM_APDU [23:33:45]CAPDU: 80 17 00 00 [23:33:45]Write to MH i2c: E2 08 00 12 46 80 17 00 00 00 00 00 00 D8 [23:33:45]Write i2c OK [23:33:45]MH_I2C_Read... [23:33:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:45]Read from MH i2c: E2 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 FD 00 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 FD 00 12 46 00 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [23:33:46]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:33:46]wFMCommunicate OK [23:33:46]wFMCommunicate request_size=4 [23:33:46]MH_SAM_APDU [23:33:46]CAPDU: 80 17 00 00 [23:33:46]Write to MH i2c: E2 08 00 13 46 80 17 00 00 00 00 00 00 D9 [23:33:46]OFD Sender: No OFD packet to send [23:33:46]Write i2c OK [23:33:46]MH_I2C_Read... [23:33:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:46]Read from MH i2c: E2 [23:33:46]MH_I2C_Read... [23:33:46]Read from MH i2c: E2 FD 00 [23:33:46]MH_I2C_Read... [23:33:46]Read from MH i2c: E2 FD 00 13 46 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [23:33:46]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:33:46]wFMCommunicate OK [23:33:46]wFMCommunicate request_size=4 [23:33:46]MH_SAM_APDU [23:33:46]CAPDU: 80 17 00 00 [23:33:46]Write to MH i2c: E2 08 00 14 46 80 17 00 00 00 00 00 00 DA [23:33:46]Write i2c OK [23:33:46]MH_I2C_Read... [23:33:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:46]Read from MH i2c: E2 [23:33:46]MH_I2C_Read... [23:33:46]Read from MH i2c: E2 FD 00 [23:33:46]MH_I2C_Read... [23:33:46]Read from MH i2c: E2 FD 00 14 46 00 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 90 00 49 [23:33:47]RAPDU: 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 90 00 [23:33:47]wFMCommunicate OK [23:33:47]wFMCommunicate request_size=4 [23:33:47]MH_SAM_APDU [23:33:47]CAPDU: 80 17 00 00 [23:33:47]Write to MH i2c: E2 08 00 15 46 80 17 00 00 00 00 00 00 DB [23:33:47]Write i2c OK [23:33:47]MH_I2C_Read... [23:33:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:33:47]Read from MH i2c: E2 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: E2 D3 00 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: E2 D3 00 15 46 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C8 [23:33:47]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33:47]wFMCommunicate OK [23:33:47]SAM_PROTO_GetShiftData done [23:33:47]requested_item shift.sale.total_cash is exist - process it [23:33:47]requested_item shift.sale_refund.total is exist - process it [23:33:47]requested_item shift.sale_refund.total_cash is exist - process it [23:33:47]requested_item shift.buy.total is exist - process it [23:33:47]requested_item shift.buy.total_cash is exist - process it [23:33:47]produce_requested_data done [23:33:47]produce_requested_data return {"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:33:47]process_action_free get_value [23:33:47]json_value_free [23:33:47]json_value_free done [23:33:47]process_json_proto returns [23:33:47]Send response to host [23:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:33:47]free response buf [23:33:47]execute_script done [23:33:47]execute_script returns [23:33:47]free content buf [23:33:47]Sock 9.Close socket [23:33:47]Sock 9.Thread stoped [23:33:47]accept exits with 7 [23:33:47]New connection [23:33:47]New thread 3066723684 created [23:33:47] Sock 7.Parse request [23:33:47]Thread 3066580324 joined [23:33:47]Sock 7.Check first char [23:33:47]Waiting for new connection... [23:33:47]Sock 7.First char is OK [23:33:47]request: POST /json_proto HTTP/1.0 [23:33:47]Method: POST [23:33:47]URL: /json_proto [23:33:47]Method is POST - this is cgi request [23:33:47]url: /json_proto [23:33:47]query_string will be loaded in cgi processing [23:33:47]execute_cgi json_proto POST (null) [23:33:47]execute_cgi path=json_proto method=POST [23:33:47]POST find Content-Length [23:33:47]Host: 172.17.37.4:8080 [23:33:47]Content-Length: 263 [23:33:47]Content-Type: application/json [23:33:47] [23:33:47]POST finish read [23:33:47]Found Content-Length = 263 [23:33:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0418\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:47]execute_script... [23:33:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0418\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:47]POST & json_proto [23:33:47]process_json_proto [23:33:47]json parsed OK: [23:33:47]protocol is kg_v1.0 [23:33:47]action value=x_report [23:33:47]process_action x_report [23:33:47]cmd_x_report [23:33:47]MH_GetDate [23:33:47]Write to MH i2c: F0 00 00 16 46 4B [23:33:47]Write i2c OK [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: F0 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: F0 09 00 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: F0 09 00 16 46 00 63 09 45 67 B8 5A 43 67 28 [23:33:47]GetLastDocTimeStamp 1732576624 [23:33:47]current date 1732577635 [23:33:47]FM_GetShiftState [23:33:47]SAM_PROTO_GetShiftState [23:33:47]wFMCommunicate request_size=4 [23:33:47]MH_SAM_APDU [23:33:47]CAPDU: 80 13 01 00 [23:33:47]Write to MH i2c: E2 08 00 17 46 80 13 01 00 00 00 00 00 DA [23:33:47]Write i2c OK [23:33:47]MH_I2C_Read... [23:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:47]Read from MH i2c: E2 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: E2 0E 00 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: E2 0E 00 17 46 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 59 [23:33:47]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [23:33:47]wFMCommunicate OK [23:33:47]SAM_PROTO_GetShiftState done [23:33:47]FM_GetShiftState done [23:33:47]KKMCreateXReportDocument [23:33:47]Load OK [23:33:47]Malloc new data [23:33:47]MH_GetDate [23:33:47]Write to MH i2c: F0 00 00 18 46 4D [23:33:47]Write i2c OK [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: F0 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: F0 09 00 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: F0 09 00 18 46 00 63 09 45 67 B8 5A 43 67 2A [23:33:47]Malloc new data [23:33:47]Malloc new data [23:33:47]wFMCommunicate request_size=4 [23:33:47]MH_SAM_APDU [23:33:47]CAPDU: 80 11 00 00 [23:33:47]Write to MH i2c: E2 08 00 19 46 80 11 00 00 00 00 00 00 D9 [23:33:47]Write i2c OK [23:33:47]MH_I2C_Read... [23:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:47]Read from MH i2c: E2 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: E2 17 00 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: E2 17 00 19 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 30 [23:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:33:47]wFMCommunicate OK [23:33:47]SAM_PROTO_GetFieldsCounters [23:33:47]wFMCommunicate request_size=4 [23:33:47]MH_SAM_APDU [23:33:47]CAPDU: 80 13 00 00 [23:33:47]Write to MH i2c: E2 08 00 1A 46 80 13 00 00 00 00 00 00 DC [23:33:47]Write i2c OK [23:33:47]MH_I2C_Read... [23:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:47]Read from MH i2c: E2 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: E2 62 00 [23:33:47]MH_I2C_Read... [23:33:47]Read from MH i2c: E2 62 00 1A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 45 [23:33:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 [23:33:48]wFMCommunicate OK [23:33:48]SAM_PROTO_GetFieldsCounters done [23:33:48]Malloc new data [23:33:48]Malloc new data [23:33:48]Malloc new data [23:33:48]KKMCreateXReportDocument OK [23:33:48]KKMSetXReportData OK [23:33:48]KKMPrepareXReportFMData [23:33:48]SAM_PROTO_GetShiftData [23:33:48]wFMCommunicate request_size=4 [23:33:48]MH_SAM_APDU [23:33:48]CAPDU: 80 13 02 00 [23:33:48]Write to MH i2c: E2 08 00 1B 46 80 13 02 00 00 00 00 00 DF [23:33:48]Write i2c OK [23:33:48]MH_I2C_Read... [23:33:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:33:48]Read from MH i2c: E2 [23:33:48]MH_I2C_Read... [23:33:48]Read from MH i2c: E2 FD 00 [23:33:48]MH_I2C_Read... [23:33:48]Read from MH i2c: E2 FD 00 1B 46 00 B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 E4 [23:33:48]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [23:33:48]wFMCommunicate OK [23:33:48]wFMCommunicate request_size=4 [23:33:48]MH_SAM_APDU [23:33:48]CAPDU: 80 17 00 00 [23:33:48]Write to MH i2c: E2 08 00 1C 46 80 17 00 00 00 00 00 00 E2 [23:33:48]Write i2c OK [23:33:48]MH_I2C_Read... [23:33:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:48]Read from MH i2c: E2 [23:33:48]MH_I2C_Read... [23:33:48]Read from MH i2c: E2 FD 00 [23:33:48]MH_I2C_Read... [23:33:48]Read from MH i2c: E2 FD 00 1C 46 00 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 31 [23:33:49]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:33:49]wFMCommunicate OK [23:33:49]wFMCommunicate request_size=4 [23:33:49]MH_SAM_APDU [23:33:49]CAPDU: 80 17 00 00 [23:33:49]Write to MH i2c: E2 08 00 1D 46 80 17 00 00 00 00 00 00 E3 [23:33:49]Write i2c OK [23:33:49]MH_I2C_Read... [23:33:49]Read from MH i2c: E2 [23:33:49]MH_I2C_Read... [23:33:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:49]Read from MH i2c: E2 FD 00 [23:33:49]MH_I2C_Read... [23:33:49]Read from MH i2c: E2 FD 00 1D 46 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A3 [23:33:49]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:33:49]wFMCommunicate OK [23:33:49]wFMCommunicate request_size=4 [23:33:49]MH_SAM_APDU [23:33:49]CAPDU: 80 17 00 00 [23:33:49]Write to MH i2c: E2 08 00 1E 46 80 17 00 00 00 00 00 00 E4 [23:33:49]Write i2c OK [23:33:49]MH_I2C_Read... [23:33:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:49]Read from MH i2c: E2 [23:33:49]MH_I2C_Read... [23:33:49]Read from MH i2c: E2 FD 00 [23:33:49]MH_I2C_Read... [23:33:49]Read from MH i2c: E2 FD 00 1E 46 00 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 90 00 53 [23:33:49]RAPDU: 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 90 00 [23:33:50]wFMCommunicate OK [23:33:50]wFMCommunicate request_size=4 [23:33:50]MH_SAM_APDU [23:33:50]CAPDU: 80 17 00 00 [23:33:50]Write to MH i2c: E2 08 00 1F 46 80 17 00 00 00 00 00 00 E5 [23:33:50]Write i2c OK [23:33:50]MH_I2C_Read... [23:33:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:33:50]Read from MH i2c: E2 [23:33:50]MH_I2C_Read... [23:33:50]Read from MH i2c: E2 D3 00 [23:33:50]MH_I2C_Read... [23:33:50]Read from MH i2c: E2 D3 00 1F 46 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D2 [23:33:50]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33:50]wFMCommunicate OK [23:33:50]SAM_PROTO_GetShiftData done [23:33:50]1194 (1202) - счетчики итогов смены [23:33:50] 1134 (4) - 185 - количество чеков со всеми признаками расчетов [23:33:50] 1129 (156) - счетчики операций «приход» [23:33:50] 1135 (4) - 184 - количество чеков по признаку расчетов [23:33:50] 1201 (3) - 126943.26 - общая итоговая сумма в чеках [23:33:50] 1136 (3) - 96678.00 - итоговая сумма в чеках наличными [23:33:50] 1138 (3) - 30265.26 - итоговая сумма в чеках безналичными [23:33:50] 1024 (123) - суммы налогов [23:33:50] 1006 (9) - суммы НДС [23:33:50] 1010 (1) - 0% - код ставки НДС [23:33:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:33:50] 1006 (12) - суммы НДС [23:33:50] 1010 (1) - 12% - код ставки НДС [23:33:50] 1011 (3) - 13485.14 - сумма НДС по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 0% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (12) - суммы НСП [23:33:50] 1014 (1) - 1% - код ставки НСП [23:33:50] 1015 (3) - 1123.68 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 2% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 3% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 5% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 0,50% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 1,50% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1130 (148) - счетчики операций «возврат прихода» [23:33:50] 1135 (4) - 1 - количество чеков по признаку расчетов [23:33:50] 1201 (2) - 67.00 - общая итоговая сумма в чеках [23:33:50] 1136 (2) - 67.00 - итоговая сумма в чеках наличными [23:33:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:33:50] 1024 (120) - суммы налогов [23:33:50] 1006 (9) - суммы НДС [23:33:50] 1010 (1) - 0% - код ставки НДС [23:33:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:33:50] 1006 (11) - суммы НДС [23:33:50] 1010 (1) - 12% - код ставки НДС [23:33:50] 1011 (2) - 7.16 - сумма НДС по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 0% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (10) - суммы НСП [23:33:50] 1014 (1) - 1% - код ставки НСП [23:33:50] 1015 (1) - 0.60 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 2% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 3% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 5% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 0,50% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 1,50% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1131 (141) - счетчики операций «расход» [23:33:50] 1135 (4) - 0 - количество чеков по признаку расчетов [23:33:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:33:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:33:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:33:50] 1024 (117) - суммы налогов [23:33:50] 1006 (9) - суммы НДС [23:33:50] 1010 (1) - 0% - код ставки НДС [23:33:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:33:50] 1006 (9) - суммы НДС [23:33:50] 1010 (1) - 12% - код ставки НДС [23:33:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 0% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 1% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 2% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 3% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 5% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 0,50% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 1,50% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1132 (141) - счетчики операций «возврат расхода» [23:33:50] 1135 (4) - 0 - количество чеков по признаку расчетов [23:33:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:33:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:33:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:33:50] 1024 (117) - суммы налогов [23:33:50] 1006 (9) - суммы НДС [23:33:50] 1010 (1) - 0% - код ставки НДС [23:33:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:33:50] 1006 (9) - суммы НДС [23:33:50] 1010 (1) - 12% - код ставки НДС [23:33:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 0% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 1% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 2% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 3% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 5% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 0,50% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1007 (9) - суммы НСП [23:33:50] 1014 (1) - 1,50% - код ставки НСП [23:33:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:33:50] 1133 (588) - - счетчики коррекции - не используются [23:33:50]SetTLVBufToDocument [23:33:50]Processing tag 1194 (04AA) [23:33:50]Load OK [23:33:50]SetTLVBufToDocument [23:33:50]Processing tag 1134 (046E) [23:33:50]Malloc new data [23:33:50]Processing tag 1129 (0469) [23:33:50]Load OK [23:33:50]SetTLVBufToDocument [23:33:50]Processing tag 1135 (046F) [23:33:50]Malloc new data [23:33:50]Processing tag 1201 (04B1) [23:33:50]Malloc new data [23:33:50]Processing tag 1136 (0470) [23:33:50]Malloc new data [23:33:50]Processing tag 1138 (0472) [23:33:50]Malloc new data [23:33:50]Processing tag 1024 (0400) [23:33:50]Load OK [23:33:50]SetTLVBufToDocument [23:33:50]Processing tag 1006 (03EE) [23:33:50]Load OK [23:33:50]SetTLVBufToDocument [23:33:50]Processing tag 1010 (03F2) [23:33:50]Malloc new data [23:33:50]Processing tag 1011 (03F3) [23:33:50]Malloc new data [23:33:50]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1006 (03EE) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1010 (03F2) [23:33:51]Malloc new data [23:33:51]Processing tag 1011 (03F3) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]SetTLVBufToDocument err=0 [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1130 (046A) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1135 (046F) [23:33:51]Malloc new data [23:33:51]Processing tag 1201 (04B1) [23:33:51]Malloc new data [23:33:51]Processing tag 1136 (0470) [23:33:51]Malloc new data [23:33:51]Processing tag 1138 (0472) [23:33:51]Malloc new data [23:33:51]Processing tag 1024 (0400) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1006 (03EE) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1010 (03F2) [23:33:51]Malloc new data [23:33:51]Processing tag 1011 (03F3) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1006 (03EE) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1010 (03F2) [23:33:51]Malloc new data [23:33:51]Processing tag 1011 (03F3) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]SetTLVBufToDocument err=0 [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1131 (046B) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1135 (046F) [23:33:51]Malloc new data [23:33:51]Processing tag 1201 (04B1) [23:33:51]Malloc new data [23:33:51]Processing tag 1136 (0470) [23:33:51]Malloc new data [23:33:51]Processing tag 1138 (0472) [23:33:51]Malloc new data [23:33:51]Processing tag 1024 (0400) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1006 (03EE) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1010 (03F2) [23:33:51]Malloc new data [23:33:51]Processing tag 1011 (03F3) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1006 (03EE) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1010 (03F2) [23:33:51]Malloc new data [23:33:51]Processing tag 1011 (03F3) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]SetTLVBufToDocument err=0 [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1132 (046C) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1135 (046F) [23:33:51]Malloc new data [23:33:51]Processing tag 1201 (04B1) [23:33:51]Malloc new data [23:33:51]Processing tag 1136 (0470) [23:33:51]Malloc new data [23:33:51]Processing tag 1138 (0472) [23:33:51]Malloc new data [23:33:51]Processing tag 1024 (0400) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1006 (03EE) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1010 (03F2) [23:33:51]Malloc new data [23:33:51]Processing tag 1011 (03F3) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1006 (03EE) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1010 (03F2) [23:33:51]Malloc new data [23:33:51]Processing tag 1011 (03F3) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]OFD Sender: No OFD packet to send [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1007 (03EF) [23:33:51]Load OK [23:33:51]SetTLVBufToDocument [23:33:51]Processing tag 1014 (03F6) [23:33:51]Malloc new data [23:33:51]Processing tag 1015 (03F7) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]SetTLVBufToDocument err=0 [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Processing tag 1133 (046D) [23:33:51]Malloc new data [23:33:51]SetTLVBufToDocument err=0 [23:33:51]SetTLVBufToDocument err=0 [23:33:51]Malloc new data [23:33:51]SAM_PROTO_GetFMData [23:33:51]wFMCommunicate request_size=4 [23:33:51]MH_SAM_APDU [23:33:51]CAPDU: 80 13 03 00 [23:33:51]Write to MH i2c: E2 08 00 20 46 80 13 03 00 00 00 00 00 E5 [23:33:51]Write i2c OK [23:33:51]MH_I2C_Read... [23:33:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:33:52]Read from MH i2c: E2 [23:33:52]MH_I2C_Read... [23:33:52]Read from MH i2c: E2 FD 00 [23:33:52]MH_I2C_Read... [23:33:52]Read from MH i2c: E2 FD 00 20 46 00 C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 4E [23:33:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 [23:33:52]wFMCommunicate OK [23:33:52]wFMCommunicate request_size=4 [23:33:52]MH_SAM_APDU [23:33:52]CAPDU: 80 17 00 00 [23:33:52]Write to MH i2c: E2 08 00 21 46 80 17 00 00 00 00 00 00 E7 [23:33:52]Write i2c OK [23:33:52]MH_I2C_Read... [23:33:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:52]Read from MH i2c: E2 [23:33:52]MH_I2C_Read... [23:33:52]Read from MH i2c: E2 FD 00 [23:33:52]MH_I2C_Read... [23:33:52]Read from MH i2c: E2 FD 00 21 46 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 75 [23:33:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:33:52]wFMCommunicate OK [23:33:52]wFMCommunicate request_size=4 [23:33:52]MH_SAM_APDU [23:33:52]CAPDU: 80 17 00 00 [23:33:52]Write to MH i2c: E2 08 00 22 46 80 17 00 00 00 00 00 00 E8 [23:33:52]Write i2c OK [23:33:52]MH_I2C_Read... [23:33:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:53]Read from MH i2c: E2 [23:33:53]MH_I2C_Read... [23:33:53]Read from MH i2c: E2 FD 00 [23:33:53]MH_I2C_Read... [23:33:53]Read from MH i2c: E2 FD 00 22 46 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 FA [23:33:53]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:33:53]wFMCommunicate OK [23:33:53]wFMCommunicate request_size=4 [23:33:53]MH_SAM_APDU [23:33:53]CAPDU: 80 17 00 00 [23:33:53]Write to MH i2c: E2 08 00 23 46 80 17 00 00 00 00 00 00 E9 [23:33:53]Write i2c OK [23:33:53]MH_I2C_Read... [23:33:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:33:53]Read from MH i2c: E2 [23:33:53]MH_I2C_Read... [23:33:53]Read from MH i2c: E2 FD 00 [23:33:53]MH_I2C_Read... [23:33:53]Read from MH i2c: E2 FD 00 23 46 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 75 [23:33:53]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:33:53]wFMCommunicate OK [23:33:53]wFMCommunicate request_size=4 [23:33:53]MH_SAM_APDU [23:33:53]CAPDU: 80 17 00 00 [23:33:53]Write to MH i2c: E2 08 00 24 46 80 17 00 00 00 00 00 00 EA [23:33:53]Write i2c OK [23:33:53]MH_I2C_Read... [23:33:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:33:54]Read from MH i2c: E2 [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: E2 E2 00 [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: E2 E2 00 24 46 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C8 [23:33:54]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:33:54]wFMCommunicate OK [23:33:54]SAM_PROTO_GetFMData done [23:33:54]FM_GetFMData:85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 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 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33:55]oper:6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:33:55]total:AF 7F 97 44 02 [23:33:55]Malloc new data [23:33:55]oper:6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 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 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33:55]total:18 19 BC 26 [23:33:55]Malloc new data [23:33:55]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:33:55]total: [23:33:55]Malloc new data [23:33:55]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:33:55]total: [23:33:55]Malloc new data [23:33:55]KKMPrepareXReportFMData err=0 [23:33:55]Х отчет ИНН: 02508201610067 Кассир: Ишенбеков Д. 25.11.2024 23:33 Смена: 522 РНМ: 0000000000092681 ЗНМ: 0300000033 СНО: Общий режим Всего чеков: 185 ИТОГИ ПРИХОД Чеков: 184 Общий итог: 126943.26 Итого наличными: 96678.00 Итого безнал.: 30265.26 НДС 0% : 0.00 НДС 12% : 13485.14 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1123.68 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 67.00 Итого наличными: 67.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 7.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.60 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 96611.00 НС Приход: 97407139.03 НС Возвр.Прихода: 6498614.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874881 [23:33:55]StoreToDocumentArchive [23:33:55]MH_GetDate [23:33:55]Write to MH i2c: F0 00 00 25 46 5A [23:33:55]Write i2c OK [23:33:55]MH_I2C_Read... [23:33:55]Read from MH i2c: F0 [23:33:55]MH_I2C_Read... [23:33:55]Read from MH i2c: F0 09 00 [23:33:55]MH_I2C_Read... [23:33:55]Read from MH i2c: F0 09 00 25 46 00 6A 09 45 67 B8 5A 43 67 3E [23:33:55]shift 522 fd 1732577642 [23:33:55]Create dir for shift 0522 [23:33:55]save to /storage/0522/doc_1732577642 [23:33:55]save last doc name /storage/0522/doc_1732577642 to /storage/kkm_last_doc_name [23:33:55]save OK [23:33:55]Clear old archive folders... [23:33:55]NVStorageSaveData kkm_last_timestamp [23:33:55]File name is /storage/kkm_last_timestamp [23:33:55]Write 4 bytes [23:33:55]NVStorageSaveData done [23:33:55]ExternCall_PrintAddStr [23:33:55]wPrintStart [23:33:55]Write to MH i2c: 01 00 00 26 46 6C [23:33:55]Write i2c OK [23:33:55]MH_I2C_Read... [23:33:55]Read from MH i2c: 01 [23:33:55]MH_I2C_Read... [23:33:55]Read from MH i2c: 01 07 00 [23:33:55]MH_I2C_Read... [23:33:55]Read from MH i2c: 01 07 00 26 46 00 00 00 00 00 FF 0F 81 [23:33:55]RasterBufferAndPrint [23:33:55]line Х отчет [23:33:55]line ИНН: 02508201610067 [23:33:55]line Кассир: Ишенбеков Д. [23:33:55]line 25.11.2024 23:33 [23:33:55]line Смена: 522 [23:33:55]line РНМ: 0000000000092681 [23:33:55]line ЗНМ: 0300000033 [23:33:55]line СНО: Общий режим [23:33:55]line Всего чеков: 185 [23:33:55]line ИТОГИ ПРИХОД [23:33:55]line Чеков: 184 [23:33:55]line Общий итог: 126943.26 [23:33:55]line Итого наличными: 96678.00 [23:33:55]line Итого безнал.: 30265.26 [23:33:55]line НДС 0% : 0.00 [23:33:55]line НДС 12% : 13485.14 [23:33:55]line НСП 0% : 0.00 [23:33:55]line НСП 1,50% : 0.00 [23:33:55]line НСП 0,50% : 0.00 [23:33:55]line НСП 5% : 0.00 [23:33:55]line НСП 3% : 0.00 [23:33:55]line НСП 2% : 0.00 [23:33:55]line НСП 1% : 1123.68 [23:33:55]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:33:55]line Чеков: 1 [23:33:55]line Общий итог: 67.00 [23:33:55]line Итого наличными: 67.00 [23:33:55]line Итого безнал.: 0.00 [23:33:55]line НДС 0% : 0.00 [23:33:55]line НДС 12% : 7.16 [23:33:55]line НСП 0% : 0.00 [23:33:55]line НСП 1,50% : 0.00 [23:33:55]line НСП 0,50% : 0.00 [23:33:55]line НСП 5% : 0.00 [23:33:55]line НСП 3% : 0.00 [23:33:55]line НСП 2% : 0.00 [23:33:55]line НСП 1% : 0.60 [23:33:55]line ИТОГИ РАСХОД [23:33:55]line Чеков: 0 [23:33:55]line Общий итог: 0.00 [23:33:55]line Итого наличными: 0.00 [23:33:55]line Итого безнал.: 0.00 [23:33:55]line НДС 0% : 0.00 [23:33:55]line НДС 12% : 0.00 [23:33:55]line НСП 0% : 0.00 [23:33:55]line НСП 1,50% : 0.00 [23:33:55]line НСП 0,50% : 0.00 [23:33:55]line НСП 5% : 0.00 [23:33:55]line НСП 3% : 0.00 [23:33:55]line НСП 2% : 0.00 [23:33:55]line НСП 1% : 0.00 [23:33:55]line ИТОГИ ВОЗВРАТ РАСХОДА [23:33:55]line Чеков: 0 [23:33:55]line Общий итог: 0.00 [23:33:55]line Итого наличными: 0.00 [23:33:55]line Итого безнал.: 0.00 [23:33:55]line НДС 0% : 0.00 [23:33:55]line НДС 12% : 0.00 [23:33:55]line НСП 0% : 0.00 [23:33:55]line НСП 1,50% : 0.00 [23:33:55]line НСП 0,50% : 0.00 [23:33:55]line НСП 5% : 0.00 [23:33:55]line НСП 3% : 0.00 [23:33:55]line НСП 2% : 0.00 [23:33:55]line НСП 1% : 0.00 [23:33:55]line Сумма внесений: 0.00 [23:33:55]line Сумма выплат: 0.00 [23:33:55]line Нал. в кассе: 96611.00 [23:33:55]line НС Приход: 97407139.03 [23:33:55]line НС Возвр.Прихода: 6498614.00 [23:33:55]line НС Расход: 0.00 [23:33:55]line НС Возвр.Расхода: 0.00 [23:33:55]line ФМ: 0000000000874881 [23:33:55]written 0, free lines is 4095 [23:33:56]Write to MH i2c: 01 00 00 71 46 B7 [23:33:56]Write i2c OK [23:33:56]MH_I2C_Read... [23:33:56]Read from MH i2c: 01 [23:33:56]MH_I2C_Read... [23:33:56]Read from MH i2c: 01 07 00 [23:33:56]MH_I2C_Read... [23:33:56]Read from MH i2c: 01 07 00 71 46 00 00 00 00 00 4A 09 11 [23:33:56]RasterBufferAndPrint [23:33:56]line [23:33:56]line [23:33:56]line [23:33:56]line [23:33:56]line [23:33:56]written 0, free lines is 2396 [23:33:56]MH_Cut [23:33:56]Write to MH i2c: D1 01 00 78 46 01 90 [23:33:56]Write i2c OK [23:33:56]MH_I2C_Read... [23:33:56]Read from MH i2c: D1 [23:33:56]MH_I2C_Read... [23:33:56]Read from MH i2c: D1 01 00 [23:33:56]MH_I2C_Read... [23:33:56]Read from MH i2c: D1 01 00 78 46 00 8F [23:33:56]Write to MH i2c: 01 00 00 79 46 BF [23:33:56]Write i2c OK [23:33:56]MH_I2C_Read... [23:33:56]OFD Sender: No OFD packet to send [23:33:58]*** Cut start [23:33:58]*** Partial cut [23:33:58]*** CUTSNS_PIN = 1 [23:33:58]*** CUTSNS_PIN = 0 [23:33:58]*** Brake cut motor [23:33:59]Read from MH i2c: 01 [23:33:59]MH_I2C_Read... [23:33:59]*** Stop cut motor [23:33:59]*** Cut end [23:33:59]Read from MH i2c: 01 07 00 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: 01 07 00 79 46 00 00 00 00 00 FF 0F D4 [23:33:59]process_action x_report done [23:33:59]requested_data is exist [23:33:59]produce_requested_data [23:33:59]requested_item fd.num is exist - process it [23:33:59]SAM_PROTO_GetFieldsCounters [23:33:59]wFMCommunicate request_size=4 [23:33:59]MH_SAM_APDU [23:33:59]CAPDU: 80 13 00 00 [23:33:59]Write to MH i2c: E2 08 00 7A 46 80 13 00 00 00 00 00 00 3C [23:33:59]Write i2c OK [23:33:59]MH_I2C_Read... [23:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:59]Read from MH i2c: E2 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: E2 62 00 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: E2 62 00 7A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 A5 [23:33:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 [23:33:59]wFMCommunicate OK [23:33:59]SAM_PROTO_GetFieldsCounters done [23:33:59]requested_item shift.num is exist - process it [23:33:59]requested_item shift.opened is exist - process it [23:33:59]req_shift_opened [23:33:59]FM_GetShiftState [23:33:59]SAM_PROTO_GetShiftState [23:33:59]wFMCommunicate request_size=4 [23:33:59]MH_SAM_APDU [23:33:59]CAPDU: 80 13 01 00 [23:33:59]Write to MH i2c: E2 08 00 7B 46 80 13 01 00 00 00 00 00 3E [23:33:59]Write i2c OK [23:33:59]MH_I2C_Read... [23:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:59]Read from MH i2c: E2 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: E2 0E 00 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: E2 0E 00 7B 46 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 BD [23:33:59]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [23:33:59]wFMCommunicate OK [23:33:59]SAM_PROTO_GetShiftState done [23:33:59]FM_GetShiftState done [23:33:59]req_shift_opened done [23:33:59]requested_item shift.open_date is exist - process it [23:33:59]req_shift_open_date [23:33:59]req_shift_open_date done [23:33:59]produce_requested_data done [23:33:59]produce_requested_data return {"fd.num":123144,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [23:33:59]process_action_free x_report [23:33:59]json_value_free [23:33:59]json_value_free done [23:33:59]process_json_proto returns [23:33:59]Send response to host [23:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":123144,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [23:33:59]free response buf [23:33:59]execute_script done [23:33:59]execute_script returns [23:33:59]free content buf [23:33:59]Sock 7.Close socket [23:33:59]Sock 7.Thread stoped [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:24]accept exits with 10 [23:34:24]New connection [23:34:24]New thread 3066580324 created [23:34:24]Thread 3066723684 joined [23:34:24]Waiting for new connection... [23:34:24] Sock 10.Parse request [23:34:24]Sock 10.Check first char [23:34:24]Sock 10.First char is OK [23:34:24]request: POST /json_proto HTTP/1.0 [23:34:24]Method: POST [23:34:24]URL: /json_proto [23:34:24]Method is POST - this is cgi request [23:34:24]url: /json_proto [23:34:24]query_string will be loaded in cgi processing [23:34:24]execute_cgi json_proto POST (null) [23:34:24]execute_cgi path=json_proto method=POST [23:34:24]POST find Content-Length [23:34:24]Host: 172.17.37.4:8080 [23:34:24]Content-Length: 215 [23:34:24]Content-Type: application/json [23:34:24] [23:34:24]POST finish read [23:34:24]Found Content-Length = 215 [23:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:24]execute_script... [23:34:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:24]POST & json_proto [23:34:24]process_json_proto [23:34:24]json parsed OK: [23:34:24]protocol is kg_v1.0 [23:34:24]action value=get_value [23:34:24]process_action get_value [23:34:24]cmd_get_value [23:34:24]process_action get_value done [23:34:24]requested_data is exist [23:34:24]produce_requested_data [23:34:24]requested_item kkm.sn is exist - process it [23:34:24]requested_item kkm.ver is exist - process it [23:34:24]requested_item fm.sn is exist - process it [23:34:24]wFMCommunicate request_size=4 [23:34:24]MH_SAM_APDU [23:34:24]CAPDU: 80 11 00 00 [23:34:24]Write to MH i2c: E2 08 00 7C 46 80 11 00 00 00 00 00 00 3C [23:34:24]Write i2c OK [23:34:24]MH_I2C_Read... [23:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:24]Read from MH i2c: E2 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: E2 17 00 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: E2 17 00 7C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 93 [23:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:34:24]wFMCommunicate OK [23:34:24]requested_item fd.num is exist - process it [23:34:24]SAM_PROTO_GetFieldsCounters [23:34:24]wFMCommunicate request_size=4 [23:34:24]MH_SAM_APDU [23:34:24]CAPDU: 80 13 00 00 [23:34:24]Write to MH i2c: E2 08 00 7D 46 80 13 00 00 00 00 00 00 3F [23:34:24]Write i2c OK [23:34:24]MH_I2C_Read... [23:34:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:24]Read from MH i2c: E2 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: E2 62 00 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: E2 62 00 7D 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 A8 [23:34:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 08 E1 01 00 0E 04 04 00 2C 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 [23:34:24]wFMCommunicate OK [23:34:24]SAM_PROTO_GetFieldsCounters done [23:34:24]requested_item shift.num is exist - process it [23:34:24]requested_item shift.opened is exist - process it [23:34:24]req_shift_opened [23:34:24]FM_GetShiftState [23:34:24]SAM_PROTO_GetShiftState [23:34:24]wFMCommunicate request_size=4 [23:34:24]MH_SAM_APDU [23:34:24]CAPDU: 80 13 01 00 [23:34:24]Write to MH i2c: E2 08 00 7E 46 80 13 01 00 00 00 00 00 41 [23:34:24]Write i2c OK [23:34:24]MH_I2C_Read... [23:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:24]Read from MH i2c: E2 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: E2 0E 00 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: E2 0E 00 7E 46 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 C0 [23:34:24]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [23:34:24]wFMCommunicate OK [23:34:24]SAM_PROTO_GetShiftState done [23:34:24]FM_GetShiftState done [23:34:24]req_shift_opened done [23:34:24]requested_item shift.open_date is exist - process it [23:34:24]req_shift_open_date [23:34:24]req_shift_open_date done [23:34:24]produce_requested_data done [23:34:24]produce_requested_data return {"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123144,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066} [23:34:24]process_action_free get_value [23:34:24]json_value_free [23:34:24]json_value_free done [23:34:24]process_json_proto returns [23:34:24]Send response to host [23:34:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123144,"shift.num":556,"shift.opened":1,"shift.open_date":1732493066}}} [23:34:24]free response buf [23:34:24]execute_script done [23:34:24]execute_script returns [23:34:24]free content buf [23:34:24]Sock 10.Close socket [23:34:24]Sock 10.Thread stoped [23:34:24]accept exits with 7 [23:34:24]New connection [23:34:24]New thread 3066723684 created [23:34:24]Thread 3066580324 joined [23:34:24]Waiting for new connection... [23:34:24] Sock 7.Parse request [23:34:24]Sock 7.Check first char [23:34:24]Sock 7.First char is OK [23:34:24]request: POST /json_proto HTTP/1.0 [23:34:24]Method: POST [23:34:24]URL: /json_proto [23:34:24]Method is POST - this is cgi request [23:34:24]url: /json_proto [23:34:24]query_string will be loaded in cgi processing [23:34:24]execute_cgi json_proto POST (null) [23:34:24]execute_cgi path=json_proto method=POST [23:34:24]POST find Content-Length [23:34:24]Host: 172.17.37.4:8080 [23:34:24]Content-Length: 331 [23:34:24]Content-Type: application/json [23:34:24] [23:34:24]POST finish read [23:34:24]Found Content-Length = 331 [23:34:24]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:34:24]execute_script... [23:34: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:34:24]POST & json_proto [23:34:24]process_json_proto [23:34:24]json parsed OK: [23:34:24]protocol is kg_v1.0 [23:34:24]action value=get_value [23:34:24]process_action get_value [23:34:24]cmd_get_value [23:34:24]process_action get_value done [23:34:24]requested_data is exist [23:34:24]produce_requested_data [23:34:24]requested_item fm.sale.total is exist - process it [23:34:24]SAM_PROTO_GetFMData [23:34:24]wFMCommunicate request_size=4 [23:34:24]MH_SAM_APDU [23:34:24]CAPDU: 80 13 03 00 [23:34:24]Write to MH i2c: E2 08 00 7F 46 80 13 03 00 00 00 00 00 44 [23:34:24]Write i2c OK [23:34:24]MH_I2C_Read... [23:34:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:34:25]Read from MH i2c: E2 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 FD 00 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 FD 00 7F 46 00 C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 AD [23:34:25]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 [23:34:25]wFMCommunicate OK [23:34:25]wFMCommunicate request_size=4 [23:34:25]MH_SAM_APDU [23:34:25]CAPDU: 80 17 00 00 [23:34:25]Write to MH i2c: E2 08 00 80 46 80 17 00 00 00 00 00 00 46 [23:34:25]Write i2c OK [23:34:25]MH_I2C_Read... [23:34:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:25]Read from MH i2c: E2 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 FD 00 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 FD 00 80 46 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 D4 [23:34:25]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:34:25]wFMCommunicate OK [23:34:25]wFMCommunicate request_size=4 [23:34:25]MH_SAM_APDU [23:34:25]CAPDU: 80 17 00 00 [23:34:25]Write to MH i2c: E2 08 00 81 46 80 17 00 00 00 00 00 00 47 [23:34:25]Write i2c OK [23:34:25]MH_I2C_Read... [23:34:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:25]Read from MH i2c: E2 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 FD 00 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 FD 00 81 46 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 59 [23:34:25]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:34:25]wFMCommunicate OK [23:34:25]wFMCommunicate request_size=4 [23:34:25]MH_SAM_APDU [23:34:25]CAPDU: 80 17 00 00 [23:34:25]Write to MH i2c: E2 08 00 82 46 80 17 00 00 00 00 00 00 48 [23:34:25]Write i2c OK [23:34:25]MH_I2C_Read... [23:34:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:26]Read from MH i2c: E2 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 FD 00 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 FD 00 82 46 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D4 [23:34:26]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:34:26]wFMCommunicate OK [23:34:26]wFMCommunicate request_size=4 [23:34:26]MH_SAM_APDU [23:34:26]CAPDU: 80 17 00 00 [23:34:26]Write to MH i2c: E2 08 00 83 46 80 17 00 00 00 00 00 00 49 [23:34:26]Write i2c OK [23:34:26]MH_I2C_Read... [23:34:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:34:26]Read from MH i2c: E2 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 E2 00 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 E2 00 83 46 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 27 [23:34:26]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:34:26]wFMCommunicate OK [23:34:26]SAM_PROTO_GetFMData done [23:34:26]requested_item fm.sale_refund.total is exist - process it [23:34:26]requested_item fm.buy.total is exist - process it [23:34:26]requested_item shift.sale.total is exist - process it [23:34:26]SAM_PROTO_GetShiftData [23:34:26]wFMCommunicate request_size=4 [23:34:26]MH_SAM_APDU [23:34:26]CAPDU: 80 13 02 00 [23:34:26]Write to MH i2c: E2 08 00 84 46 80 13 02 00 00 00 00 00 48 [23:34:26]OFD Sender: No OFD packet to send [23:34:26]Write i2c OK [23:34:26]MH_I2C_Read... [23:34:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:34:27]Read from MH i2c: E2 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 FD 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 FD 00 84 46 00 B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 4D [23:34:27]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [23:34:27]wFMCommunicate OK [23:34:27]wFMCommunicate request_size=4 [23:34:27]MH_SAM_APDU [23:34:27]CAPDU: 80 17 00 00 [23:34:27]Write to MH i2c: E2 08 00 85 46 80 17 00 00 00 00 00 00 4B [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:27]Read from MH i2c: E2 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 FD 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 FD 00 85 46 00 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [23:34:27]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:34:27]wFMCommunicate OK [23:34:27]wFMCommunicate request_size=4 [23:34:27]MH_SAM_APDU [23:34:27]CAPDU: 80 17 00 00 [23:34:27]Write to MH i2c: E2 08 00 86 46 80 17 00 00 00 00 00 00 4C [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 FD 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 FD 00 86 46 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [23:34:28]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:34:28]wFMCommunicate OK [23:34:28]wFMCommunicate request_size=4 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 17 00 00 [23:34:28]Write to MH i2c: E2 08 00 87 46 80 17 00 00 00 00 00 00 4D [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 FD 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 FD 00 87 46 00 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 90 00 BC [23:34:28]RAPDU: 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 90 00 [23:34:28]wFMCommunicate OK [23:34:28]wFMCommunicate request_size=4 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 17 00 00 [23:34:28]Write to MH i2c: E2 08 00 88 46 80 17 00 00 00 00 00 00 4E [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:34:29]Read from MH i2c: E2 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 D3 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 D3 00 88 46 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B [23:34:29]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34:29]wFMCommunicate OK [23:34:29]SAM_PROTO_GetShiftData done [23:34:29]requested_item shift.sale.total_cash is exist - process it [23:34:29]requested_item shift.sale_refund.total is exist - process it [23:34:29]requested_item shift.sale_refund.total_cash is exist - process it [23:34:29]requested_item shift.buy.total is exist - process it [23:34:29]requested_item shift.buy.total_cash is exist - process it [23:34:29]produce_requested_data done [23:34:29]produce_requested_data return {"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:34:29]process_action_free get_value [23:34:29]json_value_free [23:34:29]json_value_free done [23:34:29]process_json_proto returns [23:34:29]Send response to host [23:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:34:29]free response buf [23:34:29]execute_script done [23:34:29]execute_script returns [23:34:29]free content buf [23:34:29]Sock 7.Close socket [23:34:29]Sock 7.Thread stoped [23:34:29]accept exits with 10 [23:34:29]New connection [23:34:29]New thread 3066580324 created [23:34:29]Thread 3066723684 joined [23:34:29]Waiting for new connection... [23:34:29] Sock 10.Parse request [23:34:29]Sock 10.Check first char [23:34:29]Sock 10.First char is OK [23:34:29]request: POST /json_proto HTTP/1.0 [23:34:29]Method: POST [23:34:29]URL: /json_proto [23:34:29]Method is POST - this is cgi request [23:34:29]url: /json_proto [23:34:29]query_string will be loaded in cgi processing [23:34:29]execute_cgi json_proto POST (null) [23:34:29]execute_cgi path=json_proto method=POST [23:34:29]POST find Content-Length [23:34:29]Host: 172.17.37.4:8080 [23:34:29]Content-Length: 331 [23:34:29]Content-Type: application/json [23:34:29] [23:34:29]POST finish read [23:34:29]Found Content-Length = 331 [23:34:29]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:34:29]execute_script... [23:34:29]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:34:29]POST & json_proto [23:34:29]process_json_proto [23:34:29]json parsed OK: [23:34:29]protocol is kg_v1.0 [23:34:29]action value=get_value [23:34:29]process_action get_value [23:34:29]cmd_get_value [23:34:29]process_action get_value done [23:34:29]requested_data is exist [23:34:29]produce_requested_data [23:34:29]requested_item fm.sale.total is exist - process it [23:34:29]SAM_PROTO_GetFMData [23:34:29]wFMCommunicate request_size=4 [23:34:29]MH_SAM_APDU [23:34:29]CAPDU: 80 13 03 00 [23:34:29]Write to MH i2c: E2 08 00 89 46 80 13 03 00 00 00 00 00 4E [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:34:29]Read from MH i2c: E2 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 FD 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 FD 00 89 46 00 C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 B7 [23:34:29]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 [23:34:29]wFMCommunicate OK [23:34:29]wFMCommunicate request_size=4 [23:34:29]MH_SAM_APDU [23:34:29]CAPDU: 80 17 00 00 [23:34:29]Write to MH i2c: E2 08 00 8A 46 80 17 00 00 00 00 00 00 50 [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:30]Read from MH i2c: E2 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 FD 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 FD 00 8A 46 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 DE [23:34:30]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:34:30]wFMCommunicate OK [23:34:30]wFMCommunicate request_size=4 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 17 00 00 [23:34:30]Write to MH i2c: E2 08 00 8B 46 80 17 00 00 00 00 00 00 51 [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:30]Read from MH i2c: E2 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 FD 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 FD 00 8B 46 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 63 [23:34:30]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:34:30]wFMCommunicate OK [23:34:30]wFMCommunicate request_size=4 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 17 00 00 [23:34:30]Write to MH i2c: E2 08 00 8C 46 80 17 00 00 00 00 00 00 52 [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 FD 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 FD 00 8C 46 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 DE [23:34:31]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:34:31]wFMCommunicate OK [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 17 00 00 [23:34:31]Write to MH i2c: E2 08 00 8D 46 80 17 00 00 00 00 00 00 53 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 E2 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 E2 00 8D 46 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 31 [23:34:31]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:34:31]wFMCommunicate OK [23:34:31]SAM_PROTO_GetFMData done [23:34:31]requested_item fm.sale_refund.total is exist - process it [23:34:31]requested_item fm.buy.total is exist - process it [23:34:31]requested_item shift.sale.total is exist - process it [23:34:31]SAM_PROTO_GetShiftData [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 13 02 00 [23:34:31]Write to MH i2c: E2 08 00 8E 46 80 13 02 00 00 00 00 00 52 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]OFD Sender: No OFD packet to send [23:34:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:34:32]Read from MH i2c: E2 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 FD 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 FD 00 8E 46 00 B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 57 [23:34:32]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [23:34:32]wFMCommunicate OK [23:34:32]wFMCommunicate request_size=4 [23:34:32]MH_SAM_APDU [23:34:32]CAPDU: 80 17 00 00 [23:34:32]Write to MH i2c: E2 08 00 8F 46 80 17 00 00 00 00 00 00 55 [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:32]Read from MH i2c: E2 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 FD 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 FD 00 8F 46 00 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [23:34:32]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:34:33]wFMCommunicate OK [23:34:33]wFMCommunicate request_size=4 [23:34:33]MH_SAM_APDU [23:34:33]CAPDU: 80 17 00 00 [23:34:33]Write to MH i2c: E2 08 00 90 46 80 17 00 00 00 00 00 00 56 [23:34:33]Write i2c OK [23:34:33]MH_I2C_Read... [23:34:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:33]Read from MH i2c: E2 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 FD 00 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 FD 00 90 46 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 16 [23:34:33]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:34:33]wFMCommunicate OK [23:34:33]wFMCommunicate request_size=4 [23:34:33]MH_SAM_APDU [23:34:33]CAPDU: 80 17 00 00 [23:34:33]Write to MH i2c: E2 08 00 91 46 80 17 00 00 00 00 00 00 57 [23:34:33]Write i2c OK [23:34:33]MH_I2C_Read... [23:34:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:33]Read from MH i2c: E2 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 FD 00 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 FD 00 91 46 00 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 90 00 C6 [23:34:33]RAPDU: 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 90 00 [23:34:34]wFMCommunicate OK [23:34:34]wFMCommunicate request_size=4 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 17 00 00 [23:34:34]Write to MH i2c: E2 08 00 92 46 80 17 00 00 00 00 00 00 58 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 D3 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 D3 00 92 46 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 45 [23:34:34]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34:34]wFMCommunicate OK [23:34:34]SAM_PROTO_GetShiftData done [23:34:34]requested_item shift.sale.total_cash is exist - process it [23:34:34]requested_item shift.sale_refund.total is exist - process it [23:34:34]requested_item shift.sale_refund.total_cash is exist - process it [23:34:34]requested_item shift.buy.total is exist - process it [23:34:34]requested_item shift.buy.total_cash is exist - process it [23:34:34]produce_requested_data done [23:34:34]produce_requested_data return {"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:34:34]process_action_free get_value [23:34:34]json_value_free [23:34:34]json_value_free done [23:34:34]process_json_proto returns [23:34:34]Send response to host [23:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:34:34]free response buf [23:34:34]execute_script done [23:34:34]execute_script returns [23:34:34]free content buf [23:34:34]Sock 10.Close socket [23:34:34]Sock 10.Thread stoped [23:34:34]accept exits with 7 [23:34:34]New connection [23:34:34]New thread 3066723684 created [23:34:34]Thread 3066580324 joined [23:34:34]Waiting for new connection... [23:34:34] Sock 7.Parse request [23:34:34]Sock 7.Check first char [23:34:34]Sock 7.First char is OK [23:34:34]request: POST /json_proto HTTP/1.0 [23:34:34]Method: POST [23:34:34]URL: /json_proto [23:34:34]Method is POST - this is cgi request [23:34:34]url: /json_proto [23:34:34]query_string will be loaded in cgi processing [23:34:34]execute_cgi json_proto POST (null) [23:34:34]execute_cgi path=json_proto method=POST [23:34:34]POST find Content-Length [23:34:34]Host: 172.17.37.4:8080 [23:34:34]Content-Length: 266 [23:34:34]Content-Type: application/json [23:34:34] [23:34:34]POST finish read [23:34:34]Found Content-Length = 266 [23:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0418\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:34]execute_script... [23:34:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0418\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:34]POST & json_proto [23:34:34]process_json_proto [23:34:34]json parsed OK: [23:34:34]protocol is kg_v1.0 [23:34:34]action value=close_shift [23:34:34]process_action close_shift [23:34:34]cmd_close_shift [23:34:34]MH_GetDate [23:34:34]Write to MH i2c: F0 00 00 93 46 C8 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: F0 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: F0 09 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: F0 09 00 93 46 00 92 09 45 67 B8 5A 43 67 D4 [23:34:34]GetLastDocTimeStamp 1732577635 [23:34:34]current date 1732577682 [23:34:34]FM_GetShiftState [23:34:34]SAM_PROTO_GetShiftState [23:34:34]wFMCommunicate request_size=4 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 13 01 00 [23:34:34]Write to MH i2c: E2 08 00 94 46 80 13 01 00 00 00 00 00 57 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 0E 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 0E 00 94 46 00 09 00 01 0A BF 43 67 00 00 00 00 90 00 D6 [23:34:34]RAPDU: 09 00 01 0A BF 43 67 00 00 00 00 90 00 [23:34:34]wFMCommunicate OK [23:34:34]SAM_PROTO_GetShiftState done [23:34:34]FM_GetShiftState done [23:34:34]KKMCreateCloseShiftDocument [23:34:34]Load OK [23:34:34]Malloc new data [23:34:34]MH_GetDate [23:34:34]Write to MH i2c: F0 00 00 95 46 CA [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: F0 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: F0 09 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: F0 09 00 95 46 00 92 09 45 67 B8 5A 43 67 D6 [23:34:34]Malloc new data [23:34:34]Malloc new data [23:34:34]Malloc new data [23:34:34]Malloc new data [23:34:34]KKMCreateCloseShiftDocument OK [23:34:34]KKMSetCloseShiftData OK [23:34:34]ProcessDocumentItem done err = 0, tmpTLVsize=73 [23:34:34]tlvbuf is 01FC3720 [23:34:34]KKMLoadAndSignCloseShiftData [23:34:34]SAM_PROTO_ProcessDocument [23:34:34]wFMCommunicate request_size=9 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 15 01 00 04 05 00 49 00 [23:34:34]Write to MH i2c: E2 0C 00 96 46 80 15 01 00 04 00 05 00 49 00 00 00 B1 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 03 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 03 00 96 46 00 90 00 50 [23:34:34]RAPDU: 90 00 [23:34:34]wFMCommunicate OK [23:34:34]wFMCommunicate request_size=23 [23:34:34]MH_SAM_APDU [23:34:34]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:34:34]Write to MH i2c: E2 1A 00 97 46 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 52 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 03 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 03 00 97 46 00 90 00 51 [23:34:34]RAPDU: 90 00 [23:34:34]wFMCommunicate OK [23:34:34]wFMCommunicate request_size=32 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 98 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 94 2E 20 [23:34:34]Write to MH i2c: E2 23 00 98 46 80 15 02 00 1B 00 FD 03 17 00 D0 98 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 94 2E 20 00 00 F0 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 98 46 00 90 00 52 [23:34:35]RAPDU: 90 00 [23:34:35]wFMCommunicate OK [23:34:35]wFMCommunicate request_size=13 [23:34:35]MH_SAM_APDU [23:34:35]CAPDU: 80 15 02 00 08 F4 03 04 00 92 09 45 67 [23:34:35]Write to MH i2c: E2 10 00 99 46 80 15 02 00 08 00 F4 03 04 00 92 09 45 67 00 00 B1 [23:34:35]Write i2c OK [23:34:35]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 99 46 00 90 00 53 [23:34:35]RAPDU: 90 00 [23:34:35]wFMCommunicate OK [23:34:35]wFMCommunicate request_size=25 [23:34:35]MH_SAM_APDU [23:34:35]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 [23:34:35]Write to MH i2c: E2 1C 00 9A 46 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 00 00 C3 [23:34:35]Write i2c OK [23:34:35]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 9A 46 00 90 00 54 [23:34:35]RAPDU: 90 00 [23:34:35]wFMCommunicate OK [23:34:35]wFMCommunicate request_size=4 [23:34:35]MH_SAM_APDU [23:34:35]CAPDU: 80 15 03 00 [23:34:35]Write to MH i2c: E2 08 00 9B 46 80 15 03 00 00 00 00 00 62 [23:34:35]Write i2c OK [23:34:35]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 FD 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 FD 00 9B 46 00 F9 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 09 E1 01 00 0E 04 04 00 2C 02 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 90 00 67 [23:34:35]RAPDU: F9 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 09 E1 01 00 0E 04 04 00 2C 02 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 90 00 [23:34:36]wFMCommunicate OK [23:34:36]SAM_PROTO_ProcessDocument answer len = 1273 [23:34:36]SAM_PROTO_ProcessDocument remain to read = 1025 [23:34:36]wFMCommunicate request_size=4 [23:34:36]MH_SAM_APDU [23:34:36]CAPDU: 80 17 00 00 [23:34:36]Write to MH i2c: E2 08 00 9C 46 80 17 00 00 00 00 00 00 62 [23:34:36]Write i2c OK [23:34:36]MH_I2C_Read... [23:34:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:36]Read from MH i2c: E2 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: E2 FD 00 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: E2 FD 00 9C 46 00 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 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 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 16 [23:34:36]RAPDU: 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 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 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:34:36]wFMCommunicate OK [23:34:36]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:34:36]SAM_PROTO_ProcessDocument remain to read = 775 [23:34:36]wFMCommunicate request_size=4 [23:34:36]MH_SAM_APDU [23:34:36]CAPDU: 80 17 00 00 [23:34:36]Write to MH i2c: E2 08 00 9D 46 80 17 00 00 00 00 00 00 63 [23:34:36]Write i2c OK [23:34:36]MH_I2C_Read... [23:34:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:36]Read from MH i2c: E2 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: E2 FD 00 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: E2 FD 00 9D 46 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C5 [23:34:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 OFD Sender: No OFD packet to send [23:34:37]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 90 00 [23:34:37]wFMCommunicate OK [23:34:37]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:34:37]SAM_PROTO_ProcessDocument remain to read = 525 [23:34:37]wFMCommunicate request_size=4 [23:34:37]MH_SAM_APDU [23:34:37]CAPDU: 80 17 00 00 [23:34:37]Write to MH i2c: E2 08 00 9E 46 80 17 00 00 00 00 00 00 64 [23:34:37]Write i2c OK [23:34:37]MH_I2C_Read... [23:34:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:37]Read from MH i2c: E2 [23:34:37]MH_I2C_Read... [23:34:37]Read from MH i2c: E2 FD 00 [23:34:37]MH_I2C_Read... [23:34:37]Read from MH i2c: E2 FD 00 9E 46 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7D [23:34:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:34:37]wFMCommunicate OK [23:34:37]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:34:37]SAM_PROTO_ProcessDocument remain to read = 275 [23:34:37]wFMCommunicate request_size=4 [23:34:37]MH_SAM_APDU [23:34:37]CAPDU: 80 17 00 00 [23:34:37]Write to MH i2c: E2 08 00 9F 46 80 17 00 00 00 00 00 00 65 [23:34:37]Write i2c OK [23:34:37]MH_I2C_Read... [23:34:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:38]Read from MH i2c: E2 [23:34:38]MH_I2C_Read... [23:34:38]Read from MH i2c: E2 FD 00 [23:34:38]MH_I2C_Read... [23:34:38]Read from MH i2c: E2 FD 00 9F 46 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [23:34:38]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 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 90 00 [23:34:38]wFMCommunicate OK [23:34:38]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:34:38]SAM_PROTO_ProcessDocument remain to read = 25 [23:34:38]wFMCommunicate request_size=4 [23:34:38]MH_SAM_APDU [23:34:38]CAPDU: 80 17 00 00 [23:34:38]Write to MH i2c: E2 08 00 A0 46 80 17 00 00 00 00 00 00 66 [23:34:38]Write i2c OK [23:34:38]MH_I2C_Read... [23:34:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 25! [23:34:38]Read from MH i2c: E2 [23:34:38]MH_I2C_Read... [23:34:38]Read from MH i2c: E2 1C 00 [23:34:38]MH_I2C_Read... [23:34:38]Read from MH i2c: E2 1C 00 A0 46 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 AD A5 35 30 16 07 90 00 7B [23:34:38]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 AD A5 35 30 16 07 90 00 [23:34:38]wFMCommunicate OK [23:34:38]SAM_PROTO_ProcessDocument received (without SW) 25 bytes [23:34:38]SAM_PROTO_ProcessDocument done [23:34:38]1209 (1) - 1.0 - номер версии ФФД [23:34:38]1041 (16) - 0000000000874881 - номер ФМ [23:34:38]1040 (4) - 123145 - номер ФД [23:34:38]1038 (4) - 556 - номер смены [23:34:38]1118 (4) - 185 - количество кассовых чеков за смену [23:34:38]1111 (4) - 187 - общее количество ФД за смену [23:34:38]1194 (1202) - счетчики итогов смены [23:34:38] 1134 (4) - 185 - количество чеков со всеми признаками расчетов [23:34:38] 1129 (156) - счетчики операций «приход» [23:34:38] 1135 (4) - 184 - количество чеков по признаку расчетов [23:34:38] 1201 (3) - 126943.26 - общая итоговая сумма в чеках [23:34:38] 1136 (3) - 96678.00 - итоговая сумма в чеках наличными [23:34:38] 1138 (3) - 30265.26 - итоговая сумма в чеках безналичными [23:34:38] 1024 (123) - суммы налогов [23:34:38] 1006 (9) - суммы НДС [23:34:38] 1010 (1) - 0% - код ставки НДС [23:34:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:34:38] 1006 (12) - суммы НДС [23:34:38] 1010 (1) - 12% - код ставки НДС [23:34:38] 1011 (3) - 13485.14 - сумма НДС по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 0% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (12) - суммы НСП [23:34:38] 1014 (1) - 1% - код ставки НСП [23:34:38] 1015 (3) - 1123.68 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 2% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 3% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 5% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 0,50% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 1,50% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1130 (148) - счетчики операций «возврат прихода» [23:34:38] 1135 (4) - 1 - количество чеков по признаку расчетов [23:34:38] 1201 (2) - 67.00 - общая итоговая сумма в чеках [23:34:38] 1136 (2) - 67.00 - итоговая сумма в чеках наличными [23:34:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:34:38] 1024 (120) - суммы налогов [23:34:38] 1006 (9) - суммы НДС [23:34:38] 1010 (1) - 0% - код ставки НДС [23:34:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:34:38] 1006 (11) - суммы НДС [23:34:38] 1010 (1) - 12% - код ставки НДС [23:34:38] 1011 (2) - 7.16 - сумма НДС по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 0% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (10) - суммы НСП [23:34:38] 1014 (1) - 1% - код ставки НСП [23:34:38] 1015 (1) - 0.60 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 2% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 3% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 5% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 0,50% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 1,50% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1131 (141) - счетчики операций «расход» [23:34:38] 1135 (4) - 0 - количество чеков по признаку расчетов [23:34:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:34:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:34:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:34:38] 1024 (117) - суммы налогов [23:34:38] 1006 (9) - суммы НДС [23:34:38] 1010 (1) - 0% - код ставки НДС [23:34:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:34:38] 1006 (9) - суммы НДС [23:34:38] 1010 (1) - 12% - код ставки НДС [23:34:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 0% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 1% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 2% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 3% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 5% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 0,50% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 1,50% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1132 (141) - счетчики операций «возврат расхода» [23:34:38] 1135 (4) - 0 - количество чеков по признаку расчетов [23:34:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:34:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:34:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:34:38] 1024 (117) - суммы налогов [23:34:38] 1006 (9) - суммы НДС [23:34:38] 1010 (1) - 0% - код ставки НДС [23:34:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:34:38] 1006 (9) - суммы НДС [23:34:38] 1010 (1) - 12% - код ставки НДС [23:34:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 0% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 1% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 2% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 3% - код ставки НСП [23:34:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:38] 1007 (9) - суммы НСП [23:34:38] 1014 (1) - 5% - код ставки НСП [23:34:39] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:39] 1007 (9) - суммы НСП [23:34:39] 1014 (1) - 0,50% - код ставки НСП [23:34:39] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:39] 1007 (9) - суммы НСП [23:34:39] 1014 (1) - 1,50% - код ставки НСП [23:34:39] 1015 (0) - 0.00 - сумма НСП по ставке [23:34:39] 1133 (588) - - счетчики коррекции - не используются [23:34:39]1077 (6) - 190925073552903 - ФПД [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1209 (04B9) [23:34:39]Malloc new data [23:34:39]Processing tag 1041 (0411) [23:34:39]Processing tag 1040 (0410) [23:34:39]Malloc new data [23:34:39]Processing tag 1038 (040E) [23:34:39]Malloc new data [23:34:39]Processing tag 1118 (045E) [23:34:39]Malloc new data [23:34:39]Processing tag 1111 (0457) [23:34:39]Malloc new data [23:34:39]Processing tag 1194 (04AA) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1134 (046E) [23:34:39]Malloc new data [23:34:39]Processing tag 1129 (0469) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1135 (046F) [23:34:39]Malloc new data [23:34:39]Processing tag 1201 (04B1) [23:34:39]Malloc new data [23:34:39]Processing tag 1136 (0470) [23:34:39]Malloc new data [23:34:39]Processing tag 1138 (0472) [23:34:39]Malloc new data [23:34:39]Processing tag 1024 (0400) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1006 (03EE) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1010 (03F2) [23:34:39]Malloc new data [23:34:39]Processing tag 1011 (03F3) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1006 (03EE) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1010 (03F2) [23:34:39]Malloc new data [23:34:39]Processing tag 1011 (03F3) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]SetTLVBufToDocument err=0 [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1130 (046A) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1135 (046F) [23:34:39]Malloc new data [23:34:39]Processing tag 1201 (04B1) [23:34:39]Malloc new data [23:34:39]Processing tag 1136 (0470) [23:34:39]Malloc new data [23:34:39]Processing tag 1138 (0472) [23:34:39]Malloc new data [23:34:39]Processing tag 1024 (0400) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1006 (03EE) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1010 (03F2) [23:34:39]Malloc new data [23:34:39]Processing tag 1011 (03F3) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1006 (03EE) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1010 (03F2) [23:34:39]Malloc new data [23:34:39]Processing tag 1011 (03F3) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]SetTLVBufToDocument err=0 [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1131 (046B) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1135 (046F) [23:34:39]Malloc new data [23:34:39]Processing tag 1201 (04B1) [23:34:39]Malloc new data [23:34:39]Processing tag 1136 (0470) [23:34:39]Malloc new data [23:34:39]Processing tag 1138 (0472) [23:34:39]Malloc new data [23:34:39]Processing tag 1024 (0400) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1006 (03EE) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1010 (03F2) [23:34:39]Malloc new data [23:34:39]Processing tag 1011 (03F3) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1006 (03EE) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1010 (03F2) [23:34:39]Malloc new data [23:34:39]Processing tag 1011 (03F3) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]SetTLVBufToDocument err=0 [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1132 (046C) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1135 (046F) [23:34:39]Malloc new data [23:34:39]Processing tag 1201 (04B1) [23:34:39]Malloc new data [23:34:39]Processing tag 1136 (0470) [23:34:39]Malloc new data [23:34:39]Processing tag 1138 (0472) [23:34:39]Malloc new data [23:34:39]Processing tag 1024 (0400) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1006 (03EE) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1010 (03F2) [23:34:39]Malloc new data [23:34:39]Processing tag 1011 (03F3) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1006 (03EE) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1010 (03F2) [23:34:39]Malloc new data [23:34:39]Processing tag 1011 (03F3) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1007 (03EF) [23:34:39]Load OK [23:34:39]SetTLVBufToDocument [23:34:39]Processing tag 1014 (03F6) [23:34:39]Malloc new data [23:34:39]Processing tag 1015 (03F7) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]SetTLVBufToDocument err=0 [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1133 (046D) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Processing tag 1077 (0435) [23:34:39]Malloc new data [23:34:39]SetTLVBufToDocument err=0 [23:34:39]Malloc new data [23:34:39]SAM_PROTO_GetFMData [23:34:39]wFMCommunicate request_size=4 [23:34:39]MH_SAM_APDU [23:34:39]CAPDU: 80 13 03 00 [23:34:39]Write to MH i2c: E2 08 00 A1 46 80 13 03 00 00 00 00 00 66 [23:34:39]Write i2c OK [23:34:39]MH_I2C_Read... [23:34:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:34:40]Read from MH i2c: E2 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 FD 00 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 FD 00 A1 46 00 C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 CF [23:34:40]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 [23:34:40]wFMCommunicate OK [23:34:40]wFMCommunicate request_size=4 [23:34:40]MH_SAM_APDU [23:34:40]CAPDU: 80 17 00 00 [23:34:40]Write to MH i2c: E2 08 00 A2 46 80 17 00 00 00 00 00 00 68 [23:34:40]Write i2c OK [23:34:40]MH_I2C_Read... [23:34:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:40]Read from MH i2c: E2 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 FD 00 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 FD 00 A2 46 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F6 [23:34:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:34:41]wFMCommunicate OK [23:34:41]wFMCommunicate request_size=4 [23:34:41]MH_SAM_APDU [23:34:41]CAPDU: 80 17 00 00 [23:34:41]Write to MH i2c: E2 08 00 A3 46 80 17 00 00 00 00 00 00 69 [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:41]Read from MH i2c: E2 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 FD 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 FD 00 A3 46 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7B [23:34:41]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:34:41]wFMCommunicate OK [23:34:41]wFMCommunicate request_size=4 [23:34:41]MH_SAM_APDU [23:34:41]CAPDU: 80 17 00 00 [23:34:41]Write to MH i2c: E2 08 00 A4 46 80 17 00 00 00 00 00 00 6A [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:34:42]Read from MH i2c: E2 [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: E2 FD 00 [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: E2 FD 00 A4 46 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F6 [23:34:42]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 OFD Sender: No OFD packet to send [23:34:42]03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:34:42]wFMCommunicate OK [23:34:42]wFMCommunicate request_size=4 [23:34:42]MH_SAM_APDU [23:34:42]CAPDU: 80 17 00 00 [23:34:42]Write to MH i2c: E2 08 00 A5 46 80 17 00 00 00 00 00 00 6B [23:34:42]Write i2c OK [23:34:42]MH_I2C_Read... [23:34:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:34:42]Read from MH i2c: E2 [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: E2 E2 00 [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: E2 E2 00 A5 46 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 49 [23:34:42]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:34:43]wFMCommunicate OK [23:34:43]SAM_PROTO_GetFMData done [23:34:43]Malloc new data [23:34:43]Malloc new data [23:34:43]Malloc new data [23:34:43]Malloc new data [23:34:43]KKMLoadAndSignCloseShiftData err=0 [23:34:43]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ишенбеков Д. 25.11.2024 23:34 Смена: 556 РНМ: 0000000000092681 ЗНМ: 0300000033 СНО: Общий режим Чеков за смену: 185 ФД за смену: 187 Всего чеков: 185 ИТОГИ ПРИХОД Чеков: 184 Общий итог: 126943.26 Итого наличными: 96678.00 Итого безнал.: 30265.26 НДС 0% : 0.00 НДС 12% : 13485.14 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1123.68 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 67.00 Итого наличными: 67.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 7.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.60 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 96611.00 НС Приход: 97407139.03 НС Возвр.Прихода: 6498614.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 123145 ФМ: 0000000000874881 ФПД: 190925073552903 [23:34:43]StoreToDocumentArchive [23:34:43]shift 556 fd 123145 [23:34:43]save to /storage/0556/doc_00123145 [23:34:43]save last doc name /storage/0556/doc_00123145 to /storage/kkm_last_doc_name [23:34:43]save OK [23:34:43]Clear old archive folders... [23:34:43]Remove dir /storage/0522 [23:34:43]opendir ok [23:34:43]file . [23:34:43]file .. [23:34:43]file doc_1732577642 [23:34:43]remove file /storage/0522/doc_1732577642 [23:34:43]remove dir /storage/0522 [23:34:43]NVStorageSaveData kkm_registers [23:34:43]File name is /storage/kkm_registers [23:34:43]Write 24 bytes [23:34:43]NVStorageSaveData done [23:34:43]NVStorageSaveData kkm_registers [23:34:43]File name is /storage/kkm_registers [23:34:43]Write 24 bytes [23:34:43]NVStorageSaveData done [23:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [23:34:43]tlvbuf is 0204DD40 [23:34:43]SAM_PROTO_ClearQueue [23:34:43]wFMCommunicate request_size=4 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 09 00 00 [23:34:43]Write to MH i2c: E2 08 00 A6 46 80 09 00 00 00 00 00 00 5E [23:34:43]Write i2c OK [23:34:43]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 03 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 03 00 A6 46 00 90 00 60 [23:34:43]RAPDU: 90 00 [23:34:43]wFMCommunicate OK [23:34:43]SAM_PROTO_ClearQueue done [23:34:43]KKMCreateOFDPacket [23:34:43]OFDProtocolAddRootSTLVToBuf [23:34:43]FM_MakeSignedData [23:34:43]FM_MakeSignedData [23:34:43]SAM_PROTO_SignData [23:34:43]wFMCommunicate request_size=4 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 0D 01 02 [23:34:43]Write to MH i2c: E2 08 00 A7 46 80 0D 01 02 00 00 00 00 66 [23:34:43]Write i2c OK [23:34:43]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 03 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 03 00 A7 46 00 90 00 61 [23:34:43]RAPDU: 90 00 [23:34:43]wFMCommunicate OK [23:34:43]wFMCommunicate request_size=255 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 0D 02 02 FA 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 98 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 94 2E 20 F4 03 04 00 92 09 45 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 AA 04 D9 04 6E 04 04 00 B9 00 00 00 69 04 A3 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [23:34:43]Write to MH i2c: E2 02 01 A8 46 80 0D 02 02 FA 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 98 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 94 2E 20 F4 03 04 00 92 09 45 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 AA 04 D9 04 6E 04 04 00 B9 00 00 00 69 04 A3 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 1A [23:34:43]Write i2c OK [23:34:43]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 03 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 03 00 A8 46 00 90 00 62 [23:34:43]RAPDU: 90 00 [23:34:43]wFMCommunicate OK [23:34:43]wFMCommunicate request_size=255 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 0D 02 02 FA 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 F0 B6 01 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 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 3C 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 [23:34:44]Write to MH i2c: E2 02 01 A9 46 80 0D 02 02 FA 00 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 F0 B6 01 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 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 3C 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 00 00 17 [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:44]Read from MH i2c: E2 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 A9 46 00 90 00 63 [23:34:44]RAPDU: 90 00 [23:34:44]wFMCommunicate OK [23:34:44]wFMCommunicate request_size=255 [23:34:44]MH_SAM_APDU [23:34:44]CAPDU: 80 0D 02 02 FA 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 [23:34:44]Write to MH i2c: E2 02 01 AA 46 80 0D 02 02 FA 00 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 00 00 30 [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:45]Read from MH i2c: E2 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 AA 46 00 90 00 64 [23:34:45]RAPDU: 90 00 [23:34:45]wFMCommunicate OK [23:34:45]wFMCommunicate request_size=255 [23:34:45]MH_SAM_APDU [23:34:45]CAPDU: 80 0D 02 02 FA 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 [23:34:45]Write to MH i2c: E2 02 01 AB 46 80 0D 02 02 FA 00 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 00 00 3A [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:46]Read from MH i2c: E2 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 03 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 03 00 AB 46 00 90 00 65 [23:34:46]RAPDU: 90 00 [23:34:46]wFMCommunicate OK [23:34:46]wFMCommunicate request_size=255 [23:34:46]MH_SAM_APDU [23:34:46]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:34:46]Write to MH i2c: E2 02 01 AC 46 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 FB [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:46]Read from MH i2c: E2 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 03 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 03 00 AC 46 00 90 00 66 [23:34:46]RAPDU: 90 00 [23:34:46]wFMCommunicate OK [23:34:46]wFMCommunicate request_size=144 [23:34:46]MH_SAM_APDU [23:34:46]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 09 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 AD A5 35 30 16 07 [23:34:46]Write to MH i2c: E2 93 00 AD 46 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 09 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 AD A5 35 30 16 07 00 00 6D [23:34:47]Write i2c OK [23:34:47]MH_I2C_Read... [23:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:47]Read from MH i2c: E2 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: E2 03 00 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: E2 03 00 AD 46 00 90 00 67 [23:34:47]RAPDU: 90 00 [23:34:47]wFMCommunicate OK [23:34:47]wFMCommunicate request_size=4 [23:34:47]MH_SAM_APDU [23:34:47]CAPDU: 80 0D 03 02 [23:34:47]Write to MH i2c: E2 08 00 AE 46 80 0D 03 02 00 00 00 00 6F [23:34:47]Write i2c OK [23:34:47]MH_I2C_Read... [23:34:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:47]Read from MH i2c: E2 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: E2 0B 00 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: E2 0B 00 AE 46 00 88 2D EB 94 13 02 94 A6 90 00 F3 [23:34:47]RAPDU: 88 2D EB 94 13 02 94 A6 90 00 [23:34:47]wFMCommunicate OK [23:34:47]SAM_PROTO_SignData done [23:34:47]FM_MakeSignedData done [23:34:47]CreateOFDProtocolMessage [23:34:47]wFMCommunicate request_size=4 [23:34:47]MH_SAM_APDU [23:34:47]CAPDU: 80 11 00 00 [23:34:47]Write to MH i2c: E2 08 00 AF 46 80 11 00 00 00 00 00 00 6F [23:34:47]Write i2c OK [23:34:47]MH_I2C_Read... [23:34:47]OFD Sender: No OFD packet to send [23:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:47]Read from MH i2c: E2 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: E2 17 00 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: E2 17 00 AF 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C6 [23:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:34:47]wFMCommunicate OK [23:34:47]CreateOFDProtocolMessage done [23:34:47]OFDSenderStorePacket 123145 [23:34:47]StoreOFDPacket docnum=123145 [23:34:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 7D 05 00 00 18 F2 75 05 A1 FA 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 98 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 94 2E 20 F4 03 04 00 92 09 45 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 AA 04 D9 04 6E 04 04 00 B9 00 00 00 69 04 A3 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 01 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 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 3C 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 09 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 AD A5 35 30 16 07 88 2D EB 94 13 02 94 A6 [23:34:47]CheckFolder [23:34:47]dirname=/storage/ofd_packets [23:34:47]CheckFolder done [23:34:47]ProducePacketName [23:34:47]name=ofd_packets/00123145 [23:34:47]NVStorageSaveData ofd_packets/00123145 [23:34:47]File name is /storage/ofd_packets/00123145 [23:34:47]Write 1435 bytes [23:34:47]NVStorageSaveData done [23:34:47]OFDSenderStorePacket done [23:34:47]KKMCreateOFDPacket done [23:34:47]NVStorageSaveData kkm_last_timestamp [23:34:47]File name is /storage/kkm_last_timestamp [23:34:47]Write 4 bytes [23:34:47]NVStorageSaveData done [23:34:47]ExternCall_PrintAddStr [23:34:47]wPrintStart [23:34:47]Write to MH i2c: 01 00 00 B0 46 F6 [23:34:47]Write i2c OK [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: 01 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: 01 07 00 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: 01 07 00 B0 46 00 00 00 00 00 FF 0F 0B [23:34:47]RasterBufferAndPrint [23:34:47]line Отчет о закрытии смены [23:34:47]line ФФД: 1.0 [23:34:47]line ИНН: 02508201610067 [23:34:47]line Кассир: Ишенбеков Д. [23:34:47]line 25.11.2024 23:34 [23:34:47]line Смена: 556 [23:34:47]line РНМ: 0000000000092681 [23:34:47]line ЗНМ: 0300000033 [23:34:47]line СНО: Общий режим [23:34:47]line Чеков за смену: 185 [23:34:47]line ФД за смену: 187 [23:34:47]line Всего чеков: 185 [23:34:47]line ИТОГИ ПРИХОД [23:34:47]line Чеков: 184 [23:34:47]line Общий итог: 126943.26 [23:34:47]line Итого наличными: 96678.00 [23:34:47]line Итого безнал.: 30265.26 [23:34:47]line НДС 0% : 0.00 [23:34:47]line НДС 12% : 13485.14 [23:34:47]line НСП 0% : 0.00 [23:34:47]line НСП 1,50% : 0.00 [23:34:47]line НСП 0,50% : 0.00 [23:34:47]line НСП 5% : 0.00 [23:34:47]line НСП 3% : 0.00 [23:34:47]line НСП 2% : 0.00 [23:34:47]line НСП 1% : 1123.68 [23:34:47]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:34:47]line Чеков: 1 [23:34:47]line Общий итог: 67.00 [23:34:47]line Итого наличными: 67.00 [23:34:47]line Итого безнал.: 0.00 [23:34:47]line НДС 0% : 0.00 [23:34:47]line НДС 12% : 7.16 [23:34:47]line НСП 0% : 0.00 [23:34:47]line НСП 1,50% : 0.00 [23:34:47]line НСП 0,50% : 0.00 [23:34:47]line НСП 5% : 0.00 [23:34:47]line НСП 3% : 0.00 [23:34:47]line НСП 2% : 0.00 [23:34:47]line НСП 1% : 0.60 [23:34:47]line ИТОГИ РАСХОД [23:34:47]line Чеков: 0 [23:34:47]line Общий итог: 0.00 [23:34:47]line Итого наличными: 0.00 [23:34:47]line Итого безнал.: 0.00 [23:34:47]line НДС 0% : 0.00 [23:34:47]line НДС 12% : 0.00 [23:34:47]line НСП 0% : 0.00 [23:34:47]line НСП 1,50% : 0.00 [23:34:47]line НСП 0,50% : 0.00 [23:34:47]line НСП 5% : 0.00 [23:34:47]line НСП 3% : 0.00 [23:34:47]line НСП 2% : 0.00 [23:34:47]line НСП 1% : 0.00 [23:34:47]OFD Sender: Processing packet 123145 [packets to send 7, broken 6] [23:34:47]line ИТОГИ ВОЗВРАТ РАСХОДА [23:34:47]ProducePacketName [23:34:47]line Чеков: 0 [23:34:47]name=ofd_packets/00123145 [23:34:47]line Общий итог: 0.00 [23:34:47]OFD Sender: To server: pG, [23:34:47]line Итого наличными: 0.00 [23:34:47]CommunicateWithHost lk.salyk.kg:30040 [23:34:47]line Итого безнал.: 0.00 [23:34:47]ConnectInit lk.salyk.kg [23:34:47]line НДС 0% : 0.00 [23:34:47]line НДС 12% : 0.00 [23:34:47]line НСП 0% : 0.00 [23:34:47]line НСП 1,50% : 0.00 [23:34:47]line НСП 0,50% : 0.00 [23:34:47]line НСП 5% : 0.00 [23:34:47]line НСП 3% : 0.00 [23:34:47]line НСП 2% : 0.00 [23:34:47]line НСП 1% : 0.00 [23:34:47]line Сумма внесений: 0.00 [23:34:47]line Сумма выплат: 0.00 [23:34:47]line Нал. в кассе: 96611.00 [23:34:47]line НС Приход: 97407139.03 [23:34:47]line НС Возвр.Прихода: 6498614.00 [23:34:47]line НС Расход: 0.00 [23:34:47]line НС Возвр.Расхода: 0.00 [23:34:47]line ФД: 123145 [23:34:47]line ФМ: 0000000000874881 [23:34:47]line ФПД: 190925073552903 [23:34:47]written 0, free lines is 4095 [23:34:48]Connected sock=10 [23:34:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 7D 05 00 00 18 F2 75 05 A1 FA 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 98 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 94 2E 20 F4 03 04 00 92 09 45 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 AA 04 D9 04 6E 04 04 00 B9 00 00 00 69 04 A3 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 01 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 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 3C 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 Write to MH i2c: 03 01 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 00 EF 47 03 47 09 [23:34:48]00 Write i2c OK [23:34:48]F6 MH_I2C_Read... [23:34:48]03 01 00 03 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 01 03 [23:34:48]01 MH_I2C_Read... [23:34:48]00 Read from MH i2c: 04 01 F7 07 03 00 00 [23:34:48]00 MH_I2C_Read... [23:34:48]EF 03 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 Read from MH i2c: 04 01 75 07 00 00 EE 00 03 47 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 00 09 00 00 00 F2 00 03 00 01 0C 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 09 00 63 00 [23:34:48]F7 RasterBufferAndPrint [23:34:48]03 line [23:34:48]00 line [23:34:48]00 line [23:34:48]EF line [23:34:48]03 line [23:34:48]09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 written 0, free lines is 2483 [23:34:49]EF 03 09 00 F6 03 01 00 06 MH_Cut [23:34:49]F7 Write to MH i2c: 03 D1 00 01 00 00 7A 07 04 47 8D 01 00 20 6F [23:34:49]04 Write i2c OK [23:34:49]04 MH_I2C_Read... [23:34:49]Read from MH i2c: D1 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: D1 01 00 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: 00 D1 00 01 00 00 00 07 00 47 B1 00 04 1F 00 [23:34:49]00 Write to MH i2c: 70 01 04 00 00 00 00 08 72 47 04 4F 00 [23:34:49]00 00 04 75 00 EE Write i2c OK [23:34:49]03 MH_I2C_Read... [23:34:49]09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 09 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 AD A5 35 30 16 07 88 2D EB 94 13 02 94 A6 [23:34:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 01 AB 47 00 1B 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 09 E1 01 00 F4 03 04 00 63 B5 44 67 B6 04 01 00 00 29 AA 86 7F E8 13 4A 54 [23:34:49]CommunicateWithHost err = 0 [23:34:49]CheckOFDResponse [23:34:49]1017 (14) - 77093643461234 [23:34:49]1041 (16) - 0000000000874881 [23:34:49]1040 (4) - 123145 [23:34:49]1012 (4) - 25.11.2024 17:35 [23:34:49]1206 (1) - 0 [23:34:49]OFD Sender: Remove packet 123145 [23:34:49]ProducePacketName [23:34:49]name=ofd_packets/00123145 [23:34:49]NVStorageDeleteData [23:34:50]OFD Sender: No OFD packet to send [23:34:50]*** Cut start [23:34:50]*** Partial cut [23:34:50]*** CUTSNS_PIN = 1 [23:34:51]*** CUTSNS_PIN = 0 [23:34:51]*** Brake cut motor [23:34:51]Read from MH i2c: 01 [23:34:51]MH_I2C_Read... [23:34:51]*** Stop cut motor [23:34:51]*** Cut end [23:34:51]Read from MH i2c: 01 07 00 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: 01 07 00 08 47 00 00 00 00 00 FF 0F 64 [23:34:51]process_action close_shift done [23:34:51]requested_data is exist [23:34:51]produce_requested_data [23:34:51]requested_item fd.num is exist - process it [23:34:51]SAM_PROTO_GetFieldsCounters [23:34:51]wFMCommunicate request_size=4 [23:34:51]MH_SAM_APDU [23:34:51]CAPDU: 80 13 00 00 [23:34:51]Write to MH i2c: E2 08 00 09 47 80 13 00 00 00 00 00 00 CC [23:34:51]Write i2c OK [23:34:51]MH_I2C_Read... [23:34:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:51]Read from MH i2c: E2 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: E2 62 00 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: E2 62 00 09 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 09 E1 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [23:34:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 09 E1 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:51]wFMCommunicate OK [23:34:51]SAM_PROTO_GetFieldsCounters done [23:34:51]requested_item shift.num is exist - process it [23:34:51]requested_item shift.opened is exist - process it [23:34:51]req_shift_opened [23:34:51]FM_GetShiftState [23:34:51]SAM_PROTO_GetShiftState [23:34:51]wFMCommunicate request_size=4 [23:34:51]MH_SAM_APDU [23:34:51]CAPDU: 80 13 01 00 [23:34:51]Write to MH i2c: E2 08 00 0A 47 80 13 01 00 00 00 00 00 CE [23:34:51]Write i2c OK [23:34:51]MH_I2C_Read... [23:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:52]Read from MH i2c: E2 [23:34:52]MH_I2C_Read... [23:34:52]Read from MH i2c: E2 0E 00 [23:34:52]MH_I2C_Read... [23:34:52]Read from MH i2c: E2 0E 00 0A 47 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D9 [23:34:52]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:34:52]wFMCommunicate OK [23:34:52]SAM_PROTO_GetShiftState done [23:34:52]FM_GetShiftState done [23:34:52]req_shift_opened done [23:34:52]requested_item shift.open_date is exist - process it [23:34:52]req_shift_open_date [23:34:52]FM_GetShiftState [23:34:52]SAM_PROTO_GetShiftState [23:34:52]wFMCommunicate request_size=4 [23:34:52]MH_SAM_APDU [23:34:52]CAPDU: 80 13 01 00 [23:34:52]Write to MH i2c: E2 08 00 0B 47 80 13 01 00 00 00 00 00 CF [23:34:52]Write i2c OK [23:34:52]MH_I2C_Read... [23:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:52]Read from MH i2c: E2 [23:34:52]MH_I2C_Read... [23:34:52]Read from MH i2c: E2 0E 00 [23:34:52]MH_I2C_Read... [23:34:52]Read from MH i2c: E2 0E 00 0B 47 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DA [23:34:52]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:34:52]wFMCommunicate OK [23:34:52]SAM_PROTO_GetShiftState done [23:34:52]FM_GetShiftState done [23:34:52]req_shift_open_date done [23:34:52]produce_requested_data done [23:34:52]produce_requested_data return {"fd.num":123145,"shift.num":556,"shift.opened":0,"shift.open_date":0} [23:34:52]process_action_free close_shift [23:34:52]json_value_free [23:34:52]json_value_free done [23:34:52]process_json_proto returns [23:34:52]Send response to host [23:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":123145,"shift.num":556,"shift.opened":0,"shift.open_date":0}}} [23:34:52]free response buf [23:34:52]execute_script done [23:34:52]execute_script returns [23:34:52]free content buf [23:34:52]Sock 7.Close socket [23:34:52]Sock 7.Thread stoped [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:45]accept exits with 9 [00:08:45]New connection [00:08:45]New thread 3066580324 created [00:08:45]Thread 3066723684 joined [00:08:45]Waiting for new connection... [00:08:45] Sock 9.Parse request [00:08:45]Sock 9.Check first char [00:08:45]Sock 9.First char is OK [00:08:45]request: POST /json_proto HTTP/1.0 [00:08:45]Method: POST [00:08:45]URL: /json_proto [00:08:45]Method is POST - this is cgi request [00:08:45]url: /json_proto [00:08:45]query_string will be loaded in cgi processing [00:08:45]execute_cgi json_proto POST (null) [00:08:45]execute_cgi path=json_proto method=POST [00:08:45]POST find Content-Length [00:08:45]Host: 172.17.37.4:8080 [00:08:45]Content-Length: 215 [00:08:45]Content-Type: application/json [00:08:45] [00:08:45]POST finish read [00:08:45]Found Content-Length = 215 [00:08: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" ] } } [00:08:45]execute_script... [00:08: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" ] } } [00:08:45]POST & json_proto [00:08:45]process_json_proto [00:08:45]json parsed OK: [00:08:45]protocol is kg_v1.0 [00:08:45]action value=get_value [00:08:45]process_action get_value [00:08:45]cmd_get_value [00:08:45]process_action get_value done [00:08:45]requested_data is exist [00:08:45]produce_requested_data [00:08:45]requested_item kkm.sn is exist - process it [00:08:45]requested_item kkm.ver is exist - process it [00:08:45]requested_item fm.sn is exist - process it [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 11 00 00 [00:08:45]Write to MH i2c: E2 08 00 0C 47 80 11 00 00 00 00 00 00 CD [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 17 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 17 00 0C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 24 [00:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:08:45]wFMCommunicate OK [00:08:45]requested_item fd.num is exist - process it [00:08:45]SAM_PROTO_GetFieldsCounters [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 13 00 00 [00:08:45]Write to MH i2c: E2 08 00 0D 47 80 13 00 00 00 00 00 00 D0 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 62 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 62 00 0D 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 09 E1 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [00:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 09 E1 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:45]wFMCommunicate OK [00:08:45]SAM_PROTO_GetFieldsCounters done [00:08:45]requested_item shift.num is exist - process it [00:08:45]requested_item shift.opened is exist - process it [00:08:45]req_shift_opened [00:08:45]FM_GetShiftState [00:08:45]SAM_PROTO_GetShiftState [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 13 01 00 [00:08:45]Write to MH i2c: E2 08 00 0E 47 80 13 01 00 00 00 00 00 D2 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 0E 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 0E 00 0E 47 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DD [00:08:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:45]wFMCommunicate OK [00:08:45]SAM_PROTO_GetShiftState done [00:08:45]FM_GetShiftState done [00:08:45]req_shift_opened done [00:08:45]requested_item shift.open_date is exist - process it [00:08:45]req_shift_open_date [00:08:45]FM_GetShiftState [00:08:45]SAM_PROTO_GetShiftState [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 13 01 00 [00:08:45]Write to MH i2c: E2 08 00 0F 47 80 13 01 00 00 00 00 00 D3 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 0E 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 0E 00 0F 47 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DE [00:08:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:45]wFMCommunicate OK [00:08:45]SAM_PROTO_GetShiftState done [00:08:45]FM_GetShiftState done [00:08:45]req_shift_open_date done [00:08:45]produce_requested_data done [00:08:45]produce_requested_data return {"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123145,"shift.num":556,"shift.opened":0,"shift.open_date":0} [00:08:45]process_action_free get_value [00:08:45]json_value_free [00:08:45]json_value_free done [00:08:45]process_json_proto returns [00:08:45]Send response to host [00:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123145,"shift.num":556,"shift.opened":0,"shift.open_date":0}}} [00:08:45]free response buf [00:08:45]execute_script done [00:08:45]execute_script returns [00:08:45]free content buf [00:08:45]Sock 9.Close socket [00:08:45]Sock 9.Thread stoped [00:08:45]accept exits with 7 [00:08:45]New connection [00:08:45]New thread 3066723684 created [00:08:45]Thread 3066580324 joined [00:08:45]Waiting for new connection... [00:08:45] Sock 7.Parse request [00:08:45]Sock 7.Check first char [00:08:45]Sock 7.First char is OK [00:08:45]request: POST /json_proto HTTP/1.0 [00:08:45]Method: POST [00:08:45]URL: /json_proto [00:08:45]Method is POST - this is cgi request [00:08:45]url: /json_proto [00:08:45]query_string will be loaded in cgi processing [00:08:45]execute_cgi json_proto POST (null) [00:08:45]execute_cgi path=json_proto method=POST [00:08:45]POST find Content-Length [00:08:45]Host: 172.17.37.4:8080 [00:08:45]Content-Length: 331 [00:08:45]Content-Type: application/json [00:08:45] [00:08:45]POST finish read [00:08:45]Found Content-Length = 331 [00:08: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" ] } } [00:08:45]execute_script... [00:08: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" ] } } [00:08:45]POST & json_proto [00:08:45]process_json_proto [00:08:45]json parsed OK: [00:08:45]protocol is kg_v1.0 [00:08:45]action value=get_value [00:08:45]process_action get_value [00:08:45]cmd_get_value [00:08:45]process_action get_value done [00:08:45]requested_data is exist [00:08:45]produce_requested_data [00:08:45]requested_item fm.sale.total is exist - process it [00:08:45]SAM_PROTO_GetFMData [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 13 03 00 [00:08:45]Write to MH i2c: E2 08 00 10 47 80 13 03 00 00 00 00 00 D6 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 10 47 00 C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 3F [00:08:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 17 00 00 [00:08:46]Write to MH i2c: E2 08 00 11 47 80 17 00 00 00 00 00 00 D8 [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 11 47 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 66 [00:08:46]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 17 00 00 [00:08:46]Write to MH i2c: E2 08 00 12 47 80 17 00 00 00 00 00 00 D9 [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 12 47 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 EB [00:08:46]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 17 00 00 [00:08:46]Write to MH i2c: E2 08 00 13 47 80 17 00 00 00 00 00 00 DA [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:47]OFD Sender: No OFD packet to send [00:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 13 47 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 66 [00:08:47]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:47]wFMCommunicate OK [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 17 00 00 [00:08:47]Write to MH i2c: E2 08 00 14 47 80 17 00 00 00 00 00 00 DB [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 E2 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 E2 00 14 47 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B9 [00:08:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:47]wFMCommunicate OK [00:08:47]SAM_PROTO_GetFMData done [00:08:47]requested_item fm.sale_refund.total is exist - process it [00:08:47]requested_item fm.buy.total is exist - process it [00:08:47]requested_item shift.sale.total is exist - process it [00:08:47]SAM_PROTO_GetShiftData [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 13 02 00 [00:08:47]Write to MH i2c: E2 08 00 15 47 80 13 02 00 00 00 00 00 DA [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 15 47 00 B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 DF [00:08:47]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 36 B3 C1 70 04 03 00 D8 84 93 72 04 03 00 5E 2E 2E 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 A2 93 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 B6 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 2C 1A 70 04 02 00 2C 1A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 CC 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [00:08:47]wFMCommunicate OK [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 17 00 00 [00:08:47]Write to MH i2c: E2 08 00 16 47 80 17 00 00 00 00 00 00 DD [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 16 47 00 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [00:08:48]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 17 47 80 17 00 00 00 00 00 00 DE [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 17 47 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [00:08:48]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 18 47 80 17 00 00 00 00 00 00 DF [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 18 47 00 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 90 00 4E [00:08:48]RAPDU: 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 90 00 [00:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 19 47 80 17 00 00 00 00 00 00 E0 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 D3 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 D3 00 19 47 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CD [00:08:48]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:49]wFMCommunicate OK [00:08:49]SAM_PROTO_GetShiftData done [00:08:49]requested_item shift.sale.total_cash is exist - process it [00:08:49]requested_item shift.sale_refund.total is exist - process it [00:08:49]requested_item shift.sale_refund.total_cash is exist - process it [00:08:49]requested_item shift.buy.total is exist - process it [00:08:49]requested_item shift.buy.total_cash is exist - process it [00:08:49]produce_requested_data done [00:08:49]produce_requested_data return {"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:49]process_action_free get_value [00:08:49]json_value_free [00:08:49]json_value_free done [00:08:49]process_json_proto returns [00:08:49]Send response to host [00:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":126943.26,"shift.sale.total_cash":96678.00,"shift.sale_refund.total":67.00,"shift.sale_refund.total_cash":67.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:49]free response buf [00:08:49]execute_script done [00:08:49]execute_script returns [00:08:49]free content buf [00:08:49]Sock 7.Close socket [00:08:49]Sock 7.Thread stoped [00:08:49]accept exits with 9 [00:08:49]New connection [00:08:49]New thread 3066580324 created [00:08:49]Thread 3066723684 joined [00:08:49]Waiting for new connection... [00:08:49] Sock 9.Parse request [00:08:49]Sock 9.Check first char [00:08:49]Sock 9.First char is OK [00:08:49]request: POST /json_proto HTTP/1.0 [00:08:49]Method: POST [00:08:49]URL: /json_proto [00:08:49]Method is POST - this is cgi request [00:08:49]url: /json_proto [00:08:49]query_string will be loaded in cgi processing [00:08:49]execute_cgi json_proto POST (null) [00:08:49]execute_cgi path=json_proto method=POST [00:08:49]POST find Content-Length [00:08:49]Host: 172.17.37.4:8080 [00:08:49]Content-Length: 265 [00:08:49]Content-Type: application/json [00:08:49] [00:08:49]POST finish read [00:08:49]Found Content-Length = 265 [00:08:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u0440\u043E\u0437\u0431\u0430\u0435\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:49]execute_script... [00:08:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u0440\u043E\u0437\u0431\u0430\u0435\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:49]POST & json_proto [00:08:49]process_json_proto [00:08:49]json parsed OK: [00:08:49]protocol is kg_v1.0 [00:08:49]action value=open_shift [00:08:49]process_action open_shift [00:08:49]cmd_open_shift [00:08:49]MH_GetDate [00:08:49]Write to MH i2c: F0 00 00 1A 47 50 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 1A 47 00 98 11 45 67 B8 5A 43 67 6A [00:08:49]GetLastDocTimeStamp 1732577682 [00:08:49]current date 1732579736 [00:08:49]FM_GetShiftState [00:08:49]SAM_PROTO_GetShiftState [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 13 01 00 [00:08:49]Write to MH i2c: E2 08 00 1B 47 80 13 01 00 00 00 00 00 DF [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 0E 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 0E 00 1B 47 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EA [00:08:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:49]wFMCommunicate OK [00:08:49]SAM_PROTO_GetShiftState done [00:08:49]FM_GetShiftState done [00:08:49]KKMCreateOpenShiftDocument [00:08:49]Load OK [00:08:49]Malloc new data [00:08:49]MH_GetDate [00:08:49]Write to MH i2c: F0 00 00 1C 47 52 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 1C 47 00 98 11 45 67 B8 5A 43 67 6C [00:08:49]Malloc new data [00:08:49]KKMCreateOpenShiftDocument OK [00:08:49]KKMSetOpenShiftData OK [00:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=206 [00:08:49]tlvbuf is 0204A420 [00:08:49]KKMLoadAndSignOpenShiftData [00:08:49]SAM_PROTO_ProcessDocument [00:08:49]wFMCommunicate request_size=9 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 15 01 00 04 02 00 CE 00 [00:08:49]Write to MH i2c: E2 0C 00 1D 47 80 15 01 00 04 00 02 00 CE 00 00 00 BB [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 1D 47 00 90 00 D8 [00:08:49]RAPDU: 90 00 [00:08:49]wFMCommunicate OK [00:08:49]wFMCommunicate request_size=23 [00:08:49]MH_SAM_APDU [00:08:49]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:08:49]Write to MH i2c: E2 1A 00 1E 47 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 DA [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 1E 47 00 90 00 D9 [00:08:49]RAPDU: 90 00 [00:08:49]wFMCommunicate OK [00:08:49]wFMCommunicate request_size=32 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 [00:08:49]Write to MH i2c: E2 23 00 1F 47 80 15 02 00 1B 00 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 00 00 5D [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 1F 47 00 90 00 DA [00:08:49]RAPDU: 90 00 [00:08:49]wFMCommunicate OK [00:08:49]wFMCommunicate request_size=93 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 15 02 00 58 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 [00:08:49]Write to MH i2c: E2 60 00 20 47 80 15 02 00 58 00 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 00 00 19 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 20 47 00 90 00 DB [00:08:49]RAPDU: 90 00 [00:08:49]wFMCommunicate OK [00:08:49]wFMCommunicate request_size=50 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 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:08:49]Write to MH i2c: E2 35 00 21 47 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 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 61 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 21 47 00 90 00 DC [00:08:49]RAPDU: 90 00 [00:08:49]wFMCommunicate OK [00:08:49]wFMCommunicate request_size=13 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 15 02 00 08 F4 03 04 00 98 11 45 67 [00:08:49]Write to MH i2c: E2 10 00 22 47 80 15 02 00 08 00 F4 03 04 00 98 11 45 67 00 00 49 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 22 47 00 90 00 DD [00:08:49]RAPDU: 90 00 [00:08:49]wFMCommunicate OK [00:08:49]wFMCommunicate request_size=25 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 [00:08:49]Write to MH i2c: E2 1C 00 23 47 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 00 00 4D [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 03 00 23 47 00 90 00 DE [00:08:49]RAPDU: 90 00 [00:08:49]wFMCommunicate OK [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 15 03 00 [00:08:49]Write to MH i2c: E2 08 00 24 47 80 15 03 00 00 00 00 00 EC [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 38 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 38 00 24 47 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0A E1 01 00 0E 04 04 00 2D 02 00 00 35 04 06 00 27 34 92 77 91 0C 90 00 D8 [00:08:50]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0A E1 01 00 0E 04 04 00 2D 02 00 00 35 04 06 00 27 34 92 77 91 0C 90 00 [00:08:50]wFMCommunicate OK [00:08:50]SAM_PROTO_ProcessDocument answer len = 51 [00:08:50]SAM_PROTO_ProcessDocument done [00:08:50]SetTLVBufToDocument [00:08:50]Processing tag 1209 (04B9) [00:08:50]Malloc new data [00:08:50]Processing tag 1041 (0411) [00:08:50]Processing tag 1040 (0410) [00:08:50]Malloc new data [00:08:50]Processing tag 1038 (040E) [00:08:50]Malloc new data [00:08:50]Processing tag 1077 (0435) [00:08:50]Malloc new data [00:08:50]SetTLVBufToDocument err=0 [00:08:50]KKMLoadAndSignOpenShiftData store KKM data [00:08:50]KKMLoadAndSignOpenShiftData err=0 [00:08:50]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Орозбаева А. Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 Место: АЗС № 64 "Партнер Нефть" 26.11.2024 00:08 Смена: 557 РНМ: 0000000000092681 ЗНМ: 0300000033 ФД: 123146 ФМ: 0000000000874881 ФПД: 43106749092108 [00:08:50]StoreToDocumentArchive [00:08:50]shift 557 fd 123146 [00:08:50]Create dir for shift 0557 [00:08:50]save to /storage/0557/doc_00123146 [00:08:50]save last doc name /storage/0557/doc_00123146 to /storage/kkm_last_doc_name [00:08:50]save OK [00:08:50]Clear old archive folders... [00:08:50]Remove dir /storage/0556 [00:08:50]opendir ok [00:08:50]file . [00:08:50]file .. [00:08:50]file doc_00122959 [00:08:50]remove file /storage/0556/doc_00122959 [00:08:50]file doc_00122960 [00:08:50]remove file /storage/0556/doc_00122960 [00:08:50]file doc_00122961 [00:08:50]remove file /storage/0556/doc_00122961 [00:08:50]file doc_00122962 [00:08:50]remove file /storage/0556/doc_00122962 [00:08:50]file doc_00122963 [00:08:50]remove file /storage/0556/doc_00122963 [00:08:50]file doc_00122964 [00:08:50]remove file /storage/0556/doc_00122964 [00:08:50]file doc_00122965 [00:08:50]remove file /storage/0556/doc_00122965 [00:08:50]file doc_00122966 [00:08:50]remove file /storage/0556/doc_00122966 [00:08:50]file doc_00122967 [00:08:50]remove file /storage/0556/doc_00122967 [00:08:50]file doc_00122968 [00:08:50]remove file /storage/0556/doc_00122968 [00:08:50]file doc_00122969 [00:08:50]remove file /storage/0556/doc_00122969 [00:08:50]file doc_00122970 [00:08:50]remove file /storage/0556/doc_00122970 [00:08:50]file doc_00122971 [00:08:50]remove file /storage/0556/doc_00122971 [00:08:50]file doc_00122972 [00:08:50]remove file /storage/0556/doc_00122972 [00:08:50]file doc_00122973 [00:08:50]remove file /storage/0556/doc_00122973 [00:08:50]file doc_00122974 [00:08:50]remove file /storage/0556/doc_00122974 [00:08:50]file doc_00122975 [00:08:50]remove file /storage/0556/doc_00122975 [00:08:50]file doc_00122976 [00:08:50]remove file /storage/0556/doc_00122976 [00:08:50]file doc_00122977 [00:08:50]remove file /storage/0556/doc_00122977 [00:08:50]file doc_00122978 [00:08:50]remove file /storage/0556/doc_00122978 [00:08:50]file doc_00122979 [00:08:50]remove file /storage/0556/doc_00122979 [00:08:50]file doc_00122980 [00:08:50]remove file /storage/0556/doc_00122980 [00:08:50]file doc_00122981 [00:08:50]remove file /storage/0556/doc_00122981 [00:08:50]file doc_00122982 [00:08:50]remove file /storage/0556/doc_00122982 [00:08:50]file doc_00122983 [00:08:50]remove file /storage/0556/doc_00122983 [00:08:50]file doc_00122984 [00:08:50]remove file /storage/0556/doc_00122984 [00:08:50]file doc_00122985 [00:08:50]remove file /storage/0556/doc_00122985 [00:08:50]file doc_00122986 [00:08:50]remove file /storage/0556/doc_00122986 [00:08:50]file doc_00122987 [00:08:50]remove file /storage/0556/doc_00122987 [00:08:50]file doc_00122988 [00:08:50]remove file /storage/0556/doc_00122988 [00:08:50]file doc_00122989 [00:08:50]remove file /storage/0556/doc_00122989 [00:08:50]file doc_00122990 [00:08:50]remove file /storage/0556/doc_00122990 [00:08:50]file doc_00122991 [00:08:50]remove file /storage/0556/doc_00122991 [00:08:50]file doc_00122992 [00:08:50]remove file /storage/0556/doc_00122992 [00:08:50]file doc_00122993 [00:08:50]remove file /storage/0556/doc_00122993 [00:08:50]file doc_00122994 [00:08:50]remove file /storage/0556/doc_00122994 [00:08:50]file doc_00122995 [00:08:50]remove file /storage/0556/doc_00122995 [00:08:50]file doc_00122996 [00:08:50]remove file /storage/0556/doc_00122996 [00:08:50]file doc_00122997 [00:08:50]remove file /storage/0556/doc_00122997 [00:08:50]file doc_00122998 [00:08:50]remove file /storage/0556/doc_00122998 [00:08:50]file doc_00122999 [00:08:50]remove file /storage/0556/doc_00122999 [00:08:50]file doc_00123000 [00:08:50]remove file /storage/0556/doc_00123000 [00:08:50]file doc_00123001 [00:08:50]remove file /storage/0556/doc_00123001 [00:08:50]file doc_00123002 [00:08:50]remove file /storage/0556/doc_00123002 [00:08:50]file doc_00123003 [00:08:50]remove file /storage/0556/doc_00123003 [00:08:50]file doc_00123004 [00:08:50]remove file /storage/0556/doc_00123004 [00:08:50]file doc_00123005 [00:08:50]remove file /storage/0556/doc_00123005 [00:08:50]file doc_00123006 [00:08:50]remove file /storage/0556/doc_00123006 [00:08:50]file doc_00123007 [00:08:50]remove file /storage/0556/doc_00123007 [00:08:50]file doc_00123008 [00:08:50]remove file /storage/0556/doc_00123008 [00:08:50]file doc_00123009 [00:08:50]remove file /storage/0556/doc_00123009 [00:08:50]file doc_00123010 [00:08:50]remove file /storage/0556/doc_00123010 [00:08:50]file doc_00123011 [00:08:50]remove file /storage/0556/doc_00123011 [00:08:50]file doc_00123012 [00:08:50]remove file /storage/0556/doc_00123012 [00:08:50]file doc_00123013 [00:08:50]remove file /storage/0556/doc_00123013 [00:08:50]file doc_00123014 [00:08:50]remove file /storage/0556/doc_00123014 [00:08:50]file doc_00123015 [00:08:50]remove file /storage/0556/doc_00123015 [00:08:50]file doc_00123016 [00:08:50]remove file /storage/0556/doc_00123016 [00:08:50]file doc_00123017 [00:08:50]remove file /storage/0556/doc_00123017 [00:08:50]file doc_00123018 [00:08:50]remove file /storage/0556/doc_00123018 [00:08:50]file doc_00123019 [00:08:50]remove file /storage/0556/doc_00123019 [00:08:50]file doc_00123020 [00:08:50]remove file /storage/0556/doc_00123020 [00:08:50]file doc_00123021 [00:08:50]remove file /storage/0556/doc_00123021 [00:08:50]file doc_00123022 [00:08:50]remove file /storage/0556/doc_00123022 [00:08:50]file doc_00123023 [00:08:50]remove file /storage/0556/doc_00123023 [00:08:50]file doc_00123024 [00:08:50]remove file /storage/0556/doc_00123024 [00:08:50]file doc_00123025 [00:08:50]remove file /storage/0556/doc_00123025 [00:08:50]file doc_00123026 [00:08:50]remove file /storage/0556/doc_00123026 [00:08:50]file doc_00123027 [00:08:50]remove file /storage/0556/doc_00123027 [00:08:50]file doc_00123028 [00:08:50]remove file /storage/0556/doc_00123028 [00:08:50]file doc_00123029 [00:08:50]remove file /storage/0556/doc_00123029 [00:08:50]file doc_00123030 [00:08:50]remove file /storage/0556/doc_00123030 [00:08:50]file doc_00123031 [00:08:50]remove file /storage/0556/doc_00123031 [00:08:50]file doc_00123032 [00:08:50]remove file /storage/0556/doc_00123032 [00:08:50]file doc_00123033 [00:08:50]remove file /storage/0556/doc_00123033 [00:08:50]file doc_00123034 [00:08:50]remove file /storage/0556/doc_00123034 [00:08:50]file doc_00123035 [00:08:50]remove file /storage/0556/doc_00123035 [00:08:50]file doc_00123036 [00:08:50]remove file /storage/0556/doc_00123036 [00:08:50]file doc_00123037 [00:08:50]remove file /storage/0556/doc_00123037 [00:08:50]file doc_00123038 [00:08:50]remove file /storage/0556/doc_00123038 [00:08:50]file doc_00123039 [00:08:50]remove file /storage/0556/doc_00123039 [00:08:50]file doc_00123040 [00:08:50]remove file /storage/0556/doc_00123040 [00:08:50]file doc_00123041 [00:08:50]remove file /storage/0556/doc_00123041 [00:08:50]file doc_00123042 [00:08:50]remove file /storage/0556/doc_00123042 [00:08:50]file doc_00123043 [00:08:50]remove file /storage/0556/doc_00123043 [00:08:50]file doc_00123044 [00:08:50]remove file /storage/0556/doc_00123044 [00:08:50]file doc_00123045 [00:08:50]remove file /storage/0556/doc_00123045 [00:08:50]file doc_00123046 [00:08:50]remove file /storage/0556/doc_00123046 [00:08:50]file doc_00123047 [00:08:50]remove file /storage/0556/doc_00123047 [00:08:50]file doc_00123048 [00:08:50]remove file /storage/0556/doc_00123048 [00:08:50]file doc_00123049 [00:08:50]remove file /storage/0556/doc_00123049 [00:08:50]file doc_00123050 [00:08:50]remove file /storage/0556/doc_00123050 [00:08:50]file doc_00123051 [00:08:50]remove file /storage/0556/doc_00123051 [00:08:50]file doc_00123052 [00:08:50]remove file /storage/0556/doc_00123052 [00:08:50]file doc_00123053 [00:08:50]remove file /storage/0556/doc_00123053 [00:08:50]file doc_00123054 [00:08:50]remove file /storage/0556/doc_00123054 [00:08:50]file doc_00123055 [00:08:50]remove file /storage/0556/doc_00123055 [00:08:50]file doc_00123056 [00:08:50]remove file /storage/0556/doc_00123056 [00:08:50]file doc_00123057 [00:08:50]remove file /storage/0556/doc_00123057 [00:08:50]file doc_00123058 [00:08:50]remove file /storage/0556/doc_00123058 [00:08:50]file doc_00123059 [00:08:50]remove file /storage/0556/doc_00123059 [00:08:50]file doc_00123060 [00:08:50]remove file /storage/0556/doc_00123060 [00:08:50]file doc_00123061 [00:08:50]remove file /storage/0556/doc_00123061 [00:08:50]file doc_00123062 [00:08:50]remove file /storage/0556/doc_00123062 [00:08:50]file doc_00123063 [00:08:50]remove file /storage/0556/doc_00123063 [00:08:50]file doc_00123064 [00:08:50]remove file /storage/0556/doc_00123064 [00:08:50]file doc_00123065 [00:08:50]remove file /storage/0556/doc_00123065 [00:08:50]file doc_00123066 [00:08:50]remove file /storage/0556/doc_00123066 [00:08:50]file doc_00123067 [00:08:50]remove file /storage/0556/doc_00123067 [00:08:50]file doc_00123068 [00:08:50]remove file /storage/0556/doc_00123068 [00:08:50]file doc_00123069 [00:08:50]remove file /storage/0556/doc_00123069 [00:08:50]file doc_00123070 [00:08:50]remove file /storage/0556/doc_00123070 [00:08:50]file doc_00123071 [00:08:50]remove file /storage/0556/doc_00123071 [00:08:50]file doc_00123072 [00:08:50]remove file /storage/0556/doc_00123072 [00:08:50]file doc_00123073 [00:08:50]remove file /storage/0556/doc_00123073 [00:08:50]file doc_00123074 [00:08:50]remove file /storage/0556/doc_00123074 [00:08:50]file doc_00123075 [00:08:50]remove file /storage/0556/doc_00123075 [00:08:50]file doc_00123076 [00:08:50]remove file /storage/0556/doc_00123076 [00:08:50]file doc_00123077 [00:08:50]remove file /storage/0556/doc_00123077 [00:08:50]file doc_00123078 [00:08:50]remove file /storage/0556/doc_00123078 [00:08:50]file doc_00123079 [00:08:50]remove file /storage/0556/doc_00123079 [00:08:50]file doc_00123080 [00:08:50]remove file /storage/0556/doc_00123080 [00:08:50]file doc_00123081 [00:08:50]remove file /storage/0556/doc_00123081 [00:08:50]file doc_00123082 [00:08:50]remove file /storage/0556/doc_00123082 [00:08:50]file doc_00123083 [00:08:50]remove file /storage/0556/doc_00123083 [00:08:50]file doc_00123084 [00:08:50]remove file /storage/0556/doc_00123084 [00:08:50]file doc_00123085 [00:08:50]remove file /storage/0556/doc_00123085 [00:08:50]file doc_00123086 [00:08:50]remove file /storage/0556/doc_00123086 [00:08:50]file doc_00123087 [00:08:50]remove file /storage/0556/doc_00123087 [00:08:50]file doc_00123088 [00:08:50]remove file /storage/0556/doc_00123088 [00:08:50]file doc_00123089 [00:08:50]remove file /storage/0556/doc_00123089 [00:08:50]file doc_00123090 [00:08:50]remove file /storage/0556/doc_00123090 [00:08:50]file doc_00123091 [00:08:50]remove file /storage/0556/doc_00123091 [00:08:50]file doc_00123092 [00:08:50]remove file /storage/0556/doc_00123092 [00:08:50]file doc_00123093 [00:08:50]remove file /storage/0556/doc_00123093 [00:08:50]file doc_00123094 [00:08:50]remove file /storage/0556/doc_00123094 [00:08:50]file doc_00123095 [00:08:50]remove file /storage/0556/doc_00123095 [00:08:50]file doc_00123096 [00:08:50]remove file /storage/0556/doc_00123096 [00:08:50]file doc_00123097 [00:08:50]remove file /storage/0556/doc_00123097 [00:08:50]file doc_00123098 [00:08:50]remove file /storage/0556/doc_00123098 [00:08:50]file doc_00123099 [00:08:50]remove file /storage/0556/doc_00123099 [00:08:50]file doc_00123100 [00:08:50]remove file /storage/0556/doc_00123100 [00:08:50]file doc_00123101 [00:08:50]remove file /storage/0556/doc_00123101 [00:08:50]file doc_00123102 [00:08:50]remove file /storage/0556/doc_00123102 [00:08:50]file doc_00123103 [00:08:50]remove file /storage/0556/doc_00123103 [00:08:50]file doc_00123104 [00:08:50]remove file /storage/0556/doc_00123104 [00:08:50]file doc_00123105 [00:08:50]remove file /storage/0556/doc_00123105 [00:08:50]file doc_00123106 [00:08:50]remove file /storage/0556/doc_00123106 [00:08:50]file doc_00123107 [00:08:50]remove file /storage/0556/doc_00123107 [00:08:50]file doc_00123108 [00:08:50]remove file /storage/0556/doc_00123108 [00:08:50]file doc_00123109 [00:08:50]remove file /storage/0556/doc_00123109 [00:08:50]file doc_00123110 [00:08:50]remove file /storage/0556/doc_00123110 [00:08:50]file doc_00123111 [00:08:50]remove file /storage/0556/doc_00123111 [00:08:50]file doc_00123112 [00:08:50]remove file /storage/0556/doc_00123112 [00:08:50]file doc_00123113 [00:08:50]remove file /storage/0556/doc_00123113 [00:08:50]file doc_00123114 [00:08:50]remove file /storage/0556/doc_00123114 [00:08:50]file doc_00123115 [00:08:50]remove file /storage/0556/doc_00123115 [00:08:50]file doc_00123116 [00:08:50]remove file /storage/0556/doc_00123116 [00:08:50]file doc_00123117 [00:08:50]remove file /storage/0556/doc_00123117 [00:08:50]file doc_00123118 [00:08:50]remove file /storage/0556/doc_00123118 [00:08:50]file doc_00123119 [00:08:50]remove file /storage/0556/doc_00123119 [00:08:50]file doc_00123120 [00:08:50]remove file /storage/0556/doc_00123120 [00:08:50]file doc_00123121 [00:08:50]remove file /storage/0556/doc_00123121 [00:08:50]file doc_00123122 [00:08:50]remove file /storage/0556/doc_00123122 [00:08:50]file doc_00123123 [00:08:50]remove file /storage/0556/doc_00123123 [00:08:50]file doc_00123124 [00:08:50]remove file /storage/0556/doc_00123124 [00:08:50]file doc_00123125 [00:08:50]remove file /storage/0556/doc_00123125 [00:08:50]file doc_00123126 [00:08:50]remove file /storage/0556/doc_00123126 [00:08:50]file doc_00123127 [00:08:50]remove file /storage/0556/doc_00123127 [00:08:50]file doc_00123128 [00:08:50]remove file /storage/0556/doc_00123128 [00:08:50]file doc_00123129 [00:08:50]remove file /storage/0556/doc_00123129 [00:08:50]file doc_00123130 [00:08:50]remove file /storage/0556/doc_00123130 [00:08:50]file doc_00123131 [00:08:50]remove file /storage/0556/doc_00123131 [00:08:50]file doc_00123132 [00:08:50]remove file /storage/0556/doc_00123132 [00:08:51]file doc_00123133 [00:08:51]remove file /storage/0556/doc_00123133 [00:08:51]file doc_00123134 [00:08:51]remove file /storage/0556/doc_00123134 [00:08:51]file doc_00123135 [00:08:51]remove file /storage/0556/doc_00123135 [00:08:51]file doc_00123136 [00:08:51]remove file /storage/0556/doc_00123136 [00:08:51]file doc_00123137 [00:08:51]remove file /storage/0556/doc_00123137 [00:08:51]file doc_00123138 [00:08:51]remove file /storage/0556/doc_00123138 [00:08:51]file doc_00123139 [00:08:51]remove file /storage/0556/doc_00123139 [00:08:51]file doc_00123140 [00:08:51]remove file /storage/0556/doc_00123140 [00:08:51]file doc_00123141 [00:08:51]remove file /storage/0556/doc_00123141 [00:08:51]file doc_00123142 [00:08:51]remove file /storage/0556/doc_00123142 [00:08:51]file doc_00123143 [00:08:51]remove file /storage/0556/doc_00123143 [00:08:51]file doc_00123144 [00:08:51]remove file /storage/0556/doc_00123144 [00:08:51]file doc_00123145 [00:08:51]remove file /storage/0556/doc_00123145 [00:08:51]remove dir /storage/0556 [00:08:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:08:51]tlvbuf is 02182D70 [00:08:51]SAM_PROTO_ClearQueue [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 09 00 00 [00:08:51]Write to MH i2c: E2 08 00 25 47 80 09 00 00 00 00 00 00 DE [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 03 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 03 00 25 47 00 90 00 E0 [00:08:51]RAPDU: 90 00 [00:08:51]wFMCommunicate OK [00:08:51]SAM_PROTO_ClearQueue done [00:08:51]KKMCreateOFDPacket [00:08:51]OFDProtocolAddRootSTLVToBuf [00:08:51]FM_MakeSignedData [00:08:51]FM_MakeSignedData [00:08:51]SAM_PROTO_SignData [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 0D 01 02 [00:08:51]Write to MH i2c: E2 08 00 26 47 80 0D 01 02 00 00 00 00 E6 [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 03 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 03 00 26 47 00 90 00 E1 [00:08:51]RAPDU: 90 00 [00:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=255 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 0D 02 02 FA 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 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 98 11 45 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0A E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 [00:08:51]Write to MH i2c: E2 02 01 27 47 80 0D 02 02 FA 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 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 98 11 45 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0A E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 00 00 3F [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 03 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 03 00 27 47 00 90 00 E2 [00:08:51]RAPDU: 90 00 [00:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=16 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 0D 02 02 0B 31 35 04 06 00 27 34 92 77 91 0C [00:08:51]Write to MH i2c: E2 13 00 28 47 80 0D 02 02 0B 00 31 35 04 06 00 27 34 92 77 91 0C 00 00 70 [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 03 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 03 00 28 47 00 90 00 E3 [00:08:51]RAPDU: 90 00 [00:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 0D 03 02 [00:08:51]Write to MH i2c: E2 08 00 29 47 80 0D 03 02 00 00 00 00 EB [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 0B 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 0B 00 29 47 00 F0 E6 CE A2 ED 6D 79 6A 90 00 6F [00:08:51]RAPDU: F0 E6 CE A2 ED 6D 79 6A 90 00 [00:08:51]wFMCommunicate OK [00:08:51]SAM_PROTO_SignData done [00:08:51]FM_MakeSignedData done [00:08:51]CreateOFDProtocolMessage [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 11 00 00 [00:08:51]Write to MH i2c: E2 08 00 2A 47 80 11 00 00 00 00 00 00 EB [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 17 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 17 00 2A 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 42 [00:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:08:51]wFMCommunicate OK [00:08:51]CreateOFDProtocolMessage done [00:08:51]OFDSenderStorePacket 123146 [00:08:51]StoreOFDPacket docnum=123146 [00:08:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 15 01 00 00 50 A8 0D 01 02 6E 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 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 98 11 45 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0A E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 27 34 92 77 91 0C F0 E6 CE A2 ED 6D 79 6A [00:08:51]CheckFolder [00:08:51]dirname=/storage/ofd_packets [00:08:51]CheckFolder done [00:08:51]ProducePacketName [00:08:51]name=ofd_packets/00123146 [00:08:51]NVStorageSaveData ofd_packets/00123146 [00:08:51]File name is /storage/ofd_packets/00123146 [00:08:51]Write 307 bytes [00:08:51]NVStorageSaveData done [00:08:51]OFDSenderStorePacket done [00:08:51]KKMCreateOFDPacket done [00:08:51]NVStorageSaveData kkm_last_timestamp [00:08:51]File name is /storage/kkm_last_timestamp [00:08:51]Write 4 bytes [00:08:51]NVStorageSaveData done [00:08:51]ExternCall_PrintAddStr [00:08:51]wPrintStart [00:08:51]Write to MH i2c: 01 00 00 2B 47 72 [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: 01 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: 01 07 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: 01 07 00 2B 47 00 00 00 00 00 FF 0F 87 [00:08:51]RasterBufferAndPrint [00:08:51]line Отчет об открытии смены [00:08:51]line ФФД: 1.0 [00:08:51]line ИНН: 02508201610067 [00:08:51]line Кассир: Орозбаева А. [00:08:51]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [00:08:51]line Место: АЗС № 64 "Партнер Нефть" [00:08:51]line 26.11.2024 00:08 [00:08:51]line Смена: 557 [00:08:51]line РНМ: 0000000000092681 [00:08:51]line ЗНМ: 0300000033 [00:08:51]line ФД: 123146 [00:08:51]line ФМ: 0000000000874881 [00:08:51]line ФПД: 43106749092108 [00:08:51]written 0, free lines is 4095 [00:08:51]OFD Sender: Processing packet 123146 [packets to send 7, broken 6] [00:08:51]ProducePacketName [00:08:51]name=ofd_packets/00123146 [00:08:51]OFD Sender: To server: pG, [00:08:51]CommunicateWithHost lk.salyk.kg:30040 [00:08:51]ConnectInit lk.salyk.kg [00:08:51]Connected sock=11 [00:08:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 15 01 00 00 50 A8 0D 01 02 6E 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 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 98 11 45 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0A E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 27 34 92 77 91 0C F0 E6 CE A2 ED 6D 79 6A [00:08:52]Write to MH i2c: 01 00 00 3D 47 84 [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: 01 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: 01 07 00 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: 01 07 00 3D 47 00 00 00 00 00 54 0E ED [00:08:52]RasterBufferAndPrint [00:08:52]line [00:08:52]line [00:08:52]line [00:08:52]line [00:08:52]line [00:08:52]written 0, free lines is 3675 [00:08:52]MH_Cut [00:08:52]Write to MH i2c: D1 01 00 44 47 01 5D [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: D1 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: D1 01 00 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: D1 01 00 44 47 00 5C [00:08:52]Write to MH i2c: 01 00 00 45 47 8C [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 CB 32 47 00 99 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0A E1 01 00 F4 03 04 00 5D BD 44 67 B6 04 01 00 00 52 C2 71 A8 97 7D C5 D0 [00:08:52]CommunicateWithHost err = 0 [00:08:52]CheckOFDResponse [00:08:52]1017 (14) - 77093643461234 [00:08:52]1041 (16) - 0000000000874881 [00:08:52]1040 (4) - 123146 [00:08:52]1012 (4) - 25.11.2024 18:09 [00:08:52]1206 (1) - 0 [00:08:52]OFD Sender: Remove packet 123146 [00:08:52]ProducePacketName [00:08:52]name=ofd_packets/00123146 [00:08:52]NVStorageDeleteData [00:08:52]OFD Sender: No OFD packet to send [00:08:52]*** Cut start [00:08:52]*** Partial cut [00:08:52]*** CUTSNS_PIN = 1 [00:08:52]*** CUTSNS_PIN = 0 [00:08:53]*** Brake cut motor [00:08:53]Read from MH i2c: 01 [00:08:53]MH_I2C_Read... [00:08:53]*** Stop cut motor [00:08:53]*** Cut end [00:08:53]Read from MH i2c: 01 07 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: 01 07 00 45 47 00 00 00 00 00 FF 0F A1 [00:08:53]process_action open_shift done [00:08:53]requested_data is exist [00:08:53]produce_requested_data [00:08:53]requested_item fd.num is exist - process it [00:08:53]SAM_PROTO_GetFieldsCounters [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 00 00 [00:08:53]Write to MH i2c: E2 08 00 46 47 80 13 00 00 00 00 00 00 09 [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 62 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 62 00 46 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0A E1 01 00 0E 04 04 00 2D 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 4A [00:08:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0A E1 01 00 0E 04 04 00 2D 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:08:53]wFMCommunicate OK [00:08:53]SAM_PROTO_GetFieldsCounters done [00:08:53]requested_item shift.num is exist - process it [00:08:53]requested_item shift.opened is exist - process it [00:08:53]req_shift_opened [00:08:53]FM_GetShiftState [00:08:53]SAM_PROTO_GetShiftState [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 01 00 [00:08:53]Write to MH i2c: E2 08 00 47 47 80 13 01 00 00 00 00 00 0B [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 0E 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 0E 00 47 47 00 09 00 01 98 11 45 67 00 00 00 00 90 00 6C [00:08:53]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [00:08:53]wFMCommunicate OK [00:08:53]SAM_PROTO_GetShiftState done [00:08:53]FM_GetShiftState done [00:08:53]req_shift_opened done [00:08:53]requested_item shift.open_date is exist - process it [00:08:53]req_shift_open_date [00:08:53]req_shift_open_date done [00:08:53]produce_requested_data done [00:08:53]produce_requested_data return {"fd.num":123146,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [00:08:53]process_action_free open_shift [00:08:53]json_value_free [00:08:53]json_value_free done [00:08:53]process_json_proto returns [00:08:53]Send response to host [00:08:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":123146,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [00:08:53]free response buf [00:08:53]execute_script done [00:08:53]execute_script returns [00:08:53]free content buf [00:08:53]Sock 9.Close socket [00:08:53]Sock 9.Thread stoped [00:08:53]accept exits with 7 [00:08:53]New connection [00:08:53]New thread 3066723684 created [00:08:53]Thread 3066580324 joined [00:08:53]Waiting for new connection... [00:08:53] Sock 7.Parse request [00:08:53]Sock 7.Check first char [00:08:53]Sock 7.First char is OK [00:08:53]request: POST /json_proto HTTP/1.0 [00:08:53]Method: POST [00:08:53]URL: /json_proto [00:08:53]Method is POST - this is cgi request [00:08:53]url: /json_proto [00:08:53]query_string will be loaded in cgi processing [00:08:53]execute_cgi json_proto POST (null) [00:08:53]execute_cgi path=json_proto method=POST [00:08:53]POST find Content-Length [00:08:53]Host: 172.17.37.4:8080 [00:08:53]Content-Length: 331 [00:08:53]Content-Type: application/json [00:08:53] [00:08:53]POST finish read [00:08:53]Found Content-Length = 331 [00:08:53]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:08:53]execute_script... [00:08:53]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:08:53]POST & json_proto [00:08:53]process_json_proto [00:08:53]json parsed OK: [00:08:53]protocol is kg_v1.0 [00:08:53]action value=get_value [00:08:53]process_action get_value [00:08:53]cmd_get_value [00:08:53]process_action get_value done [00:08:53]requested_data is exist [00:08:53]produce_requested_data [00:08:53]requested_item fm.sale.total is exist - process it [00:08:53]SAM_PROTO_GetFMData [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 03 00 [00:08:53]Write to MH i2c: E2 08 00 48 47 80 13 03 00 00 00 00 00 0E [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 48 47 00 C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 77 [00:08:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 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 28 4E AC 3D 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 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 49 47 80 17 00 00 00 00 00 00 10 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 49 47 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 9E [00:08:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 4A 47 80 17 00 00 00 00 00 00 11 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 4A 47 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 23 [00:08:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:55]wFMCommunicate OK [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 17 00 00 [00:08:55]Write to MH i2c: E2 08 00 4B 47 80 17 00 00 00 00 00 00 12 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 4B 47 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 9E [00:08:55]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:55]wFMCommunicate OK [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 17 00 00 [00:08:55]Write to MH i2c: E2 08 00 4C 47 80 17 00 00 00 00 00 00 13 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 E2 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 E2 00 4C 47 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 [00:08:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:55]wFMCommunicate OK [00:08:55]SAM_PROTO_GetFMData done [00:08:55]requested_item fm.sale_refund.total is exist - process it [00:08:55]requested_item fm.buy.total is exist - process it [00:08:55]requested_item shift.sale.total is exist - process it [00:08:55]SAM_PROTO_GetShiftData [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 13 02 00 [00:08:55]Write to MH i2c: E2 08 00 4D 47 80 13 02 00 00 00 00 00 12 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:56]Read from MH i2c: E2 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 4D 47 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 85 [00:08:56]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:08:56]wFMCommunicate OK [00:08:56]wFMCommunicate request_size=4 [00:08:56]MH_SAM_APDU [00:08:56]CAPDU: 80 17 00 00 [00:08:56]Write to MH i2c: E2 08 00 4E 47 80 17 00 00 00 00 00 00 15 [00:08:56]Write i2c OK [00:08:56]MH_I2C_Read... [00:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:56]Read from MH i2c: E2 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 4E 47 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 1D [00:08:56]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:08:57]wFMCommunicate OK [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 17 00 00 [00:08:57]Write to MH i2c: E2 08 00 4F 47 80 17 00 00 00 00 00 00 16 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:57]Read from MH i2c: E2 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 4F 47 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 E8 [00:08:57]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:08:57]wFMCommunicate OK [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 17 00 00 [00:08:57]Write to MH i2c: E2 08 00 50 47 80 17 00 00 00 00 00 00 17 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:57]Read from MH i2c: E2 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 50 47 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 89 [00:08:57]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 OFD Sender: No OFD packet to send [00:08:57]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:08:57]wFMCommunicate OK [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 17 00 00 [00:08:57]Write to MH i2c: E2 08 00 51 47 80 17 00 00 00 00 00 00 18 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:08:58]Read from MH i2c: E2 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 BD 00 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 BD 00 51 47 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 FE [00:08:58]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:08:58]wFMCommunicate OK [00:08:58]SAM_PROTO_GetShiftData done [00:08:58]requested_item shift.sale.total_cash is exist - process it [00:08:58]requested_item shift.sale_refund.total is exist - process it [00:08:58]requested_item shift.sale_refund.total_cash is exist - process it [00:08:58]requested_item shift.buy.total is exist - process it [00:08:58]requested_item shift.buy.total_cash is exist - process it [00:08:58]produce_requested_data done [00:08:58]produce_requested_data return {"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.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:08:58]process_action_free get_value [00:08:58]json_value_free [00:08:58]json_value_free done [00:08:58]process_json_proto returns [00:08:58]Send response to host [00:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.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:08:58]free response buf [00:08:58]execute_script done [00:08:58]execute_script returns [00:08:58]free content buf [00:08:58]Sock 7.Close socket [00:08:58]Sock 7.Thread stoped [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18: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:28]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:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]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:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send